void kernel_dgecp_4_3_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;
  int k;
  for (k = 0; k < kmax - 3; k += 4) {
    B[0 + bs * 0] = A0[3 + bs * 0];
    B[1 + bs * 0] = A1[0 + bs * 0];
    B[2 + bs * 0] = A1[1 + bs * 0];
    B[3 + bs * 0] = A1[2 + bs * 0];
    B[0 + bs * 1] = A0[3 + bs * 1];
    B[1 + bs * 1] = A1[0 + bs * 1];
    B[2 + bs * 1] = A1[1 + bs * 1];
    B[3 + bs * 1] = A1[2 + bs * 1];
    B[0 + bs * 2] = A0[3 + bs * 2];
    B[1 + bs * 2] = A1[0 + bs * 2];
    B[2 + bs * 2] = A1[1 + bs * 2];
    B[3 + bs * 2] = A1[2 + bs * 2];
    B[0 + bs * 3] = A0[3 + bs * 3];
    B[1 + bs * 3] = A1[0 + bs * 3];
    B[2 + bs * 3] = A1[1 + bs * 3];
    B[3 + bs * 3] = A1[2 + bs * 3];
    A0 += 16;
    A1 += 16;
    B += 16;
  }
  for (; k < kmax; k++) {
    B[0 + bs * 0] = A0[3 + bs * 0];
    B[1 + bs * 0] = A1[0 + bs * 0];
    B[2 + bs * 0] = A1[1 + bs * 0];
    B[3 + bs * 0] = A1[2 + bs * 0];
    A0 += 4;
    A1 += 4;
    B += 4;
  }
  if (tri == 1) {
    B[1 + bs * 0] = A1[0 + bs * 0];
    B[2 + bs * 0] = A1[1 + bs * 0];
    B[3 + bs * 0] = A1[2 + bs * 0];
    B[2 + bs * 1] = A1[1 + bs * 1];
    B[3 + bs * 1] = A1[2 + bs * 1];
    B[3 + bs * 2] = A1[2 + bs * 2];
  }
}


x86 assembly (clang, -O0):
<kernel_dgecp_4_3_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)
cmpl   $0x1,-0x4(%rbp)
jne    1128 <kernel_dgecp_4_3_lib4+0x28>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jg     1137 <kernel_dgecp_4_3_lib4+0x37>
jmp    13c2 <kernel_dgecp_4_3_lib4+0x2c2>
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,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    12c4 <kernel_dgecp_4_3_lib4+0x1c4>
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x30(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x30(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x30(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x10(%rbp),%rax
movsd  0x58(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x30(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    -0x30(%rbp),%rax
movsd  0x48(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x30(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x58(%rax)
mov    -0x10(%rbp),%rax
movsd  0x78(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
mov    -0x30(%rbp),%rax
movsd  0x60(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x68(%rax)
mov    -0x30(%rbp),%rax
movsd  0x68(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x70(%rax)
mov    -0x30(%rbp),%rax
movsd  0x70(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x78(%rax)
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    -0x34(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x34(%rbp)
jmp    115d <kernel_dgecp_4_3_lib4+0x5d>
jmp    12c9 <kernel_dgecp_4_3_lib4+0x1c9>
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    134d <kernel_dgecp_4_3_lib4+0x24d>
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
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    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12c9 <kernel_dgecp_4_3_lib4+0x1c9>
cmpl   $0x1,-0x4(%rbp)
jne    13c2 <kernel_dgecp_4_3_lib4+0x2c2>
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x30(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x30(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x30(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x58(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dgecp_4_3_lib4>:
xor    %eax,%eax
cmp    $0x1,%edi
sete   %al
add    %esi,%eax
test   %eax,%eax
jle    131c <kernel_dgecp_4_3_lib4+0x21c>
shl    $0x2,%ecx
movslq %ecx,%rcx
cmp    $0x4,%eax
jb     120b <kernel_dgecp_4_3_lib4+0x10b>
lea    -0x3(%rax),%r9d
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  (%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x8(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  0x10(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x20(%r8)
movsd  0x20(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x28(%r8)
movsd  0x28(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x30(%r8)
movsd  0x30(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x38(%r8)
movsd  0x58(%rdx),%xmm0
movsd  %xmm0,0x40(%r8)
movsd  0x40(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x48(%r8)
movsd  0x48(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x50(%r8)
movsd  0x50(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x58(%r8)
movsd  0x78(%rdx),%xmm0
movsd  %xmm0,0x60(%r8)
movsd  0x60(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x68(%r8)
movsd  0x68(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x70(%r8)
movsd  0x70(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x78(%r8)
sub    $0xffffffffffffff80,%rdx
sub    $0xffffffffffffff80,%r8
add    $0x4,%esi
cmp    %r9d,%esi
jl     1130 <kernel_dgecp_4_3_lib4+0x30>
lea    (%rdx,%rcx,8),%rcx
cmp    %eax,%esi
jl     1219 <kernel_dgecp_4_3_lib4+0x119>
jmp    12d6 <kernel_dgecp_4_3_lib4+0x1d6>
lea    (%rdx,%rcx,8),%rcx
xor    %esi,%esi
cmp    %eax,%esi
jge    12d6 <kernel_dgecp_4_3_lib4+0x1d6>
mov    %eax,%r10d
sub    %esi,%r10d
lea    0x1(%rsi),%r9d
test   $0x1,%r10b
je     1262 <kernel_dgecp_4_3_lib4+0x162>
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  (%rcx),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x8(%rcx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  0x10(%rcx),%xmm0
movsd  %xmm0,0x18(%r8)
add    $0x20,%rdx
add    $0x20,%rcx
add    $0x20,%r8
mov    %r9d,%esi
cmp    %r9d,%eax
je     12d6 <kernel_dgecp_4_3_lib4+0x1d6>
sub    %esi,%eax
add    $0x38,%rdx
nopl   (%rax)
movsd  -0x20(%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  (%rcx),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x8(%rcx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  0x10(%rcx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  (%rdx),%xmm0
movsd  %xmm0,0x20(%r8)
movsd  0x20(%rcx),%xmm0
movsd  %xmm0,0x28(%r8)
movsd  0x28(%rcx),%xmm0
movsd  %xmm0,0x30(%r8)
movsd  0x30(%rcx),%xmm0
movsd  %xmm0,0x38(%r8)
add    $0x40,%rcx
add    $0x40,%r8
add    $0x40,%rdx
add    $0xfffffffe,%eax
jne    1270 <kernel_dgecp_4_3_lib4+0x170>
cmp    $0x1,%edi
jne    131c <kernel_dgecp_4_3_lib4+0x21c>
movsd  (%rcx),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x8(%rcx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  0x10(%rcx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x28(%rcx),%xmm0
movsd  %xmm0,0x30(%r8)
movsd  0x30(%rcx),%xmm0
movsd  %xmm0,0x38(%r8)
movsd  0x50(%rcx),%xmm0
movsd  %xmm0,0x58(%r8)
ret

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

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