user: What would the C source look like for the assembly code provided here:

```asm
<qsort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x4000(%rsp),%r11
L129:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L129
  sub    $0xe68,%rsp
  mov    %ecx,0x1c(%rsp)
  mov    %r8d,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x4e58(%rsp)
  xor    %eax,%eax
  cmp    %edx,%esi
  jl     L47
L128:
  mov    0x4e58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L102
  add    $0x4e68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L47:
  lea    (%rsi,%rdx,1),%eax
  mov    %edx,%r12d
  mov    %esi,%ebp
  mov    %rdi,%r13
  mov    %eax,%edx
  lea    0x1(%rbp),%r14d
  mov    %r8d,%r15d
  mov    %r9,%rbx
  shr    $0x1f,%edx
  add    %eax,%edx
  sar    %edx
  call   <swap@plt>
  cmp    %r14d,%r12d
  jl     L2
  movslq %ebp,%rax
  lea    0x0(%r13,%rax,8),%rsi
  mov    %rsi,0x8(%rsp)
  test   %r15d,%r15d
  jne    L92
  mov    0x1c(%rsp),%edx
  mov    %ebp,0x28(%rsp)
  movslq %r14d,%r15
  mov    %r14d,0x14(%rsp)
  test   %edx,%edx
  jne    L41
  jmp    L51
  nopl   0x0(%rax)
L90:
  mov    0x14(%rsp),%r14d
  mov    %r15d,%edx
  mov    %r13,%rdi
  add    $0x1,%r15
  mov    %r14d,%esi
  call   <swap@plt>
  mov    %r14d,%eax
  mov    %r14d,0x28(%rsp)
  add    $0x1,%eax
  mov    %eax,0x14(%rsp)
  cmp    %r15d,%r12d
  jl     L35
  nopl   0x0(%rax,%rax,1)
L51:
  mov    0x8(%rsp),%rax
  mov    0x0(%r13,%r15,8),%rdi
  mov    (%rax),%rsi
  call   *%rbx
  test   %eax,%eax
  js     L90
  add    $0x1,%r15
  cmp    %r15d,%r12d
  jge    L51
L35:
  mov    0x14(%rsp),%r14d
L74:
  mov    0x28(%rsp),%r15d
  mov    %ebp,%esi
  mov    %r13,%rdi
  mov    %r15d,%edx
  call   <swap@plt>
  mov    %r15d,%edx
  mov    0x1c(%rsp),%r15d
  mov    %rbx,%r9
  mov    0x18(%rsp),%r8d
  sub    $0x1,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  mov    %r15d,%ecx
  call   <qsort>
  mov    0x18(%rsp),%r8d
  mov    %rbx,%r9
  mov    %r15d,%ecx
  mov    %r12d,%edx
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <qsort>
  jmp    L128
  nopl   0x0(%rax)
L155:
  mov    0x14(%rsp),%r14d
  mov    %r15d,%edx
  mov    %r13,%rdi
  mov    %r14d,%esi
  call   <swap@plt>
  mov    %r14d,%eax
  mov    %r14d,0x28(%rsp)
  add    $0x1,%eax
  mov    %eax,0x14(%rsp)
L82:
  add    $0x1,%r15
  cmp    %r15d,%r12d
  jl     L35
L41:
  mov    0x8(%rsp),%rax
  mov    0x0(%r13,%r15,8),%rdi
  mov    (%rax),%rsi
  call   *%rbx
  test   %eax,%eax
  jle    L82
  jmp    L155
  nopl   0x0(%rax)
L92:
  mov    0x1c(%rsp),%eax
  movslq %r14d,%rcx
  mov    %ebp,0x28(%rsp)
  lea    0x30(%rsp),%r15
  mov    %r14d,0x14(%rsp)
  lea    0x2740(%rsp),%r14
  test   %eax,%eax
  jne    L216
  jmp    L4
  nopw   0x0(%rax,%rax,1)
L225:
  add    $0x1,%rcx
  cmp    %ecx,%r12d
  jl     L35
L4:
  mov    0x0(%r13,%rcx,8),%rdi
  mov    %r15,%rsi
  mov    %ecx,0x2c(%rsp)
  mov    %rcx,0x20(%rsp)
  call   <strtolower@plt>
  mov    0x8(%rsp),%rax
  mov    %r14,%rsi
  mov    (%rax),%rdi
  call   <strtolower@plt>
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   *%rbx
  mov    0x20(%rsp),%rcx
  test   %eax,%eax
  jns    L225
  mov    0x2c(%rsp),%edx
  mov    0x14(%rsp),%esi
  mov    %r13,%rdi
  call   <swap@plt>
  mov    0x14(%rsp),%eax
  mov    0x20(%rsp),%rcx
  mov    %eax,0x28(%rsp)
  add    $0x1,%eax
  mov    %eax,0x14(%rsp)
  jmp    L225
  nopw   0x0(%rax,%rax,1)
L185:
  mov    0x2c(%rsp),%edx
  mov    0x14(%rsp),%esi
  mov    %r13,%rdi
  call   <swap@plt>
  mov    0x14(%rsp),%eax
  mov    0x20(%rsp),%rcx
  mov    %eax,0x28(%rsp)
  add    $0x1,%eax
  mov    %eax,0x14(%rsp)
L114:
  add    $0x1,%rcx
  cmp    %ecx,%r12d
  jl     L35
L216:
  mov    0x0(%r13,%rcx,8),%rdi
  mov    %r15,%rsi
  mov    %ecx,0x2c(%rsp)
  mov    %rcx,0x20(%rsp)
  call   <strtolower@plt>
  mov    0x8(%rsp),%rax
  mov    %r14,%rsi
  mov    (%rax),%rdi
  call   <strtolower@plt>
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   *%rbx
  mov    0x20(%rsp),%rcx
  test   %eax,%eax
  jle    L114
  jmp    L185
  nopw   0x0(%rax,%rax,1)
L2:
  mov    %ebp,0x28(%rsp)
  jmp    L74
L102:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void qsort(void *v[], int left, int right, int reverse, int foldcase, int (*comp)(void *, void *)) {
  int i, last;
  void swap(void *v[], int, int);
  char s1[10000], s2[10000];
  if (left >= right)
    return;
  swap(v, left, (left + right) / 2);
  last = left;
  for (i = left + 1; i <= right; i++) {
    char *vi;
    char *vleft;
    if (foldcase) {
      strtolower(v[i], s1);
      vi = s1;
      strtolower(v[left], s2);
      vleft = s2;
    } else {
      vi = v[i];
      vleft = v[left];
    }
    if (reverse && ((*comp)(vi, vleft) > 0))
      swap(v, ++last, i);
    else if (!reverse && ((*comp)(vi, vleft) < 0))
      swap(v, ++last, i);
  }
  swap(v, left, last);
  qsort(v, left, last - 1, reverse, foldcase, comp);
  qsort(v, last + 1, right, reverse, foldcase, comp);
}
```