user: Translate the below assembly code into C programming language:

```asm
<merge>:
  endbr64
  push   %rbp
  movslq %edx,%r10
  mov    %esi,%r8d
  mov    %r10d,%edx
  sub    %esi,%edx
  mov    %rsp,%rbp
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  sub    %r10d,%r13d
  push   %rbx
  lea    0x1(%rdx),%ebx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %ebx,%rax
  mov    %rsp,%rdi
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rdi
  and    $0xfffffffffffffff0,%rsi
  cmp    %rdi,%rsp
  je     L23
L62:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdi,%rsp
  jne    L62
L23:
  and    $0xfff,%esi
  sub    %rsi,%rsp
  test   %rsi,%rsi
  jne    L93
L14:
  movslq %r13d,%rax
  mov    %rsp,%rdi
  mov    %rsp,%r14
  mov    %rax,-0x58(%rbp)
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rdi
  and    $0xfffffffffffffff0,%rsi
  cmp    %rdi,%rsp
  je     L84
L68:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdi,%rsp
  jne    L68
L84:
  and    $0xfff,%esi
  sub    %rsi,%rsp
  test   %rsi,%rsi
  jne    L117
L53:
  mov    %rsp,%r12
  test   %ebx,%ebx
  jle    L175
  movslq %r8d,%rax
  lea    0x4(,%rdx,4),%rdx
  mov    %r14,%rdi
  mov    %ecx,-0x4c(%rbp)
  lea    (%r15,%rax,4),%rsi
  mov    %r10d,-0x48(%rbp)
  mov    %r8d,-0x44(%rbp)
  call   <memcpy@plt>
  mov    -0x44(%rbp),%r8d
  movslq -0x48(%rbp),%r10
  mov    -0x4c(%rbp),%ecx
L175:
  test   %r13d,%r13d
  jle    L49
  mov    -0x58(%rbp),%rdx
  lea    0x4(%r15,%r10,4),%rsi
  mov    %r12,%rdi
  mov    %ecx,-0x48(%rbp)
  mov    %r8d,-0x44(%rbp)
  shl    $0x2,%rdx
  call   <memcpy@plt>
  mov    -0x44(%rbp),%r8d
  mov    -0x48(%rbp),%ecx
L49:
  cmp    %ecx,%r8d
  jg     L144
  movslq %r8d,%rdx
  sub    %r8d,%ecx
  add    %rdx,%rcx
  lea    (%r15,%rdx,4),%rax
  xor    %edx,%edx
  lea    0x4(%r15,%rcx,4),%r8
  xor    %ecx,%ecx
  jmp    L152
  nop
L125:
  movslq %ecx,%rsi
  mov    (%r14,%rsi,4),%edi
  cmp    %edx,%r13d
  je     L29
  movslq %edx,%rsi
  mov    (%r12,%rsi,4),%esi
  cmp    %edi,%esi
  jle    L114
L29:
  mov    %edi,(%rax)
  add    $0x4,%rax
  add    $0x1,%ecx
  cmp    %rax,%r8
  je     L144
L152:
  cmp    %ecx,%ebx
  jg     L125
  movslq %edx,%rsi
  mov    (%r12,%rsi,4),%esi
L114:
  mov    %esi,(%rax)
  add    $0x4,%rax
  add    $0x1,%edx
  cmp    %rax,%r8
  jne    L152
L144:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L13
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L93:
  orq    $0x0,-0x8(%rsp,%rsi,1)
  jmp    L14
L117:
  orq    $0x0,-0x8(%rsp,%rsi,1)
  jmp    L53
L13:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void merge(int *a, int p, int q, int r) {
  int l1, l2, i, j, k;
  l1 = q - p + 1;
  l2 = r - q;
  int left[l1];
  int right[l2];
  for (i = 0; i < l1; i++) {
    left[i] = a[p + i];
  }
  for (i = 0; i < l2; i++) {
    right[i] = a[q + i + 1];
  }
  i = 0;
  j = 0;
  for (k = p; k <= r; k++) {
    if (i < l1 && ((j == l2) || left[i] < right[j])) {
      a[k] = left[i];
      i++;
    } else {
      a[k] = right[j];
      j++;
    }
  }
}
```