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

```asm
<ddct16x16s>:
  endbr64
  push   %r15
  mov    %edi,%edx
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x60,%rsp
  mov    0x78(%rsi),%rbx
  mov    0x38(%rsi),%rdi
  test   %edx,%edx
  mov    %rsi,0x58(%rsp)
  mov    0x8(%rsi),%r15
  mov    $0x0,%edx
  mov    0x48(%rsi),%rcx
  mov    0x18(%r14),%r8
  mov    %rbx,-0x38(%rsp)
  mov    0x68(%r14),%r9
  mov    0x20(%r14),%r10
  mov    %rdi,-0x30(%rsp)
  movsd  D0(%rip),%xmm4
  mov    0x58(%r14),%rdi
  mov    0x60(%r14),%r11
  mov    (%r14),%rax
  movsd  %xmm4,-0x68(%rsp)
  movsd  D264(%rip),%xmm4
  mov    0x40(%r14),%rbx
  mov    0x10(%r14),%rbp
  mov    0x70(%r14),%r12
  movsd  %xmm4,-0x48(%rsp)
  mov    0x30(%r14),%r13
  mov    0x28(%rsi),%rsi
  movsd  D242(%rip),%xmm4
  mov    0x50(%r14),%r14
  movsd  %xmm4,-0x60(%rsp)
  movsd  D149(%rip),%xmm15
  movsd  D204(%rip),%xmm4
  movsd  %xmm4,-0x40(%rsp)
  movsd  D40(%rip),%xmm4
  movsd  %xmm4,-0x58(%rsp)
  movsd  D92(%rip),%xmm4
  movsd  %xmm4,-0x78(%rsp)
  movsd  D164(%rip),%xmm4
  movsd  %xmm4,-0x70(%rsp)
  js     L15
  movsd  D178(%rip),%xmm4
  mov    %rcx,0x28(%rsp)
  movsd  %xmm15,0x10(%rsp)
  movsd  %xmm4,0x18(%rsp)
  movsd  D276(%rip),%xmm4
  movsd  %xmm4,0x20(%rsp)
  movsd  D147(%rip),%xmm4
  movsd  %xmm4,-0x10(%rsp)
  movsd  D169(%rip),%xmm4
  movsd  %xmm4,-0x50(%rsp)
  movsd  D194(%rip),%xmm4
  movsd  %xmm4,-0x8(%rsp)
  movsd  D251(%rip),%xmm4
  movsd  %xmm4,(%rsp)
  movsd  D266(%rip),%xmm4
  movsd  %xmm4,0x8(%rsp)
  movsd  D179(%rip),%xmm4
  movsd  %xmm4,-0x28(%rsp)
  movsd  D24(%rip),%xmm4
  movsd  %xmm4,-0x20(%rsp)
  movsd  D7(%rip),%xmm4
  movsd  %xmm4,-0x18(%rsp)
  nopl   0x0(%rax)
L8:
  mov    -0x38(%rsp),%rcx
  movsd  -0x10(%rsp),%xmm4
  movsd  -0x50(%rsp),%xmm6
  movsd  (%r15,%rdx,1),%xmm1
  movsd  (%rcx,%rdx,1),%xmm5
  movapd %xmm4,%xmm0
  mov    -0x30(%rsp),%rcx
  movapd %xmm6,%xmm2
  movsd  (%rsp),%xmm7
  movsd  -0x20(%rsp),%xmm15
  mulsd  %xmm5,%xmm2
  movsd  (%rcx,%rdx,1),%xmm3
  mov    0x28(%rsp),%rcx
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rsp),%xmm13
  movsd  0x10(%rsp),%xmm14
  mulsd  %xmm6,%xmm1
  movsd  -0x8(%rsp),%xmm6
  mulsd  %xmm4,%xmm5
  movapd %xmm7,%xmm4
  addsd  %xmm2,%xmm0
  movapd %xmm6,%xmm2
  mulsd  %xmm3,%xmm2
  subsd  %xmm1,%xmm5
  movsd  (%rcx,%rdx,1),%xmm1
  mulsd  %xmm7,%xmm3
  movsd  -0x28(%rsp),%xmm7
  movapd %xmm0,%xmm10
  mulsd  %xmm1,%xmm4
  mulsd  %xmm6,%xmm1
  movapd %xmm5,%xmm9
  movsd  (%rdi,%rdx,1),%xmm6
  addsd  %xmm4,%xmm2
  movsd  0x8(%rsp),%xmm4
  subsd  %xmm3,%xmm1
  movapd %xmm4,%xmm3
  addsd  %xmm2,%xmm10
  subsd  %xmm2,%xmm0
  movapd %xmm7,%xmm2
  addsd  %xmm1,%xmm5
  subsd  %xmm1,%xmm9
  movsd  (%rsi,%rdx,1),%xmm1
  mulsd  %xmm6,%xmm2
  mulsd  %xmm4,%xmm6
  movapd %xmm15,%xmm4
  mulsd  %xmm1,%xmm3
  mulsd  %xmm7,%xmm1
  movapd %xmm13,%xmm7
  addsd  %xmm2,%xmm3
  movsd  (%r8,%rdx,1),%xmm2
  subsd  %xmm1,%xmm6
  movsd  (%r9,%rdx,1),%xmm1
  mulsd  %xmm2,%xmm4
  mulsd  %xmm1,%xmm7
  mulsd  %xmm13,%xmm2
  mulsd  %xmm15,%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  -0x48(%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  (%r10,%rdx,1),%xmm0
  subsd  %xmm1,%xmm2
  mulsd  %xmm0,%xmm6
  movsd  %xmm2,0x38(%rsp)
  movsd  (%r11,%rdx,1),%xmm2
  movapd %xmm6,%xmm3
  movsd  -0x60(%rsp),%xmm6
  mulsd  %xmm6,%xmm0
  movapd %xmm6,%xmm1
  movsd  -0x68(%rsp),%xmm6
  mulsd  %xmm2,%xmm1
  mulsd  %xmm5,%xmm2
  movsd  (%rbx,%rdx,1),%xmm5
  addsd  %xmm1,%xmm3
  subsd  %xmm0,%xmm2
  movsd  (%rax,%rdx,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,%rdx,1),%xmm3
  movsd  (%r12,%rdx,1),%xmm2
  movsd  -0x40(%rsp),%xmm15
  mov    -0x38(%rsp),%rcx
  movapd %xmm15,%xmm8
  mulsd  %xmm3,%xmm8
  movapd %xmm8,%xmm14
  movsd  -0x58(%rsp),%xmm8
  mulsd  %xmm8,%xmm3
  movapd %xmm8,%xmm7
  movsd  (%r14,%rdx,1),%xmm8
  mulsd  %xmm2,%xmm7
  mulsd  %xmm15,%xmm2
  movsd  -0x70(%rsp),%xmm15
  mulsd  %xmm8,%xmm15
  mulsd  -0x78(%rsp),%xmm8
  addsd  %xmm7,%xmm14
  movsd  -0x78(%rsp),%xmm7
  subsd  %xmm3,%xmm2
  movsd  0x0(%r13,%rdx,1),%xmm3
  mulsd  %xmm3,%xmm7
  mulsd  -0x70(%rsp),%xmm3
  addsd  %xmm15,%xmm7
  movapd %xmm14,%xmm15
  subsd  %xmm3,%xmm8
  movapd %xmm2,%xmm3
  subsd  %xmm7,%xmm15
  addsd  %xmm14,%xmm7
  movsd  0x10(%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,(%rax,%rdx,1)
  movapd %xmm9,%xmm7
  addsd  %xmm6,%xmm7
  subsd  %xmm9,%xmm6
  movsd  %xmm14,(%rcx,%rdx,1)
  mov    -0x30(%rsp),%rcx
  movsd  %xmm7,(%rbx,%rdx,1)
  movapd %xmm13,%xmm7
  movsd  %xmm6,(%rcx,%rdx,1)
  movapd %xmm5,%xmm6
  subsd  %xmm8,%xmm5
  mov    0x28(%rsp),%rcx
  addsd  %xmm8,%xmm6
  addsd  %xmm6,%xmm7
  subsd  %xmm13,%xmm6
  movsd  %xmm7,0x0(%rbp,%rdx,1)
  movsd  0x38(%rsp),%xmm7
  movsd  %xmm6,(%r9,%rdx,1)
  movapd %xmm7,%xmm6
  addsd  %xmm5,%xmm6
  subsd  %xmm7,%xmm5
  movsd  %xmm6,(%r14,%rdx,1)
  movsd  %xmm5,(%rsi,%rdx,1)
  movapd %xmm1,%xmm5
  subsd  %xmm2,%xmm1
  addsd  %xmm2,%xmm5
  movapd %xmm12,%xmm2
  addsd  %xmm5,%xmm2
  subsd  %xmm12,%xmm5
  movsd  %xmm2,(%r10,%rdx,1)
  movapd %xmm4,%xmm2
  addsd  %xmm1,%xmm2
  subsd  %xmm4,%xmm1
  movsd  %xmm5,(%rdi,%rdx,1)
  movsd  0x30(%rsp),%xmm4
  movsd  %xmm2,(%r11,%rdx,1)
  movapd %xmm11,%xmm2
  movsd  %xmm1,(%r8,%rdx,1)
  movapd %xmm0,%xmm1
  subsd  %xmm3,%xmm0
  addsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm2
  subsd  %xmm11,%xmm1
  movsd  %xmm2,0x0(%r13,%rdx,1)
  movsd  %xmm1,(%rcx,%rdx,1)
  movapd %xmm4,%xmm1
  addsd  %xmm0,%xmm1
  subsd  %xmm4,%xmm0
  movsd  %xmm1,(%r12,%rdx,1)
  movsd  %xmm0,(%r15,%rdx,1)
  add    $0x8,%rdx
  cmp    $0x80,%rdx
  jne    L8
  mov    0x58(%rsp),%rbx
  movsd  0x10(%rsp),%xmm15
  lea    0x8(%rbx),%rdx
  lea    0x80(%rbx),%rcx
  movsd  %xmm15,-0x38(%rsp)
  jmp    L23
  cs nopw 0x0(%rax,%rax,1)
L40:
  mov    (%rdx),%rax
  add    $0x8,%rdx
L23:
  movsd  -0x10(%rsp),%xmm4
  movsd  -0x50(%rsp),%xmm6
  movsd  0x8(%rax),%xmm1
  movsd  0x78(%rax),%xmm5
  movapd %xmm4,%xmm0
  movapd %xmm6,%xmm2
  movsd  (%rsp),%xmm7
  movsd  0x38(%rax),%xmm3
  mulsd  %xmm5,%xmm2
  movsd  -0x20(%rsp),%xmm11
  movsd  -0x18(%rsp),%xmm12
  mulsd  %xmm1,%xmm0
  movsd  -0x40(%rsp),%xmm15
  movsd  -0x38(%rsp),%xmm14
  mulsd  %xmm6,%xmm1
  movsd  -0x8(%rsp),%xmm6
  mulsd  %xmm4,%xmm5
  movapd %xmm7,%xmm4
  movapd %xmm15,%xmm8
  addsd  %xmm2,%xmm0
  movapd %xmm6,%xmm2
  mulsd  %xmm3,%xmm2
  subsd  %xmm1,%xmm5
  movsd  0x48(%rax),%xmm1
  mulsd  %xmm7,%xmm3
  movsd  -0x28(%rsp),%xmm7
  movapd %xmm0,%xmm10
  mulsd  %xmm1,%xmm4
  mulsd  %xmm6,%xmm1
  movapd %xmm5,%xmm9
  movsd  0x58(%rax),%xmm6
  addsd  %xmm4,%xmm2
  movsd  0x8(%rsp),%xmm4
  subsd  %xmm3,%xmm1
  movapd %xmm4,%xmm3
  addsd  %xmm2,%xmm10
  subsd  %xmm2,%xmm0
  movapd %xmm7,%xmm2
  addsd  %xmm1,%xmm5
  subsd  %xmm1,%xmm9
  movsd  0x28(%rax),%xmm1
  mulsd  %xmm6,%xmm2
  mulsd  %xmm4,%xmm6
  movapd %xmm11,%xmm4
  mulsd  %xmm1,%xmm3
  mulsd  %xmm7,%xmm1
  movapd %xmm12,%xmm7
  addsd  %xmm2,%xmm3
  movsd  0x18(%rax),%xmm2
  subsd  %xmm1,%xmm6
  movsd  0x68(%rax),%xmm1
  mulsd  %xmm2,%xmm4
  mulsd  %xmm1,%xmm7
  mulsd  %xmm12,%xmm2
  mulsd  %xmm11,%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  -0x48(%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  0x20(%rax),%xmm0
  subsd  %xmm1,%xmm2
  mulsd  %xmm0,%xmm6
  movsd  %xmm2,0x10(%rsp)
  movsd  0x60(%rax),%xmm2
  movapd %xmm6,%xmm3
  movsd  -0x60(%rsp),%xmm6
  mulsd  %xmm6,%xmm0
  movapd %xmm6,%xmm1
  movsd  -0x68(%rsp),%xmm6
  mulsd  %xmm2,%xmm1
  mulsd  %xmm5,%xmm2
  movsd  0x40(%rax),%xmm5
  addsd  %xmm1,%xmm3
  subsd  %xmm0,%xmm2
  movsd  (%rax),%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
  movsd  0x70(%rax),%xmm2
  addsd  %xmm1,%xmm6
  subsd  %xmm3,%xmm1
  movsd  0x10(%rax),%xmm3
  mulsd  %xmm3,%xmm8
  movapd %xmm8,%xmm14
  movsd  -0x58(%rsp),%xmm8
  mulsd  %xmm8,%xmm3
  movapd %xmm8,%xmm7
  mulsd  %xmm2,%xmm7
  mulsd  %xmm15,%xmm2
  addsd  %xmm7,%xmm14
  subsd  %xmm3,%xmm2
  movsd  0x30(%rax),%xmm3
  movsd  0x50(%rax),%xmm8
  movsd  -0x78(%rsp),%xmm7
  movsd  -0x70(%rsp),%xmm15
  mulsd  %xmm3,%xmm7
  mulsd  %xmm8,%xmm15
  mulsd  -0x70(%rsp),%xmm3
  mulsd  -0x78(%rsp),%xmm8
  addsd  %xmm15,%xmm7
  movapd %xmm14,%xmm15
  subsd  %xmm3,%xmm8
  movapd %xmm2,%xmm3
  subsd  %xmm7,%xmm15
  addsd  %xmm14,%xmm7
  movsd  -0x38(%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,(%rax)
  movapd %xmm9,%xmm7
  addsd  %xmm6,%xmm7
  subsd  %xmm9,%xmm6
  movsd  %xmm14,0x78(%rax)
  movsd  %xmm6,0x38(%rax)
  movapd %xmm5,%xmm6
  subsd  %xmm8,%xmm5
  addsd  %xmm8,%xmm6
  movsd  %xmm7,0x40(%rax)
  movapd %xmm13,%xmm7
  addsd  %xmm6,%xmm7
  subsd  %xmm13,%xmm6
  movsd  %xmm7,0x10(%rax)
  movsd  0x10(%rsp),%xmm7
  movsd  %xmm6,0x68(%rax)
  movapd %xmm7,%xmm6
  addsd  %xmm5,%xmm6
  subsd  %xmm7,%xmm5
  movsd  %xmm5,0x28(%rax)
  movapd %xmm1,%xmm5
  subsd  %xmm2,%xmm1
  addsd  %xmm2,%xmm5
  movapd %xmm12,%xmm2
  movsd  %xmm6,0x50(%rax)
  addsd  %xmm5,%xmm2
  subsd  %xmm12,%xmm5
  movsd  %xmm2,0x20(%rax)
  movapd %xmm4,%xmm2
  addsd  %xmm1,%xmm2
  subsd  %xmm4,%xmm1
  movsd  -0x30(%rsp),%xmm4
  movsd  %xmm5,0x58(%rax)
  movsd  %xmm1,0x18(%rax)
  movapd %xmm0,%xmm1
  subsd  %xmm3,%xmm0
  addsd  %xmm3,%xmm1
  movsd  %xmm2,0x60(%rax)
  movapd %xmm11,%xmm2
  addsd  %xmm1,%xmm2
  subsd  %xmm11,%xmm1
  movsd  %xmm1,0x48(%rax)
  movapd %xmm4,%xmm1
  addsd  %xmm0,%xmm1
  subsd  %xmm4,%xmm0
  movsd  %xmm2,0x30(%rax)
  movsd  %xmm1,0x70(%rax)
  movsd  %xmm0,0x8(%rax)
  cmp    %rdx,%rcx
  jne    L40
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L15:
  movsd  D147(%rip),%xmm4
  mov    %rcx,0x28(%rsp)
  movsd  D178(%rip),%xmm12
  movsd  D276(%rip),%xmm13
  movsd  %xmm4,-0x10(%rsp)
  movsd  D169(%rip),%xmm4
  movsd  %xmm12,0x18(%rsp)
  movsd  %xmm4,-0x50(%rsp)
  movsd  D194(%rip),%xmm4
  movsd  %xmm13,0x20(%rsp)
  movsd  %xmm4,-0x8(%rsp)
  movsd  D251(%rip),%xmm4
  movsd  %xmm4,(%rsp)
  movsd  D266(%rip),%xmm4
  movsd  %xmm4,0x8(%rsp)
  movsd  D179(%rip),%xmm4
  movsd  %xmm4,-0x28(%rsp)
  movsd  D24(%rip),%xmm4
  movsd  %xmm4,-0x20(%rsp)
  movsd  D7(%rip),%xmm4
  movsd  %xmm4,-0x18(%rsp)
  nopl   0x0(%rax)
L9:
  mov    -0x38(%rsp),%rcx
  movsd  (%rax,%rdx,1),%xmm1
  movsd  (%rsi,%rdx,1),%xmm3
  movsd  (%r8,%rdx,1),%xmm6
  movsd  (%rcx,%rdx,1),%xmm0
  mov    -0x30(%rsp),%rcx
  movapd %xmm1,%xmm4
  movsd  (%r15,%rdx,1),%xmm10
  movsd  (%r12,%rdx,1),%xmm8
  movsd  (%rcx,%rdx,1),%xmm2
  subsd  %xmm0,%xmm4
  addsd  %xmm0,%xmm1
  movsd  (%rbx,%rdx,1),%xmm0
  mov    0x28(%rsp),%rcx
  movapd %xmm0,%xmm7
  addsd  %xmm2,%xmm0
  movapd %xmm1,%xmm5
  subsd  %xmm2,%xmm7
  movsd  (%r9,%rdx,1),%xmm2
  movsd  %xmm4,0x30(%rsp)
  movsd  (%r10,%rdx,1),%xmm4
  addsd  %xmm0,%xmm5
  subsd  %xmm0,%xmm1
  movsd  0x0(%rbp,%rdx,1),%xmm0
  movsd  %xmm7,0x38(%rsp)
  movapd %xmm0,%xmm11
  addsd  %xmm2,%xmm0
  subsd  %xmm2,%xmm11
  movsd  (%r14,%rdx,1),%xmm2
  movapd %xmm5,%xmm7
  movsd  (%rdi,%rdx,1),%xmm5
  movapd %xmm2,%xmm14
  addsd  %xmm3,%xmm2
  subsd  %xmm3,%xmm14
  movapd %xmm0,%xmm3
  addsd  %xmm2,%xmm3
  subsd  %xmm2,%xmm0
  movapd %xmm4,%xmm2
  subsd  %xmm5,%xmm2
  addsd  %xmm5,%xmm4
  movsd  (%r11,%rdx,1),%xmm5
  movapd %xmm5,%xmm9
  addsd  %xmm6,%xmm5
  subsd  %xmm6,%xmm9
  movapd %xmm4,%xmm6
  addsd  %xmm5,%xmm6
  subsd  %xmm5,%xmm4
  movsd  0x0(%r13,%rdx,1),%xmm5
  movsd  %xmm9,0x40(%rsp)
  movapd %xmm5,%xmm9
  movsd  %xmm6,0x10(%rsp)
  movsd  (%rcx,%rdx,1),%xmm6
  addsd  %xmm6,%xmm5
  subsd  %xmm6,%xmm9
  movapd %xmm8,%xmm6
  addsd  %xmm10,%xmm8
  subsd  %xmm10,%xmm6
  movapd %xmm5,%xmm10
  addsd  %xmm8,%xmm10
  subsd  %xmm8,%xmm5
  movsd  0x10(%rsp),%xmm8
  addsd  %xmm7,%xmm8
  subsd  0x10(%rsp),%xmm7
  movsd  %xmm10,0x48(%rsp)
  addsd  %xmm3,%xmm10
  movsd  %xmm10,0x50(%rsp)
  addsd  %xmm8,%xmm10
  subsd  0x50(%rsp),%xmm8
  mulsd  -0x68(%rsp),%xmm10
  mulsd  -0x68(%rsp),%xmm8
  movsd  %xmm10,(%rax,%rdx,1)
  movsd  %xmm8,(%rbx,%rdx,1)
  subsd  0x48(%rsp),%xmm3
  movsd  -0x48(%rsp),%xmm8
  movsd  -0x60(%rsp),%xmm10
  mov    -0x38(%rsp),%rcx
  mulsd  %xmm7,%xmm8
  mulsd  %xmm3,%xmm10
  mulsd  -0x60(%rsp),%xmm7
  mulsd  -0x48(%rsp),%xmm3
  subsd  %xmm10,%xmm8
  movsd  -0x58(%rsp),%xmm10
  addsd  %xmm7,%xmm3
  movsd  %xmm8,(%r10,%rdx,1)
  movsd  -0x40(%rsp),%xmm8
  movsd  %xmm3,(%r11,%rdx,1)
  movapd %xmm0,%xmm3
  addsd  %xmm5,%xmm0
  subsd  %xmm5,%xmm3
  movapd %xmm1,%xmm5
  mulsd  %xmm15,%xmm0
  movapd %xmm3,%xmm7
  movapd %xmm4,%xmm3
  mulsd  %xmm15,%xmm7
  addsd  %xmm0,%xmm3
  subsd  %xmm4,%xmm0
  addsd  %xmm7,%xmm5
  subsd  %xmm7,%xmm1
  movsd  0x38(%rsp),%xmm7
  mulsd  %xmm3,%xmm10
  mulsd  -0x40(%rsp),%xmm3
  mulsd  %xmm5,%xmm8
  mulsd  -0x58(%rsp),%xmm5
  subsd  %xmm10,%xmm8
  movsd  -0x78(%rsp),%xmm10
  addsd  %xmm5,%xmm3
  movsd  0x40(%rsp),%xmm5
  movsd  %xmm8,0x0(%rbp,%rdx,1)
  movsd  -0x70(%rsp),%xmm8
  movsd  %xmm3,(%r12,%rdx,1)
  movapd %xmm10,%xmm3
  mulsd  %xmm1,%xmm3
  movapd %xmm8,%xmm4
  mulsd  %xmm0,%xmm4
  mulsd  %xmm8,%xmm1
  movapd %xmm9,%xmm8
  mulsd  %xmm10,%xmm0
  mulsd  %xmm12,%xmm8
  mulsd  %xmm13,%xmm9
  subsd  %xmm4,%xmm3
  movapd %xmm7,%xmm4
  addsd  %xmm1,%xmm0
  movapd %xmm14,%xmm1
  movsd  %xmm3,0x0(%r13,%rdx,1)
  mulsd  %xmm12,%xmm1
  movapd %xmm2,%xmm3
  addsd  %xmm5,%xmm2
  subsd  %xmm5,%xmm3
  movsd  %xmm0,(%r14,%rdx,1)
  movsd  0x30(%rsp),%xmm0
  mulsd  %xmm15,%xmm2
  mulsd  %xmm15,%xmm3
  movapd %xmm0,%xmm5
  subsd  %xmm2,%xmm4
  addsd  %xmm7,%xmm2
  movapd %xmm11,%xmm7
  subsd  %xmm3,%xmm5
  addsd  %xmm0,%xmm3
  movapd %xmm6,%xmm0
  mulsd  %xmm13,%xmm0
  mulsd  %xmm12,%xmm6
  mulsd  %xmm12,%xmm7
  subsd  %xmm0,%xmm8
  movapd %xmm11,%xmm0
  movsd  -0x50(%rsp),%xmm11
  mulsd  %xmm13,%xmm0
  addsd  %xmm9,%xmm6
  movapd %xmm8,%xmm9
  subsd  %xmm1,%xmm0
  movapd %xmm14,%xmm1
  movsd  -0x10(%rsp),%xmm14
  mulsd  %xmm13,%xmm1
  movapd %xmm14,%xmm10
  addsd  %xmm0,%xmm9
  subsd  %xmm8,%xmm0
  movapd %xmm3,%xmm8
  addsd  %xmm7,%xmm1
  movapd %xmm6,%xmm7
  addsd  %xmm9,%xmm8
  subsd  %xmm9,%xmm3
  movsd  -0x8(%rsp),%xmm9
  addsd  %xmm1,%xmm7
  subsd  %xmm6,%xmm1
  movapd %xmm2,%xmm6
  mulsd  %xmm8,%xmm10
  mulsd  -0x50(%rsp),%xmm8
  addsd  %xmm7,%xmm6
  subsd  %xmm2,%xmm7
  movapd %xmm9,%xmm2
  mulsd  %xmm3,%xmm2
  mulsd  %xmm6,%xmm11
  mulsd  %xmm14,%xmm6
  subsd  %xmm11,%xmm10
  movsd  (%rsp),%xmm11
  addsd  %xmm8,%xmm6
  mulsd  %xmm11,%xmm3
  movsd  %xmm10,(%r15,%rdx,1)
  movsd  %xmm6,(%rcx,%rdx,1)
  movapd %xmm11,%xmm6
  mov    -0x30(%rsp),%rcx
  mulsd  %xmm7,%xmm6
  mulsd  %xmm9,%xmm7
  subsd  %xmm6,%xmm2
  addsd  %xmm3,%xmm7
  movapd %xmm5,%xmm3
  subsd  %xmm1,%xmm3
  addsd  %xmm5,%xmm1
  movsd  %xmm2,(%rcx,%rdx,1)
  mov    0x28(%rsp),%rcx
  movapd %xmm4,%xmm2
  addsd  %xmm0,%xmm2
  subsd  %xmm4,%xmm0
  movsd  %xmm7,(%rcx,%rdx,1)
  movsd  0x8(%rsp),%xmm9
  movsd  -0x28(%rsp),%xmm11
  movsd  -0x20(%rsp),%xmm4
  movsd  -0x18(%rsp),%xmm5
  movapd %xmm9,%xmm6
  movapd %xmm11,%xmm7
  mulsd  %xmm3,%xmm6
  mulsd  %xmm2,%xmm7
  mulsd  %xmm11,%xmm3
  mulsd  %xmm9,%xmm2
  subsd  %xmm7,%xmm6
  addsd  %xmm3,%xmm2
  movapd %xmm5,%xmm3
  movsd  %xmm6,(%rsi,%rdx,1)
  mulsd  %xmm0,%xmm3
  mulsd  %xmm4,%xmm0
  movsd  %xmm2,(%rdi,%rdx,1)
  movapd %xmm4,%xmm2
  mulsd  %xmm1,%xmm2
  mulsd  %xmm5,%xmm1
  subsd  %xmm3,%xmm2
  addsd  %xmm1,%xmm0
  movsd  %xmm2,(%r8,%rdx,1)
  movsd  %xmm0,(%r9,%rdx,1)
  add    $0x8,%rdx
  cmp    $0x80,%rdx
  jne    L9
  mov    0x58(%rsp),%rdi
  movsd  0x18(%rsp),%xmm13
  movsd  0x20(%rsp),%xmm10
  lea    0x8(%rdi),%rdx
  lea    0x80(%rdi),%rcx
  jmp    L7
  nopl   0x0(%rax,%rax,1)
L46:
  mov    (%rdx),%rax
  add    $0x8,%rdx
L7:
  movsd  (%rax),%xmm1
  movsd  0x78(%rax),%xmm0
  movsd  0x38(%rax),%xmm2
  movsd  0x28(%rax),%xmm3
  movapd %xmm1,%xmm4
  addsd  %xmm0,%xmm1
  movsd  0x18(%rax),%xmm6
  movsd  0x8(%rax),%xmm12
  subsd  %xmm0,%xmm4
  movsd  0x40(%rax),%xmm0
  movsd  0x70(%rax),%xmm8
  movapd %xmm0,%xmm7
  addsd  %xmm2,%xmm0
  movapd %xmm1,%xmm5
  subsd  %xmm2,%xmm7
  movsd  0x68(%rax),%xmm2
  movsd  %xmm4,-0x30(%rsp)
  movsd  0x20(%rax),%xmm4
  addsd  %xmm0,%xmm5
  subsd  %xmm0,%xmm1
  movsd  0x10(%rax),%xmm0
  movsd  %xmm7,0x10(%rsp)
  movapd %xmm0,%xmm11
  addsd  %xmm2,%xmm0
  subsd  %xmm2,%xmm11
  movsd  0x50(%rax),%xmm2
  movapd %xmm5,%xmm7
  movsd  0x58(%rax),%xmm5
  movsd  %xmm1,-0x38(%rsp)
  movapd %xmm2,%xmm14
  addsd  %xmm3,%xmm2
  subsd  %xmm3,%xmm14
  movapd %xmm0,%xmm3
  addsd  %xmm2,%xmm3
  subsd  %xmm2,%xmm0
  movapd %xmm4,%xmm2
  subsd  %xmm5,%xmm2
  addsd  %xmm5,%xmm4
  movsd  0x60(%rax),%xmm5
  movapd %xmm5,%xmm1
  addsd  %xmm6,%xmm5
  subsd  %xmm6,%xmm1
  movapd %xmm4,%xmm6
  addsd  %xmm5,%xmm6
  subsd  %xmm5,%xmm4
  movsd  0x30(%rax),%xmm5
  movsd  %xmm1,0x18(%rsp)
  movapd %xmm5,%xmm9
  movapd %xmm6,%xmm1
  movsd  0x48(%rax),%xmm6
  movsd  %xmm1,0x20(%rsp)
  addsd  %xmm6,%xmm5
  subsd  %xmm6,%xmm9
  movapd %xmm8,%xmm6
  addsd  %xmm12,%xmm8
  subsd  %xmm12,%xmm6
  movapd %xmm5,%xmm12
  addsd  %xmm8,%xmm12
  subsd  %xmm8,%xmm5
  movapd %xmm1,%xmm8
  movapd %xmm3,%xmm1
  addsd  %xmm7,%xmm8
  subsd  0x20(%rsp),%xmm7
  addsd  %xmm12,%xmm1
  subsd  %xmm12,%xmm3
  movsd  %xmm1,0x28(%rsp)
  addsd  %xmm8,%xmm1
  mulsd  -0x68(%rsp),%xmm1
  subsd  0x28(%rsp),%xmm8
  mulsd  -0x68(%rsp),%xmm8
  movsd  %xmm1,(%rax)
  movsd  -0x48(%rsp),%xmm1
  movsd  %xmm8,0x40(%rax)
  movsd  -0x60(%rsp),%xmm8
  movapd %xmm1,%xmm12
  mulsd  %xmm3,%xmm8
  mulsd  %xmm7,%xmm12
  mulsd  %xmm1,%xmm3
  mulsd  -0x60(%rsp),%xmm7
  subsd  %xmm8,%xmm12
  addsd  %xmm7,%xmm3
  movsd  %xmm12,0x20(%rax)
  movsd  %xmm3,0x60(%rax)
  movapd %xmm0,%xmm3
  addsd  %xmm5,%xmm0
  movsd  -0x40(%rsp),%xmm1
  subsd  %xmm5,%xmm3
  movsd  -0x38(%rsp),%xmm5
  movsd  -0x58(%rsp),%xmm8
  movapd %xmm1,%xmm12
  mulsd  %xmm15,%xmm0
  movapd %xmm3,%xmm7
  movapd %xmm4,%xmm3
  mulsd  %xmm15,%xmm7
  addsd  %xmm0,%xmm3
  subsd  %xmm4,%xmm0
  addsd  %xmm7,%xmm5
  mulsd  %xmm3,%xmm8
  mulsd  %xmm1,%xmm3
  movsd  -0x38(%rsp),%xmm1
  mulsd  %xmm5,%xmm12
  mulsd  -0x58(%rsp),%xmm5
  subsd  %xmm7,%xmm1
  movsd  0x10(%rsp),%xmm7
  subsd  %xmm8,%xmm12
  movsd  -0x70(%rsp),%xmm8
  addsd  %xmm5,%xmm3
  movsd  0x18(%rsp),%xmm5
  movsd  %xmm12,0x10(%rax)
  movsd  -0x78(%rsp),%xmm12
  movsd  %xmm3,0x70(%rax)
  movapd %xmm8,%xmm3
  mulsd  %xmm0,%xmm3
  movapd %xmm12,%xmm4
  mulsd  %xmm1,%xmm4
  mulsd  %xmm12,%xmm0
  mulsd  %xmm8,%xmm1
  movapd %xmm9,%xmm8
  mulsd  %xmm13,%xmm8
  mulsd  %xmm10,%xmm9
  subsd  %xmm3,%xmm4
  movapd %xmm2,%xmm3
  addsd  %xmm5,%xmm2
  subsd  %xmm5,%xmm3
  addsd  %xmm1,%xmm0
  movapd %xmm14,%xmm1
  mulsd  %xmm15,%xmm2
  movsd  %xmm4,0x30(%rax)
  movapd %xmm7,%xmm4
  mulsd  %xmm15,%xmm3
  movsd  %xmm0,0x50(%rax)
  movsd  -0x30(%rsp),%xmm0
  mulsd  %xmm13,%xmm1
  movapd %xmm0,%xmm5
  subsd  %xmm2,%xmm4
  addsd  %xmm7,%xmm2
  movapd %xmm11,%xmm7
  subsd  %xmm3,%xmm5
  addsd  %xmm0,%xmm3
  movapd %xmm6,%xmm0
  mulsd  %xmm10,%xmm0
  mulsd  %xmm13,%xmm6
  mulsd  %xmm13,%xmm7
  subsd  %xmm0,%xmm8
  movapd %xmm11,%xmm0
  movsd  -0x50(%rsp),%xmm11
  mulsd  %xmm10,%xmm0
  addsd  %xmm9,%xmm6
  movapd %xmm8,%xmm9
  subsd  %xmm1,%xmm0
  movapd %xmm14,%xmm1
  movsd  -0x10(%rsp),%xmm14
  mulsd  %xmm10,%xmm1
  movapd %xmm14,%xmm12
  addsd  %xmm0,%xmm9
  subsd  %xmm8,%xmm0
  movapd %xmm3,%xmm8
  addsd  %xmm7,%xmm1
  movapd %xmm6,%xmm7
  addsd  %xmm9,%xmm8
  subsd  %xmm9,%xmm3
  movsd  -0x8(%rsp),%xmm9
  addsd  %xmm1,%xmm7
  subsd  %xmm6,%xmm1
  movapd %xmm2,%xmm6
  mulsd  %xmm8,%xmm12
  mulsd  -0x50(%rsp),%xmm8
  addsd  %xmm7,%xmm6
  subsd  %xmm2,%xmm7
  mulsd  %xmm6,%xmm11
  mulsd  %xmm14,%xmm6
  subsd  %xmm11,%xmm12
  movsd  (%rsp),%xmm11
  addsd  %xmm8,%xmm6
  movapd %xmm11,%xmm2
  mulsd  %xmm7,%xmm2
  movsd  %xmm12,0x8(%rax)
  movsd  %xmm6,0x78(%rax)
  mulsd  %xmm9,%xmm7
  movapd %xmm9,%xmm6
  movsd  0x8(%rsp),%xmm9
  mulsd  %xmm3,%xmm6
  mulsd  %xmm11,%xmm3
  movsd  -0x28(%rsp),%xmm11
  subsd  %xmm2,%xmm6
  movapd %xmm4,%xmm2
  addsd  %xmm3,%xmm7
  movapd %xmm5,%xmm3
  addsd  %xmm0,%xmm2
  subsd  %xmm1,%xmm3
  subsd  %xmm4,%xmm0
  movsd  -0x20(%rsp),%xmm4
  movsd  %xmm6,0x38(%rax)
  movapd %xmm11,%xmm6
  addsd  %xmm5,%xmm1
  movsd  -0x18(%rsp),%xmm5
  movsd  %xmm7,0x48(%rax)
  mulsd  %xmm2,%xmm6
  movapd %xmm9,%xmm7
  mulsd  %xmm3,%xmm7
  mulsd  %xmm9,%xmm2
  mulsd  %xmm11,%xmm3
  subsd  %xmm6,%xmm7
  addsd  %xmm3,%xmm2
  movapd %xmm4,%xmm3
  mulsd  %xmm1,%xmm3
  movsd  %xmm7,0x28(%rax)
  mulsd  %xmm5,%xmm1
  movsd  %xmm2,0x58(%rax)
  movapd %xmm5,%xmm2
  mulsd  %xmm0,%xmm2
  mulsd  %xmm4,%xmm0
  subsd  %xmm2,%xmm3
  addsd  %xmm1,%xmm0
  movsd  %xmm3,0x18(%rax)
  movsd  %xmm0,0x68(%rax)
  cmp    %rdx,%rcx
  jne    L46
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: label: D0
type_guessed: f64
name: retrieve_data
arguments: label: D264
type_guessed: f64
name: retrieve_data
arguments: label: D242
type_guessed: f64
name: retrieve_data
arguments: label: D149
type_guessed: f64
name: retrieve_data
arguments: label: D204
type_guessed: f64
name: retrieve_data
arguments: label: D40
type_guessed: f64
name: retrieve_data
arguments: label: D92
type_guessed: f64
name: retrieve_data
arguments: label: D164
type_guessed: f64
name: retrieve_data
arguments: label: D178
type_guessed: f64
name: retrieve_data
arguments: label: D276
type_guessed: f64
name: retrieve_data
arguments: label: D147
type_guessed: f64
name: retrieve_data
arguments: label: D169
type_guessed: f64
name: retrieve_data
arguments: label: D194
type_guessed: f64
name: retrieve_data
arguments: label: D251
type_guessed: f64
name: retrieve_data
arguments: label: D266
type_guessed: f64
name: retrieve_data
arguments: label: D179
type_guessed: f64
name: retrieve_data
arguments: label: D24
type_guessed: f64
name: retrieve_data
arguments: label: D7
type_guessed: f64

tool: D0: 0.25

tool: D264: 0.32664074121909414

tool: D242: 0.13529902503654925

tool: D149: 0.7071067811865476

tool: D204: 0.3467599613305369

tool: D40: 0.06897484482073575

tool: D92: 0.29396890060483966

tool: D164: 0.19642373959677553

tool: D178: 0.3826834323650898

tool: D276: 0.9238795325112867

tool: D147: 0.3518509343815956

tool: D169: 0.03465429229977286

tool: D194: 0.2733004667504394

tool: D251: 0.22429189658565907

tool: D266: 0.31180625324666783

tool: D179: 0.16666391461943664

tool: D24: 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;
    }
  }
}
```