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

/* Forward declarations */

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

/* Variables and functions */
int /*<<< orphan*/ _mm_load_sd(double *);
int /*<<< orphan*/ _mm_loadu_pd(double *);
int /*<<< orphan*/ _mm_mul_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_shuffle_pd(int /*<<< orphan*/, int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_storeu_pd(double *, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpacklo_pd(int /*<<< orphan*/, int /*<<< orphan*/);
void transpose_misaligned(double *a, double *b, int N1, int N2, double factor) {
  int i, j, k, k1, it, jt, itt, jtt, it_bound, jt_bound, itt_bound, jtt_bound;
  int conflict, tmp, tmpN, offset, line_offset, setnum,
      set[8192 / (4 * sizeof(double))];
  double *pA, *pB;
  register __m128d x, y, z, w, t, t1, fac_vector;
  fac_vector = _mm_load_sd(&factor);
  fac_vector = _mm_unpacklo_pd(fac_vector, fac_vector);
  itt_bound = (N1 / 8) * 8;
  for (itt = 0; itt < itt_bound; itt = itt + 5 * 8) {
    jtt_bound = (N2 / 8) * 8;
    for (jtt = 0; jtt < jtt_bound; jtt = jtt + 5 * 8) {
      it_bound = (itt + 5 * 8 > itt_bound) ? itt_bound : itt + 5 * 8;
      for (it = itt; it < it_bound; it = it + 8) {
        jt_bound = (jtt + 5 * 8 > itt_bound) ? jtt_bound : jtt + 5 * 8;
        for (jt = jtt; jt < jt_bound; jt = jt + 8) {
          k = 0;
          for (j = jt; j < jt + 8; j = j + 2) {
            for (i = it; i < it + 8; i = i + 2) {
              pA = a + i * N2 + j;
              pB = b + j * N1 + i;
              x = _mm_loadu_pd(pA);
              x = _mm_mul_pd(x, fac_vector);
              y = _mm_loadu_pd(pA + N2);
              y = _mm_mul_pd(y, fac_vector);
              z = _mm_shuffle_pd(x, y, 0);
              w = _mm_shuffle_pd(x, y, 3);
              _mm_storeu_pd(pB, z);
              _mm_storeu_pd(pB + N1, w);
            }
          }
        }
      }
    }
    for (i = itt; i < itt + 5 * 8 && i < itt_bound; i++) {
      for (j = jtt_bound; j < N2; j++) {
        b[j * N1 + i] = factor * a[i * N2 + j];
      }
    }
  }
  for (i = itt_bound; i < N1; i++) {
    for (j = 0; j < N2; j++) {
      b[j * N1 + i] = factor * a[i * N2 + j];
    }
  }
}


x86 assembly (clang, -O0):
<transpose_misaligned>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4b0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
lea    -0x20(%rbp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,-0x49c(%rbp)
mov    -0x49c(%rbp),%edi
mov    -0x49c(%rbp),%esi
call   1030 <_mm_unpacklo_pd@plt>
mov    %eax,-0x49c(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
shl    $0x3,%eax
mov    %eax,-0x4c(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    14ca <transpose_misaligned+0x36a>
mov    -0x18(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
shl    $0x3,%eax
mov    %eax,-0x50(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1412 <transpose_misaligned+0x2b2>
mov    -0x3c(%rbp),%eax
add    $0x28,%eax
cmp    -0x4c(%rbp),%eax
jle    1209 <transpose_misaligned+0xa9>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x4a0(%rbp)
jmp    1215 <transpose_misaligned+0xb5>
mov    -0x3c(%rbp),%eax
add    $0x28,%eax
mov    %eax,-0x4a0(%rbp)
mov    -0x4a0(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    13ff <transpose_misaligned+0x29f>
mov    -0x40(%rbp),%eax
add    $0x28,%eax
cmp    -0x4c(%rbp),%eax
jle    124d <transpose_misaligned+0xed>
mov    -0x50(%rbp),%eax
mov    %eax,-0x4a4(%rbp)
jmp    1259 <transpose_misaligned+0xf9>
mov    -0x40(%rbp),%eax
add    $0x28,%eax
mov    %eax,-0x4a4(%rbp)
mov    -0x4a4(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    13ec <transpose_misaligned+0x28c>
movl   $0x0,-0x2c(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x38(%rbp),%ecx
add    $0x8,%ecx
cmp    %ecx,%eax
jge    13d9 <transpose_misaligned+0x279>
mov    -0x34(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x34(%rbp),%ecx
add    $0x8,%ecx
cmp    %ecx,%eax
jge    13c6 <transpose_misaligned+0x266>
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x18(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x478(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x14(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x480(%rbp)
mov    -0x478(%rbp),%rdi
call   1080 <_mm_loadu_pd@plt>
mov    %eax,-0x484(%rbp)
mov    -0x484(%rbp),%edi
mov    -0x49c(%rbp),%esi
call   1070 <_mm_mul_pd@plt>
mov    %eax,-0x484(%rbp)
mov    -0x478(%rbp),%rdi
movslq -0x18(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
call   1080 <_mm_loadu_pd@plt>
mov    %eax,-0x488(%rbp)
mov    -0x488(%rbp),%edi
mov    -0x49c(%rbp),%esi
call   1070 <_mm_mul_pd@plt>
mov    %eax,-0x488(%rbp)
mov    -0x484(%rbp),%edi
mov    -0x488(%rbp),%esi
xor    %edx,%edx
call   1050 <_mm_shuffle_pd@plt>
mov    %eax,-0x48c(%rbp)
mov    -0x484(%rbp),%edi
mov    -0x488(%rbp),%esi
mov    $0x3,%edx
call   1050 <_mm_shuffle_pd@plt>
mov    %eax,-0x490(%rbp)
mov    -0x480(%rbp),%rdi
mov    -0x48c(%rbp),%esi
call   1060 <_mm_storeu_pd@plt>
mov    -0x480(%rbp),%rdi
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x490(%rbp),%esi
call   1060 <_mm_storeu_pd@plt>
mov    -0x24(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
jmp    1298 <transpose_misaligned+0x138>
jmp    13cb <transpose_misaligned+0x26b>
mov    -0x28(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x28(%rbp)
jmp    1281 <transpose_misaligned+0x121>
jmp    13de <transpose_misaligned+0x27e>
mov    -0x38(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x38(%rbp)
jmp    1268 <transpose_misaligned+0x108>
jmp    13f1 <transpose_misaligned+0x291>
mov    -0x34(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x34(%rbp)
jmp    1224 <transpose_misaligned+0xc4>
jmp    1404 <transpose_misaligned+0x2a4>
mov    -0x40(%rbp),%eax
add    $0x28,%eax
mov    %eax,-0x40(%rbp)
jmp    11e0 <transpose_misaligned+0x80>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%ecx
mov    -0x3c(%rbp),%edx
add    $0x28,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x4a5(%rbp)
jge    1440 <transpose_misaligned+0x2e0>
mov    -0x24(%rbp),%eax
cmp    -0x4c(%rbp),%eax
setl   %al
mov    %al,-0x4a5(%rbp)
mov    -0x4a5(%rbp),%al
test   $0x1,%al
jne    1453 <transpose_misaligned+0x2f3>
jmp    14b7 <transpose_misaligned+0x357>
mov    -0x50(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    14a4 <transpose_misaligned+0x344>
movsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1459 <transpose_misaligned+0x2f9>
jmp    14a9 <transpose_misaligned+0x349>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1418 <transpose_misaligned+0x2b8>
jmp    14bc <transpose_misaligned+0x35c>
mov    -0x3c(%rbp),%eax
add    $0x28,%eax
mov    %eax,-0x3c(%rbp)
jmp    11bc <transpose_misaligned+0x5c>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1541 <transpose_misaligned+0x3e1>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    152e <transpose_misaligned+0x3ce>
movsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    14e3 <transpose_misaligned+0x383>
jmp    1533 <transpose_misaligned+0x3d3>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    14d0 <transpose_misaligned+0x370>
add    $0x4b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<transpose_misaligned>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x228,%rsp
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %rsi,0x18(%rsp)
mov    %rdi,0x28(%rsp)
movsd  %xmm0,0x50(%rsp)
lea    0x50(%rsp),%rdi
call   1040 <_mm_load_sd@plt>
mov    %eax,%edi
mov    %eax,%esi
call   1030 <_mm_unpacklo_pd@plt>
lea    0x7(%rbp),%ecx
test   %ebp,%ebp
cmovns %ebp,%ecx
and    $0xfffffff8,%ecx
movslq %r14d,%rbx
mov    %rbp,0x60(%rsp)
cmp    $0x8,%ebp
jl     1ab4 <transpose_misaligned+0x954>
mov    %eax,%r13d
lea    0x7(%rbx),%eax
test   %ebx,%ebx
cmovns %r14d,%eax
and    $0xfffffff8,%eax
mov    0x60(%rsp),%r8d
mov    %eax,0x14(%rsp)
movslq %eax,%r9
movslq %ecx,%r10
mov    %r9,%r11
not    %r11
mov    %r9,%rax
imul   %r8,%rax
mov    %rax,0x188(%rsp)
lea    0x1(%r9),%rax
mov    %rax,0x180(%rsp)
mov    %rbx,%rax
neg    %rax
mov    %rax,0x190(%rsp)
mov    0x18(%rsp),%rsi
lea    (%rsi,%r8,8),%rax
add    $0x30,%rax
mov    %rax,0xb8(%rsp)
mov    %r8,%rax
shl    $0x6,%rax
mov    %rax,0x200(%rsp)
lea    (%rax,%rax,4),%rax
mov    %rax,0x198(%rsp)
mov    %r8,%rax
shl    $0x4,%rax
mov    %rax,0x110(%rsp)
lea    0x30(%rsi),%rax
mov    %rax,0xb0(%rsp)
lea    (%rsi,%r8,8),%rax
add    $0x20,%rax
mov    %rax,0xa8(%rsp)
mov    %rbx,%rax
shl    $0x6,%rax
lea    0x20(%rsi),%rdx
mov    %rdx,0xa0(%rsp)
lea    (%rsi,%r8,8),%rdx
add    $0x10,%rdx
mov    %rdx,0x98(%rsp)
lea    0x10(%rsi),%rdx
mov    %rdx,0x90(%rsp)
lea    (%rsi,%r8,8),%rdx
mov    %rdx,0x88(%rsp)
mov    %rax,0x1a8(%rsp)
lea    (%rax,%rax,4),%rax
mov    %rax,0x148(%rsp)
lea    0x0(,%rbx,8),%rax
mov    %rax,0x8(%rsp)
mov    0x28(%rsp),%rdx
lea    0x8(%rdx),%rax
mov    %rax,0x80(%rsp)
lea    0x0(,%r8,8),%rax
mov    %rax,0x178(%rsp)
xor    %eax,%eax
mov    %rax,0x78(%rsp)
mov    %rdx,0x70(%rsp)
mov    %rsi,0x68(%rsp)
xor    %r15d,%r15d
mov    %r14d,0x58(%rsp)
mov    %rbx,0x170(%rsp)
mov    %ecx,0x10(%rsp)
mov    %r13d,0x4(%rsp)
mov    %r8,0x168(%rsp)
mov    %r9,0x160(%rsp)
mov    %r10,0x158(%rsp)
mov    %r11,0x150(%rsp)
jmp    13bd <transpose_misaligned+0x25d>
nopl   0x0(%rax)
addq   $0x140,0xb8(%rsp)
addq   $0x140,0xb0(%rsp)
addq   $0x140,0xa8(%rsp)
addq   $0x140,0xa0(%rsp)
addq   $0x140,0x98(%rsp)
addq   $0x140,0x90(%rsp)
addq   $0x140,0x68(%rsp)
addq   $0x140,0x88(%rsp)
mov    0x148(%rsp),%rax
add    %rax,0x70(%rsp)
add    %rax,0x80(%rsp)
addq   $0x140,0x78(%rsp)
mov    0x10(%rsp),%ecx
mov    0x40(%rsp),%r15
cmp    %r15d,%ecx
jle    1ab4 <transpose_misaligned+0x954>
lea    0x28(%r15),%rax
mov    %rax,0x40(%rsp)
cmp    $0x8,%r14d
jl     1990 <transpose_misaligned+0x830>
mov    0x10(%rsp),%eax
mov    0x40(%rsp),%rcx
cmp    %ecx,%eax
cmovl  %eax,%ecx
mov    %ecx,0x5c(%rsp)
movslq %ecx,%rax
mov    %rax,0x1a0(%rsp)
mov    0x70(%rsp),%rax
mov    %rax,0x100(%rsp)
mov    0x88(%rsp),%rax
mov    %rax,0xf8(%rsp)
mov    0x68(%rsp),%rax
mov    %rax,0xf0(%rsp)
mov    0x90(%rsp),%rax
mov    %rax,0xe8(%rsp)
mov    0x98(%rsp),%rax
mov    %rax,0xe0(%rsp)
mov    0xa0(%rsp),%rax
mov    %rax,0xd8(%rsp)
mov    0xa8(%rsp),%rax
mov    %rax,0xd0(%rsp)
mov    0xb0(%rsp),%rax
mov    %rax,0xc8(%rsp)
mov    0xb8(%rsp),%rax
mov    %rax,0xc0(%rsp)
xor    %eax,%eax
mov    %rax,0x30(%rsp)
mov    %r15,0x108(%rsp)
jmp    1504 <transpose_misaligned+0x3a4>
nopl   0x0(%rax,%rax,1)
mov    0x30(%rsp),%rcx
add    $0x28,%rcx
mov    0x198(%rsp),%rax
add    %rax,0xc0(%rsp)
add    %rax,0xc8(%rsp)
add    %rax,0xd0(%rsp)
add    %rax,0xd8(%rsp)
add    %rax,0xe0(%rsp)
add    %rax,0xe8(%rsp)
add    %rax,0xf0(%rsp)
add    %rax,0xf8(%rsp)
addq   $0x140,0x100(%rsp)
mov    %rcx,0x30(%rsp)
cmp    %ecx,0x14(%rsp)
mov    0x108(%rsp),%r15
jle    1990 <transpose_misaligned+0x830>
cmp    0x1a0(%rsp),%r15
jge    1490 <transpose_misaligned+0x330>
mov    0x30(%rsp),%rax
add    $0x28,%eax
cmp    0x10(%rsp),%eax
cmovg  0x14(%rsp),%eax
mov    %eax,0x24(%rsp)
mov    0x100(%rsp),%rax
mov    0xf8(%rsp),%rcx
mov    0xf0(%rsp),%rdx
mov    0xe8(%rsp),%rsi
mov    0xe0(%rsp),%rdi
mov    0xd8(%rsp),%rbp
mov    0xd0(%rsp),%r10
mov    0xc8(%rsp),%r8
mov    0xc0(%rsp),%r9
mov    0x108(%rsp),%rbx
jmp    1606 <transpose_misaligned+0x4a6>
nopl   0x0(%rax,%rax,1)
mov    0x1b0(%rsp),%rbx
add    $0x8,%rbx
mov    0x1b8(%rsp),%r9
add    $0x40,%r9
mov    0x1c0(%rsp),%r8
add    $0x40,%r8
mov    0x1c8(%rsp),%r10
add    $0x40,%r10
mov    0x1d0(%rsp),%rbp
add    $0x40,%rbp
mov    0x1d8(%rsp),%rdi
add    $0x40,%rdi
mov    0x1e0(%rsp),%rsi
add    $0x40,%rsi
mov    0x1e8(%rsp),%rdx
add    $0x40,%rdx
mov    0x1f0(%rsp),%rcx
add    $0x40,%rcx
mov    0x1f8(%rsp),%rax
add    0x1a8(%rsp),%rax
cmp    %ebx,0x5c(%rsp)
jle    1490 <transpose_misaligned+0x330>
mov    %rbx,0x1b0(%rsp)
mov    %rax,0x1f8(%rsp)
mov    %rcx,0x1f0(%rsp)
mov    %rdx,0x1e8(%rsp)
mov    %rsi,0x1e0(%rsp)
mov    %rdi,0x1d8(%rsp)
mov    %rbp,0x1d0(%rsp)
mov    %rbp,%rbx
mov    %r10,0x1c8(%rsp)
mov    %r8,0x1c0(%rsp)
mov    %r9,0x1b8(%rsp)
mov    %r9,%rbp
mov    0x30(%rsp),%r9
mov    %r9,0x38(%rsp)
cmp    %r9d,0x24(%rsp)
jle    1580 <transpose_misaligned+0x420>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r8,0x118(%rsp)
mov    %r10,0x120(%rsp)
mov    %rbx,0x128(%rsp)
mov    %rdi,0x130(%rsp)
mov    %rsi,0x138(%rsp)
mov    %rcx,0x140(%rsp)
mov    0x38(%rsp),%rsi
lea    0x8(%rsi),%rcx
mov    %rcx,0x38(%rsp)
mov    %rax,0x208(%rsp)
xor    %r15d,%r15d
mov    %rdx,0x218(%rsp)
mov    %rbp,0x210(%rsp)
nopl   0x0(%rax)
mov    %rax,0x48(%rsp)
mov    %rsi,0x220(%rsp)
lea    (%rdx,%r15,1),%rbx
mov    0x48(%rsp),%rdi
call   1080 <_mm_loadu_pd@plt>
mov    %eax,%edi
mov    %r13d,%esi
call   1070 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    0x8(%rsp),%rax
mov    0x48(%rsp),%rcx
lea    (%rcx,%rax,1),%r12
mov    %r12,%rdi
call   1080 <_mm_loadu_pd@plt>
mov    %eax,%edi
mov    %r13d,%esi
call   1070 <_mm_mul_pd@plt>
mov    %eax,%r13d
mov    %ebp,%edi
mov    %eax,%esi
xor    %edx,%edx
call   1050 <_mm_shuffle_pd@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    %r13d,%esi
mov    $0x3,%edx
call   1050 <_mm_shuffle_pd@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    %r14d,%esi
call   1060 <_mm_storeu_pd@plt>
mov    0x140(%rsp),%rax
lea    (%rax,%r15,1),%rdi
mov    %ebp,%esi
call   1060 <_mm_storeu_pd@plt>
mov    0x138(%rsp),%rax
lea    (%rax,%r15,1),%r14
add    0x8(%rsp),%r12
mov    %r12,%rdi
call   1080 <_mm_loadu_pd@plt>
mov    %eax,%edi
mov    0x4(%rsp),%esi
call   1070 <_mm_mul_pd@plt>
mov    %eax,%ebp
add    0x8(%rsp),%r12
mov    %r12,%rdi
call   1080 <_mm_loadu_pd@plt>
mov    %eax,%edi
mov    0x4(%rsp),%esi
call   1070 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %eax,%esi
xor    %edx,%edx
call   1050 <_mm_shuffle_pd@plt>
mov    %eax,%r13d
mov    %ebp,%edi
mov    %ebx,%esi
mov    $0x3,%edx
call   1050 <_mm_shuffle_pd@plt>
mov    %eax,%ebx
mov    %r14,%rdi
mov    %r13d,%esi
call   1060 <_mm_storeu_pd@plt>
mov    0x130(%rsp),%rax
lea    (%rax,%r15,1),%rdi
mov    %ebx,%esi
call   1060 <_mm_storeu_pd@plt>
mov    0x128(%rsp),%rax
lea    (%rax,%r15,1),%r14
add    0x8(%rsp),%r12
mov    %r12,%rdi
call   1080 <_mm_loadu_pd@plt>
mov    %eax,%edi
mov    0x4(%rsp),%esi
call   1070 <_mm_mul_pd@plt>
mov    %eax,%ebx
add    0x8(%rsp),%r12
mov    %r12,%rdi
call   1080 <_mm_loadu_pd@plt>
mov    %eax,%edi
mov    0x4(%rsp),%esi
call   1070 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %eax,%esi
xor    %edx,%edx
call   1050 <_mm_shuffle_pd@plt>
mov    %eax,%r13d
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x3,%edx
call   1050 <_mm_shuffle_pd@plt>
mov    %eax,%ebx
mov    %r14,%rdi
mov    %r13d,%esi
mov    0x4(%rsp),%r13d
call   1060 <_mm_storeu_pd@plt>
mov    0x120(%rsp),%rax
lea    (%rax,%r15,1),%rdi
mov    %ebx,%esi
call   1060 <_mm_storeu_pd@plt>
mov    0x118(%rsp),%rax
lea    (%rax,%r15,1),%r14
add    0x8(%rsp),%r12
mov    %r12,%rdi
call   1080 <_mm_loadu_pd@plt>
mov    %eax,%edi
mov    %r13d,%esi
call   1070 <_mm_mul_pd@plt>
mov    %eax,%ebx
add    0x8(%rsp),%r12
mov    %r12,%rdi
call   1080 <_mm_loadu_pd@plt>
mov    %eax,%edi
mov    %r13d,%esi
call   1070 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %eax,%esi
xor    %edx,%edx
call   1050 <_mm_shuffle_pd@plt>
mov    %eax,%r12d
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x3,%edx
call   1050 <_mm_shuffle_pd@plt>
mov    %eax,%ebx
mov    %r14,%rdi
mov    0x210(%rsp),%rbp
mov    %r12d,%esi
call   1060 <_mm_storeu_pd@plt>
lea    (%r15,%rbp,1),%rdi
mov    %ebx,%esi
call   1060 <_mm_storeu_pd@plt>
mov    0x48(%rsp),%rax
mov    0x220(%rsp),%rsi
mov    0x218(%rsp),%rdx
add    $0x2,%rsi
add    0x110(%rsp),%r15
add    $0x10,%rax
cmp    0x38(%rsp),%rsi
jb     16e0 <transpose_misaligned+0x580>
mov    0x200(%rsp),%rax
add    %rax,%rbp
mov    0x118(%rsp),%r11
add    %rax,%r11
mov    0x120(%rsp),%r9
add    %rax,%r9
mov    0x128(%rsp),%r8
add    %rax,%r8
mov    0x130(%rsp),%rbx
add    %rax,%rbx
mov    0x138(%rsp),%rdi
add    %rax,%rdi
add    %rax,%rdx
mov    0x140(%rsp),%rsi
add    %rax,%rsi
mov    0x208(%rsp),%rax
add    $0x40,%rax
mov    0x38(%rsp),%rcx
cmp    %ecx,0x24(%rsp)
mov    %rsi,%rcx
mov    %rdi,%rsi
mov    %rbx,%rdi
mov    %r8,%rbx
mov    %r9,%r10
mov    %r11,%r8
jg     1680 <transpose_misaligned+0x520>
jmp    1580 <transpose_misaligned+0x420>
mov    0x158(%rsp),%r10
cmp    %r10,%r15
mov    0x58(%rsp),%r14d
mov    0x170(%rsp),%rbx
mov    0x168(%rsp),%r8
mov    0x160(%rsp),%r9
mov    0x150(%rsp),%r11
jge    1330 <transpose_misaligned+0x1d0>
movsd  0x50(%rsp),%xmm0
mov    0x78(%rsp),%rax
mov    0x80(%rsp),%rcx
nopl   0x0(%rax)
cmp    %r14d,0x14(%rsp)
jge    1a8b <transpose_misaligned+0x92b>
mov    %r9,%rdx
test   $0x1,%bl
je     1a2b <transpose_misaligned+0x8cb>
mov    %r15,%rsi
mov    %r15,%rdx
imul   %rbx,%rdx
add    %r9,%rdx
mov    0x28(%rsp),%rdi
movsd  (%rdi,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
mov    0x188(%rsp),%rdx
add    %r15,%rdx
mov    0x18(%rsp),%rsi
movsd  %xmm1,(%rsi,%rdx,8)
mov    0x180(%rsp),%rdx
cmp    0x190(%rsp),%r11
mov    0x110(%rsp),%r12
je     1a8b <transpose_misaligned+0x92b>
mov    %r8,%rsi
imul   %rdx,%rsi
add    %r15,%rsi
lea    0x1(%rdx),%rdi
imul   0x178(%rsp),%rdi
add    %rax,%rdi
mov    0x18(%rsp),%rbp
nopl   0x0(%rax)
movsd  -0x8(%rcx,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x0(%rbp,%rsi,8)
movsd  (%rcx,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x0(%rbp,%rdi,1)
add    $0x2,%rdx
add    %r12,%rbp
cmp    %rdx,%rbx
jne    1a60 <transpose_misaligned+0x900>
add    $0x1,%r15
cmp    0x40(%rsp),%r15
mov    0x8(%rsp),%rdx
jae    1330 <transpose_misaligned+0x1d0>
add    %rdx,%rcx
add    $0x8,%rax
cmp    %r10,%r15
jl     19e0 <transpose_misaligned+0x880>
jmp    1330 <transpose_misaligned+0x1d0>
mov    0x60(%rsp),%rax
cmp    %eax,%ecx
jge    1bb9 <transpose_misaligned+0xa59>
movslq %ecx,%r11
movsd  0x50(%rsp),%xmm0
movslq %eax,%r10
mov    %r14d,%r8d
mov    %r8d,%r13d
and    $0xfffffffe,%r13d
mov    %rbx,%rax
imul   %r11,%rax
mov    0x28(%rsp),%rcx
lea    (%rcx,%rax,8),%rdi
add    $0x8,%rdi
lea    0x0(,%rbx,8),%r9
lea    (%r10,%r11,1),%rax
mov    0x18(%rsp),%rdx
lea    (%rdx,%rax,8),%rsi
mov    %r10,%r15
shl    $0x4,%r15
lea    (%rdx,%r11,8),%rbp
mov    0x28(%rsp),%rcx
jmp    1b38 <transpose_misaligned+0x9d8>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r11
add    %r9,%rdi
add    $0x8,%rsi
add    $0x8,%rbp
cmp    %r10,%r11
je     1bb9 <transpose_misaligned+0xa59>
test   %r14d,%r14d
jle    1b20 <transpose_misaligned+0x9c0>
cmp    $0x1,%r14d
jne    1b50 <transpose_misaligned+0x9f0>
xor    %edx,%edx
jmp    1b8a <transpose_misaligned+0xa2a>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  -0x8(%rdi,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x0(%rbp,%rax,1)
movsd  (%rdi,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rsi,%rax,1)
add    $0x2,%rdx
add    %r15,%rax
cmp    %rdx,%r13
jne    1b60 <transpose_misaligned+0xa00>
test   $0x1,%r8b
je     1b20 <transpose_misaligned+0x9c0>
mov    %r11,%rax
imul   %rbx,%rax
add    %rdx,%rax
movsd  (%rcx,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
imul   %r10,%rdx
add    %r11,%rdx
mov    0x18(%rsp),%rax
movsd  %xmm1,(%rax,%rdx,8)
jmp    1b20 <transpose_misaligned+0x9c0>
add    $0x228,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @transpose_misaligned(double* %0, double* %1, i32 %2, i32 %3, double %4) {
%6 = alloca double
store double %4, double* %6
%7 = call i32 @_mm_load_sd(double* %6)
%8 = call i32 @_mm_unpacklo_pd(i32 %7, i32 %7)
%9 = sdiv i32 %2, 8
%10 = shl nsw i32 %9, 3
%11 = icmp sgt i32 %2, 7
br i1 %11, label %12, label %31
12: ; preds = %5
%13 = sdiv i32 %3, 8
%14 = shl nsw i32 %13, 3
%15 = icmp sgt i32 %3, 7
%16 = sext i32 %3 to i64
%17 = zext i32 %2 to i64
%18 = icmp slt i32 %14, %3
%19 = sext i32 %14 to i64
%20 = sext i32 %10 to i64
%21 = xor i64 %19, -1
%22 = and i64 %16, 1
%23 = icmp eq i64 %22, 0
%24 = mul nsw i64 %19, %17
%25 = or i64 %19, 1
%26 = sub nsw i64 0, %16
%27 = icmp eq i64 %21, %26
br label %44
28: ; preds = %179, %53
%29 = trunc i64 %46 to i32
%30 = icmp sgt i32 %10, %29
br i1 %30, label %44, label %31
31: ; preds = %28, %5
%32 = icmp slt i32 %10, %2
br i1 %32, label %33, label %222
33: ; preds = %31
%34 = icmp sgt i32 %3, 0
%35 = load double, double* %6
%36 = sext i32 %2 to i64
%37 = sext i32 %10 to i64
%38 = sext i32 %3 to i64
%39 = zext i32 %3 to i64
%40 = and i64 %39, 1
%41 = icmp eq i32 %3, 1
%42 = and i64 %39, 4294967294
%43 = icmp eq i64 %40, 0
br label %184
44: ; preds = %12, %28
%45 = phi i64 [ 0, %12 ], [ %46, %28 ]
%46 = add nuw i64 %45, 40
br i1 %15, label %47, label %53
47: ; preds = %44
%48 = trunc i64 %46 to i32
%49 = icmp slt i32 %10, %48
%50 = select i1 %49, i32 %10, i32 %48
%51 = sext i32 %50 to i64
%52 = icmp slt i64 %45, %51
br label %57
53: ; preds = %143, %44
%54 = icmp slt i64 %45, %20
br i1 %54, label %55, label %28
55: ; preds = %53
%56 = load double, double* %6
br label %147
57: ; preds = %47, %143
%58 = phi i64 [ 0, %47 ], [ %144, %143 ]
%59 = trunc i64 %58 to i32
br i1 %52, label %60, label %143
60: ; preds = %57
%61 = add nuw nsw i32 %59, 40
%62 = icmp sgt i32 %61, %10
%63 = select i1 %62, i32 %14, i32 %61
%64 = icmp sgt i32 %63, %59
br label %65
65: ; preds = %60, %139
%66 = phi i64 [ %45, %60 ], [ %140, %139 ]
br i1 %64, label %67, label %139
67: ; preds = %65
%68 = mul nsw i64 %66, %16
%69 = getelementptr inbounds double, double* %0, i64 %68
%70 = or i64 %66, 2
%71 = mul nsw i64 %70, %16
%72 = getelementptr inbounds double, double* %0, i64 %71
%73 = or i64 %66, 4
%74 = mul nsw i64 %73, %16
%75 = getelementptr inbounds double, double* %0, i64 %74
%76 = or i64 %66, 6
%77 = mul nsw i64 %76, %16
%78 = getelementptr inbounds double, double* %0, i64 %77
br label %82
79: ; preds = %85
%80 = trunc i64 %84 to i32
%81 = icmp sgt i32 %63, %80
br i1 %81, label %82, label %139
82: ; preds = %67, %79
%83 = phi i64 [ %58, %67 ], [ %84, %79 ]
%84 = add nuw i64 %83, 8
br label %85
85: ; preds = %82, %85
%86 = phi i64 [ %83, %82 ], [ %137, %85 ]
%87 = mul nsw i64 %86, %17
%88 = getelementptr inbounds double, double* %1, i64 %87
%89 = getelementptr inbounds double, double* %69, i64 %86
%90 = getelementptr inbounds double, double* %88, i64 %66
%91 = call i32 @_mm_loadu_pd(double* %89)
%92 = call i32 @_mm_mul_pd(i32 %91, i32 %8)
%93 = getelementptr inbounds double, double* %89, i64 %16
%94 = call i32 @_mm_loadu_pd(double* %93)
%95 = call i32 @_mm_mul_pd(i32 %94, i32 %8)
%96 = call i32 @_mm_shuffle_pd(i32 %92, i32 %95, i32 0)
%97 = call i32 @_mm_shuffle_pd(i32 %92, i32 %95, i32 3)
%98 = call i32 @_mm_storeu_pd(double* %90, i32 %96)
%99 = getelementptr inbounds double, double* %90, i64 %17
%100 = call i32 @_mm_storeu_pd(double* %99, i32 %97)
%101 = getelementptr inbounds double, double* %72, i64 %86
%102 = getelementptr inbounds double, double* %88, i64 %70
%103 = call i32 @_mm_loadu_pd(double* %101)
%104 = call i32 @_mm_mul_pd(i32 %103, i32 %8)
%105 = getelementptr inbounds double, double* %101, i64 %16
%106 = call i32 @_mm_loadu_pd(double* %105)
%107 = call i32 @_mm_mul_pd(i32 %106, i32 %8)
%108 = call i32 @_mm_shuffle_pd(i32 %104, i32 %107, i32 0)
%109 = call i32 @_mm_shuffle_pd(i32 %104, i32 %107, i32 3)
%110 = call i32 @_mm_storeu_pd(double* %102, i32 %108)
%111 = getelementptr inbounds double, double* %102, i64 %17
%112 = call i32 @_mm_storeu_pd(double* %111, i32 %109)
%113 = getelementptr inbounds double, double* %75, i64 %86
%114 = getelementptr inbounds double, double* %88, i64 %73
%115 = call i32 @_mm_loadu_pd(double* %113)
%116 = call i32 @_mm_mul_pd(i32 %115, i32 %8)
%117 = getelementptr inbounds double, double* %113, i64 %16
%118 = call i32 @_mm_loadu_pd(double* %117)
%119 = call i32 @_mm_mul_pd(i32 %118, i32 %8)
%120 = call i32 @_mm_shuffle_pd(i32 %116, i32 %119, i32 0)
%121 = call i32 @_mm_shuffle_pd(i32 %116, i32 %119, i32 3)
%122 = call i32 @_mm_storeu_pd(double* %114, i32 %120)
%123 = getelementptr inbounds double, double* %114, i64 %17
%124 = call i32 @_mm_storeu_pd(double* %123, i32 %121)
%125 = getelementptr inbounds double, double* %78, i64 %86
%126 = getelementptr inbounds double, double* %88, i64 %76
%127 = call i32 @_mm_loadu_pd(double* %125)
%128 = call i32 @_mm_mul_pd(i32 %127, i32 %8)
%129 = getelementptr inbounds double, double* %125, i64 %16
%130 = call i32 @_mm_loadu_pd(double* %129)
%131 = call i32 @_mm_mul_pd(i32 %130, i32 %8)
%132 = call i32 @_mm_shuffle_pd(i32 %128, i32 %131, i32 0)
%133 = call i32 @_mm_shuffle_pd(i32 %128, i32 %131, i32 3)
%134 = call i32 @_mm_storeu_pd(double* %126, i32 %132)
%135 = getelementptr inbounds double, double* %126, i64 %17
%136 = call i32 @_mm_storeu_pd(double* %135, i32 %133)
%137 = add nuw i64 %86, 2
%138 = icmp ult i64 %137, %84
br i1 %138, label %85, label %79
139: ; preds = %79, %65
%140 = add nuw i64 %66, 8
%141 = trunc i64 %140 to i32
%142 = icmp sgt i32 %50, %141
br i1 %142, label %65, label %143
143: ; preds = %139, %57
%144 = add nuw i64 %58, 40
%145 = trunc i64 %144 to i32
%146 = icmp sgt i32 %14, %145
br i1 %146, label %57, label %53
147: ; preds = %55, %179
%148 = phi i64 [ %45, %55 ], [ %180, %179 ]
br i1 %18, label %149, label %179
149: ; preds = %147
%150 = mul nsw i64 %148, %16
br i1 %23, label %158, label %151
151: ; preds = %149
%152 = add nsw i64 %150, %19
%153 = getelementptr inbounds double, double* %0, i64 %152
%154 = load double, double* %153
%155 = fmul double %56, %154
%156 = add nsw i64 %24, %148
%157 = getelementptr inbounds double, double* %1, i64 %156
store double %155, double* %157
br label %158
158: ; preds = %151, %149
%159 = phi i64 [ %19, %149 ], [ %25, %151 ]
br i1 %27, label %179, label %160
160: ; preds = %158, %160
%161 = phi i64 [ %177, %160 ], [ %159, %158 ]
%162 = add nsw i64 %161, %150
%163 = getelementptr inbounds double, double* %0, i64 %162
%164 = load double, double* %163
%165 = fmul double %56, %164
%166 = mul nsw i64 %161, %17
%167 = add nsw i64 %166, %148
%168 = getelementptr inbounds double, double* %1, i64 %167
store double %165, double* %168
%169 = add nsw i64 %161, 1
%170 = add nsw i64 %169, %150
%171 = getelementptr inbounds double, double* %0, i64 %170
%172 = load double, double* %171
%173 = fmul double %56, %172
%174 = mul nsw i64 %169, %17
%175 = add nsw i64 %174, %148
%176 = getelementptr inbounds double, double* %1, i64 %175
store double %173, double* %176
%177 = add nsw i64 %161, 2
%178 = icmp eq i64 %177, %16
br i1 %178, label %179, label %160
179: ; preds = %158, %160, %147
%180 = add nuw i64 %148, 1
%181 = icmp ult i64 %180, %46
%182 = icmp slt i64 %180, %20
%183 = select i1 %181, i1 %182, i1 false
br i1 %183, label %147, label %28
184: ; preds = %33, %219
%185 = phi i64 [ %37, %33 ], [ %220, %219 ]
br i1 %34, label %186, label %219
186: ; preds = %184
%187 = mul nsw i64 %185, %38
br i1 %41, label %209, label %188
188: ; preds = %186, %188
%189 = phi i64 [ %206, %188 ], [ 0, %186 ]
%190 = phi i64 [ %207, %188 ], [ 0, %186 ]
%191 = add nsw i64 %189, %187
%192 = getelementptr inbounds double, double* %0, i64 %191
%193 = load double, double* %192
%194 = fmul double %35, %193
%195 = mul nsw i64 %189, %36
%196 = add nsw i64 %195, %185
%197 = getelementptr inbounds double, double* %1, i64 %196
store double %194, double* %197
%198 = or i64 %189, 1
%199 = add nsw i64 %198, %187
%200 = getelementptr inbounds double, double* %0, i64 %199
%201 = load double, double* %200
%202 = fmul double %35, %201
%203 = mul nsw i64 %198, %36
%204 = add nsw i64 %203, %185
%205 = getelementptr inbounds double, double* %1, i64 %204
store double %202, double* %205
%206 = add nuw nsw i64 %189, 2
%207 = add i64 %190, 2
%208 = icmp eq i64 %207, %42
br i1 %208, label %209, label %188
209: ; preds = %188, %186
%210 = phi i64 [ 0, %186 ], [ %206, %188 ]
br i1 %43, label %219, label %211
211: ; preds = %209
%212 = add nsw i64 %210, %187
%213 = getelementptr inbounds double, double* %0, i64 %212
%214 = load double, double* %213
%215 = fmul double %35, %214
%216 = mul nsw i64 %210, %36
%217 = add nsw i64 %216, %185
%218 = getelementptr inbounds double, double* %1, i64 %217
store double %215, double* %218
br label %219
219: ; preds = %211, %209, %184
%220 = add nsw i64 %185, 1
%221 = icmp eq i64 %220, %36
br i1 %221, label %222, label %184
222: ; preds = %219, %31
ret void
}