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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ DV2isortDown(int, double *, double *);
double Dcentervalue(int, double *);
void DV2qsortDown(int n, double dvec1[], double dvec2[]) {
  double dtemp, v;
  int a, b, c, d, l, h, s;
  if (n <= 10) {
    DV2isortDown(n, dvec1, dvec2);
  } else {
    v = Dcentervalue(n, dvec1);
    a = b = 0;
    c = d = n - 1;
    for (;;) {
      while (b <= c && dvec1[b] >= v) {
        if (dvec1[b] == v) {
          {
            dtemp = dvec1[(a)];
            dvec1[(a)] = dvec1[(b)];
            dvec1[(b)] = dtemp;
            dtemp = dvec2[(a)];
            dvec2[(a)] = dvec2[(b)];
            dvec2[(b)] = dtemp;
          }
          a++;
        }
        b++;
      }
      while (c >= b && dvec1[c] <= v) {
        if (dvec1[c] == v) {
          {
            dtemp = dvec1[(c)];
            dvec1[(c)] = dvec1[(d)];
            dvec1[(d)] = dtemp;
            dtemp = dvec2[(c)];
            dvec2[(c)] = dvec2[(d)];
            dvec2[(d)] = dtemp;
          }
          d--;
        }
        c--;
      }
      if (b > c) {
        break;
      }
      {
        dtemp = dvec1[(b)];
        dvec1[(b)] = dvec1[(c)];
        dvec1[(c)] = dtemp;
        dtemp = dvec2[(b)];
        dvec2[(b)] = dvec2[(c)];
        dvec2[(c)] = dtemp;
      }
      b++;
      c--;
    }
    s = (a <= b - a) ? a : b - a;
    for (l = 0, h = b - s; s != 0; s--) {
      {
        dtemp = dvec1[(l)];
        dvec1[(l)] = dvec1[(h)];
        dvec1[(h)] = dtemp;
        dtemp = dvec2[(l)];
        dvec2[(l)] = dvec2[(h)];
        dvec2[(h)] = dtemp;
      }
      l++;
      h++;
    }
    s = ((d - c) <= (n - 1 - d)) ? (d - c) : (n - 1 - d);
    for (l = b, h = n - s; s != 0; s--) {
      {
        dtemp = dvec1[(l)];
        dvec1[(l)] = dvec1[(h)];
        dvec1[(h)] = dtemp;
        dtemp = dvec2[(l)];
        dvec2[(l)] = dvec2[(h)];
        dvec2[(h)] = dtemp;
      }
      l++;
      h++;
    }
    DV2qsortDown(b - a, dvec1, dvec2);
    DV2qsortDown(d - c, dvec1 + n - (d - c), dvec2 + n - (d - c));
  }
  return;
}


