void hpsort_double_doublematrix(unsigned long n, unsigned long nmat,
                                double ra[], double **ra2) {
  unsigned long i, ir, j, l;
  unsigned long iaux;
  double rra;
  double rra2[nmat];
  if (n < 1)
    return;
  l = (n >> 1) + 1;
  ir = n;
  for (;;) {
    if (l > 1) {
      rra = ra[--l - 1];
      for (iaux = 0; iaux < nmat; iaux++) {
        rra2[iaux] = ra2[l - 1][iaux];
      }
    } else {
      rra = ra[ir - 1];
      for (iaux = 0; iaux < nmat; iaux++) {
        rra2[iaux] = ra2[ir - 1][iaux];
      }
      ra[ir - 1] = ra[0];
      for (iaux = 0; iaux < nmat; iaux++) {
        ra2[ir - 1][iaux] = ra2[0][iaux];
      }
      if (--ir == 1) {
        ra[0] = rra;
        for (iaux = 0; iaux < nmat; iaux++) {
          ra2[0][iaux] = rra2[iaux];
        }
        break;
      }
    }
    i = l;
    j = l;
    while (j <= ir) {
      if (j < ir && ra[j - 1] < ra[j])
        j++;
      if (rra < ra[j - 1]) {
        ra[i - 1] = ra[j - 1];
        for (iaux = 0; iaux < nmat; iaux++) {
          ra2[i - 1][iaux] = ra2[j - 1][iaux];
        }
        i = j;
        j <<= 1;
      } else
        j = ir + 1;
    }
    ra[i - 1] = rra;
    for (iaux = 0; iaux < nmat; iaux++) {
      ra2[i - 1][iaux] = rra2[iaux];
    }
  }
}


