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

```asm
<qsort>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x48,%rsp
  mov    %edx,0x38(%rsp)
  mov    0x38(%rsp),%edx
  mov    %esi,0x24(%rsp)
  cmp    %edx,%ebx
  jge    L199
L187:
  mov    %ebx,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  mov    %eax,0x34(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x30(%rsp)
  cmp    %ebx,%eax
  jg     L17
L191:
  mov    0x34(%rsp),%ecx
  cmp    %ecx,0x38(%rsp)
  jle    L199
  mov    0x38(%rsp),%edx
  mov    %ecx,%ebx
  mov    %ecx,0x24(%rsp)
  cmp    %edx,%ebx
  jl     L187
L199:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L17:
  mov    0x24(%rsp),%ebx
  mov    0x30(%rsp),%edx
  mov    %r15,%rdi
  mov    %ebx,%esi
  mov    %ebx,0x20(%rsp)
  call   <partition@plt>
  mov    %eax,0x24(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x28(%rsp)
  cmp    %ebx,%eax
  jg     L11
L8:
  mov    0x24(%rsp),%ecx
  cmp    %ecx,0x30(%rsp)
  jg     L17
  jmp    L191
  nopl   0x0(%rax)
L269:
  mov    0x20(%rsp),%ecx
  cmp    %ecx,0x28(%rsp)
  jle    L8
L11:
  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    %ebx,%eax
  jle    L269
  jmp    L142
  nopl   0x0(%rax)
L194:
  mov    0x18(%rsp),%ecx
  cmp    %ecx,0x1c(%rsp)
  jle    L269
L142:
  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    %ebx,%eax
  jle    L194
  jmp    L7
  nopl   0x0(%rax)
L16:
  mov    0x10(%rsp),%ecx
  cmp    %ecx,0x14(%rsp)
  jle    L194
L7:
  mov    0x10(%rsp),%ebp
  mov    0x14(%rsp),%edx
  mov    %r15,%rdi
  mov    %ebp,%esi
  call   <partition@plt>
  mov    %eax,0x10(%rsp)
  sub    $0x1,%eax
  mov    %eax,0xc(%rsp)
  cmp    %ebp,%eax
  jle    L16
  mov    %ebp,0x8(%rsp)
  jmp    L67
  nopl   0x0(%rax)
L227:
  mov    0x8(%rsp),%ecx
  cmp    %ecx,0xc(%rsp)
  jle    L16
L67:
  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    %ebx,%eax
  jle    L227
  jmp    L33
  nopl   (%rax)
L69:
  mov    0x2c(%rsp),%ebx
  nopl   0x0(%rax)
L82:
  cmp    %ebx,0x4(%rsp)
  jle    L227
L33:
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r15,%rdi
  mov    %ebx,%r14d
  call   <partition@plt>
  lea    -0x1(%rax),%r12d
  mov    %eax,%ebx
  cmp    %r14d,%r12d
  jle    L82
  mov    %eax,0x2c(%rsp)
  jmp    L36
L153:
  cmp    %r14d,%r12d
  jle    L69
L36:
  mov    %r14d,%esi
  mov    %r12d,%edx
  mov    %r15,%rdi
  mov    %r14d,%ebp
  call   <partition@plt>
  lea    -0x1(%rax),%r13d
  mov    %eax,%r14d
  cmp    %ebp,%r13d
  jle    L153
  mov    %r13d,%ebx
  mov    %ebp,%eax
  jmp    L27
  nopl   0x0(%rax)
L83:
  cmp    %eax,%ebx
  jle    L153
L27:
  mov    %ebx,%edx
  mov    %eax,%esi
  mov    %r15,%rdi
  mov    %eax,%r13d
  call   <partition@plt>
  lea    -0x1(%rax),%edx
  cmp    %r13d,%edx
  jle    L83
  mov    %r13d,%esi
  mov    %r15,%rdi
  mov    %eax,0x3c(%rsp)
  call   <qsort>
  mov    0x3c(%rsp),%eax
  jmp    L83
```

assistant: ```c
void qsort(char a[], int l, int r) {
  int m;
  if (l < r) {
    m = partition(a, l, r);
    if (l < m - 1)
      qsort(a, l, m - 1);
    if (m < r)
      qsort(a, m, r);
  }
}
```