user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<wave13pt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  movsd  %xmm0,-0x28(%rbp)
  movsd  %xmm1,-0x30(%rbp)
  movsd  %xmm2,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%eax
  imul   %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x2,-0x8(%rbp)
  jmp    L58
L46:
  movl   $0x2,-0xc(%rbp)
  jmp    L18
L1:
  movl   $0x2,-0x10(%rbp)
  jmp    L47
L53:
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x28(%rbp),%xmm0
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  mov    -0x10(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  mov    -0x10(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm2
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm2
  mov    -0xc(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm2
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    -0x8(%rbp),%edx
  add    $0x1,%edx
  imul   %edx,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm2
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    -0x8(%rbp),%edx
  sub    $0x1,%edx
  imul   %edx,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x10(%rbp),%eax
  lea    0x2(%rax),%edx
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  mov    -0x10(%rbp),%eax
  lea    -0x2(%rax),%edx
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm2
  mov    -0xc(%rbp),%eax
  add    $0x2,%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm2
  mov    -0xc(%rbp),%eax
  sub    $0x2,%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm2
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    -0x8(%rbp),%edx
  add    $0x2,%edx
  imul   %edx,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm2
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    -0x8(%rbp),%edx
  sub    $0x2,%edx
  imul   %edx,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  -0x38(%rbp),%xmm0
  mov    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  imul   -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x10(%rbp)
L47:
  mov    -0x14(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,-0x10(%rbp)
  jl     L53
  addl   $0x1,-0xc(%rbp)
L18:
  mov    -0x18(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,-0xc(%rbp)
  jl     L1
  addl   $0x1,-0x8(%rbp)
L58:
  mov    -0x1c(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,-0x8(%rbp)
  jl     L46
  mov    $0x0,%eax
  pop    %rbp
  ret
```

assistant: ```c
int wave13pt(int nx, int ny, int ns, const double c0, const double c1, const double c2, double *w0, double *w1, double *w2) {
  int i, j, k;
  unsigned int szarray = (unsigned int)nx * ny * ns;
#pragma acc data present(w0 [0:szarray], w1 [0:szarray], w2 [0:szarray])
  {
#pragma acc kernels
    {
#pragma acc loop independent vector(2)
      for (k = 2; k < ns - 2; k++) {
#pragma acc loop independent gang(31) vector(4)
        for (j = 2; j < ny - 2; j++) {
#pragma acc loop independent gang(2) vector(64)
          for (i = 2; i < nx - 2; i++) {
            (w2[(i) + nx * (j) + nx * ny * (k)]) = c0 * (w1[(i) + nx * (j) + nx * ny * (k)]) - (w0[(i) + nx * (j) + nx * ny * (k)]) + c1 * ((w1[(i + 1) + nx * (j) + nx * ny * (k)]) + (w1[(i - 1) + nx * (j) + nx * ny * (k)]) + (w1[(i) + nx * (j + 1) + nx * ny * (k)]) + (w1[(i) + nx * (j - 1) + nx * ny * (k)]) + (w1[(i) + nx * (j) + nx * ny * (k + 1)]) + (w1[(i) + nx * (j) + nx * ny * (k - 1)])) + c2 * ((w1[(i + 2) + nx * (j) + nx * ny * (k)]) + (w1[(i - 2) + nx * (j) + nx * ny * (k)]) + (w1[(i) + nx * (j + 2) + nx * ny * (k)]) + (w1[(i) + nx * (j - 2) + nx * ny * (k)]) + (w1[(i) + nx * (j) + nx * ny * (k + 2)]) + (w1[(i) + nx * (j) + nx * ny * (k - 2)]));
          }
        }
      }
    }
  }
  return 0;
}
```