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

```asm
<_pqsort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xd0,%rsp
  mov    %rdi,-0xa8(%rbp)
  mov    %rsi,-0xb0(%rbp)
  mov    %rdx,-0xb8(%rbp)
  mov    %rcx,-0xc0(%rbp)
  mov    %r8,-0xc8(%rbp)
  mov    %r9,-0xd0(%rbp)
L225:
  mov    -0xa8(%rbp),%rax
  and    $0x7,%eax
  test   %rax,%rax
  jne    L197
  mov    -0xb8(%rbp),%rax
  and    $0x7,%eax
  test   %rax,%rax
  jne    L197
  cmpq   $0x8,-0xb8(%rbp)
  setne  %al
  movzbl %al,%eax
  jmp    L101
L197:
  mov    $0x2,%eax
L101:
  mov    %eax,-0x98(%rbp)
  cmpq   $0x6,-0xb0(%rbp)
  ja     L121
  mov    -0xa8(%rbp),%rdx
  mov    -0xb8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x68(%rbp)
  jmp    L56
L444:
  mov    -0x68(%rbp),%rax
  mov    %rax,-0x70(%rbp)
  jmp    L183
L276:
  cmpl   $0x0,-0x98(%rbp)
  jne    L438
  mov    -0x70(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0xb8(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x70(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0xb8(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x70(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%rax
  mov    %rax,(%rdx)
  jmp    L122
L438:
  mov    -0xb8(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x70(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x98(%rbp),%ecx
  mov    -0xb8(%rbp),%rdx
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <swapfunc@plt>
L122:
  mov    -0xb8(%rbp),%rax
  neg    %rax
  add    %rax,-0x70(%rbp)
L183:
  mov    -0x70(%rbp),%rax
  cmp    -0xa8(%rbp),%rax
  jbe    L341
  mov    -0xb8(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x70(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x70(%rbp),%rax
  mov    -0xc0(%rbp),%rdx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   *%rdx
  test   %eax,%eax
  jg     L276
L341:
  mov    -0xb8(%rbp),%rax
  add    %rax,-0x68(%rbp)
L56:
  mov    -0xb0(%rbp),%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x68(%rbp)
  jb     L444
  jmp    L79
L121:
  mov    -0xb0(%rbp),%rax
  shr    %rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x68(%rbp)
  cmpq   $0x7,-0xb0(%rbp)
  jbe    L85
  mov    -0xa8(%rbp),%rax
  mov    %rax,-0x70(%rbp)
  mov    -0xb0(%rbp),%rax
  sub    $0x1,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x60(%rbp)
  cmpq   $0x28,-0xb0(%rbp)
  jbe    L442
  mov    -0xb0(%rbp),%rax
  shr    $0x3,%rax
  mov    %rax,%rdx
  mov    -0xb8(%rbp),%rax
  imul   %rdx,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x70(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x70(%rbp),%rdx
  mov    -0x58(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0xc0(%rbp),%rdx
  mov    -0x70(%rbp),%rax
  mov    %rdx,%rcx
  mov    %rdi,%rdx
  mov    %rax,%rdi
  call   <med3@plt>
  mov    %rax,-0x70(%rbp)
  mov    -0x68(%rbp),%rdx
  mov    -0x58(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x58(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x68(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0xc0(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  mov    %rdx,%rcx
  mov    %rsi,%rdx
  mov    %rax,%rsi
  call   <med3@plt>
  mov    %rax,-0x68(%rbp)
  mov    -0x58(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x58(%rbp),%rax
  add    %rax,%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0xc0(%rbp),%rdx
  mov    -0x60(%rbp),%rax
  mov    %rdx,%rcx
  mov    %rax,%rdx
  call   <med3@plt>
  mov    %rax,-0x60(%rbp)
L442:
  mov    -0xc0(%rbp),%rcx
  mov    -0x60(%rbp),%rdx
  mov    -0x68(%rbp),%rsi
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <med3@plt>
  mov    %rax,-0x68(%rbp)
L85:
  cmpl   $0x0,-0x98(%rbp)
  jne    L192
  mov    -0xa8(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x68(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0xa8(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x68(%rbp),%rax
  mov    -0x50(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L116
L192:
  mov    -0x98(%rbp),%ecx
  mov    -0xb8(%rbp),%rdx
  mov    -0x68(%rbp),%rsi
  mov    -0xa8(%rbp),%rax
  mov    %rax,%rdi
  call   <swapfunc@plt>
L116:
  mov    -0xa8(%rbp),%rdx
  mov    -0xb8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x88(%rbp)
  mov    -0x88(%rbp),%rax
  mov    %rax,-0x90(%rbp)
  mov    -0xb0(%rbp),%rax
  sub    $0x1,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x78(%rbp)
  mov    -0x78(%rbp),%rax
  mov    %rax,-0x80(%rbp)
  jmp    L115
L168:
  cmpl   $0x0,-0x94(%rbp)
  jne    L82
  cmpl   $0x0,-0x98(%rbp)
  jne    L124
  mov    -0x90(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x88(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x90(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x88(%rbp),%rax
  mov    -0x48(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L158
L124:
  mov    -0x98(%rbp),%ecx
  mov    -0xb8(%rbp),%rdx
  mov    -0x88(%rbp),%rsi
  mov    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <swapfunc@plt>
L158:
  mov    -0xb8(%rbp),%rax
  add    %rax,-0x90(%rbp)
L82:
  mov    -0xb8(%rbp),%rax
  add    %rax,-0x88(%rbp)
L115:
  mov    -0x88(%rbp),%rax
  cmp    -0x80(%rbp),%rax
  ja     L326
  mov    -0xa8(%rbp),%rdx
  mov    -0x88(%rbp),%rax
  mov    -0xc0(%rbp),%rcx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  mov    %eax,-0x94(%rbp)
  cmpl   $0x0,-0x94(%rbp)
  jle    L168
  jmp    L326
L93:
  cmpl   $0x0,-0x94(%rbp)
  jne    L418
  cmpl   $0x0,-0x98(%rbp)
  jne    L64
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x80(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x78(%rbp),%rax
  mov    -0x40(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L421
L64:
  mov    -0x98(%rbp),%ecx
  mov    -0xb8(%rbp),%rdx
  mov    -0x78(%rbp),%rsi
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <swapfunc@plt>
L421:
  mov    -0xb8(%rbp),%rax
  neg    %rax
  add    %rax,-0x78(%rbp)
L418:
  mov    -0xb8(%rbp),%rax
  neg    %rax
  add    %rax,-0x80(%rbp)
L326:
  mov    -0x88(%rbp),%rax
  cmp    -0x80(%rbp),%rax
  ja     L146
  mov    -0xa8(%rbp),%rdx
  mov    -0x80(%rbp),%rax
  mov    -0xc0(%rbp),%rcx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  mov    %eax,-0x94(%rbp)
  cmpl   $0x0,-0x94(%rbp)
  jns    L93
L146:
  mov    -0x88(%rbp),%rax
  cmp    -0x80(%rbp),%rax
  ja     L42
  cmpl   $0x0,-0x98(%rbp)
  jne    L239
  mov    -0x88(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x88(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x80(%rbp),%rax
  mov    -0x38(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L50
L239:
  mov    -0x98(%rbp),%ecx
  mov    -0xb8(%rbp),%rdx
  mov    -0x80(%rbp),%rsi
  mov    -0x88(%rbp),%rax
  mov    %rax,%rdi
  call   <swapfunc@plt>
L50:
  mov    -0xb8(%rbp),%rax
  add    %rax,-0x88(%rbp)
  mov    -0xb8(%rbp),%rax
  neg    %rax
  add    %rax,-0x80(%rbp)
  jmp    L115
L42:
  nop
  mov    -0xb0(%rbp),%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x88(%rbp),%rax
  sub    -0x90(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  sub    -0xa8(%rbp),%rax
  cmp    %rax,%rdx
  cmovle %rdx,%rax
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  je     L61
  mov    -0x30(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x88(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x98(%rbp),%ecx
  mov    -0x30(%rbp),%rdx
  mov    -0xa8(%rbp),%rax
  mov    %rax,%rdi
  call   <swapfunc@plt>
L61:
  mov    -0x60(%rbp),%rax
  sub    -0x78(%rbp),%rax
  sub    -0xb8(%rbp),%rax
  mov    -0x78(%rbp),%rdx
  sub    -0x80(%rbp),%rdx
  cmp    %rdx,%rax
  cmova  %rdx,%rax
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  je     L260
  mov    -0x30(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x98(%rbp),%ecx
  mov    -0x30(%rbp),%rdx
  mov    -0x88(%rbp),%rax
  mov    %rax,%rdi
  call   <swapfunc@plt>
L260:
  mov    -0x88(%rbp),%rax
  sub    -0x90(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  cmp    -0xb8(%rbp),%rax
  jbe    L364
  mov    -0xa8(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x30(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0xc8(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jae    L97
  mov    -0xd0(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jb     L364
L97:
  mov    -0xc8(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  jbe    L395
  mov    -0xd0(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  ja     L364
L395:
  mov    -0x30(%rbp),%rax
  mov    $0x0,%edx
  divq   -0xb8(%rbp)
  mov    %rax,%r10
  mov    -0xd0(%rbp),%rdi
  mov    -0xc8(%rbp),%rsi
  mov    -0xc0(%rbp),%rcx
  mov    -0xb8(%rbp),%rdx
  mov    -0xa8(%rbp),%rax
  mov    %rdi,%r9
  mov    %rsi,%r8
  mov    %r10,%rsi
  mov    %rax,%rdi
  call   <_pqsort>
L364:
  mov    -0x78(%rbp),%rax
  sub    -0x80(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  cmp    -0xb8(%rbp),%rax
  jbe    L79
  mov    -0x30(%rbp),%rax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0xa8(%rbp)
  mov    -0x30(%rbp),%rax
  mov    $0x0,%edx
  divq   -0xb8(%rbp)
  mov    %rax,-0xb0(%rbp)
  mov    -0xa8(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0xc8(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  jae    L347
  mov    -0xd0(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  jb     L79
L347:
  mov    -0xc8(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jbe    L225
  mov    -0xd0(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  ja     L79
  jmp    L225
L79:
  leave
  ret
```

