user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<mergeSort>:
  endbr64
  cmp    %edx,%esi
  jl     L23
  ret
  nopl   0x0(%rax)
L23:
  lea    (%rsi,%rdx,1),%eax
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %eax,%r13d
  push   %r12
  shr    $0x1f,%r13d
  mov    %edx,%r12d
  push   %rbp
  add    %eax,%r13d
  mov    %esi,%ebp
  push   %rbx
  sar    %r13d
  sub    $0x18,%rsp
  cmp    %r13d,%esi
  jl     L116
  lea    0x1(%r13),%r15d
  cmp    %r12d,%r15d
  jl     L32
L81:
  add    $0x18,%rsp
  mov    %r13d,%ecx
  mov    %r12d,%edx
  mov    %ebp,%esi
  pop    %rbx
  mov    %r14,%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <merge@plt>
  nopw   0x0(%rax,%rax,1)
L116:
  lea    (%rsi,%r13,1),%eax
  mov    %eax,%r15d
  shr    $0x1f,%r15d
  add    %eax,%r15d
  sar    %r15d
  cmp    %r15d,%esi
  jl     L57
L127:
  lea    0x1(%r15),%ebx
  cmp    %ebx,%r13d
  jg     L29
L77:
  mov    %r15d,%ecx
  mov    %r13d,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <merge@plt>
  lea    0x1(%r13),%r15d
  cmp    %r12d,%r15d
  jge    L81
L32:
  lea    (%r15,%r12,1),%eax
  mov    %eax,%ebx
  shr    $0x1f,%ebx
  add    %eax,%ebx
  sar    %ebx
  cmp    %ebx,%r15d
  jl     L26
L13:
  lea    0x1(%rbx),%r8d
  cmp    %r8d,%r12d
  jg     L121
L51:
  mov    %ebx,%ecx
  mov    %r12d,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <merge@plt>
  jmp    L81
  nopl   0x0(%rax,%rax,1)
L57:
  lea    (%rsi,%r15,1),%eax
  mov    %eax,%ebx
  shr    $0x1f,%ebx
  add    %eax,%ebx
  sar    %ebx
  mov    %ebx,%edx
  call   <mergeSort>
  lea    0x1(%rbx),%esi
  mov    %r15d,%edx
  mov    %r14,%rdi
  call   <mergeSort>
  mov    %ebx,%ecx
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <merge@plt>
  jmp    L127
  cs nopw 0x0(%rax,%rax,1)
L121:
  lea    (%r12,%r8,1),%eax
  mov    %r8d,%esi
  mov    %r14,%rdi
  mov    %r8d,0xc(%rsp)
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %eax,%ecx
  sar    %ecx
  mov    %ecx,%edx
  mov    %ecx,0x8(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%ecx
  mov    %r12d,%edx
  mov    %r14,%rdi
  lea    0x1(%rcx),%esi
  call   <mergeSort>
  mov    0x8(%rsp),%ecx
  mov    0xc(%rsp),%esi
  mov    %r12d,%edx
  mov    %r14,%rdi
  call   <merge@plt>
  jmp    L51
  nopl   (%rax)
L26:
  lea    (%r15,%rbx,1),%eax
  mov    %r15d,%esi
  mov    %r14,%rdi
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %eax,%ecx
  sar    %ecx
  mov    %ecx,%edx
  mov    %ecx,0x8(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%ecx
  mov    %ebx,%edx
  mov    %r14,%rdi
  lea    0x1(%rcx),%esi
  call   <mergeSort>
  mov    0x8(%rsp),%ecx
  mov    %ebx,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <merge@plt>
  jmp    L13
  nopl   (%rax)
L29:
  lea    0x0(%r13,%rbx,1),%eax
  mov    %ebx,%esi
  mov    %r14,%rdi
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %eax,%ecx
  sar    %ecx
  mov    %ecx,%edx
  mov    %ecx,0x8(%rsp)
  call   <mergeSort>
  mov    0x8(%rsp),%ecx
  mov    %r13d,%edx
  mov    %r14,%rdi
  lea    0x1(%rcx),%esi
  call   <mergeSort>
  mov    0x8(%rsp),%ecx
  mov    %r13d,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <merge@plt>
  jmp    L77
```

assistant: ```c
void mergeSort(int *A, int f, int l) {
  int mid;
  mid = (f + l) / 2;
  if (f < l) {
    mergeSort(A, f, mid);
    mergeSort(A, mid + 1, l);
    merge(A, f, l, mid);
  }
}
```