user: Please show me the C implementation that matches the assembly code listed below:

```asm
<quicks>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8(%rbp)
  jmp    L36
L70:
  addl   $0x1,-0x10(%rbp)
L39:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x8(%rbp)
  jg     L70
  jmp    L101
L64:
  subl   $0x1,-0xc(%rbp)
L101:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x8(%rbp)
  jl     L64
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jge    L47
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L47
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x10(%rbp)
  subl   $0x1,-0xc(%rbp)
L47:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  je     L98
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jne    L36
L98:
  addl   $0x1,-0x10(%rbp)
  subl   $0x1,-0xc(%rbp)
L36:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L39
  mov    -0x10(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x1c(%rbp)
  jge    L27
  mov    -0x10(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x1c(%rbp),%ecx
  mov    -0x18(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <quicks>
L27:
  mov    -0x10(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jge    L78
  mov    -0x20(%rbp),%edx
  mov    -0x10(%rbp),%ecx
  mov    -0x18(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <quicks>
L78:
  nop
  leave
  ret
```

assistant: ```c
void quicks(int n[], int start, int end) {
  int temp;
  int pivo;
  int i;
  int j;
  i = start;
  j = end;
  pivo = n[(start + end) / 2];
  while (i < j) {
    while (n[i] < pivo)
      i++;
    while (pivo < n[j])
      j--;
    if (i < j && n[i] != n[j]) {
      temp = n[i];
      n[i] = n[j];
      n[j] = temp;
      i++;
      j--;
    }
    if (i == j || n[i] == n[j]) {
      i++;
      j--;
    }
  }
  if (start < i - 1)
    quicks(n, start, i - 1);
  if (i < end)
    quicks(n, i, end);
}
```