user: Converte this assembly snippet into its equivalent C code:

```asm
<QuickSort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %ecx,0x38(%rsp)
  cmp    %edx,%ecx
  je     L413
  mov    %esi,%r14d
  mov    %rdi,%r15
  mov    %edx,%r12d
L104:
  mov    0x38(%rsp),%ecx
  mov    %r12d,%edx
  mov    %r14d,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  mov    %eax,0x34(%rsp)
  cmp    %r12d,%eax
  jg     L285
L117:
  mov    0x38(%rsp),%edi
  mov    0x34(%rsp),%eax
  cmp    %eax,%edi
  jle    L413
  mov    %eax,%r12d
  add    $0x1,%r12d
  cmp    %edi,%r12d
  jne    L104
L413:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L285:
  sub    $0x1,%eax
  mov    %eax,0x30(%rsp)
  cmp    %r12d,%eax
  je     L117
  mov    %r12d,%r13d
  mov    %r14d,%r12d
L241:
  mov    0x30(%rsp),%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  mov    %eax,0x2c(%rsp)
  cmp    %r13d,%eax
  jg     L31
L430:
  mov    0x30(%rsp),%ecx
  mov    0x2c(%rsp),%eax
  cmp    %eax,%ecx
  jle    L435
  add    $0x1,%eax
  mov    %eax,%r13d
  cmp    %eax,%ecx
  jne    L241
L435:
  mov    %r12d,%r14d
  jmp    L117
L31:
  sub    $0x1,%eax
  mov    %eax,0x28(%rsp)
  cmp    %r13d,%eax
  je     L430
  mov    %r13d,%eax
  mov    %r12d,%r13d
  mov    %eax,%r12d
L373:
  mov    0x28(%rsp),%ecx
  mov    %r12d,%edx
  mov    %r13d,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  mov    %eax,0x24(%rsp)
  cmp    %r12d,%eax
  jg     L307
L198:
  mov    0x28(%rsp),%ecx
  mov    0x24(%rsp),%eax
  cmp    %eax,%ecx
  jle    L114
  add    $0x1,%eax
  mov    %eax,%r12d
  cmp    %eax,%ecx
  jne    L373
L114:
  mov    %r13d,%r12d
  jmp    L430
  nopl   0x0(%rax,%rax,1)
L307:
  sub    $0x1,%eax
  mov    %eax,0x20(%rsp)
  cmp    %r12d,%eax
  je     L198
  mov    %r12d,%eax
  mov    %r13d,%r12d
  mov    %eax,%r13d
L440:
  mov    0x20(%rsp),%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  mov    %eax,0x1c(%rsp)
  cmp    %r13d,%eax
  jg     L97
L251:
  mov    0x20(%rsp),%edi
  mov    0x1c(%rsp),%eax
  cmp    %eax,%edi
  jle    L399
  add    $0x1,%eax
  mov    %eax,%r13d
  cmp    %eax,%edi
  jne    L440
L399:
  mov    %r12d,%r13d
  jmp    L198
  nopl   0x0(%rax,%rax,1)
L97:
  sub    $0x1,%eax
  mov    %eax,0x18(%rsp)
  cmp    %r13d,%eax
  je     L251
  mov    %r13d,%r14d
L367:
  mov    0x18(%rsp),%ecx
  mov    %r14d,%edx
  mov    %r12d,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  mov    %eax,0x14(%rsp)
  cmp    %r14d,%eax
  jg     L25
L182:
  mov    0x18(%rsp),%esi
  mov    0x14(%rsp),%eax
  cmp    %eax,%esi
  jle    L251
  add    $0x1,%eax
  mov    %eax,%r14d
  cmp    %eax,%esi
  jne    L367
  jmp    L251
  nopw   0x0(%rax,%rax,1)
L25:
  sub    $0x1,%eax
  mov    %eax,0x10(%rsp)
  cmp    %r14d,%eax
  je     L182
  mov    %r14d,%r13d
L244:
  mov    0x10(%rsp),%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  mov    %eax,0xc(%rsp)
  cmp    %r13d,%eax
  jg     L340
L120:
  mov    0x10(%rsp),%edx
  mov    0xc(%rsp),%eax
  cmp    %eax,%edx
  jle    L182
  add    $0x1,%eax
  mov    %eax,%r13d
  cmp    %eax,%edx
  jne    L244
  jmp    L182
  nopw   0x0(%rax,%rax,1)
L340:
  sub    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %r13d,%eax
  je     L120
L179:
  mov    0x8(%rsp),%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  mov    %eax,0x4(%rsp)
  cmp    %r13d,%eax
  jg     L353
L154:
  mov    0x8(%rsp),%ebx
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebx
  jle    L120
  add    $0x1,%eax
  mov    %eax,%r13d
  cmp    %eax,%ebx
  jne    L179
  jmp    L120
  nop
L353:
  lea    -0x1(%rax),%ebp
  cmp    %r13d,%ebp
  je     L154
L62:
  mov    %ebp,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  mov    %eax,%r14d
  cmp    %r13d,%eax
  jg     L267
L255:
  cmp    %r14d,%ebp
  jle    L154
  lea    0x1(%r14),%r13d
  cmp    %r13d,%ebp
  jne    L62
  jmp    L154
L267:
  lea    -0x1(%rax),%r8d
  cmp    %r13d,%r8d
  je     L255
  mov    %r8d,%ebx
L292:
  mov    %ebx,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %r15,%rdi
  call   <partition@plt>
  cmp    %r13d,%eax
  jg     L218
L389:
  cmp    %eax,%ebx
  jle    L255
  lea    0x1(%rax),%r13d
  cmp    %r13d,%ebx
  jne    L292
  jmp    L255
L218:
  lea    -0x1(%rax),%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %r15,%rdi
  mov    %eax,0x3c(%rsp)
  call   <QuickSort>
  mov    0x3c(%rsp),%eax
  jmp    L389
```

assistant: ```c
void QuickSort(int data[], int length, int start, int end) {
  if (start == end) {
    return;
  }
  int index = partition(data, length, start, end);
  if (index > start) {
    QuickSort(data, length, start, index - 1);
  }
  if (index < end) {
    QuickSort(data, length, index + 1, end);
  }
}
```