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

```asm
<doubles_xytcov_mul>:
  endbr64
  push   %r15
  mov    %r8,%r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %r9,%rbx
  sub    $0x68,%rsp
  movsd  (%rdi),%xmm2
  movsd  0x8(%rdi),%xmm4
  movsd  0x10(%rdi),%xmm0
  movsd  0x8(%rdx),%xmm1
  movsd  %xmm2,0x18(%rsp)
  movsd  (%rdx),%xmm2
  movsd  %xmm1,0x38(%rsp)
  movsd  %xmm2,0x58(%rsp)
  movsd  %xmm4,0x20(%rsp)
  movsd  %xmm0,0x10(%rsp)
  call   <sin@plt>
  pxor   %xmm4,%xmm4
  movsd  0x10(%rsp),%xmm0
  cvtsi2sd %rax,%xmm4
  movsd  %xmm4,0x8(%rsp)
  call   <cos@plt>
  movsd  0x8(%rsp),%xmm4
  pxor   %xmm0,%xmm0
  movsd  0x20(%rbp),%xmm1
  cvtsi2sd %rax,%xmm0
  movsd  0x40(%r12),%xmm12
  movsd  0x58(%rsp),%xmm2
  movapd %xmm4,%xmm6
  xorpd  D4(%rip),%xmm6
  movsd  %xmm1,0x30(%rsp)
  movsd  0x38(%rsp),%xmm1
  movsd  %xmm12,0x50(%rsp)
  movsd  0x40(%rbp),%xmm8
  movsd  (%r12),%xmm5
  movapd %xmm6,%xmm14
  movapd %xmm1,%xmm12
  movsd  0x28(%r12),%xmm9
  movsd  0x20(%r12),%xmm13
  mulsd  %xmm2,%xmm14
  movsd  %xmm5,0x38(%rsp)
  movsd  0x8(%rbp),%xmm3
  movsd  0x10(%rbp),%xmm11
  mulsd  %xmm0,%xmm12
  movsd  %xmm9,0x48(%rsp)
  movsd  0x10(%r12),%xmm15
  movsd  0x28(%rbp),%xmm10
  mulsd  %xmm4,%xmm1
  movsd  %xmm3,0x28(%rsp)
  movsd  0x8(%r12),%xmm3
  mulsd  %xmm0,%xmm2
  movsd  %xmm15,0x40(%rsp)
  movapd %xmm14,%xmm7
  subsd  %xmm12,%xmm7
  subsd  %xmm1,%xmm2
  movapd %xmm8,%xmm1
  mulsd  %xmm7,%xmm1
  movapd %xmm1,%xmm9
  movapd %xmm5,%xmm1
  movapd %xmm6,%xmm5
  mulsd  %xmm13,%xmm5
  mulsd  %xmm0,%xmm1
  movsd  %xmm5,0x10(%rsp)
  movapd %xmm11,%xmm5
  addsd  %xmm11,%xmm5
  movsd  %xmm1,0x8(%rsp)
  movapd %xmm3,%xmm1
  addsd  %xmm3,%xmm1
  movapd %xmm5,%xmm15
  movapd %xmm9,%xmm5
  addsd  %xmm11,%xmm9
  mulsd  %xmm7,%xmm15
  mulsd  %xmm7,%xmm5
  mulsd  %xmm10,%xmm7
  movapd %xmm9,%xmm11
  mulsd  %xmm2,%xmm11
  addsd  %xmm15,%xmm5
  movsd  0x8(%rsp),%xmm15
  mulsd  %xmm0,%xmm15
  addsd  %xmm5,%xmm15
  movapd %xmm1,%xmm5
  mulsd  %xmm0,%xmm5
  mulsd  %xmm4,%xmm1
  mulsd  %xmm6,%xmm5
  mulsd  %xmm0,%xmm1
  addsd  %xmm15,%xmm5
  movsd  0x10(%rsp),%xmm15
  mulsd  %xmm6,%xmm15
  addsd  %xmm15,%xmm5
  addsd  0x0(%rbp),%xmm5
  movsd  0x40(%rsp),%xmm15
  movsd  %xmm5,(%rbx)
  movsd  0x28(%rsp),%xmm5
  addsd  %xmm11,%xmm5
  movapd %xmm6,%xmm11
  mulsd  %xmm3,%xmm11
  addsd  0x8(%rsp),%xmm11
  mulsd  %xmm0,%xmm3
  addsd  0x10(%rsp),%xmm3
  addsd  %xmm5,%xmm7
  mulsd  %xmm4,%xmm11
  mulsd  %xmm0,%xmm3
  addsd  %xmm7,%xmm11
  movapd %xmm10,%xmm7
  addsd  %xmm10,%xmm7
  addsd  %xmm3,%xmm11
  movapd %xmm15,%xmm3
  mulsd  %xmm0,%xmm3
  mulsd  %xmm2,%xmm7
  movsd  %xmm11,0x8(%rbx)
  addsd  %xmm9,%xmm3
  movsd  0x48(%rsp),%xmm9
  movsd  %xmm11,0x18(%rbx)
  mulsd  %xmm9,%xmm6
  addsd  %xmm3,%xmm6
  movapd %xmm8,%xmm3
  addsd  0x50(%rsp),%xmm8
  mulsd  %xmm2,%xmm3
  movsd  %xmm6,0x10(%rbx)
  movsd  %xmm6,0x30(%rbx)
  movsd  %xmm8,0x40(%rbx)
  movapd %xmm3,%xmm5
  addsd  %xmm10,%xmm3
  mulsd  %xmm2,%xmm5
  addsd  0x18(%rsp),%xmm2
  addsd  %xmm7,%xmm5
  movsd  0x38(%rsp),%xmm7
  mulsd  %xmm4,%xmm7
  mulsd  %xmm4,%xmm7
  mulsd  %xmm15,%xmm4
  addsd  %xmm7,%xmm5
  movapd %xmm13,%xmm7
  mulsd  %xmm0,%xmm7
  addsd  %xmm3,%xmm4
  addsd  %xmm5,%xmm1
  mulsd  %xmm0,%xmm7
  mulsd  %xmm9,%xmm0
  addsd  %xmm7,%xmm1
  addsd  0x30(%rsp),%xmm1
  addsd  %xmm0,%xmm4
  movapd %xmm12,%xmm0
  subsd  %xmm14,%xmm0
  addsd  0x20(%rsp),%xmm0
  movsd  %xmm1,0x20(%rbx)
  movsd  %xmm4,0x28(%rbx)
  movsd  %xmm4,0x38(%rbx)
  movsd  %xmm2,(%r15)
  movsd  %xmm0,0x8(%r15)
  movsd  0x10(%r13),%xmm0
  addsd  0x10(%r14),%xmm0
  movsd  %xmm0,0x10(%r15)
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D4
data_type: f32[4]

tool: {"D4": [0.0,-0.0,0.0,0.0]}

assistant: ```c
void doubles_xytcov_mul(const double xyta[3], const double Ca[9], const double xytb[3], const double Cb[9], double xytr[3], double Cr[9]) {
  double xa = xyta[0], ya = xyta[1], ta = xyta[2];
  double xb = xytb[0], yb = xytb[1];
  double sa = (double)sin(ta), ca = (double)cos(ta);
  double P11 = Ca[0], P12 = Ca[1], P13 = Ca[2];
  double P22 = Ca[4], P23 = Ca[5];
  double P33 = Ca[8];
  double Q11 = Cb[0], Q12 = Cb[1], Q13 = Cb[2];
  double Q22 = Cb[4], Q23 = Cb[5];
  double Q33 = Cb[8];
  double JA13 = -sa * xb - ca * yb;
  double JA23 = ca * xb - sa * yb;
  double JB11 = ca;
  double JB12 = -sa;
  double JB21 = sa;
  double JB22 = ca;
  Cr[0] = P33 * JA13 * JA13 + 2 * P13 * JA13 + Q11 * JB11 * JB11 + 2 * Q12 * JB11 * JB12 + Q22 * JB12 * JB12 + P11;
  Cr[1] = P12 + JA23 * (P13 + JA13 * P33) + JA13 * P23 + JB21 * (JB11 * Q11 + JB12 * Q12) + JB22 * (JB11 * Q12 + JB12 * Q22);
  Cr[2] = P13 + JA13 * P33 + JB11 * Q13 + JB12 * Q23;
  Cr[3] = Cr[1];
  Cr[4] = P33 * JA23 * JA23 + 2 * P23 * JA23 + Q11 * JB21 * JB21 + 2 * Q12 * JB21 * JB22 + Q22 * JB22 * JB22 + P22;
  Cr[5] = P23 + JA23 * P33 + JB21 * Q13 + JB22 * Q23;
  Cr[6] = Cr[2];
  Cr[7] = Cr[5];
  Cr[8] = P33 + Q33;
  xytr[0] = ca * xb - sa * yb + xa;
  xytr[1] = sa * xb + ca * yb + ya;
  xytr[2] = xyta[2] + xytb[2];
}
```