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

```asm
<merge>:
  endbr64
  push   %r12
  lea    0x1(%rcx),%r10d
  push   %rbp
  push   %rbx
  cmp    %ecx,%edx
  jg     L93
  movslq %edx,%rax
  mov    %ecx,%ebp
  lea    0x0(,%rax,4),%r9
  sub    %edx,%ebp
  lea    (%rsi,%r9,1),%rbx
  lea    0x4(%rdi,%r9,1),%r12
  mov    %rbx,%r11
  sub    %r12,%r11
  cmp    $0x8,%r11
  jbe    L141
  cmp    $0x2,%ebp
  jbe    L141
  add    $0x1,%ebp
  add    %rdi,%r9
  xor    %eax,%eax
  mov    %ebp,%r11d
  shr    $0x2,%r11d
  shl    $0x4,%r11
  nopl   0x0(%rax,%rax,1)
L34:
  movdqu (%r9,%rax,1),%xmm0
  movups %xmm0,(%rbx,%rax,1)
  add    $0x10,%rax
  cmp    %r11,%rax
  jne    L34
  mov    %ebp,%eax
  and    $0xfffffffc,%eax
  lea    (%rax,%rdx,1),%r9d
  cmp    %eax,%ebp
  je     L93
  movslq %r9d,%rax
  mov    (%rdi,%rax,4),%r11d
  mov    %r11d,(%rsi,%rax,4)
  lea    0x1(%r9),%eax
  cmp    %eax,%ecx
  jl     L93
  cltq
  add    $0x2,%r9d
  mov    (%rdi,%rax,4),%ebx
  lea    0x0(,%rax,4),%r11
  mov    %ebx,(%rsi,%rax,4)
  cmp    %r9d,%ecx
  jl     L93
  mov    0x4(%rdi,%r11,1),%eax
  mov    %eax,0x4(%rsi,%r11,1)
L93:
  cmp    %r8d,%r10d
  jg     L81
  movslq %ecx,%rax
  mov    %r8d,%r11d
  add    $0x1,%rax
  sub    %ecx,%r11d
  lea    0x0(,%rax,4),%rcx
  lea    (%rsi,%rcx,1),%rbx
  lea    0x4(%rdi,%rcx,1),%rbp
  mov    %rbx,%r9
  sub    %rbp,%r9
  cmp    $0x8,%r9
  jbe    L142
  lea    -0x1(%r11),%r9d
  cmp    $0x2,%r9d
  jbe    L142
  mov    %r11d,%r9d
  add    %rdi,%rcx
  xor    %eax,%eax
  shr    $0x2,%r9d
  shl    $0x4,%r9
  nopl   0x0(%rax,%rax,1)
L174:
  movdqu (%rcx,%rax,1),%xmm1
  movups %xmm1,(%rbx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r9
  jne    L174
  mov    %r11d,%eax
  and    $0xfffffffc,%eax
  lea    (%rax,%r10,1),%ecx
  cmp    %eax,%r11d
  je     L81
  movslq %ecx,%rax
  mov    (%rdi,%rax,4),%r9d
  mov    %r9d,(%rsi,%rax,4)
  lea    0x1(%rcx),%eax
  cmp    %eax,%r8d
  jl     L81
  cltq
  add    $0x2,%ecx
  mov    (%rdi,%rax,4),%r11d
  lea    0x0(,%rax,4),%r9
  mov    %r11d,(%rsi,%rax,4)
  cmp    %ecx,%r8d
  jl     L81
  mov    0x4(%rdi,%r9,1),%eax
  mov    %eax,0x4(%rsi,%r9,1)
L81:
  lea    0x1(%rdx),%eax
  mov    %r10d,%ecx
  lea    0x1(%r8),%ebx
  cltq
  cmp    %r8d,%edx
  jg     L215
  cmp    %edx,%r10d
  je     L250
L72:
  movslq %edx,%r9
  mov    (%rsi,%r9,4),%r9d
  cmp    %ecx,%ebx
  je     L70
  movslq %ecx,%r11
  mov    (%rsi,%r11,4),%r11d
  cmp    %r9d,%r11d
  jg     L70
  mov    %r11d,%r9d
  add    $0x1,%ecx
  mov    %r9d,-0x4(%rdi,%rax,4)
  cmp    %eax,%r8d
  jl     L215
L150:
  add    $0x1,%rax
  cmp    %edx,%r10d
  jne    L72
L250:
  movslq %ecx,%rdx
  mov    %eax,%r12d
  add    $0x1,%ecx
  mov    (%rsi,%rdx,4),%edx
  mov    %edx,-0x4(%rdi,%rax,4)
  cmp    %eax,%r8d
  jl     L215
  mov    %r8d,%ebp
  movslq %ecx,%rdx
  sub    %eax,%ebp
  cltq
  lea    0x4(,%rdx,4),%rdx
  lea    0x0(,%rax,4),%r9
  lea    (%rsi,%rdx,1),%rbx
  lea    (%rdi,%r9,1),%r10
  mov    %r10,%r11
  sub    %rbx,%r11
  cmp    $0x8,%r11
  jbe    L101
  cmp    $0x2,%ebp
  jbe    L101
  cmp    %r8d,%r12d
  lea    0x1(%rbp),%eax
  mov    $0x1,%r9d
  cmovg  %r9d,%eax
  lea    -0x4(%rsi,%rdx,1),%r11
  xor    %edx,%edx
  mov    %eax,%ebx
  shr    $0x2,%ebx
  jmp    1040 <merge.cold>
  nopl   0x0(%rax,%rax,1)
L141:
  mov    (%rdi,%rax,4),%r9d
  mov    %r9d,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jl     L93
  mov    (%rdi,%rax,4),%r9d
  mov    %r9d,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jge    L141
  jmp    L93
  nopl   0x0(%rax)
L142:
  mov    (%rdi,%rax,4),%ecx
  mov    %ecx,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r8d
  jl     L81
  mov    (%rdi,%rax,4),%ecx
  mov    %ecx,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r8d
  jge    L142
  jmp    L81
  nop
L70:
  mov    %r9d,-0x4(%rdi,%rax,4)
  add    $0x1,%edx
  cmp    %eax,%r8d
  jge    L150
L215:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L101:
  sub    %r9,%rsi
  lea    -0x4(%rsi,%rdx,1),%rdx
  jmp    L65
```

assistant: ```c
void merge(int *arr, int *bufferArr, int begin, int mid, int last) {
  int leftArrIndex = begin;
  int rightArrIndex = mid + 1;
  for (int i = begin; i <= mid; ++i) {
    bufferArr[i] = arr[i];
  }
  for (int i = mid + 1; i <= last; ++i) {
    bufferArr[i] = arr[i];
  }
  for (int i = begin; i <= last; ++i) {
    if (leftArrIndex == mid + 1) {
      arr[i] = bufferArr[rightArrIndex];
      ++rightArrIndex;
    } else if (rightArrIndex == last + 1) {
      arr[i] = bufferArr[leftArrIndex];
      ++leftArrIndex;
    } else if (bufferArr[leftArrIndex] < bufferArr[rightArrIndex]) {
      arr[i] = bufferArr[leftArrIndex];
      ++leftArrIndex;
    } else {
      arr[i] = bufferArr[rightArrIndex];
      ++rightArrIndex;
    }
  }
}
```