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

```asm
<pixel_convert_8u_yuv420p_to_8u_rgba>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x18,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %esi,-0x7c(%rbp)
  mov    %edx,-0x80(%rbp)
  mov    %ecx,-0x84(%rbp)
  mov    %r8,-0x90(%rbp)
  mov    %r9d,-0x88(%rbp)
  mov    -0x84(%rbp),%eax
  imul   -0x88(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x84(%rbp),%eax
  imul   -0x88(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L128
L248:
  mov    -0x64(%rbp),%eax
  imul   -0x88(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x64(%rbp),%eax
  imul   -0x88(%rbp),%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x88(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x64(%rbp),%eax
  imul   -0x88(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x64(%rbp),%eax
  imul   -0x88(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x64(%rbp),%eax
  imul   -0x7c(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x64(%rbp),%eax
  imul   -0x7c(%rbp),%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x7c(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x60(%rbp)
  jmp    L238
L237:
  mov    -0x60(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    $0xffffff80,%eax
  imul   $0x1c6,%eax,%eax
  sar    $0x8,%eax
  mov    %eax,-0x5c(%rbp)
  mov    -0x60(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    $0xffffff80,%eax
  imul   $0x167,%eax,%eax
  sar    $0x8,%eax
  mov    %eax,-0x58(%rbp)
  mov    -0x60(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    $0xffffff80,%eax
  imul   $0xb7,%eax,%edx
  mov    -0x60(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    $0xffffff80,%eax
  imul   $0x58,%eax,%eax
  add    %edx,%eax
  sar    $0x8,%eax
  mov    %eax,-0x54(%rbp)
  mov    -0x60(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x50(%rbp),%edx
  mov    -0x58(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x50(%rbp),%edx
  mov    -0x5c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x50(%rbp),%eax
  sub    -0x54(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  cmpl   $0x0,-0x4c(%rbp)
  js     L165
  mov    -0x4c(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L21
L165:
  mov    $0x0,%eax
L21:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x44(%rbp)
  js     L218
  mov    -0x44(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L104
L218:
  mov    $0x0,%eax
L104:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x48(%rbp)
  js     L236
  mov    -0x48(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L229
L236:
  mov    $0x0,%eax
L229:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  add    $0x2,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  mov    -0x60(%rbp),%eax
  shl    $0x3,%eax
  cltq
  add    $0x3,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    -0x60(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x50(%rbp),%edx
  mov    -0x58(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x50(%rbp),%edx
  mov    -0x5c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x50(%rbp),%eax
  sub    -0x54(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  cmpl   $0x0,-0x4c(%rbp)
  js     L232
  mov    -0x4c(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L155
L232:
  mov    $0x0,%eax
L155:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  add    $0x4,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x44(%rbp)
  js     L83
  mov    -0x44(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L149
L83:
  mov    $0x0,%eax
L149:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  add    $0x5,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x48(%rbp)
  js     L40
  mov    -0x48(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L259
L40:
  mov    $0x0,%eax
L259:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  add    $0x6,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  mov    -0x60(%rbp),%eax
  shl    $0x3,%eax
  cltq
  add    $0x7,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    -0x60(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x50(%rbp),%edx
  mov    -0x58(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x50(%rbp),%edx
  mov    -0x5c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x50(%rbp),%eax
  sub    -0x54(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  cmpl   $0x0,-0x4c(%rbp)
  js     L96
  mov    -0x4c(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L164
L96:
  mov    $0x0,%eax
L164:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x44(%rbp)
  js     L256
  mov    -0x44(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L240
L256:
  mov    $0x0,%eax
L240:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x48(%rbp)
  js     L70
  mov    -0x48(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L3
L70:
  mov    $0x0,%eax
L3:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  add    $0x2,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  mov    -0x60(%rbp),%eax
  shl    $0x3,%eax
  cltq
  add    $0x3,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    -0x60(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x50(%rbp),%edx
  mov    -0x58(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x50(%rbp),%edx
  mov    -0x5c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x50(%rbp),%eax
  sub    -0x54(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  cmpl   $0x0,-0x4c(%rbp)
  js     L47
  mov    -0x4c(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L68
L47:
  mov    $0x0,%eax
L68:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  add    $0x4,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x44(%rbp)
  js     L4
  mov    -0x44(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L18
L4:
  mov    $0x0,%eax
L18:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  add    $0x5,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x48(%rbp)
  js     L172
  mov    -0x48(%rbp),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  jmp    L186
L172:
  mov    $0x0,%eax
L186:
  mov    -0x60(%rbp),%edx
  shl    $0x3,%edx
  movslq %edx,%rdx
  add    $0x6,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  mov    -0x60(%rbp),%eax
  shl    $0x3,%eax
  cltq
  add    $0x7,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  addl   $0x1,-0x60(%rbp)
L238:
  mov    -0x80(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x60(%rbp)
  jl     L237
  addl   $0x1,-0x64(%rbp)
L128:
  mov    -0x84(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x64(%rbp)
  jl     L248
  mov    $0x0,%eax
  leave
  ret
```

