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

```asm
<col221111>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,-0x18(%rsp)
  movslq %edx,%rax
  add    %rsi,%rax
  mov    %rax,-0x28(%rsp)
  lea    0x400(%rdi),%rax
  mov    %rax,-0x20(%rsp)
  add    %edx,%edx
  movslq %edx,%rax
  mov    %rax,-0x30(%rsp)
  lea    0x100(%rdi),%rbx
  mov    %rbx,-0x38(%rsp)
  lea    0x500(%rdi),%rbx
  mov    %rbx,-0x8(%rsp)
  shl    $0x2,%rax
  mov    %rax,-0x10(%rsp)
  jmp    L74
L294:
  not    %r12d
  sar    $0x1f,%r12d
  mov    %r12b,(%rdi)
L151:
  mov    %r11d,%r12d
  sub    %edx,%r12d
  cmp    $0xff,%r12d
  ja     L36
  mov    %r11d,%r12d
  sub    %edx,%r12d
  mov    %r12b,0x1(%rdi)
L206:
  lea    (%r9,%r11,1),%r12d
  cmp    $0xff,%r12d
  ja     L17
  add    %r9d,%r11d
  mov    %r11b,0x2(%rdi)
L136:
  mov    0x4(%rbp,%rsi,4),%esi
  lea    (%rcx,%rsi,1),%r11d
  cmp    $0xff,%r11d
  ja     L129
  lea    (%rsi,%rcx,1),%r11d
  mov    %r11b,0x3(%rdi)
L272:
  mov    %esi,%r11d
  sub    %edx,%r11d
  cmp    $0xff,%r11d
  ja     L278
  mov    %esi,%r11d
  sub    %edx,%r11d
  mov    %r11b,0x4(%rdi)
L146:
  lea    (%r9,%rsi,1),%r11d
  cmp    $0xff,%r11d
  ja     L109
  add    %r9d,%esi
  mov    %sil,0x5(%rdi)
L245:
  lea    0x1(,%r10,8),%esi
  lea    (%rbx,%rsi,4),%r10d
  add    %r10d,%r10d
  movslq %r10d,%r10
  mov    0x0(%rbp,%r10,4),%esi
  lea    (%rcx,%rsi,1),%r11d
  cmp    $0xff,%r11d
  ja     L16
  lea    (%rsi,%rcx,1),%r11d
  mov    %r11b,(%r8)
L4:
  mov    %esi,%r11d
  sub    %edx,%r11d
  cmp    $0xff,%r11d
  ja     L182
  mov    %esi,%r11d
  sub    %edx,%r11d
  mov    %r11b,0x1(%r8)
L259:
  lea    (%r9,%rsi,1),%r11d
  cmp    $0xff,%r11d
  ja     L161
  add    %r9d,%esi
  mov    %sil,0x2(%r8)
L68:
  mov    0x4(%rbp,%r10,4),%esi
  lea    (%rcx,%rsi,1),%r10d
  cmp    $0xff,%r10d
  ja     L251
  add    %esi,%ecx
  mov    %cl,0x3(%r8)
L254:
  mov    %esi,%ecx
  sub    %edx,%ecx
  cmp    $0xff,%ecx
  ja     L289
  mov    %esi,%ecx
  sub    %edx,%ecx
  mov    %cl,0x4(%r8)
L14:
  lea    (%r9,%rsi,1),%edx
  cmp    $0xff,%edx
  ja     L42
  lea    (%rsi,%r9,1),%edx
  mov    %dl,0x5(%r8)
L164:
  add    $0x1,%rax
  add    $0x6,%r8
  add    $0x6,%rdi
  cmp    $0x8,%rax
  je     L148
L75:
  mov    0x0(%r13,%rax,4),%r9d
  mov    0x100(%r13,%rax,4),%ecx
  imul   $0x32,%r9d,%esi
  imul   $0x82,%ecx,%edx
  lea    0x80(%rsi,%rdx,1),%edx
  sar    $0x8,%edx
  lea    0x3(%rax),%r10d
  test   %eax,%eax
  cmovns %eax,%r10d
  sar    $0x2,%r10d
  mov    %eax,%ebx
  and    $0x3,%ebx
  mov    %r10d,%esi
  shl    $0x5,%esi
  add    %ebx,%esi
  add    %esi,%esi
  movslq %esi,%rsi
  mov    0x0(%rbp,%rsi,4),%r11d
  lea    (%rcx,%r11,1),%r12d
  cmp    $0xff,%r12d
  ja     L294
  lea    (%rcx,%r11,1),%r12d
  mov    %r12b,(%rdi)
  jmp    L151
L36:
  not    %r12d
  sar    $0x1f,%r12d
  mov    %r12b,0x1(%rdi)
  jmp    L206
L17:
  not    %r12d
  sar    $0x1f,%r12d
  mov    %r12b,0x2(%rdi)
  jmp    L136
L129:
  not    %r11d
  sar    $0x1f,%r11d
  mov    %r11b,0x3(%rdi)
  jmp    L272
L278:
  not    %r11d
  sar    $0x1f,%r11d
  mov    %r11b,0x4(%rdi)
  jmp    L146
L109:
  not    %r11d
  sar    $0x1f,%r11d
  mov    %r11b,0x5(%rdi)
  jmp    L245
L16:
  not    %r11d
  sar    $0x1f,%r11d
  mov    %r11b,(%r8)
  jmp    L4
L182:
  not    %r11d
  sar    $0x1f,%r11d
  mov    %r11b,0x1(%r8)
  jmp    L259
L161:
  not    %r11d
  sar    $0x1f,%r11d
  mov    %r11b,0x2(%r8)
  jmp    L68
L251:
  not    %r10d
  sar    $0x1f,%r10d
  mov    %r10b,0x3(%r8)
  jmp    L254
L289:
  not    %ecx
  sar    $0x1f,%ecx
  mov    %cl,0x4(%r8)
  jmp    L14
L42:
  not    %edx
  sar    $0x1f,%edx
  mov    %dl,0x5(%r8)
  jmp    L164
L148:
  add    $0x20,%r13
  add    $0x40,%rbp
  mov    -0x30(%rsp),%rax
  add    %rax,%r14
  add    %rax,%r15
  cmp    -0x38(%rsp),%rbp
  je     L209
L105:
  mov    %r15,%r8
  mov    %r14,%rdi
  mov    $0x0,%eax
  jmp    L75
L209:
  subq   $0xffffffffffffff80,-0x20(%rsp)
  mov    -0x10(%rsp),%rbx
  add    %rbx,-0x18(%rsp)
  add    %rbx,-0x28(%rsp)
  addq   $0x200,-0x38(%rsp)
  mov    -0x38(%rsp),%rax
  cmp    -0x8(%rsp),%rax
  je     L90
L74:
  mov    -0x38(%rsp),%rax
  lea    -0x100(%rax),%rbp
  mov    -0x20(%rsp),%r13
  mov    -0x28(%rsp),%r15
  mov    -0x18(%rsp),%r14
  jmp    L105
L90:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void col221111(int *out, unsigned char *pic, int width) {
  int i, j, k;
  unsigned char *pic0, *pic1;
  int *outy, *outc;
  int cr, cg, cb, y;
  pic0 = pic;
  pic1 = pic + width;
  outy = out;
  outc = out + 64 * 4;
  for (i = 2; i > 0; i--) {
    for (j = 4; j > 0; j--) {
      for (k = 0; k < 8; k++)
        ((cb = outc[0 + 0 * 8 + k], cr = outc[64 + 0 * 8 + k], cg = (50 * cb + 130 * cr + 128) >> 8), (y = outy[(k / 4 * 8 + 0) * 8 + (k & 3) * 2 + 0], ((pic0[(k * 2 + 0) * 3 + 0]) = (y + cr), (unsigned int)(y + cr) >= 256 ? ((pic0[(k * 2 + 0) * 3 + 0]) = (y + cr) < 0 ? 0 : 255) : 0), ((pic0[(k * 2 + 0) * 3 + 1]) = (y - cg), (unsigned int)(y - cg) >= 256 ? ((pic0[(k * 2 + 0) * 3 + 1]) = (y - cg) < 0 ? 0 : 255) : 0), ((pic0[(k * 2 + 0) * 3 + 2]) = (y + cb), (unsigned int)(y + cb) >= 256 ? ((pic0[(k * 2 + 0) * 3 + 2]) = (y + cb) < 0 ? 0 : 255) : 0)), (y = outy[(k / 4 * 8 + 0) * 8 + (k & 3) * 2 + 1], ((pic0[(k * 2 + 1) * 3 + 0]) = (y + cr), (unsigned int)(y + cr) >= 256 ? ((pic0[(k * 2 + 1) * 3 + 0]) = (y + cr) < 0 ? 0 : 255) : 0), ((pic0[(k * 2 + 1) * 3 + 1]) = (y - cg), (unsigned int)(y - cg) >= 256 ? ((pic0[(k * 2 + 1) * 3 + 1]) = (y - cg) < 0 ? 0 : 255) : 0), ((pic0[(k * 2 + 1) * 3 + 2]) = (y + cb), (unsigned int)(y + cb) >= 256 ? ((pic0[(k * 2 + 1) * 3 + 2]) = (y + cb) < 0 ? 0 : 255) : 0)), (y = outy[(k / 4 * 8 + 1) * 8 + (k & 3) * 2 + 0], ((pic1[(k * 2 + 0) * 3 + 0]) = (y + cr), (unsigned int)(y + cr) >= 256 ? ((pic1[(k * 2 + 0) * 3 + 0]) = (y + cr) < 0 ? 0 : 255) : 0), ((pic1[(k * 2 + 0) * 3 + 1]) = (y - cg), (unsigned int)(y - cg) >= 256 ? ((pic1[(k * 2 + 0) * 3 + 1]) = (y - cg) < 0 ? 0 : 255) : 0), ((pic1[(k * 2 + 0) * 3 + 2]) = (y + cb), (unsigned int)(y + cb) >= 256 ? ((pic1[(k * 2 + 0) * 3 + 2]) = (y + cb) < 0 ? 0 : 255) : 0)), (y = outy[(k / 4 * 8 + 1) * 8 + (k & 3) * 2 + 1], ((pic1[(k * 2 + 1) * 3 + 0]) = (y + cr), (unsigned int)(y + cr) >= 256 ? ((pic1[(k * 2 + 1) * 3 + 0]) = (y + cr) < 0 ? 0 : 255) : 0), ((pic1[(k * 2 + 1) * 3 + 1]) = (y - cg), (unsigned int)(y - cg) >= 256 ? ((pic1[(k * 2 + 1) * 3 + 1]) = (y - cg) < 0 ? 0 : 255) : 0), ((pic1[(k * 2 + 1) * 3 + 2]) = (y + cb), (unsigned int)(y + cb) >= 256 ? ((pic1[(k * 2 + 1) * 3 + 2]) = (y + cb) < 0 ? 0 : 255) : 0)));
      outc += 8;
      outy += 16;
      pic0 += 2 * width;
      pic1 += 2 * width;
    }
    outy += 64 * 2 - 16 * 4;
  }
}
```