user: 请将这段汇编代码片段转换成等效的C代码:

```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
L70:
  lea    -0x100(%r11),%rbx
  mov    $0x1,%eax
  mov    $0x8,%r10d
  xor    %r9d,%r9d
  jmp    L84
  cs nopw 0x0(%rax,%rax,1)
L5:
  add    $0x2,%r9d
  add    $0x2,%r10d
L19:
  add    $0x1,%rax
L84:
  movslq %r9d,%r8
  mov    $0xffffffff,%r13d
  lea    0x0(,%r8,4),%r14
  mov    (%rcx,%r8,4),%r8d
  cmp    $0xff,%r8d
  jg     L13
  test   %r8d,%r8d
  mov    %r8d,%r13d
  cmovs  %edx,%r13d
L13:
  mov    %r13b,-0x4(%rsi,%rax,4)
  mov    -0x4(%rbx,%rax,4),%r13d
  mov    $0xffffffff,%r8d
  cmp    $0x7f,%r13d
  jg     L85
  lea    -0x80(%r13),%r8d
  cmp    $0xffffff7f,%r13d
  cmovle %edx,%r8d
L85:
  mov    %r8b,-0x3(%rsi,%rax,4)
  mov    0x4(%rcx,%r14,1),%r8d
  mov    $0xffffffff,%r13d
  cmp    $0xff,%r8d
  jg     L18
  test   %r8d,%r8d
  mov    %r8d,%r13d
  cmovs  %edx,%r13d
L18:
  mov    %r13b,-0x2(%rsi,%rax,4)
  mov    -0x4(%r11,%rax,4),%r13d
  mov    $0xffffffff,%r8d
  cmp    $0x7f,%r13d
  jg     L14
  lea    -0x80(%r13),%r8d
  cmp    $0xffffff7f,%r13d
  cmovle %edx,%r8d
L14:
  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     L87
  test   %r8d,%r8d
  mov    %r8d,%r13d
  cmovs  %edx,%r13d
L87:
  mov    %r13b,-0x4(%rdi,%rax,4)
  mov    0x1c(%rbx,%rax,4),%r13d
  mov    $0xffffffff,%r8d
  cmp    $0x7f,%r13d
  jg     L98
  lea    -0x80(%r13),%r8d
  cmp    $0xffffff7f,%r13d
  cmovle %edx,%r8d
L98:
  mov    %r8b,-0x3(%rdi,%rax,4)
  mov    0x4(%rcx,%r14,1),%r8d
  mov    $0xffffffff,%r13d
  cmp    $0xff,%r8d
  jg     L109
  test   %r8d,%r8d
  mov    %r8d,%r13d
  cmovs  %edx,%r13d
L109:
  mov    %r13b,-0x2(%rdi,%rax,4)
  mov    0x1c(%r11,%rax,4),%r13d
  mov    $0xffffffff,%r8d
  cmp    $0x7f,%r13d
  jg     L124
  lea    -0x80(%r13),%r8d
  cmp    $0xffffff7f,%r13d
  cmovle %edx,%r8d
L124:
  mov    %r8b,-0x1(%rdi,%rax,4)
  cmp    $0x8,%rax
  je     L21
  cmp    $0x4,%rax
  jne    L5
  add    $0x3a,%r9d
  add    $0x3a,%r10d
  jmp    L19
  nopl   (%rax)
L21:
  add    $0x40,%rcx
  add    $0x20,%r11
  add    %rbp,%rsi
  add    %rbp,%rdi
  cmp    %r12,%rcx
  jne    L70
  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);
  }
}
```