user: What would the C source look like for the assembly code provided here?

```asm
<sort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  cmpl   $0x1,-0x1c(%rbp)
  jle    L14
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <sort>
  mov    -0x1c(%rbp),%eax
  sub    -0x4(%rbp),%eax
  mov    -0x4(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <sort>
  movl   $0x0,-0x10(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L100
L85:
  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
  jge    L29
  mov    -0x10(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x10(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x8(%rbp)
  mov    (%rcx),%edx
  cltq
  lea    0x0(,%rax,4),%rcx
  lea    D6(%rip),%rax
  mov    %edx,(%rcx,%rax,1)
  jmp    L100
L29:
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x8(%rbp)
  mov    (%rcx),%edx
  cltq
  lea    0x0(,%rax,4),%rcx
  lea    D6(%rip),%rax
  mov    %edx,(%rcx,%rax,1)
L100:
  mov    -0x10(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jge    L104
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L85
  jmp    L104
L33:
  mov    -0x10(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x10(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x8(%rbp)
  mov    (%rcx),%edx
  cltq
  lea    0x0(,%rax,4),%rcx
  lea    D6(%rip),%rax
  mov    %edx,(%rcx,%rax,1)
L104:
  mov    -0x10(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L33
  jmp    L25
L107:
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x8(%rbp)
  mov    (%rcx),%edx
  cltq
  lea    0x0(,%rax,4),%rcx
  lea    D6(%rip),%rax
  mov    %edx,(%rcx,%rax,1)
L25:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L107
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  lea    D6(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  jmp    L94
L14:
  nop
L94:
  leave
  ret
```

assistant: ```c
void sort(int *arr, int size) {
  static int tmp[(144 * 1024)];
  int pivot, i, j, k;
  if (size < 2) {
    return;
  }
  pivot = size / 2;
  sort(arr, pivot);
  sort(&arr[pivot], size - pivot);
  i = 0;
  j = pivot;
  k = 0;
  while (i < pivot && j < size) {
    if (arr[i] < arr[j]) {
      tmp[k++] = arr[i++];
    } else {
      tmp[k++] = arr[j++];
    }
  }
  while (i < pivot) {
    tmp[k++] = arr[i++];
  }
  while (j < size) {
    tmp[k++] = arr[j++];
  }
  memcpy(arr, tmp, size * sizeof(int));
}
```