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

```asm
<col221111_32>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x54(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x400,%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x2,-0x3c(%rbp)
  jmp    L315
L206:
  movl   $0x4,-0x38(%rbp)
  jmp    L354
L223:
  movl   $0x0,-0x34(%rbp)
  jmp    L240
L91:
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x34(%rbp),%eax
  add    $0x40,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x30(%rbp),%eax
  imul   $0x32,%eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   $0x82,%eax,%eax
  add    %edx,%eax
  sub    $0xffffff80,%eax
  sar    $0x8,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x34(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  and    $0x3,%eax
  add    %edx,%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  mov    -0x2c(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  lea    (%rsi,%rcx,1),%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jbe    L181
  mov    -0x24(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jns    L64
  mov    $0x0,%edx
  jmp    L140
L64:
  mov    $0xffffffff,%edx
L140:
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  movslq %eax,%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L181:
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  sub    %esi,%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%eax
  sub    -0x28(%rbp),%eax
  cmp    $0xff,%eax
  jbe    L268
  mov    -0x24(%rbp),%eax
  sub    -0x28(%rbp),%eax
  test   %eax,%eax
  jns    L222
  mov    $0x0,%edx
  jmp    L156
L222:
  mov    $0xffffffff,%edx
L156:
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L268:
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  mov    -0x30(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  lea    (%rsi,%rcx,1),%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jbe    L84
  mov    -0x24(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jns    L370
  mov    $0x0,%edx
  jmp    L402
L370:
  mov    $0xffffffff,%edx
L402:
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x2(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L84:
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x3(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x34(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  and    $0x3,%eax
  add    %edx,%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  mov    -0x2c(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  lea    (%rsi,%rcx,1),%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jbe    L265
  mov    -0x24(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jns    L40
  mov    $0x0,%edx
  jmp    L126
L40:
  mov    $0xffffffff,%edx
L126:
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  movslq %eax,%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L265:
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  sub    %esi,%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%eax
  sub    -0x28(%rbp),%eax
  cmp    $0xff,%eax
  jbe    L35
  mov    -0x24(%rbp),%eax
  sub    -0x28(%rbp),%eax
  test   %eax,%eax
  jns    L15
  mov    $0x0,%edx
  jmp    L31
L15:
  mov    $0xffffffff,%edx
L31:
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L35:
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  mov    -0x30(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  lea    (%rsi,%rcx,1),%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jbe    L365
  mov    -0x24(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jns    L343
  mov    $0x0,%edx
  jmp    L260
L343:
  mov    $0xffffffff,%edx
L260:
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  cltq
  lea    0x2(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L365:
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  cltq
  lea    0x3(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x34(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  shl    $0x3,%eax
  add    $0x1,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x34(%rbp),%eax
  and    $0x3,%eax
  add    %edx,%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  mov    -0x2c(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  lea    (%rsi,%rcx,1),%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jbe    L157
  mov    -0x24(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jns    L174
  mov    $0x0,%edx
  jmp    L66
L174:
  mov    $0xffffffff,%edx
L66:
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  movslq %eax,%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L157:
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  sub    %esi,%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%eax
  sub    -0x28(%rbp),%eax
  cmp    $0xff,%eax
  jbe    L216
  mov    -0x24(%rbp),%eax
  sub    -0x28(%rbp),%eax
  test   %eax,%eax
  jns    L242
  mov    $0x0,%edx
  jmp    L373
L242:
  mov    $0xffffffff,%edx
L373:
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L216:
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  mov    -0x30(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  lea    (%rsi,%rcx,1),%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jbe    L348
  mov    -0x24(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jns    L80
  mov    $0x0,%edx
  jmp    L366
L80:
  mov    $0xffffffff,%edx
L366:
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x2(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L348:
  mov    -0x34(%rbp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x3(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x34(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  shl    $0x3,%eax
  add    $0x1,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x34(%rbp),%eax
  and    $0x3,%eax
  add    %edx,%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  mov    -0x2c(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  lea    (%rsi,%rcx,1),%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jbe    L309
  mov    -0x24(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jns    L106
  mov    $0x0,%edx
  jmp    L122
L106:
  mov    $0xffffffff,%edx
L122:
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  movslq %eax,%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L309:
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  sub    %esi,%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%eax
  sub    -0x28(%rbp),%eax
  cmp    $0xff,%eax
  jbe    L89
  mov    -0x24(%rbp),%eax
  sub    -0x28(%rbp),%eax
  test   %eax,%eax
  jns    L374
  mov    $0x0,%edx
  jmp    L307
L374:
  mov    $0xffffffff,%edx
L307:
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L89:
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  mov    -0x30(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  lea    (%rsi,%rcx,1),%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jbe    L139
  mov    -0x24(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jns    L107
  mov    $0x0,%edx
  jmp    L121
L107:
  mov    $0xffffffff,%edx
L121:
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  cltq
  lea    0x2(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
L139:
  mov    -0x34(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  cltq
  lea    0x3(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0x34(%rbp)
L240:
  cmpl   $0x7,-0x34(%rbp)
  jle    L91
  addq   $0x20,-0x8(%rbp)
  addq   $0x40,-0x10(%rbp)
  mov    -0x54(%rbp),%eax
  add    %eax,%eax
  cltq
  add    %rax,-0x20(%rbp)
  mov    -0x54(%rbp),%eax
  add    %eax,%eax
  cltq
  add    %rax,-0x18(%rbp)
  subl   $0x1,-0x38(%rbp)
L354:
  cmpl   $0x0,-0x38(%rbp)
  jg     L223
  addq   $0x100,-0x10(%rbp)
  subl   $0x1,-0x3c(%rbp)
L315:
  cmpl   $0x0,-0x3c(%rbp)
  jg     L206
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void col221111_32(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) * 4 + 0]) = (y + cr), (unsigned int)(y + cr) >= 256 ? ((pic0[(k * 2 + 0) * 4 + 0]) = (y + cr) < 0 ? 0 : 255) : 0), ((pic0[(k * 2 + 0) * 4 + 1]) = (y - cg), (unsigned int)(y - cg) >= 256 ? ((pic0[(k * 2 + 0) * 4 + 1]) = (y - cg) < 0 ? 0 : 255) : 0), ((pic0[(k * 2 + 0) * 4 + 2]) = (y + cb), (unsigned int)(y + cb) >= 256 ? ((pic0[(k * 2 + 0) * 4 + 2]) = (y + cb) < 0 ? 0 : 255) : 0), pic0[(k * 2 + 0) * 4 + 3] = 0), (y = outy[(k / 4 * 8 + 0) * 8 + (k & 3) * 2 + 1], ((pic0[(k * 2 + 1) * 4 + 0]) = (y + cr), (unsigned int)(y + cr) >= 256 ? ((pic0[(k * 2 + 1) * 4 + 0]) = (y + cr) < 0 ? 0 : 255) : 0), ((pic0[(k * 2 + 1) * 4 + 1]) = (y - cg), (unsigned int)(y - cg) >= 256 ? ((pic0[(k * 2 + 1) * 4 + 1]) = (y - cg) < 0 ? 0 : 255) : 0), ((pic0[(k * 2 + 1) * 4 + 2]) = (y + cb), (unsigned int)(y + cb) >= 256 ? ((pic0[(k * 2 + 1) * 4 + 2]) = (y + cb) < 0 ? 0 : 255) : 0), pic0[(k * 2 + 1) * 4 + 3] = 0), (y = outy[(k / 4 * 8 + 1) * 8 + (k & 3) * 2 + 0], ((pic1[(k * 2 + 0) * 4 + 0]) = (y + cr), (unsigned int)(y + cr) >= 256 ? ((pic1[(k * 2 + 0) * 4 + 0]) = (y + cr) < 0 ? 0 : 255) : 0), ((pic1[(k * 2 + 0) * 4 + 1]) = (y - cg), (unsigned int)(y - cg) >= 256 ? ((pic1[(k * 2 + 0) * 4 + 1]) = (y - cg) < 0 ? 0 : 255) : 0), ((pic1[(k * 2 + 0) * 4 + 2]) = (y + cb), (unsigned int)(y + cb) >= 256 ? ((pic1[(k * 2 + 0) * 4 + 2]) = (y + cb) < 0 ? 0 : 255) : 0), pic1[(k * 2 + 0) * 4 + 3] = 0), (y = outy[(k / 4 * 8 + 1) * 8 + (k & 3) * 2 + 1], ((pic1[(k * 2 + 1) * 4 + 0]) = (y + cr), (unsigned int)(y + cr) >= 256 ? ((pic1[(k * 2 + 1) * 4 + 0]) = (y + cr) < 0 ? 0 : 255) : 0), ((pic1[(k * 2 + 1) * 4 + 1]) = (y - cg), (unsigned int)(y - cg) >= 256 ? ((pic1[(k * 2 + 1) * 4 + 1]) = (y - cg) < 0 ? 0 : 255) : 0), ((pic1[(k * 2 + 1) * 4 + 2]) = (y + cb), (unsigned int)(y + cb) >= 256 ? ((pic1[(k * 2 + 1) * 4 + 2]) = (y + cb) < 0 ? 0 : 255) : 0), pic1[(k * 2 + 1) * 4 + 3] = 0));
      outc += 8;
      outy += 16;
      pic0 += 2 * width;
      pic1 += 2 * width;
    }
    outy += 64 * 2 - 16 * 4;
  }
}
```