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

```asm
<merge>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %rdi,%r9
  mov    %edx,%r11d
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  mov    %edx,%r12d
  sub    %esi,%r12d
  lea    0x1(%r12),%r13d
  sub    %edx,%ecx
  mov    %ecx,%r10d
  movslq %r13d,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L146:
  cmp    %rdx,%rsp
  je     L55
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L146
L55:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L238
  orq    $0x0,-0x8(%rsp,%rax,1)
L238:
  mov    %rsp,%rbx
  movslq %r10d,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L79:
  cmp    %rdx,%rsp
  je     L149
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L79
L149:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L112
  orq    $0x0,-0x8(%rsp,%rax,1)
L112:
  mov    %rsp,%r8
  test   %r13d,%r13d
  jle    L54
  mov    %r12d,%eax
  lea    0x4(,%rax,4),%rdi
  movslq %esi,%rax
  lea    (%r9,%rax,4),%rcx
  mov    $0x0,%eax
L139:
  mov    (%rcx,%rax,1),%edx
  mov    %edx,(%rbx,%rax,1)
  add    $0x4,%rax
  cmp    %rdi,%rax
  jne    L139
L54:
  test   %r10d,%r10d
  jle    L81
  lea    0x1(%r10),%edi
  movslq %r11d,%r11
  lea    (%r9,%r11,4),%rcx
  mov    $0x1,%eax
L71:
  mov    (%rcx,%rax,4),%edx
  mov    %edx,-0x4(%r8,%rax,4)
  add    $0x1,%rax
  cmp    %rdi,%rax
  jne    L71
  test   %r13d,%r13d
  jle    L69
  lea    0x1(%rsi),%edi
  movslq %esi,%rsi
  lea    (%r9,%rsi,4),%rcx
  mov    $0x0,%eax
  mov    $0x0,%edx
  jmp    L170
L143:
  add    $0x1,%eax
  mov    %edi,%esi
  mov    %r11d,(%rcx)
L215:
  add    $0x1,%edi
  add    $0x4,%rcx
  cmp    %r13d,%edx
  jge    L151
  cmp    %r10d,%eax
  jge    L151
L170:
  movslq %edx,%rsi
  mov    (%rbx,%rsi,4),%r14d
  movslq %eax,%rsi
  mov    (%r8,%rsi,4),%r11d
  cmp    %r11d,%r14d
  jg     L143
  add    $0x1,%edx
  mov    %edi,%esi
  mov    %r14d,(%rcx)
  jmp    L215
L151:
  cmp    %r13d,%edx
  jge    L50
L207:
  mov    %edx,%r13d
  mov    %r12d,%r11d
  sub    %edx,%r11d
  movslq %edx,%rdx
  lea    (%rbx,%rdx,4),%rbx
  movslq %esi,%rdx
  lea    (%r9,%rdx,4),%rdi
  mov    $0x0,%edx
L218:
  mov    (%rbx,%rdx,4),%ecx
  mov    %ecx,(%rdi,%rdx,4)
  mov    %rdx,%rcx
  add    $0x1,%rdx
  cmp    %r11,%rcx
  jne    L218
  lea    0x1(%r12,%rsi,1),%esi
  sub    %r13d,%esi
L50:
  cmp    %r10d,%eax
  jge    L82
  cltq
  movslq %esi,%rsi
  sub    %rax,%rsi
  lea    (%r9,%rsi,4),%rcx
L191:
  mov    (%r8,%rax,4),%edx
  mov    %edx,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r10d
  jg     L191
L82:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L36
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L69:
  mov    $0x0,%eax
  jmp    L50
L81:
  mov    $0x0,%eax
  mov    $0x0,%edx
  test   %r13d,%r13d
  jg     L207
  jmp    L82
L36:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void merge(int A[], int p, int q, int r) {
  int n1 = q - p + 1, n2 = r - q;
  int B[n1], C[n2];
  for (int i = 0; i < n1; i++) {
    B[i] = A[i + p];
  }
  for (int j = 0; j < n2; j++) {
    C[j] = A[q + 1 + j];
  }
  int i, j, k;
  i = j = 0;
  k = p;
  while (i < n1 && j < n2) {
    if (B[i] <= C[j])
      A[k++] = B[i++];
    else
      A[k++] = C[j++];
  }
  while (i < n1) {
    A[k++] = B[i++];
  }
  while (j < n2) {
    A[k++] = C[j++];
  }
}
```