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    $0x28,%rsp
  mov    %edx,0x18(%rsp)
  cmp    %esi,%edx
  jbe    L97
  mov    %ecx,%r15d
  mov    %esi,%r14d
  mov    %rdi,%r13
  mov    %r8,%r12
L59:
  mov    0x18(%rsp),%edx
  mov    %r12,%r8
  mov    %r15d,%ecx
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <_quicksort_partition@plt>
  mov    %eax,0xc(%rsp)
  cmp    %r14d,%eax
  jbe    L74
L177:
  mov    0xc(%rsp),%edx
  mov    %r12,%r8
  mov    %r15d,%ecx
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <_quicksort_partition@plt>
  mov    %eax,0x10(%rsp)
  cmp    %r14d,%eax
  jbe    L101
L134:
  mov    0x10(%rsp),%edx
  mov    %r12,%r8
  mov    %r15d,%ecx
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <_quicksort_partition@plt>
  mov    %eax,0x14(%rsp)
  cmp    %r14d,%eax
  jbe    L90
L5:
  mov    0x14(%rsp),%edx
  mov    %r12,%r8
  mov    %r15d,%ecx
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <_quicksort_partition@plt>
  mov    %eax,%ebp
  cmp    %r14d,%eax
  jbe    L158
  mov    %r12,%rax
  mov    %ebp,%r12d
  mov    %rax,%rbp
L152:
  mov    %rbp,%r8
  mov    %r15d,%ecx
  mov    %r12d,%edx
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <_quicksort_partition@plt>
  mov    %eax,%ebx
  cmp    %r14d,%eax
  jbe    L141
  mov    %r12d,0x4(%rsp)
  mov    %eax,%r12d
  mov    %r15d,%eax
  mov    %r13,%r15
  mov    %eax,%r13d
L51:
  mov    %rbp,%r8
  mov    %r13d,%ecx
  mov    %r12d,%edx
  mov    %r14d,%esi
  mov    %r15,%rdi
  call   <_quicksort_partition@plt>
  mov    %eax,(%rsp)
  cmp    %eax,%r14d
  jae    L156
  mov    %r12d,0x8(%rsp)
  mov    %rbp,%r12
L115:
  mov    (%rsp),%edx
  mov    %r12,%r8
  mov    %r13d,%ecx
  mov    %r14d,%esi
  mov    %r15,%rdi
  call   <_quicksort_partition@plt>
  mov    %eax,%ebp
  cmp    %r14d,%eax
  jbe    L130
L98:
  mov    %r12,%r8
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %r14d,%esi
  mov    %r15,%rdi
  call   <_quicksort_partition@plt>
  mov    %eax,%ebx
  cmp    %r14d,%eax
  jbe    L104
  mov    %ebp,%r9d
  mov    %r14d,%ebp
L140:
  mov    %ebp,%esi
  mov    %r12,%r8
  mov    %r13d,%ecx
  mov    %ebx,%edx
  mov    %r15,%rdi
  mov    %r9d,0x1c(%rsp)
  call   <_quicksort_partition@plt>
  mov    %ebp,%esi
  mov    %r12,%r8
  mov    %r13d,%ecx
  mov    %eax,%r14d
  mov    %eax,%edx
  mov    %r15,%rdi
  call   <_quicksort>
  lea    0x1(%r14),%ebp
  mov    0x1c(%rsp),%r9d
  cmp    %ebp,%ebx
  ja     L140
  mov    %r9d,%ebp
L104:
  lea    0x1(%rbx),%r14d
  cmp    %r14d,%ebp
  ja     L98
L130:
  lea    0x1(%rbp),%r14d
  cmp    %r14d,(%rsp)
  ja     L115
  mov    %r12,%rbp
  mov    0x8(%rsp),%r12d
L156:
  mov    (%rsp),%r14d
  add    $0x1,%r14d
  cmp    %r14d,%r12d
  ja     L51
  mov    %r13d,%eax
  mov    %r12d,%ebx
  mov    0x4(%rsp),%r12d
  mov    %r15,%r13
  mov    %eax,%r15d
L141:
  lea    0x1(%rbx),%r14d
  cmp    %r14d,%r12d
  ja     L152
  mov    %rbp,%rax
  mov    %r12d,%ebp
  mov    %rax,%r12
L158:
  lea    0x1(%rbp),%r14d
  cmp    %r14d,0x14(%rsp)
  ja     L5
L90:
  mov    0x14(%rsp),%r14d
  add    $0x1,%r14d
  cmp    %r14d,0x10(%rsp)
  ja     L134
L101:
  mov    0x10(%rsp),%r14d
  add    $0x1,%r14d
  cmp    %r14d,0xc(%rsp)
  ja     L177
L74:
  mov    0xc(%rsp),%r14d
  add    $0x1,%r14d
  cmp    0x18(%rsp),%r14d
  jb     L59
L97:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void _quicksort(void *array, unsigned int lo, unsigned int hi, unsigned int el_size, int (*comp)(const void *, const void *)) {
  if (lo >= hi)
    return;
  unsigned int p = _quicksort_partition(array, lo, hi, el_size, comp);
  _quicksort(array, lo, p, el_size, comp);
  _quicksort(array, p + 1, hi, el_size, comp);
}
```