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

```asm
<QSort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,0x40(%rsp)
  mov    %rsi,0x68(%rsp)
  mov    %rcx,0x10(%rsp)
  test   %rsi,%rsi
  je     L22
  lea    -0x1(%rsi),%rax
  mov    %edx,0x4c(%rsp)
  mov    %rdx,%r14
  mov    %rax,0x58(%rsp)
  lea    -0xb(%rsi),%rax
  mov    %rax,0x60(%rsp)
  mov    %edx,%eax
  shr    %eax
  mov    %edx,0x3c(%rsp)
  sub    $0x1,%eax
  mov    %rsi,0x18(%rsp)
  mov    %rax,0x30(%rsp)
  mov    %edx,%eax
  and    $0xfffffffe,%eax
  mov    %eax,0x48(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x28(%rsp)
  lea    -0x1(%rdx),%eax
  lea    0x8(,%rax,8),%rax
  mov    %rax,0x50(%rsp)
  nopw   0x0(%rax,%rax,1)
L3:
  mov    0x18(%rsp),%rax
  lea    (%rax,%rax,4),%rcx
  movabs $0x4ec4ec4ec4ec4ec5,%rax
  add    %rcx,%rcx
  mul    %rcx
  shr    $0x2,%rdx
  lea    -0x9(%rdx),%rax
  mov    %rdx,0x18(%rsp)
  cmp    $0x1,%rax
  jbe    L122
  cmp    $0xc,%rcx
  jbe    L177
  mov    0x68(%rsp),%rax
  cmp    $0x19,%rcx
  seta   0x3b(%rsp)
  sub    %rdx,%rax
  mov    %rax,0x8(%rsp)
  je     L81
L5:
  mov    0x18(%rsp),%rsi
  mov    0x40(%rsp),%rbp
  mov    %r14,%rbx
  xor    %r13d,%r13d
  mov    0x4c(%rsp),%eax
  xor    %r15d,%r15d
  imul   %r14,%rsi
  sub    $0x1,%eax
  mov    %eax,0x24(%rsp)
  lea    0x0(%rbp,%rsi,1),%r12
  mov    %r12,%r14
  jmp    L40
  nopw   0x0(%rax,%rax,1)
L155:
  add    $0x1,%r15
  add    %rbx,%rbp
  add    %rbx,%r14
  cmp    0x8(%rsp),%r15
  jae    L161
L40:
  mov    0x10(%rsp),%rax
  mov    %rbp,%r12
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   *%rax
  test   %eax,%eax
  jle    L155
  lea    0x10(%rbp),%rax
  lea    0x10(%r14),%rsi
  cmp    %rax,%r14
  setae  %al
  cmp    %rsi,%rbp
  setae  %sil
  or     %sil,%al
  je     L149
  cmpl   $0x1,0x24(%rsp)
  jbe    L149
  mov    0x30(%rsp),%rax
  mov    %r14,%rdx
  lea    0x1(%rax),%rsi
  mov    %rbp,%rax
  shl    $0x4,%rsi
  add    %rbp,%rsi
L126:
  movdqu (%rdx),%xmm1
  movdqu (%rax),%xmm0
  add    $0x10,%rax
  add    $0x10,%rdx
  movups %xmm1,-0x10(%rax)
  movups %xmm0,-0x10(%rdx)
  cmp    %rax,%rsi
  jne    L126
  mov    0x28(%rsp),%rax
  mov    0x48(%rsp),%edi
  lea    0x0(%rbp,%rax,1),%rdx
  add    %r14,%rax
  cmp    %edi,0x3c(%rsp)
  je     L97
  mov    (%rdx),%rsi
  mov    (%rax),%rdi
  mov    %rdi,(%rdx)
  mov    %rsi,(%rax)
L97:
  mov    $0x1,%r13d
  jmp    L155
  nopl   0x0(%rax,%rax,1)
L161:
  or     %r13b,0x3b(%rsp)
  mov    %rbx,%r14
L81:
  cmpb   $0x0,0x3b(%rsp)
  jne    L3
L22:
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L149:
  mov    0x50(%rsp),%rax
  mov    %r14,%r11
  sub    %rbp,%r11
  lea    (%rax,%rbp,1),%r13
  nopw   0x0(%rax,%rax,1)
L109:
  lea    (%r12,%r11,1),%rax
  mov    (%r12),%rdx
  mov    %r12,%rcx
  add    $0x8,%r12
  mov    (%rax),%rsi
  mov    %rsi,(%rcx)
  mov    %rdx,(%rax)
  cmp    %r13,%r12
  jne    L109
  jmp    L97
  nop
L122:
  mov    0x60(%rsp),%rax
  movb   $0x1,0x3b(%rsp)
  movq   $0xb,0x18(%rsp)
  mov    %rax,0x8(%rsp)
  test   %rax,%rax
  jne    L5
  jmp    L3
  cs nopw 0x0(%rax,%rax,1)
L177:
  cmpq   $0x0,0x58(%rsp)
  je     L22
  mov    0x58(%rsp),%rax
  movb   $0x0,0x3b(%rsp)
  movq   $0x1,0x18(%rsp)
  mov    %rax,0x8(%rsp)
  jmp    L5
```

assistant: ```c
void QSort(void *base, size_t members, size_t size, int (*compar)(const void *, const void *)) {
  size_t i, j;
  size_t gap = members;
  uintptr_t p1, p2;
  bool worked;
  if (!members) {
    return;
  }
  do {
    gap = (gap * 10) / 13;
    if (gap == 9 || gap == 10) {
      gap = 11;
    } else if (gap < 1) {
      gap = 1;
    }
    worked = false;
    for (i = 0, p1 = (uintptr_t)base; i < members - gap; i++, p1 += size) {
      j = i + gap;
      p2 = (uintptr_t)base + j * size;
      if (compar((void *)p1, (void *)p2) > 0) {
        int k = size;
        uint8_t tmp;
        uint8_t *tp1;
        uint8_t *tp2;
        tp1 = (uint8_t *)p1;
        tp2 = (uint8_t *)p2;
        do {
          tmp = *tp1;
          *tp1++ = *tp2;
          *tp2++ = tmp;
        } while (--k);
        worked = true;
      }
    }
  } while (gap > 1 || worked);
}
```