user: 请将以下的汇编代码转换成C语言代码：

```asm
<IVZVqsortUp>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,0x8(%rsp)
  cmp    $0xa,%edi
  jle    L67
L46:
  mov    0x8(%rsp),%ebx
  mov    %r15,%rsi
  xor    %r13d,%r13d
  mov    $0x1,%ebp
  xor    %r14d,%r14d
  mov    %ebx,%edi
  call   <Icentervalue@plt>
  xor    %edi,%edi
  mov    %eax,%r8d
  lea    -0x1(%rbx),%eax
  mov    %eax,0xc(%rsp)
  mov    %eax,%r9d
  nopl   (%rax)
L154:
  mov    %edi,%ebx
  cmp    %r8d,(%r15,%rdi,4)
  jle    L78
  movslq %eax,%rdx
  lea    (%r15,%rdx,4),%rdx
  jmp    L118
  nopl   (%rax)
L63:
  jne    L129
  movslq %r9d,%rcx
  lea    (%r15,%rcx,4),%rcx
  mov    (%rcx),%esi
  mov    %esi,(%rdx)
  lea    (%r9,%r9,1),%esi
  sub    $0x1,%r9d
  mov    %r8d,(%rcx)
  lea    (%rax,%rax,1),%ecx
  movslq %esi,%rsi
  movslq %ecx,%rcx
  lea    (%r12,%rsi,8),%r10
  shl    $0x3,%rcx
  movsd  (%r10),%xmm1
  lea    (%r12,%rcx,1),%r11
  movsd  (%r11),%xmm0
  movsd  %xmm1,(%r11)
  movsd  %xmm0,(%r10)
  lea    0x8(%r12,%rcx,1),%r10
  lea    0x8(%r12,%rsi,8),%rcx
  movsd  (%r10),%xmm0
  movsd  (%rcx),%xmm1
  movsd  %xmm1,(%r10)
  movsd  %xmm0,(%rcx)
L129:
  sub    $0x1,%eax
  sub    $0x4,%rdx
  cmp    %edi,%eax
  jl     L128
L118:
  mov    (%rdx),%ecx
  cmp    %r8d,%ecx
  jge    L63
  mov    (%r15,%rdi,4),%esi
  mov    %ecx,(%r15,%rdi,4)
  movslq %r13d,%rcx
  mov    %ebp,%ebx
  shl    $0x3,%rcx
  mov    %esi,(%rdx)
  lea    (%rax,%rax,1),%edx
  lea    (%r12,%rcx,1),%r10
  sub    $0x1,%eax
  movslq %edx,%rdx
  movsd  (%r10),%xmm0
  lea    0x8(%r12,%rcx,1),%rcx
  lea    (%r12,%rdx,8),%rsi
  lea    0x8(%r12,%rdx,8),%rdx
  movsd  (%rsi),%xmm1
  movsd  %xmm1,(%r10)
  movsd  %xmm0,(%rsi)
  movsd  (%rcx),%xmm0
  movsd  (%rdx),%xmm1
  movsd  %xmm1,(%rcx)
  movsd  %xmm0,(%rdx)
L114:
  add    $0x1,%rdi
  add    $0x1,%ebp
  add    $0x2,%r13d
  cmp    %ebx,%eax
  jge    L154
L128:
  mov    %ebx,%edi
  mov    %ebx,%r8d
  sub    %r14d,%edi
  cmp    %r14d,%edi
  cmovle %edi,%r14d
  sub    %r14d,%r8d
  test   %r14d,%r14d
  je     L5
  lea    (%r8,%r8,1),%ecx
  lea    -0x1(%r14),%r10d
  mov    %r15,%rdx
  movslq %r8d,%r8
  movslq %ecx,%rcx
  lea    0x4(%r15,%r10,4),%r10
  lea    (%r12,%rcx,8),%rsi
  lea    0x8(%r12),%rcx
L92:
  mov    (%rdx),%r11d
  mov    (%rdx,%r8,4),%ebp
  add    $0x10,%rsi
  add    $0x10,%rcx
  movsd  -0x18(%rcx),%xmm0
  movsd  -0x10(%rsi),%xmm1
  mov    %ebp,(%rdx)
  mov    %r11d,(%rdx,%r8,4)
  add    $0x4,%rdx
  movsd  %xmm1,-0x18(%rcx)
  movsd  -0x8(%rsi),%xmm1
  movsd  %xmm0,-0x10(%rsi)
  movsd  -0x10(%rcx),%xmm0
  movsd  %xmm1,-0x10(%rcx)
  movsd  %xmm0,-0x8(%rsi)
  cmp    %rdx,%r10
  jne    L92
L5:
  mov    0xc(%rsp),%r8d
  mov    %r9d,%ebp
  mov    0x8(%rsp),%esi
  sub    %eax,%ebp
  sub    %r9d,%r8d
  cmp    %ebp,%r8d
  cmovg  %ebp,%r8d
  sub    %r8d,%esi
  test   %r8d,%r8d
  je     L21
  lea    (%rbx,%rbx,1),%edx
  movslq %ebx,%r10
  sub    $0x1,%r8d
  movslq %edx,%rdx
  add    %r10,%r8
  lea    (%r15,%r10,4),%rax
  lea    (%r12,%rdx,8),%rcx
  lea    (%rsi,%rsi,1),%edx
  movslq %esi,%rsi
  movslq %edx,%rdx
  lea    0x4(%r15,%r8,4),%r9
  sub    %r10,%rsi
  lea    (%r12,%rdx,8),%rdx
  nopl   0x0(%rax,%rax,1)
L124:
  mov    (%rax),%r8d
  mov    (%rax,%rsi,4),%r10d
  add    $0x10,%rcx
  add    $0x10,%rdx
  movsd  -0x10(%rcx),%xmm0
  movsd  -0x10(%rdx),%xmm1
  mov    %r10d,(%rax)
  mov    %r8d,(%rax,%rsi,4)
  add    $0x4,%rax
  movsd  %xmm1,-0x10(%rcx)
  movsd  -0x8(%rdx),%xmm1
  movsd  %xmm0,-0x10(%rdx)
  movsd  -0x8(%rcx),%xmm0
  movsd  %xmm1,-0x8(%rcx)
  movsd  %xmm0,-0x8(%rdx)
  cmp    %rax,%r9
  jne    L124
L21:
  mov    %r12,%rdx
  mov    %r15,%rsi
  call   <IVZVqsortUp>
  mov    0x8(%rsp),%ebx
  movslq %ebp,%rdx
  mov    %ebx,%eax
  sub    %ebp,%eax
  add    %eax,%eax
  cltq
  lea    (%r12,%rax,8),%r12
  movslq %ebx,%rax
  sub    %rdx,%rax
  lea    (%r15,%rax,4),%r15
  cmp    $0xa,%ebp
  jle    L143
  mov    %ebp,0x8(%rsp)
  jmp    L46
  nopl   (%rax)
L78:
  je     L64
  mov    %ebp,%ebx
  jmp    L114
  nopl   0x0(%rax)
L64:
  movslq %r14d,%rdx
  mov    %ebp,%ebx
  lea    (%r15,%rdx,4),%rdx
  mov    (%rdx),%ecx
  mov    %r8d,(%rdx)
  movslq %r13d,%rdx
  shl    $0x3,%rdx
  mov    %ecx,(%r15,%rdi,4)
  lea    (%r14,%r14,1),%ecx
  lea    (%r12,%rdx,1),%rsi
  add    $0x1,%r14d
  movslq %ecx,%rcx
  movsd  (%rsi),%xmm1
  lea    0x8(%r12,%rdx,1),%rdx
  lea    (%r12,%rcx,8),%r10
  lea    0x8(%r12,%rcx,8),%rcx
  movsd  (%r10),%xmm0
  movsd  %xmm1,(%r10)
  movsd  %xmm0,(%rsi)
  movsd  (%rcx),%xmm0
  movsd  (%rdx),%xmm1
  movsd  %xmm1,(%rcx)
  movsd  %xmm0,(%rdx)
  jmp    L114
L67:
  mov    %edi,%ebp
L143:
  add    $0x18,%rsp
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    %ebp,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <IVZVisortUp@plt>
```

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