user: 请从给定的汇编指令推导出C源代码:

```asm
<merge_array>:
  endbr64
  mov    %rdi,%r9
  mov    %rsi,%rdi
  mov    %edx,%esi
  cmp    %r8d,%edx
  jg     L47
  push   %r14
  mov    %ecx,%r10d
  lea    0x1(%rcx),%edx
  push   %r13
  push   %r12
  mov    %r8d,%r12d
  push   %rbp
  sub    %esi,%r12d
  push   %rbx
  movslq %esi,%rbx
  lea    0x0(,%rbx,4),%r11
  lea    0x1(%rbx),%rcx
  lea    (%rdi,%r11,1),%rbp
  lea    0x4(%r9,%r11,1),%r14
  mov    %rcx,%rax
  mov    %rbp,%r13
  sub    %r14,%r13
  cmp    $0x8,%r13
  jbe    L86
  cmp    $0x2,%r12d
  jbe    L86
  add    $0x1,%r12d
  add    %r9,%r11
  xor    %ecx,%ecx
  mov    %r12d,%ebx
  shr    $0x2,%ebx
  shl    $0x4,%rbx
  nopl   0x0(%rax)
L156:
  movdqu (%r11,%rcx,1),%xmm0
  movups %xmm0,0x0(%rbp,%rcx,1)
  add    $0x10,%rcx
  cmp    %rbx,%rcx
  jne    L156
  mov    %r12d,%ecx
  and    $0xfffffffc,%ecx
  lea    (%rcx,%rsi,1),%r11d
  cmp    %ecx,%r12d
  je     L175
  movslq %r11d,%rcx
  mov    (%r9,%rcx,4),%ebx
  mov    %ebx,(%rdi,%rcx,4)
  lea    0x1(%r11),%ecx
  cmp    %ecx,%r8d
  jl     L175
  movslq %ecx,%rcx
  add    $0x2,%r11d
  mov    (%r9,%rcx,4),%ebp
  lea    0x0(,%rcx,4),%rbx
  mov    %ebp,(%rdi,%rcx,4)
  cmp    %r11d,%r8d
  jl     L175
  mov    0x4(%r9,%rbx,1),%ecx
  mov    %ecx,0x4(%rdi,%rbx,1)
  nopw   0x0(%rax,%rax,1)
L175:
  cmp    %esi,%r10d
  jge    L171
L56:
  lea    0x1(%rdx),%ecx
  movslq %edx,%rdx
  mov    %eax,%ebp
  mov    (%rdi,%rdx,4),%edx
  mov    %edx,-0x4(%r9,%rax,4)
  cmp    %eax,%r8d
  jl     L114
  mov    %r8d,%ebx
  movslq %ecx,%rdx
  sub    %eax,%ebx
  cltq
  lea    0x4(,%rdx,4),%rdx
  lea    0x0(,%rax,4),%rsi
  lea    (%rdi,%rdx,1),%r11
  lea    (%r9,%rsi,1),%r12
  mov    %r12,%r10
  sub    %r11,%r10
  cmp    $0x8,%r10
  jbe    L7
  cmp    $0x2,%ebx
  jbe    L7
  cmp    %ebp,%r8d
  lea    0x1(%rbx),%eax
  lea    -0x4(%rdi,%rdx,1),%r10
  mov    $0x1,%esi
  cmovl  %esi,%eax
  xor    %edx,%edx
  mov    %eax,%r11d
  shr    $0x2,%r11d
  jmp    1040 <merge_array.cold>
  cs nopw 0x0(%rax,%rax,1)
L98:
  add    $0x1,%rcx
L86:
  mov    (%r9,%rbx,4),%r11d
  mov    %r11d,(%rdi,%rbx,4)
  mov    %rcx,%rbx
  cmp    %ecx,%r8d
  jge    L98
  cmp    %esi,%r10d
  jl     L56
  nopl   (%rax)
L171:
  movslq %esi,%rcx
  mov    (%rdi,%rcx,4),%ecx
  cmp    %edx,%r8d
  jl     L185
  movslq %edx,%r11
  mov    (%rdi,%r11,4),%r11d
  cmp    %ecx,%r11d
  jg     L185
  mov    %r11d,%ecx
  add    $0x1,%edx
  mov    %ecx,-0x4(%r9,%rax,4)
  cmp    %eax,%r8d
  jl     L114
L73:
  add    $0x1,%rax
  jmp    L175
L185:
  mov    %ecx,-0x4(%r9,%rax,4)
  add    $0x1,%esi
  cmp    %eax,%r8d
  jge    L73
L114:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  cs nopw 0x0(%rax,%rax,1)
L47:
  ret
L7:
  sub    $0x4,%rdx
  sub    %rsi,%rdx
  add    %rdi,%rdx
  jmp    L103
```

assistant: ```c
void merge_array(int *elements, int *aux_elements, int low, int mid, int high) {
  int i = 0;
  int l1 = low;
  int l2 = mid + 1;
  for (i = low; i <= high; i++) {
    aux_elements[i] = elements[i];
  }
  for (i = low; i <= high; i++) {
    if (l1 > mid) {
      elements[i] = aux_elements[l2++];
    } else if (l2 > high) {
      elements[i] = aux_elements[l1++];
    } else if (aux_elements[l1] < aux_elements[l2]) {
      elements[i] = aux_elements[l1++];
    } else {
      elements[i] = aux_elements[l2++];
    }
  }
}
```