user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<my_qsort>:
  endbr64
  cmp    $0x1,%esi
  jle    L3
  push   %r15
  mov    %rdi,%r15
  push   %r14
  movslq %edx,%r14
  push   %r13
  push   %r12
  mov    %r14d,%r12d
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  sub    $0xb8,%rsp
L155:
  lea    -0x1(%rsi),%eax
  mov    %r12d,%edx
  mov    %rbp,%r8
  mov    %r15,%rdi
  mov    %eax,0x8c(%rsp)
  sar    %eax
  mov    %eax,%ecx
  imul   %r12d,%ecx
  movslq %ecx,%rcx
  add    %r15,%rcx
  call   <partition@plt>
  mov    %rax,0x30(%rsp)
  sub    %r15,%rax
  cqto
  idiv   %r14
  mov    %rax,0x58(%rsp)
  mov    %eax,%esi
  cmp    $0x1,%eax
  jle    L120
L78:
  lea    -0x1(%rsi),%eax
  mov    %r12d,%edx
  mov    %rbp,%r8
  mov    %r15,%rdi
  mov    %eax,0x84(%rsp)
  sar    %eax
  mov    %eax,%ecx
  imul   %r12d,%ecx
  movslq %ecx,%rcx
  add    %r15,%rcx
  call   <partition@plt>
  mov    %rax,0x38(%rsp)
  sub    %r15,%rax
  cqto
  idiv   %r14
  mov    %rax,0x60(%rsp)
  mov    %eax,%esi
  cmp    $0x1,%eax
  jle    L153
L179:
  lea    -0x1(%rsi),%eax
  mov    %r12d,%edx
  mov    %rbp,%r8
  mov    %r15,%rdi
  mov    %eax,0x88(%rsp)
  sar    %eax
  mov    %eax,%ecx
  imul   %r12d,%ecx
  movslq %ecx,%rcx
  add    %r15,%rcx
  call   <partition@plt>
  mov    %rax,0x40(%rsp)
  sub    %r15,%rax
  cqto
  idiv   %r14
  mov    %rax,0x68(%rsp)
  mov    %eax,%esi
  cmp    $0x1,%eax
  jle    L121
L72:
  lea    -0x1(%rsi),%eax
  mov    %r12d,%edx
  mov    %rbp,%r8
  mov    %r15,%rdi
  mov    %eax,0xa0(%rsp)
  sar    %eax
  mov    %eax,%ecx
  imul   %r12d,%ecx
  movslq %ecx,%rcx
  add    %r15,%rcx
  call   <partition@plt>
  mov    %rax,0x48(%rsp)
  sub    %r15,%rax
  cqto
  idiv   %r14
  mov    %rax,0x70(%rsp)
  mov    %eax,%esi
  cmp    $0x1,%eax
  jle    L51
  mov    %r15,%r13
  mov    %r14,%r15
  mov    %rbp,%r14
L104:
  lea    -0x1(%rsi),%eax
  mov    %r12d,%edx
  mov    %r14,%r8
  mov    %r13,%rdi
  mov    %eax,%ecx
  mov    %eax,0x28(%rsp)
  sar    %ecx
  imul   %r12d,%ecx
  movslq %ecx,%rcx
  add    %r13,%rcx
  call   <partition@plt>
  mov    %rax,0x8(%rsp)
  sub    %r13,%rax
  cqto
  idiv   %r15
  mov    %rax,%rbp
  mov    %eax,%esi
  cmp    $0x1,%eax
  jle    L99
  mov    %rbp,0x10(%rsp)
  mov    %r12d,%eax
  mov    %r15,%r12
  mov    %eax,%r15d
L162:
  lea    -0x1(%rsi),%eax
  mov    %r15d,%edx
  mov    %r14,%r8
  mov    %r13,%rdi
  mov    %eax,%ecx
  mov    %eax,0x2c(%rsp)
  sar    %ecx
  imul   %r15d,%ecx
  movslq %ecx,%rcx
  add    %r13,%rcx
  call   <partition@plt>
  mov    %rax,0x18(%rsp)
  sub    %r13,%rax
  cqto
  idiv   %r12
  mov    %rax,0x20(%rsp)
  mov    %eax,%esi
  cmp    $0x1,%eax
  jle    L144
