user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<cvt_420p_to_rgb>:
  endbr64
  push   %r15
  mov    %rdx,%r9
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  movslq %edi,%rbx
  mov    %ebx,%eax
  imul   %esi,%eax
  lea    (%rax,%rax,2),%edx
  movslq %edx,%rdx
  lea    (%rcx,%rdx,1),%r14
  test   %esi,%esi
  jle    L28
  test   %eax,%eax
  lea    0x3(%rax),%ebp
  cmovns %eax,%ebp
  sar    $0x2,%ebp
  movslq %ebp,%rbp
  test   %ebx,%ebx
  jle    L28
  lea    0x0(,%rbx,4),%rdx
  mov    %rbx,%rdi
  cltq
  mov    %esi,%r12d
  sub    %rdx,%rdi
  mov    %rax,-0x8(%rsp)
  mov    %r9,%r11
  xor    %r13d,%r13d
  mov    %rdi,-0x10(%rsp)
  nopl   0x0(%rax)
L4:
  mov    %r13d,%eax
  mov    %r14,%r8
  xor    %edi,%edi
  sar    %eax
  lea    (%rax,%rax,4),%r10d
  shl    $0x5,%r10d
  movslq %r10d,%r10
  add    -0x8(%rsp),%r10
  nopw   0x0(%rax,%rax,1)
L0:
  mov    %edi,%edx
  movzbl (%r11,%rdi,1),%eax
  sar    %edx
  movslq %edx,%rdx
  add    %r10,%rdx
  movzbl (%r9,%rdx,1),%esi
  add    %r9,%rdx
  movzbl (%rdx,%rbp,1),%ecx
  add    $0xffffff80,%esi
  imul   $0xc6,%esi,%edx
  lea    (%rax,%rsi,1),%r15d
  add    $0xffffff80,%ecx
  sar    $0x8,%edx
  add    %r15d,%edx
  mov    $0xff,%r15d
  cmp    %r15d,%edx
  cmovg  %r15d,%edx
  xor    %r15d,%r15d
  test   %edx,%edx
  cmovs  %r15d,%edx
  lea    (%rax,%rcx,1),%r15d
  mov    %dl,(%r8)
  imul   $0x67,%ecx,%edx
  sar    $0x8,%edx
  add    %r15d,%edx
  mov    $0xff,%r15d
  cmp    %r15d,%edx
  cmovg  %r15d,%edx
  xor    %r15d,%r15d
  test   %edx,%edx
  cmovs  %r15d,%edx
  imul   $0x58,%esi,%esi
  imul   $0xb7,%ecx,%ecx
  mov    %dl,-0x1(%r8)
  mov    $0xff,%edx
  sar    $0x8,%esi
  sub    %esi,%eax
  sar    $0x8,%ecx
  sub    %ecx,%eax
  cmp    %edx,%eax
  cmovg  %edx,%eax
  xor    %edx,%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  add    $0x1,%rdi
  sub    $0x3,%r8
  mov    %al,0x1(%r8)
  cmp    %rdi,%rbx
  jne    L0
  add    $0x1,%r13d
  add    -0x10(%rsp),%r14
  add    $0x140,%r11
  cmp    %r13d,%r12d
  jne    L4
L28:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void cvt_420p_to_rgb(int width, int height, const unsigned char *src, unsigned char *dst) {
  int r, g, b;
  int rdif, gdif, bdif, y;
  int yy, uu, vv;
  int xoff, yoff;
  int numpix = width * height;
  unsigned char *pout = dst + width * height * 3;
  for (yoff = 0; yoff < height; yoff++) {
    for (xoff = 0; xoff < width; xoff++) {
      yy = *(src + yoff * 320 + xoff);
      uu = *(src + (yoff / 2) * 320 / 2 + xoff / 2 + numpix);
      vv = *(src + (yoff / 2) * 320 / 2 + xoff / 2 + numpix + numpix / 4);
      uu -= 128;
      vv -= 128;
      r = yy + vv + ((vv * 103) >> 8);
      g = yy - ((uu * 88) >> 8) - ((vv * 183) >> 8);
      b = yy + uu + ((uu * 198) >> 8);
      if (r > 255) {
        r = 255;
      }
      if (g > 255) {
        g = 255;
      }
      if (b > 255) {
        b = 255;
      }
      if (r < 0) {
        r = 0;
      }
      if (g < 0) {
        g = 0;
      }
      if (b < 0) {
        b = 0;
      }
      *pout = (unsigned char)b;
      pout--;
      *pout = (unsigned char)r;
      pout--;
      *pout = (unsigned char)g;
      pout--;
    }
  }
}
```