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

```asm
<computeLinGNmatPnt2Pnt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %edi,%r14d
  mov    %edi,0x28(%rsp)
  mov    %esi,%r11d
  mov    %esi,0x2c(%rsp)
  mov    %rdx,0x60(%rsp)
  mov    %ecx,(%rsp)
  mov    %r8d,0x54(%rsp)
  mov    %r9,0x30(%rsp)
  mov    0xb8(%rsp),%rdx
  mov    0xc0(%rsp),%eax
  mov    0xe0(%rsp),%r15
  mov    0xf8(%rsp),%rbx
  mov    0x110(%rsp),%r12
  mov    %ecx,%r9d
  lea    0x0(,%rcx,4),%ecx
  mov    %ecx,0x4(%rsp)
  lea    0x1(%rdi),%esi
  lea    0x1(%r11),%ecx
  mov    %esi,%edi
  imul   %ecx,%edi
  mov    %edi,0x44(%rsp)
  imul   %r8d,%r9d
  mov    %r9d,0x50(%rsp)
  test   %eax,%eax
  jle    L266
  mov    %rdx,0x8(%rsp)
  mov    0xd8(%rsp),%rcx
  mov    %rcx,0x18(%rsp)
  mov    0xc8(%rsp),%rcx
  mov    %rcx,0x20(%rsp)
  lea    -0x1(%rax),%eax
  shl    $0x4,%rax
  lea    0x10(%rdx,%rax,1),%rax
  mov    %rax,0x48(%rsp)
  mov    %r11d,%eax
  mov    0x128(%rsp),%rcx
  lea    0x8(%rcx,%rax,8),%rax
  mov    %rax,0x38(%rsp)
  mov    %r14d,%r13d
  lea    0x8(%r12,%r13,8),%rbp
  lea    -0x1(%rdi),%eax
  mov    0xf0(%rsp),%rcx
  lea    0x4(%rcx,%rax,4),%rax
  mov    %rax,0x58(%rsp)
  lea    (%rdi,%rdi,2),%r14d
  mov    %rbp,0x68(%rsp)
  jmp    L66
L116:
  movsd  (%rcx),%xmm2
  movslq %edi,%rax
  add    %r8,%rax
  lea    (%r11,%rax,8),%rdx
  mov    %r12,%rax
L186:
  movapd %xmm2,%xmm0
  mulsd  (%rax),%xmm0
  mulsd  (%rdx),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  add    $0x20,%rdx
  cmp    %rbp,%rax
  jne    L186
L161:
  add    0x4(%rsp),%edi
  add    $0x8,%rcx
  cmp    %r9,%rcx
  je     L206
L71:
  test   %r10d,%r10d
  jns    L116
  jmp    L161
L206:
  imul   (%rsp),%esi
  add    0x10(%rsp),%esi
  mov    0x128(%rsp),%rdi
  mov    $0x0,%r9d
  mov    0x28(%rsp),%r11d
  mov    0xd0(%rsp),%rbp
  mov    %r15,0xe0(%rsp)
  mov    0xf0(%rsp),%r15
  mov    %r14d,0x10(%rsp)
  mov    0x38(%rsp),%r14
  jmp    L156
L199:
  lea    (%rsi,%rsi,2),%eax
  cltq
  lea    0x0(%rbp,%rax,8),%rcx
  lea    (%r9,%r9,2),%eax
  cltq
  lea    (%rbx,%rax,8),%rdx
  movslq %r9d,%rax
  lea    (%r15,%rax,4),%r10
  mov    $0x0,%eax
L162:
  lea    (%rsi,%rax,1),%r8d
  mov    %r8d,(%r10,%rax,4)
  movsd  (%rdi),%xmm0
  mulsd  (%r12,%rax,8),%xmm0
  divsd  %xmm1,%xmm0
  movapd %xmm0,%xmm2
  mulsd  (%rcx),%xmm2
  movsd  %xmm2,(%rdx)
  movapd %xmm0,%xmm2
  mulsd  0x8(%rcx),%xmm2
  movsd  %xmm2,0x8(%rdx)
  mulsd  0x10(%rcx),%xmm0
  movsd  %xmm0,0x10(%rdx)
  mov    %rax,%r8
  add    $0x1,%rax
  add    $0x18,%rcx
  add    $0x18,%rdx
  cmp    %r13,%r8
  jne    L162
  lea    0x1(%r9,%r11,1),%r9d
L176:
  add    (%rsp),%esi
  add    $0x8,%rdi
  cmp    %r14,%rdi
  je     L105
L156:
  test   %r11d,%r11d
  jns    L199
  jmp    L176
L105:
  mov    0xe0(%rsp),%r15
  mov    0x10(%rsp),%r14d
L177:
  mov    0x18(%rsp),%rax
  movsd  (%rax),%xmm2
  mov    0x20(%rsp),%rax
  movapd %xmm2,%xmm3
  mulsd  (%rax),%xmm3
  movapd %xmm2,%xmm4
  mulsd  0x8(%rax),%xmm4
  mulsd  0x10(%rax),%xmm2
  cmpl   $0x0,0x44(%rsp)
  jle    L122
  mov    %rbx,%r8
  mov    0xf0(%rsp),%r9
  mov    0x50(%rsp),%ebp
  mov    %r13,0x10(%rsp)
  mov    0xe8(%rsp),%r13
  mov    %r12,0x110(%rsp)
  mov    0x58(%rsp),%r12
  jmp    L201
L233:
  add    $0x4,%rdx
  add    $0x3,%eax
  cmp    %eax,%r14d
  je     L141
L198:
  mov    (%rdx),%edi
  mov    (%r11),%esi
  cmp    %esi,%edi
  jl     L233
  imul   %ebp,%esi
  add    %edi,%esi
  movslq %esi,%rsi
  lea    (%r15,%rsi,8),%rsi
  movslq %eax,%r10
  lea    0x0(,%r10,8),%rdi
  movsd  0x8(%rbx,%rdi,1),%xmm0
  mulsd  0x8(%rcx),%xmm0
  movsd  (%rbx,%r10,8),%xmm1
  mulsd  (%rcx),%xmm1
  addsd  %xmm1,%xmm0
  movsd  0x10(%rbx,%rdi,1),%xmm1
  mulsd  0x10(%rcx),%xmm1
  addsd  %xmm1,%xmm0
  addsd  (%rsi),%xmm0
  movsd  %xmm0,(%rsi)
  jmp    L233
L141:
  add    $0x4,%r9
  add    $0x18,%r8
  cmp    %r12,%r9
  je     L85
L201:
  mov    %r9,%r11
  movslq (%r9),%rax
  lea    0x0(%r13,%rax,8),%rax
  mov    %r8,%rcx
  movapd %xmm3,%xmm0
  mulsd  (%r8),%xmm0
  movapd %xmm4,%xmm1
  mulsd  0x8(%r8),%xmm1
  addsd  %xmm1,%xmm0
  movapd %xmm2,%xmm1
  mulsd  0x10(%r8),%xmm1
  addsd  %xmm1,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  mov    0xf0(%rsp),%rdx
  mov    $0x0,%eax
  jmp    L198
L85:
  mov    0x10(%rsp),%r13
  mov    0x110(%rsp),%r12
L122:
  addq   $0x10,0x8(%rsp)
  mov    0x8(%rsp),%rax
  addq   $0x8,0x18(%rsp)
  addq   $0x18,0x20(%rsp)
  cmp    0x48(%rsp),%rax
  je     L266
L66:
  mov    0x30(%rsp),%rdx
  mov    0x8(%rsp),%rbp
  movsd  0x0(%rbp),%xmm0
  mov    0x28(%rsp),%esi
  mov    (%rsp),%edi
  call   <FindSpan@plt>
  mov    0x108(%rsp),%r9
  mov    0x100(%rsp),%r8
  mov    %r12,%rcx
  mov    0x30(%rsp),%rdx
  mov    0x28(%rsp),%esi
  movsd  0x0(%rbp),%xmm0
  mov    %eax,0x10(%rsp)
  mov    %eax,%edi
  call   <BasisFuns@plt>
  mov    0x10(%rsp),%eax
  sub    0x28(%rsp),%eax
  mov    %eax,0x10(%rsp)
  movsd  0x8(%rbp),%xmm0
  mov    0xb0(%rsp),%rdx
  mov    0x2c(%rsp),%esi
  mov    0x54(%rsp),%edi
  call   <FindSpan@plt>
  movsd  0x8(%rbp),%xmm0
  mov    0x120(%rsp),%r9
  mov    0x118(%rsp),%r8
  mov    0x128(%rsp),%rcx
  mov    0xb0(%rsp),%rdx
  mov    0x2c(%rsp),%ebp
  mov    %ebp,%esi
  mov    %eax,0x40(%rsp)
  mov    %eax,%edi
  call   <BasisFuns@plt>
  mov    0x40(%rsp),%esi
  sub    %ebp,%esi
  mov    0x4(%rsp),%edx
  imul   %esi,%edx
  mov    0x10(%rsp),%edi
  lea    (%rdx,%rdi,4),%eax
  test   %ebp,%ebp
  js     L177
  mov    0x128(%rsp),%rcx
  mov    $0x0,%edi
  pxor   %xmm1,%xmm1
  cltq
  lea    0x3(%rax),%r8
  mov    0x68(%rsp),%rbp
  mov    0x38(%rsp),%r9
  mov    0x28(%rsp),%r10d
  mov    0x60(%rsp),%r11
  jmp    L71
L266:
  mov    0x50(%rsp),%ebx
  cmp    $0x1,%ebx
  jle    L78
  lea    0x8(%r15),%r10
  movslq %ebx,%rsi
  shl    $0x3,%rsi
  mov    %ebx,%r9d
  mov    $0x0,%r8d
  mov    $0x1,%edi
  mov    %r10,%r11
  jmp    L240
L46:
  movslq %r9d,%rdx
  lea    (%r15,%rdx,8),%rax
  add    %r8,%rdx
  lea    (%r11,%rdx,8),%rcx
  mov    %r10,%rdx
L150:
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    %rsi,%rdx
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L150
L172:
  add    $0x1,%edi
  add    $0x1,%r8
  add    $0x8,%r10
  add    %ebx,%r9d
  cmp    %edi,%ebx
  je     L78
L240:
  test   %edi,%edi
  jg     L46
  jmp    L172
L78:
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void computeLinGNmatPnt2Pnt(int degU, int degV, double *cp, int ncp, int kcp, double *knotU, double *knotV, double *us, int nus, double *dirOffset, double *cpDir, double *sgnDistDiff, double *HessApprx, double *gradIent, int *derivInds, double *derivVals, double *leftU, double *rightU, double *NU, double *leftV, double *rightV, double *NV) {
  int i, j, ii, twoii, threeii, spanU, spanV, ind, ind2, dind, fourncp, myint, numCP, orderU, orderV, nnz, cpInd;
  double bspnt[4], doubleVals[3];
  fourncp = 4 * ncp;
  orderU = degU + 1;
  orderV = degV + 1;
  nnz = orderU * orderV;
  numCP = ncp * kcp;
  for (ii = 0; ii < nus; ii++) {
    twoii = 2 * ii;
    threeii = 3 * ii;
    spanU = FindSpan(ncp, degU, us[twoii], knotU);
    BasisFuns(spanU, us[twoii], degU, knotU, NU, leftU, rightU);
    ind = spanU - degU;
    spanV = FindSpan(kcp, degV, us[twoii + 1], knotV);
    BasisFuns(spanV, us[twoii + 1], degV, knotV, NV, leftV, rightV);
    ind2 = spanV - degV;
    myint = ind2 * fourncp + ind * 4;
    bspnt[0] = 0.0;
    bspnt[1] = 0.0;
    bspnt[2] = 0.0;
    bspnt[3] = 0.0;
    for (i = 0; i <= degV; i++) {
      for (j = 0; j <= degU; j++) {
        bspnt[0] += NV[i] * NU[j] * cp[i * fourncp + j * 4 + myint];
        bspnt[1] += NV[i] * NU[j] * cp[i * fourncp + j * 4 + myint + 1];
        bspnt[2] += NV[i] * NU[j] * cp[i * fourncp + j * 4 + myint + 2];
        bspnt[3] += NV[i] * NU[j] * cp[i * fourncp + j * 4 + myint + 3];
      }
    }
    dind = 0;
    for (i = 0; i <= degV; i++) {
      for (j = 0; j <= degU; j++) {
        cpInd = (ind2 + i) * ncp + ind + j;
        derivInds[dind] = cpInd;
        cpInd = 3 * cpInd;
        doubleVals[0] = NV[i] * NU[j] / bspnt[3];
        derivVals[3 * dind] = doubleVals[0] * cpDir[cpInd];
        derivVals[3 * dind + 1] = doubleVals[0] * cpDir[cpInd + 1];
        derivVals[3 * dind + 2] = doubleVals[0] * cpDir[cpInd + 2];
        dind++;
      }
    }
    doubleVals[0] = sgnDistDiff[ii] * dirOffset[threeii];
    doubleVals[1] = sgnDistDiff[ii] * dirOffset[threeii + 1];
    doubleVals[2] = sgnDistDiff[ii] * dirOffset[threeii + 2];
    for (i = 0; i < nnz; i++) {
      gradIent[derivInds[i]] += doubleVals[0] * derivVals[3 * i] + doubleVals[1] * derivVals[3 * i + 1] + doubleVals[2] * derivVals[3 * i + 2];
      for (j = 0; j < nnz; j++) {
        if (derivInds[j] >= derivInds[i]) {
          HessApprx[derivInds[i] * numCP + derivInds[j]] += derivVals[3 * i] * derivVals[3 * j] + derivVals[3 * i + 1] * derivVals[3 * j + 1] + derivVals[3 * i + 2] * derivVals[3 * j + 2];
        }
      }
    }
  }
  for (i = 1; i < numCP; i++) {
    for (j = 0; j < i; j++) {
      HessApprx[i * numCP + j] = HessApprx[j * numCP + i];
    }
  }
  return;
}
```