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

```asm
<merge>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    %ecx,-0x34(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x30(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x34(%rbp),%eax
  add    $0x1,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L98
L67:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jg     L119
  mov    -0x18(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x18(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0xc(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  jmp    L1
L119:
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0xc(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
L1:
  addl   $0x1,-0xc(%rbp)
L98:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jg     L4
  mov    -0x14(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L67
L4:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jle    L70
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L112
L54:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0xc(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x10(%rbp)
  addl   $0x1,-0xc(%rbp)
L112:
  mov    -0x10(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L54
  jmp    L15
L70:
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L49
L77:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0xc(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x10(%rbp)
  addl   $0x1,-0xc(%rbp)
L49:
  mov    -0x10(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jle    L77
L15:
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L76
L44:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x10(%rbp)
L76:
  mov    -0x10(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L44
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

assistant: ```c
void merge(int arr[], int left, int mid, int right) {
  int fIdx = left;
  int rIdx = mid + 1;
  int i;
  int *sortArr = (int *)malloc(sizeof(int) * (right + 1));
  int sIdx = left;
  while (fIdx <= mid && rIdx <= right) {
    if (arr[fIdx] <= arr[rIdx])
      sortArr[sIdx] = arr[fIdx++];
    else
      sortArr[sIdx] = arr[rIdx++];
    sIdx++;
  }
  if (fIdx > mid) {
    for (i = rIdx; i <= right; i++, sIdx++)
      sortArr[sIdx] = arr[i];
  } else {
    for (i = fIdx; i <= mid; i++, sIdx++)
      sortArr[sIdx] = arr[i];
  }
  for (i = left; i <= right; i++) {
    arr[i] = sortArr[i];
  }
  free(sortArr);
}
```