user: 下面的汇编指令对应的C源代码是什么：

```asm
<mergesort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    -0x40(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  jae    L77
  mov    -0x40(%rbp),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  shr    %rax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mergesort>
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rcx
  mov    -0x48(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mergesort>
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  cltq
  mov    %rax,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  mov    -0x48(%rbp),%rax
  sub    -0x40(%rbp),%rax
  add    $0x1,%rax
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <xmalloc@plt>
  mov    %rax,-0x8(%rbp)
  jmp    L88
L129:
  mov    -0x20(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jg     L11
  mov    -0x20(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addq   $0x1,-0x20(%rbp)
  jmp    L30
L11:
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addq   $0x1,-0x18(%rbp)
L30:
  addq   $0x1,-0x10(%rbp)
L88:
  mov    -0x24(%rbp),%eax
  cltq
  cmp    %rax,-0x20(%rbp)
  ja     L3
  mov    -0x18(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  jbe    L129
  jmp    L3
L5:
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addq   $0x1,-0x10(%rbp)
  addq   $0x1,-0x18(%rbp)
L3:
  mov    -0x18(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  jbe    L5
  jmp    L61
L120:
  mov    -0x20(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addq   $0x1,-0x10(%rbp)
  addq   $0x1,-0x20(%rbp)
L61:
  mov    -0x24(%rbp),%eax
  cltq
  cmp    %rax,-0x20(%rbp)
  jbe    L120
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  jmp    L42
L57:
  mov    -0x20(%rbp),%rax
  sub    -0x40(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x20(%rbp),%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x38(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addq   $0x1,-0x20(%rbp)
L42:
  mov    -0x20(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  jbe    L57
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  jmp    L15
L77:
  nop
L15:
  leave
  ret
```

assistant: ```c
void mergesort(int *array, size_t first, size_t last) {
  int middle;
  if (first >= last)
    return;
  middle = (first + last) / 2;
  mergesort(array, first, middle);
  mergesort(array, middle + 1, last);
  int *temp;
  size_t i = first, j = middle + 1, tp = 0;
  temp = (int *)xmalloc(sizeof(int) * (last - first + 1));
  while (i <= middle && j <= last) {
    if (array[i] <= array[j]) {
      temp[tp] = array[i];
      ++i;
    } else {
      temp[tp] = array[j];
      ++j;
    }
    ++tp;
  }
  while (j <= last) {
    temp[tp] = array[j];
    ++tp;
    j++;
  }
  while (i <= middle) {
    temp[tp] = array[i];
    ++tp;
    i++;
  }
  i = first;
  while (i <= last) {
    array[i] = temp[i - first];
    i++;
  }
  free(temp);
}
```