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

```asm
<merge>:
  endbr64
  push   %r15
  lea    -0x1(%rcx),%r9d
  mov    %rdi,%rax
  mov    %ecx,%r10d
  push   %r14
  push   %r13
  push   %r12
  mov    %r8d,%r12d
  sub    %edx,%r12d
  push   %rbp
  lea    0x1(%r12),%r13d
  push   %rbx
  cmp    %edx,%r9d
  jl     L225
  cmp    %r8d,%ecx
  jg     L225
  lea    0x1(%rdx),%r11d
  movslq %edx,%r15
  movslq %ecx,%r14
  movslq %r11d,%r11
  nopw   0x0(%rax,%rax,1)
L331:
  mov    (%rax,%r15,4),%ebp
  mov    (%rax,%r14,4),%ebx
  mov    %r11d,%edi
  cmp    %ebp,%ebx
  jl     L229
L194:
  mov    %ebp,-0x4(%rsi,%r11,4)
  add    $0x1,%edx
  add    $0x1,%r11
  cmp    %ecx,%r8d
  jl     L264
  cmp    %edx,%r9d
  jl     L270
  movslq %edx,%r15
  mov    (%rax,%r14,4),%ebx
  mov    %r11d,%edi
  mov    (%rax,%r15,4),%ebp
  cmp    %ebp,%ebx
  jge    L194
L229:
  mov    %ebx,-0x4(%rsi,%r11,4)
  add    $0x1,%ecx
  add    $0x1,%r11
  cmp    %edx,%r9d
  jl     L270
  cmp    %ecx,%r8d
  jl     L264
  movslq %ecx,%r14
  jmp    L331
  nopw   0x0(%rax,%rax,1)
L225:
  mov    %edx,%edi
  mov    %r10d,%ecx
  nopl   (%rax)
L264:
  cmp    %edx,%r9d
  jl     L270
  movslq %edi,%r11
  sub    %edx,%r10d
  lea    0x0(,%r11,4),%rbx
  lea    (%rsi,%rbx,1),%rbp
  mov    %rbx,-0x18(%rsp)
  movslq %edx,%rbx
  lea    0x1(%rbx),%r15
  mov    %rbp,%r11
  mov    %r15,-0x10(%rsp)
  shl    $0x2,%r15
  lea    (%rax,%r15,1),%r14
  sub    %r14,%r11
  cmp    $0x8,%r11
  jbe    L271
  lea    -0x1(%r10),%r14d
  cmp    $0x2,%r14d
  jbe    L271
  mov    %r10d,%ebx
  lea    -0x4(%rax,%r15,1),%r14
  xor    %r11d,%r11d
  shr    $0x2,%ebx
  shl    $0x4,%rbx
  nopl   0x0(%rax)
L347:
  movdqu (%r14,%r11,1),%xmm0
  movups %xmm0,0x0(%rbp,%r11,1)
  add    $0x10,%r11
  cmp    %rbx,%r11
  jne    L347
  mov    %r10d,%ebx
  and    $0xfffffffc,%ebx
  add    %ebx,%edx
  lea    (%rdi,%rbx,1),%r11d
  cmp    %ebx,%r10d
  je     L236
  movslq %edx,%rbx
  mov    (%rax,%rbx,4),%ebp
  movslq %r11d,%rbx
  add    $0x1,%r11d
  mov    %ebp,(%rsi,%rbx,4)
  lea    0x1(%rdx),%ebx
  cmp    %r9d,%ebx
  jg     L236
  movslq %ebx,%rbx
  movslq %r11d,%r11
  add    $0x2,%edx
  lea    0x0(,%rbx,4),%rbp
  mov    (%rax,%rbx,4),%ebx
  lea    0x0(,%r11,4),%r14
  mov    %ebx,(%rsi,%r11,4)
  cmp    %edx,%r9d
  jl     L236
  mov    0x4(%rax,%rbp,1),%edx
  mov    %edx,0x4(%rsi,%r14,1)
L236:
  add    %r10d,%edi
L270:
  cmp    %ecx,%r8d
  jl     L107
  movslq %edi,%rbx
  movslq %ecx,%r9
  mov    %r8d,%r11d
  shl    $0x2,%rbx
  lea    0x1(%r9),%rdx
  sub    %ecx,%r11d
  lea    (%rsi,%rbx,1),%r10
  lea    0x0(,%rdx,4),%rbp
  lea    (%rax,%rbp,1),%r15
  mov    %r10,%r14
  sub    %r15,%r14
  cmp    $0x8,%r14
  jbe    L33
  cmp    $0x2,%r11d
  jbe    L33
  add    $0x1,%r11d
  lea    -0x4(%rax,%rbp,1),%rbx
  xor    %edx,%edx
  mov    %r11d,%r9d
  shr    $0x2,%r9d
  shl    $0x4,%r9
  nopl   0x0(%rax)
L315:
  movdqu (%rbx,%rdx,1),%xmm1
  movups %xmm1,(%r10,%rdx,1)
  add    $0x10,%rdx
  cmp    %rdx,%r9
  jne    L315
  mov    %r11d,%edx
  and    $0xfffffffc,%edx
  add    %edx,%ecx
  add    %edx,%edi
  cmp    %edx,%r11d
  je     L107
  movslq %ecx,%rdx
  mov    (%rax,%rdx,4),%r9d
  movslq %edi,%rdx
  add    $0x1,%edi
  mov    %r9d,(%rsi,%rdx,4)
  lea    0x1(%rcx),%edx
  cmp    %edx,%r8d
  jl     L107
  movslq %edx,%rdx
  movslq %edi,%rdi
  add    $0x2,%ecx
  lea    0x0(,%rdx,4),%r10
  mov    (%rax,%rdx,4),%edx
  lea    0x0(,%rdi,4),%r9
  mov    %edx,(%rsi,%rdi,4)
  cmp    %r8d,%ecx
  jg     L107
  mov    0x4(%rax,%r10,1),%edx
  mov    %edx,0x4(%rsi,%r9,1)
L107:
  test   %r13d,%r13d
  js     L287
  movslq %r8d,%r9
  lea    0x0(,%r9,4),%rdx
  lea    -0x4(%rdx),%rcx
  lea    (%rax,%rdx,1),%rdi
  lea    (%rsi,%rcx,1),%r10
  sub    %r10,%rdi
  add    $0x8,%rdi
  cmp    $0x8,%rdi
  jbe    L378
  cmp    $0x2,%r13d
  jbe    L378
  lea    0x2(%r12),%r10d
  sub    $0xc,%rdx
  mov    %r10d,%ecx
  lea    (%rsi,%rdx,1),%r9
  lea    (%rax,%rdx,1),%rdi
  xor    %edx,%edx
  shr    $0x2,%ecx
  neg    %rcx
  shl    $0x4,%rcx
  nopl   0x0(%rax)
L168:
  movdqu (%r9,%rdx,1),%xmm2
  movups %xmm2,(%rdi,%rdx,1)
  sub    $0x10,%rdx
  cmp    %rdx,%rcx
  jne    L168
  mov    %r10d,%ecx
  and    $0xfffffffc,%ecx
  sub    %ecx,%r8d
  cmp    %r10d,%ecx
  je     L287
  movslq %r8d,%rdx
  sub    $0x1,%r8d
  mov    (%rsi,%rdx,4),%edi
  mov    %edi,(%rax,%rdx,4)
  cmp    %ecx,%r12d
  jl     L287
  movslq %r8d,%rdx
  mov    (%rsi,%rdx,4),%r8d
  lea    0x0(,%rdx,4),%rdi
  mov    %r8d,(%rax,%rdx,4)
  jle    L287
  mov    -0x4(%rsi,%rdi,1),%edx
  mov    %edx,-0x4(%rax,%rdi,1)
L287:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L271:
  mov    -0x18(%rsp),%r15
  mov    %rbx,%rdx
  mov    -0x10(%rsp),%r11
  neg    %rdx
  lea    (%r15,%rdx,4),%rbp
  add    %rsi,%rbp
  jmp    L73
  nopl   0x0(%rax)
L173:
  add    $0x1,%r11
L73:
  mov    (%rax,%rbx,4),%edx
  mov    %edx,0x0(%rbp,%rbx,4)
  mov    %r11,%rbx
  cmp    %r11d,%r9d
  jge    L173
  add    %r10d,%edi
  jmp    L270
  nopl   0x0(%rax,%rax,1)
L33:
  mov    %r9,%rcx
  neg    %rcx
  lea    (%rbx,%rcx,4),%rdi
  add    %rsi,%rdi
  jmp    L261
  nopw   0x0(%rax,%rax,1)
L163:
  add    $0x1,%rdx
L261:
  mov    (%rax,%r9,4),%ecx
  mov    %ecx,(%rdi,%r9,4)
  mov    %rdx,%r9
  cmp    %edx,%r8d
  jge    L163
  jmp    L107
  nopl   0x0(%rax)
L378:
  sub    %r13,%r9
  shl    $0x2,%r9
  jmp    L249
  nopl   0x0(%rax)
L55:
  sub    $0x4,%rcx
L249:
  mov    (%rsi,%rdx,1),%edi
  mov    %edi,(%rax,%rdx,1)
  mov    %rdx,%rdi
  mov    %rcx,%rdx
  cmp    %rdi,%r9
  jne    L55
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void merge(int arr[], int temp[], int left, int mid, int right) {
  int i, left_end, size, temp_pos;
  left_end = mid - 1;
  temp_pos = left;
  size = right - left + 1;
  while ((left <= left_end) && (mid <= right)) {
    if (arr[left] <= arr[mid]) {
      temp[temp_pos] = arr[left];
      temp_pos = temp_pos + 1;
      left = left + 1;
    } else {
      temp[temp_pos] = arr[mid];
      temp_pos = temp_pos + 1;
      mid = mid + 1;
    }
  }
  while (left <= left_end) {
    temp[temp_pos] = arr[left];
    left = left + 1;
    temp_pos = temp_pos + 1;
  }
  while (mid <= right) {
    temp[temp_pos] = arr[mid];
    mid = mid + 1;
    temp_pos = temp_pos + 1;
  }
  for (i = 0; i <= size; ++i) {
    arr[right] = temp[right];
    right = right - 1;
  }
}
```