user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<quickSort>:
  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)
L174:
  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     L200
L117:
  mov    0x34(%rsp),%ecx
  cmp    %ecx,0x38(%rsp)
  jg     L174
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L200:
  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     L122
L19:
  mov    0x2c(%rsp),%ecx
  cmp    %ecx,0x30(%rsp)
  jg     L200
  jmp    L117
  nopl   0x0(%rax)
L122:
  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     L60
L51:
  mov    0x20(%rsp),%ecx
  cmp    %ecx,0x28(%rsp)
  jg     L122
  jmp    L19
  nopl   0x0(%rax)
L60:
  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     L236
L154:
  mov    0x18(%rsp),%ecx
  cmp    %ecx,0x1c(%rsp)
  jg     L60
  jmp    L51
  nopl   0x0(%rax)
L236:
  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     L152
L201:
  mov    0x10(%rsp),%ecx
  cmp    %ecx,0x14(%rsp)
  jg     L236
  jmp    L154
  nopl   0x0(%rax)
L152:
  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     L113
L232:
  mov    0x8(%rsp),%ecx
  cmp    %ecx,0xc(%rsp)
  jg     L152
  jmp    L201
  nopl   (%rax)
L113:
  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     L61
L22:
  cmp    %ebx,0x4(%rsp)
  jg     L113
  jmp    L232
  nopl   0x0(%rax)
L61:
  mov    %eax,0x24(%rsp)
L267:
  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     L246
L180:
  cmp    %r14d,%r12d
  jg     L267
  mov    0x24(%rsp),%ebx
  jmp    L22
  nopl   0x0(%rax)
L246:
  mov    %r13d,%ebx
  mov    %ebp,%eax
L4:
  mov    %ebx,%edx
  mov    %eax,%esi
  mov    %r15,%rdi
  mov    %eax,%r13d
  call   <partition@plt>
  lea    -0x1(%rax),%edx
  cmp    %edx,%r13d
  jl     L222
L218:
  cmp    %eax,%ebx
  jg     L4
  jmp    L180
  nopw   0x0(%rax,%rax,1)
L222:
  mov    %r13d,%esi
  mov    %r15,%rdi
  mov    %eax,0x3c(%rsp)
  call   <quickSort>
  mov    0x3c(%rsp),%eax
  jmp    L218
```

assistant: ```c
void quickSort(int a[], int left, int right) {
  int index = partition(a, left, right);
  if (left < index - 1)
    quickSort(a, left, index - 1);
  if (index < right)
    quickSort(a, index, right);
}
```