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

```asm
<qsort_r>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xb0,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %rsi,-0x90(%rbp)
  mov    %rdx,-0x98(%rbp)
  mov    %rcx,-0xa0(%rbp)
  mov    %r8,-0xa8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x88(%rbp),%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x90(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x40(%rbp)
  cmpq   $0x9,-0x90(%rbp)
  ja     L228
  mov    -0x48(%rbp),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x78(%rbp)
  jmp    L17
L246:
  mov    -0x78(%rbp),%rax
  mov    %rax,-0x70(%rbp)
  jmp    L154
L103:
  mov    -0x98(%rbp),%rax
  neg    %rax
  add    %rax,-0x70(%rbp)
L154:
  mov    -0x70(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  jbe    L206
  mov    -0x98(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x70(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0xa8(%rbp),%rsi
  mov    -0xa0(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  mov    -0x70(%rbp),%rax
  mov    %rsi,%r8
  mov    %rax,%rsi
  call   <sort_r_cmpswap@plt>
  test   %rax,%rax
  jne    L103
L206:
  mov    -0x98(%rbp),%rax
  add    %rax,-0x78(%rbp)
L17:
  mov    -0x78(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  jb     L246
  jmp    L7
L228:
  mov    -0x90(%rbp),%rax
  sub    $0x1,%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x48(%rbp),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x90(%rbp),%rax
  shr    %rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x98(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  mov    -0xa8(%rbp),%rdx
  mov    -0xa0(%rbp),%r8
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   *%r8
  test   %eax,%eax
  jle    L269
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x18(%rbp)
L269:
  mov    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    -0xa8(%rbp),%rdx
  mov    -0xa0(%rbp),%r8
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   *%r8
  test   %eax,%eax
  jle    L148
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  mov    -0xa8(%rbp),%rdx
  mov    -0xa0(%rbp),%r8
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   *%r8
  test   %eax,%eax
  jle    L148
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x18(%rbp)
L148:
  mov    -0x18(%rbp),%rax
  cmp    %rax,-0x38(%rbp)
  je     L198
  mov    -0x18(%rbp),%rax
  mov    -0x98(%rbp),%rdx
  mov    -0x38(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sort_r_swap@plt>
L198:
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  mov    -0x68(%rbp),%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  jmp    L89
L202:
  mov    -0xa8(%rbp),%rdx
  mov    -0x28(%rbp),%rcx
  mov    -0x68(%rbp),%rax
  mov    -0xa0(%rbp),%r8
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   *%r8
  mov    %eax,-0x7c(%rbp)
  cmpl   $0x0,-0x7c(%rbp)
  jg     L35
  cmpl   $0x0,-0x7c(%rbp)
  jne    L101
  mov    -0x60(%rbp),%rax
  cmp    -0x68(%rbp),%rax
  jae    L40
  mov    -0x98(%rbp),%rdx
  mov    -0x68(%rbp),%rcx
  mov    -0x60(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sort_r_swap@plt>
L40:
  mov    -0x98(%rbp),%rax
  add    %rax,-0x60(%rbp)
L101:
  mov    -0x98(%rbp),%rax
  add    %rax,-0x68(%rbp)
L125:
  mov    -0x68(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  jb     L202
  jmp    L144
L35:
  nop
L144:
  mov    -0x68(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  jae    L163
  jmp    L85
L184:
  mov    -0x98(%rbp),%rax
  neg    %rax
  add    %rax,-0x58(%rbp)
  mov    -0xa8(%rbp),%rdx
  mov    -0x28(%rbp),%rcx
  mov    -0x58(%rbp),%rax
  mov    -0xa0(%rbp),%r8
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   *%r8
  mov    %eax,-0x7c(%rbp)
  cmpl   $0x0,-0x7c(%rbp)
  jne    L34
  mov    -0x98(%rbp),%rax
  neg    %rax
  add    %rax,-0x50(%rbp)
  mov    -0x58(%rbp),%rax
  cmp    -0x50(%rbp),%rax
  jae    L85
  mov    -0x98(%rbp),%rdx
  mov    -0x50(%rbp),%rcx
  mov    -0x58(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sort_r_swap@plt>
  jmp    L85
L34:
  cmpl   $0x0,-0x7c(%rbp)
  jns    L85
  mov    -0x68(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  jae    L115
  mov    -0x98(%rbp),%rdx
  mov    -0x58(%rbp),%rcx
  mov    -0x68(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sort_r_swap@plt>
L115:
  mov    -0x98(%rbp),%rax
  add    %rax,-0x68(%rbp)
  jmp    L89
L85:
  mov    -0x68(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  jb     L184
L89:
  mov    -0x68(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  jb     L125
  jmp    L265
L163:
  nop
L265:
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  mov    -0x68(%rbp),%rax
  sub    -0x60(%rbp),%rax
  mov    %eax,%edx
  mov    -0x60(%rbp),%rax
  sub    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    -0x48(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <sort_r_swap_blocks@plt>
  mov    -0x40(%rbp),%rax
  sub    -0x50(%rbp),%rax
  mov    %eax,%edx
  mov    -0x50(%rbp),%rax
  sub    -0x58(%rbp),%rax
  mov    %eax,%ecx
  mov    -0x58(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <sort_r_swap_blocks@plt>
  mov    -0x68(%rbp),%rax
  sub    -0x60(%rbp),%rax
  mov    $0x0,%edx
  divq   -0x98(%rbp)
  mov    %rax,%rdi
  mov    -0xa8(%rbp),%rsi
  mov    -0xa0(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  mov    -0x48(%rbp),%rax
  mov    %rsi,%r8
  mov    %rdi,%rsi
  mov    %rax,%rdi
  call   <qsort_r>
  mov    -0x50(%rbp),%rax
  sub    -0x58(%rbp),%rax
  mov    $0x0,%edx
  divq   -0x98(%rbp)
  mov    %rax,%rsi
  mov    -0x50(%rbp),%rax
  sub    -0x58(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x40(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0xa8(%rbp),%rcx
  mov    -0xa0(%rbp),%rdx
  mov    -0x98(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  mov    %rax,%rdx
  call   <qsort_r>
L7:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L284
  call   <__stack_chk_fail@plt>
L284:
  leave
  ret
```

