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

```asm
<merge>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r13
  push   %r12
  sub    $0x50,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %edx,-0x50(%rbp)
  mov    %ecx,-0x54(%rbp)
  mov    %r8d,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rsi
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x58(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  movl   $0x0,-0x38(%rbp)
  mov    -0x58(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L39:
  cmp    %rdx,%rsp
  je     L101
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L39
L101:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L33
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L33:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x20(%rbp)
  jmp    L73
L28:
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jge    L124
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x40(%rbp)
  addl   $0x1,-0x38(%rbp)
  jmp    L73
L124:
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x3c(%rbp)
  addl   $0x1,-0x38(%rbp)
L73:
  mov    -0x40(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jg     L80
  mov    -0x3c(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jle    L28
  jmp    L80
L149:
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x40(%rbp)
  addl   $0x1,-0x38(%rbp)
L80:
  mov    -0x40(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jle    L149
  jmp    L93
L118:
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x3c(%rbp)
  addl   $0x1,-0x38(%rbp)
L93:
  mov    -0x3c(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jle    L118
  movl   $0x0,-0x34(%rbp)
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  jmp    L23
L136:
  mov    -0x34(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x34(%rbp)
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x48(%rbp),%rdx
  add    %rdx,%rcx
  mov    -0x20(%rbp),%rdx
  cltq
  mov    (%rdx,%rax,4),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0x38(%rbp)
L23:
  mov    -0x38(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jle    L136
  mov    %rsi,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  lea    -0x10(%rbp),%rsp
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
```

assistant: ```c
void merge(int *a, int left1, int left2, int right1, int right2) {
  int low = left1;
  int high = right2;
  int leftpoint = left1;
  int rightpoint = right1;
  int i = 0;
  int temp[right2 - left1 + 1];
  while ((leftpoint <= left2) && (rightpoint <= right2)) {
    if (a[leftpoint] < a[rightpoint]) {
      temp[i] = a[leftpoint];
      leftpoint++;
      i++;
    } else {
      temp[i] = a[rightpoint];
      rightpoint++;
      i++;
    }
  }
  while ((leftpoint <= left2)) {
    temp[i] = a[leftpoint];
    leftpoint++;
    i++;
  }
  while ((rightpoint <= right2)) {
    temp[i] = a[rightpoint];
    rightpoint++;
    i++;
  }
  int d = 0;
  for (i = low; i <= high; i++)
    a[i] = temp[d++];
}
```