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

```asm
<doMerge>:
  endbr64
  push   %rbp
  mov    %esi,%r8d
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  mov    %ecx,%r14d
  lea    0x1(%rdx),%ecx
  push   %r13
  mov    %rdi,%r13
  mov    %edx,%edi
  push   %r12
  push   %rbx
  mov    %ecx,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %r14d,%eax
  sub    %esi,%eax
  mov    %rsp,%rsi
  add    $0x1,%eax
  cltq
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L18
L114:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L114
L18:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L121
L75:
  mov    %rsp,%r9
  mov    %r8d,%r12d
  cmp    %edi,%r8d
  jg     L32
  cmp    %r14d,%ecx
  jg     L32
  mov    $0x1,%eax
  movslq %r8d,%r11
  movslq %ecx,%r10
L85:
  mov    0x0(%r13,%r11,4),%esi
  mov    0x0(%r13,%r10,4),%edx
  movslq %eax,%r15
  cmp    %edx,%esi
  jg     L104
  mov    %esi,-0x4(%r9,%rax,4)
  add    $0x1,%r12d
  add    $0x1,%rax
  cmp    %ebx,%r14d
  jl     L22
  cmp    %edi,%r12d
  jg     L22
  movslq %r12d,%r11
  jmp    L85
  nopl   (%rax)
L104:
  add    $0x1,%ebx
  mov    %edx,-0x4(%r9,%rax,4)
  add    $0x1,%rax
  cmp    %r14d,%ebx
  jg     L22
  cmp    %r12d,%edi
  jl     L144
  movslq %ebx,%r10
  jmp    L85
L32:
  xor    %r15d,%r15d
  xchg   %ax,%ax
L22:
  mov    %ecx,-0x50(%rbp)
  cmp    %r12d,%edi
  jl     L144
  movslq %r15d,%rax
  sub    %r12d,%edi
  mov    %r8d,-0x4c(%rbp)
  lea    (%r9,%rax,4),%r10
  movslq %r12d,%rax
  lea    0x4(,%rdi,4),%rdx
  mov    %r9,-0x48(%rbp)
  lea    0x0(%r13,%rax,4),%rsi
  mov    %r10,%rdi
  call   <memcpy@plt>
  mov    -0x50(%rbp),%ecx
  mov    -0x4c(%rbp),%r8d
  mov    -0x48(%rbp),%r9
  add    %r15d,%ecx
  sub    %r12d,%ecx
  movslq %ecx,%r15
L144:
  cmp    %ebx,%r14d
  jl     L159
  mov    %r14d,%eax
  lea    (%r9,%r15,4),%rdi
  mov    %r8d,-0x4c(%rbp)
  sub    %ebx,%eax
  movslq %ebx,%rbx
  mov    %r9,-0x48(%rbp)
  lea    0x4(,%rax,4),%rdx
  lea    0x0(%r13,%rbx,4),%rsi
  call   <memcpy@plt>
  mov    -0x48(%rbp),%r9
  mov    -0x4c(%rbp),%r8d
L159:
  cmp    %r14d,%r8d
  jg     L116
  movslq %r8d,%rax
  sub    %r8d,%r14d
  mov    %r9,%rsi
  lea    0x0(%r13,%rax,4),%rdi
  lea    0x4(,%r14,4),%rdx
  call   <memcpy@plt>
L116:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L10
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L121:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L75
L10:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void doMerge(int *data, int left, int midd, int right) {
  int li = left;
  int ri = midd + 1;
  int ti = 0;
  int tmpArr[right - left + 1];
  while (li <= midd && ri <= right) {
    if (data[li] <= data[ri]) {
      tmpArr[ti++] = data[li++];
    } else {
      tmpArr[ti++] = data[ri++];
    }
  }
  while (li <= midd) {
    tmpArr[ti++] = data[li++];
  }
  while (ri <= right) {
    tmpArr[ti++] = data[ri++];
  }
  for (ti = 0; left <= right; ti++) {
    data[left++] = tmpArr[ti];
  }
}
```