user: 请将以下的汇编代码转换成C语言代码:

```asm
<mergeSort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x100,%rsp
  mov    %rdi,-0xe8(%rbp)
  mov    %esi,-0xec(%rbp)
  mov    %edx,-0xf0(%rbp)
  mov    %ecx,-0xf4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0xec(%rbp),%eax
  mov    %eax,-0xd4(%rbp)
  mov    -0xec(%rbp),%eax
  mov    %eax,-0xe0(%rbp)
  mov    -0xf0(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0xdc(%rbp)
  jmp    L138
L5:
  mov    -0xd4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xe8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0xe8(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jg     L74
  mov    -0xd4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xe8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xe0(%rbp),%eax
  cltq
  mov    %edx,-0xd0(%rbp,%rax,4)
  addl   $0x1,-0xd4(%rbp)
  jmp    L25
L74:
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xe8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xe0(%rbp),%eax
  cltq
  mov    %edx,-0xd0(%rbp,%rax,4)
  addl   $0x1,-0xdc(%rbp)
L25:
  addl   $0x1,-0xe0(%rbp)
L138:
  mov    -0xd4(%rbp),%eax
  cmp    -0xf0(%rbp),%eax
  jg     L31
  mov    -0xdc(%rbp),%eax
  cmp    -0xf4(%rbp),%eax
  jle    L5
L31:
  mov    -0xd4(%rbp),%eax
  cmp    -0xf0(%rbp),%eax
  jle    L29
  mov    -0xdc(%rbp),%eax
  mov    %eax,-0xd8(%rbp)
  jmp    L15
L66:
  mov    -0xd8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xe8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xe0(%rbp),%eax
  cltq
  mov    %edx,-0xd0(%rbp,%rax,4)
  addl   $0x1,-0xe0(%rbp)
  addl   $0x1,-0xd8(%rbp)
L15:
  mov    -0xd8(%rbp),%eax
  cmp    -0xf4(%rbp),%eax
  jle    L66
  jmp    L45
L29:
  mov    -0xd4(%rbp),%eax
  mov    %eax,-0xd8(%rbp)
  jmp    L23
L11:
  mov    -0xd8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xe8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xe0(%rbp),%eax
  cltq
  mov    %edx,-0xd0(%rbp,%rax,4)
  addl   $0x1,-0xe0(%rbp)
  addl   $0x1,-0xd8(%rbp)
L23:
  mov    -0xd8(%rbp),%eax
  cmp    -0xf0(%rbp),%eax
  jle    L11
L45:
  mov    -0xec(%rbp),%eax
  mov    %eax,-0xd8(%rbp)
  jmp    L58
L53:
  mov    -0xd8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xe8(%rbp),%rax
  add    %rax,%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  mov    -0xd0(%rbp,%rax,4),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0xd8(%rbp)
L58:
  mov    -0xd8(%rbp),%eax
  cmp    -0xf4(%rbp),%eax
  jle    L53
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L125
  call   <__stack_chk_fail@plt>
L125:
  leave
  ret
```

assistant: ```c
void mergeSort(int arr[], int low, int mid, int high) {
  int i, m, k, l, temp[50];
  l = low;
  i = low;
  m = mid + 1;
  while ((l <= mid) && (m <= high)) {
    if (arr[l] <= arr[m]) {
      temp[i] = arr[l];
      l++;
    } else {
      temp[i] = arr[m];
      m++;
    }
    i++;
  }
  if (l > mid) {
    for (k = m; k <= high; k++) {
      temp[i] = arr[k];
      i++;
    }
  } else {
    for (k = l; k <= mid; k++) {
      temp[i] = arr[k];
      i++;
    }
  }
  for (k = low; k <= high; k++) {
    arr[k] = temp[k];
  }
}
```