#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_add_sd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_load_sd(double *);
int /*<<< orphan*/ _mm_mul_sd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_setzero_pd();
int /*<<< orphan*/ _mm_store_sd(double *, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_sub_sd(int /*<<< orphan*/, int /*<<< orphan*/);
void kernel_dsyr1_1_lib4(int kmax, int tri, double *A, double *B, int sdb,
                         int alg, double *C, double *D) {
  const int bs = 4;
  int k;
  __m128d zero, a_0, b_0, c_0, d_0, t_0;
  kmax = tri < kmax ? tri : kmax;
  a_0 = _mm_load_sd(&A[0]);
  if (alg == -1) {
    zero = _mm_setzero_pd();
    a_0 = _mm_sub_sd(zero, a_0);
  }
  if (alg == 0) {
    k = 0;
    for (; k < kmax - 3; k += 4) {
      b_0 = _mm_load_sd(&B[0]);
      t_0 = _mm_mul_sd(a_0, b_0);
      _mm_store_sd(&D[0], t_0);
      b_0 = _mm_load_sd(&B[1]);
      t_0 = _mm_mul_sd(a_0, b_0);
      _mm_store_sd(&D[4], t_0);
      b_0 = _mm_load_sd(&B[2]);
      t_0 = _mm_mul_sd(a_0, b_0);
      _mm_store_sd(&D[8], t_0);
      b_0 = _mm_load_sd(&B[3]);
      t_0 = _mm_mul_sd(a_0, b_0);
      _mm_store_sd(&D[12], t_0);
      B += bs * sdb;
      D += 16;
    }
    for (; k < kmax; k++) {
      b_0 = _mm_load_sd(&B[0]);
      t_0 = _mm_mul_sd(a_0, b_0);
      _mm_store_sd(&D[0], t_0);
      B += 1;
      D += 4;
    }
    if (tri - k > 0) {
      b_0 = _mm_load_sd(&B[0]);
      t_0 = _mm_mul_sd(a_0, b_0);
      _mm_store_sd(&D[0], t_0);
    }
  } else {
    k = 0;
    for (; k < kmax - 3; k += 4) {
      b_0 = _mm_load_sd(&B[0]);
      t_0 = _mm_mul_sd(a_0, b_0);
      c_0 = _mm_load_sd(&C[0]);
      c_0 = _mm_add_sd(c_0, t_0);
      _mm_store_sd(&D[0], c_0);
      b_0 = _mm_load_sd(&B[1]);
      t_0 = _mm_mul_sd(a_0, b_0);
      c_0 = _mm_load_sd(&C[4]);
      c_0 = _mm_add_sd(c_0, t_0);
      _mm_store_sd(&D[4], c_0);
      b_0 = _mm_load_sd(&B[2]);
      t_0 = _mm_mul_sd(a_0, b_0);
      c_0 = _mm_load_sd(&C[8]);
      c_0 = _mm_add_sd(c_0, t_0);
      _mm_store_sd(&D[8], c_0);
      b_0 = _mm_load_sd(&B[3]);
      t_0 = _mm_mul_sd(a_0, b_0);
      c_0 = _mm_load_sd(&C[12]);
      c_0 = _mm_add_sd(c_0, t_0);
      _mm_store_sd(&D[12], c_0);
      B += bs * sdb;
      C += 16;
      D += 16;
    }
    for (; k < kmax; k++) {
      b_0 = _mm_load_sd(&B[0]);
      t_0 = _mm_mul_sd(a_0, b_0);
      c_0 = _mm_load_sd(&C[0]);
      c_0 = _mm_add_sd(c_0, t_0);
      _mm_store_sd(&D[0], c_0);
      B += 1;
      C += 4;
      D += 4;
    }
    if (tri - k > 0) {
      b_0 = _mm_load_sd(&B[0]);
      t_0 = _mm_mul_sd(a_0, b_0);
      c_0 = _mm_load_sd(&C[0]);
      c_0 = _mm_add_sd(c_0, t_0);
      _mm_store_sd(&D[0], c_0);
    }
  }
}


x86 assembly (clang, -O0):
<kernel_dsyr1_1_lib4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
movl   $0x4,-0x24(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11a4 <kernel_dsyr1_1_lib4+0x44>
mov    -0x8(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    11aa <kernel_dsyr1_1_lib4+0x4a>
mov    -0x4(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0xffffffff,-0x20(%rbp)
jne    11de <kernel_dsyr1_1_lib4+0x7e>
mov    $0x0,%al
call   1060 <_mm_setzero_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1080 <_mm_sub_sd@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0x0,-0x20(%rbp)
jne    137b <kernel_dsyr1_1_lib4+0x21b>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    12e4 <kernel_dsyr1_1_lib4+0x184>
mov    -0x18(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x18(%rbp),%rdi
mov    -0x40(%rbp),%esi
call   1070 <_mm_store_sd@plt>
mov    -0x18(%rbp),%rdi
add    $0x8,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x18(%rbp),%rdi
add    $0x20,%rdi
mov    -0x40(%rbp),%esi
call   1070 <_mm_store_sd@plt>
mov    -0x18(%rbp),%rdi
add    $0x10,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x18(%rbp),%rdi
add    $0x40,%rdi
mov    -0x40(%rbp),%esi
call   1070 <_mm_store_sd@plt>
mov    -0x18(%rbp),%rdi
add    $0x18,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x18(%rbp),%rdi
add    $0x60,%rdi
mov    -0x40(%rbp),%esi
call   1070 <_mm_store_sd@plt>
mov    -0x1c(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    0x18(%rbp),%rax
add    $0x80,%rax
mov    %rax,0x18(%rbp)
mov    -0x28(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x28(%rbp)
jmp    11ef <kernel_dsyr1_1_lib4+0x8f>
jmp    12e9 <kernel_dsyr1_1_lib4+0x189>
mov    -0x28(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1341 <kernel_dsyr1_1_lib4+0x1e1>
mov    -0x18(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x18(%rbp),%rdi
mov    -0x40(%rbp),%esi
call   1070 <_mm_store_sd@plt>
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x18(%rbp)
mov    0x18(%rbp),%rax
add    $0x20,%rax
mov    %rax,0x18(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12e9 <kernel_dsyr1_1_lib4+0x189>
mov    -0x8(%rbp),%eax
sub    -0x28(%rbp),%eax
cmp    $0x0,%eax
jle    1376 <kernel_dsyr1_1_lib4+0x216>
mov    -0x18(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x18(%rbp),%rdi
mov    -0x40(%rbp),%esi
call   1070 <_mm_store_sd@plt>
jmp    15d0 <kernel_dsyr1_1_lib4+0x470>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    14f9 <kernel_dsyr1_1_lib4+0x399>
mov    -0x18(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x10(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1030 <_mm_add_sd@plt>
mov    %eax,-0x38(%rbp)
mov    0x18(%rbp),%rdi
mov    -0x38(%rbp),%esi
call   1070 <_mm_store_sd@plt>
mov    -0x18(%rbp),%rdi
add    $0x8,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x10(%rbp),%rdi
add    $0x20,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1030 <_mm_add_sd@plt>
mov    %eax,-0x38(%rbp)
mov    0x18(%rbp),%rdi
add    $0x20,%rdi
mov    -0x38(%rbp),%esi
call   1070 <_mm_store_sd@plt>
mov    -0x18(%rbp),%rdi
add    $0x10,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x10(%rbp),%rdi
add    $0x40,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1030 <_mm_add_sd@plt>
mov    %eax,-0x38(%rbp)
mov    0x18(%rbp),%rdi
add    $0x40,%rdi
mov    -0x38(%rbp),%esi
call   1070 <_mm_store_sd@plt>
mov    -0x18(%rbp),%rdi
add    $0x18,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x10(%rbp),%rdi
add    $0x60,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1030 <_mm_add_sd@plt>
mov    %eax,-0x38(%rbp)
mov    0x18(%rbp),%rdi
add    $0x60,%rdi
mov    -0x38(%rbp),%esi
call   1070 <_mm_store_sd@plt>
mov    -0x1c(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    0x10(%rbp),%rax
add    $0x80,%rax
mov    %rax,0x10(%rbp)
mov    0x18(%rbp),%rax
add    $0x80,%rax
mov    %rax,0x18(%rbp)
mov    -0x28(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x28(%rbp)
jmp    1382 <kernel_dsyr1_1_lib4+0x222>
jmp    14fe <kernel_dsyr1_1_lib4+0x39e>
mov    -0x28(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    157c <kernel_dsyr1_1_lib4+0x41c>
mov    -0x18(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x10(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1030 <_mm_add_sd@plt>
mov    %eax,-0x38(%rbp)
mov    0x18(%rbp),%rdi
mov    -0x38(%rbp),%esi
call   1070 <_mm_store_sd@plt>
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x18(%rbp)
mov    0x10(%rbp),%rax
add    $0x20,%rax
mov    %rax,0x10(%rbp)
mov    0x18(%rbp),%rax
add    $0x20,%rax
mov    %rax,0x18(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    14fe <kernel_dsyr1_1_lib4+0x39e>
mov    -0x8(%rbp),%eax
sub    -0x28(%rbp),%eax
cmp    $0x0,%eax
jle    15cb <kernel_dsyr1_1_lib4+0x46b>
mov    -0x18(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,-0x40(%rbp)
mov    0x10(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1030 <_mm_add_sd@plt>
mov    %eax,-0x38(%rbp)
mov    0x18(%rbp),%rdi
mov    -0x38(%rbp),%esi
call   1070 <_mm_store_sd@plt>
jmp    15d0 <kernel_dsyr1_1_lib4+0x470>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dsyr1_1_lib4>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9d,%r12d
mov    %r8d,0x18(%rsp)
mov    %rcx,%r15
mov    %esi,%ebx
mov    0x68(%rsp),%r14
mov    0x60(%rsp),%rbp
cmp    %edi,%esi
cmovl  %esi,%edi
mov    %rdi,0x10(%rsp)
mov    %rdx,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,%r13d
test   %r12d,%r12d
je     11e1 <kernel_dsyr1_1_lib4+0x81>
cmp    $0xffffffff,%r12d
jne    11b9 <kernel_dsyr1_1_lib4+0x59>
xor    %eax,%eax
call   1060 <_mm_setzero_pd@plt>
mov    %eax,%edi
mov    %r13d,%esi
call   1080 <_mm_sub_sd@plt>
mov    %eax,%r13d
xor    %r12d,%r12d
mov    0x10(%rsp),%rax
cmp    $0x4,%eax
mov    %ebx,0xc(%rsp)
jge    1206 <kernel_dsyr1_1_lib4+0xa6>
cmp    %eax,%r12d
jl     1323 <kernel_dsyr1_1_lib4+0x1c3>
cmp    %ebx,%r12d
jl     1389 <kernel_dsyr1_1_lib4+0x229>
jmp    14e1 <kernel_dsyr1_1_lib4+0x381>
xor    %ebp,%ebp
mov    0x10(%rsp),%rax
cmp    $0x4,%eax
jge    13b3 <kernel_dsyr1_1_lib4+0x253>
cmp    %eax,%ebp
jl     146a <kernel_dsyr1_1_lib4+0x30a>
cmp    %ebx,%ebp
jl     14b7 <kernel_dsyr1_1_lib4+0x357>
jmp    14e1 <kernel_dsyr1_1_lib4+0x381>
add    $0xfffffffd,%eax
mov    %eax,0x24(%rsp)
mov    0x18(%rsp),%eax
shl    $0x2,%eax
cltq
shl    $0x3,%rax
mov    %rax,0x18(%rsp)
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,%ebx
mov    %rbp,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1030 <_mm_add_sd@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1070 <_mm_store_sd@plt>
lea    0x8(%r15),%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,%ebx
lea    0x20(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1030 <_mm_add_sd@plt>
lea    0x20(%r14),%rdi
mov    %eax,%esi
call   1070 <_mm_store_sd@plt>
lea    0x10(%r15),%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,%ebx
lea    0x40(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1030 <_mm_add_sd@plt>
lea    0x40(%r14),%rdi
mov    %eax,%esi
call   1070 <_mm_store_sd@plt>
lea    0x18(%r15),%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,%ebx
lea    0x60(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1030 <_mm_add_sd@plt>
lea    0x60(%r14),%rdi
mov    %eax,%esi
call   1070 <_mm_store_sd@plt>
sub    $0xffffffffffffff80,%rbp
sub    $0xffffffffffffff80,%r14
add    $0x4,%r12d
add    0x18(%rsp),%r15
cmp    0x24(%rsp),%r12d
jl     1230 <kernel_dsyr1_1_lib4+0xd0>
mov    0xc(%rsp),%ebx
mov    0x10(%rsp),%rax
cmp    %eax,%r12d
jge    11d3 <kernel_dsyr1_1_lib4+0x73>
mov    %r13d,%ecx
mov    %eax,%r13d
sub    %r12d,%r13d
mov    %ecx,%r12d
nop
mov    %r15,%rdi
call   1040 <_mm_load_sd@plt>
mov    %r12d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,%ebx
mov    %rbp,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1030 <_mm_add_sd@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1070 <_mm_store_sd@plt>
add    $0x8,%r15
add    $0x20,%rbp
add    $0x20,%r14
add    $0xffffffff,%r13d
jne    1330 <kernel_dsyr1_1_lib4+0x1d0>
mov    0x10(%rsp),%rax
mov    %r12d,%r13d
mov    %eax,%r12d
mov    0xc(%rsp),%ebx
cmp    %ebx,%r12d
jge    14e1 <kernel_dsyr1_1_lib4+0x381>
mov    %r15,%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
mov    %eax,%ebx
mov    %rbp,%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1030 <_mm_add_sd@plt>
jmp    14c9 <kernel_dsyr1_1_lib4+0x369>
mov    %ebx,0xc(%rsp)
lea    -0x3(%rax),%r12d
mov    0x18(%rsp),%eax
shl    $0x2,%eax
movslq %eax,%rbx
shl    $0x3,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1070 <_mm_store_sd@plt>
lea    0x8(%r15),%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
lea    0x20(%r14),%rdi
mov    %eax,%esi
call   1070 <_mm_store_sd@plt>
lea    0x10(%r15),%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
lea    0x40(%r14),%rdi
mov    %eax,%esi
call   1070 <_mm_store_sd@plt>
lea    0x18(%r15),%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
lea    0x60(%r14),%rdi
mov    %eax,%esi
call   1070 <_mm_store_sd@plt>
sub    $0xffffffffffffff80,%r14
add    $0x4,%ebp
add    %rbx,%r15
cmp    %r12d,%ebp
jl     13d0 <kernel_dsyr1_1_lib4+0x270>
mov    0xc(%rsp),%ebx
mov    0x10(%rsp),%rax
cmp    %eax,%ebp
jge    11f9 <kernel_dsyr1_1_lib4+0x99>
mov    %ebx,%r12d
mov    %eax,%ebx
sub    %ebp,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1070 <_mm_store_sd@plt>
add    $0x8,%r15
add    $0x20,%r14
add    $0xffffffff,%ebx
jne    1480 <kernel_dsyr1_1_lib4+0x320>
mov    0x10(%rsp),%rax
mov    %eax,%ebp
mov    %r12d,%ebx
cmp    %ebx,%ebp
jge    14e1 <kernel_dsyr1_1_lib4+0x381>
mov    %r15,%rdi
call   1040 <_mm_load_sd@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_mul_sd@plt>
mov    %r14,%rdi
mov    %eax,%esi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <_mm_store_sd@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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