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

```asm
<idctcol>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rax
  movswl 0x40(%rdi),%r11d
  shl    $0x8,%r11d
  movzwl 0x60(%rdi),%r8d
  movzwl 0x20(%rdi),%edi
  movzwl 0x10(%rax),%ebp
  movzwl 0x70(%rax),%ebx
  movzwl 0x50(%rax),%r10d
  movzwl 0x30(%rax),%esi
  mov    %r8d,%edx
  or     %edi,%edx
  or     %ebp,%edx
  or     %ebx,%edx
  or     %r10d,%edx
  or     %esi,%edx
  movswl %dx,%edx
  or     %r11d,%edx
  je     L14
  movswl %r8w,%r8d
  movswl %di,%edi
  movswl %bp,%ebp
  movswl %bx,%ebx
  movswl %r10w,%r10d
  movswl %si,%esi
  movswl (%rax),%edx
  shl    $0x8,%edx
  add    $0x2000,%edx
  lea    0x0(%rbp,%rbx,1),%r9d
  imul   $0x235,%r9d,%r9d
  add    $0x4,%r9d
  imul   $0x8e4,%ebp,%ebp
  add    %r9d,%ebp
  sar    $0x3,%ebp
  imul   $0xfffff2b2,%ebx,%ebx
  add    %r9d,%ebx
  sar    $0x3,%ebx
  lea    (%r10,%rsi,1),%ecx
  imul   $0x968,%ecx,%ecx
  add    $0x4,%ecx
  imul   $0xfffffce1,%r10d,%r10d
  add    %ecx,%r10d
  sar    $0x3,%r10d
  imul   $0xfffff04f,%esi,%r9d
  add    %ecx,%r9d
  sar    $0x3,%r9d
  lea    (%r11,%rdx,1),%r12d
  sub    %r11d,%edx
  lea    (%r8,%rdi,1),%r11d
  imul   $0x454,%r11d,%r11d
  add    $0x4,%r11d
  imul   $0xfffff138,%r8d,%ecx
  add    %r11d,%ecx
  sar    $0x3,%ecx
  imul   $0x620,%edi,%esi
  add    %r11d,%esi
  sar    $0x3,%esi
  lea    0x0(%rbp,%r10,1),%r8d
  mov    %ebp,%edi
  sub    %r10d,%edi
  lea    (%rbx,%r9,1),%r10d
  sub    %r9d,%ebx
  lea    (%r12,%rsi,1),%r9d
  sub    %esi,%r12d
  lea    (%rdx,%rcx,1),%r11d
  sub    %ecx,%edx
  lea    (%rdi,%rbx,1),%esi
  imul   $0xb5,%esi,%esi
  sub    $0xffffff80,%esi
  sar    $0x8,%esi
  sub    %ebx,%edi
  imul   $0xb5,%edi,%ecx
  sub    $0xffffff80,%ecx
  sar    $0x8,%ecx
  lea    (%r8,%r9,1),%edi
  sar    $0xe,%edi
  mov    %di,(%rax)
  lea    (%r11,%rsi,1),%edi
  sar    $0xe,%edi
  mov    %di,0x10(%rax)
  lea    (%rdx,%rcx,1),%edi
  sar    $0xe,%edi
  mov    %di,0x20(%rax)
  lea    (%r10,%r12,1),%edi
  sar    $0xe,%edi
  mov    %di,0x30(%rax)
  sub    %r10d,%r12d
  sar    $0xe,%r12d
  mov    %r12w,0x40(%rax)
  sub    %ecx,%edx
  sar    $0xe,%edx
  mov    %dx,0x50(%rax)
  sub    %esi,%r11d
  sar    $0xe,%r11d
  mov    %r11w,0x60(%rax)
  sub    %r8d,%r9d
  sar    $0xe,%r9d
  mov    %r9w,0x70(%rax)
L1:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L14:
  movswl (%rax),%edx
  add    $0x20,%edx
  sar    $0x6,%edx
  mov    %dx,0x70(%rax)
  mov    %dx,0x60(%rax)
  mov    %dx,0x50(%rax)
  mov    %dx,0x40(%rax)
  mov    %dx,0x30(%rax)
  mov    %dx,0x20(%rax)
  mov    %dx,0x10(%rax)
  mov    %dx,(%rax)
  jmp    L1
```

assistant: ```c
void idctcol(blk) short *blk;
{
  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]))) {
    blk[8 * 0] = blk[8 * 1] = blk[8 * 2] = blk[8 * 3] = blk[8 * 4] = blk[8 * 5] = blk[8 * 6] = blk[8 * 7] = (blk[8 * 0] + 32) >> 6;
    return;
  }
  x0 = (blk[8 * 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;
  blk[8 * 0] = (x7 + x1) >> 14;
  blk[8 * 1] = (x3 + x2) >> 14;
  blk[8 * 2] = (x0 + x4) >> 14;
  blk[8 * 3] = (x8 + x6) >> 14;
  blk[8 * 4] = (x8 - x6) >> 14;
  blk[8 * 5] = (x0 - x4) >> 14;
  blk[8 * 6] = (x3 - x2) >> 14;
  blk[8 * 7] = (x7 - x1) >> 14;
}
```