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

```asm
<NA_merge_sorted_arrays>:
  endbr64
  push   %r14
  mov    %rdi,%r10
  mov    %rcx,%r11
  mov    %rsi,%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  test   %rdx,%rdx
  je     L109
  test   %rcx,%rcx
  je     L109
  xor    %eax,%eax
  xor    %edx,%edx
  xor    %ecx,%ecx
L143:
  mov    (%r10,%rcx,8),%r9
  mov    (%rdi,%rdx,8),%rsi
  add    $0x1,%rax
  cmp    %r9,%rsi
  jbe    L58
  mov    %r9,-0x8(%r8,%rax,8)
  add    $0x1,%rcx
  cmp    %rdx,%r11
  jbe    L40
  cmp    %rcx,%rbx
  ja     L143
  nopl   0x0(%rax)
L213:
  cmp    %rdx,%r11
  jbe    L186
  lea    0x1(%rdx),%rcx
  lea    0x0(,%rax,8),%r10
  mov    %r11,%rbx
  lea    0x0(,%rcx,8),%rsi
  lea    (%r8,%r10,1),%r9
  sub    %rdx,%rbx
  lea    (%rdi,%rsi,1),%rbp
  cmp    %rbp,%r9
  je     L15
  lea    -0x1(%rbx),%rbp
  cmp    $0x2,%rbp
  jbe    L15
  lea    -0x8(%rdi,%rsi,1),%r10
  mov    %rbx,%rsi
  xor    %ecx,%ecx
  shr    %rsi
  shl    $0x4,%rsi
  nop
L51:
  movdqu (%r10,%rcx,1),%xmm1
  movups %xmm1,(%r9,%rcx,1)
  add    $0x10,%rcx
  cmp    %rsi,%rcx
  jne    L51
  mov    %rbx,%rcx
  and    $0xfffffffffffffffe,%rcx
  add    %rcx,%rdx
  add    %rcx,%rax
  cmp    %rcx,%rbx
  je     L186
  mov    (%rdi,%rdx,8),%rdx
  mov    %rdx,(%r8,%rax,8)
L186:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopw   0x0(%rax,%rax,1)
L58:
  mov    %rsi,-0x8(%r8,%rax,8)
  add    $0x1,%rdx
  cmp    %rcx,%rbx
  jbe    L213
  cmp    %rdx,%r11
  ja     L143
L40:
  cmp    %rcx,%rbx
  jbe    L213
  mov    %rbx,%rbp
  lea    0x0(,%rax,8),%r13
  lea    0x1(%rcx),%rsi
  sub    %rcx,%rbp
  lea    (%r8,%r13,1),%r12
  lea    0x0(,%rsi,8),%r9
  lea    -0x1(%rbp),%r14
  cmp    $0x2,%r14
  jbe    L158
  lea    (%r10,%r9,1),%r14
  cmp    %r14,%r12
  je     L158
  lea    -0x8(%r10,%r9,1),%rbx
  mov    %rbp,%r9
  xor    %esi,%esi
  shr    %r9
  shl    $0x4,%r9
  xchg   %ax,%ax
L113:
  movdqu (%rbx,%rsi,1),%xmm0
  movups %xmm0,(%r12,%rsi,1)
  add    $0x10,%rsi
  cmp    %rsi,%r9
  jne    L113
  mov    %rbp,%r9
  and    $0xfffffffffffffffe,%r9
  add    %r9,%rcx
  lea    (%rax,%r9,1),%rsi
  cmp    %r9,%rbp
  je     L226
  mov    (%r10,%rcx,8),%rcx
  mov    %rcx,(%r8,%rsi,8)
L226:
  add    %rbp,%rax
  jmp    L213
  cs nopw 0x0(%rax,%rax,1)
L15:
  neg    %rdx
  lea    (%r10,%rdx,8),%rax
  add    %rax,%r8
  jmp    L85
  nopl   0x0(%rax)
L162:
  add    $0x1,%rcx
L85:
  mov    -0x8(%rdi,%rcx,8),%rax
  mov    %rax,-0x8(%r8,%rcx,8)
  cmp    %r11,%rcx
  jne    L162
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L158:
  neg    %rcx
  lea    0x0(%r13,%rcx,8),%r9
  add    %r8,%r9
  jmp    L196
  nopl   (%rax)
L45:
  add    $0x1,%rsi
L196:
  mov    -0x8(%r10,%rsi,8),%rcx
  mov    %rcx,-0x8(%r9,%rsi,8)
  cmp    %rsi,%rbx
  jne    L45
  jmp    L226
  nopl   (%rax)
L109:
  xor    %eax,%eax
  xor    %edx,%edx
  xor    %ecx,%ecx
  jmp    L40
```

assistant: ```c
void NA_merge_sorted_arrays(size_t *arr1, size_t *arr2, size_t n1, size_t n2, size_t *arr3) {
  size_t i = 0, j = 0, k = 0;
  while (i < n1 && j < n2) {
    if (arr1[i] < arr2[j])
      arr3[k++] = arr1[i++];
    else
      arr3[k++] = arr2[j++];
  }
  while (i < n1)
    arr3[k++] = arr1[i++];
  while (j < n2)
    arr3[k++] = arr2[j++];
}
```