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

```asm
<calculateSubgridErrorNavierStokes3D_GLS_velocity_pressure_sd>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%eax
  mov    %edx,-0x58(%rsp)
  mov    %r8,%rdx
  mov    0x50(%rsp),%r15
  mov    0x58(%rsp),%r14
  mov    0x70(%rsp),%r13
  mov    0xb8(%rsp),%rdi
  mov    0xc0(%rsp),%r8
  mov    0xd8(%rsp),%r9
  mov    0xe0(%rsp),%r10
  mov    0xf0(%rsp),%r11
  mov    0xf8(%rsp),%rbx
  mov    0x108(%rsp),%rbp
  mov    0x110(%rsp),%r12
  test   %eax,%eax
  jle    L31
  mov    %rdx,-0x30(%rsp)
  mov    %esi,-0x28(%rsp)
  imul   -0x58(%rsp),%esi
  mov    %esi,-0x18(%rsp)
  mov    -0x28(%rsp),%esi
  imul   %ecx,%esi
  mov    %esi,-0x14(%rsp)
  lea    -0x1(%rax),%eax
  lea    0x8(%rdx,%rax,8),%rdx
  mov    %rdx,-0x10(%rsp)
  movslq %ecx,%rax
  lea    0x0(,%rax,8),%rcx
  mov    %rcx,-0x40(%rsp)
  movl   $0x0,-0x1c(%rsp)
  movl   $0x0,-0x20(%rsp)
  movl   $0x0,-0x24(%rsp)
  mov    -0x28(%rsp),%esi
  mov    %rsi,-0x8(%rsp)
  movsd  D14(%rip),%xmm5
  movsd  D16(%rip),%xmm4
  mov    -0x58(%rsp),%eax
  mov    %rax,-0x38(%rsp)
  mov    0xa8(%rsp),%rsi
L24:
  mov    -0x30(%rsp),%rax
  movsd  (%rax),%xmm3
  cmpl   $0x0,-0x28(%rsp)
  jle    L48
  mulsd  %xmm3,%xmm3
  movslq -0x20(%rsp),%rax
  mov    0x40(%rsp),%rcx
  lea    (%rcx,%rax,8),%rax
  mov    %rax,-0x60(%rsp)
  movslq -0x1c(%rsp),%rax
  lea    0x0(,%rax,8),%rcx
  add    -0x8(%rsp),%rax
  shl    $0x3,%rax
  mov    %rax,-0x48(%rsp)
  mov    -0x24(%rsp),%eax
  mov    %eax,-0x54(%rsp)
L26:
  mov    -0x60(%rsp),%rax
  movsd  (%rax),%xmm1
  movapd %xmm1,%xmm2
  mulsd  %xmm5,%xmm2
  movapd %xmm3,%xmm0
  divsd  %xmm2,%xmm0
  mov    0x68(%rsp),%rax
  movapd %xmm0,%xmm2
  mulsd  (%rax,%rcx,1),%xmm2
  mov    0xd0(%rsp),%rax
  movsd  %xmm2,(%rax,%rcx,1)
  mov    0x80(%rsp),%rax
  movapd %xmm0,%xmm2
  mulsd  (%rax,%rcx,1),%xmm2
  mov    0xe8(%rsp),%rax
  movsd  %xmm2,(%rax,%rcx,1)
  mov    0x98(%rsp),%rax
  movapd %xmm0,%xmm2
  mulsd  (%rax,%rcx,1),%xmm2
  mov    0x100(%rsp),%rax
  movsd  %xmm2,(%rax,%rcx,1)
  mulsd  %xmm4,%xmm1
  mov    0x48(%rsp),%rax
  movapd %xmm1,%xmm2
  mulsd  (%rax,%rcx,1),%xmm2
  mov    0xb0(%rsp),%rax
  movsd  %xmm2,(%rax,%rcx,1)
  cmpl   $0x0,-0x58(%rsp)
  jle    L4
  movslq -0x54(%rsp),%rdx
  lea    0x0(,%rdx,8),%rax
  add    -0x38(%rsp),%rdx
  shl    $0x3,%rdx
  mov    %rdx,-0x68(%rsp)
  mov    %rcx,-0x50(%rsp)
  mov    0xa0(%rsp),%rcx
L45:
  movapd %xmm0,%xmm2
  mulsd  0x0(%r13,%rax,1),%xmm2
  movsd  %xmm2,(%r9,%rax,1)
  mov    0x78(%rsp),%rdx
  movapd %xmm0,%xmm2
  mulsd  (%rdx,%rax,1),%xmm2
  movsd  %xmm2,(%r10,%rax,1)
  mov    0x88(%rsp),%rdx
  movapd %xmm0,%xmm2
  mulsd  (%rdx,%rax,1),%xmm2
  movsd  %xmm2,(%r11,%rax,1)
  mov    0x90(%rsp),%rdx
  movapd %xmm0,%xmm2
  mulsd  (%rdx,%rax,1),%xmm2
  movsd  %xmm2,(%rbx,%rax,1)
  movapd %xmm0,%xmm2
  mulsd  (%rcx,%rax,1),%xmm2
  movsd  %xmm2,0x0(%rbp,%rax,1)
  movapd %xmm0,%xmm2
  mulsd  (%rsi,%rax,1),%xmm2
  movsd  %xmm2,(%r12,%rax,1)
  movapd %xmm1,%xmm2
  mulsd  (%r15,%rax,1),%xmm2
  movsd  %xmm2,(%rdi,%rax,1)
  movapd %xmm1,%xmm2
  mulsd  (%r14,%rax,1),%xmm2
  movsd  %xmm2,(%r8,%rax,1)
  add    $0x8,%rax
  cmp    -0x68(%rsp),%rax
  jne    L45
  mov    -0x50(%rsp),%rcx
L4:
  mov    -0x40(%rsp),%rdx
  add    %rdx,-0x60(%rsp)
  mov    -0x58(%rsp),%edx
  add    %edx,-0x54(%rsp)
  add    $0x8,%rcx
  cmp    -0x48(%rsp),%rcx
  jne    L26
L48:
  addq   $0x8,-0x30(%rsp)
  mov    -0x30(%rsp),%rax
  mov    -0x18(%rsp),%edx
  add    %edx,-0x24(%rsp)
  mov    -0x14(%rsp),%edx
  add    %edx,-0x20(%rsp)
  mov    -0x28(%rsp),%edx
  add    %edx,-0x1c(%rsp)
  cmp    -0x10(%rsp),%rax
  jne    L24
L31:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D14
data_type: f64
name: parse_data
arguments: data_tag: D16
data_type: f64

tool: D14: 12

tool: D16: 6

assistant: ```c
void calculateSubgridErrorNavierStokes3D_GLS_velocity_pressure_sd(int nElements_global, int nQuadraturePoints_element, int nDOF_trial_element, int nSpace, double *elementDiameter, double *dm, double *f, double *a, double *pdeResidualP, double *dpdeResidualP_du, double *dpdeResidualP_dv, double *dpdeResidualP_dw, double *pdeResidualU, double *dpdeResidualU_dp, double *dpdeResidualU_du, double *pdeResidualV, double *dpdeResidualV_dp, double *dpdeResidualV_dv, double *pdeResidualW, double *dpdeResidualW_dp, double *dpdeResidualW_dw, double *subgridErrorP, double *dsubgridErrorP_du, double *dsubgridErrorP_dv, double *dsubgridErrorP_dw, double *subgridErrorU, double *dsubgridErrorU_dp, double *dsubgridErrorU_du, double *subgridErrorV, double *dsubgridErrorV_dp, double *dsubgridErrorV_dv, double *subgridErrorW, double *dsubgridErrorW_dp, double *dsubgridErrorW_dw) {
  int eN, k, j;
  double h, viscosity, tau1, tau2;
  for (eN = 0; eN < nElements_global; eN++) {
    h = elementDiameter[eN];
    for (k = 0; k < nQuadraturePoints_element; k++) {
      viscosity = a[eN * nQuadraturePoints_element * nSpace + k * nSpace];
      tau1 = h * h / (12.0 * viscosity);
      subgridErrorU[eN * nQuadraturePoints_element + k] = tau1 * pdeResidualU[eN * nQuadraturePoints_element + k];
      subgridErrorV[eN * nQuadraturePoints_element + k] = tau1 * pdeResidualV[eN * nQuadraturePoints_element + k];
      subgridErrorW[eN * nQuadraturePoints_element + k] = tau1 * pdeResidualW[eN * nQuadraturePoints_element + k];
      tau2 = 6.0 * viscosity;
      subgridErrorP[eN * nQuadraturePoints_element + k] = tau2 * pdeResidualP[eN * nQuadraturePoints_element + k];
      for (j = 0; j < nDOF_trial_element; j++) {
        dsubgridErrorU_dp[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j] = tau1 * dpdeResidualU_dp[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j];
        dsubgridErrorU_du[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j] = tau1 * dpdeResidualU_du[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j];
        dsubgridErrorV_dp[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j] = tau1 * dpdeResidualV_dp[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j];
        dsubgridErrorV_dv[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j] = tau1 * dpdeResidualV_dv[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j];
        dsubgridErrorW_dp[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j] = tau1 * dpdeResidualW_dp[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j];
        dsubgridErrorW_dw[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j] = tau1 * dpdeResidualW_dw[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j];
        dsubgridErrorP_du[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j] = tau2 * dpdeResidualP_du[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j];
        dsubgridErrorP_dv[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j] = tau2 * dpdeResidualP_dv[eN * nQuadraturePoints_element * nDOF_trial_element + k * nDOF_trial_element + j];
      }
    }
  }
}
```