int oncopy_4(int m, int n, const double *a, int lda, double *b) {
  int i, j;
  const double *a_offset, *a_offset1, *a_offset2, *a_offset3, *a_offset4;
  double *b_offset;
  double ctemp1, ctemp2, ctemp3, ctemp4;
  double ctemp5, ctemp6, ctemp7, ctemp8;
  double ctemp9, ctemp10, ctemp11, ctemp12;
  double ctemp13, ctemp14, ctemp15, ctemp16;
  a_offset = a;
  b_offset = b;
  j = (n >> 2);
  if (j > 0) {
    do {
      a_offset1 = a_offset;
      a_offset2 = a_offset1 + lda;
      a_offset3 = a_offset2 + lda;
      a_offset4 = a_offset3 + lda;
      a_offset += 4 * lda;
      i = (m >> 2);
      if (i > 0) {
        do {
          ctemp1 = *(a_offset1 + 0);
          ctemp2 = *(a_offset1 + 1);
          ctemp3 = *(a_offset1 + 2);
          ctemp4 = *(a_offset1 + 3);
          ctemp5 = *(a_offset2 + 0);
          ctemp6 = *(a_offset2 + 1);
          ctemp7 = *(a_offset2 + 2);
          ctemp8 = *(a_offset2 + 3);
          ctemp9 = *(a_offset3 + 0);
          ctemp10 = *(a_offset3 + 1);
          ctemp11 = *(a_offset3 + 2);
          ctemp12 = *(a_offset3 + 3);
          ctemp13 = *(a_offset4 + 0);
          ctemp14 = *(a_offset4 + 1);
          ctemp15 = *(a_offset4 + 2);
          ctemp16 = *(a_offset4 + 3);
          *(b_offset + 0) = ctemp1;
          *(b_offset + 1) = ctemp5;
          *(b_offset + 2) = ctemp9;
          *(b_offset + 3) = ctemp13;
          *(b_offset + 4) = ctemp2;
          *(b_offset + 5) = ctemp6;
          *(b_offset + 6) = ctemp10;
          *(b_offset + 7) = ctemp14;
          *(b_offset + 8) = ctemp3;
          *(b_offset + 9) = ctemp7;
          *(b_offset + 10) = ctemp11;
          *(b_offset + 11) = ctemp15;
          *(b_offset + 12) = ctemp4;
          *(b_offset + 13) = ctemp8;
          *(b_offset + 14) = ctemp12;
          *(b_offset + 15) = ctemp16;
          a_offset1 += 4;
          a_offset2 += 4;
          a_offset3 += 4;
          a_offset4 += 4;
          b_offset += 16;
          i--;
        } while (i > 0);
      }
      i = (m & 3);
      if (i > 0) {
        do {
          ctemp1 = *(a_offset1 + 0);
          ctemp5 = *(a_offset2 + 0);
          ctemp9 = *(a_offset3 + 0);
          ctemp13 = *(a_offset4 + 0);
          *(b_offset + 0) = ctemp1;
          *(b_offset + 1) = ctemp5;
          *(b_offset + 2) = ctemp9;
          *(b_offset + 3) = ctemp13;
          a_offset1++;
          a_offset2++;
          a_offset3++;
          a_offset4++;
          b_offset += 4;
          i--;
        } while (i > 0);
      }
      j--;
    } while (j > 0);
  }
  if (n & 2) {
    a_offset1 = a_offset;
    a_offset2 = a_offset1 + lda;
    a_offset += 2 * lda;
    i = (m >> 2);
    if (i > 0) {
      do {
        ctemp1 = *(a_offset1 + 0);
        ctemp2 = *(a_offset1 + 1);
        ctemp3 = *(a_offset1 + 2);
        ctemp4 = *(a_offset1 + 3);
        ctemp5 = *(a_offset2 + 0);
        ctemp6 = *(a_offset2 + 1);
        ctemp7 = *(a_offset2 + 2);
        ctemp8 = *(a_offset2 + 3);
        *(b_offset + 0) = ctemp1;
        *(b_offset + 1) = ctemp5;
        *(b_offset + 2) = ctemp2;
        *(b_offset + 3) = ctemp6;
        *(b_offset + 4) = ctemp3;
        *(b_offset + 5) = ctemp7;
        *(b_offset + 6) = ctemp4;
        *(b_offset + 7) = ctemp8;
        a_offset1 += 4;
        a_offset2 += 4;
        b_offset += 8;
        i--;
      } while (i > 0);
    }
    i = (m & 3);
    if (i > 0) {
      do {
        ctemp1 = *(a_offset1 + 0);
        ctemp5 = *(a_offset2 + 0);
        *(b_offset + 0) = ctemp1;
        *(b_offset + 1) = ctemp5;
        a_offset1++;
        a_offset2++;
        b_offset += 2;
        i--;
      } while (i > 0);
    }
  }
  if (n & 1) {
    a_offset1 = a_offset;
    i = (m >> 2);
    if (i > 0) {
      do {
        ctemp1 = *(a_offset1 + 0);
        ctemp2 = *(a_offset1 + 1);
        ctemp3 = *(a_offset1 + 2);
        ctemp4 = *(a_offset1 + 3);
        *(b_offset + 0) = ctemp1;
        *(b_offset + 1) = ctemp2;
        *(b_offset + 2) = ctemp3;
        *(b_offset + 3) = ctemp4;
        a_offset1 += 4;
        b_offset += 4;
        i--;
      } while (i > 0);
    }
    i = (m & 3);
    if (i > 0) {
      do {
        ctemp1 = *(a_offset1 + 0);
        *(b_offset + 0) = ctemp1;
        a_offset1++;
        b_offset += 1;
        i--;
      } while (i > 0);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<oncopy_4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x58,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x8(%rbp),%eax
sar    $0x2,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jle    1500 <oncopy_4+0x400>
jmp    1141 <oncopy_4+0x41>
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x14(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x14(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x14(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x2,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jle    1405 <oncopy_4+0x305>
jmp    11b2 <oncopy_4+0xb2>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x40(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x40(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x40(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x48(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x48(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    -0x48(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x80(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0xc0(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x18(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x30(%rax)
movsd  -0xc8(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x38(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x40(%rax)
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x48(%rax)
movsd  -0xb0(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x50(%rax)
movsd  -0xd0(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x58(%rax)
movsd  -0x78(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x60(%rax)
movsd  -0x98(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x68(%rax)
movsd  -0xb8(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x70(%rax)
movsd  -0xd8(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x78(%rax)
mov    -0x38(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x58(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jg     11b2 <oncopy_4+0xb2>
jmp    1405 <oncopy_4+0x305>
mov    -0x4(%rbp),%eax
and    $0x3,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jle    14e8 <oncopy_4+0x3e8>
jmp    141d <oncopy_4+0x31d>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x80(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0xc0(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x38(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x58(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jg     141d <oncopy_4+0x31d>
jmp    14e8 <oncopy_4+0x3e8>
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jg     1141 <oncopy_4+0x41>
jmp    1500 <oncopy_4+0x400>
mov    -0x8(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1713 <oncopy_4+0x613>
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x14(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x14(%rbp),%ecx
shl    $0x1,%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x2,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jle    1685 <oncopy_4+0x585>
jmp    155a <oncopy_4+0x45a>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x40(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x40(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x40(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x80(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x18(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0x78(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x30(%rax)
movsd  -0x98(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x38(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x40(%rbp)
mov    -0x58(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x58(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jg     155a <oncopy_4+0x45a>
jmp    1685 <oncopy_4+0x585>
mov    -0x4(%rbp),%eax
and    $0x3,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jle    170e <oncopy_4+0x60e>
jmp    169d <oncopy_4+0x59d>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x60(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x80(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x38(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x40(%rbp)
mov    -0x58(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x58(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jg     169d <oncopy_4+0x59d>
jmp    170e <oncopy_4+0x60e>
jmp    1713 <oncopy_4+0x613>
mov    -0x8(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1847 <oncopy_4+0x747>
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x2,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jle    17e0 <oncopy_4+0x6e0>
jmp    1742 <oncopy_4+0x642>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x60(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x78(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x38(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x38(%rbp)
mov    -0x58(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x58(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jg     1742 <oncopy_4+0x642>
jmp    17e0 <oncopy_4+0x6e0>
mov    -0x4(%rbp),%eax
and    $0x3,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jle    1842 <oncopy_4+0x742>
jmp    17f8 <oncopy_4+0x6f8>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x38(%rbp)
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x58(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jg     17f8 <oncopy_4+0x6f8>
jmp    1842 <oncopy_4+0x742>
jmp    1847 <oncopy_4+0x747>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<oncopy_4>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdx,%r14
mov    %ecx,-0x18(%rsp)
movslq %ecx,%rax
cmp    $0x4,%esi
mov    %esi,-0x14(%rsp)
jl     139d <oncopy_4+0x29d>
mov    %esi,%r11d
shr    $0x2,%r11d
lea    0x0(,%rax,4),%ecx
movslq %ecx,%r9
mov    %edi,%edx
sar    $0x2,%edx
mov    %edi,%r15d
and    $0x3,%r15d
lea    -0x3(%r15),%ecx
mov    %ecx,-0x10(%rsp)
lea    (%rax,%rax,2),%rcx
lea    (%r14,%rcx,8),%r12
shl    $0x3,%r9
mov    %rax,%rbx
shl    $0x4,%rbx
add    %r14,%rbx
lea    (%r14,%rax,8),%r13
add    $0x1,%edx
mov    %edx,-0xc(%rsp)
lea    0x0(,%rax,8),%rbp
mov    %r15,-0x8(%rsp)
jmp    11a1 <oncopy_4+0xa1>
cs nopw 0x0(%rax,%rax,1)
add    $0x20,%r8
add    %r9,%r14
lea    -0x1(%r11),%ecx
add    %r9,%r12
add    %r9,%rbx
add    %r9,%r13
cmp    $0x1,%r11d
mov    %ecx,%r11d
jle    139d <oncopy_4+0x29d>
cmp    $0x4,%edi
jl     12e0 <oncopy_4+0x1e0>
mov    -0xc(%rsp),%r10d
xor    %esi,%esi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    (%r14,%rdx,1),%rcx
movsd  (%r14,%rdx,1),%xmm14
movsd  0x8(%r14,%rdx,1),%xmm11
movsd  0x10(%r14,%rdx,1),%xmm9
movsd  0x18(%r14,%rdx,1),%xmm8
lea    (%rcx,%rbp,1),%r15
movsd  (%rcx,%rax,8),%xmm4
movsd  0x8(%rcx,%rax,8),%xmm15
movsd  0x10(%rcx,%rax,8),%xmm12
movsd  0x18(%rcx,%rax,8),%xmm10
lea    (%r15,%rbp,1),%rcx
movsd  (%r15,%rax,8),%xmm3
movsd  0x8(%r15,%rax,8),%xmm2
movsd  0x10(%r15,%rax,8),%xmm7
movsd  0x18(%r15,%rax,8),%xmm13
movsd  (%rcx,%rax,8),%xmm6
movsd  0x8(%rcx,%rax,8),%xmm1
movsd  0x10(%rcx,%rax,8),%xmm0
movsd  0x18(%rcx,%rax,8),%xmm5
movsd  %xmm14,(%r8,%rdx,4)
movsd  %xmm4,0x8(%r8,%rdx,4)
movsd  %xmm3,0x10(%r8,%rdx,4)
movsd  %xmm6,0x18(%r8,%rdx,4)
movsd  %xmm11,0x20(%r8,%rdx,4)
movsd  %xmm15,0x28(%r8,%rdx,4)
movsd  %xmm2,0x30(%r8,%rdx,4)
movsd  %xmm1,0x38(%r8,%rdx,4)
movsd  %xmm9,0x40(%r8,%rdx,4)
movsd  %xmm12,0x48(%r8,%rdx,4)
movsd  %xmm7,0x50(%r8,%rdx,4)
movsd  %xmm0,0x58(%r8,%rdx,4)
movsd  %xmm8,0x60(%r8,%rdx,4)
movsd  %xmm10,0x68(%r8,%rdx,4)
movsd  %xmm13,0x70(%r8,%rdx,4)
movsd  %xmm5,0x78(%r8,%rdx,4)
add    $0x20,%rdx
sub    $0xffffffffffffff80,%rsi
add    $0xffffffff,%r10d
cmp    $0x1,%r10d
jg     11c0 <oncopy_4+0xc0>
lea    (%r12,%rdx,1),%r10
add    %rsi,%r8
lea    (%rbx,%rdx,1),%rsi
lea    (%rdx,%r13,1),%rcx
add    %r14,%rdx
mov    -0x8(%rsp),%r15
test   %r15d,%r15d
jne    12f8 <oncopy_4+0x1f8>
jmp    1184 <oncopy_4+0x84>
nopl   0x0(%rax)
lea    (%r14,%rax,8),%rcx
lea    (%rcx,%rax,8),%rsi
lea    (%rsi,%rax,8),%r10
mov    %r14,%rdx
test   %r15d,%r15d
je     1184 <oncopy_4+0x84>
movsd  (%rdx),%xmm0
movsd  (%rcx),%xmm1
movsd  (%rsi),%xmm2
movsd  (%r10),%xmm3
movsd  %xmm0,(%r8)
movsd  %xmm1,0x8(%r8)
movsd  %xmm2,0x10(%r8)
movsd  %xmm3,0x18(%r8)
cmp    $0x2,%r15d
jb     1180 <oncopy_4+0x80>
movsd  0x8(%rdx),%xmm0
movsd  0x8(%rcx),%xmm1
movsd  0x8(%rsi),%xmm2
movsd  0x8(%r10),%xmm3
movsd  %xmm0,0x20(%r8)
movsd  %xmm1,0x28(%r8)
movsd  %xmm2,0x30(%r8)
movsd  %xmm3,0x38(%r8)
cmpl   $0xfffffffd,-0x10(%rsp)
ja     1394 <oncopy_4+0x294>
movsd  0x10(%rdx),%xmm0
movsd  0x10(%rcx),%xmm1
movsd  0x10(%rsi),%xmm2
movsd  0x10(%r10),%xmm3
movsd  %xmm0,0x40(%r8)
movsd  %xmm1,0x48(%r8)
movsd  %xmm2,0x50(%r8)
movsd  %xmm3,0x58(%r8)
add    $0x60,%r8
jmp    1184 <oncopy_4+0x84>
add    $0x40,%r8
jmp    1184 <oncopy_4+0x84>
mov    -0x14(%rsp),%ebp
test   $0x2,%bpl
je     14b4 <oncopy_4+0x3b4>
mov    -0x18(%rsp),%ecx
add    %ecx,%ecx
movslq %ecx,%rdx
cmp    $0x4,%edi
jl     143f <oncopy_4+0x33f>
mov    %edi,%esi
shr    $0x2,%esi
add    $0x1,%esi
mov    %r14,%rcx
nopl   0x0(%rax,%rax,1)
movsd  (%rcx),%xmm0
movsd  0x8(%rcx),%xmm1
movsd  0x10(%rcx),%xmm2
movsd  0x18(%rcx),%xmm3
movsd  (%rcx,%rax,8),%xmm4
movsd  0x8(%rcx,%rax,8),%xmm5
movsd  0x10(%rcx,%rax,8),%xmm6
movsd  0x18(%rcx,%rax,8),%xmm7
movsd  %xmm0,(%r8)
movsd  %xmm4,0x8(%r8)
movsd  %xmm1,0x10(%r8)
movsd  %xmm5,0x18(%r8)
movsd  %xmm2,0x20(%r8)
movsd  %xmm6,0x28(%r8)
movsd  %xmm3,0x30(%r8)
movsd  %xmm7,0x38(%r8)
add    $0x20,%rcx
add    $0x40,%r8
add    $0xffffffff,%esi
cmp    $0x1,%esi
ja     13d0 <oncopy_4+0x2d0>
lea    (%rcx,%rax,8),%rax
jmp    1446 <oncopy_4+0x346>
lea    (%r14,%rax,8),%rax
mov    %r14,%rcx
lea    (%r14,%rdx,8),%r14
mov    %edi,%edx
and    $0x3,%edx
je     14b4 <oncopy_4+0x3b4>
movsd  (%rcx),%xmm0
movsd  (%rax),%xmm1
movsd  %xmm0,(%r8)
movsd  %xmm1,0x8(%r8)
cmp    $0x2,%edx
jb     14b0 <oncopy_4+0x3b0>
movsd  0x8(%rcx),%xmm0
movsd  0x8(%rax),%xmm1
movsd  %xmm0,0x10(%r8)
movsd  %xmm1,0x18(%r8)
add    $0xfffffffd,%edx
cmp    $0xfffffffd,%edx
ja     1528 <oncopy_4+0x428>
movsd  0x10(%rcx),%xmm0
movsd  0x10(%rax),%xmm1
movsd  %xmm0,0x20(%r8)
movsd  %xmm1,0x28(%r8)
add    $0x30,%r8
test   $0x1,%bpl
jne    14ba <oncopy_4+0x3ba>
jmp    1532 <oncopy_4+0x432>
add    $0x10,%r8
test   $0x1,%bpl
je     1532 <oncopy_4+0x432>
cmp    $0x4,%edi
jl     14f2 <oncopy_4+0x3f2>
mov    %edi,%eax
shr    $0x2,%eax
add    $0x1,%eax
nopw   0x0(%rax,%rax,1)
movups (%r14),%xmm0
movups 0x10(%r14),%xmm1
movups %xmm0,(%r8)
movups %xmm1,0x10(%r8)
add    $0x20,%r14
add    $0x20,%r8
add    $0xffffffff,%eax
cmp    $0x1,%eax
ja     14d0 <oncopy_4+0x3d0>
and    $0x3,%edi
je     1532 <oncopy_4+0x432>
movsd  (%r14),%xmm0
movsd  %xmm0,(%r8)
cmp    $0x2,%edi
jb     1532 <oncopy_4+0x432>
movsd  0x8(%r14),%xmm0
movsd  %xmm0,0x8(%r8)
add    $0xfffffffd,%edi
cmp    $0xfffffffd,%edi
ja     1532 <oncopy_4+0x432>
movsd  0x10(%r14),%xmm0
movsd  %xmm0,0x10(%r8)
jmp    1532 <oncopy_4+0x432>
add    $0x20,%r8
test   $0x1,%bpl
jne    14ba <oncopy_4+0x3ba>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @oncopy_4(i32 %0, i32 %1, double* %2, i32 %3, double* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca double*
%9 = alloca i32
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
store i32 %0, i32* %6
store i32 %1, i32* %7
store double* %2, double** %8
store i32 %3, i32* %9
store double* %4, double** %10
%35 = load double*, double** %8
store double* %35, double** %13
%36 = load double*, double** %10
store double* %36, double** %18
%37 = load i32, i32* %7
%38 = ashr i32 %37, 2
store i32 %38, i32* %12
%39 = load i32, i32* %12
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %233
41: ; preds = %5
br label %42
42: ; preds = %229, %41
%43 = load double*, double** %13
store double* %43, double** %14
%44 = load double*, double** %14
%45 = load i32, i32* %9
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, double* %44, i64 %46
store double* %47, double** %15
%48 = load double*, double** %15
%49 = load i32, i32* %9
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, double* %48, i64 %50
store double* %51, double** %16
%52 = load double*, double** %16
%53 = load i32, i32* %9
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %52, i64 %54
store double* %55, double** %17
%56 = load i32, i32* %9
%57 = mul nsw i32 4, %56
%58 = load double*, double** %13
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds double, double* %58, i64 %59
store double* %60, double** %13
%61 = load i32, i32* %6
%62 = ashr i32 %61, 2
store i32 %62, i32* %11
%63 = load i32, i32* %11
%64 = icmp sgt i32 %63, 0
br i1 %64, label %65, label %179
65: ; preds = %42
br label %66
66: ; preds = %175, %65
%67 = load double*, double** %14
%68 = getelementptr inbounds double, double* %67, i64 0
%69 = load double, double* %68
store double %69, double* %19
%70 = load double*, double** %14
%71 = getelementptr inbounds double, double* %70, i64 1
%72 = load double, double* %71
store double %72, double* %20
%73 = load double*, double** %14
%74 = getelementptr inbounds double, double* %73, i64 2
%75 = load double, double* %74
store double %75, double* %21
%76 = load double*, double** %14
%77 = getelementptr inbounds double, double* %76, i64 3
%78 = load double, double* %77
store double %78, double* %22
%79 = load double*, double** %15
%80 = getelementptr inbounds double, double* %79, i64 0
%81 = load double, double* %80
store double %81, double* %23
%82 = load double*, double** %15
%83 = getelementptr inbounds double, double* %82, i64 1
%84 = load double, double* %83
store double %84, double* %24
%85 = load double*, double** %15
%86 = getelementptr inbounds double, double* %85, i64 2
%87 = load double, double* %86
store double %87, double* %25
%88 = load double*, double** %15
%89 = getelementptr inbounds double, double* %88, i64 3
%90 = load double, double* %89
store double %90, double* %26
%91 = load double*, double** %16
%92 = getelementptr inbounds double, double* %91, i64 0
%93 = load double, double* %92
store double %93, double* %27
%94 = load double*, double** %16
%95 = getelementptr inbounds double, double* %94, i64 1
%96 = load double, double* %95
store double %96, double* %28
%97 = load double*, double** %16
%98 = getelementptr inbounds double, double* %97, i64 2
%99 = load double, double* %98
store double %99, double* %29
%100 = load double*, double** %16
%101 = getelementptr inbounds double, double* %100, i64 3
%102 = load double, double* %101
store double %102, double* %30
%103 = load double*, double** %17
%104 = getelementptr inbounds double, double* %103, i64 0
%105 = load double, double* %104
store double %105, double* %31
%106 = load double*, double** %17
%107 = getelementptr inbounds double, double* %106, i64 1
%108 = load double, double* %107
store double %108, double* %32
%109 = load double*, double** %17
%110 = getelementptr inbounds double, double* %109, i64 2
%111 = load double, double* %110
store double %111, double* %33
%112 = load double*, double** %17
%113 = getelementptr inbounds double, double* %112, i64 3
%114 = load double, double* %113
store double %114, double* %34
%115 = load double, double* %19
%116 = load double*, double** %18
%117 = getelementptr inbounds double, double* %116, i64 0
store double %115, double* %117
%118 = load double, double* %23
%119 = load double*, double** %18
%120 = getelementptr inbounds double, double* %119, i64 1
store double %118, double* %120
%121 = load double, double* %27
%122 = load double*, double** %18
%123 = getelementptr inbounds double, double* %122, i64 2
store double %121, double* %123
%124 = load double, double* %31
%125 = load double*, double** %18
%126 = getelementptr inbounds double, double* %125, i64 3
store double %124, double* %126
%127 = load double, double* %20
%128 = load double*, double** %18
%129 = getelementptr inbounds double, double* %128, i64 4
store double %127, double* %129
%130 = load double, double* %24
%131 = load double*, double** %18
%132 = getelementptr inbounds double, double* %131, i64 5
store double %130, double* %132
%133 = load double, double* %28
%134 = load double*, double** %18
%135 = getelementptr inbounds double, double* %134, i64 6
store double %133, double* %135
%136 = load double, double* %32
%137 = load double*, double** %18
%138 = getelementptr inbounds double, double* %137, i64 7
store double %136, double* %138
%139 = load double, double* %21
%140 = load double*, double** %18
%141 = getelementptr inbounds double, double* %140, i64 8
store double %139, double* %141
%142 = load double, double* %25
%143 = load double*, double** %18
%144 = getelementptr inbounds double, double* %143, i64 9
store double %142, double* %144
%145 = load double, double* %29
%146 = load double*, double** %18
%147 = getelementptr inbounds double, double* %146, i64 10
store double %145, double* %147
%148 = load double, double* %33
%149 = load double*, double** %18
%150 = getelementptr inbounds double, double* %149, i64 11
store double %148, double* %150
%151 = load double, double* %22
%152 = load double*, double** %18
%153 = getelementptr inbounds double, double* %152, i64 12
store double %151, double* %153
%154 = load double, double* %26
%155 = load double*, double** %18
%156 = getelementptr inbounds double, double* %155, i64 13
store double %154, double* %156
%157 = load double, double* %30
%158 = load double*, double** %18
%159 = getelementptr inbounds double, double* %158, i64 14
store double %157, double* %159
%160 = load double, double* %34
%161 = load double*, double** %18
%162 = getelementptr inbounds double, double* %161, i64 15
store double %160, double* %162
%163 = load double*, double** %14
%164 = getelementptr inbounds double, double* %163, i64 4
store double* %164, double** %14
%165 = load double*, double** %15
%166 = getelementptr inbounds double, double* %165, i64 4
store double* %166, double** %15
%167 = load double*, double** %16
%168 = getelementptr inbounds double, double* %167, i64 4
store double* %168, double** %16
%169 = load double*, double** %17
%170 = getelementptr inbounds double, double* %169, i64 4
store double* %170, double** %17
%171 = load double*, double** %18
%172 = getelementptr inbounds double, double* %171, i64 16
store double* %172, double** %18
%173 = load i32, i32* %11
%174 = add nsw i32 %173, -1
store i32 %174, i32* %11
br label %175
175: ; preds = %66
%176 = load i32, i32* %11
%177 = icmp sgt i32 %176, 0
br i1 %177, label %66, label %178
178: ; preds = %175
br label %179
179: ; preds = %178, %42
%180 = load i32, i32* %6
%181 = and i32 %180, 3
store i32 %181, i32* %11
%182 = load i32, i32* %11
%183 = icmp sgt i32 %182, 0
br i1 %183, label %184, label %226
184: ; preds = %179
br label %185
185: ; preds = %222, %184
%186 = load double*, double** %14
%187 = getelementptr inbounds double, double* %186, i64 0
%188 = load double, double* %187
store double %188, double* %19
%189 = load double*, double** %15
%190 = getelementptr inbounds double, double* %189, i64 0
%191 = load double, double* %190
store double %191, double* %23
%192 = load double*, double** %16
%193 = getelementptr inbounds double, double* %192, i64 0
%194 = load double, double* %193
store double %194, double* %27
%195 = load double*, double** %17
%196 = getelementptr inbounds double, double* %195, i64 0
%197 = load double, double* %196
store double %197, double* %31
%198 = load double, double* %19
%199 = load double*, double** %18
%200 = getelementptr inbounds double, double* %199, i64 0
store double %198, double* %200
%201 = load double, double* %23
%202 = load double*, double** %18
%203 = getelementptr inbounds double, double* %202, i64 1
store double %201, double* %203
%204 = load double, double* %27
%205 = load double*, double** %18
%206 = getelementptr inbounds double, double* %205, i64 2
store double %204, double* %206
%207 = load double, double* %31
%208 = load double*, double** %18
%209 = getelementptr inbounds double, double* %208, i64 3
store double %207, double* %209
%210 = load double*, double** %14
%211 = getelementptr inbounds double, double* %210, i32 1
store double* %211, double** %14
%212 = load double*, double** %15
%213 = getelementptr inbounds double, double* %212, i32 1
store double* %213, double** %15
%214 = load double*, double** %16
%215 = getelementptr inbounds double, double* %214, i32 1
store double* %215, double** %16
%216 = load double*, double** %17
%217 = getelementptr inbounds double, double* %216, i32 1
store double* %217, double** %17
%218 = load double*, double** %18
%219 = getelementptr inbounds double, double* %218, i64 4
store double* %219, double** %18
%220 = load i32, i32* %11
%221 = add nsw i32 %220, -1
store i32 %221, i32* %11
br label %222
222: ; preds = %185
%223 = load i32, i32* %11
%224 = icmp sgt i32 %223, 0
br i1 %224, label %185, label %225
225: ; preds = %222
br label %226
226: ; preds = %225, %179
%227 = load i32, i32* %12
%228 = add nsw i32 %227, -1
store i32 %228, i32* %12
br label %229
229: ; preds = %226
%230 = load i32, i32* %12
%231 = icmp sgt i32 %230, 0
br i1 %231, label %42, label %232
232: ; preds = %229
br label %233
233: ; preds = %232, %5
%234 = load i32, i32* %7
%235 = and i32 %234, 2
%236 = icmp ne i32 %235, 0
br i1 %236, label %237, label %346
237: ; preds = %233
%238 = load double*, double** %13
store double* %238, double** %14
%239 = load double*, double** %14
%240 = load i32, i32* %9
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds double, double* %239, i64 %241
store double* %242, double** %15
%243 = load i32, i32* %9
%244 = mul nsw i32 2, %243
%245 = load double*, double** %13
%246 = sext i32 %244 to i64
%247 = getelementptr inbounds double, double* %245, i64 %246
store double* %247, double** %13
%248 = load i32, i32* %6
%249 = ashr i32 %248, 2
store i32 %249, i32* %11
%250 = load i32, i32* %11
%251 = icmp sgt i32 %250, 0
br i1 %251, label %252, label %314
252: ; preds = %237
br label %253
253: ; preds = %310, %252
%254 = load double*, double** %14
%255 = getelementptr inbounds double, double* %254, i64 0
%256 = load double, double* %255
store double %256, double* %19
%257 = load double*, double** %14
%258 = getelementptr inbounds double, double* %257, i64 1
%259 = load double, double* %258
store double %259, double* %20
%260 = load double*, double** %14
%261 = getelementptr inbounds double, double* %260, i64 2
%262 = load double, double* %261
store double %262, double* %21
%263 = load double*, double** %14
%264 = getelementptr inbounds double, double* %263, i64 3
%265 = load double, double* %264
store double %265, double* %22
%266 = load double*, double** %15
%267 = getelementptr inbounds double, double* %266, i64 0
%268 = load double, double* %267
store double %268, double* %23
%269 = load double*, double** %15
%270 = getelementptr inbounds double, double* %269, i64 1
%271 = load double, double* %270
store double %271, double* %24
%272 = load double*, double** %15
%273 = getelementptr inbounds double, double* %272, i64 2
%274 = load double, double* %273
store double %274, double* %25
%275 = load double*, double** %15
%276 = getelementptr inbounds double, double* %275, i64 3
%277 = load double, double* %276
store double %277, double* %26
%278 = load double, double* %19
%279 = load double*, double** %18
%280 = getelementptr inbounds double, double* %279, i64 0
store double %278, double* %280
%281 = load double, double* %23
%282 = load double*, double** %18
%283 = getelementptr inbounds double, double* %282, i64 1
store double %281, double* %283
%284 = load double, double* %20
%285 = load double*, double** %18
%286 = getelementptr inbounds double, double* %285, i64 2
store double %284, double* %286
%287 = load double, double* %24
%288 = load double*, double** %18
%289 = getelementptr inbounds double, double* %288, i64 3
store double %287, double* %289
%290 = load double, double* %21
%291 = load double*, double** %18
%292 = getelementptr inbounds double, double* %291, i64 4
store double %290, double* %292
%293 = load double, double* %25
%294 = load double*, double** %18
%295 = getelementptr inbounds double, double* %294, i64 5
store double %293, double* %295
%296 = load double, double* %22
%297 = load double*, double** %18
%298 = getelementptr inbounds double, double* %297, i64 6
store double %296, double* %298
%299 = load double, double* %26
%300 = load double*, double** %18
%301 = getelementptr inbounds double, double* %300, i64 7
store double %299, double* %301
%302 = load double*, double** %14
%303 = getelementptr inbounds double, double* %302, i64 4
store double* %303, double** %14
%304 = load double*, double** %15
%305 = getelementptr inbounds double, double* %304, i64 4
store double* %305, double** %15
%306 = load double*, double** %18
%307 = getelementptr inbounds double, double* %306, i64 8
store double* %307, double** %18
%308 = load i32, i32* %11
%309 = add nsw i32 %308, -1
store i32 %309, i32* %11
br label %310
310: ; preds = %253
%311 = load i32, i32* %11
%312 = icmp sgt i32 %311, 0
br i1 %312, label %253, label %313
313: ; preds = %310
br label %314
314: ; preds = %313, %237
%315 = load i32, i32* %6
%316 = and i32 %315, 3
store i32 %316, i32* %11
%317 = load i32, i32* %11
%318 = icmp sgt i32 %317, 0
br i1 %318, label %319, label %345
319: ; preds = %314
br label %320
320: ; preds = %341, %319
%321 = load double*, double** %14
%322 = getelementptr inbounds double, double* %321, i64 0
%323 = load double, double* %322
store double %323, double* %19
%324 = load double*, double** %15
%325 = getelementptr inbounds double, double* %324, i64 0
%326 = load double, double* %325
store double %326, double* %23
%327 = load double, double* %19
%328 = load double*, double** %18
%329 = getelementptr inbounds double, double* %328, i64 0
store double %327, double* %329
%330 = load double, double* %23
%331 = load double*, double** %18
%332 = getelementptr inbounds double, double* %331, i64 1
store double %330, double* %332
%333 = load double*, double** %14
%334 = getelementptr inbounds double, double* %333, i32 1
store double* %334, double** %14
%335 = load double*, double** %15
%336 = getelementptr inbounds double, double* %335, i32 1
store double* %336, double** %15
%337 = load double*, double** %18
%338 = getelementptr inbounds double, double* %337, i64 2
store double* %338, double** %18
%339 = load i32, i32* %11
%340 = add nsw i32 %339, -1
store i32 %340, i32* %11
br label %341
341: ; preds = %320
%342 = load i32, i32* %11
%343 = icmp sgt i32 %342, 0
br i1 %343, label %320, label %344
344: ; preds = %341
br label %345
345: ; preds = %344, %314
br label %346
346: ; preds = %345, %233
%347 = load i32, i32* %7
%348 = and i32 %347, 1
%349 = icmp ne i32 %348, 0
br i1 %349, label %350, label %416
350: ; preds = %346
%351 = load double*, double** %13
store double* %351, double** %14
%352 = load i32, i32* %6
%353 = ashr i32 %352, 2
store i32 %353, i32* %11
%354 = load i32, i32* %11
%355 = icmp sgt i32 %354, 0
br i1 %355, label %356, label %392
356: ; preds = %350
br label %357
357: ; preds = %388, %356
%358 = load double*, double** %14
%359 = getelementptr inbounds double, double* %358, i64 0
%360 = load double, double* %359
store double %360, double* %19
%361 = load double*, double** %14
%362 = getelementptr inbounds double, double* %361, i64 1
%363 = load double, double* %362
store double %363, double* %20
%364 = load double*, double** %14
%365 = getelementptr inbounds double, double* %364, i64 2
%366 = load double, double* %365
store double %366, double* %21
%367 = load double*, double** %14
%368 = getelementptr inbounds double, double* %367, i64 3
%369 = load double, double* %368
store double %369, double* %22
%370 = load double, double* %19
%371 = load double*, double** %18
%372 = getelementptr inbounds double, double* %371, i64 0
store double %370, double* %372
%373 = load double, double* %20
%374 = load double*, double** %18
%375 = getelementptr inbounds double, double* %374, i64 1
store double %373, double* %375
%376 = load double, double* %21
%377 = load double*, double** %18
%378 = getelementptr inbounds double, double* %377, i64 2
store double %376, double* %378
%379 = load double, double* %22
%380 = load double*, double** %18
%381 = getelementptr inbounds double, double* %380, i64 3
store double %379, double* %381
%382 = load double*, double** %14
%383 = getelementptr inbounds double, double* %382, i64 4
store double* %383, double** %14
%384 = load double*, double** %18
%385 = getelementptr inbounds double, double* %384, i64 4
store double* %385, double** %18
%386 = load i32, i32* %11
%387 = add nsw i32 %386, -1
store i32 %387, i32* %11
br label %388
388: ; preds = %357
%389 = load i32, i32* %11
%390 = icmp sgt i32 %389, 0
br i1 %390, label %357, label %391
391: ; preds = %388
br label %392
392: ; preds = %391, %350
%393 = load i32, i32* %6
%394 = and i32 %393, 3
store i32 %394, i32* %11
%395 = load i32, i32* %11
%396 = icmp sgt i32 %395, 0
br i1 %396, label %397, label %415
397: ; preds = %392
br label %398
398: ; preds = %411, %397
%399 = load double*, double** %14
%400 = getelementptr inbounds double, double* %399, i64 0
%401 = load double, double* %400
store double %401, double* %19
%402 = load double, double* %19
%403 = load double*, double** %18
%404 = getelementptr inbounds double, double* %403, i64 0
store double %402, double* %404
%405 = load double*, double** %14
%406 = getelementptr inbounds double, double* %405, i32 1
store double* %406, double** %14
%407 = load double*, double** %18
%408 = getelementptr inbounds double, double* %407, i64 1
store double* %408, double** %18
%409 = load i32, i32* %11
%410 = add nsw i32 %409, -1
store i32 %410, i32* %11
br label %411
411: ; preds = %398
%412 = load i32, i32* %11
%413 = icmp sgt i32 %412, 0
br i1 %413, label %398, label %414
414: ; preds = %411
br label %415
415: ; preds = %414, %392
br label %416
416: ; preds = %415, %346
ret i32 0
}

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