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

```asm
<merge_sort>:
  endbr64
  cmp    $0x1,%esi
  jle    L126
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  sar    %r12d
  mov    %rdi,%rbp
  push   %rbx
  mov    %esi,%ebx
  lea    0x0(,%r12,4),%edi
  mov    %ebx,%r15d
  sub    %r12d,%r15d
  sub    $0x8,%rsp
  call   <malloc@plt>
  lea    0x0(,%r15,4),%edi
  mov    %rax,%r13
  call   <malloc@plt>
  lea    0x4(%rbp),%rdx
  mov    %rax,%r14
  mov    %r13,%rax
  sub    %rdx,%rax
  cmp    $0x8,%rax
  jbe    L99
  lea    -0x1(%r12),%eax
  cmp    $0x2,%eax
  jbe    L99
  mov    %r12d,%edx
  mov    %rbp,%rcx
  mov    %r13,%rax
  shr    $0x2,%edx
  sub    %r13,%rcx
  shl    $0x4,%rdx
  add    %r13,%rdx
  nopl   0x0(%rax)
L133:
  movdqu (%rax,%rcx,1),%xmm0
  add    $0x10,%rax
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L133
  mov    %r12d,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%r12b
  je     L45
  mov    %eax,%ecx
  mov    0x0(%rbp,%rcx,4),%esi
  lea    0x0(,%rcx,4),%rdx
  mov    %esi,0x0(%r13,%rcx,4)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%r12d
  jle    L45
  mov    0x4(%rbp,%rdx,1),%ecx
  add    $0x2,%eax
  mov    %ecx,0x4(%r13,%rdx,1)
  cmp    %eax,%r12d
  jle    L45
  mov    0x8(%rbp,%rdx,1),%eax
  mov    %eax,0x8(%r13,%rdx,1)
L45:
  cmp    %r12d,%ebx
  jle    L141
  lea    0x1(%r12),%ecx
  mov    %r14,%rax
  movslq %ecx,%rcx
  shl    $0x2,%rcx
  lea    0x0(%rbp,%rcx,1),%rdx
  sub    %rdx,%rax
  cmp    $0x8,%rax
  jbe    L74
  lea    -0x1(%r15),%eax
  cmp    $0x2,%eax
  jbe    L74
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %r14,%rax
  shr    $0x2,%edx
  sub    %r14,%rsi
  shl    $0x4,%rdx
  lea    -0x4(%rsi,%rcx,1),%rcx
  add    %r14,%rdx
  nopl   (%rax)
L70:
  movdqu (%rax,%rcx,1),%xmm1
  add    $0x10,%rax
  movups %xmm1,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L70
  mov    %r15d,%edx
  and    $0xfffffffc,%edx
  lea    (%r12,%rdx,1),%eax
  cmp    %edx,%r15d
  je     L141
  movslq %eax,%rcx
  movslq %edx,%rdx
  mov    0x0(%rbp,%rcx,4),%ecx
  mov    %ecx,(%r14,%rdx,4)
  lea    0x1(%rax),%edx
  cmp    %ebx,%edx
  jge    L141
  movslq %edx,%rcx
  sub    %r12d,%edx
  add    $0x2,%eax
  lea    0x0(,%rcx,4),%rsi
  mov    0x0(%rbp,%rcx,4),%ecx
  movslq %edx,%rdx
  mov    %ecx,(%r14,%rdx,4)
  cmp    %eax,%ebx
  jle    L141
  mov    0x4(%rbp,%rsi,1),%edx
  sub    %r12d,%eax
  cltq
  mov    %edx,(%r14,%rax,4)
L141:
  mov    %r12d,%esi
  mov    %r13,%rdi
  call   <merge_sort>
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <merge_sort>
  mov    %r15d,%r8d
  mov    %r14,%rcx
  mov    %r12d,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <merge@plt>
  mov    %r13,%rdi
  call   <free@plt>
  add    $0x8,%rsp
  mov    %r14,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <free@plt>
  nopl   0x0(%rax,%rax,1)
L126:
  ret
  nopl   0x0(%rax)
L99:
  mov    %r12d,%eax
  mov    %rbp,%rcx
  lea    0x0(%r13,%rax,4),%rsi
  sub    %r13,%rcx
  mov    %r13,%rax
  nopl   0x0(%rax)
L124:
  mov    (%rcx,%rax,1),%edx
  add    $0x4,%rax
  mov    %edx,-0x4(%rax)
  cmp    %rsi,%rax
  jne    L124
  jmp    L45
  nopl   0x0(%rax)
L74:
  sub    $0x1,%ebx
  mov    %rbp,%rdx
  mov    %r14,%rax
  sub    %r12d,%ebx
  sub    %r14,%rdx
  lea    0x4(%r14,%rbx,4),%rsi
  lea    -0x4(%rdx,%rcx,1),%rcx
  nopl   0x0(%rax)
L9:
  mov    (%rcx,%rax,1),%edx
  add    $0x4,%rax
  mov    %edx,-0x4(%rax)
  cmp    %rax,%rsi
  jne    L9
  jmp    L141
```

assistant: ```c
void merge_sort(int *data, int n) {
  if (n < 2)
    return;
  int mid, i, *L, *R;
  mid = n / 2;
  L = (int *)malloc(sizeof(int) * mid);
  R = (int *)malloc(sizeof(int) * (n - mid));
  for (i = 0; i < mid; i++)
    L[i] = data[i];
  for (i = mid; i < n; i++)
    R[i - mid] = data[i];
  merge_sort(L, mid);
  merge_sort(R, n - mid);
  merge(data, L, mid, R, n - mid);
  free(L);
  free(R);
}
```