user: Demonstrate the C code that generates the assembly output below:

```asm
<ms_inner>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rdx,0x38(%rsp)
  mov    %rcx,0x18(%rsp)
  mov    %r8,0x30(%rsp)
  mov    %rcx,%rax
  sub    %rdx,%rax
  mov    %rax,0x8(%rsp)
  cmp    $0x1,%rax
  ja     L99
L37:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L99:
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  mov    %rdx,%r15
  mov    %rcx,%r14
  mov    %r8,%r12
  shr    %rax
  mov    %rax,%r13
  add    %rdx,%r13
  mov    %r13,0x28(%rsp)
  sub    $0x8,%rsp
  push   0x88(%rsp)
  mov    %r9,0x30(%rsp)
  mov    %r13,%rcx
  call   <ms_inner>
  add    $0x8,%rsp
  push   0x88(%rsp)
  mov    0x30(%rsp),%r9
  mov    %r12,%r8
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <ms_inner>
  mov    %r13,%rsi
  imul   %rbx,%rsi
  add    %rbp,%rsi
  lea    -0x1(%r13),%rdi
  imul   %rbx,%rdi
  add    %rbp,%rdi
  mov    0x30(%rsp),%rdx
  call   *%r12
  add    $0x10,%rsp
  test   %eax,%eax
  jle    L37
  mov    0x80(%rsp),%rax
  mov    %rax,(%rsp)
  mov    $0x0,%ebp
  jmp    L73
L6:
  mov    %rbx,%rsi
  imul   %r13,%rsi
  add    0x10(%rsp),%rsi
  mov    %rbx,%rdx
  mov    (%rsp),%rdi
  call   <memcpy@plt>
  add    $0x1,%r13
  jmp    L83
L70:
  mov    %rbx,%rsi
  imul   %r15,%rsi
  add    0x10(%rsp),%rsi
  mov    %rbx,%rdx
  mov    (%rsp),%rdi
  call   <memcpy@plt>
  add    $0x1,%r15
  jmp    L83
L15:
  mov    %rbx,%rdx
  mov    %r14,%rsi
  mov    (%rsp),%rdi
  call   <memcpy@plt>
  add    $0x1,%r15
L83:
  add    $0x1,%rbp
  add    %rbx,(%rsp)
  cmp    %rbp,0x8(%rsp)
  je     L50
L73:
  cmp    %r15,0x28(%rsp)
  je     L6
  cmp    %r13,0x18(%rsp)
  je     L70
  mov    %rbx,%r12
  imul   %r13,%r12
  mov    0x10(%rsp),%rax
  add    %rax,%r12
  mov    %rbx,%r14
  imul   %r15,%r14
  add    %rax,%r14
  mov    0x20(%rsp),%rdx
  mov    %r12,%rsi
  mov    %r14,%rdi
  mov    0x30(%rsp),%rax
  call   *%rax
  test   %eax,%eax
  jle    L15
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    (%rsp),%rdi
  call   <memcpy@plt>
  add    $0x1,%r13
  jmp    L83
L50:
  mov    0x8(%rsp),%rdx
  imul   %rbx,%rdx
  mov    0x38(%rsp),%rax
  imul   %rbx,%rax
  mov    0x10(%rsp),%rdi
  add    %rax,%rdi
  mov    0x80(%rsp),%rsi
  call   <memcpy@plt>
  jmp    L37
```

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