user: 请将以下的汇编代码转换成C语言代码：

```asm
<Merge1>:
  endbr64
  push   %r15
  mov    %rsi,%r10
  push   %r14
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x1(%rcx),%ebx
  cmp    %ebx,%edx
  jg     L23
  cmp    %ecx,%r8d
  jl     L23
  lea    0x1(%rdx),%eax
  movslq %edx,%r12
  movslq %ecx,%rbp
  cltq
  nopl   0x0(%rax,%rax,1)
L183:
  mov    (%rdi,%r12,4),%esi
  mov    (%rdi,%rbp,4),%r9d
  mov    %eax,%r11d
  cmp    %esi,%r9d
  jg     L70
L78:
  add    $0x1,%ecx
  mov    %r9d,-0x4(%r10,%rax,4)
  add    $0x1,%rax
  cmp    %ecx,%r8d
  jl     L201
  cmp    %edx,%ebx
  jl     L37
  movslq %ecx,%rbp
  mov    (%rdi,%r12,4),%esi
  mov    %eax,%r11d
  mov    (%rdi,%rbp,4),%r9d
  cmp    %esi,%r9d
  jle    L78
L70:
  add    $0x1,%edx
  mov    %esi,-0x4(%r10,%rax,4)
  add    $0x1,%rax
  cmp    %edx,%ebx
  jl     L37
  cmp    %ecx,%r8d
  jl     L201
  movslq %edx,%r12
  jmp    L183
  nopw   0x0(%rax,%rax,1)
L23:
  mov    %edx,%r11d
  mov    %r13d,%ecx
  cs nopw 0x0(%rax,%rax,1)
L201:
  cmp    %edx,%ebx
  jl     L37
  movslq %r11d,%rbp
  movslq %edx,%rsi
  sub    %edx,%r13d
  shl    $0x2,%rbp
  lea    0x1(%rsi),%rax
  lea    (%r10,%rbp,1),%r9
  lea    0x0(,%rax,4),%r15
  lea    (%rdi,%r15,1),%r14
  mov    %r9,%r12
  sub    %r14,%r12
  cmp    $0x8,%r12
  jbe    L141
  lea    -0x1(%r13),%r12d
  cmp    $0x2,%r12d
  jbe    L141
  mov    %r13d,%esi
  lea    -0x4(%rdi,%r15,1),%rbp
  xor    %eax,%eax
  shr    $0x2,%esi
  shl    $0x4,%rsi
  nopl   0x0(%rax,%rax,1)
L6:
  movdqu 0x0(%rbp,%rax,1),%xmm0
  movups %xmm0,(%r9,%rax,1)
  add    $0x10,%rax
  cmp    %rsi,%rax
  jne    L6
  mov    %r13d,%eax
  and    $0xfffffffc,%eax
  add    %eax,%edx
  lea    (%r11,%rax,1),%esi
  cmp    %eax,%r13d
  je     L257
  movslq %edx,%rbp
  lea    0x1(%rsi),%r9d
  lea    0x1(%rdx),%eax
  movslq %esi,%rsi
  mov    (%rdi,%rbp,4),%ebp
  mov    %ebp,(%r10,%rsi,4)
  cmp    %eax,%ebx
  jl     L257
  cltq
  movslq %r9d,%rsi
  add    $0x2,%edx
  lea    0x0(,%rax,4),%rbp
  mov    (%rdi,%rax,4),%eax
  lea    0x0(,%rsi,4),%r9
  mov    %eax,(%r10,%rsi,4)
  cmp    %edx,%ebx
  jl     L257
  mov    0x4(%rdi,%rbp,1),%eax
  mov    %eax,0x4(%r10,%r9,1)
L257:
  add    %r13d,%r11d
L37:
  cmp    %ecx,%r8d
  jl     L254
  movslq %r11d,%rbx
  movslq %ecx,%rdx
  mov    %r8d,%r9d
  shl    $0x2,%rbx
  lea    0x1(%rdx),%rax
  sub    %ecx,%r9d
  lea    (%r10,%rbx,1),%rsi
  lea    0x0(,%rax,4),%rbp
  lea    (%rdi,%rbp,1),%r13
  mov    %rsi,%r12
  sub    %r13,%r12
  cmp    $0x8,%r12
  jbe    L64
  cmp    $0x2,%r9d
  jbe    L64
  add    $0x1,%r9d
  lea    -0x4(%rdi,%rbp,1),%rbx
  xor    %eax,%eax
  mov    %r9d,%edx
  shr    $0x2,%edx
  shl    $0x4,%rdx
  nopl   0x0(%rax,%rax,1)
L243:
  movdqu (%rbx,%rax,1),%xmm1
  movups %xmm1,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L243
  mov    %r9d,%eax
  and    $0xfffffffc,%eax
  add    %eax,%ecx
  add    %eax,%r11d
  cmp    %eax,%r9d
  je     L254
  movslq %ecx,%rsi
  lea    0x1(%r11),%edx
  lea    0x1(%rcx),%eax
  movslq %r11d,%r11
  mov    (%rdi,%rsi,4),%esi
  mov    %esi,(%r10,%r11,4)
  cmp    %eax,%r8d
  jl     L254
  cltq
  movslq %edx,%rdx
  add    $0x2,%ecx
  lea    0x0(,%rax,4),%r9
  mov    (%rdi,%rax,4),%eax
  lea    0x0(,%rdx,4),%rsi
  mov    %eax,(%r10,%rdx,4)
  cmp    %r8d,%ecx
  jg     L254
  mov    0x4(%rdi,%r9,1),%eax
  mov    %eax,0x4(%r10,%rsi,1)
L254:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L141:
  mov    %rsi,%rdx
  neg    %rdx
  lea    0x0(%rbp,%rdx,4),%r9
  add    %r10,%r9
  jmp    L237
  nopl   0x0(%rax,%rax,1)
L10:
  add    $0x1,%rax
L237:
  mov    (%rdi,%rsi,4),%edx
  mov    %edx,(%r9,%rsi,4)
  mov    %rax,%rsi
  cmp    %eax,%ebx
  jge    L10
  add    %r13d,%r11d
  jmp    L37
  nopw   0x0(%rax,%rax,1)
L64:
  mov    %rdx,%rcx
  neg    %rcx
  lea    (%rbx,%rcx,4),%rcx
  add    %rcx,%r10
  jmp    L69
  nop
L8:
  add    $0x1,%rax
L69:
  mov    (%rdi,%rdx,4),%ecx
  mov    %ecx,(%r10,%rdx,4)
  mov    %rax,%rdx
  cmp    %eax,%r8d
  jge    L8
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void Merge1(int A[], int TmpA[], int L, int R, int RightEnd) {
  int NumElements = RightEnd - L + 1;
  int LeftEnd = R - 1;
  int Tmp = L;
  int i;
  while (L <= LeftEnd && R <= RightEnd) {
    if (A[L] >= A[R])
      TmpA[Tmp++] = A[R++];
    else
      TmpA[Tmp++] = A[L++];
  }
  while (L <= LeftEnd)
    TmpA[Tmp++] = A[L++];
  while (R <= RightEnd)
    TmpA[Tmp++] = A[R++];
  return;
}
```