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

```asm
<rbspline>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x1d000(%rsp),%r11
L61:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L61
  sub    $0x518,%rsp
  mov    %edx,0x14(%rsp)
  lea    (%rdi,%rsi,1),%ebx
  mov    %rcx,(%rsp)
  mov    %r8,0x18(%rsp)
  mov    %r9,0x20(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x1d508(%rsp)
  xor    %eax,%eax
  cmp    $0x270f,%ebx
  jg     L18
  mov    %edi,%r12d
  mov    %esi,%ebp
  test   %edi,%edi
  js     L70
  movslq %edi,%rax
  lea    0x9c80(%rsp),%r15
  xor    %esi,%esi
  lea    0x8(,%rax,8),%rdx
  mov    %r15,%rdi
  call   <memset@plt>
L70:
  lea    0x40(%rsp),%r14
  test   %ebx,%ebx
  js     L62
  lea    0x1(%rbx),%edx
  lea    0x40(%rsp),%r14
  xor    %esi,%esi
  movslq %edx,%rdx
  mov    %r14,%rdi
  shl    $0x2,%rdx
  call   <memset@plt>
L62:
  mov    %ebp,%esi
  mov    %r14,%rdx
  mov    %r12d,%edi
  call   <knot@plt>
  mov    0x14(%rsp),%esi
  movslq %ebx,%rax
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x40(%rsp,%rax,4),%xmm1
  mov    %rax,0x38(%rsp)
  pxor   %xmm0,%xmm0
  lea    -0x1(%rsi),%eax
  cvtsi2sd %eax,%xmm0
  movapd %xmm1,%xmm5
  divsd  %xmm0,%xmm5
  movsd  %xmm5,0x28(%rsp)
  test   %esi,%esi
  jle    L18
  lea    -0x1(%r12),%eax
  mov    $0x1,%r13d
  pxor   %xmm3,%xmm3
  xor    %r11d,%r11d
  lea    0x9c90(%rsp,%rax,8),%rbx
  mov    (%rsp),%rax
  lea    0x9c80(%rsp),%r15
  movapd %xmm3,%xmm2
  mov    %r15,%r8
  mov    %r13d,%r15d
  mov    %r11,%r13
  add    $0x8,%rax
  mov    %rax,0x30(%rsp)
  nopw   0x0(%rax,%rax,1)
L45:
  movapd %xmm1,%xmm0
  mov    0x18(%rsp),%rcx
  mov    %ebp,%edi
  mov    %r14,%rdx
  subsd  %xmm2,%xmm0
  mov    %r12d,%esi
  mov    %r8,0x8(%rsp)
  cmpnltsd D8(%rip),%xmm0
  andpd  %xmm0,%xmm2
  andnpd %xmm1,%xmm0
  orpd   %xmm0,%xmm2
  movapd %xmm2,%xmm0
  movsd  %xmm2,(%rsp)
  call   <rbasis@plt>
  mov    0x20(%rsp),%rax
  mov    0x30(%rsp),%r10
  mov    $0x1,%edi
  mov    0x8(%rsp),%r8
  movsd  (%rsp),%xmm2
  pxor   %xmm3,%xmm3
  lea    (%rax,%r13,8),%rcx
L36:
  movq   $0x0,0x8(%rcx)
  lea    0x9c88(%rsp),%rax
  mov    %r10,%rdx
  movapd %xmm3,%xmm1
  test   %r12d,%r12d
  jle    L63
  nopw   0x0(%rax,%rax,1)
L75:
  movsd  (%rax),%xmm0
  mulsd  (%rdx),%xmm0
  add    $0x8,%rax
  add    $0x18,%rdx
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rcx)
  cmp    %rax,%rbx
  jne    L75
L63:
  add    $0x1,%edi
  add    $0x8,%rcx
  add    $0x8,%r10
  cmp    $0x4,%edi
  jne    L36
  addsd  0x28(%rsp),%xmm2
  add    $0x1,%r15d
  add    $0x3,%r13
  cmp    %r15d,0x14(%rsp)
  jl     L18
  mov    0x38(%rsp),%rax
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x40(%rsp,%rax,4),%xmm1
  jmp    L45
L18:
  mov    0x1d508(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L67
  add    $0x1d518,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L67:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D8
type_infered: byte[8]

tool: {"D8": [0xf1,0x68,0xe3,0x88,0xb5,0xf8,0xd4,0x3e]}

assistant: ```c
void rbspline(int npts, int k, int p1, double b[], double h[], double p[]) {
  int i, j, icount, jcount;
  int i1;
  int x[10000];
  int nplusc;
  double step;
  double t;
  double nbasis[10000];
  double temp;
  nplusc = npts + k;
  if (nplusc < 10000) {
    for (i = 0; i <= npts; i++) {
      nbasis[i] = 0.;
    }
    for (i = 0; i <= nplusc; i++) {
      x[i] = 0.;
    }
    knot(npts, k, x);
    icount = 0;
    t = 0;
    step = ((double)x[nplusc]) / ((double)(p1 - 1));
    for (i1 = 1; i1 <= p1; i1++) {
      if ((double)x[nplusc] - t < 5e-6) {
        t = (double)x[nplusc];
      }
      rbasis(k, t, npts, x, h, nbasis);
      for (j = 1; j <= 3; j++) {
        jcount = j;
        p[icount + j] = 0.;
        for (i = 1; i <= npts; i++) {
          temp = nbasis[i] * b[jcount];
          p[icount + j] = p[icount + j] + temp;
          jcount = jcount + 3;
        }
      }
      icount = icount + 3;
      t = t + step;
    }
  }
}
```