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

```asm
<qsort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xa0,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %esi,-0x8c(%rbp)
  mov    %edx,-0x90(%rbp)
  mov    %rcx,-0x98(%rbp)
  mov    -0x88(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  and    $0x7,%eax
  test   %rax,%rax
  jne    L257
  mov    -0x90(%rbp),%eax
  cltq
  and    $0x7,%eax
  test   %rax,%rax
  jne    L257
  cmpl   $0x8,-0x90(%rbp)
  setne  %al
  movzbl %al,%eax
  jmp    L336
L257:
  mov    $0x2,%eax
L336:
  mov    %eax,-0x74(%rbp)
  cmpl   $0x6,-0x8c(%rbp)
  ja     L65
  mov    -0x90(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x40(%rbp)
  jmp    L205
L38:
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x48(%rbp)
  jmp    L47
L14:
  cmpl   $0x0,-0x74(%rbp)
  jne    L289
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x90(%rbp),%eax
  cltq
  neg    %rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x48(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x90(%rbp),%eax
  cltq
  neg    %rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%rax
  mov    %rax,(%rdx)
  jmp    L111
L289:
  mov    -0x90(%rbp),%eax
  cltq
  neg    %rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x74(%rbp),%ecx
  mov    -0x90(%rbp),%edx
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <swapfunc@plt>
L111:
  mov    -0x90(%rbp),%eax
  cltq
  neg    %rax
  add    %rax,-0x48(%rbp)
L47:
  mov    -0x48(%rbp),%rax
  cmp    -0x30(%rbp),%rax
  jbe    L253
  mov    -0x90(%rbp),%eax
  cltq
  neg    %rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x48(%rbp),%rax
  mov    -0x98(%rbp),%rdx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   *%rdx
  test   %eax,%eax
  jg     L14
L253:
  mov    -0x90(%rbp),%eax
  cltq
  add    %rax,-0x40(%rbp)
L205:
  mov    -0x90(%rbp),%eax
  imul   -0x8c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x40(%rbp)
  jb     L38
  jmp    L214
L65:
  mov    -0x8c(%rbp),%eax
  shr    %eax
  mov    %eax,%edx
  mov    -0x90(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x40(%rbp)
  cmpl   $0x7,-0x8c(%rbp)
  jbe    L246
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x8c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x90(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  cmpl   $0x28,-0x8c(%rbp)
  jbe    L291
  mov    -0x8c(%rbp),%eax
  shr    $0x3,%eax
  mov    %eax,%edx
  mov    -0x90(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0x70(%rbp)
  mov    -0x70(%rbp),%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x98(%rbp),%rdx
  mov    -0x48(%rbp),%rax
  mov    %rdx,%rcx
  mov    %rdi,%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <med3@plt>
  cltq
  mov    %rax,-0x48(%rbp)
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x70(%rbp),%eax
  cltq
  neg    %rax
  mov    %rax,%rdx
  mov    -0x40(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x98(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  mov    %rdx,%rcx
  mov    %rsi,%rdx
  mov    %rax,%rsi
  mov    $0x0,%eax
  call   <med3@plt>
  cltq
  mov    %rax,-0x40(%rbp)
  mov    -0x70(%rbp),%eax
  cltq
  neg    %rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x70(%rbp),%eax
  add    %eax,%eax
  cltq
  neg    %rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x98(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rcx
  mov    %rax,%rdx
  mov    $0x0,%eax
  call   <med3@plt>
  cltq
  mov    %rax,-0x38(%rbp)
L291:
  mov    -0x98(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  mov    -0x40(%rbp),%rsi
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <med3@plt>
  cltq
  mov    %rax,-0x40(%rbp)
L246:
  cmpl   $0x0,-0x74(%rbp)
  jne    L250
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x40(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x40(%rbp),%rax
  mov    -0x28(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L350
L250:
  mov    -0x74(%rbp),%ecx
  mov    -0x90(%rbp),%edx
  mov    -0x40(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <swapfunc@plt>
L350:
  mov    -0x90(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  mov    -0x8c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x90(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  jmp    L305
L40:
  cmpl   $0x0,-0x6c(%rbp)
  jne    L359
  cmpl   $0x0,-0x74(%rbp)
  jne    L42
  mov    -0x68(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x68(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x60(%rbp),%rax
  mov    -0x20(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L320
L42:
  mov    -0x74(%rbp),%ecx
  mov    -0x90(%rbp),%edx
  mov    -0x60(%rbp),%rsi
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <swapfunc@plt>
L320:
  mov    -0x90(%rbp),%eax
  cltq
  add    %rax,-0x68(%rbp)
L359:
  mov    -0x90(%rbp),%eax
  cltq
  add    %rax,-0x60(%rbp)
L305:
  mov    -0x60(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  ja     L41
  mov    -0x30(%rbp),%rdx
  mov    -0x60(%rbp),%rax
  mov    -0x98(%rbp),%rcx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  mov    %eax,-0x6c(%rbp)
  cmpl   $0x0,-0x6c(%rbp)
  jle    L40
  jmp    L41
L146:
  cmpl   $0x0,-0x6c(%rbp)
  jne    L126
  cmpl   $0x0,-0x74(%rbp)
  jne    L28
  mov    -0x58(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x58(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x50(%rbp),%rax
  mov    -0x18(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L26
L28:
  mov    -0x74(%rbp),%ecx
  mov    -0x90(%rbp),%edx
  mov    -0x50(%rbp),%rsi
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <swapfunc@plt>
L26:
  mov    -0x90(%rbp),%eax
  cltq
  neg    %rax
  add    %rax,-0x50(%rbp)
L126:
  mov    -0x90(%rbp),%eax
  cltq
  neg    %rax
  add    %rax,-0x58(%rbp)
L41:
  mov    -0x60(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  ja     L261
  mov    -0x30(%rbp),%rdx
  mov    -0x58(%rbp),%rax
  mov    -0x98(%rbp),%rcx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  mov    %eax,-0x6c(%rbp)
  cmpl   $0x0,-0x6c(%rbp)
  jns    L146
L261:
  mov    -0x60(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  ja     L286
  cmpl   $0x0,-0x74(%rbp)
  jne    L223
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x60(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x58(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L107
L223:
  mov    -0x74(%rbp),%ecx
  mov    -0x90(%rbp),%edx
  mov    -0x58(%rbp),%rsi
  mov    -0x60(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <swapfunc@plt>
L107:
  mov    -0x90(%rbp),%eax
  cltq
  add    %rax,-0x60(%rbp)
  mov    -0x90(%rbp),%eax
  cltq
  neg    %rax
  add    %rax,-0x58(%rbp)
  jmp    L305
L286:
  nop
  mov    -0x90(%rbp),%eax
  imul   -0x8c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x68(%rbp),%rax
  sub    -0x30(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  sub    -0x68(%rbp),%rax
  cmp    %rax,%rdx
  cmovle %rdx,%rax
  mov    %eax,-0x6c(%rbp)
  cmpl   $0x0,-0x6c(%rbp)
  jle    L252
  mov    -0x6c(%rbp),%eax
  cltq
  neg    %rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x74(%rbp),%ecx
  mov    -0x6c(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <swapfunc@plt>
L252:
  mov    -0x50(%rbp),%rax
  sub    -0x58(%rbp),%rax
  mov    -0x38(%rbp),%rdx
  sub    -0x50(%rbp),%rdx
  mov    -0x90(%rbp),%ecx
  movslq %ecx,%rcx
  sub    %rcx,%rdx
  cmp    %rdx,%rax
  cmovg  %rdx,%rax
  mov    %eax,-0x6c(%rbp)
  cmpl   $0x0,-0x6c(%rbp)
  jle    L352
  mov    -0x6c(%rbp),%eax
  cltq
  neg    %rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x74(%rbp),%ecx
  mov    -0x6c(%rbp),%edx
  mov    -0x60(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <swapfunc@plt>
L352:
  mov    -0x60(%rbp),%rax
  sub    -0x68(%rbp),%rax
  mov    %eax,-0x6c(%rbp)
  mov    -0x6c(%rbp),%eax
  cmp    -0x90(%rbp),%eax
  jle    L167
  mov    -0x6c(%rbp),%eax
  cltd
  idivl  -0x90(%rbp)
  mov    %eax,%esi
  mov    -0x98(%rbp),%rcx
  mov    -0x90(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <qsort>
L167:
  mov    -0x50(%rbp),%rax
  sub    -0x58(%rbp),%rax
  mov    %eax,-0x6c(%rbp)
  mov    -0x6c(%rbp),%eax
  cmp    -0x90(%rbp),%eax
  jle    L214
  mov    -0x6c(%rbp),%eax
  cltd
  idivl  -0x90(%rbp)
  mov    %eax,%esi
  mov    -0x6c(%rbp),%eax
  cltq
  neg    %rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x98(%rbp),%rdx
  mov    -0x90(%rbp),%eax
  mov    %rdx,%rcx
  mov    %eax,%edx
  call   <qsort>
L214:
  leave
  ret
```