assistant: ```c
int pixel_convert_8u_yuv420p_to_8u_rgba(uint8_t *dest, int dstride, int dwidth, int dheight, const uint8_t *src, int sstride) {
  const uint8_t *uplane = src + dheight * sstride;
  const uint8_t *vplane = uplane + dheight * sstride / 4;
  for (int i = 0; i < dheight / 2; i++) {
    const uint8_t *yrow1 = src + i * 2 * sstride;
    const uint8_t *yrow2 = src + i * 2 * sstride + sstride;
    const uint8_t *urow = uplane + i * sstride / 2;
    const uint8_t *vrow = vplane + i * sstride / 2;
    uint8_t *rgb1 = dest + i * 2 * dstride;
    uint8_t *rgb2 = dest + i * 2 * dstride + dstride;
    for (int j = 0; j < dwidth / 2; j++) {
      int cb = ((urow[j] - 128) * 454) >> 8;
      int cr = ((vrow[j] - 128) * 359) >> 8;
      int cg = ((vrow[j] - 128) * 183 + (urow[j] - 128) * 88) >> 8;
      int r, g, b, yp;
      yp = yrow1[j * 2];
      r = yp + cr;
      b = yp + cb;
      g = yp - cg;
      rgb1[j * 8 + 0] = ((0) > (((255) < (r) ? (255) : (r))) ? (0) : (((255) < (r) ? (255) : (r))));
      rgb1[j * 8 + 1] = ((0) > (((255) < (g) ? (255) : (g))) ? (0) : (((255) < (g) ? (255) : (g))));
      rgb1[j * 8 + 2] = ((0) > (((255) < (b) ? (255) : (b))) ? (0) : (((255) < (b) ? (255) : (b))));
      rgb1[j * 8 + 3] = 1;
      yp = yrow1[j * 2 + 1];
      r = yp + cr;
      b = yp + cb;
      g = yp - cg;
      rgb1[j * 8 + 4] = ((0) > (((255) < (r) ? (255) : (r))) ? (0) : (((255) < (r) ? (255) : (r))));
      rgb1[j * 8 + 5] = ((0) > (((255) < (g) ? (255) : (g))) ? (0) : (((255) < (g) ? (255) : (g))));
      rgb1[j * 8 + 6] = ((0) > (((255) < (b) ? (255) : (b))) ? (0) : (((255) < (b) ? (255) : (b))));
      rgb1[j * 8 + 7] = 1;
      yp = yrow2[j * 2];
      r = yp + cr;
      b = yp + cb;
      g = yp - cg;
      rgb2[j * 8 + 0] = ((0) > (((255) < (r) ? (255) : (r))) ? (0) : (((255) < (r) ? (255) : (r))));
      rgb2[j * 8 + 1] = ((0) > (((255) < (g) ? (255) : (g))) ? (0) : (((255) < (g) ? (255) : (g))));
      rgb2[j * 8 + 2] = ((0) > (((255) < (b) ? (255) : (b))) ? (0) : (((255) < (b) ? (255) : (b))));
      rgb2[j * 8 + 3] = 1;
      yp = yrow2[j * 2 + 1];
      r = yp + cr;
      b = yp + cb;
      g = yp - cg;
      rgb2[j * 8 + 4] = ((0) > (((255) < (r) ? (255) : (r))) ? (0) : (((255) < (r) ? (255) : (r))));
      rgb2[j * 8 + 5] = ((0) > (((255) < (g) ? (255) : (g))) ? (0) : (((255) < (g) ? (255) : (g))));
      rgb2[j * 8 + 6] = ((0) > (((255) < (b) ? (255) : (b))) ? (0) : (((255) < (b) ? (255) : (b))));
      rgb2[j * 8 + 7] = 1;
    }
  }
  return 0;
}
```