L137:
  lea    -0x1(%rsi),%eax
  mov    %r15d,%edx
  mov    %r14,%r8
  mov    %r13,%rdi
  mov    %eax,0x80(%rsp)
  sar    %eax
  mov    %eax,%ecx
  imul   %r15d,%ecx
  movslq %ecx,%rcx
  add    %r13,%rcx
  call   <partition@plt>
  mov    %rax,0x50(%rsp)
  sub    %r13,%rax
  cqto
  idiv   %r12
  mov    %rax,0x78(%rsp)
  mov    %eax,%esi
  cmp    $0x1,%eax
  jle    L71
L47:
  lea    -0x1(%rsi),%ebp
  mov    %r15d,%edx
  mov    %r14,%r8
  mov    %r13,%rdi
  mov    %ebp,%ecx
  sar    %ecx
  imul   %r15d,%ecx
  movslq %ecx,%rcx
  add    %r13,%rcx
  call   <partition@plt>
  mov    %rax,%r9
  sub    %r13,%rax
  cqto
  idiv   %r12
  mov    %rax,%rbx
  mov    %eax,%esi
  cmp    $0x1,%eax
  jle    L12
  mov    %ebp,%eax
  mov    %rbx,%rbp
  mov    %r14,%rbx
  mov    %eax,%r14d
L77:
  lea    -0x1(%rsi),%r11d
  mov    %r13,%rdi
  mov    %rbx,%r8
  mov    %r15d,%edx
  mov    %r11d,%ecx
  mov    %r9,0xa8(%rsp)
  sar    %ecx
  mov    %r11d,0xa4(%rsp)
  imul   %r15d,%ecx
  movslq %ecx,%rcx
  add    %r13,%rcx
  call   <partition@plt>
  mov    %r13,%rdi
  mov    %rbx,%rcx
  mov    %rax,0x98(%rsp)
  sub    %r13,%rax
  cqto
  idiv   %r12
  mov    %r15d,%edx
  mov    %eax,%esi
  mov    %rax,0x90(%rsp)
  call   <my_qsort>
  mov    0xa4(%rsp),%esi
  mov    0x90(%rsp),%rax
  mov    0x98(%rsp),%r10
  mov    0xa8(%rsp),%r9
  sub    %eax,%esi
  cmp    $0x1,%esi
  lea    (%r10,%r12,1),%r13
  jg     L77
  mov    %r14d,%eax
  mov    %rbx,%r14
  mov    %rbp,%rbx
  mov    %eax,%ebp
L12:
  mov    %ebp,%esi
  lea    (%r9,%r12,1),%r13
  sub    %ebx,%esi
  cmp    $0x1,%esi
  jg     L47
L71:
  mov    0x50(%rsp),%r13
  mov    0x80(%rsp),%esi
  sub    0x78(%rsp),%esi
  add    %r12,%r13
  cmp    $0x1,%esi
  jg     L137
L144:
  mov    0x18(%rsp),%r13
  mov    0x2c(%rsp),%esi
  sub    0x20(%rsp),%esi
  add    %r12,%r13
  cmp    $0x1,%esi
  jg     L162
  mov    %r15d,%eax
  mov    0x10(%rsp),%rbp
  mov    %r12,%r15
  mov    %eax,%r12d
L99:
  mov    0x28(%rsp),%esi
  mov    0x8(%rsp),%r13
  sub    %ebp,%esi
  add    %r15,%r13
  cmp    $0x1,%esi
  jg     L104
  mov    %r14,%rbp
  mov    %r15,%r14
L51:
  mov    0x48(%rsp),%r15
  mov    0xa0(%rsp),%esi
  sub    0x70(%rsp),%esi
  add    %r14,%r15
  cmp    $0x1,%esi
  jg     L72
L121:
  mov    0x40(%rsp),%r15
  mov    0x88(%rsp),%esi
  sub    0x68(%rsp),%esi
  add    %r14,%r15
  cmp    $0x1,%esi
  jg     L179
L153:
  mov    0x38(%rsp),%r15
  mov    0x84(%rsp),%esi
  sub    0x60(%rsp),%esi
  add    %r14,%r15
  cmp    $0x1,%esi
  jg     L78
L120:
  mov    0x30(%rsp),%r15
  mov    0x8c(%rsp),%esi
  sub    0x58(%rsp),%esi
  add    %r14,%r15
  cmp    $0x1,%esi
  jg     L155
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  ret
```

assistant: ```c
void my_qsort(void *base, int n, int size, int (*compare)(const void *, const void *)) {
  if (n <= 1)
    return;
  char *basec = (char *)base;
  char *newp = (char *)partition(base, n, size, basec + ((n - 1) / 2) * size, compare);
  my_qsort(basec, (newp - basec) / size, size, compare);
  my_qsort(newp + size, n + (basec - newp) / size - 1, size, compare);
}
```