x86 assembly (clang, -O0):
<hpsort_double_doublematrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rsp,%rcx
mov    %rcx,-0x58(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x60(%rbp)
cmpq   $0x1,-0x8(%rbp)
jae    1157 <hpsort_double_doublematrix+0x57>
movl   $0x1,-0x64(%rbp)
jmp    14bb <hpsort_double_doublematrix+0x3bb>
mov    -0x8(%rbp),%rax
shr    $0x1,%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
cmpq   $0x1,-0x40(%rbp)
jbe    11ea <hpsort_double_doublematrix+0xea>
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x40(%rbp)
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    11e5 <hpsort_double_doublematrix+0xe5>
mov    -0x70(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    -0x40(%rbp),%rdx
sub    $0x1,%rdx
mov    (%rcx,%rdx,8),%rcx
mov    -0x48(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm0
mov    -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    11a0 <hpsort_double_doublematrix+0xa0>
jmp    1327 <hpsort_double_doublematrix+0x227>
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    124d <hpsort_double_doublematrix+0x14d>
mov    -0x70(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    -0x30(%rbp),%rdx
sub    $0x1,%rdx
mov    (%rcx,%rdx,8),%rcx
mov    -0x48(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm0
mov    -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1208 <hpsort_double_doublematrix+0x108>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%rcx
sub    $0x1,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    12b6 <hpsort_double_doublematrix+0x1b6>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x30(%rbp),%rcx
sub    $0x1,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    126e <hpsort_double_doublematrix+0x16e>
mov    -0x30(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x30(%rbp)
cmp    $0x1,%rax
jne    1322 <hpsort_double_doublematrix+0x222>
movsd  -0x50(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    131d <hpsort_double_doublematrix+0x21d>
mov    -0x70(%rbp),%rax
mov    -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    12e1 <hpsort_double_doublematrix+0x1e1>
jmp    14b4 <hpsort_double_doublematrix+0x3b4>
jmp    1327 <hpsort_double_doublematrix+0x227>
mov    -0x40(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x30(%rbp),%rax
ja     144c <hpsort_double_doublematrix+0x34c>
mov    -0x38(%rbp),%rax
cmp    -0x30(%rbp),%rax
jae    1387 <hpsort_double_doublematrix+0x287>
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1387 <hpsort_double_doublematrix+0x287>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
movsd  -0x50(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    143b <hpsort_double_doublematrix+0x33b>
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1422 <hpsort_double_doublematrix+0x322>
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%rcx
sub    $0x1,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    13d1 <hpsort_double_doublematrix+0x2d1>
mov    -0x38(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x38(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1447 <hpsort_double_doublematrix+0x347>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1337 <hpsort_double_doublematrix+0x237>
movsd  -0x50(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    14af <hpsort_double_doublematrix+0x3af>
mov    -0x70(%rbp),%rax
mov    -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    146a <hpsort_double_doublematrix+0x36a>
jmp    116f <hpsort_double_doublematrix+0x6f>
movl   $0x0,-0x64(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hpsort_double_doublematrix>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rdx,%r15
mov    %rsp,%rdx
lea    0xf(,%rsi,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rdx
mov    %rdx,-0x50(%rbp)
mov    %rdx,%rsp
test   %rdi,%rdi
je     1653 <hpsort_double_doublematrix+0x543>
mov    %rsi,%r14
mov    %rdi,%r12
mov    %rdi,%r13
shr    %r13
add    $0x1,%r13
lea    0x0(,%rsi,8),%rax
mov    %rax,-0x38(%rbp)
lea    -0x4(%rsi),%rax
mov    %rax,-0x70(%rbp)
mov    %rax,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %rsi,%rax
and    $0xfffffffffffffffc,%rax
mov    %rax,-0x68(%rbp)
mov    %edx,%esi
and    $0x3,%esi
mov    %rdx,%rax
mov    %rdx,-0x80(%rbp)
and    $0xfffffffffffffffc,%rdx
mov    %rdx,-0x60(%rbp)
mov    %r14d,%r10d
and    $0x3,%r10d
mov    %rsi,-0x78(%rbp)
mov    %rsi,%r11
shl    $0x5,%r11
mov    %rcx,-0x58(%rbp)
mov    %r10,-0x48(%rbp)
mov    %r11,-0x40(%rbp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    $0x2,%r13
jb     1210 <hpsort_double_doublematrix+0x100>
lea    -0x1(%r13),%rbx
movsd  -0x10(%r15,%r13,8),%xmm2
test   %r14,%r14
je     11fe <hpsort_double_doublematrix+0xee>
mov    -0x10(%rcx,%r13,8),%rsi
mov    -0x50(%rbp),%rdi
mov    -0x38(%rbp),%rdx
movsd  %xmm2,-0x30(%rbp)
call   1030 <memcpy@plt>
movsd  -0x30(%rbp),%xmm2
mov    -0x40(%rbp),%r11
mov    -0x48(%rbp),%r10
mov    -0x58(%rbp),%rcx
mov    %rbx,%r13
jmp    141f <hpsort_double_doublematrix+0x30f>
cs nopw 0x0(%rax,%rax,1)
lea    -0x1(%r12),%rbx
movsd  -0x8(%r15,%r12,8),%xmm2
test   %r14,%r14
je     1268 <hpsort_double_doublematrix+0x158>
movsd  %xmm2,-0x30(%rbp)
mov    -0x8(%rcx,%r12,8),%r13
mov    -0x50(%rbp),%rdi
mov    %r13,%rsi
mov    -0x38(%rbp),%rdx
call   1030 <memcpy@plt>
mov    -0x58(%rbp),%rcx
movsd  (%r15),%xmm0
movsd  %xmm0,-0x8(%r15,%r12,8)
mov    (%rcx),%rax
cmp    $0x4,%r14
jae    1289 <hpsort_double_doublematrix+0x179>
xor    %edi,%edi
mov    -0x48(%rbp),%r10
mov    -0x40(%rbp),%r11
movsd  -0x30(%rbp),%xmm2
jmp    1390 <hpsort_double_doublematrix+0x280>
movsd  (%r15),%xmm0
movsd  %xmm0,-0x8(%r15,%r12,8)
mov    $0x1,%r13d
cmp    $0x1,%rbx
jne    141c <hpsort_double_doublematrix+0x30c>
jmp    164e <hpsort_double_doublematrix+0x53e>
lea    (%rax,%r14,8),%rdx
cmp    %rdx,%r13
mov    -0x48(%rbp),%r10
mov    -0x40(%rbp),%r11
jae    12b2 <hpsort_double_doublematrix+0x1a2>
mov    -0x38(%rbp),%rdx
add    %r13,%rdx
cmp    %rax,%rdx
jbe    12b2 <hpsort_double_doublematrix+0x1a2>
xor    %edi,%edi
movsd  -0x30(%rbp),%xmm2
jmp    1390 <hpsort_double_doublematrix+0x280>
cmpq   $0xc,-0x70(%rbp)
jae    12bd <hpsort_double_doublematrix+0x1ad>
xor    %esi,%esi
jmp    1333 <hpsort_double_doublematrix+0x223>
mov    -0x60(%rbp),%rdx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups (%rax,%rsi,8),%xmm0
movups 0x10(%rax,%rsi,8),%xmm1
movups %xmm0,0x0(%r13,%rsi,8)
movups %xmm1,0x10(%r13,%rsi,8)
movups 0x20(%rax,%rsi,8),%xmm0
movups 0x30(%rax,%rsi,8),%xmm1
movups %xmm0,0x20(%r13,%rsi,8)
movups %xmm1,0x30(%r13,%rsi,8)
movups 0x40(%rax,%rsi,8),%xmm0
movups 0x50(%rax,%rsi,8),%xmm1
movups %xmm0,0x40(%r13,%rsi,8)
movups %xmm1,0x50(%r13,%rsi,8)
movupd 0x60(%rax,%rsi,8),%xmm0
movups 0x70(%rax,%rsi,8),%xmm1
movupd %xmm0,0x60(%r13,%rsi,8)
movups %xmm1,0x70(%r13,%rsi,8)
add    $0x10,%rsi
add    $0xfffffffffffffffc,%rdx
jne    12d0 <hpsort_double_doublematrix+0x1c0>
cmpq   $0x0,-0x78(%rbp)
movsd  -0x30(%rbp),%xmm2
je     137d <hpsort_double_doublematrix+0x26d>
lea    0x10(,%rsi,8),%rdx
add    %r13,%rdx
lea    (%rax,%rsi,8),%rdi
add    $0x10,%rdi
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd -0x10(%rdi,%rsi,1),%xmm0
movups (%rdi,%rsi,1),%xmm1
movupd %xmm0,-0x10(%rdx,%rsi,1)
movups %xmm1,(%rdx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%r11
jne    1360 <hpsort_double_doublematrix+0x250>
mov    -0x68(%rbp),%rdx
mov    %rdx,%rdi
cmp    %r14,%rdx
je     140c <hpsort_double_doublematrix+0x2fc>
nopl   (%rax)
mov    %rdi,%rdx
not    %rdx
add    %r14,%rdx
test   %r10,%r10
je     13c6 <hpsort_double_doublematrix+0x2b6>
mov    %r10,%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,0x0(%r13,%rdi,8)
add    $0x1,%rdi
add    $0xffffffffffffffff,%rsi
jne    13b0 <hpsort_double_doublematrix+0x2a0>
cmp    $0x3,%rdx
jb     140c <hpsort_double_doublematrix+0x2fc>
nopl   0x0(%rax)
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,0x0(%r13,%rdi,8)
movsd  0x8(%rax,%rdi,8),%xmm0
movsd  %xmm0,0x8(%r13,%rdi,8)
movsd  0x10(%rax,%rdi,8),%xmm0
movsd  %xmm0,0x10(%r13,%rdi,8)
movsd  0x18(%rax,%rdi,8),%xmm0
movsd  %xmm0,0x18(%r13,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%r14
jne    13d0 <hpsort_double_doublematrix+0x2c0>
mov    $0x1,%r13d
cmp    $0x1,%rbx
je     1632 <hpsort_double_doublematrix+0x522>
mov    %rbx,%r12
mov    %r13,%rsi
cmp    %r12,%r13
jbe    1460 <hpsort_double_doublematrix+0x350>
movsd  %xmm2,-0x8(%r15,%rsi,8)
test   %r14,%r14
je     11c0 <hpsort_double_doublematrix+0xb0>
mov    -0x8(%rcx,%rsi,8),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   1030 <memcpy@plt>
mov    -0x40(%rbp),%r11
mov    -0x48(%rbp),%r10
mov    -0x58(%rbp),%rcx
jmp    11c0 <hpsort_double_doublematrix+0xb0>
nopw   0x0(%rax,%rax,1)
lea    0x1(%r12),%r8
mov    %r13,%rsi
mov    %r13,%r9
jmp    147f <hpsort_double_doublematrix+0x36f>
nopl   (%rax)
lea    (%r9,%r9,1),%rax
mov    %r9,%rsi
mov    %rax,%r9
cmp    %r12,%rax
ja     1427 <hpsort_double_doublematrix+0x317>
cmp    %r12,%r9
jae    1497 <hpsort_double_doublematrix+0x387>
movsd  (%r15,%r9,8),%xmm0
ucomisd -0x8(%r15,%r9,8),%xmm0
jbe    1497 <hpsort_double_doublematrix+0x387>
add    $0x1,%r9
movsd  -0x8(%r15,%r9,8),%xmm0
ucomisd %xmm2,%xmm0
jbe    1560 <hpsort_double_doublematrix+0x450>
movsd  %xmm0,-0x8(%r15,%rsi,8)
test   %r14,%r14
je     1470 <hpsort_double_doublematrix+0x360>
mov    -0x8(%rcx,%r9,8),%rdx
mov    -0x8(%rcx,%rsi,8),%rsi
cmp    $0x4,%r14
jb     14de <hpsort_double_doublematrix+0x3ce>
lea    (%rdx,%r14,8),%rax
cmp    %rax,%rsi
jae    1568 <hpsort_double_doublematrix+0x458>
lea    (%rsi,%r14,8),%rax
cmp    %rax,%rdx
jae    1568 <hpsort_double_doublematrix+0x458>
xor    %edi,%edi
mov    %rdi,%rax
not    %rax
add    %r14,%rax
test   $0x3,%r14b
je     1514 <hpsort_double_doublematrix+0x404>
mov    %r10,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rdx,%rdi,8),%xmm0
movsd  %xmm0,(%rsi,%rdi,8)
add    $0x1,%rdi
add    $0xffffffffffffffff,%rbx
jne    1500 <hpsort_double_doublematrix+0x3f0>
cmp    $0x3,%rax
jb     1470 <hpsort_double_doublematrix+0x360>
xchg   %ax,%ax
movsd  (%rdx,%rdi,8),%xmm0
movsd  %xmm0,(%rsi,%rdi,8)
movsd  0x8(%rdx,%rdi,8),%xmm0
movsd  %xmm0,0x8(%rsi,%rdi,8)
movsd  0x10(%rdx,%rdi,8),%xmm0
movsd  %xmm0,0x10(%rsi,%rdi,8)
movsd  0x18(%rdx,%rdi,8),%xmm0
movsd  %xmm0,0x18(%rsi,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%r14
jne    1520 <hpsort_double_doublematrix+0x410>
jmp    1470 <hpsort_double_doublematrix+0x360>
nopl   0x0(%rax)
mov    %r8,%rax
jmp    1477 <hpsort_double_doublematrix+0x367>
cmpq   $0xc,-0x70(%rbp)
jae    1573 <hpsort_double_doublematrix+0x463>
xor    %edi,%edi
jmp    15da <hpsort_double_doublematrix+0x4ca>
mov    -0x60(%rbp),%rax
xor    %edi,%edi
nopl   0x0(%rax)
movups (%rdx,%rdi,8),%xmm0
movups 0x10(%rdx,%rdi,8),%xmm1
movups %xmm0,(%rsi,%rdi,8)
movups %xmm1,0x10(%rsi,%rdi,8)
movups 0x20(%rdx,%rdi,8),%xmm0
movups 0x30(%rdx,%rdi,8),%xmm1
movups %xmm0,0x20(%rsi,%rdi,8)
movups %xmm1,0x30(%rsi,%rdi,8)
movups 0x40(%rdx,%rdi,8),%xmm0
movups 0x50(%rdx,%rdi,8),%xmm1
movups %xmm0,0x40(%rsi,%rdi,8)
movups %xmm1,0x50(%rsi,%rdi,8)
movupd 0x60(%rdx,%rdi,8),%xmm0
movups 0x70(%rdx,%rdi,8),%xmm1
movupd %xmm0,0x60(%rsi,%rdi,8)
movups %xmm1,0x70(%rsi,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rax
jne    1580 <hpsort_double_doublematrix+0x470>
testb  $0x3,-0x80(%rbp)
je     161d <hpsort_double_doublematrix+0x50d>
lea    (%rsi,%rdi,8),%rax
add    $0x10,%rax
lea    (%rdx,%rdi,8),%rdi
add    $0x10,%rdi
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movupd -0x10(%rdi,%rbx,1),%xmm0
movups (%rdi,%rbx,1),%xmm1
movupd %xmm0,-0x10(%rax,%rbx,1)
movups %xmm1,(%rax,%rbx,1)
add    $0x20,%rbx
cmp    %rbx,%r11
jne    1600 <hpsort_double_doublematrix+0x4f0>
mov    -0x68(%rbp),%rax
mov    %rax,%rdi
cmp    %r14,%rax
je     1470 <hpsort_double_doublematrix+0x360>
jmp    14e0 <hpsort_double_doublematrix+0x3d0>
movsd  %xmm2,(%r15)
test   %r14,%r14
je     1653 <hpsort_double_doublematrix+0x543>
mov    (%rcx),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   1030 <memcpy@plt>
jmp    1653 <hpsort_double_doublematrix+0x543>
movsd  %xmm2,(%r15)
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @hpsort_double_doublematrix(i64 %0, i64 %1, double* nocapture %2, double** nocapture %3) {
%5 = alloca double, i64 %1
%6 = bitcast double* %5 to i8*
%7 = icmp eq i64 %0, 0
br i1 %7, label %340, label %8
8: ; preds = %4
%9 = lshr i64 %0, 1
%10 = add nuw i64 %9, 1
%11 = icmp eq i64 %1, 0
%12 = shl nuw i64 %1, 3
%13 = shl i64 %1, 3
%14 = add i64 %1, -4
%15 = lshr i64 %14, 2
%16 = add nuw nsw i64 %15, 1
%17 = icmp ult i64 %1, 4
%18 = and i64 %1, -4
%19 = and i64 %16, 3
%20 = icmp ult i64 %14, 12
%21 = and i64 %16, 9223372036854775804
%22 = icmp eq i64 %19, 0
%23 = icmp eq i64 %18, %1
%24 = and i64 %1, 3
%25 = icmp eq i64 %24, 0
%26 = icmp ult i64 %1, 4
%27 = and i64 %1, -4
%28 = and i64 %16, 3
%29 = icmp ult i64 %14, 12
%30 = and i64 %16, 9223372036854775804
%31 = icmp eq i64 %28, 0
%32 = icmp eq i64 %27, %1
%33 = and i64 %1, 3
%34 = icmp eq i64 %33, 0
br label %35
35: ; preds = %339, %8
%36 = phi i64 [ %10, %8 ], [ %182, %339 ]
%37 = phi i64 [ %0, %8 ], [ %184, %339 ]
%38 = icmp ugt i64 %36, 1
br i1 %38, label %39, label %48
39: ; preds = %35
%40 = add i64 %36, -1
%41 = add i64 %36, -2
%42 = getelementptr inbounds double, double* %2, i64 %41
%43 = load double, double* %42
br i1 %11, label %181, label %44
44: ; preds = %39
%45 = getelementptr inbounds double*, double** %3, i64 %41
%46 = bitcast double** %45 to i8**
%47 = load i8*, i8** %46
br label %181
48: ; preds = %35
%49 = add i64 %37, -1
%50 = getelementptr inbounds double, double* %2, i64 %49
%51 = load double, double* %50
br i1 %11, label %173, label %52
52: ; preds = %48
%53 = getelementptr inbounds double*, double** %3, i64 %49
%54 = bitcast double** %53 to i8**
%55 = load i8*, i8** %54
%56 = load double, double* %2
store double %56, double* %50
%57 = load double*, double** %3
%58 = bitcast i8* %55 to double*
br i1 %17, label %136, label %59
59: ; preds = %52
%60 = bitcast double* %57 to i8*
%61 = getelementptr i8, i8* %55, i64 %13
%62 = getelementptr double, double* %57, i64 %1
%63 = bitcast double* %62 to i8*
%64 = icmp ult i8* %55, %63
%65 = icmp ugt i8* %61, %60
%66 = and i1 %64, %65
br i1 %66, label %136, label %67
67: ; preds = %59
br i1 %20, label %117, label %68
68: ; preds = %67, %68
%69 = phi i64 [ %114, %68 ], [ 0, %67 ]
%70 = phi i64 [ %115, %68 ], [ 0, %67 ]
%71 = getelementptr inbounds double, double* %57, i64 %69
%72 = bitcast double* %71 to <2 x double>*
%73 = load <2 x double>, <2 x double>* %72
%74 = getelementptr inbounds double, double* %71, i64 2
%75 = bitcast double* %74 to <2 x double>*
%76 = load <2 x double>, <2 x double>* %75
%77 = getelementptr inbounds double, double* %58, i64 %69
%78 = bitcast double* %77 to <2 x double>*
store <2 x double> %73, <2 x double>* %78
%79 = getelementptr inbounds double, double* %77, i64 2
%80 = bitcast double* %79 to <2 x double>*
store <2 x double> %76, <2 x double>* %80
%81 = or i64 %69, 4
%82 = getelementptr inbounds double, double* %57, i64 %81
%83 = bitcast double* %82 to <2 x double>*
%84 = load <2 x double>, <2 x double>* %83
%85 = getelementptr inbounds double, double* %82, i64 2
%86 = bitcast double* %85 to <2 x double>*
%87 = load <2 x double>, <2 x double>* %86
%88 = getelementptr inbounds double, double* %58, i64 %81
%89 = bitcast double* %88 to <2 x double>*
store <2 x double> %84, <2 x double>* %89
%90 = getelementptr inbounds double, double* %88, i64 2
%91 = bitcast double* %90 to <2 x double>*
store <2 x double> %87, <2 x double>* %91
%92 = or i64 %69, 8
%93 = getelementptr inbounds double, double* %57, i64 %92
%94 = bitcast double* %93 to <2 x double>*
%95 = load <2 x double>, <2 x double>* %94
%96 = getelementptr inbounds double, double* %93, i64 2
%97 = bitcast double* %96 to <2 x double>*
%98 = load <2 x double>, <2 x double>* %97
%99 = getelementptr inbounds double, double* %58, i64 %92
%100 = bitcast double* %99 to <2 x double>*
store <2 x double> %95, <2 x double>* %100
%101 = getelementptr inbounds double, double* %99, i64 2
%102 = bitcast double* %101 to <2 x double>*
store <2 x double> %98, <2 x double>* %102
%103 = or i64 %69, 12
%104 = getelementptr inbounds double, double* %57, i64 %103
%105 = bitcast double* %104 to <2 x double>*
%106 = load <2 x double>, <2 x double>* %105
%107 = getelementptr inbounds double, double* %104, i64 2
%108 = bitcast double* %107 to <2 x double>*
%109 = load <2 x double>, <2 x double>* %108
%110 = getelementptr inbounds double, double* %58, i64 %103
%111 = bitcast double* %110 to <2 x double>*
store <2 x double> %106, <2 x double>* %111
%112 = getelementptr inbounds double, double* %110, i64 2
%113 = bitcast double* %112 to <2 x double>*
store <2 x double> %109, <2 x double>* %113
%114 = add nuw i64 %69, 16
%115 = add nuw i64 %70, 4
%116 = icmp eq i64 %115, %21
br i1 %116, label %117, label %68
117: ; preds = %68, %67
%118 = phi i64 [ 0, %67 ], [ %114, %68 ]
br i1 %22, label %135, label %119
119: ; preds = %117, %119
%120 = phi i64 [ %132, %119 ], [ %118, %117 ]
%121 = phi i64 [ %133, %119 ], [ 0, %117 ]
%122 = getelementptr inbounds double, double* %57, i64 %120
%123 = bitcast double* %122 to <2 x double>*
%124 = load <2 x double>, <2 x double>* %123
%125 = getelementptr inbounds double, double* %122, i64 2
%126 = bitcast double* %125 to <2 x double>*
%127 = load <2 x double>, <2 x double>* %126
%128 = getelementptr inbounds double, double* %58, i64 %120
%129 = bitcast double* %128 to <2 x double>*
store <2 x double> %124, <2 x double>* %129
%130 = getelementptr inbounds double, double* %128, i64 2
%131 = bitcast double* %130 to <2 x double>*
store <2 x double> %127, <2 x double>* %131
%132 = add nuw i64 %120, 4
%133 = add i64 %121, 1
%134 = icmp eq i64 %133, %19
br i1 %134, label %135, label %119
135: ; preds = %119, %117
br i1 %23, label %171, label %136
136: ; preds = %59, %52, %135
%137 = phi i64 [ 0, %59 ], [ 0, %52 ], [ %18, %135 ]
%138 = xor i64 %137, -1
%139 = add i64 %138, %1
br i1 %25, label %149, label %140
140: ; preds = %136, %140
%141 = phi i64 [ %146, %140 ], [ %137, %136 ]
%142 = phi i64 [ %147, %140 ], [ 0, %136 ]
%143 = getelementptr inbounds double, double* %57, i64 %141
%144 = load double, double* %143
%145 = getelementptr inbounds double, double* %58, i64 %141
store double %144, double* %145
%146 = add nuw i64 %141, 1
%147 = add i64 %142, 1
%148 = icmp eq i64 %147, %24
br i1 %148, label %149, label %140
149: ; preds = %140, %136
%150 = phi i64 [ %137, %136 ], [ %146, %140 ]
%151 = icmp ult i64 %139, 3
br i1 %151, label %171, label %152
152: ; preds = %149, %152
%153 = phi i64 [ %169, %152 ], [ %150, %149 ]
%154 = getelementptr inbounds double, double* %57, i64 %153
%155 = load double, double* %154
%156 = getelementptr inbounds double, double* %58, i64 %153
store double %155, double* %156
%157 = add nuw i64 %153, 1
%158 = getelementptr inbounds double, double* %57, i64 %157
%159 = load double, double* %158
%160 = getelementptr inbounds double, double* %58, i64 %157
store double %159, double* %160
%161 = add nuw i64 %153, 2
%162 = getelementptr inbounds double, double* %57, i64 %161
%163 = load double, double* %162
%164 = getelementptr inbounds double, double* %58, i64 %161
store double %163, double* %164
%165 = add nuw i64 %153, 3
%166 = getelementptr inbounds double, double* %57, i64 %165
%167 = load double, double* %166
%168 = getelementptr inbounds double, double* %58, i64 %165
store double %167, double* %168
%169 = add nuw i64 %153, 4
%170 = icmp eq i64 %169, %1
br i1 %170, label %171, label %152
171: ; preds = %149, %152, %135
%172 = icmp eq i64 %49, 1
br i1 %172, label %177, label %181
173: ; preds = %48
%174 = load double, double* %2
store double %174, double* %50
%175 = icmp eq i64 %49, 1
br i1 %175, label %176, label %181
176: ; preds = %173
store double %51, double* %2
br label %340
177: ; preds = %171
store double %51, double* %2
br i1 %11, label %340, label %178
178: ; preds = %177
%179 = bitcast double** %3 to i8**
%180 = load i8*, i8** %179
br label %340
181: ; preds = %173, %44, %39, %171
%182 = phi i64 [ 1, %171 ], [ %40, %39 ], [ %40, %44 ], [ 1, %173 ]
%183 = phi double [ %51, %171 ], [ %43, %39 ], [ %43, %44 ], [ %51, %173 ]
%184 = phi i64 [ %49, %171 ], [ %37, %39 ], [ %37, %44 ], [ %49, %173 ]
%185 = icmp ugt i64 %182, %184
br i1 %185, label %331, label %186
186: ; preds = %181
%187 = add i64 %184, 1
br label %188
188: ; preds = %186, %327
%189 = phi i64 [ %182, %186 ], [ %329, %327 ]
%190 = phi i64 [ %182, %186 ], [ %328, %327 ]
%191 = icmp ult i64 %190, %184
br i1 %191, label %192, label %201
192: ; preds = %188
%193 = add i64 %190, -1
%194 = getelementptr inbounds double, double* %2, i64 %193
%195 = load double, double* %194
%196 = getelementptr inbounds double, double* %2, i64 %190
%197 = load double, double* %196
%198 = fcmp olt double %195, %197
br i1 %198, label %199, label %201
199: ; preds = %192
%200 = add nuw i64 %190, 1
br label %201
201: ; preds = %199, %192, %188
%202 = phi i64 [ %200, %199 ], [ %190, %192 ], [ %190, %188 ]
%203 = add i64 %202, -1
%204 = getelementptr inbounds double, double* %2, i64 %203
%205 = load double, double* %204
%206 = fcmp olt double %183, %205
br i1 %206, label %207, label %327
207: ; preds = %201
%208 = add i64 %189, -1
%209 = getelementptr inbounds double, double* %2, i64 %208
store double %205, double* %209
br i1 %11, label %325, label %210
210: ; preds = %207
%211 = getelementptr inbounds double*, double** %3, i64 %203
%212 = load double*, double** %211
%213 = getelementptr inbounds double*, double** %3, i64 %208
%214 = load double*, double** %213
br i1 %26, label %290, label %215
215: ; preds = %210
%216 = getelementptr double, double* %214, i64 %1
%217 = getelementptr double, double* %212, i64 %1
%218 = icmp ult double* %214, %217
%219 = icmp ult double* %212, %216
%220 = and i1 %218, %219
br i1 %220, label %290, label %221
221: ; preds = %215
br i1 %29, label %271, label %222
222: ; preds = %221, %222
%223 = phi i64 [ %268, %222 ], [ 0, %221 ]
%224 = phi i64 [ %269, %222 ], [ 0, %221 ]
%225 = getelementptr inbounds double, double* %212, i64 %223
%226 = bitcast double* %225 to <2 x double>*
%227 = load <2 x double>, <2 x double>* %226
%228 = getelementptr inbounds double, double* %225, i64 2
%229 = bitcast double* %228 to <2 x double>*
%230 = load <2 x double>, <2 x double>* %229
%231 = getelementptr inbounds double, double* %214, i64 %223
%232 = bitcast double* %231 to <2 x double>*
store <2 x double> %227, <2 x double>* %232
%233 = getelementptr inbounds double, double* %231, i64 2
%234 = bitcast double* %233 to <2 x double>*
store <2 x double> %230, <2 x double>* %234
%235 = or i64 %223, 4
%236 = getelementptr inbounds double, double* %212, i64 %235
%237 = bitcast double* %236 to <2 x double>*
%238 = load <2 x double>, <2 x double>* %237
%239 = getelementptr inbounds double, double* %236, i64 2
%240 = bitcast double* %239 to <2 x double>*
%241 = load <2 x double>, <2 x double>* %240
%242 = getelementptr inbounds double, double* %214, i64 %235
%243 = bitcast double* %242 to <2 x double>*
store <2 x double> %238, <2 x double>* %243
%244 = getelementptr inbounds double, double* %242, i64 2
%245 = bitcast double* %244 to <2 x double>*
store <2 x double> %241, <2 x double>* %245
%246 = or i64 %223, 8
%247 = getelementptr inbounds double, double* %212, i64 %246
%248 = bitcast double* %247 to <2 x double>*
%249 = load <2 x double>, <2 x double>* %248
%250 = getelementptr inbounds double, double* %247, i64 2
%251 = bitcast double* %250 to <2 x double>*
%252 = load <2 x double>, <2 x double>* %251
%253 = getelementptr inbounds double, double* %214, i64 %246
%254 = bitcast double* %253 to <2 x double>*
store <2 x double> %249, <2 x double>* %254
%255 = getelementptr inbounds double, double* %253, i64 2
%256 = bitcast double* %255 to <2 x double>*
store <2 x double> %252, <2 x double>* %256
%257 = or i64 %223, 12
%258 = getelementptr inbounds double, double* %212, i64 %257
%259 = bitcast double* %258 to <2 x double>*
%260 = load <2 x double>, <2 x double>* %259
%261 = getelementptr inbounds double, double* %258, i64 2
%262 = bitcast double* %261 to <2 x double>*
%263 = load <2 x double>, <2 x double>* %262
%264 = getelementptr inbounds double, double* %214, i64 %257
%265 = bitcast double* %264 to <2 x double>*
store <2 x double> %260, <2 x double>* %265
%266 = getelementptr inbounds double, double* %264, i64 2
%267 = bitcast double* %266 to <2 x double>*
store <2 x double> %263, <2 x double>* %267
%268 = add nuw i64 %223, 16
%269 = add nuw i64 %224, 4
%270 = icmp eq i64 %269, %30
br i1 %270, label %271, label %222
271: ; preds = %222, %221
%272 = phi i64 [ 0, %221 ], [ %268, %222 ]
br i1 %31, label %289, label %273
273: ; preds = %271, %273
%274 = phi i64 [ %286, %273 ], [ %272, %271 ]
%275 = phi i64 [ %287, %273 ], [ 0, %271 ]
%276 = getelementptr inbounds double, double* %212, i64 %274
%277 = bitcast double* %276 to <2 x double>*
%278 = load <2 x double>, <2 x double>* %277
%279 = getelementptr inbounds double, double* %276, i64 2
%280 = bitcast double* %279 to <2 x double>*
%281 = load <2 x double>, <2 x double>* %280
%282 = getelementptr inbounds double, double* %214, i64 %274
%283 = bitcast double* %282 to <2 x double>*
store <2 x double> %278, <2 x double>* %283
%284 = getelementptr inbounds double, double* %282, i64 2
%285 = bitcast double* %284 to <2 x double>*
store <2 x double> %281, <2 x double>* %285
%286 = add nuw i64 %274, 4
%287 = add i64 %275, 1
%288 = icmp eq i64 %287, %28
br i1 %288, label %289, label %273
289: ; preds = %273, %271
br i1 %32, label %325, label %290
290: ; preds = %215, %210, %289
%291 = phi i64 [ 0, %215 ], [ 0, %210 ], [ %27, %289 ]
%292 = xor i64 %291, -1
%293 = add i64 %292, %1
br i1 %34, label %303, label %294
294: ; preds = %290, %294
%295 = phi i64 [ %300, %294 ], [ %291, %290 ]
%296 = phi i64 [ %301, %294 ], [ 0, %290 ]
%297 = getelementptr inbounds double, double* %212, i64 %295
%298 = load double, double* %297
%299 = getelementptr inbounds double, double* %214, i64 %295
store double %298, double* %299
%300 = add nuw i64 %295, 1
%301 = add i64 %296, 1
%302 = icmp eq i64 %301, %33
br i1 %302, label %303, label %294
303: ; preds = %294, %290
%304 = phi i64 [ %291, %290 ], [ %300, %294 ]
%305 = icmp ult i64 %293, 3
br i1 %305, label %325, label %306
306: ; preds = %303, %306
%307 = phi i64 [ %323, %306 ], [ %304, %303 ]
%308 = getelementptr inbounds double, double* %212, i64 %307
%309 = load double, double* %308
%310 = getelementptr inbounds double, double* %214, i64 %307
store double %309, double* %310
%311 = add nuw i64 %307, 1
%312 = getelementptr inbounds double, double* %212, i64 %311
%313 = load double, double* %312
%314 = getelementptr inbounds double, double* %214, i64 %311
store double %313, double* %314
%315 = add nuw i64 %307, 2
%316 = getelementptr inbounds double, double* %212, i64 %315
%317 = load double, double* %316
%318 = getelementptr inbounds double, double* %214, i64 %315
store double %317, double* %318
%319 = add nuw i64 %307, 3
%320 = getelementptr inbounds double, double* %212, i64 %319
%321 = load double, double* %320
%322 = getelementptr inbounds double, double* %214, i64 %319
store double %321, double* %322
%323 = add nuw i64 %307, 4
%324 = icmp eq i64 %323, %1
br i1 %324, label %325, label %306
325: ; preds = %303, %306, %289, %207
%326 = shl i64 %202, 1
br label %327
327: ; preds = %201, %325
%328 = phi i64 [ %326, %325 ], [ %187, %201 ]
%329 = phi i64 [ %202, %325 ], [ %189, %201 ]
%330 = icmp ugt i64 %328, %184
br i1 %330, label %331, label %188
331: ; preds = %327, %181
%332 = phi i64 [ %182, %181 ], [ %329, %327 ]
%333 = add i64 %332, -1
%334 = getelementptr inbounds double, double* %2, i64 %333
store double %183, double* %334
br i1 %11, label %339, label %335
335: ; preds = %331
%336 = getelementptr inbounds double*, double** %3, i64 %333
%337 = bitcast double** %336 to i8**
%338 = load i8*, i8** %337
br label %339
339: ; preds = %335, %331
br label %35
340: ; preds = %176, %178, %177, %4
ret void
}