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    L21
  mov    %rdi,%r14
  mov    %esi,%r15d
L173:
  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    L153
  mov    %r14,%r13
L41:
  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    L77
  mov    %r15d,%eax
  mov    %r13,%r15
  mov    %eax,%r13d
L78:
  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    L88
L31:
  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    L142
L53:
  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    L84
  mov    %r12d,0x8(%rsp)
  mov    %r15,%rax
  mov    %r13d,%r14d
  mov    %ebp,%r15d
  mov    %ebx,%r13d
  mov    %rax,%rbp
L1:
  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    L158
  mov    %r13d,0xc(%rsp)
  mov    %rbp,%rax
  mov    %ebx,%ebp
  mov    %rax,%rbx
L106:
  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    L46
  mov    %ebp,0x14(%rsp)
  mov    %rbx,%rbp
L29:
  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    L26
  mov    %rbp,%r12
  mov    %eax,%r8d
  mov    %ebx,%ebp
L169:
  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     L169
  mov    %r12,%rbp
  mov    %r8d,%r12d
L26:
  lea    0x1(%r12),%r14d
  cmp    %r14d,%r13d
  jg     L29
  mov    %rbp,%rbx
  mov    0x14(%rsp),%ebp
L46:
  mov    0x38(%rsp),%r14d
  add    $0x1,%r14d
  cmp    %r14d,%ebp
  jg     L106
  mov    0xc(%rsp),%r13d
  mov    %rbx,%rbp
L158:
  mov    0x10(%rsp),%r14d
  add    $0x1,%r14d
  cmp    %r14d,%r13d
  jg     L1
  mov    %rbp,%rax
  mov    0x8(%rsp),%r12d
  mov    %r15d,%ebp
  mov    %rax,%r15
L84:
  lea    0x1(%rbp),%r13d
  cmp    %r13d,%r12d
  jg     L53
L142:
  mov    0x34(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x20(%rsp)
  jg     L31
L88:
  mov    0x30(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x1c(%rsp)
  jg     L78
  mov    %r15,%r13
L77:
  mov    0x2c(%rsp),%r15d
  add    $0x1,%r15d
  cmp    %r15d,0x18(%rsp)
  jg     L41
  mov    %r13,%r14
L153:
  mov    0x28(%rsp),%r15d
  add    $0x1,%r15d
  cmp    0x24(%rsp),%r15d
  jl     L173
L21:
  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);
  }
}
```