user: 这段汇编代码用C语言表示是什么样的?

```asm
<qsort>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  movslq %edx,%rcx
  mov    %esi,%eax
  push   %r14
  push   %r13
  mov    %rdi,%r13
  mov    %edx,%edi
  push   %r12
  and    $0x7,%edi
  mov    %rcx,%r12
  push   %rbp
  neg    %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %edx,0x20(%rsp)
  mov    %edi,0x28(%rsp)
  mov    %rcx,0x10(%rsp)
  movl   $0x2,(%rsp)
  test   $0x7,%r13b
  jne    L302
L222:
  mov    0x28(%rsp),%edi
  test   %edi,%edi
  jne    L302
  xor    %ecx,%ecx
  cmpl   $0x8,0x20(%rsp)
  setne  %cl
  mov    %ecx,(%rsp)
L302:
  cmp    $0x6,%eax
  jbe    L63
L306:
  mov    0x20(%rsp),%ecx
  mov    %eax,%r14d
  lea    -0x1(%rax),%edx
  shr    %r14d
  imul   %ecx,%edx
  imul   %ecx,%r14d
  mov    %edx,%ebp
  mov    %edx,0x24(%rsp)
  add    %r13,%r14
  add    %r13,%rbp
  cmp    $0x7,%eax
  je     L114
  mov    %rbp,%rdx
  mov    %r13,%r8
  cmp    $0x28,%eax
  ja     L451
L324:
  mov    %r14,%rsi
  mov    %r15,%rcx
  mov    %r8,%rdi
  xor    %eax,%eax
  call   <med3@plt>
  movslq %eax,%r14
L114:
  mov    (%rsp),%ecx
  test   %ecx,%ecx
  jne    L269
  mov    0x0(%r13),%rax
  mov    (%r14),%rdx
  mov    %rdx,0x0(%r13)
  mov    %rax,(%r14)
L50:
  mov    0x10(%rsp),%rax
  add    %r13,%rax
  mov    %rax,0x18(%rsp)
  cmp    %rbp,%rax
  jbe    L448
  mov    %rax,0x8(%rsp)
  xor    %r8d,%r8d
  xor    %r9d,%r9d
  xor    %ebx,%ebx
  xor    %eax,%eax
  nopl   (%rax)
L104:
  mov    0x18(%rsp),%rdx
  sub    %r13,%rdx
  cmp    %rax,%rdx
  cmovle %rdx,%rax
  mov    %eax,%edx
  test   %eax,%eax
  jg     L150
L158:
  mov    0x20(%rsp),%eax
  mov    0x24(%rsp),%ecx
  lea    (%rax,%rcx,1),%r10d
  add    %r13,%r10
  mov    %r10,%rax
  sub    %rbp,%rax
  sub    0x10(%rsp),%rax
  cmp    %rbx,%rax
  cmovg  %rbx,%rax
  mov    %eax,%edx
  test   %eax,%eax
  jle    L5
  mov    %r10,%rsi
  cltq
  mov    (%rsp),%ecx
  mov    0x8(%rsp),%rdi
  sub    %rax,%rsi
  xor    %eax,%eax
  mov    %r8d,0x2c(%rsp)
  mov    %r9d,0x24(%rsp)
  mov    %r10,0x18(%rsp)
  call   <swapfunc@plt>
  movslq 0x2c(%rsp),%r8
  mov    0x24(%rsp),%r9d
  mov    0x18(%rsp),%r10
L5:
  cmp    %r9d,0x20(%rsp)
  jl     L242
L89:
  mov    0x20(%rsp),%ecx
  cmp    %r8d,%ecx
  jge    L454
  mov    %r8d,%eax
  sub    %r8,%r10
  movl   $0x2,(%rsp)
  cltd
  mov    %r10,%r13
  idiv   %ecx
  test   $0x7,%r13b
  je     L222
  cmp    $0x6,%eax
  ja     L306
L63:
  imul   0x20(%rsp),%eax
  mov    0x10(%rsp),%rcx
  lea    0x0(%r13,%rcx,1),%rbp
  neg    %rcx
  add    %r13,%rax
  mov    %rcx,%rbx
  mov    %rax,0x18(%rsp)
  cmp    %rax,%rbp
  jae    L454
  mov    %rbp,0x8(%rsp)
  mov    0x10(%rsp),%rbp
  nopw   0x0(%rax,%rax,1)
L351:
  mov    0x8(%rsp),%r14
  cmp    %r14,%r13
  jae    L395
  mov    (%rsp),%esi
  test   %esi,%esi
  je     L108
  jmp    L457
  cs nopw 0x0(%rax,%rax,1)
L33:
  mov    (%r12),%rax
  mov    (%r12,%rbx,1),%rsi
  mov    %rsi,(%r12)
  mov    %rax,(%r12,%rbx,1)
  cmp    %r14,%r13
  jae    L395
L108:
  mov    %r14,%r12
  sub    %rbp,%r14
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   *%r15
  test   %eax,%eax
  jg     L33
L395:
  add    %rbp,0x8(%rsp)
  mov    0x8(%rsp),%rax
  cmp    0x18(%rsp),%rax
  jb     L351
L454:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L448:
  mov    %rax,%rbx
  mov    %rbp,%r14
  xchg   %ax,%ax
L321:
  mov    %rbx,0x8(%rsp)
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   *%r15
  test   %eax,%eax
  jle    L400
  cmp    0x8(%rsp),%r14
  jb     L92
  mov    (%rsp),%eax
  test   %eax,%eax
  je     L417
  jmp    L196
  nopl   (%rax)
L94:
  jne    L231
  mov    0x0(%rbp),%rdx
  mov    (%r14),%rax
  mov    %rdx,(%r14)
  mov    %rax,0x0(%rbp)
  add    %r12,%rbp
L231:
  add    %r12,%r14
  cmp    %rbx,%r14
  jb     L248
L417:
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   *%r15
  test   %eax,%eax
  jns    L94
  mov    (%rbx),%rax
  mov    (%r14),%rdx
  mov    %rdx,(%rbx)
  mov    %rax,(%r14)
L352:
  mov    0x10(%rsp),%rax
  add    %r12,%r14
  add    %rbx,%rax
  mov    %rax,0x8(%rsp)
L270:
  mov    %rax,%rbx
  cmp    %rax,%r14
  jae    L321
L115:
  mov    %rbp,%rbx
  sub    0x18(%rsp),%rax
  sub    %r14,%rbx
  mov    %eax,%r9d
  movslq %ebx,%r8
  jmp    L104
  cs nopw 0x0(%rax,%rax,1)
L305:
  jne    L112
  mov    (%rsp),%ecx
  mov    0x20(%rsp),%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    %r12,%rbp
  call   <swapfunc@plt>
L112:
  add    %r12,%r14
  cmp    %rbx,%r14
  jb     L248
L196:
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   *%r15
  test   %eax,%eax
  jns    L305
  mov    (%rsp),%ecx
  mov    0x20(%rsp),%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <swapfunc@plt>
  jmp    L352
  nopl   0x0(%rax,%rax,1)
L400:
  jne    L101
  mov    (%rsp),%edx
  test   %edx,%edx
  jne    L197
  mov    0x18(%rsp),%rcx
  mov    (%rbx),%rdx
  mov    (%rcx),%rax
  mov    %rdx,(%rcx)
  mov    %rax,(%rbx)
L43:
  mov    0x10(%rsp),%rcx
  add    %rcx,0x18(%rsp)
L101:
  mov    0x10(%rsp),%rax
  add    %rbx,%rax
  mov    %rax,0x8(%rsp)
  jmp    L270
  cs nopw 0x0(%rax,%rax,1)
L150:
  mov    0x8(%rsp),%rsi
  cltq
  mov    (%rsp),%ecx
  mov    %r13,%rdi
  mov    %r8d,0x2c(%rsp)
  sub    %rax,%rsi
  xor    %eax,%eax
  mov    %r9d,0x18(%rsp)
  call   <swapfunc@plt>
  movslq 0x2c(%rsp),%r8
  mov    0x18(%rsp),%r9d
  jmp    L158
L197:
  mov    (%rsp),%ecx
  mov    0x20(%rsp),%edx
  mov    %rbx,%rsi
  xor    %eax,%eax
  mov    0x18(%rsp),%rdi
  call   <swapfunc@plt>
  jmp    L43
L269:
  mov    (%rsp),%ecx
  mov    0x20(%rsp),%edx
  mov    %r14,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <swapfunc@plt>
  jmp    L50
L451:
  shr    $0x3,%eax
  mov    %r13,%rdi
  imul   %ecx,%eax
  mov    %r15,%rcx
  lea    (%rax,%rax,1),%edx
  movslq %eax,%rbx
  xor    %eax,%eax
  movslq %edx,%rdx
  lea    0x0(%r13,%rbx,1),%rsi
  add    %r13,%rdx
  call   <med3@plt>
  mov    %r14,%rdi
  mov    %rbx,%r9
  lea    (%r14,%rbx,1),%rdx
  movslq %eax,%r8
  neg    %r9
  mov    %r14,%rsi
  sub    %rbx,%rdi
  mov    %r15,%rcx
  xor    %eax,%eax
  mov    %r8,0x18(%rsp)
  mov    %r9,0x8(%rsp)
  call   <med3@plt>
  mov    0x8(%rsp),%r9
  mov    %rbp,%rdx
  mov    %r15,%rcx
  movslq %eax,%r14
  xor    %eax,%eax
  lea    0x0(%rbp,%r9,1),%rsi
  lea    (%rsi,%r9,1),%rdi
  call   <med3@plt>
  mov    0x18(%rsp),%r8
  movslq %eax,%rdx
  jmp    L324
L242:
  mov    0x20(%rsp),%edi
  mov    %r9d,%eax
  mov    %r15,%rcx
  mov    %r8d,0x8(%rsp)
  cltd
  mov    %r10,(%rsp)
  idiv   %edi
  mov    %edi,%edx
  mov    %r13,%rdi
  mov    %eax,%esi
  call   <qsort>
  movslq 0x8(%rsp),%r8
  mov    (%rsp),%r10
  jmp    L89
  nopw   0x0(%rax,%rax,1)
L349:
  mov    (%rsp),%ecx
  mov    0x20(%rsp),%edx
  xor    %eax,%eax
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <swapfunc@plt>
  cmp    %r14,%r13
  jae    L395
L457:
  mov    %r14,%r12
  add    %rbx,%r14
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   *%r15
  test   %eax,%eax
  jg     L349
  jmp    L395
L248:
  mov    %rbx,%rax
  jmp    L115
L92:
  mov    0x8(%rsp),%rax
  jmp    L115
```

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