user: 请从给定的汇编指令推导出C源代码：

```asm
<IVZVqsortUp>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,%r12d
  mov    %rsi,%rbp
  mov    %rdx,%rbx
  cmp    $0xa,%edi
  jg     L157
  call   <IVZVisortUp@plt>
  jmp    L132
L157:
  call   <Icentervalue@plt>
  mov    %eax,%ecx
  lea    -0x1(%r12),%eax
  mov    %eax,%edx
  mov    %eax,0xc(%rsp)
  mov    %eax,%r9d
  mov    $0x0,%r15d
  mov    $0x1,%r13d
  mov    $0x0,%edi
  movl   $0x0,0x8(%rsp)
L119:
  mov    %edi,%r14d
  mov    0x0(%rbp,%rdi,4),%eax
  cmp    %ecx,%eax
  jle    L106
  movslq %edx,%rax
  lea    0x0(%rbp,%rax,4),%rax
  jmp    L42
L106:
  cmp    %ecx,%eax
  je     L1
L141:
  mov    %r13d,%r14d
  jmp    L127
L1:
  mov    0x8(%rsp),%r14d
  movslq %r14d,%rax
  lea    0x0(%rbp,%rax,4),%rax
  mov    (%rax),%esi
  mov    %ecx,(%rax)
  mov    %esi,0x0(%rbp,%rdi,4)
  lea    (%r14,%r14,1),%esi
  movslq %esi,%rsi
  lea    (%rbx,%rsi,8),%r10
  movsd  (%r10),%xmm0
  movslq %r15d,%rax
  shl    $0x3,%rax
  lea    (%rbx,%rax,1),%r8
  movsd  (%r8),%xmm1
  movsd  %xmm1,(%r10)
  movsd  %xmm0,(%r8)
  lea    0x8(%rbx,%rsi,8),%rsi
  movsd  (%rsi),%xmm0
  lea    0x8(%rbx,%rax,1),%rax
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rsi)
  movsd  %xmm0,(%rax)
  add    $0x1,%r14d
  mov    %r14d,0x8(%rsp)
  jmp    L141
L81:
  sub    $0x1,%edx
  sub    $0x4,%rax
  cmp    %edi,%edx
  jl     L7
L42:
  mov    %rax,%r8
  mov    (%rax),%esi
  cmp    %ecx,%esi
  jl     L139
  jne    L81
  movslq %r9d,%rsi
  lea    0x0(%rbp,%rsi,4),%rsi
  mov    (%rsi),%r10d
  mov    %r10d,(%r8)
  mov    %ecx,(%rsi)
  lea    (%rdx,%rdx,1),%esi
  movslq %esi,%rsi
  shl    $0x3,%rsi
  lea    (%rbx,%rsi,1),%r11
  movsd  (%r11),%xmm0
  lea    (%r9,%r9,1),%r8d
  movslq %r8d,%r8
  lea    (%rbx,%r8,8),%r10
  movsd  (%r10),%xmm1
  movsd  %xmm1,(%r11)
  movsd  %xmm0,(%r10)
  lea    0x8(%rbx,%rsi,1),%r10
  movsd  (%r10),%xmm0
  lea    0x8(%rbx,%r8,8),%rsi
  movsd  (%rsi),%xmm1
  movsd  %xmm1,(%r10)
  movsd  %xmm0,(%rsi)
  sub    $0x1,%r9d
  jmp    L81
L139:
  cmp    %edi,%edx
  jl     L7
  mov    0x0(%rbp,%rdi,4),%esi
  movslq %edx,%rax
  lea    0x0(%rbp,%rax,4),%rax
  mov    (%rax),%r8d
  mov    %r8d,0x0(%rbp,%rdi,4)
  mov    %esi,(%rax)
  movslq %r15d,%rsi
  shl    $0x3,%rsi
  lea    (%rbx,%rsi,1),%r10
  movsd  (%r10),%xmm0
  lea    (%rdx,%rdx,1),%eax
  cltq
  lea    (%rbx,%rax,8),%r8
  movsd  (%r8),%xmm1
  movsd  %xmm1,(%r10)
  movsd  %xmm0,(%r8)
  lea    0x8(%rbx,%rsi,1),%rsi
  movsd  (%rsi),%xmm0
  lea    0x8(%rbx,%rax,8),%rax
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rsi)
  movsd  %xmm0,(%rax)
  mov    %r13d,%r14d
  sub    $0x1,%edx
L127:
  add    $0x1,%rdi
  add    $0x1,%r13d
  add    $0x2,%r15d
  cmp    %edx,%r14d
  jle    L119
L7:
  mov    %r14d,%edi
  mov    0x8(%rsp),%eax
  sub    %eax,%edi
  cmp    %eax,%edi
  mov    %eax,%r10d
  cmovle %edi,%r10d
  mov    %r14d,%r8d
  sub    %r10d,%r8d
  test   %r10d,%r10d
  je     L65
  mov    %rbp,%rax
  lea    (%r8,%r8,1),%ecx
  movslq %ecx,%rcx
  lea    (%rbx,%rcx,8),%rsi
  lea    0x8(%rbx),%rcx
  lea    -0x1(%r10),%r10d
  lea    0x4(%rbp,%r10,4),%r10
  movslq %r8d,%r8
L95:
  mov    (%rax),%r11d
  mov    (%rax,%r8,4),%r13d
  mov    %r13d,(%rax)
  mov    %r11d,(%rax,%r8,4)
  movsd  -0x8(%rcx),%xmm0
  movsd  (%rsi),%xmm1
  movsd  %xmm1,-0x8(%rcx)
  movsd  %xmm0,(%rsi)
  movsd  (%rcx),%xmm0
  movsd  0x8(%rsi),%xmm1
  movsd  %xmm1,(%rcx)
  movsd  %xmm0,0x8(%rsi)
  add    $0x4,%rax
  add    $0x10,%rsi
  add    $0x10,%rcx
  cmp    %r10,%rax
  jne    L95
L65:
  mov    %r9d,%r13d
  sub    %edx,%r13d
  mov    0xc(%rsp),%eax
  sub    %r9d,%eax
  cmp    %r13d,%eax
  cmovg  %r13d,%eax
  mov    %eax,%r9d
  mov    %r12d,%esi
  sub    %eax,%esi
  test   %eax,%eax
  je     L28
  movslq %r14d,%r8
  lea    0x0(%rbp,%r8,4),%rax
  lea    (%r14,%r14,1),%edx
  movslq %edx,%rdx
  lea    (%rbx,%rdx,8),%rcx
  lea    (%rsi,%rsi,1),%edx
  movslq %edx,%rdx
  lea    (%rbx,%rdx,8),%rdx
  lea    -0x1(%r9),%r9d
  add    %r8,%r9
  lea    0x4(%rbp,%r9,4),%r9
  movslq %esi,%rsi
  sub    %r8,%rsi
L75:
  mov    (%rax),%r8d
  mov    (%rax,%rsi,4),%r10d
  mov    %r10d,(%rax)
  mov    %r8d,(%rax,%rsi,4)
  movsd  (%rcx),%xmm0
  movsd  (%rdx),%xmm1
  movsd  %xmm1,(%rcx)
  movsd  %xmm0,(%rdx)
  movsd  0x8(%rcx),%xmm0
  movsd  0x8(%rdx),%xmm1
  movsd  %xmm1,0x8(%rcx)
  movsd  %xmm0,0x8(%rdx)
  add    $0x4,%rax
  add    $0x10,%rcx
  add    $0x10,%rdx
  cmp    %r9,%rax
  jne    L75
L28:
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  call   <IVZVqsortUp>
  mov    %r12d,%eax
  sub    %r13d,%eax
  add    %eax,%eax
  cltq
  lea    (%rbx,%rax,8),%rdx
  movslq %r12d,%r12
  movslq %r13d,%rax
  sub    %rax,%r12
  lea    0x0(%rbp,%r12,4),%rsi
  mov    %r13d,%edi
  call   <IVZVqsortUp>
L132:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void IVZVqsortUp(int n, int ivec[], double zvec[]) {
  double dtemp;
  int a, b, c, d, itemp, l, h, s, v;
  if (n <= 10) {
    IVZVisortUp(n, ivec, zvec);
  } else {
    v = Icentervalue(n, ivec);
    a = b = 0;
    c = d = n - 1;
    for (;;) {
      while (b <= c && ivec[b] <= v) {
        if (ivec[b] == v) {
          {
            itemp = ivec[(a)];
            ivec[(a)] = ivec[(b)];
            ivec[(b)] = itemp;
            dtemp = zvec[2 * (a)];
            zvec[2 * (a)] = zvec[2 * (b)];
            zvec[2 * (b)] = dtemp;
            dtemp = zvec[2 * (a) + 1];
            zvec[2 * (a) + 1] = zvec[2 * (b) + 1];
            zvec[2 * (b) + 1] = dtemp;
          }
          a++;
        }
        b++;
      }
      while (c >= b && ivec[c] >= v) {
        if (ivec[c] == v) {
          {
            itemp = ivec[(c)];
            ivec[(c)] = ivec[(d)];
            ivec[(d)] = itemp;
            dtemp = zvec[2 * (c)];
            zvec[2 * (c)] = zvec[2 * (d)];
            zvec[2 * (d)] = dtemp;
            dtemp = zvec[2 * (c) + 1];
            zvec[2 * (c) + 1] = zvec[2 * (d) + 1];
            zvec[2 * (d) + 1] = dtemp;
          }
          d--;
        }
        c--;
      }
      if (b > c) {
        break;
      }
      {
        itemp = ivec[(b)];
        ivec[(b)] = ivec[(c)];
        ivec[(c)] = itemp;
        dtemp = zvec[2 * (b)];
        zvec[2 * (b)] = zvec[2 * (c)];
        zvec[2 * (c)] = dtemp;
        dtemp = zvec[2 * (b) + 1];
        zvec[2 * (b) + 1] = zvec[2 * (c) + 1];
        zvec[2 * (c) + 1] = dtemp;
      }
      b++;
      c--;
    }
    s = (a <= b - a) ? a : b - a;
    for (l = 0, h = b - s; s != 0; s--) {
      {
        itemp = ivec[(l)];
        ivec[(l)] = ivec[(h)];
        ivec[(h)] = itemp;
        dtemp = zvec[2 * (l)];
        zvec[2 * (l)] = zvec[2 * (h)];
        zvec[2 * (h)] = dtemp;
        dtemp = zvec[2 * (l) + 1];
        zvec[2 * (l) + 1] = zvec[2 * (h) + 1];
        zvec[2 * (h) + 1] = dtemp;
      }
      l++;
      h++;
    }
    s = ((d - c) <= (n - 1 - d)) ? (d - c) : (n - 1 - d);
    for (l = b, h = n - s; s != 0; s--) {
      {
        itemp = ivec[(l)];
        ivec[(l)] = ivec[(h)];
        ivec[(h)] = itemp;
        dtemp = zvec[2 * (l)];
        zvec[2 * (l)] = zvec[2 * (h)];
        zvec[2 * (h)] = dtemp;
        dtemp = zvec[2 * (l) + 1];
        zvec[2 * (l) + 1] = zvec[2 * (h) + 1];
        zvec[2 * (h) + 1] = dtemp;
      }
      l++;
      h++;
    }
    IVZVqsortUp(b - a, ivec, zvec);
    IVZVqsortUp(d - c, ivec + n - (d - c), zvec + 2 * (n - (d - c)));
  }
  return;
}
```