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

```asm
<sort>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %esi,0x34(%rsp)
  mov    %edx,0x38(%rsp)
L208:
  mov    0x34(%rsp),%ebx
  mov    0x38(%rsp),%edx
  mov    %r15,%rdi
  mov    %ebx,%esi
  mov    %ebx,0x2c(%rsp)
  call   <partition@plt>
  mov    %eax,0x34(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x30(%rsp)
  cmp    %ebx,%eax
  jg     L66
L7:
  mov    0x34(%rsp),%ecx
  cmp    %ecx,0x38(%rsp)
  jg     L208
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L66:
  mov    0x2c(%rsp),%ebx
  mov    0x30(%rsp),%edx
  mov    %r15,%rdi
  mov    %ebx,%esi
  mov    %ebx,0x20(%rsp)
  call   <partition@plt>
  mov    %eax,0x2c(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x28(%rsp)
  cmp    %eax,%ebx
  jl     L143
L52:
  mov    0x2c(%rsp),%ecx
  cmp    %ecx,0x30(%rsp)
  jg     L66
  jmp    L7
  nopl   0x0(%rax)
L143:
  mov    0x20(%rsp),%ebx
  mov    0x28(%rsp),%edx
  mov    %r15,%rdi
  mov    %ebx,%esi
  mov    %ebx,0x18(%rsp)
  call   <partition@plt>
  mov    %eax,0x20(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x1c(%rsp)
  cmp    %eax,%ebx
  jl     L246
L109:
  mov    0x20(%rsp),%ecx
  cmp    %ecx,0x28(%rsp)
  jg     L143
  jmp    L52
  nopl   0x0(%rax)
L246:
  mov    0x18(%rsp),%ebx
  mov    0x1c(%rsp),%edx
  mov    %r15,%rdi
  mov    %ebx,%esi
  mov    %ebx,0x10(%rsp)
  call   <partition@plt>
  mov    %eax,0x18(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x14(%rsp)
  cmp    %eax,%ebx
  jl     L23
L102:
  mov    0x18(%rsp),%ecx
  cmp    %ecx,0x1c(%rsp)
  jg     L246
  jmp    L109
  nopl   0x0(%rax)
L23:
  mov    0x10(%rsp),%ebx
  mov    0x14(%rsp),%edx
  mov    %r15,%rdi
  mov    %ebx,%esi
  mov    %ebx,0x8(%rsp)
  call   <partition@plt>
  mov    %eax,0x10(%rsp)
  sub    $0x1,%eax
  mov    %eax,0xc(%rsp)
  cmp    %eax,%ebx
  jl     L136
L230:
  mov    0x10(%rsp),%ecx
  cmp    %ecx,0x14(%rsp)
  jg     L23
  jmp    L102
  nopl   0x0(%rax)
L136:
  mov    0x8(%rsp),%ebx
  mov    0xc(%rsp),%edx
  mov    %r15,%rdi
  mov    %ebx,%esi
  call   <partition@plt>
  mov    %eax,0x8(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %eax,%ebx
  jl     L254
L262:
  mov    0x8(%rsp),%ecx
  cmp    %ecx,0xc(%rsp)
  jg     L136
  jmp    L230
  nopl   (%rax)
L254:
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r15,%rdi
  mov    %ebx,%r14d
  call   <partition@plt>
  lea    -0x1(%rax),%r12d
  mov    %eax,%ebx
  cmp    %r12d,%r14d
  jl     L124
L163:
  cmp    %ebx,0x4(%rsp)
  jg     L254
  jmp    L262
  nopl   0x0(%rax)
L124:
  mov    %eax,0x24(%rsp)
L239:
  mov    %r14d,%esi
  mov    %r12d,%edx
  mov    %r15,%rdi
  mov    %r14d,%ebp
  call   <partition@plt>
  lea    -0x1(%rax),%r13d
  mov    %eax,%r14d
  cmp    %r13d,%ebp
  jl     L91
L188:
  cmp    %r14d,%r12d
  jg     L239
  mov    0x24(%rsp),%ebx
  jmp    L163
  nopl   0x0(%rax)
L91:
  mov    %r13d,%ebx
  mov    %ebp,%eax
L29:
  mov    %ebx,%edx
  mov    %eax,%esi
  mov    %r15,%rdi
  mov    %eax,%r13d
  call   <partition@plt>
  lea    -0x1(%rax),%edx
  cmp    %edx,%r13d
  jl     L57
L236:
  cmp    %eax,%ebx
  jg     L29
  jmp    L188
  nopw   0x0(%rax,%rax,1)
L57:
  mov    %r13d,%esi
  mov    %r15,%rdi
  mov    %eax,0x3c(%rsp)
  call   <sort>
  mov    0x3c(%rsp),%eax
  jmp    L236
```

assistant: ```c
void sort(int *nums, int l, int r) {
  int i = partition(nums, l, r);
  if (l < i - 1)
    sort(nums, l, i - 1);
  if (r > i)
    sort(nums, i, r);
}
```