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

```asm
<qsort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x4000(%rsp),%r11
L78:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L78
  sub    $0xe70,%rsp
  mov    %rdi,-0x4e58(%rbp)
  mov    %esi,-0x4e5c(%rbp)
  mov    %edx,-0x4e60(%rbp)
  mov    %ecx,-0x4e64(%rbp)
  mov    %r8d,-0x4e68(%rbp)
  mov    %r9,-0x4e70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x4e5c(%rbp),%eax
  cmp    -0x4e60(%rbp),%eax
  jge    L90
  mov    -0x4e5c(%rbp),%edx
  mov    -0x4e60(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x4e5c(%rbp),%ecx
  mov    -0x4e58(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <swap@plt>
  mov    -0x4e5c(%rbp),%eax
  mov    %eax,-0x4e44(%rbp)
  mov    -0x4e5c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x4e48(%rbp)
  jmp    L129
L120:
  cmpl   $0x0,-0x4e68(%rbp)
  je     L116
  mov    -0x4e48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x4e58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x4e30(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtolower@plt>
  lea    -0x4e30(%rbp),%rax
  mov    %rax,-0x4e40(%rbp)
  mov    -0x4e5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x4e58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x2720(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtolower@plt>
  lea    -0x2720(%rbp),%rax
  mov    %rax,-0x4e38(%rbp)
  jmp    L15
L116:
  mov    -0x4e48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x4e58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x4e40(%rbp)
  mov    -0x4e5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x4e58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x4e38(%rbp)
L15:
  cmpl   $0x0,-0x4e64(%rbp)
  je     L128
  mov    -0x4e38(%rbp),%rdx
  mov    -0x4e40(%rbp),%rax
  mov    -0x4e70(%rbp),%rcx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  test   %eax,%eax
  jle    L128
  addl   $0x1,-0x4e44(%rbp)
  mov    -0x4e48(%rbp),%edx
  mov    -0x4e44(%rbp),%ecx
  mov    -0x4e58(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <swap@plt>
  jmp    L52
L128:
  cmpl   $0x0,-0x4e64(%rbp)
  jne    L52
  mov    -0x4e38(%rbp),%rdx
  mov    -0x4e40(%rbp),%rax
  mov    -0x4e70(%rbp),%rcx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  test   %eax,%eax
  jns    L52
  addl   $0x1,-0x4e44(%rbp)
  mov    -0x4e48(%rbp),%edx
  mov    -0x4e44(%rbp),%ecx
  mov    -0x4e58(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <swap@plt>
L52:
  addl   $0x1,-0x4e48(%rbp)
L129:
  mov    -0x4e48(%rbp),%eax
  cmp    -0x4e60(%rbp),%eax
  jle    L120
  mov    -0x4e44(%rbp),%edx
  mov    -0x4e5c(%rbp),%ecx
  mov    -0x4e58(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <swap@plt>
  mov    -0x4e44(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    -0x4e70(%rbp),%r8
  mov    -0x4e68(%rbp),%ecx
  mov    -0x4e64(%rbp),%edx
  mov    -0x4e5c(%rbp),%esi
  mov    -0x4e58(%rbp),%rax
  mov    %r8,%r9
  mov    %ecx,%r8d
  mov    %edx,%ecx
  mov    %edi,%edx
  mov    %rax,%rdi
  call   <qsort>
  mov    -0x4e44(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    -0x4e70(%rbp),%r8
  mov    -0x4e68(%rbp),%edi
  mov    -0x4e64(%rbp),%ecx
  mov    -0x4e60(%rbp),%edx
  mov    -0x4e58(%rbp),%rax
  mov    %r8,%r9
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <qsort>
  jmp    L103
L90:
  nop
L103:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L62
  call   <__stack_chk_fail@plt>
L62:
  leave
  ret
```

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