user: Translate the below assembly code into C programming language:

```asm
<merge_sort_helper>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  cmp    %edx,%esi
  jl     L94
L162:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L105
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L94:
  mov    %edx,%eax
  mov    %edx,%r14d
  mov    %rdi,%r12
  mov    %esi,%ebx
  sub    %esi,%eax
  mov    %rsp,-0x50(%rbp)
  mov    %eax,%r11d
  mov    %eax,-0x44(%rbp)
  sar    %r11d
  add    %esi,%r11d
  mov    %r11d,%edx
  mov    %r11d,-0x58(%rbp)
  call   <merge_sort_helper>
  mov    -0x58(%rbp),%r11d
  mov    %r14d,%edx
  mov    %r12,%rdi
  lea    0x1(%r11),%r13d
  mov    %r13d,%esi
  mov    %r13d,%r15d
  call   <merge_sort_helper>
  mov    -0x44(%rbp),%r11d
  mov    %rsp,%rsi
  lea    0x1(%r11),%eax
  mov    -0x58(%rbp),%r11d
  cltq
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L145
L82:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L82
L145:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L79
L128:
  mov    %rsp,%r9
  cmp    %r11d,%ebx
  jg     L123
  cmp    %r14d,%r13d
  jg     L123
  mov    $0x1,%eax
  jmp    L111
  nopw   0x0(%rax,%rax,1)
L139:
  mov    %esi,%edx
  add    $0x1,%ebx
  mov    %edx,-0x4(%r9,%rax,4)
  add    $0x1,%rax
  cmp    %r11d,%ebx
  jg     L38
L136:
  cmp    %r14d,%r15d
  jg     L38
L111:
  movslq %ebx,%rdx
  movslq %eax,%r8
  mov    (%r12,%rdx,4),%esi
  movslq %r15d,%rdx
  mov    (%r12,%rdx,4),%edx
  cmp    %edx,%esi
  jl     L139
  mov    %edx,-0x4(%r9,%rax,4)
  add    $0x1,%r15d
  add    $0x1,%rax
  cmp    %r11d,%ebx
  jle    L136
L38:
  cmp    %ebx,%r11d
  jl     L120
  movslq %r8d,%rax
  sub    %ebx,%r11d
  mov    %r8d,-0x48(%rbp)
  lea    (%r9,%rax,4),%rdi
  movslq %ebx,%rax
  lea    0x4(,%r11,4),%rdx
  mov    %r9,-0x58(%rbp)
  lea    (%r12,%rax,4),%rsi
  call   <memcpy@plt>
  mov    -0x48(%rbp),%r8d
  mov    -0x58(%rbp),%r9
  lea    0x0(%r13,%r8,1),%r10d
  sub    %ebx,%r10d
  movslq %r10d,%r8
L120:
  cmp    %r15d,%r14d
  jl     L75
  mov    %r14d,%eax
  lea    (%r9,%r8,4),%rdi
  mov    %r9,-0x58(%rbp)
  sub    %r15d,%eax
  movslq %r15d,%r15
  lea    0x4(,%rax,4),%rdx
  lea    (%r12,%r15,4),%rsi
  call   <memcpy@plt>
  mov    -0x58(%rbp),%r9
L75:
  movslq -0x44(%rbp),%r13
  movslq %r14d,%rcx
  mov    %r13,%rax
  lea    0x4(,%r13,4),%rdx
  neg    %rax
  shl    $0x2,%rax
  lea    (%rax,%rcx,4),%rdi
  lea    (%rax,%r13,4),%rsi
  add    %r12,%rdi
  add    %r9,%rsi
  call   <memcpy@plt>
  mov    -0x50(%rbp),%rsp
  jmp    L162
  nopl   (%rax)
L79:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L128
L123:
  xor    %r8d,%r8d
  jmp    L38
L105:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void merge_sort_helper(int *arr, int left, int right) {
  int mid;
  if (left < right) {
    mid = left + (right - left) / 2;
    merge_sort_helper(arr, left, mid);
    merge_sort_helper(arr, mid + 1, right);
    int temp[right - left + 1], i = left, j = mid + 1, k = 0, m;
    while ((i <= mid) && (j <= right)) {
      if (arr[i] < arr[j]) {
        temp[k] = arr[i];
        i++;
        k++;
      } else {
        temp[k] = arr[j];
        j++;
        k++;
      }
    }
    while (i <= mid) {
      temp[k] = arr[i];
      k++;
      i++;
    }
    while (j <= right) {
      temp[k] = arr[j];
      k++;
      j++;
    }
    for (m = right - left; m >= 0; m--) {
      arr[right] = temp[m];
      right--;
    }
  }
}
```