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

```asm
<mergeSort>:
  endbr64
  cmp    %ecx,%edx
  jl     L110
  ret
  nopl   0x0(%rax)
L110:
  lea    (%rdx,%rcx,1),%eax
  push   %r15
  mov    %eax,%r15d
  push   %r14
  mov    %edx,%r14d
  push   %r13
  shr    $0x1f,%r15d
  mov    %rsi,%r13
  push   %r12
  add    %eax,%r15d
  mov    %ecx,%r12d
  push   %rbp
  sar    %r15d
  push   %rbx
  mov    %r15d,%ecx
  mov    %rdi,%rbx
  lea    0x1(%r15),%ebp
  sub    $0x18,%rsp
  call   <mergeSort>
  mov    %r12d,%ecx
  mov    %ebp,%edx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <mergeSort>
  cmp    %r12d,%ebp
  jg     L373
  cmp    %r15d,%r14d
  jg     L373
  lea    0x1(%r14),%ecx
  mov    %r14d,%eax
  movslq %r14d,%r9
  movslq %ecx,%rcx
  nopl   (%rax)
L47:
  movslq %ebp,%r8
  mov    (%rbx,%r9,4),%edi
  mov    %ecx,%edx
  mov    (%rbx,%r8,4),%esi
  cmp    %edi,%esi
  jl     L263
L372:
  mov    %edi,-0x4(%r13,%rcx,4)
  add    $0x1,%eax
  add    $0x1,%rcx
  cmp    %r12d,%ebp
  jg     L286
  cmp    %eax,%r15d
  jl     L91
  movslq %eax,%r9
  mov    (%rbx,%r8,4),%esi
  mov    %ecx,%edx
  mov    (%rbx,%r9,4),%edi
  cmp    %edi,%esi
  jge    L372
L263:
  mov    %esi,-0x4(%r13,%rcx,4)
  add    $0x1,%ebp
  add    $0x1,%rcx
  cmp    %eax,%r15d
  jl     L91
  cmp    %ebp,%r12d
  jge    L47
L286:
  cmp    %eax,%r15d
  jl     L91
  movslq %edx,%r8
  movslq %eax,%rsi
  mov    %r15d,%r9d
  lea    0x1(%rsi),%rcx
  shl    $0x2,%r8
  sub    %eax,%r9d
  lea    0x0(,%rcx,4),%r10
  lea    0x0(%r13,%r8,1),%rdi
  mov    %rcx,0x8(%rsp)
  lea    (%rbx,%r10,1),%r11
  mov    %rdi,%rcx
  sub    %r11,%rcx
  cmp    $0x8,%rcx
  jbe    L212
  cmp    $0x2,%r9d
  jbe    L212
  lea    0x1(%r9),%r8d
  lea    -0x4(%rbx,%r10,1),%r10
  xor    %ecx,%ecx
  mov    %r8d,%esi
  shr    $0x2,%esi
  shl    $0x4,%rsi
L367:
  movdqu (%r10,%rcx,1),%xmm1
  movups %xmm1,(%rdi,%rcx,1)
  add    $0x10,%rcx
  cmp    %rcx,%rsi
  jne    L367
  mov    %r8d,%ecx
  and    $0xfffffffc,%ecx
  add    %ecx,%eax
  lea    (%rdx,%rcx,1),%esi
  cmp    %ecx,%r8d
  je     L103
  movslq %eax,%r8
  lea    0x1(%rsi),%edi
  lea    0x1(%rax),%ecx
  movslq %esi,%rsi
  mov    (%rbx,%r8,4),%r8d
  mov    %r8d,0x0(%r13,%rsi,4)
  cmp    %r15d,%ecx
  jg     L103
  movslq %ecx,%rcx
  movslq %edi,%rsi
  add    $0x2,%eax
  lea    0x0(,%rcx,4),%r8
  mov    (%rbx,%rcx,4),%ecx
  lea    0x0(,%rsi,4),%rdi
  mov    %ecx,0x0(%r13,%rsi,4)
  cmp    %r15d,%eax
  jg     L103
  mov    0x4(%rbx,%r8,1),%eax
  mov    %eax,0x4(%r13,%rdi,1)
L103:
  lea    0x1(%rdx,%r9,1),%edx
L91:
  cmp    %ebp,%r12d
  jl     L129
  movslq %edx,%r8
  movslq %ebp,%rcx
  mov    %r12d,%edi
  shl    $0x2,%r8
  lea    0x1(%rcx),%rax
  sub    %ebp,%edi
  lea    0x0(%r13,%r8,1),%rsi
  lea    0x0(,%rax,4),%r9
  lea    (%rbx,%r9,1),%r11
  mov    %rsi,%r10
  sub    %r11,%r10
  cmp    $0x8,%r10
  jbe    L154
  cmp    $0x2,%edi
  jbe    L154
  add    $0x1,%edi
  lea    -0x4(%rbx,%r9,1),%r8
  xor    %eax,%eax
  mov    %edi,%ecx
  shr    $0x2,%ecx
  shl    $0x4,%rcx
  nopl   0x0(%rax,%rax,1)
L357:
  movdqu (%r8,%rax,1),%xmm2
  movups %xmm2,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rcx
  jne    L357
  mov    %edi,%eax
  and    $0xfffffffc,%eax
  add    %eax,%ebp
  add    %eax,%edx
  cmp    %eax,%edi
  je     L129
  movslq %ebp,%rsi
  lea    0x1(%rdx),%ecx
  lea    0x1(%rbp),%eax
  movslq %edx,%rdx
  mov    (%rbx,%rsi,4),%esi
  mov    %esi,0x0(%r13,%rdx,4)
  cmp    %r12d,%eax
  jg     L129
  cltq
  movslq %ecx,%rdx
  add    $0x2,%ebp
  lea    0x0(,%rax,4),%rsi
  mov    (%rbx,%rax,4),%eax
  lea    0x0(,%rdx,4),%rcx
  mov    %eax,0x0(%r13,%rdx,4)
  cmp    %ebp,%r12d
  jl     L129
  mov    0x4(%rbx,%rsi,1),%eax
  mov    %eax,0x4(%r13,%rcx,1)
L129:
  movslq %r14d,%rax
  mov    %r12d,%edi
  lea    0x0(,%rax,4),%rdx
  sub    %r14d,%edi
  lea    (%rbx,%rdx,1),%rsi
  lea    0x4(%r13,%rdx,1),%r8
  mov    %rsi,%rcx
  sub    %r8,%rcx
  cmp    $0x8,%rcx
  jbe    L36
  cmp    $0x2,%edi
  jbe    L36
  add    $0x1,%edi
  add    %r13,%rdx
  xor    %eax,%eax
  mov    %edi,%ecx
  shr    $0x2,%ecx
  shl    $0x4,%rcx
  nopl   0x0(%rax,%rax,1)
L341:
  movdqu (%rdx,%rax,1),%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rcx
  jne    L341
  mov    %edi,%eax
  and    $0xfffffffc,%eax
  add    %eax,%r14d
  cmp    %edi,%eax
  je     L157
  movslq %r14d,%rax
  mov    0x0(%r13,%rax,4),%edx
  mov    %edx,(%rbx,%rax,4)
  lea    0x1(%r14),%eax
  cmp    %r12d,%eax
  jg     L157
  cltq
  add    $0x2,%r14d
  mov    0x0(%r13,%rax,4),%ecx
  lea    0x0(,%rax,4),%rdx
  mov    %ecx,(%rbx,%rax,4)
  cmp    %r12d,%r14d
  jg     L157
  mov    0x4(%r13,%rdx,1),%eax
  mov    %eax,0x4(%rbx,%rdx,1)
L157:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L36:
  mov    0x0(%r13,%rax,4),%edx
  mov    %edx,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r12d
  jge    L36
  jmp    L157
  nopl   0x0(%rax,%rax,1)
L212:
  mov    %rsi,%rax
  mov    0x8(%rsp),%rcx
  neg    %rax
  lea    (%r8,%rax,4),%rdi
  add    %r13,%rdi
  jmp    L340
  nopl   0x0(%rax)
L22:
  add    $0x1,%rcx
L340:
  mov    (%rbx,%rsi,4),%eax
  mov    %eax,(%rdi,%rsi,4)
  mov    %rcx,%rsi
  cmp    %ecx,%r15d
  jge    L22
  jmp    L103
  nop
L154:
  mov    %rcx,%rdx
  neg    %rdx
  lea    (%r8,%rdx,4),%rsi
  add    %r13,%rsi
  jmp    L21
  nop
L199:
  add    $0x1,%rax
L21:
  mov    (%rbx,%rcx,4),%edx
  mov    %edx,(%rsi,%rcx,4)
  mov    %rax,%rcx
  cmp    %eax,%r12d
  jge    L199
  jmp    L129
  nopw   0x0(%rax,%rax,1)
L373:
  mov    %r14d,%edx
  mov    %r14d,%eax
  jmp    L286
```

assistant: ```c
void mergeSort(int a[], int temp[], int left, int right) {
  int i, j, k;
  if (left >= right) {
    return;
  }
  int mid = (left + right) / 2;
  mergeSort(a, temp, left, mid);
  mergeSort(a, temp, mid + 1, right);
  for (k = i = left, j = mid + 1; i <= mid && j <= right;) {
    if (a[i] <= a[j]) {
      temp[k++] = a[i++];
    } else {
      temp[k++] = a[j++];
    }
  }
  while (i <= mid) {
    temp[k++] = a[i++];
  }
  while (j <= right) {
    temp[k++] = a[j++];
  }
  for (i = left; i <= right; i++) {
    a[i] = temp[i];
  }
}
```