assistant: ```c
void _pqsort(void *a, size_t n, size_t es, int (*cmp)(const void *, const void *), void *lrange, void *rrange) {
  char *pa, *pb, *pc, *pd, *pl, *pm, *pn;
  size_t d, r;
  int swaptype, cmp_result;
loop:
  swaptype = ((char *)a - (char *)0) % sizeof(long) || es % sizeof(long) ? 2 : es == sizeof(long) ? 0 : 1;
  ;
  if (n < 7) {
    for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es)
      for (pl = pm; pl > (char *)a && cmp(pl - es, pl) > 0; pl -= es)
        if (swaptype == 0) {
          long t = *(long *)(void *)(pl);
          *(long *)(void *)(pl) = *(long *)(void *)(pl - es);
          *(long *)(void *)(pl - es) = t;
        } else
          swapfunc(pl, pl - es, es, swaptype);
    return;
  }
  pm = (char *)a + (n / 2) * es;
  if (n > 7) {
    pl = (char *)a;
    pn = (char *)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 *)(void *)(a);
    *(long *)(void *)(a) = *(long *)(void *)(pm);
    *(long *)(void *)(pm) = t;
  } else
    swapfunc(a, pm, es, swaptype);
  pa = pb = (char *)a + es;
  pc = pd = (char *)a + (n - 1) * es;
  for (;;) {
    while (pb <= pc && (cmp_result = cmp(pb, a)) <= 0) {
      if (cmp_result == 0) {
        if (swaptype == 0) {
          long t = *(long *)(void *)(pa);
          *(long *)(void *)(pa) = *(long *)(void *)(pb);
          *(long *)(void *)(pb) = t;
        } else
          swapfunc(pa, pb, es, swaptype);
        pa += es;
      }
      pb += es;
    }
    while (pb <= pc && (cmp_result = cmp(pc, a)) >= 0) {
      if (cmp_result == 0) {
        if (swaptype == 0) {
          long t = *(long *)(void *)(pc);
          *(long *)(void *)(pc) = *(long *)(void *)(pd);
          *(long *)(void *)(pd) = t;
        } else
          swapfunc(pc, pd, es, swaptype);
        pd -= es;
      }
      pc -= es;
    }
    if (pb > pc)
      break;
    if (swaptype == 0) {
      long t = *(long *)(void *)(pb);
      *(long *)(void *)(pb) = *(long *)(void *)(pc);
      *(long *)(void *)(pc) = t;
    } else
      swapfunc(pb, pc, es, swaptype);
    pb += es;
    pc -= es;
  }
  pn = (char *)a + n * es;
  r = (pa - (char *)a) < (pb - pa) ? pa - (char *)a : pb - pa;
  if ((r) > 0)
    swapfunc((a), (pb - r), (size_t)(r), swaptype);
  r = ((size_t)(pd - pc)) < (pn - pd - es) ? (size_t)(pd - pc) : pn - pd - es;
  if ((r) > 0)
    swapfunc((pb), (pn - r), (size_t)(r), swaptype);
  if ((r = pb - pa) > es) {
    void *_l = a, *_r = ((unsigned char *)a) + r - 1;
    if (!((lrange < _l && rrange < _l) || (lrange > _r && rrange > _r)))
      _pqsort(a, r / es, es, cmp, lrange, rrange);
  }
  if ((r = pd - pc) > es) {
    void *_l, *_r;
    a = pn - r;
    n = r / es;
    _l = a;
    _r = ((unsigned char *)a) + r - 1;
    if (!((lrange < _l && rrange < _l) || (lrange > _r && rrange > _r)))
      goto loop;
  }
}
```