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

```asm
<computeLinGNmatPnt2Pnt>:
  endbr64
  push   %r15
  mov    %ecx,%r11d
  push   %r14
  imul   %r8d,%r11d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %ecx,0x34(%rsp)
  shl    $0x2,%ecx
  mov    0xc0(%rsp),%eax
  mov    %rdx,0x60(%rsp)
  lea    0x1(%rsi),%edx
  mov    0xe0(%rsp),%r15
  mov    %ecx,0x30(%rsp)
  lea    0x1(%rdi),%ecx
  mov    0xf8(%rsp),%rbx
  imul   %edx,%ecx
  mov    %edi,0x10(%rsp)
  mov    0x110(%rsp),%rbp
  mov    %esi,0x14(%rsp)
  mov    %r8d,0x54(%rsp)
  mov    %r9,0x28(%rsp)
  mov    %ecx,0x44(%rsp)
  mov    %r11d,0x50(%rsp)
  test   %eax,%eax
  jle    L105
  mov    0xb8(%rsp),%rdi
  sub    $0x1,%eax
  mov    0x10(%rsp),%r12d
  shl    $0x4,%rax
  mov    0xd8(%rsp),%rcx
  lea    0x10(%rdi,%rax,1),%rax
  mov    %rdi,0x8(%rsp)
  lea    0x8(%rbp,%r12,8),%r14
  mov    0x128(%rsp),%rdi
  mov    %rax,0x48(%rsp)
  mov    0x14(%rsp),%eax
  mov    %rcx,0x20(%rsp)
  mov    0xc8(%rsp),%rcx
  lea    0x8(%rdi,%rax,8),%rax
  mov    0x44(%rsp),%edi
  mov    %r14,0x68(%rsp)
  mov    %rcx,0x18(%rsp)
  mov    0xf0(%rsp),%rcx
  mov    %rax,(%rsp)
  lea    -0x1(%rdi),%eax
  lea    (%rdi,%rdi,2),%r13d
  lea    0x4(%rcx,%rax,4),%rax
  mov    %rax,0x58(%rsp)
  nopl   (%rax)
L123:
  mov    0x8(%rsp),%r14
  mov    0x28(%rsp),%rdx
  mov    0x10(%rsp),%esi
  mov    0x34(%rsp),%edi
  movsd  (%r14),%xmm0
  call   <FindSpan@plt>
  mov    0x108(%rsp),%r9
  movsd  (%r14),%xmm0
  mov    %rbp,%rcx
  mov    0x28(%rsp),%rdx
  mov    0x10(%rsp),%esi
  mov    %eax,%edi
  mov    %eax,0x38(%rsp)
  mov    0x100(%rsp),%r8
  call   <BasisFuns@plt>
  movsd  0x8(%r14),%xmm0
  mov    0x14(%rsp),%esi
  mov    0xb0(%rsp),%rdx
  mov    0x54(%rsp),%edi
  mov    0x38(%rsp),%r10d
  sub    0x10(%rsp),%r10d
  mov    %r10d,0x40(%rsp)
  call   <FindSpan@plt>
  movsd  0x8(%r14),%xmm0
  mov    0x14(%rsp),%r14d
  mov    0x120(%rsp),%r9
  mov    %eax,%edi
  mov    %eax,0x38(%rsp)
  mov    0x118(%rsp),%r8
  mov    0x128(%rsp),%rcx
  mov    %r14d,%esi
  mov    0xb0(%rsp),%rdx
  call   <BasisFuns@plt>
  mov    0x38(%rsp),%edi
  mov    0x30(%rsp),%eax
  mov    0x40(%rsp),%r10d
  sub    %r14d,%edi
  imul   %edi,%eax
  lea    (%rax,%r10,4),%eax
  test   %r14d,%r14d
  js     L145
  mov    %r10d,0x38(%rsp)
  cltq
  mov    0x68(%rsp),%r14
  xor    %esi,%esi
  mov    %edi,0x40(%rsp)
  mov    0x30(%rsp),%r9d
  pxor   %xmm1,%xmm1
  lea    0x3(%rax),%r8
  mov    0x128(%rsp),%rcx
  mov    (%rsp),%rdi
  mov    0x10(%rsp),%r10d
  mov    0x60(%rsp),%r11
L3:
  test   %r10d,%r10d
  js     L137
  movslq %esi,%rax
  movsd  (%rcx),%xmm2
  add    %r8,%rax
  lea    (%r11,%rax,8),%rdx
  mov    %rbp,%rax
  cs nopw 0x0(%rax,%rax,1)
L48:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  add    $0x20,%rdx
  mulsd  %xmm2,%xmm0
  mulsd  -0x20(%rdx),%xmm0
  addsd  %xmm0,%xmm1
  cmp    %rax,%r14
  jne    L48
L137:
  add    $0x8,%rcx
  add    %r9d,%esi
  cmp    %rcx,%rdi
  jne    L3
  mov    0x34(%rsp),%eax
  mov    0x40(%rsp),%edi
  mov    %r15,0xe0(%rsp)
  mov    0x38(%rsp),%r10d
  mov    0x128(%rsp),%r8
  mov    %r13d,0x38(%rsp)
  imul   %eax,%edi
  mov    0x10(%rsp),%r11d
  mov    %eax,%r13d
  mov    0xd0(%rsp),%r14
  mov    0xf0(%rsp),%r15
  add    %r10d,%edi
  xor    %r10d,%r10d
  nopl   (%rax)
L2:
  test   %r11d,%r11d
  js     L118
  lea    (%rdi,%rdi,2),%eax
  cltq
  lea    (%r14,%rax,8),%rcx
  lea    (%r10,%r10,2),%eax
  cltq
  lea    (%rbx,%rax,8),%rdx
  movslq %r10d,%rax
  lea    (%r15,%rax,4),%r9
  xor    %eax,%eax
  nopl   0x0(%rax)
L112:
  movsd  (%r8),%xmm0
  movsd  (%rcx),%xmm2
  lea    (%rdi,%rax,1),%esi
  add    $0x18,%rcx
  mulsd  0x0(%rbp,%rax,8),%xmm0
  mov    %esi,(%r9,%rax,4)
  mov    %rax,%rsi
  add    $0x18,%rdx
  add    $0x1,%rax
  divsd  %xmm1,%xmm0
  mulsd  %xmm0,%xmm2
  movsd  %xmm2,-0x18(%rdx)
  movsd  -0x10(%rcx),%xmm2
  mulsd  %xmm0,%xmm2
  movsd  %xmm2,-0x10(%rdx)
  mulsd  -0x8(%rcx),%xmm0
  movsd  %xmm0,-0x8(%rdx)
  cmp    %rsi,%r12
  jne    L112
  lea    0x1(%r10,%r11,1),%r10d
L118:
  add    %r13d,%edi
  add    $0x8,%r8
  cmp    %r8,(%rsp)
  jne    L2
  mov    0xe0(%rsp),%r15
  mov    0x38(%rsp),%r13d
L145:
  mov    0x20(%rsp),%rax
  mov    0xf0(%rsp),%r11
  mov    %rbx,%rcx
  movsd  (%rax),%xmm2
  mov    0x18(%rsp),%rax
  movsd  (%rax),%xmm4
  movsd  0x8(%rax),%xmm3
  mulsd  %xmm2,%xmm4
  mulsd  %xmm2,%xmm3
  mulsd  0x10(%rax),%xmm2
  mov    0x44(%rsp),%eax
  test   %eax,%eax
  jle    L18
  mov    %r12,0x38(%rsp)
  mov    0xe8(%rsp),%r14
  mov    %rbp,0x110(%rsp)
  mov    0x58(%rsp),%r12
  mov    0x50(%rsp),%ebp
  nopl   0x0(%rax,%rax,1)
L87:
  movsd  (%rcx),%xmm0
  movsd  0x8(%rcx),%xmm1
  movslq (%r11),%rax
  mov    0xf0(%rsp),%rdx
  mulsd  %xmm3,%xmm1
  mulsd  %xmm4,%xmm0
  mov    %rax,%r9
  lea    (%r14,%rax,8),%rax
  mov    %r9d,%r10d
  imul   %ebp,%r10d
  addsd  %xmm1,%xmm0
  movsd  0x10(%rcx),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  xor    %eax,%eax
  nopl   (%rax)
L47:
  mov    (%rdx),%esi
  cmp    %esi,%r9d
  jg     L58
  movslq %eax,%r8
  add    %r10d,%esi
  lea    0x0(,%r8,8),%rdi
  movsd  (%rbx,%r8,8),%xmm1
  mulsd  (%rcx),%xmm1
  movslq %esi,%rsi
  movsd  0x8(%rbx,%rdi,1),%xmm0
  mulsd  0x8(%rcx),%xmm0
  lea    (%r15,%rsi,8),%rsi
  addsd  %xmm1,%xmm0
  movsd  0x10(%rbx,%rdi,1),%xmm1
  mulsd  0x10(%rcx),%xmm1
  addsd  %xmm1,%xmm0
  addsd  (%rsi),%xmm0
  movsd  %xmm0,(%rsi)
L58:
  add    $0x3,%eax
  add    $0x4,%rdx
  cmp    %eax,%r13d
  jne    L47
  add    $0x4,%r11
  add    $0x18,%rcx
  cmp    %r11,%r12
  jne    L87
  mov    0x38(%rsp),%r12
  mov    0x110(%rsp),%rbp
L18:
  addq   $0x10,0x8(%rsp)
  mov    0x8(%rsp),%rax
  addq   $0x8,0x20(%rsp)
  addq   $0x18,0x18(%rsp)
  cmp    0x48(%rsp),%rax
  jne    L123
L105:
  cmpl   $0x1,0x50(%rsp)
  jle    L60
  movslq 0x50(%rsp),%rax
  lea    0x8(%r15),%rdi
  mov    $0x1,%r8d
  lea    0x0(,%rax,8),%rsi
  mov    %rax,%r10
  lea    0x8(,%rax,8),%r9
  add    %rsi,%r15
  lea    (%rdi,%rsi,1),%rcx
  nopl   0x0(%rax,%rax,1)
L55:
  mov    %r15,%rax
  mov    %rdi,%rdx
  cs nopw 0x0(%rax,%rax,1)
L96:
  movsd  (%rdx),%xmm0
  add    $0x8,%rax
  add    %rsi,%rdx
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rcx
  jne    L96
  add    $0x1,%r8d
  add    $0x8,%rdi
  add    %rsi,%r15
  add    %r9,%rcx
  cmp    %r8d,%r10d
  jne    L55
L60:
  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;
}
```