user: What is the c source code of the assembly code below?

```asm
<ms_inner>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %r8,-0x58(%rbp)
  mov    %r9,-0x60(%rbp)
  mov    -0x50(%rbp),%rax
  sub    -0x48(%rbp),%rax
  cmp    $0x1,%rax
  jbe    L64
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x50(%rbp),%rax
  sub    -0x48(%rbp),%rax
  shr    %rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x60(%rbp),%r8
  mov    -0x58(%rbp),%rdi
  mov    -0x10(%rbp),%rcx
  mov    -0x48(%rbp),%rdx
  mov    -0x40(%rbp),%rsi
  mov    -0x38(%rbp),%rax
  sub    $0x8,%rsp
  push   0x10(%rbp)
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <ms_inner>
  add    $0x10,%rsp
  mov    -0x60(%rbp),%r8
  mov    -0x58(%rbp),%rdi
  mov    -0x50(%rbp),%rcx
  mov    -0x10(%rbp),%rdx
  mov    -0x40(%rbp),%rsi
  mov    -0x38(%rbp),%rax
  sub    $0x8,%rsp
  push   0x10(%rbp)
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <ms_inner>
  add    $0x10,%rsp
  mov    -0x10(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x10(%rbp),%rax
  sub    $0x1,%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x60(%rbp),%rax
  mov    -0x58(%rbp),%rcx
  mov    %rax,%rdx
  call   *%rcx
  test   %eax,%eax
  jle    L64
  mov    -0x50(%rbp),%rax
  sub    -0x48(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  movq   $0x0,-0x30(%rbp)
  jmp    L8
L48:
  mov    -0x28(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jne    L26
  mov    -0x20(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x30(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    %rcx,%rdi
  call   <memcpy@plt>
  addq   $0x1,-0x20(%rbp)
  jmp    L58
L26:
  mov    -0x20(%rbp),%rax
  cmp    -0x50(%rbp),%rax
  jne    L80
  mov    -0x28(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x30(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    %rcx,%rdi
  call   <memcpy@plt>
  addq   $0x1,-0x28(%rbp)
  jmp    L58
L80:
  mov    -0x20(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x28(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x60(%rbp),%rax
  mov    -0x58(%rbp),%rcx
  mov    %rax,%rdx
  call   *%rcx
  test   %eax,%eax
  jle    L62
  mov    -0x20(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x30(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    %rcx,%rdi
  call   <memcpy@plt>
  addq   $0x1,-0x20(%rbp)
  jmp    L58
L62:
  mov    -0x28(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x30(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    %rcx,%rdi
  call   <memcpy@plt>
  addq   $0x1,-0x28(%rbp)
L58:
  addq   $0x1,-0x30(%rbp)
L8:
  mov    -0x30(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  jb     L48
  mov    -0x50(%rbp),%rax
  sub    -0x48(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    -0x48(%rbp),%rdx
  mov    %rdx,%rcx
  imul   -0x40(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rdx,%rcx
  mov    %rax,%rdx
  mov    0x10(%rbp),%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
L64:
  nop
  leave
  ret
```

assistant: ```c
void ms_inner(void *base, const size_t size, const size_t start, const size_t end, int (*compar)(const void *v1, const void *v2, const void *private), const void *private, char *workarray) {
  size_t middle;
  if ((end - start) > 1) {
    char *cbase = (char *)base;
    middle = start + (end - start) / 2;
    ms_inner(base, size, start, middle, compar, private, workarray);
    ms_inner(base, size, middle, end, compar, private, workarray);
    if (compar(cbase + (middle - 1) * size, cbase + middle * size, private) > 0) {
      size_t i, n = end - start;
      size_t ileft = start;
      size_t iright = middle;
      for (i = 0; i < n; i++) {
        if (ileft == middle) {
          memcpy(workarray + i * size, cbase + iright * size, size);
          iright++;
        } else if (iright == end) {
          memcpy(workarray + i * size, cbase + ileft * size, size);
          ileft++;
        } else {
          if (compar(cbase + ileft * size, cbase + iright * size, private) > 0) {
            memcpy(workarray + i * size, cbase + iright * size, size);
            iright++;
          } else {
            memcpy(workarray + i * size, cbase + ileft * size, size);
            ileft++;
          }
        }
      }
      memcpy(cbase + start * size, workarray, (end - start) * size);
    }
  }
}
```