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

```asm
<ERI_Gaunt_R>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %edi,%ebx
  mov    %esi,%r14d
  mov    %edx,%ebp
  mov    %ecx,%r15d
  mov    %r8d,%r12d
  mov    %r9d,%r13d
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  lea    0x70(%rsp),%rdx
  lea    0x60(%rsp),%rsi
  mov    %r14d,%edi
  call   <ERI_RCSH_Coeff@plt>
  lea    0x90(%rsp),%rdx
  lea    0x80(%rsp),%rsi
  mov    %r15d,%edi
  mov    $0x0,%eax
  call   <ERI_RCSH_Coeff@plt>
  lea    0xb0(%rsp),%rdx
  lea    0xa0(%rsp),%rsi
  mov    %r13d,%edi
  mov    $0x0,%eax
  call   <ERI_RCSH_Coeff@plt>
  movsd  D11(%rip),%xmm6
  movsd  %xmm6,0x20(%rsp)
  test   $0x1,%r14b
  je     L2
  movsd  D12(%rip),%xmm6
  movsd  %xmm6,0x20(%rsp)
L2:
  movsd  0x60(%rsp),%xmm1
  movsd  0x80(%rsp),%xmm8
  movsd  0x68(%rsp),%xmm10
  movsd  0x88(%rsp),%xmm0
  movapd %xmm1,%xmm7
  mulsd  %xmm8,%xmm7
  movapd %xmm10,%xmm2
  mulsd  %xmm0,%xmm2
  subsd  %xmm2,%xmm7
  movsd  0xa0(%rsp),%xmm6
  movapd %xmm1,%xmm2
  mulsd  %xmm0,%xmm2
  movapd %xmm8,%xmm3
  mulsd  %xmm10,%xmm3
  addsd  %xmm3,%xmm2
  movsd  0xa8(%rsp),%xmm5
  movapd %xmm7,%xmm4
  mulsd  %xmm6,%xmm4
  movapd %xmm2,%xmm3
  mulsd  %xmm5,%xmm3
  subsd  %xmm3,%xmm4
  movsd  %xmm4,0x10(%rsp)
  movsd  0xb0(%rsp),%xmm4
  movsd  0xb8(%rsp),%xmm3
  mulsd  %xmm4,%xmm7
  mulsd  %xmm3,%xmm2
  subsd  %xmm2,%xmm7
  movsd  %xmm7,0x28(%rsp)
  movsd  0x90(%rsp),%xmm7
  movsd  0x98(%rsp),%xmm2
  movapd %xmm1,%xmm9
  mulsd  %xmm7,%xmm9
  movapd %xmm10,%xmm11
  mulsd  %xmm2,%xmm11
  subsd  %xmm11,%xmm9
  mulsd  %xmm2,%xmm1
  mulsd  %xmm7,%xmm10
  addsd  %xmm10,%xmm1
  movapd %xmm6,%xmm11
  mulsd  %xmm9,%xmm11
  movapd %xmm5,%xmm10
  mulsd  %xmm1,%xmm10
  subsd  %xmm10,%xmm11
  movsd  %xmm11,0x30(%rsp)
  mulsd  %xmm4,%xmm9
  mulsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm9
  movsd  %xmm9,0x38(%rsp)
  movsd  0x70(%rsp),%xmm10
  movsd  0x78(%rsp),%xmm9
  movapd %xmm8,%xmm1
  mulsd  %xmm10,%xmm1
  movapd %xmm0,%xmm12
  mulsd  %xmm9,%xmm12
  subsd  %xmm12,%xmm1
  mulsd  %xmm10,%xmm0
  mulsd  %xmm9,%xmm8
  addsd  %xmm8,%xmm0
  movapd %xmm6,%xmm13
  mulsd  %xmm1,%xmm13
  movapd %xmm5,%xmm8
  mulsd  %xmm0,%xmm8
  movapd %xmm13,%xmm14
  subsd  %xmm8,%xmm14
  movsd  %xmm14,0x40(%rsp)
  mulsd  %xmm4,%xmm1
  mulsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm1
  movsd  %xmm1,0x48(%rsp)
  movapd %xmm7,%xmm0
  mulsd  %xmm10,%xmm0
  movapd %xmm2,%xmm15
  mulsd  %xmm9,%xmm15
  subsd  %xmm15,%xmm0
  mulsd  %xmm10,%xmm2
  mulsd  %xmm9,%xmm7
  addsd  %xmm7,%xmm2
  mulsd  %xmm0,%xmm6
  mulsd  %xmm2,%xmm5
  subsd  %xmm5,%xmm6
  movsd  %xmm6,0x50(%rsp)
  mulsd  %xmm0,%xmm4
  mulsd  %xmm2,%xmm3
  movapd %xmm4,%xmm5
  subsd  %xmm3,%xmm5
  movsd  %xmm5,0x58(%rsp)
  mov    %r14d,%eax
  neg    %eax
  mov    %r13d,%r9d
  mov    %r12d,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %eax,0x8(%rsp)
  mov    %eax,%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <ERI_Gaunt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x10(%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  mov    %r13d,%ecx
  neg    %ecx
  mov    %ecx,0x10(%rsp)
  mov    %ecx,%r9d
  mov    %r12d,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <ERI_Gaunt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x28(%rsp),%xmm0
  movapd %xmm0,%xmm4
  addsd  0x18(%rsp),%xmm4
  movsd  %xmm4,0x28(%rsp)
  mov    %r15d,%edi
  neg    %edi
  mov    %r13d,%r9d
  mov    %r12d,%r8d
  mov    %edi,0x18(%rsp)
  mov    %edi,%ecx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <ERI_Gaunt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x30(%rsp),%xmm0
  addsd  0x28(%rsp),%xmm0
  movsd  %xmm0,0x28(%rsp)
  mov    0x10(%rsp),%r9d
  mov    %r12d,%r8d
  mov    0x18(%rsp),%ecx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <ERI_Gaunt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x38(%rsp),%xmm0
  movapd %xmm0,%xmm4
  addsd  0x28(%rsp),%xmm4
  movsd  %xmm4,0x8(%rsp)
  mov    %r13d,%r9d
  mov    %r12d,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %r14d,%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <ERI_Gaunt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x40(%rsp),%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  mov    0x10(%rsp),%r9d
  mov    %r12d,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %r14d,%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <ERI_Gaunt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x48(%rsp),%xmm0
  movapd %xmm0,%xmm7
  addsd  0x8(%rsp),%xmm7
  movsd  %xmm7,0x8(%rsp)
  mov    %r13d,%r9d
  mov    %r12d,%r8d
  mov    0x18(%rsp),%r15d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %r14d,%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <ERI_Gaunt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x50(%rsp),%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  mov    0x10(%rsp),%r9d
  mov    %r12d,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %r14d,%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <ERI_Gaunt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x58(%rsp),%xmm0
  addsd  0x8(%rsp),%xmm0
  mulsd  0x20(%rsp),%xmm0
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L19
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L19:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D11
type_guessed: f64
name: read_data
arguments: tag: D12
type_guessed: byte[8]

tool: D11: 1

tool: {"D12": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

assistant: ```c
double ERI_Gaunt_R(int l, int m, int l1, int m1, int l2, int m2) {
  double a[2], b[2], a1[2], b1[2], a2[2], b2[2];
  double aaa, aab, aba, abb, baa, bab, bba, bbb, s;
  ERI_RCSH_Coeff(m, a, b);
  ERI_RCSH_Coeff(m1, a1, b1);
  ERI_RCSH_Coeff(m2, a2, b2);
  s = (0 == m % 2) ? 1.0 : -1.0;
  aaa = (a[0] * a1[0] - a[1] * a1[1]) * a2[0] - (a[0] * a1[1] + a[1] * a1[0]) * a2[1];
  aab = (a[0] * a1[0] - a[1] * a1[1]) * b2[0] - (a[0] * a1[1] + a[1] * a1[0]) * b2[1];
  aba = (a[0] * b1[0] - a[1] * b1[1]) * a2[0] - (a[0] * b1[1] + a[1] * b1[0]) * a2[1];
  abb = (a[0] * b1[0] - a[1] * b1[1]) * b2[0] - (a[0] * b1[1] + a[1] * b1[0]) * b2[1];
  baa = (b[0] * a1[0] - b[1] * a1[1]) * a2[0] - (b[0] * a1[1] + b[1] * a1[0]) * a2[1];
  bab = (b[0] * a1[0] - b[1] * a1[1]) * b2[0] - (b[0] * a1[1] + b[1] * a1[0]) * b2[1];
  bba = (b[0] * b1[0] - b[1] * b1[1]) * a2[0] - (b[0] * b1[1] + b[1] * b1[0]) * a2[1];
  bbb = (b[0] * b1[0] - b[1] * b1[1]) * b2[0] - (b[0] * b1[1] + b[1] * b1[0]) * b2[1];
  return s * (aaa * ERI_Gaunt(l, -m, l1, m1, l2, m2) + aab * ERI_Gaunt(l, -m, l1, m1, l2, -m2) + aba * ERI_Gaunt(l, -m, l1, -m1, l2, m2) + abb * ERI_Gaunt(l, -m, l1, -m1, l2, -m2) + baa * ERI_Gaunt(l, m, l1, m1, l2, m2) + bab * ERI_Gaunt(l, m, l1, m1, l2, -m2) + bba * ERI_Gaunt(l, m, l1, -m1, l2, m2) + bbb * ERI_Gaunt(l, m, l1, -m1, l2, -m2));
}
```