user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<merge>:
  endbr64
  push   %r12
  mov    %rdi,%r9
  mov    %ecx,%r11d
  push   %rbp
  push   %rbx
  cmp    %r8d,%edx
  jg     L142
  movslq %edx,%rax
  mov    %r8d,%ebx
  lea    0x0(,%rax,4),%rcx
  sub    %edx,%ebx
  lea    (%rsi,%rcx,1),%r10
  lea    0x4(%rdi,%rcx,1),%rbp
  mov    %r10,%rdi
  sub    %rbp,%rdi
  cmp    $0x8,%rdi
  jbe    L181
  cmp    $0x2,%ebx
  jbe    L181
  add    $0x1,%ebx
  add    %r9,%rcx
  xor    %eax,%eax
  mov    %ebx,%edi
  shr    $0x2,%edi
  shl    $0x4,%rdi
  nopw   0x0(%rax,%rax,1)
L235:
  movdqu (%rcx,%rax,1),%xmm0
  movups %xmm0,(%r10,%rax,1)
  add    $0x10,%rax
  cmp    %rdi,%rax
  jne    L235
  mov    %ebx,%eax
  and    $0xfffffffc,%eax
  lea    (%rax,%rdx,1),%ecx
  cmp    %eax,%ebx
  je     L142
  movslq %ecx,%rax
  mov    (%r9,%rax,4),%edi
  mov    %edi,(%rsi,%rax,4)
  lea    0x1(%rcx),%eax
  cmp    %r8d,%eax
  jg     L142
  cltq
  add    $0x2,%ecx
  mov    (%r9,%rax,4),%r10d
  lea    0x0(,%rax,4),%rdi
  mov    %r10d,(%rsi,%rax,4)
  cmp    %ecx,%r8d
  jl     L142
  mov    0x4(%r9,%rdi,1),%eax
  mov    %eax,0x4(%rsi,%rdi,1)
L142:
  lea    0x1(%r11),%ecx
  cmp    %r11d,%edx
  jg     L254
  lea    0x1(%rdx),%eax
  movslq %edx,%rbp
  cltq
  cmp    %ecx,%r8d
  jl     L254
  nopw   0x0(%rax,%rax,1)
L219:
  movslq %ecx,%rbx
  mov    (%rsi,%rbp,4),%r10d
  mov    %eax,%r12d
  mov    (%rsi,%rbx,4),%edi
  cmp    %r10d,%edi
  jl     L95
L98:
  mov    %r10d,-0x4(%r9,%rax,4)
  add    $0x1,%edx
  add    $0x1,%rax
  cmp    %ecx,%r8d
  jl     L177
  cmp    %edx,%r11d
  jl     L177
  movslq %edx,%rbp
  mov    (%rsi,%rbx,4),%edi
  mov    %eax,%r12d
  mov    (%rsi,%rbp,4),%r10d
  cmp    %r10d,%edi
  jge    L98
L95:
  mov    %edi,-0x4(%r9,%rax,4)
  add    $0x1,%ecx
  add    $0x1,%rax
  cmp    %edx,%r11d
  jl     L177
  cmp    %ecx,%r8d
  jge    L219
L177:
  sub    %edx,%r11d
  js     L173
  movslq %r12d,%rax
  lea    (%r9,%rax,4),%rdi
  movslq %edx,%rax
  lea    0x4(,%rax,4),%rax
  mov    %rdi,%rcx
  lea    (%rsi,%rax,1),%r8
  sub    %r8,%rcx
  cmp    $0x8,%rcx
  jbe    L152
  cmp    $0x2,%r11d
  jbe    L152
  lea    0x1(%r11),%r10d
  lea    -0x4(%rsi,%rax,1),%r8
  xor    %eax,%eax
  mov    %r10d,%ecx
  shr    $0x2,%ecx
  shl    $0x4,%rcx
  cs nopw 0x0(%rax,%rax,1)
L13:
  movdqu (%r8,%rax,1),%xmm1
  movups %xmm1,(%rdi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rcx
  jne    L13
  mov    %r10d,%eax
  and    $0xfffffffc,%eax
  and    $0x3,%r10d
  je     L173
  lea    (%rdx,%rax,1),%ecx
  movslq %ecx,%rcx
  mov    (%rsi,%rcx,4),%edi
  lea    (%r12,%rax,1),%ecx
  movslq %ecx,%rcx
  mov    %edi,(%r9,%rcx,4)
  lea    0x1(%rax),%ecx
  cmp    %r11d,%ecx
  jg     L173
  lea    (%rcx,%rdx,1),%edi
  add    %r12d,%ecx
  add    $0x2,%eax
  movslq %edi,%rdi
  movslq %ecx,%rcx
  mov    (%rsi,%rdi,4),%edi
  mov    %edi,(%r9,%rcx,4)
  cmp    %eax,%r11d
  jl     L173
  add    %eax,%edx
  add    %r12d,%eax
  movslq %edx,%rdx
  cltq
  mov    (%rsi,%rdx,4),%edx
  mov    %edx,(%r9,%rax,4)
L173:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L181:
  mov    (%r9,%rax,4),%ecx
  mov    %ecx,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r8d
  jl     L142
  mov    (%r9,%rax,4),%ecx
  mov    %ecx,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r8d
  jge    L181
  jmp    L142
  nopl   0x0(%rax)
L152:
  movslq %r11d,%r11
  lea    -0x4(%rsi,%rax,1),%rcx
  xor    %eax,%eax
  lea    0x4(,%r11,4),%r8
  nopw   0x0(%rax,%rax,1)
L60:
  mov    (%rcx,%rax,1),%edx
  mov    %edx,(%rdi,%rax,1)
  add    $0x4,%rax
  cmp    %r8,%rax
  jne    L60
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L254:
  mov    %edx,%r12d
  jmp    L177
```

assistant: ```c
void merge(int array[], int my[], int start, int middle, int end) {
  int i;
  int left, right;
  int current;
  int remaining;
  for (i = start; i <= end; i++)
    my[i] = array[i];
  current = start;
  left = start;
  right = middle + 1;
  while (left <= middle && right <= end) {
    if (my[left] <= my[right]) {
      array[current++] = my[left++];
    } else {
      array[current++] = my[right++];
    }
  }
  remaining = middle - left;
  for (i = 0; i <= remaining; i++)
    array[current + i] = my[left + i];
}
```