user: 请将以下的汇编代码转换成C语言代码:

```asm
<njColIDCT>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  mov    -0x38(%rbp),%rax
  sub    $0xffffffffffffff80,%rax
  mov    (%rax),%eax
  shl    $0x8,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0xc0,%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x20(%rbp),%eax
  or     -0x1c(%rbp),%eax
  mov    -0x38(%rbp),%rdx
  add    $0x40,%rdx
  mov    (%rdx),%edx
  mov    %edx,-0x18(%rbp)
  or     -0x18(%rbp),%eax
  mov    -0x38(%rbp),%rdx
  add    $0x20,%rdx
  mov    (%rdx),%edx
  mov    %edx,-0x14(%rbp)
  or     -0x14(%rbp),%eax
  mov    -0x38(%rbp),%rdx
  add    $0xe0,%rdx
  mov    (%rdx),%edx
  mov    %edx,-0x10(%rbp)
  or     -0x10(%rbp),%eax
  mov    -0x38(%rbp),%rdx
  add    $0xa0,%rdx
  mov    (%rdx),%edx
  mov    %edx,-0xc(%rbp)
  or     -0xc(%rbp),%eax
  mov    -0x38(%rbp),%rdx
  add    $0x60,%rdx
  mov    (%rdx),%edx
  mov    %edx,-0x8(%rbp)
  or     -0x8(%rbp),%eax
  test   %eax,%eax
  jne    L33
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  add    $0x20,%eax
  sar    $0x6,%eax
  sub    $0xffffff80,%eax
  mov    %eax,%edi
  call   <njClip@plt>
  mov    %eax,-0x20(%rbp)
  movl   $0x8,-0x24(%rbp)
  jmp    L37
L16:
  mov    -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  add    %rax,-0x40(%rbp)
  subl   $0x1,-0x24(%rbp)
L37:
  cmpl   $0x0,-0x24(%rbp)
  jne    L16
  jmp    L32
L33:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  shl    $0x8,%eax
  add    $0x2000,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  imul   $0x235,%eax,%eax
  add    $0x4,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x14(%rbp),%eax
  imul   $0x8e4,%eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  sar    $0x3,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x10(%rbp),%eax
  imul   $0xfffff2b2,%eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  sar    $0x3,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0xc(%rbp),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  imul   $0x968,%eax,%eax
  add    $0x4,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0xc(%rbp),%eax
  imul   $0xfffffce1,%eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  sar    $0x3,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x8(%rbp),%eax
  imul   $0xfffff04f,%eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  sar    $0x3,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x24(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x20(%rbp),%eax
  sub    %eax,-0x24(%rbp)
  mov    -0x18(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  imul   $0x454,%eax,%eax
  add    $0x4,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x1c(%rbp),%eax
  imul   $0xfffff138,%eax,%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  sar    $0x3,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x18(%rbp),%eax
  imul   $0x620,%eax,%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  sar    $0x3,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x14(%rbp)
  mov    -0x10(%rbp),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x18(%rbp),%eax
  sub    %eax,-0x4(%rbp)
  mov    -0x24(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x1c(%rbp),%eax
  sub    %eax,-0x24(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  imul   $0xb5,%eax,%eax
  sub    $0xffffff80,%eax
  sar    $0x8,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x14(%rbp),%eax
  sub    -0x10(%rbp),%eax
  imul   $0xb5,%eax,%eax
  sub    $0xffffff80,%eax
  sar    $0x8,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  sar    $0xe,%eax
  sub    $0xffffff80,%eax
  mov    %eax,%edi
  call   <njClip@plt>
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  add    %rax,-0x40(%rbp)
  mov    -0x18(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  sar    $0xe,%eax
  sub    $0xffffff80,%eax
  mov    %eax,%edi
  call   <njClip@plt>
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  add    %rax,-0x40(%rbp)
  mov    -0x24(%rbp),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  sar    $0xe,%eax
  sub    $0xffffff80,%eax
  mov    %eax,%edi
  call   <njClip@plt>
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  add    %rax,-0x40(%rbp)
  mov    -0x4(%rbp),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  sar    $0xe,%eax
  sub    $0xffffff80,%eax
  mov    %eax,%edi
  call   <njClip@plt>
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  add    %rax,-0x40(%rbp)
  mov    -0x4(%rbp),%eax
  sub    -0xc(%rbp),%eax
  sar    $0xe,%eax
  sub    $0xffffff80,%eax
  mov    %eax,%edi
  call   <njClip@plt>
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  add    %rax,-0x40(%rbp)
  mov    -0x24(%rbp),%eax
  sub    -0x14(%rbp),%eax
  sar    $0xe,%eax
  sub    $0xffffff80,%eax
  mov    %eax,%edi
  call   <njClip@plt>
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  add    %rax,-0x40(%rbp)
  mov    -0x18(%rbp),%eax
  sub    -0x1c(%rbp),%eax
  sar    $0xe,%eax
  sub    $0xffffff80,%eax
  mov    %eax,%edi
  call   <njClip@plt>
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  add    %rax,-0x40(%rbp)
  mov    -0x8(%rbp),%eax
  sub    -0x20(%rbp),%eax
  sar    $0xe,%eax
  sub    $0xffffff80,%eax
  mov    %eax,%edi
  call   <njClip@plt>
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %dl,(%rax)
L32:
  leave
  ret
```

