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

```asm
<merge_sort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x28(%rsp)
  mov    %rdx,0x18(%rsp)
  cmp    $0x1,%esi
  jle    L48
  mov    %rdi,%r14
  mov    %esi,%eax
  shr    $0x1f,%eax
  add    %esi,%eax
  mov    %eax,%r15d
  sar    %r15d
  mov    %r15d,0x24(%rsp)
  sub    %r15d,%esi
  mov    %esi,%ebp
  movslq %r15d,%r12
  lea    0x0(,%r15,8),%ebx
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    %ebp,0x20(%rsp)
  shl    $0x3,%ebp
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %rax,0x10(%rsp)
  mov    %ebx,%edx
  mov    %r14,%rsi
  mov    %r13,0x8(%rsp)
  mov    %r13,%rdi
  call   <memcpy@plt>
  mov    %r14,%r13
  lea    (%r14,%r12,8),%rsi
  mov    %ebp,%edx
  mov    0x10(%rsp),%r14
  mov    %r14,%rdi
  call   <memcpy@plt>
  mov    0x18(%rsp),%rbx
  mov    %rbx,%rdx
  mov    %r15d,%esi
  mov    0x8(%rsp),%rdi
  call   <merge_sort>
  mov    %rbx,%rdx
  mov    0x20(%rsp),%ebp
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <merge_sort>
  test   %ebp,%ebp
  jle    L38
  mov    $0x1,%r12d
  mov    $0x0,%ebx
  mov    $0x0,%ebp
  jmp    L30
L58:
  add    $0x1,%ebp
  mov    %r12d,%eax
  mov    (%r15),%rdx
  mov    %rdx,0x0(%r13)
L39:
  add    $0x1,%r12d
  add    $0x8,%r13
  cmp    0x24(%rsp),%ebp
  jge    L89
  cmp    0x20(%rsp),%ebx
  jge    L89
L30:
  movslq %ebx,%rax
  mov    0x10(%rsp),%rcx
  lea    (%rcx,%rax,8),%r14
  movslq %ebp,%rax
  mov    0x8(%rsp),%rcx
  lea    (%rcx,%rax,8),%r15
  mov    (%r14),%rsi
  mov    (%r15),%rdi
  mov    0x18(%rsp),%rax
  call   *%rax
  test   %eax,%eax
  jle    L58
  add    $0x1,%ebx
  mov    %r12d,%eax
  mov    (%r14),%rdx
  mov    %rdx,0x0(%r13)
  jmp    L39
L89:
  cmp    0x24(%rsp),%ebp
  jl     L87
  cmp    0x20(%rsp),%ebx
  jl     L68
L82:
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
L48:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L38:
  mov    $0x0,%ebp
  mov    $0x0,%eax
L87:
  mov    0x24(%rsp),%edx
  sub    %ebp,%edx
  shl    $0x3,%edx
  movslq %ebp,%rbp
  mov    0x8(%rsp),%rbx
  lea    (%rbx,%rbp,8),%rsi
  cltq
  mov    0x28(%rsp),%rbx
  lea    (%rbx,%rax,8),%rdi
  call   <memcpy@plt>
  jmp    L82
L68:
  mov    0x20(%rsp),%edx
  sub    %ebx,%edx
  shl    $0x3,%edx
  movslq %ebx,%rbx
  mov    0x10(%rsp),%rcx
  lea    (%rcx,%rbx,8),%rsi
  cltq
  mov    0x28(%rsp),%rbx
  lea    (%rbx,%rax,8),%rdi
  call   <memcpy@plt>
  jmp    L82
```

assistant: ```c
void merge_sort(char **strArr, int len, int (*compar)(const char *, const char *)) {
  if (len <= 1)
    return;
  int leftLen = len / 2;
  int rightLen = len - leftLen;
  char **strArrLeft = malloc(leftLen * sizeof(const char *));
  char **strArrRight = malloc(rightLen * sizeof(const char *));
  memcpy(strArrLeft, &strArr[0], leftLen * sizeof(const char *));
  memcpy(strArrRight, &strArr[leftLen], rightLen * sizeof(const char *));
  merge_sort(strArrLeft, leftLen, compar);
  merge_sort(strArrRight, rightLen, compar);
  int writeInd = 0;
  int leftInd = 0;
  int rightInd = 0;
  while (leftInd < leftLen && rightInd < rightLen) {
    int cmp = compar(strArrLeft[leftInd], strArrRight[rightInd]);
    if (cmp <= 0) {
      strArr[writeInd++] = strArrLeft[leftInd++];
    } else {
      strArr[writeInd++] = strArrRight[rightInd++];
    }
  }
  if (leftInd < leftLen) {
    memcpy(&strArr[writeInd], &strArrLeft[leftInd], (leftLen - leftInd) * sizeof(const char *));
  } else if (rightInd < rightLen) {
    memcpy(&strArr[writeInd], &strArrRight[rightInd], (rightLen - rightInd) * sizeof(const char *));
  }
  free(strArrLeft);
  free(strArrRight);
}
```