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

```asm
<acd_2d_2_d>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x40(%rsp),%rax
  mov    0x4(%rax),%ebx
  mov    %rdx,-0x20(%rsp)
  mov    0x38(%rsp),%rdx
  mov    %r9,-0x8(%rsp)
  mov    0x48(%rsp),%r9
  movslq 0x4(%rdx),%r10
  mov    %rdi,-0x28(%rsp)
  mov    %rcx,-0x18(%rsp)
  mov    %r8,-0x10(%rsp)
  mov    %ebx,-0x2c(%rsp)
  cmp    %ebx,%r10d
  jg     L16
  mov    (%rdx),%ebx
  mov    (%rax),%r11d
  mov    %rsi,%rbp
  movaps %xmm0,%xmm3
  mov    %ebx,-0x30(%rsp)
  nopl   0x0(%rax)
L10:
  cmp    %r11d,-0x30(%rsp)
  jg     L0
  mov    -0x18(%rsp),%rbx
  mov    -0x10(%rsp),%rsi
  mov    -0x28(%rsp),%rax
  mov    0x0(%rbp,%r10,8),%rcx
  mov    (%rbx,%r10,8),%r8
  mov    (%rsi,%r10,8),%rdi
  mov    -0x8(%rsp),%rbx
  mov    -0x20(%rsp),%rsi
  mov    (%rax,%r10,8),%rdx
  mov    0x8(%rax,%r10,8),%r15
  mov    -0x8(%rax,%r10,8),%r14
  mov    0x8(%rbp,%r10,8),%r13
  mov    -0x8(%rbp,%r10,8),%r12
  mov    (%rbx,%r10,8),%rbx
  mov    (%rsi,%r10,8),%rsi
  movslq -0x30(%rsp),%rax
  cs nopw 0x0(%rax,%rax,1)
L25:
  movss  0x4(%rdx,%rax,4),%xmm1
  addss  -0x4(%rdx,%rax,4),%xmm1
  movss  (%r9),%xmm4
  movss  (%rdx,%rax,4),%xmm0
  movss  0x4(%r9),%xmm5
  movss  (%rcx,%rax,4),%xmm2
  mulss  %xmm4,%xmm1
  mulss  %xmm3,%xmm0
  addss  %xmm0,%xmm1
  movss  (%r15,%rax,4),%xmm0
  addss  (%r14,%rax,4),%xmm0
  mulss  %xmm5,%xmm0
  addss  %xmm0,%xmm1
  movss  0x4(%rcx,%rax,4),%xmm0
  addss  -0x4(%rcx,%rax,4),%xmm0
  mulss  %xmm4,%xmm0
  movaps %xmm2,%xmm4
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm2,%xmm2
  mulss  %xmm3,%xmm4
  addss  %xmm4,%xmm0
  movss  0x0(%r13,%rax,4),%xmm4
  addss  (%r12,%rax,4),%xmm4
  mulss  %xmm5,%xmm4
  addss  %xmm4,%xmm0
  mulss  (%rdi,%rax,4),%xmm0
  pxor   %xmm4,%xmm4
  cvtss2sd (%r8,%rax,4),%xmm4
  subsd  %xmm4,%xmm2
  movss  (%rbx,%rax,4),%xmm4
  mulss  %xmm1,%xmm4
  cvtss2sd %xmm0,%xmm0
  cvtss2sd %xmm4,%xmm4
  addsd  %xmm4,%xmm2
  addsd  %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r8,%rax,4)
  pxor   %xmm0,%xmm0
  cvtss2sd (%rdx,%rax,4),%xmm0
  addsd  %xmm0,%xmm0
  mulss  (%rdi,%rax,4),%xmm1
  cvtss2sd (%rsi,%rax,4),%xmm2
  subsd  %xmm2,%xmm0
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r11d
  jge    L25
L0:
  add    $0x1,%r10
  cmp    %r10d,-0x2c(%rsp)
  jge    L10
L16:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void acd_2d_2_d(float **uc, float **ucd, float **up, float **upd, float **csq, float **csqd, int *s, int *e, float c0, float *c1) {
  int i0, i1;
  for (i1 = s[1]; i1 < e[1] + 1; ++i1)
    for (i0 = s[0]; i0 < e[0] + 1; ++i0) {
      float lap = (c0 * uc[i1][i0] + c1[0] * (uc[i1][i0 + 1] + uc[i1][i0 - 1]) + c1[1] * (uc[i1 + 1][i0] + uc[i1 - 1][i0]));
      float lapd = c0 * ucd[i1][i0] + c1[0] * (ucd[i1][i0 + 1] + ucd[i1][i0 - 1]) + c1[1] * (ucd[i1 + 1][i0] + ucd[i1 - 1][i0]);
      upd[i1][i0] = 2.0 * ucd[i1][i0] - upd[i1][i0] + csqd[i1][i0] * lap + csq[i1][i0] * lapd;
      up[i1][i0] = 2.0 * uc[i1][i0] - up[i1][i0] + csq[i1][i0] * lap;
    }
}
```