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

```asm
<qksort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %esi,0x28(%rsp)
  mov    %r8d,0x24(%rsp)
  cmp    %r8d,%ecx
  jge    L231
  mov    %r9,%rbx
  mov    %edx,%r12d
  mov    %rdi,%rbp
  mov    %ecx,%r13d
L72:
  mov    0x24(%rsp),%ecx
  mov    %rbx,%r8
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0xc(%rsp)
  test   %eax,%eax
  js     L277
  cmp    %r13d,0xc(%rsp)
  jle    L91
L205:
  mov    0xc(%rsp),%ecx
  mov    %rbx,%r8
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x10(%rsp)
  test   %eax,%eax
  js     L277
  cmp    %r13d,0x10(%rsp)
  jle    L49
L279:
  mov    0x10(%rsp),%ecx
  mov    %rbx,%r8
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x14(%rsp)
  test   %eax,%eax
  js     L277
  cmp    %r13d,0x14(%rsp)
  jle    L264
L200:
  mov    0x14(%rsp),%ecx
  mov    %rbx,%r8
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x18(%rsp)
  test   %eax,%eax
  js     L277
  cmp    %r13d,0x18(%rsp)
  jle    L137
  mov    %rbx,%rax
  mov    %r12d,%ebx
  mov    %rbp,%r12
  mov    %rax,%rbp
L120:
  mov    0x18(%rsp),%ecx
  mov    %rbp,%r8
  mov    %r13d,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <partition@plt>
  mov    %eax,%r14d
  test   %eax,%eax
  js     L277
  cmp    %r13d,%eax
  jle    L217
  mov    %r14d,0x1c(%rsp)
  mov    %ebx,%r14d
  mov    %rbp,%rbx
L56:
  mov    0x1c(%rsp),%ecx
  mov    %rbx,%r8
  mov    %r13d,%edx
  mov    %r14d,%esi
  mov    %r12,%rdi
  call   <partition@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  js     L277
  cmp    %r13d,%eax
  jle    L278
  mov    %r14d,%eax
  mov    %r15d,0x20(%rsp)
  mov    %r12,%r14
  mov    %rbx,%r15
  mov    %eax,%r12d
L37:
  mov    0x20(%rsp),%ecx
  mov    %r15,%r8
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %r14,%rdi
  call   <partition@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  js     L277
  cmp    %r13d,%eax
  jle    L166
  mov    %r15,%rax
  mov    %r12d,%r15d
  mov    %ebp,%r12d
  mov    %rax,%rbp
L61:
  mov    %rbp,%r8
  mov    %r12d,%ecx
  mov    %r13d,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <partition@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  js     L277
  cmp    %r13d,%eax
  jle    L31
  mov    %r12d,0x2c(%rsp)
  mov    %rbp,%r12
  mov    %eax,%ebp
L203:
  mov    %r12,%r8
  mov    %ebp,%ecx
  mov    %r13d,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <partition@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  js     L277
  mov    0x28(%rsp),%esi
  mov    %r12,%r9
  mov    %eax,%r8d
  mov    %r13d,%ecx
  mov    %r15d,%edx
  mov    %r14,%rdi
  call   <qksort>
  test   %eax,%eax
  js     L277
  lea    0x1(%rbx),%r13d
  cmp    %r13d,%ebp
  jg     L203
  mov    %ebp,%ebx
  mov    %r12,%rbp
  mov    0x2c(%rsp),%r12d
L31:
  lea    0x1(%rbx),%r13d
  cmp    %r13d,%r12d
  jg     L61
  mov    %rbp,%rax
  mov    %r12d,%ebp
  mov    %r15d,%r12d
  mov    %rax,%r15
L166:
  lea    0x1(%rbp),%r13d
  cmp    %r13d,0x20(%rsp)
  jg     L37
  mov    %r12d,%eax
  mov    %r15,%rbx
  mov    0x20(%rsp),%r15d
  mov    %r14,%r12
  mov    %eax,%r14d
L278:
  lea    0x1(%r15),%r13d
  cmp    %r13d,0x1c(%rsp)
  jg     L56
  mov    %rbx,%rbp
  mov    %r14d,%ebx
  mov    0x1c(%rsp),%r14d
L217:
  lea    0x1(%r14),%r13d
  cmp    %r13d,0x18(%rsp)
  jg     L120
  mov    %rbp,%rax
  mov    %r12,%rbp
  mov    %ebx,%r12d
  mov    %rax,%rbx
L137:
  mov    0x18(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x14(%rsp)
  jg     L200
L264:
  mov    0x14(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x10(%rsp)
  jg     L279
L49:
  mov    0x10(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0xc(%rsp)
  jg     L205
L91:
  mov    0xc(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x24(%rsp)
  jg     L72
L231:
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L277:
  add    $0x38,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int qksort(void *data, int size, int esize, int i, int k, int (*compare)(const void *, const void *)) {
  int j;
  while (i < k) {
    if ((j = partition(data, esize, i, k, compare)) < 0)
      return -1;
    if (qksort(data, size, esize, i, j, compare) < 0)
      return -1;
    i = j + 1;
  }
  return 0;
}
```