user: Demonstrate the C code that generates the assembly output below:

```asm
<_lqsort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x10(%rsp)
  lea    0x20(%rsp),%r13
  mov    %esi,0x1c(%rsp)
  mov    %edx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  cmp    %edx,%esi
  jge    L39
L65:
  mov    0x18(%rsp),%ebp
  mov    0x1c(%rsp),%edi
  mov    0x10(%rsp),%rsi
  mov    %ebp,%eax
  mov    %edi,0xc(%rsp)
  add    %edi,%eax
  sar    %eax
  cltq
  lea    (%rsi,%rax,8),%rcx
  movslq %edi,%rax
  lea    (%rsi,%rax,8),%rax
  mov    (%rcx),%rdx
  mov    (%rax),%rsi
  mov    %rdx,0x20(%rsp)
  mov    %rsi,(%rcx)
  mov    %rdx,(%rax)
  nopl   0x0(%rax)
L41:
  mov    0x10(%rsp),%rcx
  movslq %ebp,%rax
  lea    (%rcx,%rax,8),%rax
  jmp    L49
  cs nopw 0x0(%rax,%rax,1)
L131:
  sub    $0x1,%ebp
L49:
  mov    %rax,%rbx
  mov    %rax,%rdi
  mov    %r13,%rsi
  xor    %eax,%eax
  call   *%r12
  mov    %eax,%r8d
  lea    -0x8(%rbx),%rax
  test   %r8d,%r8d
  jle    L131
  movslq 0xc(%rsp),%rax
  mov    0x10(%rsp),%rdi
  mov    %rax,%rcx
  lea    (%rdi,%rax,8),%r14
  mov    (%rbx),%rax
  mov    %rax,(%r14)
  cmp    %ecx,%ebp
  jle    L116
  mov    0xc(%rsp),%r15d
  mov    %r14,%rdx
  jmp    L106
  cs nopw 0x0(%rax,%rax,1)
L130:
  lea    0x8(%r14),%rdx
  cmp    %r15d,%ebp
  je     L22
L106:
  mov    %rdx,%r14
  mov    %r13,%rsi
  mov    %rdx,%rdi
  xor    %eax,%eax
  call   *%r12
  mov    %r15d,0xc(%rsp)
  add    $0x1,%r15d
  test   %eax,%eax
  jg     L130
  mov    (%r14),%rax
  mov    %rax,(%rbx)
  cmp    0xc(%rsp),%ebp
  jg     L41
  mov    0xc(%rsp),%eax
  mov    %eax,%r15d
  sub    $0x1,%eax
  mov    %eax,0xc(%rsp)
  jmp    L26
  nopl   0x0(%rax)
L22:
  mov    0x10(%rsp),%rcx
  movslq %r15d,%rax
  lea    (%rcx,%rax,8),%r14
  mov    (%r14),%rax
L61:
  mov    %rax,(%rbx)
L26:
  mov    0x20(%rsp),%rax
  mov    0x1c(%rsp),%esi
  mov    %r15d,%edx
  lea    0x1(%r15),%ebp
  mov    %r12,%rcx
  mov    %rax,(%r14)
  mov    0x18(%rsp),%eax
  sub    %esi,%edx
  sub    %r15d,%eax
  cmp    %eax,%edx
  jge    L53
  mov    0xc(%rsp),%edx
  mov    0x10(%rsp),%rdi
  xor    %eax,%eax
  call   <_lqsort>
  mov    %ebp,0x1c(%rsp)
L108:
  mov    0x1c(%rsp),%ecx
  cmp    %ecx,0x18(%rsp)
  jg     L65
L39:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L116:
  mov    0xc(%rsp),%ecx
  mov    %ecx,%r15d
  sub    $0x1,%ecx
  mov    %ecx,0xc(%rsp)
  jmp    L61
L53:
  mov    0x18(%rsp),%edx
  mov    0x10(%rsp),%rdi
  mov    %ebp,%esi
  xor    %eax,%eax
  call   <_lqsort>
  mov    0xc(%rsp),%eax
  mov    %eax,0x18(%rsp)
  jmp    L108
L9:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
_lqsort(base, lo, hi, cmp) register long *base;
register int lo;
register int hi;
register int (*cmp)();
{
  long k;
  register int i, j, t;
  register long *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)) {
      _lqsort(base, lo, (i - 1), cmp);
      lo = i + 1;
    } else {
      _lqsort(base, (i + 1), hi, cmp);
      hi = i - 1;
    }
  }
}
```