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

```asm
<_wqsort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rcx,%r12
  movslq %esi,%rcx
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x24(%rsp),%r13
  mov    %esi,0x14(%rsp)
  mov    %edx,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %rcx,0x18(%rsp)
  cmp    %edx,%ecx
  jge    L84
L34:
  mov    0x10(%rsp),%ebp
  mov    0x14(%rsp),%edi
  mov    0x8(%rsp),%rsi
  mov    %ebp,%eax
  mov    %edi,0x4(%rsp)
  add    %edi,%eax
  sar    %eax
  cltq
  lea    (%rsi,%rax,4),%rcx
  mov    0x18(%rsp),%rax
  mov    (%rcx),%edx
  lea    (%rsi,%rax,4),%rax
  mov    (%rax),%esi
  mov    %edx,0x24(%rsp)
  mov    %esi,(%rcx)
  mov    %edx,(%rax)
  nopl   0x0(%rax)
L118:
  mov    0x8(%rsp),%rcx
  movslq %ebp,%rax
  lea    (%rcx,%rax,4),%rax
  jmp    L144
  xchg   %ax,%ax
L88:
  sub    $0x1,%ebp
L144:
  mov    %rax,%rbx
  mov    %rax,%rdi
  mov    %r13,%rsi
  xor    %eax,%eax
  call   *%r12
  mov    %eax,%r8d
  lea    -0x4(%rbx),%rax
  test   %r8d,%r8d
  jle    L88
  movslq 0x4(%rsp),%rax
  mov    0x8(%rsp),%rdi
  mov    %rax,%rcx
  lea    (%rdi,%rax,4),%r14
  mov    (%rbx),%eax
  mov    %eax,(%r14)
  cmp    %ecx,%ebp
  jle    L57
  mov    %ecx,%r15d
  mov    %r14,%rdx
  jmp    L47
  nopl   0x0(%rax,%rax,1)
L55:
  lea    0x4(%r14),%rdx
  cmp    %r15d,%ebp
  je     L73
L47:
  mov    %rdx,%r14
  mov    %r13,%rsi
  mov    %rdx,%rdi
  xor    %eax,%eax
  call   *%r12
  mov    %r15d,0x4(%rsp)
  add    $0x1,%r15d
  test   %eax,%eax
  jg     L55
  mov    (%r14),%eax
  mov    %eax,(%rbx)
  cmp    0x4(%rsp),%ebp
  jg     L118
  mov    0x4(%rsp),%eax
  mov    %eax,%r15d
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  jmp    L82
  nopl   0x0(%rax,%rax,1)
L73:
  mov    0x8(%rsp),%rcx
  movslq %r15d,%rax
  lea    (%rcx,%rax,4),%r14
  mov    (%r14),%eax
L1:
  mov    %eax,(%rbx)
L82:
  mov    0x24(%rsp),%eax
  mov    0x10(%rsp),%ebx
  mov    %r15d,%edx
  lea    0x1(%r15),%ebp
  mov    0x14(%rsp),%esi
  mov    %eax,(%r14)
  mov    %ebx,%eax
  sub    %esi,%edx
  sub    %r15d,%eax
  cmp    %eax,%edx
  jge    L135
  mov    0x4(%rsp),%edx
  mov    0x8(%rsp),%rdi
  xor    %eax,%eax
  mov    %r12,%rcx
  call   <_wqsort>
  cmp    %ebp,%ebx
  jle    L84
  movslq %ebp,%rax
  mov    %eax,0x14(%rsp)
  mov    %rax,0x18(%rsp)
  jmp    L34
L135:
  mov    0x8(%rsp),%rdi
  xor    %eax,%eax
  mov    %ebx,%edx
  mov    %r12,%rcx
  mov    %ebp,%esi
  call   <_wqsort>
  mov    0x4(%rsp),%eax
  cmp    %eax,0x14(%rsp)
  jge    L84
  mov    %eax,0x10(%rsp)
  jmp    L34
L57:
  mov    %ecx,%r15d
  sub    $0x1,%ecx
  mov    %ecx,0x4(%rsp)
  jmp    L1
L84:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L92
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L92:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void _wqsort(base, lo, hi, cmp) register int *base;
register int lo;
register int hi;
register int (*cmp)();
{
  int k;
  register int i, j, t;
  register int *p = &k;
  while (hi > lo) {
    i = lo;
    j = hi;
    t = ((i + j) >> 1);
    *p = base[t];
    base[t] = base[i];
    base[i] = *p;
    while (i < j) {
      while (((*cmp)((base + j), p)) <= 0)
        --j;
      base[i] = base[j];
      while ((i < j) && (((*cmp)((base + i), p)) > 0))
        ++i;
      base[j] = base[i];
    }
    base[i] = *p;
    if ((i - lo) < (hi - i)) {
      _wqsort(base, lo, (i - 1), cmp);
      lo = i + 1;
    } else {
      _wqsort(base, (i + 1), hi, cmp);
      hi = i - 1;
    }
  }
}
```