user: 请将以下的汇编代码转换成C语言代码：

```asm
<quicksort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x8(%rsp)
  cmp    %edx,%esi
  jl     L98
L116:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L64
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L98:
  lea    0x8(%rsp),%rcx
  mov    %rdi,%r13
  mov    %esi,%ebp
  mov    %edx,%r12d
  call   <partition@plt>
  movl   $0x0,0xc(%rsp)
  lea    -0x1(%rax),%r14d
  cmp    %ebp,%r14d
  jle    L145
  lea    0xc(%rsp),%rcx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  movl   $0x0,0x10(%rsp)
  lea    -0x1(%rax),%r15d
  cmp    %r15d,%ebp
  jl     L42
L124:
  mov    0xc(%rsp),%eax
  movl   $0x0,0x10(%rsp)
  lea    0x1(%rax),%ebp
  cmp    %ebp,%r14d
  jg     L32
L145:
  mov    0x8(%rsp),%eax
  movl   $0x0,0xc(%rsp)
  lea    0x1(%rax),%ebp
  cmp    %r12d,%ebp
  jge    L116
  lea    0xc(%rsp),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  movl   $0x0,0x10(%rsp)
  lea    -0x1(%rax),%r14d
  cmp    %r14d,%ebp
  jl     L53
L45:
  mov    0xc(%rsp),%eax
  movl   $0x0,0x10(%rsp)
  lea    0x1(%rax),%ebp
  cmp    %ebp,%r12d
  jle    L116
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  movl   $0x0,0x14(%rsp)
  lea    -0x1(%rax),%r14d
  cmp    %r14d,%ebp
  jge    L73
  lea    0x14(%rsp),%rcx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  mov    %ebp,%esi
  mov    %r13,%rdi
  lea    -0x1(%rax),%edx
  call   <quicksort>
  mov    0x14(%rsp),%eax
  mov    %r14d,%edx
  mov    %r13,%rdi
  lea    0x1(%rax),%esi
  call   <quicksort>
L73:
  mov    0x10(%rsp),%eax
  movl   $0x0,0x14(%rsp)
  lea    0x1(%rax),%ebp
  cmp    %ebp,%r12d
  jle    L116
  lea    0x14(%rsp),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  mov    %ebp,%esi
  mov    %r13,%rdi
  lea    -0x1(%rax),%edx
  call   <quicksort>
  mov    0x14(%rsp),%eax
  mov    %r12d,%edx
  mov    %r13,%rdi
  lea    0x1(%rax),%esi
  call   <quicksort>
  jmp    L116
  nopl   0x0(%rax,%rax,1)
L53:
  lea    0x10(%rsp),%rcx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  movl   $0x0,0x14(%rsp)
  lea    -0x1(%rax),%r15d
  cmp    %r15d,%ebp
  jge    L137
  lea    0x14(%rsp),%rcx
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  mov    %ebp,%esi
  mov    %r13,%rdi
  lea    -0x1(%rax),%edx
  call   <quicksort>
  mov    0x14(%rsp),%eax
  mov    %r15d,%edx
  mov    %r13,%rdi
  lea    0x1(%rax),%esi
  call   <quicksort>
L137:
  mov    0x10(%rsp),%eax
  movl   $0x0,0x14(%rsp)
  lea    0x1(%rax),%ebp
  cmp    %ebp,%r14d
  jle    L45
  lea    0x14(%rsp),%rcx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  mov    %ebp,%esi
  mov    %r13,%rdi
  lea    -0x1(%rax),%edx
  call   <quicksort>
  mov    0x14(%rsp),%eax
  mov    %r14d,%edx
  mov    %r13,%rdi
  lea    0x1(%rax),%esi
  call   <quicksort>
  jmp    L45
  nopw   0x0(%rax,%rax,1)
L32:
  lea    0x10(%rsp),%rcx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  movl   $0x0,0x14(%rsp)
  lea    -0x1(%rax),%r15d
  cmp    %r15d,%ebp
  jge    L189
  lea    0x14(%rsp),%rcx
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  mov    %ebp,%esi
  mov    %r13,%rdi
  lea    -0x1(%rax),%edx
  call   <quicksort>
  mov    0x14(%rsp),%eax
  mov    %r15d,%edx
  mov    %r13,%rdi
  lea    0x1(%rax),%esi
  call   <quicksort>
L189:
  mov    0x10(%rsp),%eax
  movl   $0x0,0x14(%rsp)
  lea    0x1(%rax),%ebp
  cmp    %ebp,%r14d
  jle    L145
  lea    0x14(%rsp),%rcx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  mov    %ebp,%esi
  mov    %r13,%rdi
  lea    -0x1(%rax),%edx
  call   <quicksort>
  mov    0x14(%rsp),%eax
  mov    %r14d,%edx
  mov    %r13,%rdi
  lea    0x1(%rax),%esi
  call   <quicksort>
  jmp    L145
  nopw   0x0(%rax,%rax,1)
L42:
  lea    0x10(%rsp),%rcx
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  movl   $0x0,0x14(%rsp)
  lea    -0x1(%rax),%ebx
  cmp    %ebx,%ebp
  jge    L78
  lea    0x14(%rsp),%rcx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  mov    %ebp,%esi
  mov    %r13,%rdi
  lea    -0x1(%rax),%edx
  call   <quicksort>
  mov    0x14(%rsp),%eax
  mov    %ebx,%edx
  mov    %r13,%rdi
  lea    0x1(%rax),%esi
  call   <quicksort>
L78:
  mov    0x10(%rsp),%eax
  movl   $0x0,0x14(%rsp)
  lea    0x1(%rax),%ebp
  cmp    %ebp,%r15d
  jle    L124
  lea    0x14(%rsp),%rcx
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <partition@plt>
  mov    %ebp,%esi
  mov    %r13,%rdi
  lea    -0x1(%rax),%edx
  call   <quicksort>
  mov    0x14(%rsp),%eax
  mov    %r15d,%edx
  mov    %r13,%rdi
  lea    0x1(%rax),%esi
  call   <quicksort>
  jmp    L124
L64:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void quicksort(int ar[], int l, int r) {
  int m = 0, n = 0;
  if (l >= r) {
    return;
  }
  m = partition(ar, l, r, &n);
  quicksort(ar, l, m - 1);
  quicksort(ar, n + 1, r);
}
```