user: What is the c source code of the assembly code below?

```asm
<merge>:
  endbr64
  push   %rbp
  mov    %esi,%r11d
  mov    %rdi,%r9
  mov    %rdx,%r10
  mov    %ecx,%esi
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  test   %r11d,%r11d
  je     L52
  test   %esi,%esi
  je     L143
  lea    (%r11,%rsi,1),%r14d
  mov    %rsp,%rcx
  movslq %r14d,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L157
L32:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L32
L157:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L11
  orq    $0x0,-0x8(%rsp,%rdx,1)
L11:
  mov    %rsp,%r13
  test   %r14d,%r14d
  jle    L143
  mov    %r14d,%r14d
  mov    %r13,%rax
  xor    %ecx,%ecx
  xor    %edi,%edi
  lea    0x0(%r13,%r14,4),%r12
  jmp    L232
  xchg   %ax,%ax
L164:
  movslq %edi,%rdx
  movslq %ecx,%r8
  mov    (%r9,%rdx,4),%edx
  mov    (%r10,%r8,4),%r8d
  cmp    %r8d,%edx
  jge    L231
  add    $0x1,%edi
  mov    %edx,%r8d
L243:
  mov    %r8d,(%rax)
  add    $0x4,%rax
  cmp    %r12,%rax
  je     L111
L232:
  cmp    %edi,%r11d
  setg   %r8b
  cmp    %ecx,%esi
  jle    L16
  test   %r8b,%r8b
  jne    L164
  cmp    %ecx,%esi
  jle    L16
L210:
  movslq %ecx,%rdx
  mov    (%r10,%rdx,4),%r8d
L231:
  mov    %r8d,(%rax)
  add    $0x4,%rax
  add    $0x1,%ecx
  cmp    %r12,%rax
  jne    L232
L111:
  lea    0x0(,%r14,4),%rdx
  mov    %r13,%rsi
  mov    %r9,%rdi
  call   <memcpy@plt>
L143:
  mov    %rbx,%rsp
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L205
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
  nopl   (%rax)
L52:
  test   %esi,%esi
  jle    L143
  lea    0x4(%rdx),%rdx
  mov    %rdi,%rax
  sub    %rdx,%rax
  cmp    $0x8,%rax
  jbe    L223
  lea    -0x1(%rsi),%eax
  cmp    $0x2,%eax
  jbe    L223
  mov    %esi,%edx
  xor    %eax,%eax
  shr    $0x2,%edx
  shl    $0x4,%rdx
  nop
L228:
  movdqu (%r10,%rax,1),%xmm0
  movups %xmm0,(%r9,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L228
  mov    %esi,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%sil
  je     L143
  mov    %eax,%ecx
  mov    (%r10,%rcx,4),%edi
  lea    0x0(,%rcx,4),%rdx
  mov    %edi,(%r9,%rcx,4)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%esi
  jle    L143
  mov    0x4(%r10,%rdx,1),%ecx
  add    $0x2,%eax
  mov    %ecx,0x4(%r9,%rdx,1)
  cmp    %eax,%esi
  jle    L143
  mov    0x8(%r10,%rdx,1),%eax
  mov    %eax,0x8(%r9,%rdx,1)
  jmp    L143
L16:
  test   %r8b,%r8b
  je     L210
  movslq %edi,%rdx
  add    $0x1,%edi
  mov    (%r9,%rdx,4),%r8d
  jmp    L243
  nopl   0x0(%rax,%rax,1)
L223:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L40:
  mov    (%r10,%rax,4),%edx
  mov    %edx,(%r9,%rax,4)
  add    $0x1,%rax
  cmp    %rsi,%rax
  jne    L40
  jmp    L143
L205:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void merge(int *nums1, int m, int *nums2, int n) {
  int i = 0;
  int j = 0;
  int k = 0;
  if (m == 0) {
    for (; i < n; i++) {
      nums1[i] = nums2[i];
    }
    return;
  }
  if (n == 0) {
    return;
  }
  int temp[m + n];
  for (; i < m + n; i++) {
    if (j < m && k < n) {
      if (nums1[j] < nums2[k]) {
        temp[i] = nums1[j];
        j++;
      } else {
        temp[i] = nums2[k];
        k++;
      }
    } else if (j < m && k >= n) {
      temp[i] = nums1[j];
      j++;
    } else {
      temp[i] = nums2[k];
      k++;
    }
  }
  i = 0;
  for (; i < m + n; i++) {
    nums1[i] = temp[i];
  }
}
```