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

```asm
<oneBspEval2>:
  endbr64
  push   %r15
  movslq %edi,%r11
  movslq %esi,%r15
  lea    0x0(,%rcx,4),%r10d
  push   %r14
  mov    %r15,%r14
  shl    $0x3,%r15
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %r8d,%ebp
  push   %rbx
  sub    $0x28,%rsp
  movsd  (%r9,%r11,8),%xmm1
  mov    0x68(%rsp),%rax
  mov    0x70(%rsp),%rbx
  movsd  (%rax),%xmm0
  mov    0x60(%rsp),%rax
  add    %r15,%rax
  comisd %xmm0,%xmm1
  jb     L205
  mov    0x68(%rsp),%rdi
  movsd  (%rax),%xmm1
  movsd  0x8(%rdi),%xmm0
  comisd %xmm0,%xmm1
  jb     L191
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rbx)
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rbx)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rbx)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rbx)
L0:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L205:
  mov    %ecx,%edi
  movslq %ecx,%rcx
  mov    %r9,%rdx
  comisd (%r9,%rcx,8),%xmm0
  jb     L35
  mov    0x68(%rsp),%rdi
  movsd  (%rax),%xmm1
  movslq %r10d,%rax
  movsd  0x8(%rdi),%xmm0
  comisd %xmm0,%xmm1
  jae    L13
  mov    0x60(%rsp),%rdi
  movslq %r8d,%rax
  comisd (%rdi,%rax,8),%xmm0
  jb     L12
  imul   %r10d,%ebp
  movslq %ebp,%rax
L13:
  shl    $0x3,%rax
  movsd  -0x20(%r12,%rax,1),%xmm0
  movsd  %xmm0,(%rbx)
  movsd  -0x18(%r12,%rax,1),%xmm0
  movsd  %xmm0,0x8(%rbx)
  movsd  -0x10(%r12,%rax,1),%xmm0
  movsd  %xmm0,0x10(%rbx)
  movsd  -0x8(%r12,%rax,1),%xmm0
  movsd  %xmm0,0x18(%rbx)
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L35:
  mov    0x68(%rsp),%rsi
  pxor   %xmm0,%xmm0
  mov    %r11,%r13
  movups %xmm0,(%rbx)
  movups %xmm0,0x10(%rbx)
  movsd  0x8(%rsi),%xmm0
  movsd  (%rax),%xmm1
  comisd %xmm0,%xmm1
  jae    L150
  movsd  (%rsi),%xmm1
  mov    0x60(%rsp),%rsi
  movslq %r8d,%rax
  mov    %r11,0x18(%rsp)
  mov    %r10d,0x10(%rsp)
  comisd (%rsi,%rax,8),%xmm0
  mov    %r9,0x8(%rsp)
  movapd %xmm1,%xmm0
  mov    %r11d,%esi
  jb     L100
  call   <FindSpan@plt>
  mov    0x78(%rsp),%r8
  mov    %r13d,%esi
  sub    $0x1,%ebp
  mov    %eax,%r14d
  mov    0x68(%rsp),%rax
  mov    0x8(%rsp),%rdx
  mov    0x88(%rsp),%rcx
  mov    0x80(%rsp),%r9
  mov    %r14d,%edi
  sub    %r13d,%r14d
  movsd  (%rax),%xmm0
  call   <BasisFuns@plt>
  mov    0x10(%rsp),%r10d
  imul   %r10d,%ebp
  lea    0x0(%rbp,%r14,4),%ecx
  test   %r13d,%r13d
  js     L0
  mov    0x18(%rsp),%r11
  movslq %ecx,%rcx
  movsd  (%rbx),%xmm4
  lea    (%r12,%rcx,8),%rax
  movsd  0x8(%rbx),%xmm3
  movsd  0x10(%rbx),%xmm2
  lea    (%rcx,%r11,4),%rcx
  movsd  0x18(%rbx),%xmm1
  mov    0x88(%rsp),%rdx
  lea    0x20(%r12,%rcx,8),%rcx
  xchg   %ax,%ax
L188:
  movsd  (%rdx),%xmm0
  mulsd  (%rax),%xmm0
  add    $0x20,%rax
  add    $0x8,%rdx
  addsd  %xmm0,%xmm4
  movsd  %xmm4,(%rbx)
  movsd  -0x8(%rdx),%xmm0
  mulsd  -0x18(%rax),%xmm0
  addsd  %xmm0,%xmm3
  movsd  %xmm3,0x8(%rbx)
  movsd  -0x8(%rdx),%xmm0
  mulsd  -0x10(%rax),%xmm0
  addsd  %xmm0,%xmm2
  movsd  %xmm2,0x10(%rbx)
  movsd  -0x8(%rdx),%xmm0
  mulsd  -0x8(%rax),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rbx)
  cmp    %rax,%rcx
  jne    L188
  jmp    L0
  nopl   0x0(%rax,%rax,1)
L191:
  mov    0x60(%rsp),%rdi
  movslq %r8d,%rax
  comisd (%rdi,%rax,8),%xmm0
  jb     L121
  sub    $0x1,%ebp
  imul   %r10d,%ebp
  movslq %ebp,%rax
  movsd  (%r12,%rax,8),%xmm0
  lea    0x0(,%rax,8),%rdx
  movsd  %xmm0,(%rbx)
  movsd  0x8(%r12,%rdx,1),%xmm0
  movsd  %xmm0,0x8(%rbx)
  movsd  0x10(%r12,%rdx,1),%xmm0
  movsd  %xmm0,0x10(%rbx)
  movsd  0x18(%r12,%rdx,1),%xmm0
  movsd  %xmm0,0x18(%rbx)
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L150:
  movsd  (%rsi),%xmm0
  mov    %r11d,%esi
  mov    %r11,0x10(%rsp)
  mov    %r9,0x8(%rsp)
  call   <FindSpan@plt>
  mov    0x80(%rsp),%r9
  mov    0x78(%rsp),%r8
  mov    %r13d,%esi
  mov    %eax,%ebp
  mov    0x68(%rsp),%rax
  mov    0x88(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  mov    %ebp,%edi
  sub    %r13d,%ebp
  movsd  (%rax),%xmm0
  call   <BasisFuns@plt>
  test   %r13d,%r13d
  js     L0
  lea    0x0(,%rbp,4),%eax
  mov    0x10(%rsp),%r11
  movsd  (%rbx),%xmm4
  cltq
  movsd  0x8(%rbx),%xmm3
  movsd  0x10(%rbx),%xmm2
  lea    (%r12,%rax,8),%rdx
  movslq %ebp,%rax
  movsd  0x18(%rbx),%xmm1
  mov    0x88(%rsp),%rcx
  add    %r11,%rax
  shl    $0x5,%rax
  lea    0x20(%r12,%rax,1),%rax
  nopl   (%rax)
L222:
  movsd  (%rcx),%xmm0
  mulsd  (%rdx),%xmm0
  add    $0x20,%rdx
  add    $0x8,%rcx
  addsd  %xmm0,%xmm4
  movsd  %xmm4,(%rbx)
  movsd  -0x8(%rcx),%xmm0
  mulsd  -0x18(%rdx),%xmm0
  addsd  %xmm0,%xmm3
  movsd  %xmm3,0x8(%rbx)
  movsd  -0x8(%rcx),%xmm0
  mulsd  -0x10(%rdx),%xmm0
  addsd  %xmm0,%xmm2
  movsd  %xmm2,0x10(%rbx)
  movsd  -0x8(%rcx),%xmm0
  mulsd  -0x8(%rdx),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rbx)
  cmp    %rdx,%rax
  jne    L222
  jmp    L0
  nopl   0x0(%rax,%rax,1)
L121:
  mov    0x68(%rsp),%rax
  pxor   %xmm0,%xmm0
  mov    %rdi,%rdx
  mov    %r14d,%esi
  movups %xmm0,(%rbx)
  mov    %r8d,%edi
  movups %xmm0,0x10(%rbx)
  movsd  0x8(%rax),%xmm0
  mov    %r10d,0x8(%rsp)
  call   <FindSpan@plt>
  mov    0x98(%rsp),%r9
  mov    0x60(%rsp),%rdx
  mov    %r14d,%esi
  mov    %eax,%ebp
  mov    0x68(%rsp),%rax
  mov    0x90(%rsp),%r8
  mov    0xa0(%rsp),%rcx
  mov    %ebp,%edi
  sub    %r14d,%ebp
  movsd  0x8(%rax),%xmm0
  call   <BasisFuns@plt>
  test   %r14d,%r14d
  js     L0
  movslq 0x8(%rsp),%rcx
  mov    0xa0(%rsp),%rdx
  movsd  (%rbx),%xmm4
  movsd  0x8(%rbx),%xmm3
  mov    %rcx,%r10
  movsd  0x10(%rbx),%xmm2
  movsd  0x18(%rbx),%xmm1
  shl    $0x3,%rcx
  imul   %r10d,%ebp
  lea    0x8(%rdx,%r15,1),%rsi
  movslq %ebp,%rax
  lea    (%r12,%rax,8),%rax
  cs nopw 0x0(%rax,%rax,1)
L57:
  movsd  (%rdx),%xmm0
  mulsd  (%rax),%xmm0
  add    $0x8,%rdx
  addsd  %xmm0,%xmm4
  movsd  %xmm4,(%rbx)
  movsd  -0x8(%rdx),%xmm0
  mulsd  0x8(%rax),%xmm0
  addsd  %xmm0,%xmm3
  movsd  %xmm3,0x8(%rbx)
  movsd  -0x8(%rdx),%xmm0
  mulsd  0x10(%rax),%xmm0
  addsd  %xmm0,%xmm2
  movsd  %xmm2,0x10(%rbx)
  movsd  -0x8(%rdx),%xmm0
  mulsd  0x18(%rax),%xmm0
  add    %rcx,%rax
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rbx)
  cmp    %rsi,%rdx
  jne    L57
  jmp    L0
  nopw   0x0(%rax,%rax,1)
L100:
  call   <FindSpan@plt>
  mov    0x68(%rsp),%rdi
  mov    %r13d,%esi
  mov    0x80(%rsp),%r9
  mov    0x78(%rsp),%r8
  mov    0x88(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  movsd  (%rdi),%xmm0
  mov    %eax,%edi
  mov    %eax,0x8(%rsp)
  call   <BasisFuns@plt>
  mov    0x68(%rsp),%rsi
  mov    0x60(%rsp),%rdx
  mov    %ebp,%edi
  movsd  0x8(%rsi),%xmm0
  mov    %r14d,%esi
  call   <FindSpan@plt>
  mov    0x68(%rsp),%rsi
  mov    0x98(%rsp),%r9
  mov    0x90(%rsp),%r8
  mov    0xa0(%rsp),%rcx
  mov    %eax,%edi
  mov    %eax,%ebp
  movsd  0x8(%rsi),%xmm0
  mov    0x60(%rsp),%rdx
  mov    %r14d,%esi
  sub    %r14d,%ebp
  call   <BasisFuns@plt>
  mov    0x10(%rsp),%r10d
  mov    0x8(%rsp),%eax
  imul   %r10d,%ebp
  sub    %r13d,%eax
  lea    0x0(%rbp,%rax,4),%eax
  test   %r14d,%r14d
  js     L0
  test   %r13d,%r13d
  js     L0
  cltq
  mov    0xa0(%rsp),%rcx
  mov    0x18(%rsp),%r11
  movslq %r10d,%rdi
  lea    (%r12,%rax,8),%r8
  mov    0x88(%rsp),%rax
  shl    $0x3,%rdi
  lea    0x8(%rcx,%r15,1),%r9
  lea    0x8(%rax,%r11,8),%rsi
  nopw   0x0(%rax,%rax,1)
L132:
  movsd  (%rbx),%xmm4
  movsd  0x8(%rbx),%xmm3
  mov    %r8,%rax
  movsd  0x10(%rbx),%xmm2
  movsd  0x18(%rbx),%xmm1
  mov    0x88(%rsp),%rdx
  xchg   %ax,%ax
L214:
  movsd  (%rcx),%xmm0
  mulsd  (%rdx),%xmm0
  add    $0x8,%rdx
  add    $0x20,%rax
  movsd  -0x20(%rax),%xmm5
  mulsd  %xmm0,%xmm5
  addsd  %xmm5,%xmm4
  movsd  %xmm4,(%rbx)
  movsd  -0x18(%rax),%xmm5
  mulsd  %xmm0,%xmm5
  addsd  %xmm5,%xmm3
  movsd  %xmm3,0x8(%rbx)
  movsd  -0x10(%rax),%xmm5
  mulsd  %xmm0,%xmm5
  addsd  %xmm5,%xmm2
  movsd  %xmm2,0x10(%rbx)
  mulsd  -0x8(%rax),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rbx)
  cmp    %rdx,%rsi
  jne    L214
  add    $0x8,%rcx
  add    %rdi,%r8
  cmp    %rcx,%r9
  jne    L132
  jmp    L0
L12:
  mov    0x68(%rsp),%rax
  pxor   %xmm0,%xmm0
  mov    %rdi,%rdx
  mov    %r14d,%esi
  movups %xmm0,(%rbx)
  mov    %r8d,%edi
  movups %xmm0,0x10(%rbx)
  movsd  0x8(%rax),%xmm0
  mov    %r10d,0x8(%rsp)
  call   <FindSpan@plt>
  mov    0x60(%rsp),%rdx
  mov    %r14d,%esi
  mov    0x98(%rsp),%r9
  mov    %eax,%ebp
  mov    0x68(%rsp),%rax
  mov    0x90(%rsp),%r8
  mov    0xa0(%rsp),%rcx
  mov    %ebp,%edi
  sub    %r14d,%ebp
  movsd  0x8(%rax),%xmm0
  call   <BasisFuns@plt>
  mov    0x8(%rsp),%r10d
  lea    0x1(%rbp),%edx
  imul   %r10d,%edx
  test   %r14d,%r14d
  js     L0
  movslq %r10d,%rcx
  movslq %edx,%rdx
  movsd  (%rbx),%xmm4
  movsd  0x8(%rbx),%xmm3
  mov    0xa0(%rsp),%rax
  movsd  0x10(%rbx),%xmm2
  shl    $0x3,%rcx
  lea    (%r12,%rdx,8),%rdx
  movsd  0x18(%rbx),%xmm1
  lea    0x8(%rax,%r15,1),%rsi
  xchg   %ax,%ax
L249:
  movsd  (%rax),%xmm0
  mulsd  -0x20(%rdx),%xmm0
  add    $0x8,%rax
  addsd  %xmm0,%xmm4
  movsd  %xmm4,(%rbx)
  movsd  -0x8(%rax),%xmm0
  mulsd  -0x18(%rdx),%xmm0
  addsd  %xmm0,%xmm3
  movsd  %xmm3,0x8(%rbx)
  movsd  -0x8(%rax),%xmm0
  mulsd  -0x10(%rdx),%xmm0
  addsd  %xmm0,%xmm2
  movsd  %xmm2,0x10(%rbx)
  movsd  -0x8(%rax),%xmm0
  mulsd  -0x8(%rdx),%xmm0
  add    %rcx,%rdx
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rbx)
  cmp    %rax,%rsi
  jne    L249
  jmp    L0
```

