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

```asm
<contr_eri>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  movsd  %xmm0,0x38(%rsp)
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm2,0x48(%rsp)
  mov    %r8d,0x50(%rsp)
  mov    %r9d,0x54(%rsp)
  movsd  %xmm3,0x58(%rsp)
  movsd  %xmm4,0x60(%rsp)
  movsd  %xmm5,0x68(%rsp)
  movsd  %xmm6,0x70(%rsp)
  movsd  %xmm7,0x78(%rsp)
  test   %edi,%edi
  jle    L114
  mov    %rdx,%rax
  mov    %rdx,%r15
  mov    %rsi,0x28(%rsp)
  mov    %rcx,0x30(%rsp)
  lea    -0x1(%rdi),%edx
  lea    0x8(%rax,%rdx,8),%rax
  mov    %rax,0x98(%rsp)
  mov    0xe8(%rsp),%eax
  lea    -0x1(%rax),%eax
  mov    0xf8(%rsp),%rcx
  lea    0x8(%rcx,%rax,8),%rax
  mov    %rax,0x90(%rsp)
  mov    0x120(%rsp),%eax
  lea    -0x1(%rax),%eax
  mov    0x130(%rsp),%rcx
  lea    0x8(%rcx,%rax,8),%rax
  mov    %rax,0x88(%rsp)
  pxor   %xmm3,%xmm3
  movsd  %xmm3,0x8(%rsp)
  mov    0x160(%rsp),%eax
  mov    %rax,0x80(%rsp)
  jmp    L84
L52:
  movsd  (%r15),%xmm0
  mulsd  (%r14),%xmm0
  mulsd  0x0(%rbp),%xmm0
  mov    0x170(%rsp),%rax
  mulsd  (%rax,%rbx,8),%xmm0
  movsd  %xmm0,0x10(%rsp)
  mov    0x168(%rsp),%rax
  push   (%rax,%rbx,8)
  mov    0x1b0(%rsp),%eax
  push   %rax
  mov    0x1b0(%rsp),%eax
  push   %rax
  mov    0x1b0(%rsp),%eax
  push   %rax
  mov    0x198(%rsp),%rax
  push   (%rax,%rbx,8)
  push   0x1b8(%rsp)
  push   0x1b8(%rsp)
  push   0x1b8(%rsp)
  push   0x0(%r13)
  mov    0x1a0(%rsp),%eax
  push   %rax
  mov    0x1a0(%rsp),%eax
  push   %rax
  mov    0x1a0(%rsp),%eax
  push   %rax
  push   (%r12)
  push   0x1a8(%rsp)
  push   0xe8(%rsp)
  push   0xe8(%rsp)
  mov    0x98(%rsp),%rax
  push   (%rax)
  mov    0xa8(%rsp),%rax
  push   (%rax)
  mov    0x1a8(%rsp),%r9d
  mov    0x1a0(%rsp),%r8d
  mov    0x198(%rsp),%ecx
  movsd  0xf8(%rsp),%xmm7
  movsd  0xf0(%rsp),%xmm6
  movsd  0xe8(%rsp),%xmm5
  mov    0xb8(%rsp),%rax
  movsd  (%rax),%xmm4
  mov    0x170(%rsp),%edx
  mov    0xe4(%rsp),%esi
  mov    0xe0(%rsp),%edi
  mov    0xc0(%rsp),%rax
  movsd  (%rax),%xmm3
  movsd  0xd8(%rsp),%xmm2
  movsd  0xd0(%rsp),%xmm1
  movsd  0xc8(%rsp),%xmm0
  call   <eri@plt>
  mulsd  0xa0(%rsp),%xmm0
  addsd  0x98(%rsp),%xmm0
  movsd  %xmm0,0x98(%rsp)
  add    $0x1,%rbx
  add    $0x90,%rsp
  cmp    %rbx,0x80(%rsp)
  jne    L52
L104:
  add    $0x8,%rbp
  add    $0x8,%r13
  add    $0x8,%r12
  cmp    0x88(%rsp),%rbp
  je     L101
L50:
  mov    $0x0,%ebx
  cmpl   $0x0,0x160(%rsp)
  jg     L52
  jmp    L104
L101:
  add    $0x8,%r14
  addq   $0x8,0x18(%rsp)
  addq   $0x8,0x20(%rsp)
  cmp    0x90(%rsp),%r14
  je     L0
L26:
  cmpl   $0x0,0x120(%rsp)
  jle    L101
  mov    0x128(%rsp),%r13
  mov    0x138(%rsp),%r12
  mov    0x130(%rsp),%rbp
  jmp    L50
L0:
  add    $0x8,%r15
  addq   $0x8,0x28(%rsp)
  addq   $0x8,0x30(%rsp)
  cmp    0x98(%rsp),%r15
  je     L75
L84:
  cmpl   $0x0,0xe8(%rsp)
  jle    L0
  mov    0xf0(%rsp),%rax
  mov    %rax,0x18(%rsp)
  mov    0x100(%rsp),%rax
  mov    %rax,0x20(%rsp)
  mov    0xf8(%rsp),%r14
  jmp    L26
L114:
  pxor   %xmm4,%xmm4
  movsd  %xmm4,0x8(%rsp)
L75:
  movsd  0x8(%rsp),%xmm0
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
double contr_eri(int lena, double *aexps, double *acoefs, double *anorms, double xa, double ya, double za, int la, int ma, int na, int lenb, double *bexps, double *bcoefs, double *bnorms, double xb, double yb, double zb, int lb, int mb, int nb, int lenc, double *cexps, double *ccoefs, double *cnorms, double xc, double yc, double zc, int lc, int mc, int nc, int lend, double *dexps, double *dcoefs, double *dnorms, double xd, double yd, double zd, int ld, int md, int nd) {
  double val = 0.0;
  int i, j, k, l;
  double EE;
  for (i = 0; i < lena; i++) {
    for (j = 0; j < lenb; j++) {
      for (k = 0; k < lenc; k++) {
        for (l = 0; l < lend; l++) {
          EE = acoefs[i] * bcoefs[j] * ccoefs[k] * dcoefs[l] * eri(xa, ya, za, anorms[i], la, ma, na, aexps[i], xb, yb, zb, bnorms[j], lb, mb, nb, bexps[j], xc, yc, zc, cnorms[k], lc, mc, nc, cexps[k], xd, yd, zd, dnorms[l], ld, md, nd, dexps[l]);
          val += EE;
        }
      }
    }
  }
  return val;
}
```