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

```asm
<qksort>:
  endbr64
  push   %r15
  mov    %esi,%eax
  sub    $0x1,%esi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,0x78(%rsp)
  mov    %esi,0x18(%rsp)
  test   %rdi,%rdi
  je     L300
  test   %eax,%eax
  je     L300
  mov    %edx,%r15d
  test   %edx,%edx
  je     L300
  mov    %rcx,%r14
  test   %rcx,%rcx
  je     L300
  xor    %ebx,%ebx
  test   %esi,%esi
  jle    L144
L142:
  mov    0x78(%rsp),%rbp
  mov    0x18(%rsp),%ecx
  mov    %r14,%r8
  mov    %ebx,%edx
  mov    %r15d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x3c(%rsp)
  mov    %eax,%ecx
  test   %eax,%eax
  js     L144
  mov    %ebx,%eax
  sub    %ebx,%ecx
  imul   %r15d,%eax
  mov    %ecx,0x14(%rsp)
  cltq
  add    %rbp,%rax
  mov    %rax,0x30(%rsp)
  test   %ecx,%ecx
  jle    L145
  xor    %ebx,%ebx
L312:
  mov    0x30(%rsp),%rbp
  mov    0x14(%rsp),%ecx
  mov    %ebx,%edx
  mov    %r14,%r8
  mov    %r15d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x48(%rsp)
  mov    %eax,%edx
  test   %eax,%eax
  js     L145
  mov    %ebx,%eax
  sub    %ebx,%edx
  imul   %r15d,%eax
  mov    %edx,0x1c(%rsp)
  cltq
  add    %rbp,%rax
  mov    %rax,0x40(%rsp)
  test   %edx,%edx
  jle    L63
  xor    %ebx,%ebx
L163:
  mov    0x40(%rsp),%rbp
  mov    0x1c(%rsp),%ecx
  mov    %r15d,%esi
  mov    %r14,%r8
  mov    %ebx,%edx
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x4c(%rsp)
  mov    %eax,%esi
  test   %eax,%eax
  js     L63
  mov    %ebx,%eax
  sub    %ebx,%esi
  imul   %r15d,%eax
  mov    %esi,0x20(%rsp)
  cltq
  add    %rbp,%rax
  mov    %rax,0x50(%rsp)
  test   %esi,%esi
  jle    L85
  xor    %ebx,%ebx
L48:
  mov    0x50(%rsp),%rbp
  mov    0x20(%rsp),%ecx
  mov    %r14,%r8
  mov    %ebx,%edx
  mov    %r15d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x60(%rsp)
  mov    %eax,%ecx
  test   %eax,%eax
  js     L85
  mov    %ebx,%eax
  sub    %ebx,%ecx
  imul   %r15d,%eax
  mov    %ecx,0x24(%rsp)
  cltq
  add    %rbp,%rax
  mov    %rax,0x58(%rsp)
  test   %ecx,%ecx
  jle    L6
  xor    %ebx,%ebx
L306:
  mov    0x58(%rsp),%rbp
  mov    0x24(%rsp),%ecx
  mov    %ebx,%edx
  mov    %r14,%r8
  mov    %r15d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x64(%rsp)
  mov    %eax,%edx
  test   %eax,%eax
  js     L6
  mov    %ebx,%eax
  sub    %ebx,%edx
  imul   %r15d,%eax
  mov    %edx,0x38(%rsp)
  cltq
  add    %rbp,%rax
  mov    %rax,0x68(%rsp)
  test   %edx,%edx
  jle    L94
  mov    %r14,%rax
  xor    %ebx,%ebx
  mov    %r15d,%r14d
  mov    %rax,%r15
L77:
  mov    0x68(%rsp),%rbp
  mov    0x38(%rsp),%ecx
  mov    %r15,%r8
  mov    %ebx,%edx
  mov    %r14d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x70(%rsp)
  test   %eax,%eax
  js     L311
  sub    %ebx,%eax
  mov    %eax,%r13d
  mov    %ebx,%eax
  imul   %r14d,%eax
  cltq
  add    %rbp,%rax
  mov    %rax,(%rsp)
  test   %r13d,%r13d
  jle    L304
  mov    %r15,%rax
  xor    %ebx,%ebx
  mov    %r13d,%r15d
  mov    %r14d,%r13d
  mov    %rax,%r14
L204:
  mov    (%rsp),%rdi
  mov    %r14,%r8
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %r13d,%esi
  call   <partition@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  js     L11
  mov    %eax,%r12d
  sub    %ebx,%r12d
  imul   %r13d,%ebx
  movslq %ebx,%rax
  add    (%rsp),%rax
  mov    %rax,0x28(%rsp)
  test   %r12d,%r12d
  jle    L84
  mov    %ebp,0x8(%rsp)
  xor    %ebx,%ebx
  mov    %r14,%rbp
  mov    %r12d,0x10(%rsp)
  mov    %r13d,%r12d
L97:
  mov    0x28(%rsp),%r14
  mov    0x10(%rsp),%ecx
  mov    %rbp,%r8
  mov    %ebx,%edx
  mov    %r12d,%esi
  mov    %r14,%rdi
  call   <partition@plt>
  mov    %eax,0x74(%rsp)
  test   %eax,%eax
  js     L57
  sub    %ebx,%eax
  imul   %r12d,%ebx
  mov    %eax,0xc(%rsp)
  movslq %ebx,%rbx
  add    %r14,%rbx
  test   %eax,%eax
  jle    L231
  xor    %edx,%edx
  mov    %rbp,%r14
  mov    %r12d,%r13d
  mov    %rbx,%rbp
  mov    %edx,%ebx
L50:
  mov    0xc(%rsp),%ecx
  mov    %r14,%r8
  mov    %ebx,%edx
  mov    %r13d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  js     L209
  mov    %ebx,%edi
  mov    %eax,%esi
  mov    %r14,%rcx
  mov    %r13d,%edx
  imul   %r13d,%edi
  sub    %ebx,%esi
  lea    0x1(%r12),%ebx
  add    $0x1,%esi
  movslq %edi,%rdi
  add    %rbp,%rdi
  call   <qksort>
  cmp    %ebx,0xc(%rsp)
  jg     L50
L209:
  mov    %r13d,%r12d
  mov    %r14,%rbp
L231:
  mov    0x74(%rsp),%ebx
  add    $0x1,%ebx
  cmp    %ebx,0x10(%rsp)
  jg     L97
L57:
  mov    %rbp,%r14
  mov    0x8(%rsp),%ebp
  mov    %r12d,%r13d
L84:
  lea    0x1(%rbp),%ebx
  cmp    %ebx,%r15d
  jg     L204
L11:
  mov    %r14,%r15
  mov    %r13d,%r14d
L304:
  mov    0x70(%rsp),%ebx
  add    $0x1,%ebx
  cmp    %ebx,0x38(%rsp)
  jg     L77
L311:
  mov    %r15,%rax
  mov    %r14d,%r15d
  mov    %rax,%r14
L94:
  mov    0x64(%rsp),%ebx
  add    $0x1,%ebx
  cmp    %ebx,0x24(%rsp)
  jg     L306
L6:
  mov    0x60(%rsp),%ebx
  add    $0x1,%ebx
  cmp    %ebx,0x20(%rsp)
  jg     L48
L85:
  mov    0x4c(%rsp),%ebx
  add    $0x1,%ebx
  cmp    %ebx,0x1c(%rsp)
  jg     L163
L63:
  mov    0x48(%rsp),%ebx
  add    $0x1,%ebx
  cmp    %ebx,0x14(%rsp)
  jg     L312
L145:
  mov    0x3c(%rsp),%ebx
  add    $0x1,%ebx
  cmp    %ebx,0x18(%rsp)
  jg     L142
L144:
  xor    %eax,%eax
L110:
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L300:
  mov    $0xffffffff,%eax
  jmp    L110
```

assistant: ```c
int qksort(void *data, int size, int esize, int (*compare)(void *key1, void *key2)) {
  int i = 0;
  int j = 0;
  int k = size - 1;
  int ret = -1;
  char *ele = (char *)data;
  int new_size = 0;
  if ((NULL == data) || (0 == size) || (0 == esize) || (NULL == compare)) {
    ret = -1;
    goto LBL_RET;
  }
  while (i < k) {
    j = partition(data, esize, i, k, compare);
    if (j < 0)
      break;
    new_size = j - i + 1;
    qksort(&ele[i * esize], new_size, esize, compare);
    i = j + 1;
  }
  ret = 0;
LBL_RET:
  return ret;
}
```