user: Demonstrate the C code that generates the assembly output below:

```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)
L15:
  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     L3
L198:
  mov    0x34(%rsp),%ecx
  cmp    %ecx,0x38(%rsp)
  jg     L15
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L3:
  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     L204
L235:
  mov    0x2c(%rsp),%ecx
  cmp    %ecx,0x30(%rsp)
  jg     L3
  jmp    L198
  nopl   0x0(%rax)
L204:
  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     L201
L130:
  mov    0x20(%rsp),%ecx
  cmp    %ecx,0x28(%rsp)
  jg     L204
  jmp    L235
  nopl   0x0(%rax)
L201:
  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     L104
L131:
  mov    0x18(%rsp),%ecx
  cmp    %ecx,0x1c(%rsp)
  jg     L201
  jmp    L130
  nopl   0x0(%rax)
L104:
  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     L239
L79:
  mov    0x10(%rsp),%ecx
  cmp    %ecx,0x14(%rsp)
  jg     L104
  jmp    L131
  nopl   0x0(%rax)
L239:
  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     L225
L30:
  mov    0x8(%rsp),%ecx
  cmp    %ecx,0xc(%rsp)
  jg     L239
  jmp    L79
  nopl   (%rax)
L225:
  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     L267
L192:
  cmp    %ebx,0x4(%rsp)
  jg     L225
  jmp    L30
  nopl   0x0(%rax)
L267:
  mov    %eax,0x24(%rsp)
L262:
  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     L4
L2:
  cmp    %r14d,%r12d
  jg     L262
  mov    0x24(%rsp),%ebx
  jmp    L192
  nopl   0x0(%rax)
L4:
  mov    %r13d,%ebx
  mov    %ebp,%eax
L263:
  mov    %ebx,%edx
  mov    %eax,%esi
  mov    %r15,%rdi
  mov    %eax,%r13d
  call   <partition@plt>
  lea    -0x1(%rax),%edx
  cmp    %edx,%r13d
  jl     L86
L54:
  cmp    %eax,%ebx
  jg     L263
  jmp    L2
  nopw   0x0(%rax,%rax,1)
L86:
  mov    %r13d,%esi
  mov    %r15,%rdi
  mov    %eax,0x3c(%rsp)
  call   <sort>
  mov    0x3c(%rsp),%eax
  jmp    L54
```

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);
}
```