assistant: ```c
void oneBspEval2(int degU, int degV, double *cp, int ncp, int kcp, double *knotU, double *knotV, double *us, double *ep, double *leftU, double *rightU, double *NU, double *leftV, double *rightV, double *NV) {
  int i, j, spanU, spanV, ind, ind2, fourncp, myint;
  double NN;
  fourncp = 4 * ncp;
  if (us[0] <= knotU[degU]) {
    if (us[1] <= knotV[degV]) {
      ep[0] = cp[0];
      ep[1] = cp[1];
      ep[2] = cp[2];
      ep[3] = cp[3];
    } else if (us[1] >= knotV[kcp]) {
      myint = fourncp * (kcp - 1);
      ep[0] = cp[myint];
      ep[1] = cp[myint + 1];
      ep[2] = cp[myint + 2];
      ep[3] = cp[myint + 3];
    } else {
      ep[0] = 0.0;
      ep[1] = 0.0;
      ep[2] = 0.0;
      ep[3] = 0.0;
      spanV = FindSpan(kcp, degV, us[1], knotV);
      BasisFuns(spanV, us[1], degV, knotV, NV, leftV, rightV);
      ind = spanV - degV;
      for (i = 0; i <= degV; i++) {
        ep[0] += NV[i] * cp[(ind + i) * fourncp];
        ep[1] += NV[i] * cp[(ind + i) * fourncp + 1];
        ep[2] += NV[i] * cp[(ind + i) * fourncp + 2];
        ep[3] += NV[i] * cp[(ind + i) * fourncp + 3];
      }
    }
  } else if (us[0] >= knotU[ncp]) {
    if (us[1] <= knotV[degV]) {
      ep[0] = cp[fourncp - 4];
      ep[1] = cp[fourncp - 3];
      ep[2] = cp[fourncp - 2];
      ep[3] = cp[fourncp - 1];
    } else if (us[1] >= knotV[kcp]) {
      myint = fourncp * kcp;
      ep[0] = cp[myint - 4];
      ep[1] = cp[myint - 3];
      ep[2] = cp[myint - 2];
      ep[3] = cp[myint - 1];
    } else {
      ep[0] = 0.0;
      ep[1] = 0.0;
      ep[2] = 0.0;
      ep[3] = 0.0;
      spanV = FindSpan(kcp, degV, us[1], knotV);
      BasisFuns(spanV, us[1], degV, knotV, NV, leftV, rightV);
      ind = spanV - degV;
      myint = (ind + 1) * fourncp;
      for (i = 0; i <= degV; i++) {
        ep[0] += NV[i] * cp[i * fourncp + myint - 4];
        ep[1] += NV[i] * cp[i * fourncp + myint - 3];
        ep[2] += NV[i] * cp[i * fourncp + myint - 2];
        ep[3] += NV[i] * cp[i * fourncp + myint - 1];
      }
    }
  } else {
    ep[0] = 0.0;
    ep[1] = 0.0;
    ep[2] = 0.0;
    ep[3] = 0.0;
    if (us[1] <= knotV[degV]) {
      spanU = FindSpan(ncp, degU, us[0], knotU);
      BasisFuns(spanU, us[0], degU, knotU, NU, leftU, rightU);
      ind = spanU - degU;
      for (i = 0; i <= degU; i++) {
        ep[0] += NU[i] * cp[(ind + i) * 4];
        ep[1] += NU[i] * cp[(ind + i) * 4 + 1];
        ep[2] += NU[i] * cp[(ind + i) * 4 + 2];
        ep[3] += NU[i] * cp[(ind + i) * 4 + 3];
      }
    } else if (us[1] >= knotV[kcp]) {
      spanU = FindSpan(ncp, degU, us[0], knotU);
      BasisFuns(spanU, us[0], degU, knotU, NU, leftU, rightU);
      ind = spanU - degU;
      myint = ind * 4 + (kcp - 1) * fourncp;
      for (i = 0; i <= degU; i++) {
        ep[0] += NU[i] * cp[i * 4 + myint];
        ep[1] += NU[i] * cp[i * 4 + myint + 1];
        ep[2] += NU[i] * cp[i * 4 + myint + 2];
        ep[3] += NU[i] * cp[i * 4 + myint + 3];
      }
    } else {
      spanU = FindSpan(ncp, degU, us[0], knotU);
      BasisFuns(spanU, us[0], degU, knotU, NU, leftU, rightU);
      spanV = FindSpan(kcp, degV, us[1], knotV);
      BasisFuns(spanV, us[1], degV, knotV, NV, leftV, rightV);
      ind = spanU - degU;
      ind2 = spanV - degV;
      myint = ind2 * fourncp + ind * 4;
      for (i = 0; i <= degV; i++) {
        for (j = 0; j <= degU; j++) {
          NN = NV[i] * NU[j];
          ep[0] += NN * cp[i * fourncp + j * 4 + myint];
          ep[1] += NN * cp[i * fourncp + j * 4 + myint + 1];
          ep[2] += NN * cp[i * fourncp + j * 4 + myint + 2];
          ep[3] += NN * cp[i * fourncp + j * 4 + myint + 3];
        }
      }
    }
  }
}
```