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

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ __m128d;

/* Variables and functions */
int /*<<< orphan*/ _mm_load_sd(double *);
int /*<<< orphan*/ _mm_loadu_pd(double *);
int /*<<< orphan*/ _mm_store_sd(double *, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_storeu_pd(double *, int /*<<< orphan*/);
void kernel_dgecp_3_2_lib4(int tri, int kmax, double *A0, int sda, double *B) {
  if (tri == 1) {
    kmax += 1;
  }
  if (kmax <= 0)
    return;
  const int bs = 4;
  double *A1 = A0 + bs * sda;
  __m128d a_0, a_1;
  int k;
  for (k = 0; k < kmax - 3; k += 4) {
    a_0 = _mm_loadu_pd(&A0[2 + bs * 0]);
    _mm_storeu_pd(&B[0 + bs * 0], a_0);
    a_1 = _mm_load_sd(&A1[0 + bs * 0]);
    _mm_store_sd(&B[2 + bs * 0], a_1);
    a_0 = _mm_loadu_pd(&A0[2 + bs * 1]);
    _mm_storeu_pd(&B[0 + bs * 1], a_0);
    a_1 = _mm_load_sd(&A1[0 + bs * 1]);
    _mm_store_sd(&B[2 + bs * 1], a_1);
    a_0 = _mm_loadu_pd(&A0[2 + bs * 2]);
    _mm_storeu_pd(&B[0 + bs * 2], a_0);
    a_1 = _mm_load_sd(&A1[0 + bs * 2]);
    _mm_store_sd(&B[2 + bs * 2], a_1);
    a_0 = _mm_loadu_pd(&A0[2 + bs * 3]);
    _mm_storeu_pd(&B[0 + bs * 3], a_0);
    a_1 = _mm_load_sd(&A1[0 + bs * 3]);
    _mm_store_sd(&B[2 + bs * 3], a_1);
    A0 += 16;
    A1 += 16;
    B += 16;
  }
  for (; k < kmax; k++) {
    a_0 = _mm_loadu_pd(&A0[2 + bs * 0]);
    _mm_storeu_pd(&B[0 + bs * 0], a_0);
    a_1 = _mm_load_sd(&A1[0 + bs * 0]);
    _mm_store_sd(&B[2 + bs * 0], a_1);
    A0 += 4;
    A1 += 4;
    B += 4;
  }
  if (tri == 1) {
    a_0 = _mm_load_sd(&A0[3 + bs * 0]);
    _mm_store_sd(&B[1 + bs * 0], a_0);
    a_0 = _mm_load_sd(&A1[0 + bs * 0]);
    _mm_store_sd(&B[2 + bs * 0], a_0);
    a_0 = _mm_load_sd(&A1[0 + bs * 1]);
    _mm_store_sd(&B[2 + bs * 1], a_0);
  }
}


x86 assembly (clang, -O0):
<kernel_dgecp_3_2_lib4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    116c <kernel_dgecp_3_2_lib4+0x2c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jg     117b <kernel_dgecp_3_2_lib4+0x3b>
jmp    13c3 <kernel_dgecp_3_2_lib4+0x283>
movl   $0x4,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    12e2 <kernel_dgecp_3_2_lib4+0x1a2>
mov    -0x10(%rbp),%rdi
add    $0x10,%rdi
call   1050 <_mm_loadu_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <_mm_storeu_pd@plt>
mov    -0x30(%rbp),%rdi
call   1030 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x10,%rdi
mov    -0x38(%rbp),%esi
call   1060 <_mm_store_sd@plt>
mov    -0x10(%rbp),%rdi
add    $0x30,%rdi
call   1050 <_mm_loadu_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x20,%rdi
mov    -0x34(%rbp),%esi
call   1040 <_mm_storeu_pd@plt>
mov    -0x30(%rbp),%rdi
add    $0x20,%rdi
call   1030 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x30,%rdi
mov    -0x38(%rbp),%esi
call   1060 <_mm_store_sd@plt>
mov    -0x10(%rbp),%rdi
add    $0x50,%rdi
call   1050 <_mm_loadu_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x40,%rdi
mov    -0x34(%rbp),%esi
call   1040 <_mm_storeu_pd@plt>
mov    -0x30(%rbp),%rdi
add    $0x40,%rdi
call   1030 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x50,%rdi
mov    -0x38(%rbp),%esi
call   1060 <_mm_store_sd@plt>
mov    -0x10(%rbp),%rdi
add    $0x70,%rdi
call   1050 <_mm_loadu_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x60,%rdi
mov    -0x34(%rbp),%esi
call   1040 <_mm_storeu_pd@plt>
mov    -0x30(%rbp),%rdi
add    $0x60,%rdi
call   1030 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x70,%rdi
mov    -0x38(%rbp),%esi
call   1060 <_mm_store_sd@plt>
mov    -0x10(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x10(%rbp)
mov    -0x30(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x20(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x3c(%rbp)
jmp    11a1 <kernel_dgecp_3_2_lib4+0x61>
jmp    12e7 <kernel_dgecp_3_2_lib4+0x1a7>
mov    -0x3c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    135d <kernel_dgecp_3_2_lib4+0x21d>
mov    -0x10(%rbp),%rdi
add    $0x10,%rdi
call   1050 <_mm_loadu_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <_mm_storeu_pd@plt>
mov    -0x30(%rbp),%rdi
call   1030 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x10,%rdi
mov    -0x38(%rbp),%esi
call   1060 <_mm_store_sd@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x10(%rbp)
mov    -0x30(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x20(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12e7 <kernel_dgecp_3_2_lib4+0x1a7>
cmpl   $0x1,-0x4(%rbp)
jne    13c3 <kernel_dgecp_3_2_lib4+0x283>
mov    -0x10(%rbp),%rdi
add    $0x18,%rdi
call   1030 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x8,%rdi
mov    -0x34(%rbp),%esi
call   1060 <_mm_store_sd@plt>
mov    -0x30(%rbp),%rdi
call   1030 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x10,%rdi
mov    -0x34(%rbp),%esi
call   1060 <_mm_store_sd@plt>
mov    -0x30(%rbp),%rdi
add    $0x20,%rdi
call   1030 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x30,%rdi
mov    -0x34(%rbp),%esi
call   1060 <_mm_store_sd@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dgecp_3_2_lib4>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %ebx,%ebx
cmp    $0x1,%edi
sete   %bl
add    %esi,%ebx
test   %ebx,%ebx
jle    1364 <kernel_dgecp_3_2_lib4+0x224>
mov    %r8,%r15
mov    %edi,%r14d
shl    $0x2,%ecx
movslq %ecx,%rax
mov    %rdx,%rdi
lea    (%rdx,%rax,8),%r12
xor    %eax,%eax
cmp    $0x4,%ebx
jae    11db <kernel_dgecp_3_2_lib4+0x9b>
cmp    %ebx,%eax
jl     131b <kernel_dgecp_3_2_lib4+0x1db>
cmp    $0x1,%r14d
jne    1364 <kernel_dgecp_3_2_lib4+0x224>
add    $0x18,%rdi
call   1030 <_mm_load_sd@plt>
lea    0x8(%r15),%rdi
mov    %eax,%esi
call   1060 <_mm_store_sd@plt>
mov    %r12,%rdi
call   1030 <_mm_load_sd@plt>
lea    0x10(%r15),%rdi
mov    %eax,%esi
call   1060 <_mm_store_sd@plt>
add    $0x20,%r12
mov    %r12,%rdi
call   1030 <_mm_load_sd@plt>
add    $0x30,%r15
mov    %r15,%rdi
mov    %eax,%esi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <_mm_store_sd@plt>
mov    %r14d,0x4(%rsp)
mov    %rbx,0x10(%rsp)
lea    -0x3(%rbx),%eax
mov    %eax,0x8(%rsp)
xor    %r14d,%r14d
xor    %eax,%eax
mov    %rdi,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %eax,0xc(%rsp)
mov    %r12,%rbp
lea    (%r12,%r14,1),%r13
lea    (%r15,%r14,1),%r12
lea    (%rbx,%r14,1),%rdi
add    $0x10,%rdi
call   1050 <_mm_loadu_pd@plt>
mov    %r12,%rdi
mov    %eax,%esi
call   1040 <_mm_storeu_pd@plt>
mov    %r13,%rdi
mov    %rbp,%r12
call   1030 <_mm_load_sd@plt>
lea    (%r15,%r14,1),%rdi
add    $0x10,%rdi
mov    %eax,%esi
call   1060 <_mm_store_sd@plt>
lea    (%rbx,%r14,1),%rdi
add    $0x30,%rdi
call   1050 <_mm_loadu_pd@plt>
lea    (%r15,%r14,1),%rdi
add    $0x20,%rdi
mov    %eax,%esi
call   1040 <_mm_storeu_pd@plt>
lea    (%r14,%rbp,1),%rdi
add    $0x20,%rdi
call   1030 <_mm_load_sd@plt>
lea    (%r15,%r14,1),%rdi
add    $0x30,%rdi
mov    %eax,%esi
call   1060 <_mm_store_sd@plt>
lea    (%rbx,%r14,1),%rdi
add    $0x50,%rdi
call   1050 <_mm_loadu_pd@plt>
lea    (%r15,%r14,1),%rdi
add    $0x40,%rdi
mov    %eax,%esi
call   1040 <_mm_storeu_pd@plt>
lea    (%r14,%rbp,1),%rdi
add    $0x40,%rdi
call   1030 <_mm_load_sd@plt>
lea    (%r15,%r14,1),%rdi
add    $0x50,%rdi
mov    %eax,%esi
call   1060 <_mm_store_sd@plt>
lea    (%rbx,%r14,1),%rdi
add    $0x70,%rdi
call   1050 <_mm_loadu_pd@plt>
lea    (%r15,%r14,1),%rdi
add    $0x60,%rdi
mov    %eax,%esi
call   1040 <_mm_storeu_pd@plt>
lea    (%r14,%rbp,1),%rdi
add    $0x60,%rdi
call   1030 <_mm_load_sd@plt>
lea    (%r15,%r14,1),%rdi
add    $0x70,%rdi
mov    %eax,%esi
call   1060 <_mm_store_sd@plt>
mov    0xc(%rsp),%eax
add    $0x4,%eax
sub    $0xffffffffffffff80,%r14
cmp    0x8(%rsp),%eax
jl     1200 <kernel_dgecp_3_2_lib4+0xc0>
add    %r14,%r12
add    %r14,%r15
add    %r14,%rbx
mov    %rbx,%rdi
mov    0x4(%rsp),%r14d
mov    0x10(%rsp),%rbx
cmp    %ebx,%eax
jge    1182 <kernel_dgecp_3_2_lib4+0x42>
sub    %eax,%ebx
mov    %rdi,%rbp
lea    0x10(%rbp),%rdi
call   1050 <_mm_loadu_pd@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1040 <_mm_storeu_pd@plt>
mov    %r12,%rdi
call   1030 <_mm_load_sd@plt>
lea    0x10(%r15),%rdi
mov    %eax,%esi
call   1060 <_mm_store_sd@plt>
add    $0x20,%rbp
add    $0x20,%r12
add    $0x20,%r15
add    $0xffffffff,%ebx
jne    1320 <kernel_dgecp_3_2_lib4+0x1e0>
mov    %rbp,%rdi
cmp    $0x1,%r14d
je     118c <kernel_dgecp_3_2_lib4+0x4c>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @kernel_dgecp_3_2_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 double*
%13 = alloca i32
%14 = alloca i32
%15 = 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
%16 = load i32, i32* %6
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %5
%19 = load i32, i32* %7
%20 = add nsw i32 %19, 1
store i32 %20, i32* %7
br label %21
21: ; preds = %18, %5
%22 = load i32, i32* %7
%23 = icmp sle i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
br label %156
25: ; preds = %21
store i32 4, i32* %11
%26 = load double*, double** %8
%27 = load i32, i32* %9
%28 = mul nsw i32 4, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, double* %26, i64 %29
store double* %30, double** %12
store i32 0, i32* %15
br label %31
31: ; preds = %99, %25
%32 = load i32, i32* %15
%33 = load i32, i32* %7
%34 = sub nsw i32 %33, 3
%35 = icmp slt i32 %32, %34
br i1 %35, label %36, label %102
36: ; preds = %31
%37 = load double*, double** %8
%38 = getelementptr inbounds double, double* %37, i64 2
%39 = call i32 @_mm_loadu_pd(double* %38)
store i32 %39, i32* %13
%40 = load double*, double** %10
%41 = getelementptr inbounds double, double* %40, i64 0
%42 = load i32, i32* %13
%43 = call i32 @_mm_storeu_pd(double* %41, i32 %42)
%44 = load double*, double** %12
%45 = getelementptr inbounds double, double* %44, i64 0
%46 = call i32 @_mm_load_sd(double* %45)
store i32 %46, i32* %14
%47 = load double*, double** %10
%48 = getelementptr inbounds double, double* %47, i64 2
%49 = load i32, i32* %14
%50 = call i32 @_mm_store_sd(double* %48, i32 %49)
%51 = load double*, double** %8
%52 = getelementptr inbounds double, double* %51, i64 6
%53 = call i32 @_mm_loadu_pd(double* %52)
store i32 %53, i32* %13
%54 = load double*, double** %10
%55 = getelementptr inbounds double, double* %54, i64 4
%56 = load i32, i32* %13
%57 = call i32 @_mm_storeu_pd(double* %55, i32 %56)
%58 = load double*, double** %12
%59 = getelementptr inbounds double, double* %58, i64 4
%60 = call i32 @_mm_load_sd(double* %59)
store i32 %60, i32* %14
%61 = load double*, double** %10
%62 = getelementptr inbounds double, double* %61, i64 6
%63 = load i32, i32* %14
%64 = call i32 @_mm_store_sd(double* %62, i32 %63)
%65 = load double*, double** %8
%66 = getelementptr inbounds double, double* %65, i64 10
%67 = call i32 @_mm_loadu_pd(double* %66)
store i32 %67, i32* %13
%68 = load double*, double** %10
%69 = getelementptr inbounds double, double* %68, i64 8
%70 = load i32, i32* %13
%71 = call i32 @_mm_storeu_pd(double* %69, i32 %70)
%72 = load double*, double** %12
%73 = getelementptr inbounds double, double* %72, i64 8
%74 = call i32 @_mm_load_sd(double* %73)
store i32 %74, i32* %14
%75 = load double*, double** %10
%76 = getelementptr inbounds double, double* %75, i64 10
%77 = load i32, i32* %14
%78 = call i32 @_mm_store_sd(double* %76, i32 %77)
%79 = load double*, double** %8
%80 = getelementptr inbounds double, double* %79, i64 14
%81 = call i32 @_mm_loadu_pd(double* %80)
store i32 %81, i32* %13
%82 = load double*, double** %10
%83 = getelementptr inbounds double, double* %82, i64 12
%84 = load i32, i32* %13
%85 = call i32 @_mm_storeu_pd(double* %83, i32 %84)
%86 = load double*, double** %12
%87 = getelementptr inbounds double, double* %86, i64 12
%88 = call i32 @_mm_load_sd(double* %87)
store i32 %88, i32* %14
%89 = load double*, double** %10
%90 = getelementptr inbounds double, double* %89, i64 14
%91 = load i32, i32* %14
%92 = call i32 @_mm_store_sd(double* %90, i32 %91)
%93 = load double*, double** %8
%94 = getelementptr inbounds double, double* %93, i64 16
store double* %94, double** %8
%95 = load double*, double** %12
%96 = getelementptr inbounds double, double* %95, i64 16
store double* %96, double** %12
%97 = load double*, double** %10
%98 = getelementptr inbounds double, double* %97, i64 16
store double* %98, double** %10
br label %99
99: ; preds = %36
%100 = load i32, i32* %15
%101 = add nsw i32 %100, 4
store i32 %101, i32* %15
br label %31
102: ; preds = %31
br label %103
103: ; preds = %128, %102
%104 = load i32, i32* %15
%105 = load i32, i32* %7
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %131
107: ; preds = %103
%108 = load double*, double** %8
%109 = getelementptr inbounds double, double* %108, i64 2
%110 = call i32 @_mm_loadu_pd(double* %109)
store i32 %110, i32* %13
%111 = load double*, double** %10
%112 = getelementptr inbounds double, double* %111, i64 0
%113 = load i32, i32* %13
%114 = call i32 @_mm_storeu_pd(double* %112, i32 %113)
%115 = load double*, double** %12
%116 = getelementptr inbounds double, double* %115, i64 0
%117 = call i32 @_mm_load_sd(double* %116)
store i32 %117, i32* %14
%118 = load double*, double** %10
%119 = getelementptr inbounds double, double* %118, i64 2
%120 = load i32, i32* %14
%121 = call i32 @_mm_store_sd(double* %119, i32 %120)
%122 = load double*, double** %8
%123 = getelementptr inbounds double, double* %122, i64 4
store double* %123, double** %8
%124 = load double*, double** %12
%125 = getelementptr inbounds double, double* %124, i64 4
store double* %125, double** %12
%126 = load double*, double** %10
%127 = getelementptr inbounds double, double* %126, i64 4
store double* %127, double** %10
br label %128
128: ; preds = %107
%129 = load i32, i32* %15
%130 = add nsw i32 %129, 1
store i32 %130, i32* %15
br label %103
131: ; preds = %103
%132 = load i32, i32* %6
%133 = icmp eq i32 %132, 1
br i1 %133, label %134, label %156
134: ; preds = %131
%135 = load double*, double** %8
%136 = getelementptr inbounds double, double* %135, i64 3
%137 = call i32 @_mm_load_sd(double* %136)
store i32 %137, i32* %13
%138 = load double*, double** %10
%139 = getelementptr inbounds double, double* %138, i64 1
%140 = load i32, i32* %13
%141 = call i32 @_mm_store_sd(double* %139, i32 %140)
%142 = load double*, double** %12
%143 = getelementptr inbounds double, double* %142, i64 0
%144 = call i32 @_mm_load_sd(double* %143)
store i32 %144, i32* %13
%145 = load double*, double** %10
%146 = getelementptr inbounds double, double* %145, i64 2
%147 = load i32, i32* %13
%148 = call i32 @_mm_store_sd(double* %146, i32 %147)
%149 = load double*, double** %12
%150 = getelementptr inbounds double, double* %149, i64 4
%151 = call i32 @_mm_load_sd(double* %150)
store i32 %151, i32* %13
%152 = load double*, double** %10
%153 = getelementptr inbounds double, double* %152, i64 6
%154 = load i32, i32* %13
%155 = call i32 @_mm_store_sd(double* %153, i32 %154)
br label %156
156: ; preds = %24, %134, %131
ret void
}

LLVM IR (-O2):
define void @kernel_dgecp_3_2_lib4(i32 %0, i32 %1, double* %2, i32 %3, double* %4) {
%6 = icmp eq i32 %0, 1
%7 = zext i1 %6 to i32
%8 = add i32 %7, %1
%9 = icmp slt i32 %8, 1
br i1 %9, label %94, label %10
10: ; preds = %5
%11 = shl nsw i32 %3, 2
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds double, double* %2, i64 %12
%14 = add nsw i32 %8, -3
%15 = icmp ugt i32 %8, 3
br i1 %15, label %22, label %16
16: ; preds = %22, %10
%17 = phi double* [ %2, %10 ], [ %57, %22 ]
%18 = phi double* [ %4, %10 ], [ %59, %22 ]
%19 = phi double* [ %13, %10 ], [ %58, %22 ]
%20 = phi i32 [ 0, %10 ], [ %60, %22 ]
%21 = icmp slt i32 %20, %8
br i1 %21, label %62, label %78
22: ; preds = %10, %22
%23 = phi i32 [ %60, %22 ], [ 0, %10 ]
%24 = phi double* [ %58, %22 ], [ %13, %10 ]
%25 = phi double* [ %59, %22 ], [ %4, %10 ]
%26 = phi double* [ %57, %22 ], [ %2, %10 ]
%27 = getelementptr inbounds double, double* %26, i64 2
%28 = tail call i32 @_mm_loadu_pd(double* %27)
%29 = tail call i32 @_mm_storeu_pd(double* %25, i32 %28)
%30 = tail call i32 @_mm_load_sd(double* %24)
%31 = getelementptr inbounds double, double* %25, i64 2
%32 = tail call i32 @_mm_store_sd(double* %31, i32 %30)
%33 = getelementptr inbounds double, double* %26, i64 6
%34 = tail call i32 @_mm_loadu_pd(double* %33)
%35 = getelementptr inbounds double, double* %25, i64 4
%36 = tail call i32 @_mm_storeu_pd(double* %35, i32 %34)
%37 = getelementptr inbounds double, double* %24, i64 4
%38 = tail call i32 @_mm_load_sd(double* %37)
%39 = getelementptr inbounds double, double* %25, i64 6
%40 = tail call i32 @_mm_store_sd(double* %39, i32 %38)
%41 = getelementptr inbounds double, double* %26, i64 10
%42 = tail call i32 @_mm_loadu_pd(double* %41)
%43 = getelementptr inbounds double, double* %25, i64 8
%44 = tail call i32 @_mm_storeu_pd(double* %43, i32 %42)
%45 = getelementptr inbounds double, double* %24, i64 8
%46 = tail call i32 @_mm_load_sd(double* %45)
%47 = getelementptr inbounds double, double* %25, i64 10
%48 = tail call i32 @_mm_store_sd(double* %47, i32 %46)
%49 = getelementptr inbounds double, double* %26, i64 14
%50 = tail call i32 @_mm_loadu_pd(double* %49)
%51 = getelementptr inbounds double, double* %25, i64 12
%52 = tail call i32 @_mm_storeu_pd(double* %51, i32 %50)
%53 = getelementptr inbounds double, double* %24, i64 12
%54 = tail call i32 @_mm_load_sd(double* %53)
%55 = getelementptr inbounds double, double* %25, i64 14
%56 = tail call i32 @_mm_store_sd(double* %55, i32 %54)
%57 = getelementptr inbounds double, double* %26, i64 16
%58 = getelementptr inbounds double, double* %24, i64 16
%59 = getelementptr inbounds double, double* %25, i64 16
%60 = add nuw nsw i32 %23, 4
%61 = icmp slt i32 %60, %14
br i1 %61, label %22, label %16
62: ; preds = %16, %62
%63 = phi i32 [ %76, %62 ], [ %20, %16 ]
%64 = phi double* [ %74, %62 ], [ %19, %16 ]
%65 = phi double* [ %75, %62 ], [ %18, %16 ]
%66 = phi double* [ %73, %62 ], [ %17, %16 ]
%67 = getelementptr inbounds double, double* %66, i64 2
%68 = tail call i32 @_mm_loadu_pd(double* %67)
%69 = tail call i32 @_mm_storeu_pd(double* %65, i32 %68)
%70 = tail call i32 @_mm_load_sd(double* %64)
%71 = getelementptr inbounds double, double* %65, i64 2
%72 = tail call i32 @_mm_store_sd(double* %71, i32 %70)
%73 = getelementptr inbounds double, double* %66, i64 4
%74 = getelementptr inbounds double, double* %64, i64 4
%75 = getelementptr inbounds double, double* %65, i64 4
%76 = add i32 %63, 1
%77 = icmp eq i32 %76, %8
br i1 %77, label %78, label %62
78: ; preds = %62, %16
%79 = phi double* [ %17, %16 ], [ %73, %62 ]
%80 = phi double* [ %18, %16 ], [ %75, %62 ]
%81 = phi double* [ %19, %16 ], [ %74, %62 ]
br i1 %6, label %82, label %94
82: ; preds = %78
%83 = getelementptr inbounds double, double* %79, i64 3
%84 = tail call i32 @_mm_load_sd(double* %83)
%85 = getelementptr inbounds double, double* %80, i64 1
%86 = tail call i32 @_mm_store_sd(double* %85, i32 %84)
%87 = tail call i32 @_mm_load_sd(double* %81)
%88 = getelementptr inbounds double, double* %80, i64 2
%89 = tail call i32 @_mm_store_sd(double* %88, i32 %87)
%90 = getelementptr inbounds double, double* %81, i64 4
%91 = tail call i32 @_mm_load_sd(double* %90)
%92 = getelementptr inbounds double, double* %80, i64 6
%93 = tail call i32 @_mm_store_sd(double* %92, i32 %91)
br label %94
94: ; preds = %78, %82, %5
ret void
}