user: What is the c source code of the assembly code below?

```asm
<partition>:
  endbr64
  push   %r15
  push   %r14
  mov    %esi,%r14d
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %r8d,%ebp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x20(%rsp)
  mov    %esi,%edi
  mov    %esi,0x28(%rsp)
  call   <malloc@plt>
  mov    %r14d,%ecx
  imul   %r13d,%ecx
  mov    %rax,%rbx
  movslq %ecx,%rcx
  test   %r14d,%r14d
  jle    L160
  mov    0x20(%rsp),%r10
  mov    0x28(%rsp),%r9d
  mov    %rbx,%rdx
  lea    0x1(%r10,%rcx,1),%rdi
  mov    %r9d,%esi
  lea    -0x1(%r9),%eax
  sub    %rdi,%rdx
  cmp    $0xe,%rdx
  jbe    L38
  cmp    $0x6,%eax
  jbe    L38
  cmp    $0xe,%eax
  jbe    L4
  mov    %r9d,%edx
  lea    (%r10,%rcx,1),%r15
  xor    %eax,%eax
  shr    $0x4,%edx
  shl    $0x4,%rdx
  nopl   0x0(%rax)
L214:
  movdqu (%r15,%rax,1),%xmm0
  movups %xmm0,(%rbx,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L214
  mov    0x28(%rsp),%edi
  mov    %edi,%edx
  and    $0xfffffff0,%edx
  mov    %edx,%eax
  cmp    %edx,%edi
  je     L74
  mov    %edi,%esi
  sub    %edx,%esi
  lea    -0x1(%rsi),%edi
  cmp    $0x6,%edi
  jbe    L127
L138:
  mov    (%r15,%rdx,1),%rdi
  mov    %rdi,(%rbx,%rdx,1)
  mov    %esi,%edx
  and    $0xfffffff8,%edx
  add    %edx,%eax
  cmp    %edx,%esi
  je     L74
L127:
  mov    0x20(%rsp),%r11
  movslq %eax,%rdx
  mov    0x28(%rsp),%edi
  lea    (%r11,%rdx,1),%rsi
  movzbl (%rsi,%rcx,1),%esi
  mov    %sil,(%rbx,%rdx,1)
  lea    0x1(%rax),%edx
  cmp    %edi,%edx
  jge    L74
  movslq %edx,%rdx
  lea    (%r11,%rdx,1),%rsi
  movzbl (%rsi,%rcx,1),%ecx
  mov    %cl,(%rbx,%rdx,1)
  lea    0x2(%rax),%edx
  cmp    %edx,%edi
  jle    L74
  movslq %edx,%rdx
  movzbl (%r15,%rdx,1),%ecx
  mov    %cl,(%rbx,%rdx,1)
  lea    0x3(%rax),%edx
  cmp    %edx,%edi
  jle    L74
  movslq %edx,%rdx
  movzbl (%r15,%rdx,1),%ecx
  mov    %cl,(%rbx,%rdx,1)
  lea    0x4(%rax),%edx
  cmp    %edx,%edi
  jle    L74
  movslq %edx,%rdx
  movzbl (%r15,%rdx,1),%ecx
  mov    %cl,(%rbx,%rdx,1)
  lea    0x5(%rax),%edx
  cmp    %edx,%edi
  jle    L74
  movslq %edx,%rdx
  add    $0x6,%eax
  movzbl (%r15,%rdx,1),%ecx
  mov    %cl,(%rbx,%rdx,1)
  cmp    %eax,%edi
  jle    L74
  cltq
  movzbl (%r15,%rax,1),%edx
  mov    %dl,(%rbx,%rax,1)
L74:
  movslq 0x28(%rsp),%rcx
  lea    -0x1(%r13),%eax
  mov    %r15,0x8(%rsp)
  add    $0x1,%ebp
  mov    %eax,0x14(%rsp)
  mov    %rcx,%rax
  mov    %rcx,0x18(%rsp)
  neg    %eax
  mov    %eax,0x2c(%rsp)
  nopw   0x0(%rax,%rax,1)
L86:
  addl   $0x1,0x14(%rsp)
  mov    0x8(%rsp),%rdi
  mov    %rbx,%rsi
  call   *%r12
  test   %eax,%eax
  js     L108
  mov    0x28(%rsp),%edx
  lea    -0x1(%rbp),%r15d
  movslq 0x2c(%rsp),%rax
  imul   %r15d,%edx
  mov    %rax,(%rsp)
  mov    0x20(%rsp),%rax
  movslq %edx,%rdx
  lea    (%rax,%rdx,1),%r13
  jmp    L64
  nop
L128:
  sub    $0x1,%r15d
L64:
  mov    %r13,%rdi
  mov    %rbx,%rsi
  mov    %r13,%r14
  mov    %r15d,%ebp
  call   *%r12
  add    (%rsp),%r13
  test   %eax,%eax
  jg     L128
  cmp    %r15d,0x14(%rsp)
  jge    L141
  mov    0x28(%rsp),%edx
  mov    0x8(%rsp),%rdi
  mov    %r14,%rsi
  call   <swap@plt>
L108:
  mov    0x18(%rsp),%rcx
  add    %rcx,0x8(%rsp)
  jmp    L86
  nop
L141:
  add    $0x38,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L38:
  mov    0x20(%rsp),%rdx
  mov    0x28(%rsp),%esi
  xor    %eax,%eax
  lea    (%rdx,%rcx,1),%r15
  nopl   0x0(%rax)
L217:
  movzbl (%r15,%rax,1),%edx
  mov    %dl,(%rbx,%rax,1)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L217
  jmp    L74
L160:
  mov    0x20(%rsp),%rax
  lea    (%rax,%rcx,1),%r15
  jmp    L74
L4:
  xor    %edx,%edx
  xor    %eax,%eax
  lea    (%r10,%rcx,1),%r15
  jmp    L138
```

assistant: ```c
int partition(void *base, int size, int (*compare)(const void *, const void *), int low, int high) {
  void *pivot = malloc(size);
  int i;
  for (i = 0; i < size; i++)
    *((char *)pivot + i) = *((char *)base + low * size + i);
  low--;
  high++;
  while (1) {
    do {
      low++;
    } while (compare(((char *)base) + low * size, pivot) < 0);
    do {
      high--;
    } while (compare(((char *)base) + high * size, pivot) > 0);
    if (low < high) {
      swap(((char *)base) + low * size, ((char *)base) + high * size, size);
    } else
      return high;
  }
  free(pivot);
}
```