user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<idctrow_enc>:
  endbr64
  push   %rbx
  movswl 0xc(%rdi),%r8d
  mov    %rdi,%rax
  movswl 0x4(%rdi),%r9d
  movswl 0x2(%rdi),%edx
  mov    %r8d,%esi
  movswl 0x8(%rdi),%ebx
  movswl 0xe(%rdi),%edi
  or     %r9d,%esi
  movswl 0xa(%rax),%r11d
  movswl 0x6(%rax),%r10d
  or     %edx,%esi
  shl    $0xb,%ebx
  movswl (%rax),%ecx
  or     %edi,%esi
  or     %r11d,%esi
  or     %r10d,%esi
  movswl %si,%esi
  or     %ebx,%esi
  je     L5
  lea    (%rdx,%rdi,1),%esi
  shl    $0xb,%ecx
  imul   $0x235,%esi,%esi
  sub    $0xffffff80,%ecx
  imul   $0x8e4,%edx,%edx
  imul   $0xfffff2b2,%edi,%edi
  add    %esi,%edx
  add    %esi,%edi
  lea    (%r11,%r10,1),%esi
  imul   $0x968,%esi,%esi
  imul   $0xfffffce1,%r11d,%r11d
  imul   $0xfffff04f,%r10d,%r10d
  add    %esi,%r11d
  add    %esi,%r10d
  lea    (%rbx,%rcx,1),%esi
  sub    %ebx,%ecx
  lea    (%r8,%r9,1),%ebx
  imul   $0x454,%ebx,%ebx
  imul   $0xfffff138,%r8d,%r8d
  imul   $0x620,%r9d,%r9d
  add    %ebx,%r8d
  add    %ebx,%r9d
  lea    (%rdx,%r11,1),%ebx
  sub    %r11d,%edx
  lea    (%rdi,%r10,1),%r11d
  sub    %r10d,%edi
  lea    (%rsi,%r9,1),%r10d
  sub    %r9d,%esi
  lea    (%rcx,%r8,1),%r9d
  sub    %r8d,%ecx
  lea    (%rdx,%rdi,1),%r8d
  sub    %edi,%edx
  imul   $0xb5,%r8d,%r8d
  lea    (%rbx,%r10,1),%edi
  imul   $0xb5,%edx,%edx
  sar    $0x8,%edi
  mov    %di,(%rax)
  sub    $0xffffff80,%r8d
  sar    $0x8,%r8d
  sub    $0xffffff80,%edx
  lea    (%r9,%r8,1),%edi
  sar    $0x8,%edx
  sar    $0x8,%edi
  mov    %di,0x2(%rax)
  lea    (%rcx,%rdx,1),%edi
  sar    $0x8,%edi
  mov    %di,0x4(%rax)
  lea    (%r11,%rsi,1),%edi
  sar    $0x8,%edi
  sub    %ebx,%r10d
  sub    %r11d,%esi
  sub    %edx,%ecx
  sub    %r8d,%r9d
  sar    $0x8,%esi
  mov    %di,0x6(%rax)
  pop    %rbx
  sar    $0x8,%ecx
  sar    $0x8,%r9d
  mov    %si,0x8(%rax)
  sar    $0x8,%r10d
  mov    %cx,0xa(%rax)
  mov    %r9w,0xc(%rax)
  mov    %r10w,0xe(%rax)
  ret
  nopl   (%rax)
L5:
  shl    $0x3,%ecx
  pop    %rbx
  mov    %cx,0xe(%rax)
  mov    %cx,0xc(%rax)
  mov    %cx,0xa(%rax)
  mov    %cx,0x8(%rax)
  mov    %cx,0x6(%rax)
  mov    %cx,0x4(%rax)
  mov    %cx,0x2(%rax)
  mov    %cx,(%rax)
  ret
```

assistant: ```c
void idctrow_enc(blk) short *blk;
{
  int x0, x1, x2, x3, x4, x5, x6, x7, x8;
  if (!((x1 = blk[4] << 11) | (x2 = blk[6]) | (x3 = blk[2]) | (x4 = blk[1]) | (x5 = blk[7]) | (x6 = blk[5]) | (x7 = blk[3]))) {
    blk[0] = blk[1] = blk[2] = blk[3] = blk[4] = blk[5] = blk[6] = blk[7] = blk[0] << 3;
    return;
  }
  x0 = (blk[0] << 11) + 128;
  x8 = 565 * (x4 + x5);
  x4 = x8 + (2841 - 565) * x4;
  x5 = x8 - (2841 + 565) * x5;
  x8 = 2408 * (x6 + x7);
  x6 = x8 - (2408 - 1609) * x6;
  x7 = x8 - (2408 + 1609) * x7;
  x8 = x0 + x1;
  x0 -= x1;
  x1 = 1108 * (x3 + x2);
  x2 = x1 - (2676 + 1108) * x2;
  x3 = x1 + (2676 - 1108) * x3;
  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[0] = (x7 + x1) >> 8;
  blk[1] = (x3 + x2) >> 8;
  blk[2] = (x0 + x4) >> 8;
  blk[3] = (x8 + x6) >> 8;
  blk[4] = (x8 - x6) >> 8;
  blk[5] = (x0 - x4) >> 8;
  blk[6] = (x3 - x2) >> 8;
  blk[7] = (x7 - x1) >> 8;
}
```