user: Translate the below assembly code into C programming language:

```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)
L123:
  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     L269
L51:
  mov    0x34(%rsp),%ecx
  cmp    %ecx,0x38(%rsp)
  jg     L123
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L269:
  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     L194
L46:
  mov    0x2c(%rsp),%ecx
  cmp    %ecx,0x30(%rsp)
  jg     L269
  jmp    L51
  nopl   0x0(%rax)
L194:
  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     L199
L152:
  mov    0x20(%rsp),%ecx
  cmp    %ecx,0x28(%rsp)
  jg     L194
  jmp    L46
  nopl   0x0(%rax)
L199:
  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     L118
L81:
  mov    0x18(%rsp),%ecx
  cmp    %ecx,0x1c(%rsp)
  jg     L199
  jmp    L152
  nopl   0x0(%rax)
L118:
  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     L254
L261:
  mov    0x10(%rsp),%ecx
  cmp    %ecx,0x14(%rsp)
  jg     L118
  jmp    L81
  nopl   0x0(%rax)
L254:
  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     L36
L234:
  mov    0x8(%rsp),%ecx
  cmp    %ecx,0xc(%rsp)
  jg     L254
  jmp    L261
  nopl   (%rax)
L36:
  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
L3:
  cmp    %ebx,0x4(%rsp)
  jg     L36
  jmp    L234
  nopl   0x0(%rax)
L124:
  mov    %eax,0x24(%rsp)
L92:
  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     L60
L252:
  cmp    %r14d,%r12d
  jg     L92
  mov    0x24(%rsp),%ebx
  jmp    L3
  nopl   0x0(%rax)
L60:
  mov    %r13d,%ebx
  mov    %ebp,%eax
L84:
  mov    %ebx,%edx
  mov    %eax,%esi
  mov    %r15,%rdi
  mov    %eax,%r13d
  call   <partition@plt>
  lea    -0x1(%rax),%edx
  cmp    %edx,%r13d
  jl     L4
L244:
  cmp    %eax,%ebx
  jg     L84
  jmp    L252
  nopw   0x0(%rax,%rax,1)
L4:
  mov    %r13d,%esi
  mov    %r15,%rdi
  mov    %eax,0x3c(%rsp)
  call   <sort>
  mov    0x3c(%rsp),%eax
  jmp    L244
```

assistant: ```c
void sort(char string[], int left, int right) {
  int index = partition(string, left, right);
  if (left < index - 1) {
    sort(string, left, index - 1);
  }
  if (right > index) {
    sort(string, index, right);
  }
}
```