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

```asm
<ddct16x16s>:
  endbr64
  push   %r15
  mov    %edi,%eax
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x70,%rsp
  mov    0x78(%rsi),%rdi
  test   %eax,%eax
  mov    0x8(%rsi),%r15
  mov    %rsi,0x60(%rsp)
  mov    0x48(%rsi),%rdx
  mov    $0x0,%eax
  mov    0x28(%rsi),%rcx
  mov    0x68(%r14),%r8
  mov    %rdi,0x8(%rsp)
  movsd  D222(%rip),%xmm4
  mov    0x38(%rsi),%rdi
  mov    0x20(%r14),%r9
  mov    0x60(%r14),%r10
  movsd  %xmm4,-0x60(%rsp)
  movsd  D329(%rip),%xmm4
  mov    (%r14),%r11
  mov    0x40(%r14),%rbx
  mov    0x10(%r14),%rbp
  mov    %rdi,0x10(%rsp)
  movsd  %xmm4,-0x58(%rsp)
  movsd  D239(%rip),%xmm4
  mov    0x18(%r14),%rdi
  mov    0x70(%r14),%r12
  mov    0x30(%r14),%r13
  mov    0x58(%rsi),%rsi
  mov    0x50(%r14),%r14
  movsd  %xmm4,-0x50(%rsp)
  js     L12
  movsd  D224(%rip),%xmm4
  mov    %rdx,0x28(%rsp)
  movsd  %xmm4,-0x78(%rsp)
  movsd  D274(%rip),%xmm4
  movsd  %xmm4,-0x48(%rsp)
  movsd  D257(%rip),%xmm4
  movsd  %xmm4,-0x40(%rsp)
  movsd  D97(%rip),%xmm4
  movsd  %xmm4,-0x70(%rsp)
  movsd  D319(%rip),%xmm4
  movsd  %xmm4,-0x68(%rsp)
  movsd  D27(%rip),%xmm4
  movsd  %xmm4,0x18(%rsp)
  movsd  D51(%rip),%xmm4
  movsd  %xmm4,0x20(%rsp)
  movsd  D183(%rip),%xmm4
  movsd  %xmm4,-0x18(%rsp)
  movsd  D247(%rip),%xmm4
  movsd  %xmm4,-0x38(%rsp)
  movsd  D42(%rip),%xmm4
  movsd  %xmm4,-0x10(%rsp)
  movsd  D181(%rip),%xmm4
  movsd  %xmm4,-0x8(%rsp)
  movsd  D123(%rip),%xmm4
  movsd  %xmm4,(%rsp)
  movsd  D140(%rip),%xmm4
  movsd  %xmm4,-0x30(%rsp)
  movsd  D281(%rip),%xmm4
  movsd  %xmm4,-0x28(%rsp)
  movsd  D7(%rip),%xmm4
  movsd  %xmm4,-0x20(%rsp)
  nopw   0x0(%rax,%rax,1)
L17:
  mov    0x8(%rsp),%rdx
  movsd  -0x18(%rsp),%xmm4
  movsd  -0x38(%rsp),%xmm7
  movsd  (%r15,%rax,1),%xmm1
  movsd  (%rdx,%rax,1),%xmm5
  movapd %xmm4,%xmm0
  mov    0x10(%rsp),%rdx
  mulsd  %xmm1,%xmm0
  movapd %xmm7,%xmm2
  movsd  -0x8(%rsp),%xmm6
  movsd  -0x28(%rsp),%xmm13
  mulsd  %xmm5,%xmm2
  movsd  (%rdx,%rax,1),%xmm3
  mov    0x28(%rsp),%rdx
  mulsd  %xmm7,%xmm1
  movsd  -0x10(%rsp),%xmm7
  movsd  -0x20(%rsp),%xmm15
  mulsd  %xmm4,%xmm5
  movapd %xmm6,%xmm4
  movsd  -0x78(%rsp),%xmm14
  addsd  %xmm2,%xmm0
  movapd %xmm7,%xmm2
  mulsd  %xmm3,%xmm2
  subsd  %xmm1,%xmm5
  movsd  (%rdx,%rax,1),%xmm1
  mulsd  %xmm6,%xmm3
  movsd  (%rsi,%rax,1),%xmm6
  movapd %xmm0,%xmm10
  mulsd  %xmm1,%xmm4
  mulsd  %xmm7,%xmm1
  movapd %xmm5,%xmm9
  movsd  -0x30(%rsp),%xmm7
  addsd  %xmm4,%xmm2
  movsd  (%rsp),%xmm4
  subsd  %xmm3,%xmm1
  movapd %xmm4,%xmm3
  addsd  %xmm2,%xmm10
  subsd  %xmm2,%xmm0
  movapd %xmm7,%xmm2
  addsd  %xmm1,%xmm5
  subsd  %xmm1,%xmm9
  movsd  (%rcx,%rax,1),%xmm1
  mulsd  %xmm6,%xmm2
  mulsd  %xmm4,%xmm6
  movapd %xmm13,%xmm4
  mulsd  %xmm1,%xmm3
  mulsd  %xmm7,%xmm1
  movapd %xmm15,%xmm7
  addsd  %xmm2,%xmm3
  movsd  (%rdi,%rax,1),%xmm2
  subsd  %xmm1,%xmm6
  movsd  (%r8,%rax,1),%xmm1
  mulsd  %xmm2,%xmm4
  mulsd  %xmm1,%xmm7
  mulsd  %xmm15,%xmm2
  mulsd  %xmm13,%xmm1
  addsd  %xmm7,%xmm4
  movapd %xmm3,%xmm7
  subsd  %xmm2,%xmm1
  movapd %xmm6,%xmm2
  addsd  %xmm4,%xmm7
  subsd  %xmm4,%xmm3
  movapd %xmm9,%xmm4
  subsd  %xmm1,%xmm2
  addsd  %xmm1,%xmm6
  movapd %xmm10,%xmm1
  subsd  %xmm7,%xmm1
  addsd  %xmm7,%xmm10
  movsd  0x18(%rsp),%xmm7
  subsd  %xmm2,%xmm4
  addsd  %xmm2,%xmm9
  movapd %xmm5,%xmm2
  movapd %xmm1,%xmm12
  subsd  %xmm3,%xmm2
  addsd  %xmm5,%xmm3
  movapd %xmm7,%xmm11
  addsd  %xmm4,%xmm12
  subsd  %xmm1,%xmm4
  movapd %xmm0,%xmm1
  addsd  %xmm6,%xmm1
  subsd  %xmm6,%xmm0
  movsd  0x20(%rsp),%xmm6
  mulsd  %xmm14,%xmm4
  movapd %xmm6,%xmm5
  movapd %xmm6,%xmm13
  mulsd  %xmm3,%xmm5
  mulsd  %xmm0,%xmm11
  mulsd  %xmm7,%xmm3
  mulsd  %xmm6,%xmm0
  mulsd  %xmm1,%xmm13
  mulsd  %xmm7,%xmm1
  addsd  %xmm5,%xmm11
  movsd  -0x58(%rsp),%xmm5
  mulsd  %xmm14,%xmm12
  subsd  %xmm0,%xmm3
  movapd %xmm7,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  %xmm6,%xmm2
  movapd %xmm5,%xmm6
  movsd  %xmm3,0x30(%rsp)
  addsd  %xmm0,%xmm13
  movsd  (%r9,%rax,1),%xmm0
  subsd  %xmm1,%xmm2
  mulsd  %xmm0,%xmm6
  movsd  %xmm2,0x38(%rsp)
  movsd  (%r10,%rax,1),%xmm2
  movapd %xmm6,%xmm3
  movsd  -0x50(%rsp),%xmm6
  mulsd  %xmm6,%xmm0
  movapd %xmm6,%xmm1
  movsd  -0x60(%rsp),%xmm6
  mulsd  %xmm2,%xmm1
  mulsd  %xmm5,%xmm2
  movsd  (%rbx,%rax,1),%xmm5
  addsd  %xmm1,%xmm3
  subsd  %xmm0,%xmm2
  movsd  (%r11,%rax,1),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm5,%xmm0
  addsd  %xmm5,%xmm1
  movapd %xmm2,%xmm5
  mulsd  %xmm6,%xmm0
  mulsd  %xmm6,%xmm1
  movapd %xmm3,%xmm6
  addsd  %xmm0,%xmm5
  subsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm6
  subsd  %xmm3,%xmm1
  movsd  0x0(%rbp,%rax,1),%xmm3
  movsd  (%r12,%rax,1),%xmm2
  movsd  -0x48(%rsp),%xmm15
  mov    0x8(%rsp),%rdx
  movapd %xmm15,%xmm8
  mulsd  %xmm3,%xmm8
  movapd %xmm8,%xmm14
  movsd  -0x40(%rsp),%xmm8
  mulsd  %xmm8,%xmm3
  movapd %xmm8,%xmm7
  movsd  (%r14,%rax,1),%xmm8
  mulsd  %xmm2,%xmm7
  mulsd  %xmm15,%xmm2
  movsd  -0x68(%rsp),%xmm15
  mulsd  %xmm8,%xmm15
  mulsd  -0x70(%rsp),%xmm8
  addsd  %xmm7,%xmm14
  movsd  -0x70(%rsp),%xmm7
  subsd  %xmm3,%xmm2
  movsd  0x0(%r13,%rax,1),%xmm3
  mulsd  %xmm3,%xmm7
  mulsd  -0x68(%rsp),%xmm3
  addsd  %xmm15,%xmm7
  movapd %xmm14,%xmm15
  subsd  %xmm3,%xmm8
  movapd %xmm2,%xmm3
  subsd  %xmm7,%xmm15
  addsd  %xmm14,%xmm7
  movsd  -0x78(%rsp),%xmm14
  addsd  %xmm8,%xmm3
  subsd  %xmm8,%xmm2
  movapd %xmm15,%xmm8
  addsd  %xmm3,%xmm8
  subsd  %xmm15,%xmm3
  mulsd  %xmm14,%xmm8
  mulsd  %xmm14,%xmm3
  movapd %xmm6,%xmm14
  subsd  %xmm7,%xmm6
  addsd  %xmm7,%xmm14
  movapd %xmm10,%xmm7
  addsd  %xmm14,%xmm7
  subsd  %xmm10,%xmm14
  movsd  %xmm7,(%r11,%rax,1)
  movapd %xmm9,%xmm7
  addsd  %xmm6,%xmm7
  subsd  %xmm9,%xmm6
  movsd  %xmm14,(%rdx,%rax,1)
  mov    0x10(%rsp),%rdx
  movsd  %xmm7,(%rbx,%rax,1)
  movapd %xmm13,%xmm7
  movsd  %xmm6,(%rdx,%rax,1)
  movapd %xmm5,%xmm6
  subsd  %xmm8,%xmm5
  mov    0x28(%rsp),%rdx
  addsd  %xmm8,%xmm6
  addsd  %xmm6,%xmm7
  subsd  %xmm13,%xmm6
  movsd  %xmm7,0x0(%rbp,%rax,1)
  movsd  0x38(%rsp),%xmm7
  movsd  %xmm6,(%r8,%rax,1)
  movapd %xmm7,%xmm6
  addsd  %xmm5,%xmm6
  subsd  %xmm7,%xmm5
  movsd  %xmm6,(%r14,%rax,1)
  movsd  %xmm5,(%rcx,%rax,1)
  movapd %xmm1,%xmm5
  subsd  %xmm2,%xmm1
  addsd  %xmm2,%xmm5
  movapd %xmm12,%xmm2
  addsd  %xmm5,%xmm2
  subsd  %xmm12,%xmm5
  movsd  %xmm2,(%r9,%rax,1)
  movapd %xmm4,%xmm2
  addsd  %xmm1,%xmm2
  subsd  %xmm4,%xmm1
  movsd  %xmm5,(%rsi,%rax,1)
  movsd  0x30(%rsp),%xmm4
  movsd  %xmm2,(%r10,%rax,1)
  movapd %xmm11,%xmm2
  movsd  %xmm1,(%rdi,%rax,1)
  movapd %xmm0,%xmm1
  subsd  %xmm3,%xmm0
  addsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm2
  subsd  %xmm11,%xmm1
  movsd  %xmm2,0x0(%r13,%rax,1)
  movsd  %xmm1,(%rdx,%rax,1)
  movapd %xmm4,%xmm1
  addsd  %xmm0,%xmm1
  subsd  %xmm4,%xmm0
  movsd  %xmm1,(%r12,%rax,1)
  movsd  %xmm0,(%r15,%rax,1)
  add    $0x8,%rax
  cmp    $0x80,%rax
  jne    L17
  mov    0x60(%rsp),%rdx
  lea    0x80(%rdx),%rcx
  nopl   0x0(%rax)
L35:
  mov    (%rdx),%rax
  movsd  -0x18(%rsp),%xmm4
  add    $0x8,%rdx
  movsd  -0x38(%rsp),%xmm5
  movsd  -0x8(%rsp),%xmm7
  movsd  0x8(%rax),%xmm1
  movsd  0x78(%rax),%xmm6
  movapd %xmm4,%xmm0
  movapd %xmm5,%xmm2
  movsd  0x38(%rax),%xmm3
  movsd  -0x30(%rsp),%xmm10
  mulsd  %xmm6,%xmm2
  movsd  -0x28(%rsp),%xmm13
  movsd  0x20(%rsp),%xmm15
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rsp),%xmm14
  mulsd  %xmm5,%xmm1
  movsd  -0x10(%rsp),%xmm5
  movapd %xmm15,%xmm11
  mulsd  %xmm4,%xmm6
  movapd %xmm7,%xmm4
  addsd  %xmm2,%xmm0
  movapd %xmm5,%xmm2
  mulsd  %xmm3,%xmm2
  subsd  %xmm1,%xmm6
  movsd  0x48(%rax),%xmm1
  mulsd  %xmm7,%xmm3
  movsd  0x58(%rax),%xmm7
  movapd %xmm0,%xmm8
  mulsd  %xmm1,%xmm4
  mulsd  %xmm5,%xmm1
  addsd  %xmm4,%xmm2
  movapd %xmm6,%xmm4
  subsd  %xmm3,%xmm1
  movsd  (%rsp),%xmm3
  addsd  %xmm2,%xmm8
  subsd  %xmm2,%xmm0
  movapd %xmm3,%xmm5
  addsd  %xmm1,%xmm6
  subsd  %xmm1,%xmm4
  movsd  0x28(%rax),%xmm1
  movapd %xmm10,%xmm2
  mulsd  %xmm7,%xmm2
  mulsd  %xmm1,%xmm5
  mulsd  %xmm3,%xmm7
  movsd  0x18(%rax),%xmm3
  mulsd  %xmm10,%xmm1
  movsd  -0x20(%rsp),%xmm10
  movapd %xmm10,%xmm9
  addsd  %xmm2,%xmm5
  movapd %xmm13,%xmm2
  mulsd  %xmm3,%xmm2
  subsd  %xmm1,%xmm7
  movsd  0x68(%rax),%xmm1
  mulsd  %xmm10,%xmm3
  mulsd  %xmm1,%xmm9
  mulsd  %xmm13,%xmm1
  addsd  %xmm9,%xmm2
  movapd %xmm5,%xmm9
  subsd  %xmm3,%xmm1
  movapd %xmm7,%xmm3
  addsd  %xmm2,%xmm9
  subsd  %xmm2,%xmm5
  movapd %xmm8,%xmm2
  subsd  %xmm1,%xmm3
  addsd  %xmm1,%xmm7
  movapd %xmm4,%xmm1
  subsd  %xmm9,%xmm2
  addsd  %xmm9,%xmm8
  subsd  %xmm3,%xmm1
  addsd  %xmm3,%xmm4
  movapd %xmm6,%xmm3
  subsd  %xmm5,%xmm3
  addsd  %xmm6,%xmm5
  movapd %xmm15,%xmm6
  movapd %xmm2,%xmm12
  addsd  %xmm1,%xmm12
  subsd  %xmm2,%xmm1
  movapd %xmm0,%xmm2
  addsd  %xmm7,%xmm2
  subsd  %xmm7,%xmm0
  movsd  0x18(%rsp),%xmm7
  mulsd  %xmm5,%xmm6
  mulsd  %xmm7,%xmm5
  movapd %xmm7,%xmm13
  mulsd  %xmm0,%xmm13
  mulsd  %xmm15,%xmm0
  mulsd  %xmm2,%xmm11
  mulsd  %xmm7,%xmm2
  mulsd  %xmm14,%xmm1
  addsd  %xmm6,%xmm13
  movsd  -0x58(%rsp),%xmm6
  mulsd  %xmm14,%xmm12
  subsd  %xmm0,%xmm5
  movapd %xmm7,%xmm0
  movsd  -0x50(%rsp),%xmm7
  mulsd  %xmm3,%xmm0
  mulsd  %xmm15,%xmm3
  movsd  %xmm5,0x28(%rsp)
  movapd %xmm6,%xmm5
  movsd  %xmm1,0x8(%rsp)
  addsd  %xmm0,%xmm11
  movsd  0x20(%rax),%xmm0
  subsd  %xmm2,%xmm3
  movapd %xmm7,%xmm2
  mulsd  %xmm0,%xmm5
  mulsd  %xmm7,%xmm0
  movsd  -0x60(%rsp),%xmm7
  movsd  %xmm3,0x10(%rsp)
  movsd  0x60(%rax),%xmm3
  mulsd  %xmm3,%xmm2
  mulsd  %xmm6,%xmm3
  movsd  0x40(%rax),%xmm6
  addsd  %xmm2,%xmm5
  subsd  %xmm0,%xmm3
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm2
  subsd  %xmm6,%xmm0
  movapd %xmm5,%xmm10
  addsd  %xmm6,%xmm2
  movapd %xmm3,%xmm9
  mulsd  %xmm7,%xmm0
  mulsd  %xmm7,%xmm2
  addsd  %xmm0,%xmm9
  subsd  %xmm3,%xmm0
  movsd  0x70(%rax),%xmm3
  addsd  %xmm2,%xmm10
  subsd  %xmm5,%xmm2
  movsd  0x10(%rax),%xmm5
  movsd  -0x48(%rsp),%xmm7
  movsd  -0x40(%rsp),%xmm15
  movsd  -0x68(%rsp),%xmm1
  movapd %xmm7,%xmm6
  mulsd  %xmm5,%xmm6
  mulsd  %xmm15,%xmm5
  movapd %xmm6,%xmm14
  movapd %xmm15,%xmm6
  movapd %xmm1,%xmm15
  mulsd  %xmm3,%xmm6
  mulsd  %xmm7,%xmm3
  movsd  0x50(%rax),%xmm7
  mulsd  %xmm7,%xmm15
  mulsd  -0x70(%rsp),%xmm7
  addsd  %xmm6,%xmm14
  movsd  -0x70(%rsp),%xmm6
  subsd  %xmm5,%xmm3
  movsd  0x30(%rax),%xmm5
  mulsd  %xmm5,%xmm6
  mulsd  %xmm1,%xmm5
  addsd  %xmm15,%xmm6
  movapd %xmm14,%xmm15
  subsd  %xmm5,%xmm7
  movapd %xmm3,%xmm5
  subsd  %xmm6,%xmm15
  addsd  %xmm14,%xmm6
  movsd  -0x78(%rsp),%xmm14
  addsd  %xmm7,%xmm5
  subsd  %xmm7,%xmm3
  movapd %xmm15,%xmm7
  addsd  %xmm5,%xmm7
  subsd  %xmm15,%xmm5
  mulsd  %xmm14,%xmm7
  mulsd  %xmm14,%xmm5
  movapd %xmm10,%xmm14
  subsd  %xmm6,%xmm10
  addsd  %xmm6,%xmm14
  movapd %xmm8,%xmm6
  addsd  %xmm14,%xmm6
  subsd  %xmm8,%xmm14
  movsd  %xmm6,(%rax)
  movapd %xmm9,%xmm6
  subsd  %xmm7,%xmm9
  addsd  %xmm7,%xmm6
  movapd %xmm2,%xmm7
  subsd  %xmm3,%xmm2
  addsd  %xmm3,%xmm7
  movapd %xmm11,%xmm3
  movapd %xmm9,%xmm1
  subsd  0x10(%rsp),%xmm1
  addsd  %xmm6,%xmm3
  movapd %xmm2,%xmm15
  subsd  0x8(%rsp),%xmm15
  subsd  %xmm11,%xmm6
  unpcklpd %xmm15,%xmm3
  movups %xmm3,0x10(%rax)
  movapd %xmm0,%xmm3
  subsd  %xmm5,%xmm0
  addsd  %xmm5,%xmm3
  movapd %xmm12,%xmm5
  addsd  %xmm7,%xmm5
  subsd  %xmm12,%xmm7
  unpcklpd %xmm1,%xmm5
  movapd %xmm10,%xmm1
  movups %xmm5,0x20(%rax)
  movapd %xmm13,%xmm5
  subsd  %xmm4,%xmm1
  addsd  %xmm10,%xmm4
  addsd  %xmm3,%xmm5
  subsd  %xmm13,%xmm3
  unpcklpd %xmm1,%xmm5
  movsd  0x8(%rsp),%xmm1
  unpcklpd %xmm3,%xmm4
  movsd  0x10(%rsp),%xmm3
  movups %xmm4,0x40(%rax)
  movsd  0x28(%rsp),%xmm4
  addsd  %xmm2,%xmm1
  addsd  %xmm9,%xmm3
  movups %xmm5,0x30(%rax)
  unpcklpd %xmm6,%xmm1
  unpcklpd %xmm7,%xmm3
  movups %xmm1,0x60(%rax)
  movapd %xmm4,%xmm1
  addsd  %xmm0,%xmm1
  subsd  %xmm4,%xmm0
  movups %xmm3,0x50(%rax)
  unpcklpd %xmm14,%xmm1
  movsd  %xmm0,0x8(%rax)
  movups %xmm1,0x70(%rax)
  cmp    %rcx,%rdx
  jne    L35
  add    $0x70,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L12:
  movsd  D274(%rip),%xmm4
  mov    %rdx,0x30(%rsp)
  movsd  D224(%rip),%xmm13
  movsd  D27(%rip),%xmm14
  movsd  D51(%rip),%xmm10
  movsd  %xmm4,-0x48(%rsp)
  movsd  D257(%rip),%xmm4
  movsd  %xmm13,-0x78(%rsp)
  movsd  %xmm4,-0x40(%rsp)
  movsd  D97(%rip),%xmm4
  movsd  %xmm14,0x18(%rsp)
  movsd  %xmm4,-0x70(%rsp)
  movsd  D319(%rip),%xmm4
  movsd  %xmm10,0x20(%rsp)
  movsd  %xmm4,-0x68(%rsp)
  movsd  D183(%rip),%xmm4
  movsd  %xmm4,-0x18(%rsp)
  movsd  D247(%rip),%xmm4
  movsd  %xmm4,-0x38(%rsp)
  movsd  D42(%rip),%xmm4
  movsd  %xmm4,-0x10(%rsp)
  movsd  D181(%rip),%xmm4
  movsd  %xmm4,-0x8(%rsp)
  movsd  D123(%rip),%xmm4
  movsd  %xmm4,(%rsp)
  movsd  D140(%rip),%xmm4
  movsd  %xmm4,-0x30(%rsp)
  movsd  D281(%rip),%xmm4
  movsd  %xmm4,-0x28(%rsp)
  movsd  D7(%rip),%xmm4
  movsd  %xmm4,-0x20(%rsp)
  nopl   0x0(%rax)
L46:
  mov    0x8(%rsp),%rdx
  movsd  (%r11,%rax,1),%xmm1
  movsd  (%rcx,%rax,1),%xmm3
  movsd  (%rsi,%rax,1),%xmm5
  movsd  (%rdx,%rax,1),%xmm0
  mov    0x10(%rsp),%rdx
  movapd %xmm1,%xmm4
  movsd  (%r15,%rax,1),%xmm11
  movsd  (%r12,%rax,1),%xmm8
  movsd  (%rdx,%rax,1),%xmm2
  subsd  %xmm0,%xmm4
  addsd  %xmm0,%xmm1
  movsd  (%rbx,%rax,1),%xmm0
  mov    0x30(%rsp),%rdx
  movapd %xmm0,%xmm7
  addsd  %xmm2,%xmm0
  movapd %xmm1,%xmm6
  subsd  %xmm2,%xmm7
  movsd  (%r8,%rax,1),%xmm2
  movsd  %xmm4,0x38(%rsp)
  movsd  (%r9,%rax,1),%xmm4
  addsd  %xmm0,%xmm6
  subsd  %xmm0,%xmm1
  movsd  0x0(%rbp,%rax,1),%xmm0
  movsd  %xmm7,0x40(%rsp)
  movapd %xmm0,%xmm12
  addsd  %xmm2,%xmm0
  subsd  %xmm2,%xmm12
  movsd  (%r14,%rax,1),%xmm2
  movapd %xmm6,%xmm7
  movsd  (%rdi,%rax,1),%xmm6
  movapd %xmm2,%xmm15
  addsd  %xmm3,%xmm2
  subsd  %xmm3,%xmm15
  movapd %xmm0,%xmm3
  addsd  %xmm2,%xmm3
  subsd  %xmm2,%xmm0
  movapd %xmm4,%xmm2
  subsd  %xmm5,%xmm2
  addsd  %xmm5,%xmm4
  movsd  (%r10,%rax,1),%xmm5
  movapd %xmm5,%xmm9
  addsd  %xmm6,%xmm5
  subsd  %xmm6,%xmm9
  movapd %xmm4,%xmm6
  addsd  %xmm5,%xmm6
  subsd  %xmm5,%xmm4
  movsd  0x0(%r13,%rax,1),%xmm5
  movsd  %xmm9,0x48(%rsp)
  movapd %xmm5,%xmm9
  movsd  %xmm6,0x28(%rsp)
  movsd  (%rdx,%rax,1),%xmm6
  addsd  %xmm6,%xmm5
  subsd  %xmm6,%xmm9
  movapd %xmm8,%xmm6
  addsd  %xmm11,%xmm8
  subsd  %xmm11,%xmm6
  movapd %xmm5,%xmm11
  addsd  %xmm8,%xmm11
  subsd  %xmm8,%xmm5
  movsd  0x28(%rsp),%xmm8
  addsd  %xmm7,%xmm8
  subsd  0x28(%rsp),%xmm7
  movsd  %xmm11,0x50(%rsp)
  addsd  %xmm3,%xmm11
  movsd  %xmm11,0x58(%rsp)
  addsd  %xmm8,%xmm11
  subsd  0x58(%rsp),%xmm8
  mulsd  -0x60(%rsp),%xmm11
  mulsd  -0x60(%rsp),%xmm8
  movsd  %xmm11,(%r11,%rax,1)
  movsd  %xmm8,(%rbx,%rax,1)
  subsd  0x50(%rsp),%xmm3
  movsd  -0x58(%rsp),%xmm8
  movsd  -0x50(%rsp),%xmm11
  mov    0x8(%rsp),%rdx
  mulsd  %xmm7,%xmm8
  mulsd  %xmm3,%xmm11
  mulsd  -0x50(%rsp),%xmm7
  mulsd  -0x58(%rsp),%xmm3
  subsd  %xmm11,%xmm8
  movsd  -0x40(%rsp),%xmm11
  addsd  %xmm7,%xmm3
  movsd  %xmm8,(%r9,%rax,1)
  movsd  -0x48(%rsp),%xmm8
  movsd  %xmm3,(%r10,%rax,1)
  movapd %xmm0,%xmm3
  addsd  %xmm5,%xmm0
  subsd  %xmm5,%xmm3
  movapd %xmm1,%xmm5
  mulsd  %xmm13,%xmm0
  movapd %xmm3,%xmm7
  movapd %xmm4,%xmm3
  mulsd  %xmm13,%xmm7
  addsd  %xmm0,%xmm3
  subsd  %xmm4,%xmm0
  addsd  %xmm7,%xmm5
  subsd  %xmm7,%xmm1
  movsd  0x40(%rsp),%xmm7
  mulsd  %xmm3,%xmm11
  mulsd  -0x48(%rsp),%xmm3
  mulsd  %xmm5,%xmm8
  mulsd  -0x40(%rsp),%xmm5
  subsd  %xmm11,%xmm8
  movsd  -0x70(%rsp),%xmm11
  addsd  %xmm5,%xmm3
  movsd  0x48(%rsp),%xmm5
  movsd  %xmm8,0x0(%rbp,%rax,1)
  movsd  -0x68(%rsp),%xmm8
  movsd  %xmm3,(%r12,%rax,1)
  movapd %xmm11,%xmm3
  mulsd  %xmm1,%xmm3
  movapd %xmm8,%xmm4
  mulsd  %xmm0,%xmm4
  mulsd  %xmm8,%xmm1
  movapd %xmm9,%xmm8
  mulsd  %xmm11,%xmm0
  mulsd  %xmm14,%xmm8
  mulsd  %xmm10,%xmm9
  subsd  %xmm4,%xmm3
  movapd %xmm7,%xmm4
  addsd  %xmm1,%xmm0
  movapd %xmm15,%xmm1
  movsd  %xmm3,0x0(%r13,%rax,1)
  mulsd  %xmm14,%xmm1
  movapd %xmm2,%xmm3
  addsd  %xmm5,%xmm2
  subsd  %xmm5,%xmm3
  movsd  %xmm0,(%r14,%rax,1)
  movsd  0x38(%rsp),%xmm0
  mulsd  %xmm13,%xmm2
  mulsd  %xmm13,%xmm3
  movapd %xmm0,%xmm5
  subsd  %xmm2,%xmm4
  addsd  %xmm7,%xmm2
  movapd %xmm12,%xmm7
  subsd  %xmm3,%xmm5
  addsd  %xmm0,%xmm3
  movapd %xmm6,%xmm0
  mulsd  %xmm10,%xmm0
  mulsd  %xmm14,%xmm6
  mulsd  %xmm14,%xmm7
  subsd  %xmm0,%xmm8
  movapd %xmm12,%xmm0
  movsd  -0x38(%rsp),%xmm12
  mulsd  %xmm10,%xmm0
  addsd  %xmm9,%xmm6
  movapd %xmm8,%xmm9
  subsd  %xmm1,%xmm0
  movapd %xmm15,%xmm1
  movsd  -0x18(%rsp),%xmm15
  mulsd  %xmm10,%xmm1
  movapd %xmm15,%xmm11
  addsd  %xmm0,%xmm9
  subsd  %xmm8,%xmm0
  movapd %xmm3,%xmm8
  addsd  %xmm7,%xmm1
  movapd %xmm6,%xmm7
  addsd  %xmm9,%xmm8
  subsd  %xmm9,%xmm3
  movsd  -0x10(%rsp),%xmm9
  addsd  %xmm1,%xmm7
  subsd  %xmm6,%xmm1
  movapd %xmm2,%xmm6
  mulsd  %xmm8,%xmm11
  mulsd  -0x38(%rsp),%xmm8
  addsd  %xmm7,%xmm6
  subsd  %xmm2,%xmm7
  movapd %xmm9,%xmm2
  mulsd  %xmm3,%xmm2
  mulsd  %xmm6,%xmm12
  mulsd  %xmm15,%xmm6
  subsd  %xmm12,%xmm11
  movsd  -0x8(%rsp),%xmm12
  addsd  %xmm8,%xmm6
  mulsd  %xmm12,%xmm3
  movsd  %xmm11,(%r15,%rax,1)
  movsd  %xmm6,(%rdx,%rax,1)
  movapd %xmm12,%xmm6
  mov    0x10(%rsp),%rdx
  mulsd  %xmm7,%xmm6
  mulsd  %xmm9,%xmm7
  subsd  %xmm6,%xmm2
  addsd  %xmm3,%xmm7
  movapd %xmm5,%xmm3
  subsd  %xmm1,%xmm3
  addsd  %xmm5,%xmm1
  movsd  %xmm2,(%rdx,%rax,1)
  mov    0x30(%rsp),%rdx
  movapd %xmm4,%xmm2
  addsd  %xmm0,%xmm2
  subsd  %xmm4,%xmm0
  movsd  %xmm7,(%rdx,%rax,1)
  movsd  (%rsp),%xmm9
  movsd  -0x30(%rsp),%xmm12
  movsd  -0x28(%rsp),%xmm4
  movsd  -0x20(%rsp),%xmm5
  movapd %xmm9,%xmm6
  movapd %xmm12,%xmm7
  mulsd  %xmm3,%xmm6
  mulsd  %xmm2,%xmm7
  mulsd  %xmm12,%xmm3
  mulsd  %xmm9,%xmm2
  subsd  %xmm7,%xmm6
  addsd  %xmm3,%xmm2
  movapd %xmm5,%xmm3
  movsd  %xmm6,(%rcx,%rax,1)
  mulsd  %xmm0,%xmm3
  mulsd  %xmm4,%xmm0
  movsd  %xmm2,(%rsi,%rax,1)
  movapd %xmm4,%xmm2
  mulsd  %xmm1,%xmm2
  mulsd  %xmm5,%xmm1
  subsd  %xmm3,%xmm2
  addsd  %xmm1,%xmm0
  movsd  %xmm2,(%rdi,%rax,1)
  movsd  %xmm0,(%r8,%rax,1)
  add    $0x8,%rax
  cmp    $0x80,%rax
  jne    L46
  mov    0x60(%rsp),%rdx
  lea    0x80(%rdx),%rsi
  nopl   (%rax)
L28:
  mov    (%rdx),%rax
  add    $0x8,%rdx
  movsd  (%rax),%xmm5
  movsd  0x78(%rax),%xmm0
  movsd  0x38(%rax),%xmm1
  movsd  0x28(%rax),%xmm3
  movapd %xmm5,%xmm11
  addsd  %xmm0,%xmm5
  movsd  0x50(%rax),%xmm2
  movsd  0x20(%rax),%xmm4
  subsd  %xmm0,%xmm11
  movsd  0x40(%rax),%xmm0
  movsd  0x18(%rax),%xmm6
  movapd %xmm0,%xmm10
  addsd  %xmm1,%xmm0
  movapd %xmm5,%xmm15
  subsd  %xmm1,%xmm10
  movsd  0x10(%rax),%xmm1
  addsd  %xmm0,%xmm15
  subsd  %xmm0,%xmm5
  movsd  0x68(%rax),%xmm0
  movapd %xmm1,%xmm14
  addsd  %xmm0,%xmm1
  subsd  %xmm0,%xmm14
  movapd %xmm2,%xmm0
  addsd  %xmm3,%xmm2
  subsd  %xmm3,%xmm0
  movsd  0x58(%rax),%xmm3
  movapd %xmm1,%xmm13
  addsd  %xmm2,%xmm13
  subsd  %xmm2,%xmm1
  movapd %xmm4,%xmm2
  movsd  %xmm0,0x8(%rsp)
  subsd  %xmm3,%xmm2
  addsd  %xmm3,%xmm4
  movsd  0x60(%rax),%xmm3
  movapd %xmm3,%xmm12
  addsd  %xmm6,%xmm3
  subsd  %xmm6,%xmm12
  movapd %xmm4,%xmm9
  movsd  0x30(%rax),%xmm6
  addsd  %xmm3,%xmm9
  subsd  %xmm3,%xmm4
  movsd  0x48(%rax),%xmm3
  movapd %xmm6,%xmm8
  movsd  %xmm12,0x38(%rsp)
  movsd  0x8(%rax),%xmm12
  subsd  %xmm3,%xmm8
  addsd  %xmm3,%xmm6
  movsd  0x70(%rax),%xmm3
  movapd %xmm3,%xmm7
  addsd  %xmm12,%xmm3
  movapd %xmm6,%xmm0
  subsd  %xmm12,%xmm7
  addsd  %xmm3,%xmm0
  subsd  %xmm3,%xmm6
  movapd %xmm15,%xmm3
  addsd  %xmm9,%xmm3
  subsd  %xmm9,%xmm15
  movapd %xmm0,%xmm12
  movapd %xmm13,%xmm0
  subsd  %xmm12,%xmm13
  addsd  %xmm12,%xmm0
  movapd %xmm13,%xmm9
  movapd %xmm1,%xmm13
  addsd  %xmm6,%xmm1
  movsd  %xmm0,0x10(%rsp)
  subsd  %xmm6,%xmm13
  movsd  -0x78(%rsp),%xmm0
  movapd %xmm4,%xmm6
  mulsd  %xmm0,%xmm1
  movapd %xmm13,%xmm12
  movapd %xmm5,%xmm13
  mulsd  %xmm0,%xmm12
  addsd  %xmm1,%xmm6
  subsd  %xmm4,%xmm1
  movapd %xmm10,%xmm4
  addsd  %xmm12,%xmm13
  subsd  %xmm12,%xmm5
  movsd  0x38(%rsp),%xmm12
  movsd  %xmm1,0x30(%rsp)
  movapd %xmm2,%xmm1
  subsd  %xmm12,%xmm1
  addsd  %xmm12,%xmm2
  movsd  0x18(%rsp),%xmm12
  movsd  %xmm5,0x28(%rsp)
  movapd %xmm11,%xmm5
  mulsd  %xmm0,%xmm1
  mulsd  %xmm0,%xmm2
  movsd  0x20(%rsp),%xmm0
  subsd  %xmm1,%xmm5
  addsd  %xmm1,%xmm11
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm4
  addsd  %xmm10,%xmm2
  movapd %xmm12,%xmm10
  mulsd  %xmm7,%xmm1
  mulsd  %xmm8,%xmm10
  mulsd  %xmm12,%xmm7
  mulsd  %xmm0,%xmm8
  subsd  %xmm1,%xmm10
  movapd %xmm0,%xmm1
  mulsd  %xmm14,%xmm1
  addsd  %xmm8,%xmm7
  movsd  0x8(%rsp),%xmm8
  mulsd  %xmm12,%xmm14
  mulsd  %xmm12,%xmm8
  movapd %xmm10,%xmm12
  subsd  %xmm8,%xmm1
  movapd %xmm0,%xmm8
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm8,%xmm0
  movapd %xmm7,%xmm8
  addsd  %xmm1,%xmm12
  addsd  %xmm14,%xmm0
  movapd %xmm1,%xmm14
  movsd  0x10(%rsp),%xmm1
  subsd  %xmm10,%xmm14
  movapd %xmm11,%xmm10
  subsd  %xmm12,%xmm11
  addsd  %xmm12,%xmm10
  movapd %xmm5,%xmm12
  addsd  %xmm3,%xmm1
  addsd  %xmm0,%xmm8
  subsd  %xmm7,%xmm0
  movapd %xmm2,%xmm7
  mulsd  -0x60(%rsp),%xmm1
  addsd  %xmm8,%xmm7
  subsd  %xmm2,%xmm8
  movapd %xmm4,%xmm2
  addsd  %xmm14,%xmm2
  subsd  %xmm4,%xmm14
  movsd  -0x18(%rsp),%xmm4
  subsd  %xmm0,%xmm12
  addsd  %xmm5,%xmm0
  mulsd  %xmm10,%xmm4
  movapd %xmm4,%xmm5
  movsd  -0x38(%rsp),%xmm4
  mulsd  %xmm7,%xmm4
  subsd  %xmm4,%xmm5
  unpcklpd %xmm5,%xmm1
  movups %xmm1,(%rax)
  movsd  -0x48(%rsp),%xmm1
  movsd  -0x40(%rsp),%xmm5
  movsd  -0x20(%rsp),%xmm4
  subsd  0x10(%rsp),%xmm3
  mulsd  %xmm6,%xmm5
  mulsd  %xmm13,%xmm1
  mulsd  %xmm14,%xmm4
  mulsd  -0x60(%rsp),%xmm3
  mulsd  -0x28(%rsp),%xmm14
  subsd  %xmm5,%xmm1
  movsd  -0x28(%rsp),%xmm5
  mulsd  %xmm0,%xmm5
  subsd  %xmm4,%xmm5
  movsd  -0x50(%rsp),%xmm4
  mulsd  %xmm9,%xmm4
  mulsd  -0x58(%rsp),%xmm9
  unpcklpd %xmm5,%xmm1
  movsd  (%rsp),%xmm5
  movups %xmm1,0x10(%rax)
  movsd  -0x58(%rsp),%xmm1
  mulsd  %xmm12,%xmm5
  mulsd  %xmm15,%xmm1
  mulsd  -0x30(%rsp),%xmm12
  mulsd  -0x50(%rsp),%xmm15
  subsd  %xmm4,%xmm1
  movsd  -0x30(%rsp),%xmm4
  mulsd  %xmm2,%xmm4
  mulsd  (%rsp),%xmm2
  subsd  %xmm4,%xmm5
  movsd  0x30(%rsp),%xmm4
  mulsd  -0x68(%rsp),%xmm4
  addsd  %xmm12,%xmm2
  unpcklpd %xmm5,%xmm1
  movsd  -0x10(%rsp),%xmm5
  movups %xmm1,0x20(%rax)
  movsd  0x28(%rsp),%xmm1
  mulsd  -0x70(%rsp),%xmm1
  mulsd  %xmm11,%xmm5
  mulsd  -0x8(%rsp),%xmm11
  subsd  %xmm4,%xmm1
  movsd  -0x8(%rsp),%xmm4
  mulsd  %xmm8,%xmm4
  mulsd  -0x10(%rsp),%xmm8
  subsd  %xmm4,%xmm5
  movsd  0x30(%rsp),%xmm4
  mulsd  -0x70(%rsp),%xmm4
  addsd  %xmm11,%xmm8
  unpcklpd %xmm5,%xmm1
  unpcklpd %xmm8,%xmm3
  movups %xmm1,0x30(%rax)
  movups %xmm3,0x40(%rax)
  movsd  0x28(%rsp),%xmm3
  mulsd  -0x68(%rsp),%xmm3
  movapd %xmm4,%xmm1
  addsd  %xmm3,%xmm1
  unpcklpd %xmm2,%xmm1
  movups %xmm1,0x50(%rax)
  mulsd  -0x20(%rsp),%xmm0
  movapd %xmm9,%xmm1
  mulsd  -0x48(%rsp),%xmm6
  addsd  %xmm15,%xmm1
  mulsd  -0x40(%rsp),%xmm13
  mulsd  -0x18(%rsp),%xmm7
  mulsd  -0x38(%rsp),%xmm10
  addsd  %xmm0,%xmm14
  addsd  %xmm13,%xmm6
  unpcklpd %xmm14,%xmm1
  addsd  %xmm10,%xmm7
  movups %xmm1,0x60(%rax)
  unpcklpd %xmm7,%xmm6
  movups %xmm6,0x70(%rax)
  cmp    %rsi,%rdx
  jne    L28
  add    $0x70,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D222
type_infered: f64
name: disassemble_data
arguments: data_label: D329
type_infered: f64
name: disassemble_data
arguments: data_label: D239
type_infered: f64
name: disassemble_data
arguments: data_label: D224
type_infered: f64
name: disassemble_data
arguments: data_label: D274
type_infered: f64
name: disassemble_data
arguments: data_label: D257
type_infered: f64
name: disassemble_data
arguments: data_label: D97
type_infered: f64
name: disassemble_data
arguments: data_label: D319
type_infered: f64
name: disassemble_data
arguments: data_label: D27
type_infered: f64
name: disassemble_data
arguments: data_label: D51
type_infered: f64
name: disassemble_data
arguments: data_label: D183
type_infered: f64
name: disassemble_data
arguments: data_label: D247
type_infered: f64
name: disassemble_data
arguments: data_label: D42
type_infered: f64
name: disassemble_data
arguments: data_label: D181
type_infered: f64
name: disassemble_data
arguments: data_label: D123
type_infered: f64
name: disassemble_data
arguments: data_label: D140
type_infered: f64
name: disassemble_data
arguments: data_label: D281
type_infered: f64
name: disassemble_data
arguments: data_label: D7
type_infered: f64

tool: D222: 0.25

tool: D329: 0.32664074121909414

tool: D239: 0.13529902503654925

tool: D224: 0.7071067811865476

tool: D274: 0.3467599613305369

tool: D257: 0.06897484482073575

tool: D97: 0.29396890060483966

tool: D319: 0.19642373959677553

tool: D27: 0.3826834323650898

tool: D51: 0.9238795325112867

tool: D183: 0.3518509343815956

tool: D247: 0.03465429229977286

tool: D42: 0.2733004667504394

tool: D181: 0.22429189658565907

tool: D123: 0.31180625324666783

tool: D140: 0.16666391461943664

tool: D281: 0.33832950029358816

tool: D7: 0.10263113188058935

assistant: ```c
void ddct16x16s(int isgn, double **a) {
  int j;
  double x0r, x0i, x1r, x1i, x2r, x2i, x3r, x3i;
  double x4r, x4i, x5r, x5i, x6r, x6i, x7r, x7i;
  double xr, xi;
  if (isgn < 0) {
    for (j = 0; j <= 15; j++) {
      x4r = a[0][j] - a[15][j];
      xr = a[0][j] + a[15][j];
      x4i = a[8][j] - a[7][j];
      xi = a[8][j] + a[7][j];
      x0r = xr + xi;
      x0i = xr - xi;
      x5r = a[2][j] - a[13][j];
      xr = a[2][j] + a[13][j];
      x5i = a[10][j] - a[5][j];
      xi = a[10][j] + a[5][j];
      x1r = xr + xi;
      x1i = xr - xi;
      x6r = a[4][j] - a[11][j];
      xr = a[4][j] + a[11][j];
      x6i = a[12][j] - a[3][j];
      xi = a[12][j] + a[3][j];
      x2r = xr + xi;
      x2i = xr - xi;
      x7r = a[6][j] - a[9][j];
      xr = a[6][j] + a[9][j];
      x7i = a[14][j] - a[1][j];
      xi = a[14][j] + a[1][j];
      x3r = xr + xi;
      x3i = xr - xi;
      xr = x0r + x2r;
      xi = x1r + x3r;
      a[0][j] = 0.25 * (xr + xi);
      a[8][j] = 0.25 * (xr - xi);
      xr = x0r - x2r;
      xi = x1r - x3r;
      a[4][j] = 0.32664074121909413196 * xr - 0.13529902503654924610 * xi;
      a[12][j] = 0.32664074121909413196 * xi + 0.13529902503654924610 * xr;
      x0r = 0.70710678118654752440 * (x1i - x3i);
      x2r = 0.70710678118654752440 * (x1i + x3i);
      xr = x0i + x0r;
      xi = x2r + x2i;
      a[2][j] = 0.34675996133053686546 * xr - 0.06897484482073575308 * xi;
      a[14][j] = 0.34675996133053686546 * xi + 0.06897484482073575308 * xr;
      xr = x0i - x0r;
      xi = x2r - x2i;
      a[6][j] = 0.29396890060483967924 * xr - 0.19642373959677554532 * xi;
      a[10][j] = 0.29396890060483967924 * xi + 0.19642373959677554532 * xr;
      xr = 0.70710678118654752440 * (x6r - x6i);
      xi = 0.70710678118654752440 * (x6i + x6r);
      x6r = x4r - xr;
      x6i = x4i - xi;
      x4r += xr;
      x4i += xi;
      xr = 0.38268343236508977173 * x7r - 0.92387953251128675613 * x7i;
      xi = 0.38268343236508977173 * x7i + 0.92387953251128675613 * x7r;
      x7r = 0.92387953251128675613 * x5r - 0.38268343236508977173 * x5i;
      x7i = 0.92387953251128675613 * x5i + 0.38268343236508977173 * x5r;
      x5r = x7r + xr;
      x5i = x7i + xi;
      x7r -= xr;
      x7i -= xi;
      xr = x4r + x5r;
      xi = x5i + x4i;
      a[1][j] = 0.35185093438159561476 * xr - 0.03465429229977286565 * xi;
      a[15][j] = 0.35185093438159561476 * xi + 0.03465429229977286565 * xr;
      xr = x4r - x5r;
      xi = x5i - x4i;
      a[7][j] = 0.27330046675043937206 * xr - 0.22429189658565907106 * xi;
      a[9][j] = 0.27330046675043937206 * xi + 0.22429189658565907106 * xr;
      xr = x6r - x7i;
      xi = x7r + x6i;
      a[5][j] = 0.31180625324666780814 * xr - 0.16666391461943662432 * xi;
      a[11][j] = 0.31180625324666780814 * xi + 0.16666391461943662432 * xr;
      xr = x6r + x7i;
      xi = x7r - x6i;
      a[3][j] = 0.33832950029358816957 * xr - 0.10263113188058934529 * xi;
      a[13][j] = 0.33832950029358816957 * xi + 0.10263113188058934529 * xr;
    }
    for (j = 0; j <= 15; j++) {
      x4r = a[j][0] - a[j][15];
      xr = a[j][0] + a[j][15];
      x4i = a[j][8] - a[j][7];
      xi = a[j][8] + a[j][7];
      x0r = xr + xi;
      x0i = xr - xi;
      x5r = a[j][2] - a[j][13];
      xr = a[j][2] + a[j][13];
      x5i = a[j][10] - a[j][5];
      xi = a[j][10] + a[j][5];
      x1r = xr + xi;
      x1i = xr - xi;
      x6r = a[j][4] - a[j][11];
      xr = a[j][4] + a[j][11];
      x6i = a[j][12] - a[j][3];
      xi = a[j][12] + a[j][3];
      x2r = xr + xi;
      x2i = xr - xi;
      x7r = a[j][6] - a[j][9];
      xr = a[j][6] + a[j][9];
      x7i = a[j][14] - a[j][1];
      xi = a[j][14] + a[j][1];
      x3r = xr + xi;
      x3i = xr - xi;
      xr = x0r + x2r;
      xi = x1r + x3r;
      a[j][0] = 0.25 * (xr + xi);
      a[j][8] = 0.25 * (xr - xi);
      xr = x0r - x2r;
      xi = x1r - x3r;
      a[j][4] = 0.32664074121909413196 * xr - 0.13529902503654924610 * xi;
      a[j][12] = 0.32664074121909413196 * xi + 0.13529902503654924610 * xr;
      x0r = 0.70710678118654752440 * (x1i - x3i);
      x2r = 0.70710678118654752440 * (x1i + x3i);
      xr = x0i + x0r;
      xi = x2r + x2i;
      a[j][2] = 0.34675996133053686546 * xr - 0.06897484482073575308 * xi;
      a[j][14] = 0.34675996133053686546 * xi + 0.06897484482073575308 * xr;
      xr = x0i - x0r;
      xi = x2r - x2i;
      a[j][6] = 0.29396890060483967924 * xr - 0.19642373959677554532 * xi;
      a[j][10] = 0.29396890060483967924 * xi + 0.19642373959677554532 * xr;
      xr = 0.70710678118654752440 * (x6r - x6i);
      xi = 0.70710678118654752440 * (x6i + x6r);
      x6r = x4r - xr;
      x6i = x4i - xi;
      x4r += xr;
      x4i += xi;
      xr = 0.38268343236508977173 * x7r - 0.92387953251128675613 * x7i;
      xi = 0.38268343236508977173 * x7i + 0.92387953251128675613 * x7r;
      x7r = 0.92387953251128675613 * x5r - 0.38268343236508977173 * x5i;
      x7i = 0.92387953251128675613 * x5i + 0.38268343236508977173 * x5r;
      x5r = x7r + xr;
      x5i = x7i + xi;
      x7r -= xr;
      x7i -= xi;
      xr = x4r + x5r;
      xi = x5i + x4i;
      a[j][1] = 0.35185093438159561476 * xr - 0.03465429229977286565 * xi;
      a[j][15] = 0.35185093438159561476 * xi + 0.03465429229977286565 * xr;
      xr = x4r - x5r;
      xi = x5i - x4i;
      a[j][7] = 0.27330046675043937206 * xr - 0.22429189658565907106 * xi;
      a[j][9] = 0.27330046675043937206 * xi + 0.22429189658565907106 * xr;
      xr = x6r - x7i;
      xi = x7r + x6i;
      a[j][5] = 0.31180625324666780814 * xr - 0.16666391461943662432 * xi;
      a[j][11] = 0.31180625324666780814 * xi + 0.16666391461943662432 * xr;
      xr = x6r + x7i;
      xi = x7r - x6i;
      a[j][3] = 0.33832950029358816957 * xr - 0.10263113188058934529 * xi;
      a[j][13] = 0.33832950029358816957 * xi + 0.10263113188058934529 * xr;
    }
  } else {
    for (j = 0; j <= 15; j++) {
      x5r = 0.35185093438159561476 * a[1][j] + 0.03465429229977286565 * a[15][j];
      x5i = 0.35185093438159561476 * a[15][j] - 0.03465429229977286565 * a[1][j];
      xr = 0.27330046675043937206 * a[7][j] + 0.22429189658565907106 * a[9][j];
      xi = 0.27330046675043937206 * a[9][j] - 0.22429189658565907106 * a[7][j];
      x4r = x5r + xr;
      x4i = x5i - xi;
      x5r -= xr;
      x5i += xi;
      x7r = 0.31180625324666780814 * a[5][j] + 0.16666391461943662432 * a[11][j];
      x7i = 0.31180625324666780814 * a[11][j] - 0.16666391461943662432 * a[5][j];
      xr = 0.33832950029358816957 * a[3][j] + 0.10263113188058934529 * a[13][j];
      xi = 0.33832950029358816957 * a[13][j] - 0.10263113188058934529 * a[3][j];
      x6r = x7r + xr;
      x6i = x7i - xi;
      x7r -= xr;
      x7i += xi;
      xr = x4r - x6r;
      xi = x4i - x6i;
      x4r += x6r;
      x4i += x6i;
      x6r = 0.70710678118654752440 * (xi + xr);
      x6i = 0.70710678118654752440 * (xi - xr);
      xr = x5r + x7i;
      xi = x5i - x7r;
      x5r -= x7i;
      x5i += x7r;
      x7r = 0.38268343236508977173 * x5r + 0.92387953251128675613 * x5i;
      x7i = 0.38268343236508977173 * x5i - 0.92387953251128675613 * x5r;
      x5r = 0.92387953251128675613 * xr + 0.38268343236508977173 * xi;
      x5i = 0.92387953251128675613 * xi - 0.38268343236508977173 * xr;
      xr = 0.32664074121909413196 * a[4][j] + 0.13529902503654924610 * a[12][j];
      xi = 0.32664074121909413196 * a[12][j] - 0.13529902503654924610 * a[4][j];
      x2r = 0.25 * (a[0][j] + a[8][j]);
      x3r = 0.25 * (a[0][j] - a[8][j]);
      x0r = x2r + xr;
      x1r = x3r + xi;
      x2r -= xr;
      x3r -= xi;
      x0i = 0.34675996133053686546 * a[2][j] + 0.06897484482073575308 * a[14][j];
      x2i = 0.34675996133053686546 * a[14][j] - 0.06897484482073575308 * a[2][j];
      x1i = 0.29396890060483967924 * a[6][j] + 0.19642373959677554532 * a[10][j];
      x3i = 0.29396890060483967924 * a[10][j] - 0.19642373959677554532 * a[6][j];
      xr = x0i - x1i;
      xi = x2i + x3i;
      x0i += x1i;
      x2i -= x3i;
      x1i = 0.70710678118654752440 * (xi + xr);
      x3i = 0.70710678118654752440 * (xi - xr);
      xr = x0r + x0i;
      xi = x0r - x0i;
      a[0][j] = xr + x4r;
      a[15][j] = xr - x4r;
      a[8][j] = xi + x4i;
      a[7][j] = xi - x4i;
      xr = x1r + x1i;
      xi = x1r - x1i;
      a[2][j] = xr + x5r;
      a[13][j] = xr - x5r;
      a[10][j] = xi + x5i;
      a[5][j] = xi - x5i;
      xr = x2r + x2i;
      xi = x2r - x2i;
      a[4][j] = xr + x6r;
      a[11][j] = xr - x6r;
      a[12][j] = xi + x6i;
      a[3][j] = xi - x6i;
      xr = x3r + x3i;
      xi = x3r - x3i;
      a[6][j] = xr + x7r;
      a[9][j] = xr - x7r;
      a[14][j] = xi + x7i;
      a[1][j] = xi - x7i;
    }
    for (j = 0; j <= 15; j++) {
      x5r = 0.35185093438159561476 * a[j][1] + 0.03465429229977286565 * a[j][15];
      x5i = 0.35185093438159561476 * a[j][15] - 0.03465429229977286565 * a[j][1];
      xr = 0.27330046675043937206 * a[j][7] + 0.22429189658565907106 * a[j][9];
      xi = 0.27330046675043937206 * a[j][9] - 0.22429189658565907106 * a[j][7];
      x4r = x5r + xr;
      x4i = x5i - xi;
      x5r -= xr;
      x5i += xi;
      x7r = 0.31180625324666780814 * a[j][5] + 0.16666391461943662432 * a[j][11];
      x7i = 0.31180625324666780814 * a[j][11] - 0.16666391461943662432 * a[j][5];
      xr = 0.33832950029358816957 * a[j][3] + 0.10263113188058934529 * a[j][13];
      xi = 0.33832950029358816957 * a[j][13] - 0.10263113188058934529 * a[j][3];
      x6r = x7r + xr;
      x6i = x7i - xi;
      x7r -= xr;
      x7i += xi;
      xr = x4r - x6r;
      xi = x4i - x6i;
      x4r += x6r;
      x4i += x6i;
      x6r = 0.70710678118654752440 * (xi + xr);
      x6i = 0.70710678118654752440 * (xi - xr);
      xr = x5r + x7i;
      xi = x5i - x7r;
      x5r -= x7i;
      x5i += x7r;
      x7r = 0.38268343236508977173 * x5r + 0.92387953251128675613 * x5i;
      x7i = 0.38268343236508977173 * x5i - 0.92387953251128675613 * x5r;
      x5r = 0.92387953251128675613 * xr + 0.38268343236508977173 * xi;
      x5i = 0.92387953251128675613 * xi - 0.38268343236508977173 * xr;
      xr = 0.32664074121909413196 * a[j][4] + 0.13529902503654924610 * a[j][12];
      xi = 0.32664074121909413196 * a[j][12] - 0.13529902503654924610 * a[j][4];
      x2r = 0.25 * (a[j][0] + a[j][8]);
      x3r = 0.25 * (a[j][0] - a[j][8]);
      x0r = x2r + xr;
      x1r = x3r + xi;
      x2r -= xr;
      x3r -= xi;
      x0i = 0.34675996133053686546 * a[j][2] + 0.06897484482073575308 * a[j][14];
      x2i = 0.34675996133053686546 * a[j][14] - 0.06897484482073575308 * a[j][2];
      x1i = 0.29396890060483967924 * a[j][6] + 0.19642373959677554532 * a[j][10];
      x3i = 0.29396890060483967924 * a[j][10] - 0.19642373959677554532 * a[j][6];
      xr = x0i - x1i;
      xi = x2i + x3i;
      x0i += x1i;
      x2i -= x3i;
      x1i = 0.70710678118654752440 * (xi + xr);
      x3i = 0.70710678118654752440 * (xi - xr);
      xr = x0r + x0i;
      xi = x0r - x0i;
      a[j][0] = xr + x4r;
      a[j][15] = xr - x4r;
      a[j][8] = xi + x4i;
      a[j][7] = xi - x4i;
      xr = x1r + x1i;
      xi = x1r - x1i;
      a[j][2] = xr + x5r;
      a[j][13] = xr - x5r;
      a[j][10] = xi + x5i;
      a[j][5] = xi - x5i;
      xr = x2r + x2i;
      xi = x2r - x2i;
      a[j][4] = xr + x6r;
      a[j][11] = xr - x6r;
      a[j][12] = xi + x6i;
      a[j][3] = xi - x6i;
      xr = x3r + x3i;
      xi = x3r - x3i;
      a[j][6] = xr + x7r;
      a[j][9] = xr - x7r;
      a[j][14] = xi + x7i;
      a[j][1] = xi - x7i;
    }
  }
}
```