#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_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_load_pd(double *);
int /*<<< orphan*/ _mm_mul_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_setzero_pd();
int /*<<< orphan*/ _mm_shuffle_pd(int /*<<< orphan*/, int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_store_pd(double *, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_store_sd(double *, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_sub_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpackhi_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpacklo_pd(int /*<<< orphan*/, int /*<<< orphan*/);
void kernel_dgemm_nt_4x2_vs_lib4(int km, int kn, int kmax, double *A, double *B,
                                 double *C, double *D, int alg, int tc,
                                 int td) {
  const int ldc = 4;
  int k;
  __m128d c_00_11, c_01_10, c_20_31, c_21_30, a_01, a_23, b_01, b_10, b_temp_0,
      b_temp_1;
  c_00_11 = _mm_setzero_pd();
  c_01_10 = _mm_setzero_pd();
  c_20_31 = _mm_setzero_pd();
  c_21_30 = _mm_setzero_pd();
  k = 0;
  for (; k < kmax - 3; k += 4) {
    a_01 = _mm_load_pd(&A[0]);
    a_23 = _mm_load_pd(&A[2]);
    b_01 = _mm_load_pd(&B[0]);
    b_10 = _mm_shuffle_pd(b_01, b_01, 1);
    b_temp_0 = b_01;
    b_01 = _mm_mul_pd(a_01, b_01);
    c_00_11 = _mm_add_pd(c_00_11, b_01);
    b_temp_0 = _mm_mul_pd(a_23, b_temp_0);
    c_20_31 = _mm_add_pd(c_20_31, b_temp_0);
    b_temp_1 = b_10;
    b_10 = _mm_mul_pd(a_01, b_10);
    c_01_10 = _mm_add_pd(c_01_10, b_10);
    b_temp_1 = _mm_mul_pd(a_23, b_temp_1);
    c_21_30 = _mm_add_pd(c_21_30, b_temp_1);
    a_01 = _mm_load_pd(&A[4]);
    a_23 = _mm_load_pd(&A[6]);
    b_01 = _mm_load_pd(&B[4]);
    b_10 = _mm_shuffle_pd(b_01, b_01, 1);
    b_temp_0 = b_01;
    b_01 = _mm_mul_pd(a_01, b_01);
    c_00_11 = _mm_add_pd(c_00_11, b_01);
    b_temp_0 = _mm_mul_pd(a_23, b_temp_0);
    c_20_31 = _mm_add_pd(c_20_31, b_temp_0);
    b_temp_1 = b_10;
    b_10 = _mm_mul_pd(a_01, b_10);
    c_01_10 = _mm_add_pd(c_01_10, b_10);
    b_temp_1 = _mm_mul_pd(a_23, b_temp_1);
    c_21_30 = _mm_add_pd(c_21_30, b_temp_1);
    a_01 = _mm_load_pd(&A[8]);
    a_23 = _mm_load_pd(&A[10]);
    b_01 = _mm_load_pd(&B[8]);
    b_10 = _mm_shuffle_pd(b_01, b_01, 1);
    b_temp_0 = b_01;
    b_01 = _mm_mul_pd(a_01, b_01);
    c_00_11 = _mm_add_pd(c_00_11, b_01);
    b_temp_0 = _mm_mul_pd(a_23, b_temp_0);
    c_20_31 = _mm_add_pd(c_20_31, b_temp_0);
    b_temp_1 = b_10;
    b_10 = _mm_mul_pd(a_01, b_10);
    c_01_10 = _mm_add_pd(c_01_10, b_10);
    b_temp_1 = _mm_mul_pd(a_23, b_temp_1);
    c_21_30 = _mm_add_pd(c_21_30, b_temp_1);
    a_01 = _mm_load_pd(&A[12]);
    a_23 = _mm_load_pd(&A[14]);
    b_01 = _mm_load_pd(&B[12]);
    b_10 = _mm_shuffle_pd(b_01, b_01, 1);
    b_temp_0 = b_01;
    b_01 = _mm_mul_pd(a_01, b_01);
    c_00_11 = _mm_add_pd(c_00_11, b_01);
    b_temp_0 = _mm_mul_pd(a_23, b_temp_0);
    c_20_31 = _mm_add_pd(c_20_31, b_temp_0);
    b_temp_1 = b_10;
    b_10 = _mm_mul_pd(a_01, b_10);
    c_01_10 = _mm_add_pd(c_01_10, b_10);
    b_temp_1 = _mm_mul_pd(a_23, b_temp_1);
    c_21_30 = _mm_add_pd(c_21_30, b_temp_1);
    A += 16;
    B += 16;
  }
  for (; k < kmax; k++) {
    a_01 = _mm_load_pd(&A[0]);
    a_23 = _mm_load_pd(&A[2]);
    b_01 = _mm_load_pd(&B[0]);
    b_10 = _mm_shuffle_pd(b_01, b_01, 1);
    b_temp_0 = b_01;
    b_01 = _mm_mul_pd(a_01, b_01);
    c_00_11 = _mm_add_pd(c_00_11, b_01);
    b_temp_0 = _mm_mul_pd(a_23, b_temp_0);
    c_20_31 = _mm_add_pd(c_20_31, b_temp_0);
    b_temp_1 = b_10;
    b_10 = _mm_mul_pd(a_01, b_10);
    c_01_10 = _mm_add_pd(c_01_10, b_10);
    b_temp_1 = _mm_mul_pd(a_23, b_temp_1);
    c_21_30 = _mm_add_pd(c_21_30, b_temp_1);
    A += 4;
    B += 4;
  }
  __m128d t_0, c_0, c_1, c_2, c_3, d_0, d_1, d_2, d_3;
  if (alg == 0) {
    if (td == 0) {
      d_0 = _mm_shuffle_pd(c_00_11, c_01_10, 0x2);
      d_1 = _mm_shuffle_pd(c_01_10, c_00_11, 0x2);
      d_2 = _mm_shuffle_pd(c_20_31, c_21_30, 0x2);
      d_3 = _mm_shuffle_pd(c_21_30, c_20_31, 0x2);
      goto store_n;
    } else {
      d_0 = _mm_unpacklo_pd(c_00_11, c_01_10);
      d_1 = _mm_unpackhi_pd(c_01_10, c_00_11);
      d_2 = _mm_unpacklo_pd(c_20_31, c_21_30);
      d_3 = _mm_unpackhi_pd(c_21_30, c_20_31);
      goto store_t;
    }
  } else {
    if (tc == 0) {
      c_0 = _mm_shuffle_pd(c_00_11, c_01_10, 0x2);
      c_1 = _mm_shuffle_pd(c_01_10, c_00_11, 0x2);
      c_2 = _mm_shuffle_pd(c_20_31, c_21_30, 0x2);
      c_3 = _mm_shuffle_pd(c_21_30, c_20_31, 0x2);
      d_0 = _mm_load_pd(&C[0 + ldc * 0]);
      d_2 = _mm_load_pd(&C[2 + ldc * 0]);
      d_1 = _mm_load_pd(&C[0 + ldc * 1]);
      d_3 = _mm_load_pd(&C[2 + ldc * 1]);
      if (alg == 1) {
        d_0 = _mm_add_pd(d_0, c_0);
        d_1 = _mm_add_pd(d_1, c_1);
        d_2 = _mm_add_pd(d_2, c_2);
        d_3 = _mm_add_pd(d_3, c_3);
      } else {
        d_0 = _mm_sub_pd(d_0, c_0);
        d_1 = _mm_sub_pd(d_1, c_1);
        d_2 = _mm_sub_pd(d_2, c_2);
        d_3 = _mm_sub_pd(d_3, c_3);
      }
      if (td == 0) {
        goto store_n;
      } else {
        t_0 = d_0;
        d_0 = _mm_unpacklo_pd(d_0, d_1);
        d_1 = _mm_unpackhi_pd(t_0, d_1);
        t_0 = d_2;
        d_2 = _mm_unpacklo_pd(d_2, d_3);
        d_3 = _mm_unpackhi_pd(t_0, d_3);
        goto store_t;
      }
    } else {
      c_0 = _mm_unpacklo_pd(c_00_11, c_01_10);
      c_1 = _mm_unpackhi_pd(c_01_10, c_00_11);
      c_2 = _mm_unpacklo_pd(c_20_31, c_21_30);
      c_3 = _mm_unpackhi_pd(c_21_30, c_20_31);
      d_0 = _mm_load_pd(&C[0 + ldc * 0]);
      d_1 = _mm_load_pd(&C[0 + ldc * 1]);
      d_2 = _mm_load_pd(&C[0 + ldc * 2]);
      d_3 = _mm_load_pd(&C[0 + ldc * 3]);
      if (alg == 1) {
        d_0 = _mm_add_pd(d_0, c_0);
        d_1 = _mm_add_pd(d_1, c_1);
        d_2 = _mm_add_pd(d_2, c_2);
        d_3 = _mm_add_pd(d_3, c_3);
      } else {
        d_0 = _mm_sub_pd(d_0, c_0);
        d_1 = _mm_sub_pd(d_1, c_1);
        d_2 = _mm_sub_pd(d_2, c_2);
        d_3 = _mm_sub_pd(d_3, c_3);
      }
      if (td == 0) {
        t_0 = d_0;
        d_0 = _mm_unpacklo_pd(d_0, d_1);
        d_1 = _mm_unpackhi_pd(t_0, d_1);
        t_0 = d_2;
        d_2 = _mm_unpacklo_pd(d_2, d_3);
        d_3 = _mm_unpackhi_pd(t_0, d_3);
        goto store_n;
      } else {
        goto store_t;
      }
    }
  }
store_n:
  if (km >= 4) {
    _mm_store_pd(&D[0 + ldc * 0], d_0);
    _mm_store_pd(&D[2 + ldc * 0], d_2);
    if (kn >= 2) {
      _mm_store_pd(&D[0 + ldc * 1], d_1);
      _mm_store_pd(&D[2 + ldc * 1], d_3);
    }
  } else {
    _mm_store_pd(&D[0 + ldc * 0], d_0);
    _mm_store_sd(&D[2 + ldc * 0], d_2);
    if (kn >= 2) {
      _mm_store_pd(&D[0 + ldc * 1], d_1);
      _mm_store_sd(&D[2 + ldc * 1], d_3);
    }
  }
  return;
store_t:
  if (kn >= 2) {
    _mm_store_pd(&D[0 + ldc * 0], d_0);
    _mm_store_pd(&D[0 + ldc * 1], d_1);
    _mm_store_pd(&D[0 + ldc * 2], d_2);
    if (km >= 4)
      _mm_store_pd(&D[0 + ldc * 3], d_3);
  } else {
    _mm_store_sd(&D[0 + ldc * 0], d_0);
    _mm_store_sd(&D[0 + ldc * 1], d_1);
    _mm_store_sd(&D[0 + ldc * 2], d_2);
    if (km >= 4)
      _mm_store_sd(&D[0 + ldc * 3], d_3);
  }
  return;
}


x86 assembly (clang, -O0):
<kernel_dgemm_nt_4x2_vs_lib4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x4,-0x2c(%rbp)
mov    $0x0,%al
call   10a0 <_mm_setzero_pd@plt>
mov    %eax,-0x34(%rbp)
mov    $0x0,%al
call   10a0 <_mm_setzero_pd@plt>
mov    %eax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <_mm_setzero_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    $0x0,%al
call   10a0 <_mm_setzero_pd@plt>
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    1532 <kernel_dgemm_nt_4x2_vs_lib4+0x392>
mov    -0x18(%rbp),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x44(%rbp)
mov    -0x18(%rbp),%rdi
add    $0x10,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x4c(%rbp),%esi
mov    $0x1,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x54(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x54(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x50(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x50(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x50(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x58(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x58(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x58(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
add    $0x20,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x44(%rbp)
mov    -0x18(%rbp),%rdi
add    $0x30,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x20,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x4c(%rbp),%esi
mov    $0x1,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x54(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x54(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x50(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x50(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x50(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x58(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x58(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x58(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
add    $0x40,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x44(%rbp)
mov    -0x18(%rbp),%rdi
add    $0x50,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x40,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x4c(%rbp),%esi
mov    $0x1,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x54(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x54(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x50(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x50(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x50(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x58(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x58(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x58(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
add    $0x60,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x44(%rbp)
mov    -0x18(%rbp),%rdi
add    $0x70,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x60,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x4c(%rbp),%esi
mov    $0x1,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x54(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x54(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x50(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x50(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x50(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x58(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x58(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x58(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x20(%rbp)
mov    -0x30(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x30(%rbp)
jmp    1203 <kernel_dgemm_nt_4x2_vs_lib4+0x63>
jmp    1537 <kernel_dgemm_nt_4x2_vs_lib4+0x397>
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1620 <kernel_dgemm_nt_4x2_vs_lib4+0x480>
mov    -0x18(%rbp),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x44(%rbp)
mov    -0x18(%rbp),%rdi
add    $0x10,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x4c(%rbp),%esi
mov    $0x1,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x54(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x54(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x50(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x50(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x50(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x58(%rbp),%esi
call   10b0 <_mm_mul_pd@plt>
mov    %eax,-0x58(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x58(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x20(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1537 <kernel_dgemm_nt_4x2_vs_lib4+0x397>
cmpl   $0x0,0x18(%rbp)
jne    16c2 <kernel_dgemm_nt_4x2_vs_lib4+0x522>
cmpl   $0x0,0x28(%rbp)
jne    1685 <kernel_dgemm_nt_4x2_vs_lib4+0x4e5>
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x70(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x74(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x78(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x7c(%rbp)
jmp    1976 <kernel_dgemm_nt_4x2_vs_lib4+0x7d6>
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,-0x70(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,-0x74(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,-0x78(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,-0x7c(%rbp)
jmp    1a1b <kernel_dgemm_nt_4x2_vs_lib4+0x87b>
cmpl   $0x0,0x20(%rbp)
jne    182b <kernel_dgemm_nt_4x2_vs_lib4+0x68b>
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x60(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x64(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x68(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x28(%rbp),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x70(%rbp)
mov    -0x28(%rbp),%rdi
add    $0x10,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x78(%rbp)
mov    -0x28(%rbp),%rdi
add    $0x20,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x74(%rbp)
mov    -0x28(%rbp),%rdi
add    $0x30,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x7c(%rbp)
cmpl   $0x1,0x18(%rbp)
jne    179b <kernel_dgemm_nt_4x2_vs_lib4+0x5fb>
mov    -0x70(%rbp),%edi
mov    -0x60(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x70(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x64(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x74(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x68(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x78(%rbp)
mov    -0x7c(%rbp),%edi
mov    -0x6c(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x7c(%rbp)
jmp    17d3 <kernel_dgemm_nt_4x2_vs_lib4+0x633>
mov    -0x70(%rbp),%edi
mov    -0x60(%rbp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,-0x70(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x64(%rbp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,-0x74(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x68(%rbp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,-0x78(%rbp)
mov    -0x7c(%rbp),%edi
mov    -0x6c(%rbp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,-0x7c(%rbp)
cmpl   $0x0,0x28(%rbp)
jne    17e2 <kernel_dgemm_nt_4x2_vs_lib4+0x642>
jmp    1976 <kernel_dgemm_nt_4x2_vs_lib4+0x7d6>
mov    -0x70(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x70(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,-0x70(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,-0x74(%rbp)
mov    -0x78(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x7c(%rbp),%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,-0x78(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x7c(%rbp),%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,-0x7c(%rbp)
jmp    1a1b <kernel_dgemm_nt_4x2_vs_lib4+0x87b>
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,-0x60(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,-0x64(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,-0x68(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x28(%rbp),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x70(%rbp)
mov    -0x28(%rbp),%rdi
add    $0x20,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x74(%rbp)
mov    -0x28(%rbp),%rdi
add    $0x40,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x78(%rbp)
mov    -0x28(%rbp),%rdi
add    $0x60,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,-0x7c(%rbp)
cmpl   $0x1,0x18(%rbp)
jne    18e6 <kernel_dgemm_nt_4x2_vs_lib4+0x746>
mov    -0x70(%rbp),%edi
mov    -0x60(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x70(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x64(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x74(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x68(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x78(%rbp)
mov    -0x7c(%rbp),%edi
mov    -0x6c(%rbp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,-0x7c(%rbp)
jmp    191e <kernel_dgemm_nt_4x2_vs_lib4+0x77e>
mov    -0x70(%rbp),%edi
mov    -0x60(%rbp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,-0x70(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x64(%rbp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,-0x74(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x68(%rbp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,-0x78(%rbp)
mov    -0x7c(%rbp),%edi
mov    -0x6c(%rbp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,-0x7c(%rbp)
cmpl   $0x0,0x28(%rbp)
jne    1971 <kernel_dgemm_nt_4x2_vs_lib4+0x7d1>
mov    -0x70(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x70(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,-0x70(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,-0x74(%rbp)
mov    -0x78(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x7c(%rbp),%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,-0x78(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x7c(%rbp),%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,-0x7c(%rbp)
jmp    1976 <kernel_dgemm_nt_4x2_vs_lib4+0x7d6>
jmp    1a1b <kernel_dgemm_nt_4x2_vs_lib4+0x87b>
cmpl   $0x4,-0x4(%rbp)
jl     19cb <kernel_dgemm_nt_4x2_vs_lib4+0x82b>
mov    0x10(%rbp),%rdi
mov    -0x70(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    0x10(%rbp),%rdi
add    $0x10,%rdi
mov    -0x78(%rbp),%esi
call   1030 <_mm_store_pd@plt>
cmpl   $0x2,-0x8(%rbp)
jl     19c6 <kernel_dgemm_nt_4x2_vs_lib4+0x826>
mov    0x10(%rbp),%rdi
add    $0x20,%rdi
mov    -0x74(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    0x10(%rbp),%rdi
add    $0x30,%rdi
mov    -0x7c(%rbp),%esi
call   1030 <_mm_store_pd@plt>
jmp    1a16 <kernel_dgemm_nt_4x2_vs_lib4+0x876>
mov    0x10(%rbp),%rdi
mov    -0x70(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    0x10(%rbp),%rdi
add    $0x10,%rdi
mov    -0x78(%rbp),%esi
call   10c0 <_mm_store_sd@plt>
cmpl   $0x2,-0x8(%rbp)
jl     1a11 <kernel_dgemm_nt_4x2_vs_lib4+0x871>
mov    0x10(%rbp),%rdi
add    $0x20,%rdi
mov    -0x74(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    0x10(%rbp),%rdi
add    $0x30,%rdi
mov    -0x7c(%rbp),%esi
call   10c0 <_mm_store_sd@plt>
jmp    1a16 <kernel_dgemm_nt_4x2_vs_lib4+0x876>
jmp    1ac0 <kernel_dgemm_nt_4x2_vs_lib4+0x920>
cmpl   $0x2,-0x8(%rbp)
jl     1a70 <kernel_dgemm_nt_4x2_vs_lib4+0x8d0>
mov    0x10(%rbp),%rdi
mov    -0x70(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    0x10(%rbp),%rdi
add    $0x20,%rdi
mov    -0x74(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    0x10(%rbp),%rdi
add    $0x40,%rdi
mov    -0x78(%rbp),%esi
call   1030 <_mm_store_pd@plt>
cmpl   $0x4,-0x4(%rbp)
jl     1a6b <kernel_dgemm_nt_4x2_vs_lib4+0x8cb>
mov    0x10(%rbp),%rdi
add    $0x60,%rdi
mov    -0x7c(%rbp),%esi
call   1030 <_mm_store_pd@plt>
jmp    1abb <kernel_dgemm_nt_4x2_vs_lib4+0x91b>
mov    0x10(%rbp),%rdi
mov    -0x70(%rbp),%esi
call   10c0 <_mm_store_sd@plt>
mov    0x10(%rbp),%rdi
add    $0x20,%rdi
mov    -0x74(%rbp),%esi
call   10c0 <_mm_store_sd@plt>
mov    0x10(%rbp),%rdi
add    $0x40,%rdi
mov    -0x78(%rbp),%esi
call   10c0 <_mm_store_sd@plt>
cmpl   $0x4,-0x4(%rbp)
jl     1ab6 <kernel_dgemm_nt_4x2_vs_lib4+0x916>
mov    0x10(%rbp),%rdi
add    $0x60,%rdi
mov    -0x7c(%rbp),%esi
call   10c0 <_mm_store_sd@plt>
jmp    1abb <kernel_dgemm_nt_4x2_vs_lib4+0x91b>
jmp    1ac0 <kernel_dgemm_nt_4x2_vs_lib4+0x920>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dgemm_nt_4x2_vs_lib4>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9,0x50(%rsp)
mov    %r8,%rbp
mov    %rcx,%r13
mov    %edx,%r15d
mov    %esi,0x24(%rsp)
mov    %edi,0x20(%rsp)
mov    0xa8(%rsp),%eax
mov    %eax,0x1c(%rsp)
mov    0xa0(%rsp),%eax
mov    %eax,0x44(%rsp)
mov    0x98(%rsp),%eax
mov    %eax,0x28(%rsp)
mov    0x90(%rsp),%r14
xor    %ebx,%ebx
xor    %eax,%eax
call   10a0 <_mm_setzero_pd@plt>
mov    %eax,0xc(%rsp)
xor    %eax,%eax
call   10a0 <_mm_setzero_pd@plt>
mov    %eax,0x8(%rsp)
xor    %eax,%eax
call   10a0 <_mm_setzero_pd@plt>
mov    %eax,%r12d
xor    %eax,%eax
call   10a0 <_mm_setzero_pd@plt>
cmp    $0x4,%r15d
mov    %r14,0x30(%rsp)
jl     14d0 <kernel_dgemm_nt_4x2_vs_lib4+0x330>
mov    %r15,0x38(%rsp)
lea    -0x3(%r15),%ecx
mov    %ecx,0x48(%rsp)
xor    %ebx,%ebx
mov    %r12d,(%rsp)
mov    0x8(%rsp),%r14d
nopl   (%rax)
mov    %eax,0x4(%rsp)
mov    %ebx,0x8(%rsp)
mov    %rbp,0x10(%rsp)
mov    %r13,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r15d
lea    0x10(%r13),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r12d
mov    %rbp,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    %eax,%esi
mov    $0x1,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %ebx,%esi
call   10b0 <_mm_mul_pd@plt>
mov    0xc(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,0xc(%rsp)
mov    %r12d,%edi
mov    %ebx,%esi
call   10b0 <_mm_mul_pd@plt>
mov    (%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,(%rsp)
mov    %r15d,%edi
mov    %ebp,%esi
call   10b0 <_mm_mul_pd@plt>
mov    %r14d,%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,0x2c(%rsp)
mov    %r12d,%edi
mov    %ebp,%esi
call   10b0 <_mm_mul_pd@plt>
mov    0x4(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,%r12d
lea    0x20(%r13),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r15d
lea    0x30(%r13),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    0x10(%rsp),%rax
lea    0x20(%rax),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    %eax,%esi
mov    $0x1,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %ebx,%esi
call   10b0 <_mm_mul_pd@plt>
mov    0xc(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,0x4(%rsp)
mov    %r14d,%edi
mov    %ebx,%esi
call   10b0 <_mm_mul_pd@plt>
mov    (%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,(%rsp)
mov    %r15d,%edi
mov    %ebp,%esi
call   10b0 <_mm_mul_pd@plt>
mov    0x2c(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,0xc(%rsp)
mov    %r14d,%edi
mov    %ebp,%esi
call   10b0 <_mm_mul_pd@plt>
mov    %r12d,%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,%r12d
lea    0x40(%r13),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r15d
lea    0x50(%r13),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    0x10(%rsp),%rax
lea    0x40(%rax),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    %eax,%esi
mov    $0x1,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %ebx,%esi
call   10b0 <_mm_mul_pd@plt>
mov    0x4(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,0x4c(%rsp)
mov    %r14d,%edi
mov    %ebx,%esi
call   10b0 <_mm_mul_pd@plt>
mov    (%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,(%rsp)
mov    %r15d,%edi
mov    %ebp,%esi
call   10b0 <_mm_mul_pd@plt>
mov    0xc(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,0x2c(%rsp)
mov    %r14d,%edi
mov    %ebp,%esi
call   10b0 <_mm_mul_pd@plt>
mov    %r12d,%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,0x4(%rsp)
lea    0x60(%r13),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%ebx
lea    0x70(%r13),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r12d
mov    0x10(%rsp),%rax
lea    0x60(%rax),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%ebp
mov    %eax,%edi
mov    %eax,%esi
mov    $0x1,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,%r15d
mov    %ebx,%edi
mov    %ebp,%esi
call   10b0 <_mm_mul_pd@plt>
mov    0x4c(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,0xc(%rsp)
mov    %r12d,%edi
mov    %ebp,%esi
mov    0x10(%rsp),%rbp
call   10b0 <_mm_mul_pd@plt>
mov    (%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,(%rsp)
mov    %ebx,%edi
mov    %r15d,%esi
call   10b0 <_mm_mul_pd@plt>
mov    0x2c(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,%r14d
mov    %r12d,%edi
mov    %r15d,%esi
mov    0x8(%rsp),%ebx
call   10b0 <_mm_mul_pd@plt>
mov    0x4(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
sub    $0xffffffffffffff80,%r13
sub    $0xffffffffffffff80,%rbp
add    $0x4,%ebx
cmp    0x48(%rsp),%ebx
jl     1240 <kernel_dgemm_nt_4x2_vs_lib4+0xa0>
mov    %r14d,0x8(%rsp)
mov    (%rsp),%r12d
mov    0x38(%rsp),%r15
cmp    %r15d,%ebx
mov    %r12d,(%rsp)
jge    15ab <kernel_dgemm_nt_4x2_vs_lib4+0x40b>
sub    %ebx,%r15d
mov    0xc(%rsp),%r14d
mov    0x8(%rsp),%ebx
nopl   0x0(%rax)
mov    %ebx,0x8(%rsp)
mov    %eax,0x4(%rsp)
mov    %rbp,0x10(%rsp)
mov    %r15,0x38(%rsp)
mov    %r13,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r12d
lea    0x10(%r13),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r15d
mov    %rbp,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    %eax,%esi
mov    $0x1,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,%ebp
mov    %r12d,%edi
mov    %ebx,%esi
call   10b0 <_mm_mul_pd@plt>
mov    %r14d,%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,%r14d
mov    %r15d,%edi
mov    %ebx,%esi
call   10b0 <_mm_mul_pd@plt>
mov    (%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,(%rsp)
mov    %r12d,%edi
mov    %ebp,%esi
call   10b0 <_mm_mul_pd@plt>
mov    0x8(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,%ebx
mov    %r15d,%edi
mov    %ebp,%esi
mov    0x10(%rsp),%rbp
mov    0x38(%rsp),%r15
call   10b0 <_mm_mul_pd@plt>
mov    0x4(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_add_pd@plt>
add    $0x20,%rbp
add    $0x20,%r13
add    $0xffffffff,%r15d
jne    14f0 <kernel_dgemm_nt_4x2_vs_lib4+0x350>
jmp    15b4 <kernel_dgemm_nt_4x2_vs_lib4+0x414>
mov    0xc(%rsp),%r14d
mov    0x8(%rsp),%ebx
mov    (%rsp),%r13d
cmpl   $0x0,0x28(%rsp)
je     1687 <kernel_dgemm_nt_4x2_vs_lib4+0x4e7>
mov    %eax,%ebp
cmpl   $0x0,0x44(%rsp)
je     16e4 <kernel_dgemm_nt_4x2_vs_lib4+0x544>
mov    %r14d,%edi
mov    %ebx,%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,%r12d
mov    %ebx,%edi
mov    %r14d,%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,0x8(%rsp)
mov    %r13d,%ebx
mov    %r13d,%edi
mov    %ebp,%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,0x4(%rsp)
mov    %ebp,%edi
mov    %r13d,%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,0x10(%rsp)
mov    0x50(%rsp),%rbx
mov    %rbx,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r13d
lea    0x20(%rbx),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r14d
lea    0x40(%rbx),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%ebp
add    $0x60,%rbx
mov    %rbx,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r15d
cmpl   $0x1,0x28(%rsp)
jne    17aa <kernel_dgemm_nt_4x2_vs_lib4+0x60a>
mov    %r13d,%edi
mov    %r12d,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,(%rsp)
mov    %r14d,%edi
mov    0x8(%rsp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,%r13d
mov    %ebp,%edi
mov    0x4(%rsp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,%r12d
mov    %r15d,%edi
mov    0x10(%rsp),%esi
call   1060 <_mm_add_pd@plt>
jmp    17e1 <kernel_dgemm_nt_4x2_vs_lib4+0x641>
cmpl   $0x0,0x1c(%rsp)
je     187b <kernel_dgemm_nt_4x2_vs_lib4+0x6db>
mov    %r14d,%ebp
mov    %r14d,%edi
mov    %ebx,%esi
mov    %eax,%r15d
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,%r14d
mov    %ebx,%edi
mov    %ebp,%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,%ebp
mov    %r13d,%ebx
mov    %r13d,%edi
mov    %r15d,%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,%r12d
mov    %r15d,%edi
mov    %r13d,%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,%r15d
mov    0x30(%rsp),%rbx
cmpl   $0x2,0x24(%rsp)
jge    1803 <kernel_dgemm_nt_4x2_vs_lib4+0x663>
jmp    195e <kernel_dgemm_nt_4x2_vs_lib4+0x7be>
mov    %r14d,%edi
mov    %ebx,%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,%r15d
mov    %ebx,%edi
mov    %r14d,%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,%r14d
mov    %r13d,%ebx
mov    %r13d,%edi
mov    %ebp,%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,0x4(%rsp)
mov    %ebp,%edi
mov    %r13d,%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,(%rsp)
mov    0x50(%rsp),%rbp
mov    %rbp,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r12d
lea    0x10(%rbp),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%ebx
lea    0x20(%rbp),%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%r13d
add    $0x30,%rbp
mov    %rbp,%rdi
call   1090 <_mm_load_pd@plt>
mov    %eax,%ebp
cmpl   $0x1,0x28(%rsp)
jne    18d5 <kernel_dgemm_nt_4x2_vs_lib4+0x735>
mov    %r12d,%edi
mov    %r15d,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,%r12d
mov    %r13d,%edi
mov    %r14d,%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,0x10(%rsp)
mov    %ebx,%edi
mov    0x4(%rsp),%esi
call   1060 <_mm_add_pd@plt>
mov    %eax,%r13d
mov    %ebp,%edi
mov    (%rsp),%esi
call   1060 <_mm_add_pd@plt>
jmp    190a <kernel_dgemm_nt_4x2_vs_lib4+0x76a>
mov    %r13d,%edi
mov    %r12d,%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,(%rsp)
mov    %r14d,%edi
mov    0x8(%rsp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,%r13d
mov    %ebp,%edi
mov    0x4(%rsp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,%r12d
mov    %r15d,%edi
mov    0x10(%rsp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,%r15d
mov    0x30(%rsp),%rbx
mov    0x1c(%rsp),%eax
test   %eax,%eax
je     1839 <kernel_dgemm_nt_4x2_vs_lib4+0x699>
mov    (%rsp),%r14d
mov    %r13d,%ebp
cmpl   $0x2,0x24(%rsp)
jl     195e <kernel_dgemm_nt_4x2_vs_lib4+0x7be>
mov    %rbx,%rdi
mov    %r14d,%esi
call   1030 <_mm_store_pd@plt>
lea    0x20(%rbx),%rdi
mov    %ebp,%esi
call   1030 <_mm_store_pd@plt>
lea    0x40(%rbx),%rdi
mov    %r12d,%esi
call   1030 <_mm_store_pd@plt>
cmpl   $0x4,0x20(%rsp)
jl     1a19 <kernel_dgemm_nt_4x2_vs_lib4+0x879>
add    $0x60,%rbx
jmp    19c7 <kernel_dgemm_nt_4x2_vs_lib4+0x827>
mov    (%rsp),%ebp
mov    %ebp,%edi
mov    %r13d,%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    %r13d,%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,0x10(%rsp)
mov    %r12d,%edi
mov    %r15d,%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,%r13d
mov    %r12d,%edi
mov    %r14d,%r12d
mov    %r15d,%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,%r15d
jmp    1991 <kernel_dgemm_nt_4x2_vs_lib4+0x7f1>
mov    %r14d,%edi
mov    %ebx,%esi
mov    $0x2,%edx
mov    %eax,%r15d
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,%r12d
mov    %ebx,%edi
mov    %r14d,%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,0x10(%rsp)
mov    %r13d,%ebx
mov    %r13d,%edi
mov    %r15d,%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,%r13d
mov    %r15d,%edi
mov    %ebx,%esi
mov    $0x2,%edx
call   1080 <_mm_shuffle_pd@plt>
mov    %eax,%r15d
mov    0x30(%rsp),%rbx
jmp    1991 <kernel_dgemm_nt_4x2_vs_lib4+0x7f1>
mov    %r12d,%edi
mov    %r15d,%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,%r12d
mov    %r13d,%edi
mov    %r14d,%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,0x10(%rsp)
mov    %ebx,%edi
mov    0x4(%rsp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,%r13d
mov    %ebp,%edi
mov    (%rsp),%esi
call   1040 <_mm_sub_pd@plt>
mov    %eax,%r15d
mov    0x30(%rsp),%rbx
mov    0x1c(%rsp),%eax
test   %eax,%eax
je     1991 <kernel_dgemm_nt_4x2_vs_lib4+0x7f1>
mov    %r12d,%edi
mov    0x10(%rsp),%ebp
mov    %ebp,%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,%r14d
mov    %r12d,%edi
mov    %ebp,%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,%ebp
mov    %r13d,%edi
mov    %r15d,%esi
call   1050 <_mm_unpacklo_pd@plt>
mov    %eax,%r12d
mov    %r13d,%edi
mov    %r15d,%esi
call   1070 <_mm_unpackhi_pd@plt>
mov    %eax,%r15d
cmpl   $0x2,0x24(%rsp)
jge    1803 <kernel_dgemm_nt_4x2_vs_lib4+0x663>
mov    %rbx,%rdi
mov    %r14d,%esi
call   10c0 <_mm_store_sd@plt>
lea    0x20(%rbx),%rdi
mov    %ebp,%esi
call   10c0 <_mm_store_sd@plt>
lea    0x40(%rbx),%rdi
mov    %r12d,%esi
call   10c0 <_mm_store_sd@plt>
cmpl   $0x4,0x20(%rsp)
jl     1a19 <kernel_dgemm_nt_4x2_vs_lib4+0x879>
add    $0x60,%rbx
jmp    1a00 <kernel_dgemm_nt_4x2_vs_lib4+0x860>
mov    %rbx,%rdi
mov    %r12d,%esi
call   1030 <_mm_store_pd@plt>
lea    0x10(%rbx),%rdi
cmpl   $0x4,0x20(%rsp)
jl     19e0 <kernel_dgemm_nt_4x2_vs_lib4+0x840>
mov    %r13d,%esi
call   1030 <_mm_store_pd@plt>
cmpl   $0x2,0x24(%rsp)
jl     1a19 <kernel_dgemm_nt_4x2_vs_lib4+0x879>
lea    0x20(%rbx),%rdi
mov    0x10(%rsp),%esi
call   1030 <_mm_store_pd@plt>
add    $0x30,%rbx
mov    %rbx,%rdi
mov    %r15d,%esi
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <_mm_store_pd@plt>
mov    %r13d,%esi
call   10c0 <_mm_store_sd@plt>
cmpl   $0x2,0x24(%rsp)
jl     1a19 <kernel_dgemm_nt_4x2_vs_lib4+0x879>
lea    0x20(%rbx),%rdi
mov    0x10(%rsp),%esi
call   1030 <_mm_store_pd@plt>
add    $0x30,%rbx
mov    %rbx,%rdi
mov    %r15d,%esi
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10c0 <_mm_store_sd@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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