user: Translate the below assembly code into C programming language:

```asm
<NV21TOYUV>:
  endbr64
  imul   %r9d,%r8d
  push   %r14
  mov    %rdi,%r14
  mov    %rsi,%rdi
  push   %r13
  mov    %r14,%rsi
  push   %r12
  mov    %rcx,%r12
  movslq %r8d,%r13
  push   %rbp
  push   %rbx
  mov    %r13d,%ebp
  mov    %rdx,%rbx
  mov    %r13d,%edx
  sar    $0x2,%ebp
  call   <memcpy@plt>
  lea    0x1(%r14,%r13,1),%rcx
  lea    (%r14,%r13,1),%rdx
  test   %ebp,%ebp
  jle    L17
  movslq %ebp,%rax
  lea    0x1(%rbx),%rdi
  mov    %r12,%rsi
  sub    %rdi,%rsi
  lea    0x0(%r13,%rax,2),%r8
  add    %r14,%r8
  cmp    $0xe,%rsi
  lea    -0x1(%rbp),%esi
  seta   %dil
  cmp    $0xe,%esi
  seta   %sil
  and    %esi,%edi
  lea    (%rbx,%rax,1),%rsi
  cmp    %rsi,%rdx
  setae  %sil
  cmp    %r8,%rbx
  setae  %r9b
  or     %r9d,%esi
  test   %sil,%dil
  je     L42
  add    %r12,%rax
  cmp    %rax,%rdx
  setae  %al
  cmp    %r8,%r12
  setae  %sil
  or     %sil,%al
  je     L42
  mov    %ebp,%esi
  movdqa D8(%rip),%xmm3
  xor    %eax,%eax
  shr    $0x4,%esi
  shl    $0x4,%rsi
  nopl   0x0(%rax)
L168:
  movdqu (%rdx,%rax,2),%xmm0
  movdqu 0x10(%rdx,%rax,2),%xmm1
  movdqa %xmm0,%xmm2
  movdqa %xmm1,%xmm4
  pand   %xmm3,%xmm0
  psrlw  $0x8,%xmm2
  psrlw  $0x8,%xmm4
  pand   %xmm3,%xmm1
  packuswb %xmm4,%xmm2
  packuswb %xmm1,%xmm0
  movups %xmm2,(%rbx,%rax,1)
  movups %xmm0,(%r12,%rax,1)
  add    $0x10,%rax
  cmp    %rsi,%rax
  jne    L168
  mov    %ebp,%edi
  and    $0xfffffff0,%edi
  mov    %edi,%eax
  lea    (%rax,%rax,1),%rsi
  add    %rax,%rbx
  add    %r12,%rax
  add    %rsi,%rcx
  add    %rdx,%rsi
  cmp    %edi,%ebp
  je     L17
  movzbl (%rcx),%edx
  mov    %dl,(%rbx)
  movzbl (%rsi),%edx
  mov    %dl,(%rax)
  lea    0x1(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x2(%rcx),%edx
  mov    %dl,0x1(%rbx)
  movzbl 0x2(%rsi),%edx
  mov    %dl,0x1(%rax)
  lea    0x2(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x4(%rcx),%edx
  mov    %dl,0x2(%rbx)
  movzbl 0x4(%rsi),%edx
  mov    %dl,0x2(%rax)
  lea    0x3(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x6(%rcx),%edx
  mov    %dl,0x3(%rbx)
  movzbl 0x6(%rsi),%edx
  mov    %dl,0x3(%rax)
  lea    0x4(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x8(%rcx),%edx
  mov    %dl,0x4(%rbx)
  movzbl 0x8(%rsi),%edx
  mov    %dl,0x4(%rax)
  lea    0x5(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0xa(%rcx),%edx
  mov    %dl,0x5(%rbx)
  movzbl 0xa(%rsi),%edx
  mov    %dl,0x5(%rax)
  lea    0x6(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0xc(%rcx),%edx
  mov    %dl,0x6(%rbx)
  movzbl 0xc(%rsi),%edx
  mov    %dl,0x6(%rax)
  lea    0x7(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0xe(%rcx),%edx
  mov    %dl,0x7(%rbx)
  movzbl 0xe(%rsi),%edx
  mov    %dl,0x7(%rax)
  lea    0x8(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x10(%rcx),%edx
  mov    %dl,0x8(%rbx)
  movzbl 0x10(%rsi),%edx
  mov    %dl,0x8(%rax)
  lea    0x9(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x12(%rcx),%edx
  mov    %dl,0x9(%rbx)
  movzbl 0x12(%rsi),%edx
  mov    %dl,0x9(%rax)
  lea    0xa(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x14(%rcx),%edx
  mov    %dl,0xa(%rbx)
  movzbl 0x14(%rsi),%edx
  mov    %dl,0xa(%rax)
  lea    0xb(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x16(%rcx),%edx
  mov    %dl,0xb(%rbx)
  movzbl 0x16(%rsi),%edx
  mov    %dl,0xb(%rax)
  lea    0xc(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x18(%rcx),%edx
  mov    %dl,0xc(%rbx)
  movzbl 0x18(%rsi),%edx
  mov    %dl,0xc(%rax)
  lea    0xd(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x1a(%rcx),%edx
  mov    %dl,0xd(%rbx)
  movzbl 0x1a(%rsi),%edx
  mov    %dl,0xd(%rax)
  lea    0xe(%rdi),%edx
  cmp    %edx,%ebp
  jle    L17
  movzbl 0x1c(%rcx),%edx
  mov    %dl,0xe(%rbx)
  movzbl 0x1c(%rsi),%edx
  mov    %dl,0xe(%rax)
L17:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nop
L42:
  mov    %ebp,%ebp
  xor    %eax,%eax
  nopl   0x0(%rax)
L166:
  movzbl (%rcx,%rax,2),%esi
  mov    %sil,(%rbx,%rax,1)
  movzbl (%rdx,%rax,2),%esi
  mov    %sil,(%r12,%rax,1)
  add    $0x1,%rax
  cmp    %rbp,%rax
  jne    L166
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

tool_calls: name: parse_data
arguments: label: D8
type: byte[16]

tool: {"D8": [0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00]}

assistant: ```c
void NV21TOYUV(const unsigned char *src, const unsigned char *dstY, const unsigned char *dstU, const unsigned char *dstV, int width, int height) {
  int ySize = width * height;
  int uvSize = ySize >> 1;
  int uSize = uvSize >> 1;
  memcpy(dstY, src, ySize);
  unsigned char *srcucur = src + ySize + 1;
  unsigned char *srcvcur = src + ySize;
  unsigned char *dstucur = dstU;
  unsigned char *dstvcur = dstV;
  int i = 0;
  while (i < uSize) {
    (*dstucur) = (*srcucur);
    (*dstvcur) = (*srcvcur);
    srcucur += 2;
    srcvcur += 2;
    ++dstucur;
    ++dstvcur;
    ++i;
  }
}
```