user: Demonstrate the C code that generates the assembly output below:

```asm
<DVqsortUp>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  movslq %edi,%rbx
  sub    $0x8,%rsp
  cmp    $0xa,%ebx
  jle    L119
L153:
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <Dcentervalue@plt>
  lea    -0x1(%rbx),%r10d
  xor    %ecx,%ecx
  xor    %r11d,%r11d
  mov    %r10d,%esi
  mov    %r10d,%edx
  mov    $0x1,%r9d
  nopl   0x0(%rax)
L40:
  movsd  0x0(%rbp,%rcx,8),%xmm1
  mov    %ecx,%r8d
  comisd %xmm1,%xmm0
  jae    L245
  movslq %edx,%rax
  lea    0x0(%rbp,%rax,8),%rax
  jmp    L131
  nopl   (%rax)
L252:
  ucomisd %xmm0,%xmm1
  jp     L207
  jne    L207
  movslq %esi,%rdi
  sub    $0x1,%esi
  lea    0x0(%rbp,%rdi,8),%rdi
  movsd  (%rdi),%xmm2
  movsd  %xmm2,(%rax)
  movsd  %xmm1,(%rdi)
L207:
  sub    $0x1,%edx
  sub    $0x8,%rax
  cmp    %ecx,%edx
  jl     L193
L131:
  movsd  (%rax),%xmm1
  comisd %xmm0,%xmm1
  jae    L252
  movsd  0x0(%rbp,%rcx,8),%xmm2
  mov    %r9d,%r8d
  sub    $0x1,%edx
  movsd  %xmm1,0x0(%rbp,%rcx,8)
  movsd  %xmm2,(%rax)
L36:
  add    $0x1,%rcx
  add    $0x1,%r9d
  cmp    %r8d,%edx
  jge    L40
L193:
  mov    %r8d,%edi
  mov    %r8d,%ecx
  sub    %r11d,%edi
  cmp    %edi,%r11d
  cmovg  %edi,%r11d
  mov    %r11d,%r12d
  sub    %r11d,%ecx
  test   %r11d,%r11d
  je     L259
  movslq %r12d,%rax
  movslq %r8d,%r11
  sub    %rax,%r11
  lea    0x10(%rbp),%rax
  lea    0x0(%rbp,%r11,8),%r9
  lea    0x10(,%r11,8),%r13
  cmp    %rax,%r9
  setae  %al
  test   %r13,%r13
  setle  %r13b
  or     %r13b,%al
  lea    -0x1(%r12),%r13d
  je     L248
  cmp    $0x1,%r13d
  jbe    L248
  mov    %r12d,%r11d
  xor    %eax,%eax
  shr    %r11d
  shl    $0x4,%r11
  nopl   0x0(%rax)
L251:
  movupd 0x0(%rbp,%rax,1),%xmm0
  movupd (%r9,%rax,1),%xmm3
  movups %xmm3,0x0(%rbp,%rax,1)
  movups %xmm0,(%r9,%rax,1)
  add    $0x10,%rax
  cmp    %r11,%rax
  jne    L251
  mov    %r12d,%eax
  and    $0xfffffffe,%eax
  add    %eax,%ecx
  cmp    %eax,%r12d
  je     L259
  cltq
  lea    0x0(%rbp,%rax,8),%r9
  movslq %ecx,%rax
  lea    0x0(%rbp,%rax,8),%rax
  movsd  (%r9),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%r9)
  movsd  %xmm0,(%rax)
L259:
  mov    %esi,%r12d
  sub    %esi,%r10d
  mov    %ebx,%esi
  sub    %edx,%r12d
  cmp    %r12d,%r10d
  cmovg  %r12d,%r10d
  mov    %r10d,%r9d
  sub    %r10d,%esi
  test   %r10d,%r10d
  je     L6
  movslq %r10d,%rax
  movslq %r8d,%r11
  mov    %rbx,%r10
  sub    %rax,%r10
  lea    0x0(,%r11,8),%rcx
  lea    0x10(%rcx),%rax
  lea    0x0(,%r10,8),%rdx
  lea    0x10(,%r10,8),%r13
  cmp    %rax,%rdx
  setge  %al
  cmp    %r13,%rcx
  setge  %r13b
  or     %r13b,%al
  lea    -0x1(%r9),%r13d
  je     L91
  cmp    $0x1,%r13d
  jbe    L91
  mov    %r9d,%r10d
  add    %rbp,%rcx
  add    %rbp,%rdx
  xor    %eax,%eax
  shr    %r10d
  shl    $0x4,%r10
  nopl   0x0(%rax)
L155:
  movupd (%rcx,%rax,1),%xmm0
  movupd (%rdx,%rax,1),%xmm4
  movups %xmm4,(%rcx,%rax,1)
  movups %xmm0,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r10
  jne    L155
  mov    %r9d,%edx
  and    $0xfffffffe,%edx
  add    %edx,%r8d
  lea    (%rsi,%rdx,1),%eax
  cmp    %r9d,%edx
  je     L6
  movslq %r8d,%r8
  cltq
  lea    0x0(%rbp,%r8,8),%rdx
  lea    0x0(%rbp,%rax,8),%rax
  movsd  (%rdx),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rdx)
  movsd  %xmm0,(%rax)
L6:
  mov    %rbp,%rsi
  call   <DVqsortUp>
  movslq %r12d,%rax
  sub    %rax,%rbx
  lea    0x0(%rbp,%rbx,8),%rbp
  cmp    $0xa,%r12d
  jle    L46
  movslq %r12d,%rbx
  jmp    L153
  nopl   0x0(%rax)
L245:
  ucomisd %xmm0,%xmm1
  jp     L118
  jne    L118
  movslq %r11d,%rax
  add    $0x1,%r11d
  lea    0x0(%rbp,%rax,8),%rax
  movsd  (%rax),%xmm2
  movsd  %xmm1,(%rax)
  movsd  %xmm2,0x0(%rbp,%rcx,8)
L118:
  mov    %r9d,%r8d
  jmp    L36
L119:
  mov    %ebx,%r12d
L46:
  add    $0x8,%rsp
  mov    %rbp,%rsi
  mov    %r12d,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1060 <DVisortUp@plt>
L91:
  mov    %r13d,%edx
  lea    0x0(%rbp,%rcx,1),%rax
  add    %r11,%rdx
  lea    0x8(%rbp,%rdx,8),%rcx
  mov    %r10,%rdx
  sub    %r11,%rdx
L68:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rdx,8),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rax,%rdx,8)
  add    $0x8,%rax
  cmp    %rax,%rcx
  jne    L68
  jmp    L6
L248:
  mov    %rbp,%rax
  lea    0x8(%rbp,%r13,8),%rcx
  nopl   0x0(%rax,%rax,1)
L231:
  movsd  (%rax),%xmm0
  movsd  (%rax,%r11,8),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rax,%r11,8)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L231
  jmp    L259
```