x86 assembly (clang, -O0):
<DV2qsortDown>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpl   $0xa,-0x4(%rbp)
jg     1162 <DV2qsortDown+0x32>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <DV2isortDown@plt>
jmp    1646 <DV2qsortDown+0x516>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <Dcentervalue@plt>
movsd  %xmm0,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    %eax,-0x34(%rbp)
jmp    1192 <DV2qsortDown+0x62>
mov    -0x30(%rbp),%ecx
xor    %eax,%eax
cmp    -0x34(%rbp),%ecx
mov    %al,-0x45(%rbp)
jg     11bb <DV2qsortDown+0x8b>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x28(%rbp),%xmm0
setae  %al
mov    %al,-0x45(%rbp)
mov    -0x45(%rbp),%al
test   $0x1,%al
jne    11cb <DV2qsortDown+0x9b>
jmp    127c <DV2qsortDown+0x14c>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x28(%rbp),%xmm0
jne    126e <DV2qsortDown+0x13e>
jp     126e <DV2qsortDown+0x13e>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1192 <DV2qsortDown+0x62>
jmp    1281 <DV2qsortDown+0x151>
mov    -0x34(%rbp),%ecx
xor    %eax,%eax
cmp    -0x30(%rbp),%ecx
mov    %al,-0x46(%rbp)
jl     12ae <DV2qsortDown+0x17e>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
mov    %al,-0x46(%rbp)
mov    -0x46(%rbp),%al
test   $0x1,%al
jne    12be <DV2qsortDown+0x18e>
jmp    136f <DV2qsortDown+0x23f>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x28(%rbp),%xmm0
jne    1361 <DV2qsortDown+0x231>
jp     1361 <DV2qsortDown+0x231>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    1281 <DV2qsortDown+0x151>
mov    -0x30(%rbp),%eax
cmp    -0x34(%rbp),%eax
jle    1380 <DV2qsortDown+0x250>
jmp    1413 <DV2qsortDown+0x2e3>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    118d <DV2qsortDown+0x5d>
mov    -0x2c(%rbp),%eax
mov    -0x30(%rbp),%ecx
sub    -0x2c(%rbp),%ecx
cmp    %ecx,%eax
jg     142f <DV2qsortDown+0x2ff>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    1438 <DV2qsortDown+0x308>
mov    -0x30(%rbp),%eax
sub    -0x2c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x30(%rbp),%eax
sub    -0x44(%rbp),%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x44(%rbp)
je     14f4 <DV2qsortDown+0x3c4>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x44(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x44(%rbp)
jmp    144e <DV2qsortDown+0x31e>
mov    -0x38(%rbp),%eax
sub    -0x34(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
sub    -0x38(%rbp),%ecx
cmp    %ecx,%eax
jg     1519 <DV2qsortDown+0x3e9>
mov    -0x38(%rbp),%eax
sub    -0x34(%rbp),%eax
mov    %eax,-0x50(%rbp)
jmp    1525 <DV2qsortDown+0x3f5>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
sub    -0x38(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x4(%rbp),%eax
sub    -0x44(%rbp),%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x44(%rbp)
je     15e0 <DV2qsortDown+0x4b0>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x44(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x44(%rbp)
jmp    153a <DV2qsortDown+0x40a>
mov    -0x30(%rbp),%edi
sub    -0x2c(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <DV2qsortDown@plt>
mov    -0x38(%rbp),%edi
sub    -0x34(%rbp),%edi
mov    -0x10(%rbp),%rsi
movslq -0x4(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x38(%rbp),%eax
sub    -0x34(%rbp),%eax
movslq %eax,%rcx
xor    %eax,%eax
sub    %rcx,%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x18(%rbp),%rdx
movslq -0x4(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
mov    -0x38(%rbp),%eax
sub    -0x34(%rbp),%eax
movslq %eax,%rcx
xor    %eax,%eax
sub    %rcx,%rax
shl    $0x3,%rax
add    %rax,%rdx
call   1030 <DV2qsortDown@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DV2qsortDown>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdx,%r14
mov    %rsi,%r12
mov    %edi,%r15d
cmp    $0xb,%edi
jge    1168 <DV2qsortDown+0x38>
mov    %r15d,%edi
mov    %r12,%rsi
mov    %r14,%rdx
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <DV2isortDown@plt>
movabs $0xffffffff00000000,%r13
ff ff ff
jmp    11af <DV2qsortDown+0x7f>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x2c(%rsp),%edi
mov    %r12,%rsi
mov    %r14,%rdx
call   1030 <DV2qsortDown@plt>
movslq 0x30(%rsp),%rax
lea    (%r12,%rax,8),%r12
movslq %r15d,%rcx
shl    $0x3,%rcx
sub    %rcx,%r12
lea    (%r14,%rax,8),%r14
sub    %rcx,%r14
cmp    $0xb,%r15d
jl     114c <DV2qsortDown+0x1c>
mov    %r15d,%edi
mov    %r12,%rsi
call   1050 <Dcentervalue@plt>
mov    %r15,%rax
mov    %r15,0x30(%rsp)
lea    -0x1(%r15),%r8d
xor    %esi,%esi
xor    %eax,%eax
mov    %r8d,%edx
mov    %r8d,%r15d
movslq %edx,%rdi
cmp    %edx,%eax
jg     1252 <DV2qsortDown+0x122>
movslq %eax,%rbp
lea    0x1(%rdx),%ecx
add    $0xffffffffffffffff,%rbp
jmp    11fc <DV2qsortDown+0xcc>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%eax
add    $0x1,%rbp
cmp    %rdi,%rbp
jge    1250 <DV2qsortDown+0x120>
movsd  0x8(%r12,%rbp,8),%xmm1
ucomisd %xmm0,%xmm1
jb     1252 <DV2qsortDown+0x122>
jne    11f0 <DV2qsortDown+0xc0>
jp     11f0 <DV2qsortDown+0xc0>
movslq %esi,%rsi
movsd  (%r12,%rsi,8),%xmm2
movsd  %xmm1,(%r12,%rsi,8)
movsd  %xmm2,0x8(%r12,%rbp,8)
movsd  (%r14,%rsi,8),%xmm1
movsd  0x8(%r14,%rbp,8),%xmm2
movsd  %xmm2,(%r14,%rsi,8)
movsd  %xmm1,0x8(%r14,%rbp,8)
add    $0x1,%esi
jmp    11f0 <DV2qsortDown+0xc0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ecx,%eax
movslq %eax,%r9
cmp    %eax,%edx
jl     1320 <DV2qsortDown+0x1f0>
mov    %rdi,%rbp
shl    $0x20,%rbp
add    $0x1,%rdi
jmp    1283 <DV2qsortDown+0x153>
nopw   0x0(%rax,%rax,1)
add    %r13,%rbp
add    $0xffffffff,%edx
add    $0xffffffffffffffff,%rdi
cmp    %r9,%rdi
jle    1320 <DV2qsortDown+0x1f0>
movsd  -0x8(%r12,%rdi,8),%xmm1
ucomisd %xmm1,%xmm0
jb     12d0 <DV2qsortDown+0x1a0>
ucomisd %xmm0,%xmm1
jne    1270 <DV2qsortDown+0x140>
jp     1270 <DV2qsortDown+0x140>
movslq %r15d,%r15
movsd  (%r12,%r15,8),%xmm2
movsd  %xmm2,-0x8(%r12,%rdi,8)
movsd  %xmm1,(%r12,%r15,8)
movsd  -0x8(%r14,%rdi,8),%xmm1
movsd  (%r14,%r15,8),%xmm2
movsd  %xmm2,-0x8(%r14,%rdi,8)
movsd  %xmm1,(%r14,%r15,8)
add    $0xffffffff,%r15d
jmp    1270 <DV2qsortDown+0x140>
xchg   %ax,%ax
movsd  (%r12,%r9,8),%xmm1
sar    $0x1d,%rbp
movsd  (%r12,%rbp,1),%xmm2
movsd  %xmm2,(%r12,%r9,8)
movsd  %xmm1,(%r12,%rbp,1)
movsd  (%r14,%r9,8),%xmm1
movsd  (%r14,%rbp,1),%xmm2
movsd  %xmm2,(%r14,%r9,8)
movsd  %xmm1,(%r14,%rbp,1)
add    $0x1,%r9d
add    $0xffffffff,%edx
mov    %r9d,%eax
jmp    11d0 <DV2qsortDown+0xa0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %eax,%ecx
sub    %esi,%ecx
cmp    %ecx,%esi
mov    %ecx,0x2c(%rsp)
cmovg  %ecx,%esi
test   %esi,%esi
je     1582 <DV2qsortDown+0x452>
sub    %esi,%eax
movslq %eax,%rbx
mov    %esi,%eax
add    $0xffffffff,%eax
je     1520 <DV2qsortDown+0x3f0>
mov    %r8d,0x10(%rsp)
lea    (%r12,%rax,8),%rbp
add    $0x8,%rbp
mov    %rbx,%rdi
lea    (%r12,%rbx,8),%rbx
lea    (%rdi,%rax,1),%rcx
lea    0x8(%r12,%rcx,8),%r11
lea    0x8(%r14,%rax,8),%r13
mov    %rdi,0x18(%rsp)
lea    (%r14,%rdi,8),%r10
lea    (%r14,%rcx,8),%rcx
add    $0x8,%rcx
cmp    %r11,%r12
setb   0x20(%rsp)
cmp    %rbp,%rbx
setb   0xf(%rsp)
cmp    %r13,%r12
setb   %dil
cmp    %rbp,%r14
setb   0xe(%rsp)
cmp    %rcx,%r12
setb   %r8b
cmp    %rbp,%r10
setb   0xd(%rsp)
cmp    %r13,%rbx
setb   %bpl
cmp    %r11,%r14
setb   0x17(%rsp)
cmp    %rcx,%rbx
setb   %bl
cmp    %r11,%r10
setb   0x16(%rsp)
cmp    %rcx,%r14
setb   %r11b
cmp    %r13,%r10
setb   %r10b
mov    0xf(%rsp),%cl
test   %cl,0x20(%rsp)
jne    180b <DV2qsortDown+0x6db>
and    0xe(%rsp),%dil
movabs $0xffffffff00000000,%r13
ff ff ff
jne    1806 <DV2qsortDown+0x6d6>
and    0xd(%rsp),%r8b
jne    1806 <DV2qsortDown+0x6d6>
and    0x17(%rsp),%bpl
mov    0x10(%rsp),%r8d
jne    1525 <DV2qsortDown+0x3f5>
and    0x16(%rsp),%bl
jne    1525 <DV2qsortDown+0x3f5>
and    %r10b,%r11b
jne    1525 <DV2qsortDown+0x3f5>
add    $0x1,%rax
mov    %rax,%r10
movabs $0x1fffffffe,%rcx
and    %rcx,%r10
lea    -0x2(%r10),%rdi
mov    %rdi,%rcx
shr    %rcx
add    $0x1,%rcx
test   %rdi,%rdi
mov    0x18(%rsp),%rbx
je     17e5 <DV2qsortDown+0x6b5>
mov    %rcx,%r11
and    $0xfffffffffffffffe,%r11
lea    (%r14,%rbx,8),%r8
add    $0x10,%r8
lea    (%r12,%rbx,8),%rdi
add    $0x10,%rdi
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movups (%r12,%rbp,8),%xmm0
movups -0x10(%rdi,%rbp,8),%xmm1
movups %xmm1,(%r12,%rbp,8)
movups %xmm0,-0x10(%rdi,%rbp,8)
movups (%r14,%rbp,8),%xmm0
movups -0x10(%r8,%rbp,8),%xmm1
movups %xmm1,(%r14,%rbp,8)
movups %xmm0,-0x10(%r8,%rbp,8)
movups 0x10(%r12,%rbp,8),%xmm0
movups (%rdi,%rbp,8),%xmm1
movups %xmm1,0x10(%r12,%rbp,8)
movups %xmm0,(%rdi,%rbp,8)
movupd 0x10(%r14,%rbp,8),%xmm0
movupd (%r8,%rbp,8),%xmm1
movupd %xmm1,0x10(%r14,%rbp,8)
movupd %xmm0,(%r8,%rbp,8)
add    $0x4,%rbp
add    $0xfffffffffffffffe,%r11
jne    1470 <DV2qsortDown+0x340>
test   $0x1,%cl
je     1507 <DV2qsortDown+0x3d7>
lea    (%rbx,%rbp,1),%rcx
movups (%r12,%rbp,8),%xmm0
movups (%r12,%rcx,8),%xmm1
movups %xmm1,(%r12,%rbp,8)
movups %xmm0,(%r12,%rcx,8)
movupd (%r14,%rbp,8),%xmm0
movupd (%r14,%rcx,8),%xmm1
movupd %xmm1,(%r14,%rbp,8)
movupd %xmm0,(%r14,%rcx,8)
cmp    %r10,%rax
mov    0x10(%rsp),%r8d
je     1582 <DV2qsortDown+0x452>
add    %r10,%rbx
sub    %r10d,%esi
jmp    152d <DV2qsortDown+0x3fd>
nopl   0x0(%rax)
xor    %r10d,%r10d
jmp    152d <DV2qsortDown+0x3fd>
xor    %r10d,%r10d
mov    0x18(%rsp),%rbx
lea    (%r14,%r10,8),%rax
lea    (%r12,%r10,8),%rdi
lea    (%r12,%rbx,8),%rbp
lea    (%r14,%rbx,8),%rcx
mov    %esi,%esi
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rdi,%rbx,8),%xmm0
movsd  0x0(%rbp,%rbx,8),%xmm1
movsd  %xmm1,(%rdi,%rbx,8)
movsd  %xmm0,0x0(%rbp,%rbx,8)
movsd  (%rax,%rbx,8),%xmm0
movsd  (%rcx,%rbx,8),%xmm1
movsd  %xmm1,(%rax,%rbx,8)
movsd  %xmm0,(%rcx,%rbx,8)
add    $0x1,%rbx
cmp    %ebx,%esi
jne    1550 <DV2qsortDown+0x420>
sub    %r15d,%r8d
sub    %edx,%r15d
cmp    %r8d,%r15d
cmovle %r15d,%r8d
test   %r8d,%r8d
je     1180 <DV2qsortDown+0x50>
mov    0x30(%rsp),%rax
sub    %r8d,%eax
movslq %eax,%rbx
mov    %r8d,%r10d
add    $0xffffffff,%r10d
je     1791 <DV2qsortDown+0x661>
mov    %r8d,0x10(%rsp)
lea    (%r12,%r9,8),%rdx
lea    (%r9,%r10,1),%rax
lea    (%r12,%rax,8),%rsi
add    $0x8,%rsi
lea    (%r12,%rbx,8),%rdi
lea    (%rbx,%r10,1),%rcx
lea    0x8(%r12,%rcx,8),%rbp
lea    (%r14,%r9,8),%r8
lea    0x8(%r14,%rax,8),%r13
mov    %rbx,0x20(%rsp)
lea    (%r14,%rbx,8),%r11
lea    (%r14,%rcx,8),%rcx
add    $0x8,%rcx
cmp    %rbp,%rdx
setb   %bl
cmp    %rsi,%rdi
setb   0xf(%rsp)
cmp    %r13,%rdx
setb   %al
cmp    %rsi,%r8
setb   0x18(%rsp)
cmp    %rcx,%rdx
setb   %dl
cmp    %rsi,%r11
setb   0xe(%rsp)
cmp    %r13,%rdi
setb   %sil
cmp    %rbp,%r8
setb   0xd(%rsp)
cmp    %rcx,%rdi
setb   %dil
cmp    %rbp,%r11
setb   %bpl
cmp    %rcx,%r8
setb   %r8b
cmp    %r13,%r11
setb   %cl
test   %bl,0xf(%rsp)
jne    1822 <DV2qsortDown+0x6f2>
and    0x18(%rsp),%al
movabs $0xffffffff00000000,%r13
ff ff ff
mov    0x20(%rsp),%rbx
jne    178c <DV2qsortDown+0x65c>
and    0xe(%rsp),%dl
jne    178c <DV2qsortDown+0x65c>
and    0xd(%rsp),%sil
jne    178c <DV2qsortDown+0x65c>
and    %bpl,%dil
jne    178c <DV2qsortDown+0x65c>
and    %cl,%r8b
jne    178c <DV2qsortDown+0x65c>
add    $0x1,%r10
mov    %r10,%rcx
movabs $0x1fffffffe,%rax
and    %rax,%rcx
lea    -0x2(%rcx),%rax
mov    %rax,%r11
shr    %r11
add    $0x1,%r11
test   %rax,%rax
je     17f5 <DV2qsortDown+0x6c5>
mov    %r11,%rbp
and    $0xfffffffffffffffe,%rbp
lea    (%r14,%r9,8),%rdx
add    $0x10,%rdx
lea    (%r12,%r9,8),%rax
add    $0x10,%rax
lea    (%r14,%rbx,8),%rdi
add    $0x10,%rdi
lea    (%r12,%rbx,8),%r8
add    $0x10,%r8
xor    %esi,%esi
xchg   %ax,%ax
movups -0x10(%rax,%rsi,8),%xmm0
movups -0x10(%r8,%rsi,8),%xmm1
movups %xmm1,-0x10(%rax,%rsi,8)
movups %xmm0,-0x10(%r8,%rsi,8)
movups -0x10(%rdx,%rsi,8),%xmm0
movups -0x10(%rdi,%rsi,8),%xmm1
movups %xmm1,-0x10(%rdx,%rsi,8)
movups %xmm0,-0x10(%rdi,%rsi,8)
movups (%rax,%rsi,8),%xmm0
movups (%r8,%rsi,8),%xmm1
movups %xmm1,(%rax,%rsi,8)
movups %xmm0,(%r8,%rsi,8)
movupd (%rdx,%rsi,8),%xmm0
movupd (%rdi,%rsi,8),%xmm1
movupd %xmm1,(%rdx,%rsi,8)
movupd %xmm0,(%rdi,%rsi,8)
add    $0x4,%rsi
add    $0xfffffffffffffffe,%rbp
jne    16e0 <DV2qsortDown+0x5b0>
test   $0x1,%r11b
je     1773 <DV2qsortDown+0x643>
lea    (%rsi,%r9,1),%rax
add    %rbx,%rsi
movups (%r12,%rax,8),%xmm0
movups (%r12,%rsi,8),%xmm1
movups %xmm1,(%r12,%rax,8)
movups %xmm0,(%r12,%rsi,8)
movupd (%r14,%rax,8),%xmm0
movupd (%r14,%rsi,8),%xmm1
movupd %xmm1,(%r14,%rax,8)
movupd %xmm0,(%r14,%rsi,8)
cmp    %rcx,%r10
mov    0x10(%rsp),%r8d
je     1180 <DV2qsortDown+0x50>
add    %rcx,%r9
add    %rcx,%rbx
sub    %ecx,%r8d
jmp    1791 <DV2qsortDown+0x661>
mov    0x10(%rsp),%r8d
lea    (%r12,%r9,8),%rax
lea    (%r14,%r9,8),%rcx
lea    (%r12,%rbx,8),%rdx
lea    (%r14,%rbx,8),%rsi
mov    %r8d,%edi
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
movsd  (%rax,%rbp,8),%xmm0
movsd  (%rdx,%rbp,8),%xmm1
movsd  %xmm1,(%rax,%rbp,8)
movsd  %xmm0,(%rdx,%rbp,8)
movsd  (%rcx,%rbp,8),%xmm0
movsd  (%rsi,%rbp,8),%xmm1
movsd  %xmm1,(%rcx,%rbp,8)
movsd  %xmm0,(%rsi,%rbp,8)
add    $0x1,%rbp
cmp    %ebp,%edi
jne    17b0 <DV2qsortDown+0x680>
jmp    1180 <DV2qsortDown+0x50>
xor    %ebp,%ebp
test   $0x1,%cl
jne    14d7 <DV2qsortDown+0x3a7>
jmp    1507 <DV2qsortDown+0x3d7>
xor    %esi,%esi
test   $0x1,%r11b
jne    1740 <DV2qsortDown+0x610>
jmp    1773 <DV2qsortDown+0x643>
xor    %r10d,%r10d
jmp    1818 <DV2qsortDown+0x6e8>
xor    %r10d,%r10d
movabs $0xffffffff00000000,%r13
ff ff ff
mov    0x10(%rsp),%r8d
jmp    1528 <DV2qsortDown+0x3f8>
movabs $0xffffffff00000000,%r13
ff ff ff
mov    0x10(%rsp),%r8d
mov    0x20(%rsp),%rbx
jmp    1791 <DV2qsortDown+0x661>

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

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