user: Please show me the C implementation that matches the assembly code listed below:

```asm
<merge_sort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %rdx,-0x48(%rbp)
  cmpl   $0x1,-0x3c(%rbp)
  jle    L59
  mov    -0x3c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x3c(%rbp),%eax
  sub    -0x1c(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x38(%rbp),%rax
  add    %rax,%rcx
  mov    -0x8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x48(%rbp),%rdx
  mov    -0x1c(%rbp),%ecx
  mov    -0x10(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <merge_sort>
  mov    -0x48(%rbp),%rdx
  mov    -0x18(%rbp),%ecx
  mov    -0x8(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <merge_sort>
  movl   $0x0,-0x28(%rbp)
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L1
L53:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  mov    -0x48(%rbp),%rcx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jg     L55
  mov    -0x24(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x24(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x28(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%rax
  mov    %rax,(%rdx)
  jmp    L1
L55:
  mov    -0x20(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x20(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x28(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%rax
  mov    %rax,(%rdx)
L1:
  mov    -0x24(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jge    L4
  mov    -0x20(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L53
L4:
  mov    -0x24(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jge    L61
  mov    -0x1c(%rbp),%eax
  sub    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x10(%rbp),%rax
  add    %rax,%rcx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x38(%rbp),%rax
  add    %rsi,%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  jmp    L24
L61:
  mov    -0x20(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jge    L24
  mov    -0x18(%rbp),%eax
  sub    -0x20(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x8(%rbp),%rax
  add    %rax,%rcx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x38(%rbp),%rax
  add    %rsi,%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
L24:
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  jmp    L14
L59:
  nop
L14:
  leave
  ret
```

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);
}
```