assistant: ```c
void DVqsortUp(int n, double dvec[]) {
  double dtemp, v;
  int a, b, c, d, l, h, s;
  if (n <= 10) {
    DVisortUp(n, dvec);
  } else {
    v = Dcentervalue(n, dvec);
    a = b = 0;
    c = d = n - 1;
    for (;;) {
      while (b <= c && dvec[b] <= v) {
        if (dvec[b] == v) {
          {
            dtemp = dvec[(a)];
            dvec[(a)] = dvec[(b)];
            dvec[(b)] = dtemp;
          }
          a++;
        }
        b++;
      }
      while (c >= b && dvec[c] >= v) {
        if (dvec[c] == v) {
          {
            dtemp = dvec[(c)];
            dvec[(c)] = dvec[(d)];
            dvec[(d)] = dtemp;
          }
          d--;
        }
        c--;
      }
      if (b > c) {
        break;
      }
      {
        dtemp = dvec[(b)];
        dvec[(b)] = dvec[(c)];
        dvec[(c)] = dtemp;
      }
      b++;
      c--;
    }
    s = (a <= b - a) ? a : b - a;
    for (l = 0, h = b - s; s != 0; s--) {
      {
        dtemp = dvec[(l)];
        dvec[(l)] = dvec[(h)];
        dvec[(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 = dvec[(l)];
        dvec[(l)] = dvec[(h)];
        dvec[(h)] = dtemp;
      }
      l++;
      h++;
    }
    DVqsortUp(b - a, dvec);
    DVqsortUp(d - c, dvec + n - (d - c));
  }
  return;
}
```