user: Translate the below assembly code into C programming language:

```asm
<DVqsortUp>:
  endbr64
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  movslq %edi,%rbx
  cmp    $0xa,%ebx
  jle    L22
L78:
  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
  cs nopw 0x0(%rax,%rax,1)
L13:
  movsd  0x0(%rbp,%rcx,8),%xmm1
  movslq %ecx,%r8
  comisd %xmm1,%xmm0
  jae    L1
  movslq %edx,%rax
  lea    0x0(%rbp,%rax,8),%rax
  jmp    L137
  nopl   (%rax)
L87:
  ucomisd %xmm0,%xmm1
  jp     L31
  jne    L31
  movslq %esi,%rdi
  sub    $0x1,%esi
  lea    0x0(%rbp,%rdi,8),%rdi
  movsd  (%rdi),%xmm2
  movsd  %xmm2,(%rax)
  movsd  %xmm1,(%rdi)
L31:
  sub    $0x1,%edx
  sub    $0x8,%rax
  cmp    %ecx,%edx
  jl     L118
L137:
  movsd  (%rax),%xmm1
  comisd %xmm0,%xmm1
  jae    L87
  movsd  0x0(%rbp,%rcx,8),%xmm2
  movslq %r9d,%r8
  sub    $0x1,%edx
  movsd  %xmm1,0x0(%rbp,%rcx,8)
  movsd  %xmm2,(%rax)
L3:
  add    $0x1,%rcx
  add    $0x1,%r9d
  cmp    %r8d,%edx
  jge    L13
L118:
  mov    %r8d,%edi
  mov    %r8d,%ecx
  sub    %r11d,%edi
  cmp    %edi,%r11d
  cmovg  %edi,%r11d
  sub    %r11d,%ecx
  test   %r11d,%r11d
  je     L164
  lea    -0x1(%r11),%r9d
  mov    %rbp,%rax
  movslq %ecx,%rcx
  lea    0x8(%rbp,%r9,8),%r9
  xchg   %ax,%ax
L138:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rcx,8),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rax,%rcx,8)
  add    $0x8,%rax
  cmp    %rax,%r9
  jne    L138
L164:
  mov    %esi,%r12d
  sub    %esi,%r10d
  sub    %edx,%r12d
  mov    %r10d,%ecx
  mov    %ebx,%edx
  cmp    %r12d,%r10d
  cmovg  %r12d,%ecx
  sub    %ecx,%edx
  test   %ecx,%ecx
  je     L23
  sub    $0x1,%ecx
  movslq %edx,%rdx
  lea    0x0(%rbp,%r8,8),%rax
  add    %r8,%rcx
  sub    %r8,%rdx
  lea    0x8(%rbp,%rcx,8),%rcx
  nopl   0x0(%rax)
L63:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rdx,8),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rax,%rdx,8)
  add    $0x8,%rax
  cmp    %rax,%rcx
  jne    L63
L23:
  mov    %rbp,%rsi
  call   <DVqsortUp>
  movslq %r12d,%rax
  sub    %rax,%rbx
  lea    0x0(%rbp,%rbx,8),%rbp
  cmp    $0xa,%r12d
  jle    L120
  movslq %r12d,%rbx
  jmp    L78
  nopl   0x0(%rax)
L1:
  ucomisd %xmm0,%xmm1
  jp     L97
  jne    L97
  movslq %r11d,%rax
  add    $0x1,%r11d
  lea    0x0(%rbp,%rax,8),%rax
  movsd  (%rax),%xmm2
  movsd  %xmm1,(%rax)
  movsd  %xmm2,0x0(%rbp,%rcx,8)
L97:
  movslq %r9d,%r8
  jmp    L3
L22:
  mov    %ebx,%r12d
L120:
  pop    %rbx
  mov    %rbp,%rsi
  mov    %r12d,%edi
  pop    %rbp
  pop    %r12
  jmp    1060 <DVisortUp@plt>
```

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;
}
```