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

```asm
<yuv422pto422>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x8,-0x34(%rbp)
  movl   $0x0,-0x30(%rbp)
  movl   $0x0,-0x2c(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x54(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x400,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x500,%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L213
L151:
  movl   $0x0,-0x3c(%rbp)
  jmp    L8
L284:
  cmpl   $0x4,-0x3c(%rbp)
  jne    L172
  addl   $0x38,-0x38(%rbp)
  addl   $0x38,-0x34(%rbp)
L172:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0xff,%eax
  jg     L317
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L160
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edx
  jmp    L2
L160:
  mov    $0x0,%edx
  jmp    L2
L317:
  mov    $0xffffffff,%edx
L2:
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x28(%rbp)
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x7f,%eax
  jg     L127
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0xffffff80,%eax
  jl     L261
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    $0xffffff80,%eax
  jmp    L43
L261:
  mov    $0x0,%eax
  jmp    L43
L127:
  mov    $0xffffffff,%eax
L43:
  mov    -0x28(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,-0x28(%rbp)
  mov    %al,(%rdx)
  mov    -0x38(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0xff,%eax
  jg     L147
  mov    -0x38(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L295
  mov    -0x38(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edx
  jmp    L149
L295:
  mov    $0x0,%edx
  jmp    L149
L147:
  mov    $0xffffffff,%edx
L149:
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x28(%rbp)
  mov    %dl,(%rax)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x7f,%eax
  jg     L119
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0xffffff80,%eax
  jl     L98
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    $0xffffff80,%eax
  jmp    L209
L98:
  mov    $0x0,%eax
  jmp    L209
L119:
  mov    $0xffffffff,%eax
L209:
  mov    -0x28(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,-0x28(%rbp)
  mov    %al,(%rdx)
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0xff,%eax
  jg     L191
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L307
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edx
  jmp    L24
L307:
  mov    $0x0,%edx
  jmp    L24
L191:
  mov    $0xffffffff,%edx
L24:
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%eax
  cltq
  add    $0x8,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x7f,%eax
  jg     L145
  mov    -0x30(%rbp),%eax
  cltq
  add    $0x8,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0xffffff80,%eax
  jl     L11
  mov    -0x30(%rbp),%eax
  cltq
  add    $0x8,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    $0xffffff80,%eax
  jmp    L64
L11:
  mov    $0x0,%eax
  jmp    L64
L145:
  mov    $0xffffffff,%eax
L64:
  mov    -0x20(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,-0x20(%rbp)
  mov    %al,(%rdx)
  mov    -0x34(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0xff,%eax
  jg     L99
  mov    -0x34(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L322
  mov    -0x34(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edx
  jmp    L366
L322:
  mov    $0x0,%edx
  jmp    L366
L99:
  mov    $0xffffffff,%edx
L366:
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  mov    %dl,(%rax)
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x8,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x7f,%eax
  jg     L204
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x8,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0xffffff80,%eax
  jl     L27
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x8,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    $0xffffff80,%eax
  jmp    L139
L27:
  mov    $0x0,%eax
  jmp    L139
L204:
  mov    $0xffffffff,%eax
L139:
  mov    -0x20(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,-0x20(%rbp)
  mov    %al,(%rdx)
  addl   $0x1,-0x2c(%rbp)
  addl   $0x1,-0x30(%rbp)
  addl   $0x2,-0x38(%rbp)
  addl   $0x2,-0x34(%rbp)
  addl   $0x1,-0x3c(%rbp)
L8:
  cmpl   $0x7,-0x3c(%rbp)
  jle    L284
  addq   $0x40,-0x18(%rbp)
  addq   $0x20,-0x10(%rbp)
  addq   $0x20,-0x8(%rbp)
  movl   $0x0,-0x2c(%rbp)
  movl   $0x0,-0x30(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x8,-0x34(%rbp)
  mov    -0x54(%rbp),%eax
  sub    $0x10,%eax
  add    %eax,%eax
  cltq
  add    %rax,-0x28(%rbp)
  mov    -0x54(%rbp),%eax
  sub    $0x10,%eax
  add    %eax,%eax
  cltq
  add    %rax,-0x20(%rbp)
  addl   $0x1,-0x40(%rbp)
L213:
  cmpl   $0x3,-0x40(%rbp)
  jle    L151
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void yuv422pto422(int *out, unsigned char *pic, int width) {
  int j, k;
  unsigned char *pic0, *pic1;
  int *outy, *outu, *outv;
  int outy1 = 0;
  int outy2 = 8;
  int outu1 = 0;
  int outv1 = 0;
  pic0 = pic;
  pic1 = pic + width;
  outy = out;
  outu = out + 64 * 4;
  outv = out + 64 * 5;
  for (j = 0; j < 4; j++) {
    for (k = 0; k < 8; k++) {
      if (k == 4) {
        outy1 += 56;
        outy2 += 56;
      }
      *pic0++ = (unsigned char)(((outy[outy1]) > 0xFF) ? 0xff : (((outy[outy1]) < 0) ? 0 : (outy[outy1])));
      *pic0++ = (unsigned char)(((128 + outu[outu1]) > 0xFF) ? 0xff : (((128 + outu[outu1]) < 0) ? 0 : (128 + outu[outu1])));
      *pic0++ = (unsigned char)(((outy[outy1 + 1]) > 0xFF) ? 0xff : (((outy[outy1 + 1]) < 0) ? 0 : (outy[outy1 + 1])));
      *pic0++ = (unsigned char)(((128 + outv[outv1]) > 0xFF) ? 0xff : (((128 + outv[outv1]) < 0) ? 0 : (128 + outv[outv1])));
      *pic1++ = (unsigned char)(((outy[outy2]) > 0xFF) ? 0xff : (((outy[outy2]) < 0) ? 0 : (outy[outy2])));
      *pic1++ = (unsigned char)(((128 + outu[outu1 + 8]) > 0xFF) ? 0xff : (((128 + outu[outu1 + 8]) < 0) ? 0 : (128 + outu[outu1 + 8])));
      *pic1++ = (unsigned char)(((outy[outy2 + 1]) > 0xFF) ? 0xff : (((outy[outy2 + 1]) < 0) ? 0 : (outy[outy2 + 1])));
      *pic1++ = (unsigned char)(((128 + outv[outv1 + 8]) > 0xFF) ? 0xff : (((128 + outv[outv1 + 8]) < 0) ? 0 : (128 + outv[outv1 + 8])));
      outv1 += 1;
      outu1 += 1;
      outy1 += 2;
      outy2 += 2;
    }
    outy += 16;
    outu += 8;
    outv += 8;
    outv1 = 0;
    outu1 = 0;
    outy1 = 0;
    outy2 = 8;
    pic0 += 2 * (width - 16);
    pic1 += 2 * (width - 16);
  }
}
```