assistant: ```c
void qsort(void *base, unsigned n, int es, int (*cmp)(const void *, const void *)) {
  char *pa, *pb, *pc, *pd, *pl, *pm, *pn;
  int d, r, swaptype;
  char *a = (char *)base;
  swaptype = (a - (char *)0) % sizeof(long) || es % sizeof(long) ? 2 : es == sizeof(long) ? 0 : 1;
  ;
  if (n < 7) {
    for (pm = a + es; pm < a + n * es; pm += es)
      for (pl = pm; pl > a && cmp(pl - es, pl) > 0; pl -= es)
        if (swaptype == 0) {
          long t = *(long *)(pl);
          *(long *)(pl) = *(long *)(pl - es);
          *(long *)(pl - es) = t;
        } else
          swapfunc(pl, pl - es, es, swaptype);
    return;
  }
  pm = a + (n / 2) * es;
  if (n > 7) {
    pl = a;
    pn = a + (n - 1) * es;
    if (n > 40) {
      d = (n / 8) * es;
      pl = med3(pl, pl + d, pl + 2 * d, cmp);
      pm = med3(pm - d, pm, pm + d, cmp);
      pn = med3(pn - 2 * d, pn - d, pn, cmp);
    }
    pm = med3(pl, pm, pn, cmp);
  }
  if (swaptype == 0) {
    long t = *(long *)(a);
    *(long *)(a) = *(long *)(pm);
    *(long *)(pm) = t;
  } else
    swapfunc(a, pm, es, swaptype);
  pa = pb = a + es;
  pc = pd = a + (n - 1) * es;
  for (;;) {
    while (pb <= pc && (r = cmp(pb, a)) <= 0) {
      if (r == 0) {
        if (swaptype == 0) {
          long t = *(long *)(pa);
          *(long *)(pa) = *(long *)(pb);
          *(long *)(pb) = t;
        } else
          swapfunc(pa, pb, es, swaptype);
        pa += es;
      }
      pb += es;
    }
    while (pb <= pc && (r = cmp(pc, a)) >= 0) {
      if (r == 0) {
        if (swaptype == 0) {
          long t = *(long *)(pc);
          *(long *)(pc) = *(long *)(pd);
          *(long *)(pd) = t;
        } else
          swapfunc(pc, pd, es, swaptype);
        pd -= es;
      }
      pc -= es;
    }
    if (pb > pc)
      break;
    if (swaptype == 0) {
      long t = *(long *)(pb);
      *(long *)(pb) = *(long *)(pc);
      *(long *)(pc) = t;
    } else
      swapfunc(pb, pc, es, swaptype);
    pb += es;
    pc -= es;
  }
  pn = a + n * es;
  r = ((pa - a) <= (pb - pa) ? (pa - a) : (pb - pa));
  if (r > 0)
    swapfunc(a, pb - r, r, swaptype);
  r = ((pd - pc) <= (pn - pd - es) ? (pd - pc) : (pn - pd - es));
  if (r > 0)
    swapfunc(pb, pn - r, r, swaptype);
  if ((r = pb - pa) > es)
    qsort(a, r / es, es, cmp);
  if ((r = pd - pc) > es)
    qsort(pn - r, r / es, es, cmp);
}
```