user: 请将以下的汇编代码转换成C语言代码:

```asm
<mergeSort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  cmp    %edx,%esi
  je     L148
  mov    %edx,%eax
  mov    %esi,%ebp
  mov    %edx,%r13d
  sub    %esi,%eax
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  lea    (%rax,%rbp,1),%r14d
  cmp    %r14d,%ebp
  je     L129
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  lea    0x0(%rbp,%rax,1),%r15d
  cmp    %r15d,%ebp
  je     L90
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  lea    0x0(%rbp,%rax,1),%ebx
  cmp    %ebx,%ebp
  je     L81
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  lea    0x0(%rbp,%rax,1),%r8d
  cmp    %r8d,%ebp
  je     L124
  mov    %eax,%edi
  mov    %r8d,0x10(%rsp)
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  lea    0x0(%rbp,%rax,1),%r9d
  mov    %r9d,%edx
  mov    %r9d,0x8(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%r9d
  mov    0x10(%rsp),%r8d
  mov    %r12,%rdi
  mov    %r8d,%edx
  lea    0x1(%r9),%esi
  mov    %r8d,0x8(%rsp)
  mov    %r9d,0xc(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%ecx
  mov    0xc(%rsp),%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <merge@plt>
  mov    0x8(%rsp),%r8d
L124:
  lea    0x1(%r8),%r9d
  cmp    %r9d,%ebx
  je     L61
  mov    %ebx,%eax
  mov    %r8d,0x10(%rsp)
  sub    %r9d,%eax
  mov    %r9d,0x8(%rsp)
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x8(%rsp),%r9d
  mov    %r12,%rdi
  lea    (%r9,%rax,1),%r10d
  mov    %r9d,%esi
  mov    %r9d,0xc(%rsp)
  mov    %r10d,%edx
  mov    %r10d,0x8(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%r10d
  mov    %ebx,%edx
  mov    %r12,%rdi
  lea    0x1(%r10),%esi
  call   <mergeSort>
  mov    0x8(%rsp),%edx
  mov    0xc(%rsp),%esi
  mov    %ebx,%ecx
  mov    %r12,%rdi
  call   <merge@plt>
  mov    0x10(%rsp),%r8d
L61:
  mov    %ebx,%ecx
  mov    %r8d,%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <merge@plt>
L81:
  lea    0x1(%rbx),%r8d
  cmp    %r8d,%r15d
  je     L176
  mov    %r15d,%eax
  mov    %r8d,0x8(%rsp)
  sub    %r8d,%eax
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x8(%rsp),%r8d
  mov    %r12,%rdi
  lea    (%r8,%rax,1),%r9d
  mov    %r8d,%esi
  mov    %r8d,0xc(%rsp)
  mov    %r9d,%edx
  mov    %r9d,0x8(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%r9d
  mov    %r15d,%edx
  mov    %r12,%rdi
  lea    0x1(%r9),%esi
  call   <mergeSort>
  mov    0x8(%rsp),%edx
  mov    0xc(%rsp),%esi
  mov    %r15d,%ecx
  mov    %r12,%rdi
  call   <merge@plt>
L176:
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <merge@plt>
L90:
  lea    0x1(%r15),%ebx
  cmp    %ebx,%r14d
  je     L141
  mov    %r14d,%eax
  sub    %ebx,%eax
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  lea    (%rbx,%rax,1),%edx
  mov    %edx,0x8(%rsp)
  cmp    %edx,%ebx
  je     L234
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    %ebx,%esi
  mov    %r12,%rdi
  lea    (%rbx,%rax,1),%r9d
  mov    %r9d,%edx
  mov    %r9d,0xc(%rsp)
  call   <mergeSort>
  mov    0xc(%rsp),%r9d
  mov    0x8(%rsp),%edx
  mov    %r12,%rdi
  lea    0x1(%r9),%esi
  call   <mergeSort>
  mov    0x8(%rsp),%ecx
  mov    0xc(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <merge@plt>
L234:
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%r9d
  cmp    %r9d,%r14d
  je     L212
  mov    %r14d,%eax
  mov    %r9d,0xc(%rsp)
  sub    %r9d,%eax
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0xc(%rsp),%r9d
  lea    (%r9,%rax,1),%r10d
  cmp    %r10d,%r9d
  je     L201
  mov    %eax,%edi
  mov    %r10d,0x10(%rsp)
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0xc(%rsp),%r9d
  mov    %r12,%rdi
  lea    (%r9,%rax,1),%r11d
  mov    %r9d,%esi
  mov    %r9d,0x18(%rsp)
  mov    %r11d,%edx
  mov    %r11d,0xc(%rsp)
  call   <mergeSort>
  mov    0xc(%rsp),%r11d
  mov    0x10(%rsp),%r10d
  mov    %r12,%rdi
  lea    0x1(%r11),%esi
  mov    %r10d,%edx
  mov    %r11d,0x14(%rsp)
  mov    %r10d,0xc(%rsp)
  call   <mergeSort>
  mov    0xc(%rsp),%r10d
  mov    0x18(%rsp),%r9d
  mov    %r12,%rdi
  mov    0x14(%rsp),%edx
  mov    %r10d,%ecx
  mov    %r9d,%esi
  mov    %r10d,0x10(%rsp)
  mov    %r9d,0xc(%rsp)
  call   <merge@plt>
  mov    0x10(%rsp),%r10d
  mov    0xc(%rsp),%r9d
L201:
  lea    0x1(%r10),%esi
  mov    %r14d,%edx
  mov    %r12,%rdi
  mov    %r9d,0x10(%rsp)
  mov    %r10d,0xc(%rsp)
  call   <mergeSort>
  mov    0xc(%rsp),%edx
  mov    0x10(%rsp),%esi
  mov    %r14d,%ecx
  mov    %r12,%rdi
  call   <merge@plt>
L212:
  mov    0x8(%rsp),%edx
  mov    %r14d,%ecx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <merge@plt>
L141:
  mov    %r14d,%ecx
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <merge@plt>
L129:
  lea    0x1(%r14),%r15d
  cmp    %r13d,%r15d
  je     L198
  mov    %r13d,%eax
  sub    %r15d,%eax
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  lea    (%r15,%rax,1),%ebx
  cmp    %ebx,%r15d
  je     L102
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  lea    (%r15,%rax,1),%r8d
  cmp    %r8d,%r15d
  je     L116
  mov    %eax,%edi
  mov    %r8d,0x8(%rsp)
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x8(%rsp),%r8d
  lea    (%r15,%rax,1),%r9d
  cmp    %r9d,%r15d
  je     L103
  mov    %eax,%edi
  mov    %r8d,0x10(%rsp)
  shr    $0x1f,%edi
  mov    %r9d,0x14(%rsp)
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    %r15d,%esi
  mov    %r12,%rdi
  lea    (%r15,%rax,1),%r10d
  mov    %r10d,%edx
  mov    %r10d,0x8(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%r10d
  mov    0x14(%rsp),%r9d
  mov    %r12,%rdi
  mov    %r9d,%edx
  lea    0x1(%r10),%esi
  mov    %r9d,0x8(%rsp)
  mov    %r10d,0xc(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%ecx
  mov    0xc(%rsp),%edx
  mov    %r15d,%esi
  mov    %r12,%rdi
  call   <merge@plt>
  mov    0x10(%rsp),%r8d
  mov    0x8(%rsp),%r9d
L103:
  lea    0x1(%r9),%r10d
  cmp    %r10d,%r8d
  je     L183
  mov    %r8d,%eax
  mov    %r9d,0x18(%rsp)
  sub    %r10d,%eax
  mov    %r8d,0x14(%rsp)
  mov    %eax,%edi
  mov    %r10d,0x8(%rsp)
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x8(%rsp),%r10d
  mov    %r12,%rdi
  lea    (%r10,%rax,1),%r11d
  mov    %r10d,%esi
  mov    %r10d,0x10(%rsp)
  mov    %r11d,%edx
  mov    %r11d,0x8(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%r11d
  mov    0x14(%rsp),%r8d
  mov    %r12,%rdi
  mov    %r8d,%edx
  lea    0x1(%r11),%esi
  mov    %r8d,0x8(%rsp)
  mov    %r11d,0xc(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%ecx
  mov    0xc(%rsp),%edx
  mov    %r12,%rdi
  mov    0x10(%rsp),%esi
  call   <merge@plt>
  mov    0x18(%rsp),%r9d
  mov    0x8(%rsp),%r8d
L183:
  mov    %r8d,%ecx
  mov    %r9d,%edx
  mov    %r15d,%esi
  mov    %r12,%rdi
  mov    %r8d,0x8(%rsp)
  call   <merge@plt>
  mov    0x8(%rsp),%r8d
L116:
  lea    0x1(%r8),%r9d
  cmp    %r9d,%ebx
  je     L189
  mov    %ebx,%eax
  mov    %r8d,0x10(%rsp)
  sub    %r9d,%eax
  mov    %r9d,0x8(%rsp)
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x8(%rsp),%r9d
  mov    %r12,%rdi
  lea    (%r9,%rax,1),%r10d
  mov    %r9d,%esi
  mov    %r9d,0xc(%rsp)
  mov    %r10d,%edx
  mov    %r10d,0x8(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%r10d
  mov    %ebx,%edx
  mov    %r12,%rdi
  lea    0x1(%r10),%esi
  call   <mergeSort>
  mov    0x8(%rsp),%edx
  mov    0xc(%rsp),%esi
  mov    %ebx,%ecx
  mov    %r12,%rdi
  call   <merge@plt>
  mov    0x10(%rsp),%r8d
L189:
  mov    %ebx,%ecx
  mov    %r8d,%edx
  mov    %r15d,%esi
  mov    %r12,%rdi
  call   <merge@plt>
L102:
  lea    0x1(%rbx),%ecx
  mov    %ecx,0x8(%rsp)
  cmp    %ecx,%r13d
  je     L56
  mov    %r13d,%eax
  sub    %ecx,%eax
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x8(%rsp),%ecx
  lea    (%rcx,%rax,1),%edx
  mov    %edx,0xc(%rsp)
  cmp    %edx,%ecx
  je     L32
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x8(%rsp),%ecx
  lea    (%rcx,%rax,1),%r8d
  cmp    %r8d,%ecx
  je     L205
  mov    %eax,%edi
  mov    %r8d,0x18(%rsp)
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x8(%rsp),%ecx
  mov    %r12,%rdi
  lea    (%rcx,%rax,1),%r9d
  mov    %ecx,%esi
  mov    %r9d,%edx
  mov    %r9d,0x10(%rsp)
  call   <mergeSort>
  mov    0x10(%rsp),%r9d
  mov    0x18(%rsp),%r8d
  mov    %r12,%rdi
  mov    %r8d,%edx
  lea    0x1(%r9),%esi
  mov    %r8d,0x10(%rsp)
  mov    %r9d,0x14(%rsp)
  call   <mergeSort>
  mov    0x10(%rsp),%ecx
  mov    0x14(%rsp),%edx
  mov    %r12,%rdi
  mov    0x8(%rsp),%esi
  call   <merge@plt>
  mov    0x10(%rsp),%r8d
L205:
  mov    0xc(%rsp),%eax
  lea    0x1(%r8),%r9d
  cmp    %r9d,%eax
  je     L26
  sub    %r9d,%eax
  mov    %r8d,0x18(%rsp)
  mov    %eax,%edi
  mov    %r9d,0x10(%rsp)
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x10(%rsp),%r9d
  mov    %r12,%rdi
  lea    (%r9,%rax,1),%r10d
  mov    %r9d,%esi
  mov    %r9d,0x14(%rsp)
  mov    %r10d,%edx
  mov    %r10d,0x10(%rsp)
  call   <mergeSort>
  mov    0x10(%rsp),%r10d
  mov    0xc(%rsp),%edx
  mov    %r12,%rdi
  lea    0x1(%r10),%esi
  call   <mergeSort>
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    %r12,%rdi
  mov    0x14(%rsp),%esi
  call   <merge@plt>
  mov    0x18(%rsp),%r8d
L26:
  mov    0xc(%rsp),%ecx
  mov    0x8(%rsp),%esi
  mov    %r8d,%edx
  mov    %r12,%rdi
  call   <merge@plt>
L32:
  mov    0xc(%rsp),%eax
  lea    0x1(%rax),%r8d
  cmp    %r8d,%r13d
  je     L38
  mov    %r13d,%eax
  mov    %r8d,0x10(%rsp)
  sub    %r8d,%eax
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x10(%rsp),%r8d
  lea    (%r8,%rax,1),%r9d
  cmp    %r9d,%r8d
  je     L146
  mov    %eax,%edi
  mov    %r9d,0x14(%rsp)
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x10(%rsp),%r8d
  mov    %r12,%rdi
  lea    (%r8,%rax,1),%r10d
  mov    %r8d,%esi
  mov    %r8d,0x1c(%rsp)
  mov    %r10d,%edx
  mov    %r10d,0x10(%rsp)
  call   <mergeSort>
  mov    0x10(%rsp),%r10d
  mov    0x14(%rsp),%r9d
  mov    %r12,%rdi
  lea    0x1(%r10),%esi
  mov    %r9d,%edx
  mov    %r10d,0x18(%rsp)
  mov    %r9d,0x10(%rsp)
  call   <mergeSort>
  mov    0x10(%rsp),%r9d
  mov    0x1c(%rsp),%r8d
  mov    %r12,%rdi
  mov    0x18(%rsp),%edx
  mov    %r9d,%ecx
  mov    %r8d,%esi
  mov    %r9d,0x14(%rsp)
  mov    %r8d,0x10(%rsp)
  call   <merge@plt>
  mov    0x14(%rsp),%r9d
  mov    0x10(%rsp),%r8d
L146:
  lea    0x1(%r9),%r10d
  cmp    %r10d,%r13d
  je     L12
  mov    %r13d,%eax
  mov    %r9d,0x1c(%rsp)
  sub    %r10d,%eax
  mov    %r8d,0x18(%rsp)
  mov    %eax,%edi
  mov    %r10d,0x10(%rsp)
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  mov    0x10(%rsp),%r10d
  mov    %r12,%rdi
  lea    (%r10,%rax,1),%r11d
  mov    %r10d,%esi
  mov    %r10d,0x14(%rsp)
  mov    %r11d,%edx
  mov    %r11d,0x10(%rsp)
  call   <mergeSort>
  mov    0x10(%rsp),%r11d
  mov    %r13d,%edx
  mov    %r12,%rdi
  lea    0x1(%r11),%esi
  call   <mergeSort>
  mov    0x10(%rsp),%edx
  mov    0x14(%rsp),%esi
  mov    %r13d,%ecx
  mov    %r12,%rdi
  call   <merge@plt>
  mov    0x1c(%rsp),%r9d
  mov    0x18(%rsp),%r8d
L12:
  mov    %r13d,%ecx
  mov    %r9d,%edx
  mov    %r8d,%esi
  mov    %r12,%rdi
  call   <merge@plt>
L38:
  mov    0xc(%rsp),%edx
  mov    0x8(%rsp),%esi
  mov    %r13d,%ecx
  mov    %r12,%rdi
  call   <merge@plt>
L56:
  mov    %r13d,%ecx
  mov    %ebx,%edx
  mov    %r15d,%esi
  mov    %r12,%rdi
  call   <merge@plt>
L198:
  mov    %r13d,%ecx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <merge@plt>
L148:
  add    $0x28,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int *mergeSort(int *A, int p, int q) {
  if (p == q) {
    return A;
  }
  int m = p + floor((q - p) / 2);
  mergeSort(A, p, m);
  mergeSort(A, m + 1, q);
  merge(A, p, m, q);
  return A;
}
```