assistant: ```c
void qsort_r(void *base, size_t nel, size_t w, int (*compar)(const void *_a, const void *_b, void *_arg), void *arg) {
  char *b = (char *)base, *end = b + nel * w;
  if (nel < 10) {
    char *pi, *pj;
    for (pi = b + w; pi < end; pi += w) {
      for (pj = pi; pj > b && sort_r_cmpswap(pj - w, pj, w, compar, arg); pj -= w) {
      }
    }
  } else {
    int cmp;
    char *pl, *ple, *pr, *pre, *pivot;
    char *last = b + w * (nel - 1), *tmp;
    char *l[3];
    l[0] = b + w;
    l[1] = b + w * (nel / 2);
    l[2] = last - w;
    if (compar(l[0], l[1], arg) > 0) {
      ((tmp) = (l[0]), (l[0]) = (l[1]), (l[1]) = (tmp));
    }
    if (compar(l[1], l[2], arg) > 0) {
      ((tmp) = (l[1]), (l[1]) = (l[2]), (l[2]) = (tmp));
      if (compar(l[0], l[1], arg) > 0) {
        ((tmp) = (l[0]), (l[0]) = (l[1]), (l[1]) = (tmp));
      }
    }
    if (l[1] != last) {
      sort_r_swap(l[1], last, w);
    }
    pivot = last;
    ple = pl = b;
    pre = pr = last;
    while (pl < pr) {
      for (; pl < pr; pl += w) {
        cmp = compar(pl, pivot, arg);
        if (cmp > 0) {
          break;
        } else if (cmp == 0) {
          if (ple < pl) {
            sort_r_swap(ple, pl, w);
          }
          ple += w;
        }
      }
      if (pl >= pr) {
        break;
      }
      for (; pl < pr;) {
        pr -= w;
        cmp = compar(pr, pivot, arg);
        if (cmp == 0) {
          pre -= w;
          if (pr < pre) {
            sort_r_swap(pr, pre, w);
          }
        } else if (cmp < 0) {
          if (pl < pr) {
            sort_r_swap(pl, pr, w);
          }
          pl += w;
          break;
        }
      }
    }
    pl = pr;
    sort_r_swap_blocks(b, ple - b, pl - ple);
    sort_r_swap_blocks(pr, pre - pr, end - pre);
    qsort_r(b, (pl - ple) / w, w, compar, arg);
    qsort_r(end - (pre - pr), (pre - pr) / w, w, compar, arg);
  }
}
```