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

```asm
<_qsort>:
  endbr64
  push   %r15
  mov    %esi,%r15d
  push   %r14
  push   %r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edx,0x34(%rsp)
L2:
  mov    0x34(%rsp),%ebx
  mov    %r12,%rcx
  mov    %r15d,%esi
  mov    %rbp,%rdi
  mov    %ebx,%edx
  call   <find_pivot@plt>
  mov    %eax,%ecx
  cmp    $0xffffffff,%eax
  je     L39
  mov    %r12,%r8
  mov    %ebx,%edx
  mov    %r15d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x18(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x14(%rsp)
L163:
  mov    0x14(%rsp),%ebx
  mov    %r12,%rcx
  mov    %r15d,%esi
  mov    %rbp,%rdi
  mov    %ebx,%edx
  call   <find_pivot@plt>
  mov    %eax,%ecx
  cmp    $0xffffffff,%eax
  je     L11
  mov    %r12,%r8
  mov    %ebx,%edx
  mov    %r15d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %eax,0x1c(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x20(%rsp)
L166:
  mov    0x20(%rsp),%ebx
  mov    %r12,%rcx
  mov    %r15d,%esi
  mov    %rbp,%rdi
  mov    %ebx,%edx
  call   <find_pivot@plt>
  mov    %eax,%ecx
  cmp    $0xffffffff,%eax
  je     L125
  mov    %r15d,%esi
  mov    %rbp,%rdi
  mov    %r12,%r8
  mov    %ebx,%edx
  call   <partition@plt>
  mov    %r12,%r14
  mov    %eax,0x24(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x28(%rsp)
  mov    %r15d,%eax
  mov    %rbp,%r15
  mov    %eax,%ebp
L110:
  mov    0x28(%rsp),%ebx
  mov    %r14,%rcx
  mov    %ebp,%esi
  mov    %r15,%rdi
  mov    %ebx,%edx
  call   <find_pivot@plt>
  mov    %eax,%ecx
  cmp    $0xffffffff,%eax
  je     L109
  mov    %ebp,%esi
  mov    %r14,%r8
  mov    %ebx,%edx
  mov    %r15,%rdi
  call   <partition@plt>
  mov    %ebp,%r13d
  mov    %eax,0x2c(%rsp)
  lea    -0x1(%rax),%r12d
  mov    %r12d,%ebp
L76:
  mov    %r14,%rcx
  mov    %ebp,%edx
  mov    %r13d,%esi
  mov    %r15,%rdi
  call   <find_pivot@plt>
  mov    %eax,%ecx
  cmp    $0xffffffff,%eax
  je     L94
  mov    %r14,%r8
  mov    %ebp,%edx
  mov    %r15,%rdi
  mov    %r13d,%esi
  call   <partition@plt>
  mov    %eax,%ebx
  lea    -0x1(%rax),%eax
  mov    %eax,0x4(%rsp)
  mov    %r14,%rax
  mov    %ebp,%r14d
  mov    %r15,%rbp
  mov    %ebx,%r15d
  mov    %rax,%rbx
L58:
  mov    0x4(%rsp),%r12d
  mov    %rbx,%rcx
  mov    %r13d,%esi
  mov    %rbp,%rdi
  mov    %r12d,%edx
  call   <find_pivot@plt>
  mov    %eax,%ecx
  cmp    $0xffffffff,%eax
  je     L16
  mov    %rbx,%r8
  mov    %r12d,%edx
  mov    %r13d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %r14d,0x10(%rsp)
  mov    %r13d,%r14d
  mov    %eax,0x8(%rsp)
  sub    $0x1,%eax
  mov    %eax,0xc(%rsp)
L139:
  mov    0xc(%rsp),%r12d
  mov    %rbx,%rcx
  mov    %r14d,%esi
  mov    %rbp,%rdi
  mov    %r12d,%edx
  call   <find_pivot@plt>
  mov    %eax,%ecx
  cmp    $0xffffffff,%eax
  je     L93
  mov    %rbx,%r8
  mov    %r12d,%edx
  mov    %r14d,%esi
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %r15d,0x38(%rsp)
  mov    %eax,0x30(%rsp)
  lea    -0x1(%rax),%r13d
L19:
  mov    %rbx,%rcx
  mov    %r13d,%edx
  mov    %r14d,%esi
  mov    %rbp,%rdi
  call   <find_pivot@plt>
  mov    %eax,%ecx
  cmp    $0xffffffff,%eax
  je     L149
  mov    %rbx,%r8
  mov    %r14d,%esi
  mov    %r13d,%edx
  mov    %rbp,%rdi
  call   <partition@plt>
  lea    -0x1(%rax),%r15d
  mov    %eax,%r12d
  mov    %rbx,%rax
  mov    %r15d,%ebx
  mov    %r14d,%r15d
  mov    %rax,%r14
L98:
  mov    %r14,%rcx
  mov    %ebx,%edx
  mov    %r15d,%esi
  mov    %rbp,%rdi
  call   <find_pivot@plt>
  mov    %eax,%ecx
  cmp    $0xffffffff,%eax
  je     L160
  mov    %r15d,%esi
  mov    %r14,%r8
  mov    %ebx,%edx
  mov    %rbp,%rdi
  call   <partition@plt>
  mov    %r15d,%esi
  mov    %r14,%rcx
  mov    %rbp,%rdi
  lea    -0x1(%rax),%edx
  mov    %eax,0x3c(%rsp)
  call   <_qsort>
  mov    0x3c(%rsp),%r15d
  jmp    L98
L16:
  mov    %rbx,%rax
  mov    %r15d,%ebx
  mov    %rbp,%r15
  mov    %r14d,%ebp
  mov    %ebx,%r13d
  mov    %rax,%r14
  jmp    L76
  nopl   0x0(%rax)
L160:
  mov    %r14,%rbx
  mov    %r12d,%r14d
  jmp    L19
  nopl   0x0(%rax,%rax,1)
L93:
  mov    0x10(%rsp),%r14d
  mov    0x8(%rsp),%r13d
  jmp    L58
L94:
  mov    0x2c(%rsp),%ebp
  jmp    L110
L149:
  mov    0x38(%rsp),%r15d
  mov    0x30(%rsp),%r14d
  jmp    L139
L109:
  mov    %r15,%rbp
  mov    %r14,%r12
  mov    0x24(%rsp),%r15d
  jmp    L166
L125:
  mov    0x1c(%rsp),%r15d
  jmp    L163
L39:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L11:
  mov    0x18(%rsp),%r15d
  jmp    L2
```

assistant: ```c
void _qsort(void *base, int i, int j, size_t size) {
  int pivot_index, mid;
  pivot_index = find_pivot(base, i, j, size);
  if (pivot_index == -1)
    return;
  mid = partition(base, i, j, pivot_index, size);
  _qsort(base, i, mid - 1, size);
  _qsort(base, mid, j, size);
}
```