user: What is the c source code of the assembly code below?

```asm
<IVZVqsortUp>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,0xc(%rsp)
  cmp    $0xa,%edi
  jle    L149
L90:
  mov    0xc(%rsp),%ebx
  mov    %r15,%rsi
  xor    %r14d,%r14d
  mov    $0x1,%r12d
  mov    %ebx,%edi
  call   <Icentervalue@plt>
  xor    %r10d,%r10d
  xor    %edi,%edi
  mov    %eax,%r11d
  lea    -0x1(%rbx),%eax
  mov    %eax,0x18(%rsp)
  mov    %eax,%ecx
  nopl   (%rax)
L181:
  mov    %r10d,%edx
  cmp    %r11d,(%r15,%r10,4)
  jle    L35
  movslq %eax,%rsi
  lea    (%r15,%rsi,4),%rsi
  jmp    L15
  cs nopw 0x0(%rax,%rax,1)
L84:
  jne    L145
  movslq %ecx,%r8
  lea    (%r15,%r8,4),%r8
  mov    (%r8),%r9d
  mov    %r9d,(%rsi)
  lea    (%rcx,%rcx,1),%r9d
  sub    $0x1,%ecx
  mov    %r11d,(%r8)
  lea    (%rax,%rax,1),%r8d
  movslq %r9d,%r9
  movslq %r8d,%r8
  lea    0x0(%r13,%r9,8),%rbx
  shl    $0x3,%r8
  movsd  (%rbx),%xmm1
  lea    0x0(%r13,%r8,1),%rbp
  movsd  0x0(%rbp),%xmm0
  movsd  %xmm1,0x0(%rbp)
  movsd  %xmm0,(%rbx)
  lea    0x8(%r13,%r8,1),%rbx
  lea    0x8(%r13,%r9,8),%r8
  movsd  (%rbx),%xmm0
  movsd  (%r8),%xmm1
  movsd  %xmm1,(%rbx)
  movsd  %xmm0,(%r8)
L145:
  sub    $0x1,%eax
  sub    $0x4,%rsi
  cmp    %r10d,%eax
  jl     L238
L15:
  mov    (%rsi),%r8d
  cmp    %r11d,%r8d
  jge    L84
  mov    (%r15,%r10,4),%edx
  mov    %r8d,(%r15,%r10,4)
  mov    %edx,(%rsi)
  lea    (%rax,%rax,1),%edx
  movslq %r14d,%rsi
  sub    $0x1,%eax
  shl    $0x3,%rsi
  movslq %edx,%rdx
  lea    0x0(%r13,%rsi,1),%r9
  lea    0x0(%r13,%rdx,8),%r8
  movsd  (%r9),%xmm0
  movsd  (%r8),%xmm1
  lea    0x8(%r13,%rdx,8),%rdx
  lea    0x8(%r13,%rsi,1),%rsi
  movsd  %xmm1,(%r9)
  movsd  %xmm0,(%r8)
  movsd  (%rdx),%xmm1
  movsd  (%rsi),%xmm0
  movsd  %xmm1,(%rsi)
  movsd  %xmm0,(%rdx)
  mov    %r12d,%edx
L1:
  add    $0x1,%r10
  add    $0x1,%r12d
  add    $0x2,%r14d
  cmp    %edx,%eax
  jge    L181
L238:
  mov    %edx,%ebx
  sub    %edi,%ebx
  cmp    %edi,%ebx
  mov    %ebx,0x40(%rsp)
  cmovle %ebx,%edi
  mov    %edx,%ebx
  sub    %edi,%ebx
  mov    %ebx,0x20(%rsp)
  test   %edi,%edi
  je     L242
  mov    %edi,%r10d
  movslq %edi,%rsi
  movslq %edx,%r9
  sub    %rsi,%r9
  mov    %r10,%r11
  lea    (%r15,%r10,4),%rbp
  lea    (%r9,%r10,1),%r8
  shl    $0x4,%r11
  mov    %r9,%r14
  add    %r13,%r11
  lea    (%r15,%r8,4),%r12
  shl    $0x4,%r14
  shl    $0x4,%r8
  cmp    %rbp,%r13
  mov    %r11,0x28(%rsp)
  lea    0x0(%r13,%r14,1),%rsi
  setae  %r10b
  cmp    %r11,%r15
  lea    0x0(%r13,%r8,1),%rbx
  setae  %r11b
  mov    %rbx,0x10(%rsp)
  lea    0x0(,%r9,4),%rbx
  or     %r10d,%r11d
  lea    -0x1(%rdi),%r10d
  lea    (%r15,%rbx,1),%r8
  cmp    $0x2,%r10d
  mov    %r10d,0x38(%rsp)
  seta   %r10b
  and    %r10d,%r11d
  cmp    %rsi,%r12
  setbe  %r10b
  cmp    %r8,0x10(%rsp)
  setbe  0x30(%rsp)
  add    $0x10,%rbx
  or     0x30(%rsp),%r10b
  and    %r11d,%r10d
  test   %rbx,%rbx
  lea    0x10(%r15),%rbx
  setle  %r11b
  cmp    %rbx,%r8
  setae  %bl
  or     %ebx,%r11d
  and    %r10d,%r11d
  cmp    %r12,%r13
  setae  %r10b
  cmp    0x28(%rsp),%r8
  setae  %bl
  or     %ebx,%r10d
  and    %r11d,%r10d
  cmp    %rbp,%rsi
  setae  %r11b
  cmp    0x10(%rsp),%r15
  setae  %bl
  or     %ebx,%r11d
  test   %r11b,%r10b
  je     L52
  lea    0x40(%r14),%r10
  test   %r10,%r10
  lea    0x40(%r13),%r10
  setle  %r11b
  cmp    %r10,%rsi
  setae  %r10b
  or     %r11b,%r10b
  je     L52
  mov    %edi,%r11d
  mov    %r13,%r9
  xor    %r10d,%r10d
  shr    $0x2,%r11d
  shl    $0x4,%r11
  nop
L10:
  movdqu (%r15,%r10,1),%xmm0
  movdqu (%r8,%r10,1),%xmm7
  add    $0x40,%r9
  add    $0x40,%rsi
  movupd -0x40(%r9),%xmm3
  movupd -0x30(%r9),%xmm2
  movups %xmm7,(%r15,%r10,1)
  movupd -0x20(%r9),%xmm1
  movupd -0x30(%rsi),%xmm6
  movups %xmm0,(%r8,%r10,1)
  movupd -0x20(%rsi),%xmm5
  movupd -0x10(%rsi),%xmm4
  add    $0x10,%r10
  movupd -0x10(%r9),%xmm0
  movupd -0x40(%rsi),%xmm7
  movups %xmm6,-0x30(%r9)
  movups %xmm5,-0x20(%r9)
  movups %xmm7,-0x40(%r9)
  movups %xmm4,-0x10(%r9)
  movups %xmm3,-0x40(%rsi)
  movups %xmm2,-0x30(%rsi)
  movups %xmm1,-0x20(%rsi)
  movups %xmm0,-0x10(%rsi)
  cmp    %r10,%r11
  jne    L10
  mov    %edi,%esi
  mov    0x20(%rsp),%r8d
  mov    %edi,%ebx
  and    $0xfffffffc,%esi
  sub    %esi,%ebx
  add    %esi,%r8d
  mov    %ebx,0x10(%rsp)
  cmp    %esi,%edi
  je     L242
  movslq %esi,%rdi
  add    %esi,%esi
  lea    0x0(,%rdi,4),%r14
  movslq %r8d,%rdi
  lea    (%r15,%r14,1),%r9
  lea    (%r15,%rdi,4),%rdi
  mov    (%r9),%r10d
  mov    (%rdi),%r11d
  mov    %r11d,(%r9)
  movslq %esi,%r11
  mov    %r10d,(%rdi)
  lea    (%r8,%r8,1),%edi
  lea    0x0(,%r11,8),%r12
  add    $0x1,%r8d
  movslq %edi,%r10
  lea    0x0(%r13,%r12,1),%rbp
  lea    0x8(%r13,%r11,8),%r11
  cmpl   $0x1,0x10(%rsp)
  lea    0x0(,%r10,8),%r9
  movsd  0x0(%rbp),%xmm0
  lea    0x8(%r13,%r10,8),%r10
  lea    0x0(%r13,%r9,1),%rbx
  movsd  (%rbx),%xmm1
  movsd  %xmm1,0x0(%rbp)
  movsd  %xmm0,(%rbx)
  movsd  (%r11),%xmm0
  movsd  (%r10),%xmm1
  movsd  %xmm1,(%r11)
  movsd  %xmm0,(%r10)
  je     L242
  movslq %r8d,%r8
  lea    0x4(%r15,%r14,1),%r11
  add    $0x2,%esi
  add    $0x2,%edi
  shl    $0x2,%r8
  mov    (%r11),%ebx
  cmpl   $0x2,0x10(%rsp)
  lea    (%r15,%r8,1),%r10
  mov    (%r10),%ebp
  mov    %ebp,(%r11)
  lea    0x10(%r13,%r12,1),%r11
  mov    %ebx,(%r10)
  lea    0x10(%r13,%r9,1),%r10
  movsd  (%r11),%xmm0
  movsd  (%r10),%xmm1
  movsd  %xmm1,(%r11)
  movsd  %xmm0,(%r10)
  movslq %esi,%r10
  movslq %edi,%rsi
  lea    0x8(%r13,%r10,8),%r11
  lea    0x8(%r13,%rsi,8),%rdi
  movsd  (%r11),%xmm0
  movsd  (%rdi),%xmm1
  movsd  %xmm1,(%r11)
  movsd  %xmm0,(%rdi)
  je     L242
  lea    0x8(%r15,%r14,1),%rdi
  lea    0x4(%r15,%r8,1),%r8
  mov    (%rdi),%r11d
  mov    (%r8),%ebx
  lea    0x18(%r13,%rsi,8),%rsi
  mov    %ebx,(%rdi)
  lea    0x20(%r13,%r9,1),%rdi
  mov    %r11d,(%r8)
  lea    0x20(%r13,%r12,1),%r8
  movsd  (%rdi),%xmm1
  movsd  (%r8),%xmm0
  movsd  %xmm1,(%r8)
  movsd  %xmm0,(%rdi)
  lea    0x18(%r13,%r10,8),%rdi
  movsd  (%rsi),%xmm1
  movsd  (%rdi),%xmm0
  movsd  %xmm1,(%rdi)
  movsd  %xmm0,(%rsi)
L242:
  mov    0x18(%rsp),%edi
  mov    %ecx,%ebx
  sub    %eax,%ebx
  mov    0xc(%rsp),%eax
  sub    %ecx,%edi
  cmp    %ebx,%edi
  cmovg  %ebx,%edi
  sub    %edi,%eax
  mov    %eax,0x44(%rsp)
  movslq 0xc(%rsp),%rax
  test   %edi,%edi
  je     L140
  mov    %rax,%r8
  mov    %rax,0x38(%rsp)
  movslq %edi,%rax
  mov    %edi,%ecx
  sub    %rax,%r8
  movslq %edx,%r9
  lea    (%rcx,%r8,1),%rax
  add    %r9,%rcx
  lea    0x0(,%r9,4),%r10
  mov    %r9,%r11
  lea    (%r15,%rax,4),%rsi
  lea    0x0(,%r8,4),%rbp
  shl    $0x4,%rax
  shl    $0x4,%r11
  mov    %rsi,0x30(%rsp)
  mov    %r8,%rsi
  add    %r13,%rax
  lea    0x10(,%r8,4),%r12
  shl    $0x4,%rsi
  mov    %rax,0x28(%rsp)
  lea    0x0(%r13,%r11,1),%rax
  lea    0x0(%r13,%rsi,1),%r14
  mov    %rsi,0x48(%rsp)
  lea    (%r15,%rbp,1),%rsi
  mov    %r14,0x10(%rsp)
  mov    %rcx,%r14
  lea    (%r15,%rcx,4),%rcx
  shl    $0x4,%r14
  mov    %rcx,0x18(%rsp)
  lea    (%r15,%r10,1),%rcx
  add    %r13,%r14
  mov    %r14,0x20(%rsp)
  lea    0x10(%r10),%r14
  cmp    %r14,%rbp
  setge  %r14b
  cmp    %r12,%r10
  setge  %bpl
  or     %r14d,%ebp
  cmp    0x28(%rsp),%rsi
  mov    0x10(%rsp),%r14
  setae  %r10b
  cmp    0x30(%rsp),%r14
  lea    -0x1(%rdi),%r14d
  setae  %r12b
  or     %r12d,%r10d
  and    %ebp,%r10d
  cmp    $0x2,%r14d
  seta   %bpl
  and    %ebp,%r10d
  cmp    %rsi,0x20(%rsp)
  setbe  %bpl
  cmp    0x30(%rsp),%rax
  setae  %r12b
  or     %r12d,%ebp
  mov    0x10(%rsp),%r12
  and    %r10d,%ebp
  cmp    0x28(%rsp),%rcx
  setae  %r10b
  cmp    %r12,0x18(%rsp)
  setbe  %r12b
  or     %r12d,%r10d
  and    %ebp,%r10d
  cmp    0x20(%rsp),%rcx
  setae  %bpl
  cmp    %rax,0x18(%rsp)
  setbe  %r12b
  or     %r12d,%ebp
  test   %bpl,%r10b
  je     L288
  mov    0x48(%rsp),%rbp
  lea    0x40(%r11),%r10
  cmp    %r10,%rbp
  setge  %r10b
  add    $0x40,%rbp
  cmp    %rbp,%r11
  setge  %r11b
  or     %r10b,%r11b
  je     L288
  mov    %edi,%r10d
  mov    0x10(%rsp),%r8
  xor    %r9d,%r9d
  shr    $0x2,%r10d
  shl    $0x4,%r10
  nopl   0x0(%rax)
L23:
  movdqu (%rcx,%r9,1),%xmm0
  movdqu (%rsi,%r9,1),%xmm2
  add    $0x40,%rax
  add    $0x40,%r8
  movupd -0x40(%rax),%xmm3
  movupd -0x20(%rax),%xmm1
  movups %xmm2,(%rcx,%r9,1)
  movupd -0x30(%r8),%xmm6
  movupd -0x30(%rax),%xmm2
  movups %xmm0,(%rsi,%r9,1)
  movupd -0x20(%r8),%xmm5
  movupd -0x10(%rax),%xmm0
  add    $0x10,%r9
  movupd -0x10(%r8),%xmm4
  movupd -0x40(%r8),%xmm7
  movups %xmm6,-0x30(%rax)
  movups %xmm5,-0x20(%rax)
  movups %xmm7,-0x40(%rax)
  movups %xmm4,-0x10(%rax)
  movups %xmm3,-0x40(%r8)
  movups %xmm2,-0x30(%r8)
  movups %xmm1,-0x20(%r8)
  movups %xmm0,-0x10(%r8)
  cmp    %r9,%r10
  jne    L23
  mov    0x44(%rsp),%eax
  mov    %edi,%ecx
  mov    %edi,%r9d
  and    $0xfffffffc,%ecx
  add    %ecx,%edx
  add    %ecx,%eax
  sub    %ecx,%r9d
  cmp    %ecx,%edi
  je     L97
  movslq %edx,%rcx
  lea    (%r15,%rcx,4),%rsi
  movslq %eax,%rcx
  lea    (%r15,%rcx,4),%rcx
  mov    (%rsi),%edi
  mov    (%rcx),%r8d
  mov    %r8d,(%rsi)
  lea    (%rdx,%rdx,1),%esi
  add    $0x1,%edx
  mov    %edi,(%rcx)
  lea    (%rax,%rax,1),%ecx
  movslq %esi,%r11
  add    $0x1,%eax
  movslq %ecx,%r10
  lea    0x0(,%r11,8),%r8
  lea    0x8(%r13,%r11,8),%r11
  lea    0x0(,%r10,8),%rdi
  lea    0x0(%r13,%r8,1),%r12
  lea    0x0(%r13,%rdi,1),%rbp
  movsd  (%r12),%xmm0
  lea    0x8(%r13,%r10,8),%r10
  movsd  0x0(%rbp),%xmm1
  movsd  %xmm1,(%r12)
  movsd  %xmm0,0x0(%rbp)
  movsd  (%r11),%xmm0
  movsd  (%r10),%xmm1
  movsd  %xmm1,(%r11)
  movsd  %xmm0,(%r10)
  cmp    $0x1,%r9d
  je     L97
  movslq %edx,%rdx
  cltq
  add    $0x2,%esi
  add    $0x2,%ecx
  shl    $0x2,%rdx
  shl    $0x2,%rax
  movslq %esi,%rsi
  movslq %ecx,%rcx
  lea    (%r15,%rdx,1),%r11
  lea    (%r15,%rax,1),%r10
  mov    (%r11),%ebp
  mov    (%r10),%r12d
  mov    %r12d,(%r11)
  lea    0x10(%r13,%rdi,1),%r11
  mov    %ebp,(%r10)
  lea    0x10(%r13,%r8,1),%r10
  movsd  (%r11),%xmm1
  movsd  (%r10),%xmm0
  movsd  %xmm1,(%r10)
  lea    0x8(%r13,%rcx,8),%r10
  movsd  %xmm0,(%r11)
  lea    0x8(%r13,%rsi,8),%r11
  movsd  (%r10),%xmm1
  movsd  (%r11),%xmm0
  movsd  %xmm1,(%r11)
  movsd  %xmm0,(%r10)
  cmp    $0x2,%r9d
  je     L97
  lea    0x4(%r15,%rdx,1),%rdx
  lea    0x4(%r15,%rax,1),%rax
  mov    (%rdx),%r9d
  mov    (%rax),%r10d
  mov    %r10d,(%rdx)
  lea    0x20(%r13,%r8,1),%rdx
  mov    %r9d,(%rax)
  lea    0x20(%r13,%rdi,1),%rax
  movsd  (%rdx),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rdx)
  lea    0x18(%r13,%rsi,8),%rdx
  movsd  %xmm0,(%rax)
  lea    0x18(%r13,%rcx,8),%rax
  movsd  (%rdx),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rdx)
  movsd  %xmm0,(%rax)
L97:
  mov    0x40(%rsp),%edi
  mov    %r13,%rdx
  mov    %r15,%rsi
  call   <IVZVqsortUp>
  mov    0xc(%rsp),%eax
  movslq %ebx,%rdx
  sub    %ebx,%eax
  add    %eax,%eax
  cltq
  lea    0x0(%r13,%rax,8),%r13
  mov    0x38(%rsp),%rax
  sub    %rdx,%rax
  lea    (%r15,%rax,4),%r15
  cmp    $0xa,%ebx
  jle    L108
  mov    %ebx,0xc(%rsp)
  jmp    L90
  nopl   0x0(%rax,%rax,1)
L35:
  jne    L184
  movslq %edi,%rdx
  lea    (%r15,%rdx,4),%rdx
  mov    (%rdx),%esi
  mov    %r11d,(%rdx)
  movslq %r14d,%rdx
  shl    $0x3,%rdx
  mov    %esi,(%r15,%r10,4)
  lea    (%rdi,%rdi,1),%esi
  lea    0x0(%r13,%rdx,1),%r8
  add    $0x1,%edi
  movslq %esi,%rsi
  movsd  (%r8),%xmm1
  lea    0x8(%r13,%rdx,1),%rdx
  lea    0x0(%r13,%rsi,8),%r9
  lea    0x8(%r13,%rsi,8),%rsi
  movsd  (%r9),%xmm0
  movsd  %xmm1,(%r9)
  movsd  %xmm0,(%r8)
  movsd  (%rsi),%xmm0
  movsd  (%rdx),%xmm1
  movsd  %xmm1,(%rsi)
  movsd  %xmm0,(%rdx)
L184:
  mov    %r12d,%edx
  jmp    L1
L108:
  mov    %ebx,%edi
L149:
  add    $0x58,%rsp
  mov    %r13,%rdx
  mov    %r15,%rsi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <IVZVisortUp@plt>
L288:
  mov    0x44(%rsp),%edx
  mov    %r14d,%esi
  sub    %r9,%r8
  add    %r9,%rsi
  add    %edx,%edx
  lea    0x4(%r15,%rsi,4),%rsi
  movslq %edx,%rdx
  lea    0x0(%r13,%rdx,8),%rdx
  nopl   0x0(%rax)
L96:
  mov    (%rcx),%edi
  mov    (%rcx,%r8,4),%r9d
  add    $0x10,%rax
  add    $0x10,%rdx
  movsd  -0x10(%rax),%xmm0
  movsd  -0x10(%rdx),%xmm1
  mov    %r9d,(%rcx)
  mov    %edi,(%rcx,%r8,4)
  add    $0x4,%rcx
  movsd  %xmm1,-0x10(%rax)
  movsd  -0x8(%rdx),%xmm1
  movsd  %xmm0,-0x10(%rdx)
  movsd  -0x8(%rax),%xmm0
  movsd  %xmm1,-0x8(%rax)
  movsd  %xmm0,-0x8(%rdx)
  cmp    %rsi,%rcx
  jne    L96
  jmp    L97
L52:
  mov    0x20(%rsp),%edi
  mov    0x38(%rsp),%r10d
  mov    %r15,%rsi
  add    %edi,%edi
  lea    0x4(%r15,%r10,4),%r10
  movslq %edi,%rdi
  lea    0x0(%r13,%rdi,8),%r8
  lea    0x8(%r13),%rdi
  nopw   0x0(%rax,%rax,1)
L188:
  mov    (%rsi),%r11d
  mov    (%rsi,%r9,4),%ebx
  add    $0x10,%r8
  add    $0x10,%rdi
  movsd  -0x18(%rdi),%xmm0
  movsd  -0x10(%r8),%xmm1
  mov    %ebx,(%rsi)
  mov    %r11d,(%rsi,%r9,4)
  add    $0x4,%rsi
  movsd  %xmm1,-0x18(%rdi)
  movsd  -0x8(%r8),%xmm1
  movsd  %xmm0,-0x10(%r8)
  movsd  -0x10(%rdi),%xmm0
  movsd  %xmm1,-0x10(%rdi)
  movsd  %xmm0,-0x8(%r8)
  cmp    %rsi,%r10
  jne    L188
  jmp    L242
L140:
  mov    %rax,0x38(%rsp)
  jmp    L97
```

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