user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<quicksort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edx,0x24(%rsp)
  cmp    %esi,%edx
  jle    L100
  mov    %rdi,%r14
  mov    %esi,%r15d
L9:
  mov    0x24(%rsp),%ecx
  mov    %r15d,%esi
  mov    %r14,%rdi
  mov    %ecx,%edx
  call   <partition@plt>
  mov    %eax,0x28(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x18(%rsp)
  cmp    %r15d,%eax
  jle    L64
  mov    %r14,%r13
L62:
  mov    0x18(%rsp),%ecx
  mov    %r15d,%esi
  mov    %r13,%rdi
  mov    %ecx,%edx
  call   <partition@plt>
  mov    %eax,0x2c(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x1c(%rsp)
  cmp    %r15d,%eax
  jle    L14
  mov    %r15d,%eax
  mov    %r13,%r15
  mov    %eax,%r13d
L4:
  mov    0x1c(%rsp),%edx
  mov    %r13d,%esi
  mov    %r15,%rdi
  mov    %edx,%ecx
  call   <partition@plt>
  mov    %eax,0x30(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x20(%rsp)
  cmp    %r13d,%eax
  jle    L53
L23:
  mov    0x20(%rsp),%ecx
  mov    %r13d,%esi
  mov    %r15,%rdi
  mov    %ecx,%edx
  call   <partition@plt>
  lea    -0x1(%rax),%r12d
  mov    %eax,0x34(%rsp)
  cmp    %r13d,%r12d
  jle    L177
L8:
  mov    %r12d,%ecx
  mov    %r12d,%edx
  mov    %r13d,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  lea    -0x1(%rax),%ebx
  mov    %eax,%ebp
  cmp    %r13d,%ebx
  jle    L93
  mov    %r12d,0x8(%rsp)
  mov    %r15,%rax
  mov    %r13d,%r14d
  mov    %ebp,%r15d
  mov    %ebx,%r13d
  mov    %rax,%rbp
L34:
  mov    %r13d,%ecx
  mov    %r13d,%edx
  mov    %r14d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  lea    -0x1(%rax),%ebx
  mov    %eax,0x10(%rsp)
  cmp    %r14d,%ebx
  jle    L52
  mov    %r13d,0xc(%rsp)
  mov    %rbp,%rax
  mov    %ebx,%ebp
  mov    %rax,%rbx
L121:
  mov    %ebp,%ecx
  mov    %ebp,%edx
  mov    %r14d,%esi
  mov    %rbx,%rdi
  call   <partition@plt>
  lea    -0x1(%rax),%r13d
  mov    %eax,0x38(%rsp)
  cmp    %r14d,%r13d
  jle    L54
  mov    %ebp,0x14(%rsp)
  mov    %rbx,%rbp
L48:
  mov    %r13d,%ecx
  mov    %r13d,%edx
  mov    %r14d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  lea    -0x1(%rax),%ebx
  mov    %eax,%r12d
  cmp    %r14d,%ebx
  jle    L142
  mov    %rbp,%r12
  mov    %eax,%r8d
  mov    %ebx,%ebp
L149:
  mov    %r14d,%esi
  mov    %ebp,%ecx
  mov    %ebp,%edx
  mov    %r12,%rdi
  mov    %r8d,0x3c(%rsp)
  call   <partition@plt>
  mov    %r14d,%esi
  mov    %r12,%rdi
  mov    %eax,%ebx
  lea    -0x1(%rax),%edx
  call   <quicksort>
  lea    0x1(%rbx),%r14d
  mov    0x3c(%rsp),%r8d
  cmp    %r14d,%ebp
  jg     L149
  mov    %r12,%rbp
  mov    %r8d,%r12d
L142:
  lea    0x1(%r12),%r14d
  cmp    %r14d,%r13d
  jg     L48
  mov    %rbp,%rbx
  mov    0x14(%rsp),%ebp
L54:
  mov    0x38(%rsp),%r14d
  add    $0x1,%r14d
  cmp    %r14d,%ebp
  jg     L121
  mov    0xc(%rsp),%r13d
  mov    %rbx,%rbp
L52:
  mov    0x10(%rsp),%r14d
  add    $0x1,%r14d
  cmp    %r14d,%r13d
  jg     L34
  mov    %rbp,%rax
  mov    0x8(%rsp),%r12d
  mov    %r15d,%ebp
  mov    %rax,%r15
L93:
  lea    0x1(%rbp),%r13d
  cmp    %r13d,%r12d
  jg     L8
L177:
  mov    0x34(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x20(%rsp)
  jg     L23
L53:
  mov    0x30(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x1c(%rsp)
  jg     L4
  mov    %r15,%r13
L14:
  mov    0x2c(%rsp),%r15d
  add    $0x1,%r15d
  cmp    %r15d,0x18(%rsp)
  jg     L62
  mov    %r13,%r14
L64:
  mov    0x28(%rsp),%r15d
  add    $0x1,%r15d
  cmp    0x24(%rsp),%r15d
  jl     L9
L100:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void quicksort(int *tab, int u, int o) {
  int p = o;
  int pn;
  if (o > u) {
    pn = partition(tab, u, o, p);
    quicksort(tab, u, pn - 1);
    quicksort(tab, pn + 1, o);
  }
}
```