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

```asm
<sort>:
  endbr64
  cmp    %edx,%ecx
  jg     L98
  ret
  nopl   0x0(%rax)
L98:
  mov    %ecx,%eax
  push   %r15
  sub    %edx,%eax
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %eax,%r13d
  push   %r12
  sar    %r13d
  mov    %edx,%r12d
  push   %rbp
  add    %edx,%r13d
  mov    %rsi,%rbp
  push   %rbx
  mov    %ecx,%ebx
  sub    $0x18,%rsp
  cmp    %r13d,%edx
  jl     L110
  lea    0x1(%r13),%r15d
  cmp    %ebx,%r15d
  jl     L100
L91:
  add    $0x18,%rsp
  mov    %ebx,%r8d
  mov    %r13d,%ecx
  mov    %r12d,%edx
  pop    %rbx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <merge@plt>
  cs nopw 0x0(%rax,%rax,1)
L110:
  mov    %eax,%r9d
  sar    $0x2,%r9d
  add    %edx,%r9d
  cmp    %r9d,%edx
  jl     L85
L7:
  lea    0x1(%r9),%r15d
  cmp    %r15d,%r13d
  jg     L33
L41:
  mov    %r13d,%r8d
  mov    %r9d,%ecx
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  lea    0x1(%r13),%r15d
  call   <merge@plt>
  cmp    %ebx,%r15d
  jge    L91
L100:
  mov    %ebx,%eax
  sub    %r15d,%eax
  mov    %eax,%r9d
  sar    %r9d
  add    %r15d,%r9d
  cmp    %r9d,%r15d
  jl     L124
L57:
  lea    0x1(%r9),%r10d
  cmp    %r10d,%ebx
  jg     L51
L39:
  mov    %ebx,%r8d
  mov    %r9d,%ecx
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <merge@plt>
  jmp    L91
  nopw   0x0(%rax,%rax,1)
L85:
  sar    $0x3,%eax
  mov    %r9d,0x4(%rsp)
  lea    (%rax,%rdx,1),%r15d
  mov    %r15d,%ecx
  call   <sort>
  mov    0x4(%rsp),%ecx
  lea    0x1(%r15),%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <sort>
  mov    0x4(%rsp),%r8d
  mov    %r15d,%ecx
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <merge@plt>
  mov    0x4(%rsp),%r9d
  jmp    L7
  nop
L51:
  mov    %ebx,%r11d
  mov    %r10d,%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  sub    %r10d,%r11d
  mov    %r9d,0xc(%rsp)
  sar    %r11d
  mov    %r10d,0x8(%rsp)
  add    %r10d,%r11d
  mov    %r11d,%ecx
  mov    %r11d,0x4(%rsp)
  call   <sort>
  mov    0x4(%rsp),%r11d
  mov    %ebx,%ecx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  lea    0x1(%r11),%edx
  call   <sort>
  mov    0x4(%rsp),%ecx
  mov    0x8(%rsp),%edx
  mov    %ebx,%r8d
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <merge@plt>
  mov    0xc(%rsp),%r9d
  jmp    L39
  nopw   0x0(%rax,%rax,1)
L124:
  sar    $0x2,%eax
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  lea    (%rax,%r15,1),%r10d
  mov    %r9d,0xc(%rsp)
  mov    %r10d,%ecx
  mov    %r10d,0x4(%rsp)
  call   <sort>
  mov    0x4(%rsp),%r10d
  mov    %rbp,%rsi
  mov    %r14,%rdi
  mov    0xc(%rsp),%r9d
  lea    0x1(%r10),%edx
  mov    %r10d,0x8(%rsp)
  mov    %r9d,%ecx
  mov    %r9d,0x4(%rsp)
  call   <sort>
  mov    0x4(%rsp),%r8d
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    0x8(%rsp),%ecx
  mov    %r14,%rdi
  call   <merge@plt>
  mov    0x4(%rsp),%r9d
  jmp    L57
  nopl   0x0(%rax)
L33:
  mov    %r13d,%r10d
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  sub    %r15d,%r10d
  mov    %r9d,0x8(%rsp)
  sar    %r10d
  add    %r15d,%r10d
  mov    %r10d,%ecx
  mov    %r10d,0x4(%rsp)
  call   <sort>
  mov    0x4(%rsp),%r10d
  mov    %r13d,%ecx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  lea    0x1(%r10),%edx
  call   <sort>
  mov    0x4(%rsp),%ecx
  mov    %r13d,%r8d
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <merge@plt>
  mov    0x8(%rsp),%r9d
  jmp    L41
```

assistant: ```c
void sort(int a[], int aux[], int lo, int hi) {
  if (hi > lo) {
    int mid = lo + (hi - lo) / 2;
    sort(a, aux, lo, mid);
    sort(a, aux, mid + 1, hi);
    merge(a, aux, lo, mid, hi);
  }
}
```