assistant: ```c
void njColIDCT(const int *blk, unsigned char *out, int stride) {
  int x0, x1, x2, x3, x4, x5, x6, x7, x8;
  if (!((x1 = blk[8 * 4] << 8) | (x2 = blk[8 * 6]) | (x3 = blk[8 * 2]) | (x4 = blk[8 * 1]) | (x5 = blk[8 * 7]) | (x6 = blk[8 * 5]) | (x7 = blk[8 * 3]))) {
    x1 = njClip(((blk[0] + 32) >> 6) + 128);
    for (x0 = 8; x0; --x0) {
      *out = (unsigned char)x1;
      out += stride;
    }
    return;
  }
  x0 = (blk[0] << 8) + 8192;
  x8 = 565 * (x4 + x5) + 4;
  x4 = (x8 + (2841 - 565) * x4) >> 3;
  x5 = (x8 - (2841 + 565) * x5) >> 3;
  x8 = 2408 * (x6 + x7) + 4;
  x6 = (x8 - (2408 - 1609) * x6) >> 3;
  x7 = (x8 - (2408 + 1609) * x7) >> 3;
  x8 = x0 + x1;
  x0 -= x1;
  x1 = 1108 * (x3 + x2) + 4;
  x2 = (x1 - (2676 + 1108) * x2) >> 3;
  x3 = (x1 + (2676 - 1108) * x3) >> 3;
  x1 = x4 + x6;
  x4 -= x6;
  x6 = x5 + x7;
  x5 -= x7;
  x7 = x8 + x3;
  x8 -= x3;
  x3 = x0 + x2;
  x0 -= x2;
  x2 = (181 * (x4 + x5) + 128) >> 8;
  x4 = (181 * (x4 - x5) + 128) >> 8;
  *out = njClip(((x7 + x1) >> 14) + 128);
  out += stride;
  *out = njClip(((x3 + x2) >> 14) + 128);
  out += stride;
  *out = njClip(((x0 + x4) >> 14) + 128);
  out += stride;
  *out = njClip(((x8 + x6) >> 14) + 128);
  out += stride;
  *out = njClip(((x8 - x6) >> 14) + 128);
  out += stride;
  *out = njClip(((x0 - x4) >> 14) + 128);
  out += stride;
  *out = njClip(((x3 - x2) >> 14) + 128);
  out += stride;
  *out = njClip(((x7 - x1) >> 14) + 128);
}
```