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

```asm
<ChenIDct>:
  endbr64
  push   %r15
  mov    %rsi,%rdx
  mov    %rdi,%r10
  mov    %rsi,%rax
  push   %r14
  lea    0x20(%rdi),%r15
  mov    %rsi,%r11
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  xchg   %ax,%ax
L32:
  mov    (%r10),%ebx
  mov    0x80(%r10),%esi
  mov    0xa0(%r10),%r14d
  lea    0x0(,%rbx,4),%ecx
  mov    0x20(%r10),%ebx
  lea    0x0(,%rsi,4),%r9d
  mov    0xe0(%r10),%esi
  lea    0x0(,%r14,4),%r12d
  mov    0x60(%r10),%r14d
  lea    0x0(,%rbx,4),%edi
  lea    0x0(,%rsi,4),%ebx
  movslq %r12d,%r12
  movslq %edi,%rdi
  imul   $0x1aa,%r12,%rbp
  movslq %ebx,%rbx
  imul   $0x11c,%r12,%r12
  lea    (%rdi,%rdi,4),%rsi
  imul   $0x1f6,%rdi,%rdi
  lea    (%rsi,%rsi,4),%r8
  imul   $0xfffffffffffffe0a,%rbx,%rsi
  lea    (%rbx,%rbx,4),%rbx
  lea    (%rbx,%rbx,4),%rbx
  lea    (%rdi,%rbx,4),%rbx
  lea    (%rcx,%r9,1),%edi
  sub    %r9d,%ecx
  lea    (%rsi,%r8,4),%rsi
  movslq %edi,%rdi
  sar    $0x9,%rbx
  movslq %ecx,%rcx
  lea    0x0(,%r14,4),%r8d
  mov    0x40(%r10),%r14d
  sar    $0x9,%rsi
  movslq %r8d,%r8
  imul   $0x16a,%rdi,%rdi
  imul   $0xfffffffffffffee4,%r8,%r13
  lea    0x0(,%r14,4),%r9d
  mov    0xc0(%r10),%r14d
  imul   $0x1aa,%r8,%r8
  movslq %r9d,%r9
  sar    $0x9,%rdi
  imul   $0x16a,%rcx,%rcx
  add    %r13,%rbp
  lea    0x0(,%r14,4),%r13d
  movslq %r13d,%r13
  add    %r12,%r8
  sar    $0x9,%rbp
  imul   $0xfffffffffffffe27,%r13,%r14
  sar    $0x9,%r8
  sar    $0x9,%rcx
  imul   $0xc4,%r9,%r12
  imul   $0xc4,%r13,%r13
  imul   $0x1d9,%r9,%r9
  add    %r14,%r12
  sar    $0x9,%r12
  add    %r13,%r9
  lea    (%r12,%rcx,1),%r14d
  sub    %r12d,%ecx
  sar    $0x9,%r9
  lea    (%r9,%rdi,1),%r13d
  sub    %r9d,%edi
  lea    0x0(%rbp,%rsi,1),%r9d
  sub    %ebp,%esi
  mov    %ebx,%ebp
  add    %r8d,%ebx
  sub    %r8d,%ebp
  mov    %ebp,%r8d
  sub    %esi,%r8d
  movslq %r8d,%r8
  imul   $0x16a,%r8,%r8
  sar    $0x9,%r8
  add    %ebp,%esi
  lea    0x0(%r13,%rbx,1),%ebp
  add    $0x4,%r10
  movslq %esi,%rsi
  mov    %ebp,(%r11)
  sub    %ebx,%r13d
  add    $0x4,%r11
  imul   $0x16a,%rsi,%rsi
  mov    %r13d,0xdc(%r11)
  sar    $0x9,%rsi
  lea    (%r14,%rsi,1),%ebp
  sub    %esi,%r14d
  mov    %ebp,0x1c(%r11)
  lea    (%rcx,%r8,1),%ebp
  sub    %r8d,%ecx
  mov    %ebp,0x3c(%r11)
  lea    (%rdi,%r9,1),%ebp
  sub    %r9d,%edi
  mov    %ebp,0x5c(%r11)
  mov    %edi,0x7c(%r11)
  mov    %ecx,0x9c(%r11)
  mov    %r14d,0xbc(%r11)
  cmp    %r10,%r15
  jne    L32
  lea    0x100(%rdx),%r9
  nopl   (%rax)
L14:
  movslq 0x4(%rax),%rdi
  movslq 0x1c(%rax),%r11
  movslq 0x14(%rax),%r10
  mov    (%rax),%esi
  lea    (%rdi,%rdi,4),%rcx
  movslq 0x18(%rax),%r12
  imul   $0x1aa,%r10,%rbx
  lea    (%rcx,%rcx,4),%r8
  imul   $0xfffffffffffffe0a,%r11,%rcx
  imul   $0x11c,%r10,%r10
  imul   $0x1f6,%rdi,%rdi
  imul   $0xfffffffffffffe27,%r12,%r13
  lea    (%rcx,%r8,4),%rcx
  movslq 0xc(%rax),%r8
  imul   $0xc4,%r12,%r12
  sar    $0x9,%rcx
  imul   $0xfffffffffffffee4,%r8,%rbp
  imul   $0x1aa,%r8,%r8
  add    %rbp,%rbx
  add    %r10,%r8
  lea    (%r11,%r11,4),%r10
  sar    $0x9,%rbx
  lea    (%r10,%r10,4),%r10
  sar    $0x9,%r8
  lea    (%rdi,%r10,4),%r11
  mov    0x10(%rax),%edi
  movslq 0x8(%rax),%r10
  sar    $0x9,%r11
  add    %esi,%edi
  imul   $0xc4,%r10,%rbp
  sub    0x10(%rax),%esi
  imul   $0x1d9,%r10,%r10
  movslq %edi,%rdi
  movslq %esi,%rsi
  imul   $0x16a,%rdi,%rdi
  imul   $0x16a,%rsi,%rsi
  add    %r13,%rbp
  add    %r12,%r10
  sar    $0x9,%rbp
  sar    $0x9,%r10
  sar    $0x9,%rdi
  lea    (%r10,%rdi,1),%r12d
  sub    %r10d,%edi
  lea    (%rbx,%rcx,1),%r10d
  sub    %ebx,%ecx
  mov    %r11d,%ebx
  add    %r8d,%r11d
  sar    $0x9,%rsi
  sub    %r8d,%ebx
  lea    0x0(%rbp,%rsi,1),%r13d
  sub    %ebp,%esi
  mov    %ebx,%r8d
  sub    %ecx,%r8d
  movslq %r8d,%r8
  imul   $0x16a,%r8,%r8
  add    %ebx,%ecx
  lea    (%r12,%r11,1),%ebx
  sub    %r11d,%r12d
  movslq %ecx,%rcx
  mov    %ebx,(%rax)
  add    $0x20,%rax
  imul   $0x16a,%rcx,%rcx
  mov    %r12d,-0x4(%rax)
  sar    $0x9,%r8
  sar    $0x9,%rcx
  lea    0x0(%r13,%rcx,1),%ebx
  sub    %ecx,%r13d
  mov    %ebx,-0x1c(%rax)
  lea    (%rsi,%r8,1),%ebx
  sub    %r8d,%esi
  mov    %ebx,-0x18(%rax)
  lea    (%rdi,%r10,1),%ebx
  sub    %r10d,%edi
  mov    %ebx,-0x14(%rax)
  mov    %edi,-0x10(%rax)
  mov    %esi,-0xc(%rax)
  mov    %r13d,-0x8(%rax)
  cmp    %rax,%r9
  jne    L14
  nopl   0x0(%rax)
L26:
  mov    (%rdx),%ecx
  lea    0x8(%rcx),%eax
  sar    $0x4,%eax
  test   %ecx,%ecx
  jns    L0
  lea    0x7(%rcx),%eax
  sub    $0x8,%ecx
  cmovns %ecx,%eax
  sar    $0x4,%eax
L0:
  mov    %eax,(%rdx)
  add    $0x4,%rdx
  cmp    %r9,%rdx
  jne    L26
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void ChenIDct(x, y) int *x;
int *y;
{
  register int i;
  register int *aptr;
  register int a0, a1, a2, a3;
  register int b0, b1, b2, b3;
  register int c0, c1, c2, c3;
  for (i = 0; i < 8; i++) {
    aptr = x + i;
    b0 = ((*aptr) << (2));
    aptr += 8;
    a0 = ((*aptr) << (2));
    aptr += 8;
    b2 = ((*aptr) << (2));
    aptr += 8;
    a1 = ((*aptr) << (2));
    aptr += 8;
    b1 = ((*aptr) << (2));
    aptr += 8;
    a2 = ((*aptr) << (2));
    aptr += 8;
    b3 = ((*aptr) << (2));
    aptr += 8;
    a3 = ((*aptr) << (2));
    c0 = ((((100L * a0) - (502L * a3))) >> (9));
    c1 = ((((426L * a2) - (284L * a1))) >> (9));
    c2 = ((((426L * a1) + (284L * a2))) >> (9));
    c3 = ((((502L * a0) + (100L * a3))) >> (9));
    a0 = (((362L * (b0 + b1))) >> (9));
    a1 = (((362L * (b0 - b1))) >> (9));
    a2 = ((((196L * b2) - (473L * b3))) >> (9));
    a3 = ((((473L * b2) + (196L * b3))) >> (9));
    b0 = a0 + a3;
    b1 = a1 + a2;
    b2 = a1 - a2;
    b3 = a0 - a3;
    a0 = c0 + c1;
    a1 = c0 - c1;
    a2 = c3 - c2;
    a3 = c3 + c2;
    c0 = a0;
    c1 = (((362L * (a2 - a1))) >> (9));
    c2 = (((362L * (a2 + a1))) >> (9));
    c3 = a3;
    aptr = y + i;
    *aptr = b0 + c3;
    aptr += 8;
    *aptr = b1 + c2;
    aptr += 8;
    *aptr = b2 + c1;
    aptr += 8;
    *aptr = b3 + c0;
    aptr += 8;
    *aptr = b3 - c0;
    aptr += 8;
    *aptr = b2 - c1;
    aptr += 8;
    *aptr = b1 - c2;
    aptr += 8;
    *aptr = b0 - c3;
  }
  for (i = 0; i < 8; i++) {
    aptr = y + ((i) << (3));
    b0 = *(aptr++);
    a0 = *(aptr++);
    b2 = *(aptr++);
    a1 = *(aptr++);
    b1 = *(aptr++);
    a2 = *(aptr++);
    b3 = *(aptr++);
    a3 = *(aptr);
    c0 = ((((100L * a0) - (502L * a3))) >> (9));
    c1 = ((((426L * a2) - (284L * a1))) >> (9));
    c2 = ((((426L * a1) + (284L * a2))) >> (9));
    c3 = ((((502L * a0) + (100L * a3))) >> (9));
    a0 = (((362L * (b0 + b1))) >> (9));
    a1 = (((362L * (b0 - b1))) >> (9));
    a2 = ((((196L * b2) - (473L * b3))) >> (9));
    a3 = ((((473L * b2) + (196L * b3))) >> (9));
    b0 = a0 + a3;
    b1 = a1 + a2;
    b2 = a1 - a2;
    b3 = a0 - a3;
    a0 = c0 + c1;
    a1 = c0 - c1;
    a2 = c3 - c2;
    a3 = c3 + c2;
    c0 = a0;
    c1 = (((362L * (a2 - a1))) >> (9));
    c2 = (((362L * (a2 + a1))) >> (9));
    c3 = a3;
    aptr = y + ((i) << (3));
    *(aptr++) = b0 + c3;
    *(aptr++) = b1 + c2;
    *(aptr++) = b2 + c1;
    *(aptr++) = b3 + c0;
    *(aptr++) = b3 - c0;
    *(aptr++) = b2 - c1;
    *(aptr++) = b1 - c2;
    *(aptr) = b0 - c3;
  }
  for (i = 0, aptr = y; i < 64; i++, aptr++)
    *aptr = (((*aptr < 0) ? (*aptr - 8) : (*aptr + 8)) / 16);
}
```