user: Converte this assembly snippet into its equivalent C code:

```asm
<laplacian>:
  endbr64
  push   %r15
  mov    %esi,%eax
  lea    -0x1(%rdx),%esi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x70,%rsp
  mov    %edi,-0x18(%rsp)
  mov    %r8,-0x70(%rsp)
  mov    %esi,0x30(%rsp)
  cmp    $0x1,%esi
  jle    L90
  lea    -0x1(%rax),%esi
  lea    -0x1(%rdi),%edx
  imul   %edi,%eax
  mov    %esi,-0x14(%rsp)
  mov    %eax,0x34(%rsp)
  mov    %eax,%r11d
  cmp    $0x1,%esi
  jle    L90
  cmp    $0x1,%edx
  jle    L90
  lea    (%rax,%rax,1),%eax
  mov    %rcx,%r15
  movslq %edi,%rcx
  mov    %r8,%rbx
  mov    %eax,-0x64(%rsp)
  lea    (%rdi,%rdi,1),%eax
  lea    -0x2(%rdi),%esi
  movapd %xmm0,%xmm4
  movslq %eax,%rdx
  mov    %eax,-0x8(%rsp)
  movapd %xmm1,%xmm3
  movapd %xmm0,%xmm2
  mov    %rcx,0x38(%rsp)
  unpcklpd %xmm4,%xmm4
  unpcklpd %xmm3,%xmm3
  lea    0x0(,%rcx,8),%r8
  lea    0x0(,%rdx,8),%rax
  movl   $0x0,-0x60(%rsp)
  mov    %rax,0x28(%rsp)
  mov    %r8,%rax
  neg    %rax
  movl   $0x1,0xc(%rsp)
  mov    %rax,0x40(%rsp)
  mov    %rcx,%rax
  neg    %rax
  mov    %r8,0x60(%rsp)
  shl    $0x4,%rax
  mov    %esi,-0x4(%rsp)
  mov    %rax,-0x20(%rsp)
  mov    %esi,%eax
  shr    %eax
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,(%rsp)
  mov    %esi,%eax
  or     $0x1,%esi
  and    $0xfffffffe,%eax
  mov    %esi,%r14d
  mov    %eax,0x8(%rsp)
  add    $0x2,%eax
  mov    %eax,-0x5c(%rsp)
  lea    -0x3(%rdi),%eax
  shl    $0x3,%rax
  sub    %rbx,%rax
  sub    %r15,%rbx
  mov    %rax,0x20(%rsp)
  lea    0x2(%rdx),%rax
  mov    %rax,0x50(%rsp)
  lea    0x1(%rcx),%rax
  mov    %rax,0x58(%rsp)
  lea    0x1(%rdx),%rax
  mov    %rax,0x48(%rsp)
  mov    %rbx,-0x10(%rsp)
  nopl   0x0(%rax)
L88:
  mov    0x50(%rsp),%rdi
  movslq %r11d,%rax
  mov    0x60(%rsp),%r9
  movl   $0x1,-0x38(%rsp)
  lea    0x0(,%rax,8),%r8
  lea    (%rdi,%rax,1),%rdx
  lea    (%r15,%rdx,8),%rdi
  mov    %rdi,-0x50(%rsp)
  mov    0x58(%rsp),%rdi
  lea    (%rdi,%rax,1),%rdx
  mov    -0x70(%rsp),%rdi
  lea    (%rdi,%rdx,8),%rsi
  mov    0x38(%rsp),%rdi
  lea    (%rax,%rdi,1),%rdx
  lea    0x0(,%rdx,8),%rdi
  mov    %rdi,-0x58(%rsp)
  mov    0x48(%rsp),%rdi
  lea    (%rdi,%rax,1),%rdx
  lea    (%r15,%rdx,8),%rdi
  movslq -0x64(%rsp),%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    %rcx,%rax
  sub    %r8,%rcx
  sub    %r9,%rax
  add    %r15,%rcx
  sub    %r8,%rax
  mov    %rcx,0x10(%rsp)
  mov    %rax,-0x48(%rsp)
  movslq -0x60(%rsp),%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  sub    %r8,%rax
  add    %r15,%rax
  sub    %r9,%rdx
  mov    %rax,0x18(%rsp)
  mov    0x40(%rsp),%rax
  sub    %r8,%rdx
  mov    %rdx,-0x40(%rsp)
  mov    -0x18(%rsp),%r8d
  mov    %rax,-0x28(%rsp)
  mov    0x28(%rsp),%rax
  mov    %rax,-0x30(%rsp)
L15:
  mov    -0x18(%rsp),%r10d
  mov    -0x50(%rsp),%rbx
  mov    %r8d,%edx
  mov    -0x20(%rsp),%rcx
  addl   $0x1,-0x38(%rsp)
  add    %r10d,%r8d
  add    %rbx,%rcx
  mov    %r8d,%eax
  sub    -0x8(%rsp),%eax
  cmpq   $0x10,-0x10(%rsp)
  mov    %eax,-0x68(%rsp)
  seta   %al
  cmp    $0x3,%r10d
  setne  %r10b
  and    %eax,%r10d
  cmp    %rbx,%rsi
  setne  %al
  and    %r10d,%eax
  cmp    %rcx,%rsi
  setne  %r10b
  and    %r10d,%eax
  mov    -0x48(%rsp),%r10
  add    %rbx,%r10
  cmp    %r10,%rsi
  setne  %r10b
  test   %r10b,%al
  je     L76
  add    -0x40(%rsp),%rbx
  cmp    %rbx,%rsi
  je     L76
  mov    -0x58(%rsp),%rax
  mov    %rdi,%r10
  mov    %edx,-0x34(%rsp)
  add    %r9,%rcx
  sub    %r9,%r10
  mov    (%rsp),%rdx
  lea    (%r15,%rax,1),%r13
  mov    -0x48(%rsp),%rax
  mov    %r10,%r12
  sub    %r9,%r12
  lea    (%rdi,%rax,1),%rbp
  mov    -0x40(%rsp),%rax
  lea    (%rdi,%rax,1),%rbx
  xor    %eax,%eax
  nopl   0x0(%rax)
L7:
  movupd 0x0(%r13,%rax,1),%xmm6
  movupd (%rcx,%rax,1),%xmm0
  movupd (%rdi,%rax,1),%xmm7
  movupd (%r10,%rax,1),%xmm5
  addpd  %xmm6,%xmm0
  movupd (%r12,%rax,1),%xmm6
  mulpd  %xmm4,%xmm5
  addpd  %xmm7,%xmm0
  movupd 0x0(%rbp,%rax,1),%xmm7
  addpd  %xmm6,%xmm0
  movupd (%rbx,%rax,1),%xmm6
  addpd  %xmm7,%xmm0
  addpd  %xmm6,%xmm0
  mulpd  %xmm3,%xmm0
  addpd  %xmm5,%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L7
  mov    -0x34(%rsp),%edx
  mov    0x8(%rsp),%ebx
  cmp    %ebx,-0x4(%rsp)
  je     L19
  lea    (%rdx,%r14,1),%eax
  lea    (%rdx,%rbx,1),%ecx
  add    -0x5c(%rsp),%edx
  mov    -0x64(%rsp),%ebx
  add    %r11d,%ecx
  add    %r11d,%edx
  lea    (%r11,%rax,1),%r10d
  movslq %edx,%rdx
  movslq %ecx,%rcx
  movslq %r10d,%r10
  movsd  (%r15,%rcx,8),%xmm0
  addsd  (%r15,%rdx,8),%xmm0
  lea    (%r14,%r8,1),%edx
  add    %r11d,%edx
  movsd  (%r15,%r10,8),%xmm5
  movslq %edx,%rdx
  addsd  (%r15,%rdx,8),%xmm0
  mov    -0x68(%rsp),%edx
  mulsd  %xmm2,%xmm5
  add    %r14d,%edx
  add    %r11d,%edx
  movslq %edx,%rdx
  addsd  (%r15,%rdx,8),%xmm0
  lea    (%rbx,%rax,1),%edx
  add    -0x60(%rsp),%eax
  cltq
  movslq %edx,%rdx
  addsd  (%r15,%rdx,8),%xmm0
  addsd  (%r15,%rax,8),%xmm0
  mov    -0x70(%rsp),%rax
  mulsd  %xmm1,%xmm0
  addsd  %xmm5,%xmm0
  movsd  %xmm0,(%rax,%r10,8)
L19:
  add    %r9,-0x50(%rsp)
  mov    -0x38(%rsp),%ecx
  add    %r9,%rsi
  add    %r9,%rdi
  add    %r9,-0x58(%rsp)
  add    %r9,-0x30(%rsp)
  sub    %r9,-0x28(%rsp)
  cmp    %ecx,-0x14(%rsp)
  jne    L15
  mov    0x34(%rsp),%edi
  addl   $0x1,0xc(%rsp)
  add    %edi,-0x64(%rsp)
  mov    0xc(%rsp),%eax
  add    %edi,-0x60(%rsp)
  add    %edi,%r11d
  cmp    0x30(%rsp),%eax
  jne    L88
L90:
  add    $0x70,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L76:
  mov    -0x30(%rsp),%rcx
  mov    -0x20(%rsp),%rdx
  mov    -0x28(%rsp),%rbx
  mov    0x20(%rsp),%rax
  add    %rcx,%rdx
  mov    0x18(%rsp),%rbp
  mov    -0x70(%rsp),%r12
  add    %rbx,%rdx
  add    %rbx,%rcx
  lea    (%rsi,%rax,1),%r10
  mov    0x10(%rsp),%rbx
  mov    -0x58(%rsp),%rax
  add    %r15,%rdx
  add    %r15,%rcx
  nopl   0x0(%rax,%rax,1)
L8:
  movsd  (%r15,%rax,1),%xmm0
  addsd  0x10(%r15,%rax,1),%xmm0
  addsd  0x8(%rcx,%rax,1),%xmm0
  addsd  0x8(%rdx,%rax,1),%xmm0
  addsd  0x8(%rbx,%rax,1),%xmm0
  addsd  0x8(%rbp,%rax,1),%xmm0
  movsd  0x8(%r15,%rax,1),%xmm5
  mulsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm5
  addsd  %xmm5,%xmm0
  movsd  %xmm0,0x8(%r12,%rax,1)
  add    $0x8,%rax
  cmp    %r10,%rax
  jne    L8
  jmp    L19
```

