user: Please show me the C implementation that matches the assembly code listed below:

```asm
<yuv422pto422>:
  endbr64
  push   %r14
  lea    -0x20(%rdx,%rdx,1),%eax
  mov    %rdi,%rcx
  movslq %edx,%rdi
  push   %r13
  cltq
  add    %rsi,%rdi
  lea    0x500(%rcx),%r11
  push   %r12
  xor    %edx,%edx
  lea    0x100(%rcx),%r12
  push   %rbp
  lea    0x20(%rax),%rbp
  push   %rbx
L24:
  lea    -0x100(%r11),%rbx
  mov    $0x1,%eax
  mov    $0x8,%r10d
  xor    %r9d,%r9d
  jmp    L89
  cs nopw 0x0(%rax,%rax,1)
L109:
  add    $0x2,%r9d
  add    $0x2,%r10d
L115:
  add    $0x1,%rax
L89:
  movslq %r9d,%r8
  mov    $0xffffffff,%r13d
  lea    0x0(,%r8,4),%r14
  mov    (%rcx,%r8,4),%r8d
  cmp    $0xff,%r8d
  jg     L8
  test   %r8d,%r8d
  mov    %r8d,%r13d
  cmovs  %edx,%r13d
L8:
  mov    %r13b,-0x4(%rsi,%rax,4)
  mov    -0x4(%rbx,%rax,4),%r13d
  mov    $0xffffffff,%r8d
  cmp    $0x7f,%r13d
  jg     L58
  lea    -0x80(%r13),%r8d
  cmp    $0xffffff7f,%r13d
  cmovle %edx,%r8d
L58:
  mov    %r8b,-0x3(%rsi,%rax,4)
  mov    0x4(%rcx,%r14,1),%r8d
  mov    $0xffffffff,%r13d
  cmp    $0xff,%r8d
  jg     L76
  test   %r8d,%r8d
  mov    %r8d,%r13d
  cmovs  %edx,%r13d
L76:
  mov    %r13b,-0x2(%rsi,%rax,4)
  mov    -0x4(%r11,%rax,4),%r13d
  mov    $0xffffffff,%r8d
  cmp    $0x7f,%r13d
  jg     L83
  lea    -0x80(%r13),%r8d
  cmp    $0xffffff7f,%r13d
  cmovle %edx,%r8d
L83:
  mov    %r8b,-0x1(%rsi,%rax,4)
  movslq %r10d,%r8
  mov    $0xffffffff,%r13d
  lea    0x0(,%r8,4),%r14
  mov    (%rcx,%r8,4),%r8d
  cmp    $0xff,%r8d
  jg     L49
  test   %r8d,%r8d
  mov    %r8d,%r13d
  cmovs  %edx,%r13d
L49:
  mov    %r13b,-0x4(%rdi,%rax,4)
  mov    0x1c(%rbx,%rax,4),%r13d
  mov    $0xffffffff,%r8d
  cmp    $0x7f,%r13d
  jg     L93
  lea    -0x80(%r13),%r8d
  cmp    $0xffffff7f,%r13d
  cmovle %edx,%r8d
L93:
  mov    %r8b,-0x3(%rdi,%rax,4)
  mov    0x4(%rcx,%r14,1),%r8d
  mov    $0xffffffff,%r13d
  cmp    $0xff,%r8d
  jg     L84
  test   %r8d,%r8d
  mov    %r8d,%r13d
  cmovs  %edx,%r13d
L84:
  mov    %r13b,-0x2(%rdi,%rax,4)
  mov    0x1c(%r11,%rax,4),%r13d
  mov    $0xffffffff,%r8d
  cmp    $0x7f,%r13d
  jg     L25
  lea    -0x80(%r13),%r8d
  cmp    $0xffffff7f,%r13d
  cmovle %edx,%r8d
L25:
  mov    %r8b,-0x1(%rdi,%rax,4)
  cmp    $0x8,%rax
  je     L96
  cmp    $0x4,%rax
  jne    L109
  add    $0x3a,%r9d
  add    $0x3a,%r10d
  jmp    L115
  nopl   (%rax)
L96:
  add    $0x40,%rcx
  add    $0x20,%r11
  add    %rbp,%rsi
  add    %rbp,%rdi
  cmp    %r12,%rcx
  jne    L24
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  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);
  }
}
```