assistant: ```c
int laplacian(int nx, int ny, int ns, const double alpha, const double beta, double *w0, double *w1) {
  int i, j, k;
  unsigned int szarray = (unsigned int)nx * ny * ns;
#pragma acc data present(w0 [0:szarray], w1 [0:szarray])
  {
#pragma acc kernels
    {
#pragma acc loop independent vector(2)
      for (k = 1; k < ns - 1; k++) {
#pragma acc loop independent gang(1) vector(128)
        for (j = 1; j < ny - 1; j++) {
#pragma acc loop independent gang(126)
          for (i = 1; i < nx - 1; i++) {
            (w1[(i) + nx * (j) + nx * ny * (k)]) = alpha * (w0[(i) + nx * (j) + nx * ny * (k)]) + beta * ((w0[(i + 1) + nx * (j) + nx * ny * (k)]) + (w0[(i - 1) + nx * (j) + nx * ny * (k)]) + (w0[(i) + nx * (j + 1) + nx * ny * (k)]) + (w0[(i) + nx * (j - 1) + nx * ny * (k)]) + (w0[(i) + nx * (j) + nx * ny * (k + 1)]) + (w0[(i) + nx * (j) + nx * ny * (k - 1)]));
          }
        }
      }
    }
  }
  return 0;
}
```