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

```asm
<wwghts>:
  endbr64
  push   %r15
  pxor   %xmm5,%xmm5
  push   %r14
  cvtss2sd %xmm0,%xmm5
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0xc8,%rsp
  movsd  D69(%rip),%xmm3
  mov    %rdx,0x20(%rsp)
  divsd  %xmm5,%xmm3
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  movsd  %xmm5,0x18(%rsp)
  test   %esi,%esi
  jle    L99
  mov    %rdx,%r15
  lea    0x4(%rdi),%r14
  movslq %esi,%rdx
  xor    %esi,%esi
  shl    $0x2,%rdx
  mov    %r14,%rdi
  lea    0x30(%rsp),%rbp
  movsd  %xmm3,(%rsp)
  call   <memset@plt>
  mov    $0x4,%esi
  pxor   %xmm0,%xmm0
  mov    %rbp,%rdi
  call   *%r15
  cmp    $0x3,%ebx
  movsd  (%rsp),%xmm3
  jle    L34
  lea    -0x2(%rbx),%eax
  pxor   %xmm5,%xmm5
  mov    $0x1,%r15d
  mov    %eax,0x2c(%rsp)
  lea    -0x3(%rbx),%eax
  lea    0x60(%rsp),%r13
  sub    $0x1,%ebx
  mov    %eax,0x28(%rsp)
  lea    0x90(%rsp),%r12
  nopl   0x0(%rax,%rax,1)
L57:
  lea    -0x1(%r15),%esi
  pxor   %xmm6,%xmm6
  addsd  0x18(%rsp),%xmm5
  cvtsi2sd %esi,%xmm6
  cmp    0x28(%rsp),%r15d
  je     L100
L94:
  mov    0x20(%rsp),%rax
  movsd  %xmm3,0x10(%rsp)
  movapd %xmm5,%xmm0
  mov    %r13,%rdi
  movsd  %xmm6,0x8(%rsp)
  mov    $0x4,%esi
  movsd  %xmm5,(%rsp)
  call   *%rax
  mov    D69(%rip),%rax
  movsd  0x10(%rsp),%xmm3
  mov    $0x8,%esi
  movsd  0x8(%rsp),%xmm6
  movsd  (%rsp),%xmm5
  movq   %rax,%xmm1
  mov    D104(%rip),%rax
  movq   %rax,%xmm4
  mov    D102(%rip),%rax
  movq   %rax,%xmm2
L73:
  movsd  0x0(%r13,%rsi,1),%xmm0
  subsd  0x0(%rbp,%rsi,1),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm1
  movsd  %xmm0,(%r12,%rsi,1)
  add    $0x8,%rsi
  cmp    $0x28,%rsi
  jne    L73
  movapd %xmm6,%xmm11
  movapd %xmm6,%xmm1
  movsd  D69(%rip),%xmm9
  movsd  D135(%rip),%xmm13
  addsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  add    $0x1,%r15d
  add    $0x4,%r14
  addsd  %xmm6,%xmm9
  addsd  %xmm6,%xmm13
  mulsd  %xmm2,%xmm11
  movsd  D147(%rip),%xmm14
  movsd  0x98(%rsp),%xmm12
  cvtss2sd -0x4(%r14),%xmm0
  movsd  0xa0(%rsp),%xmm15
  movsd  0xa8(%rsp),%xmm10
  movsd  0xb0(%rsp),%xmm8
  movapd %xmm9,%xmm7
  mulsd  %xmm13,%xmm7
  addsd  %xmm11,%xmm14
  mulsd  %xmm6,%xmm14
  addsd  D5(%rip),%xmm14
  mulsd  %xmm1,%xmm7
  mulsd  %xmm15,%xmm14
  mulsd  %xmm12,%xmm7
  subsd  %xmm14,%xmm7
  movapd %xmm13,%xmm14
  mulsd  %xmm2,%xmm14
  mulsd  %xmm10,%xmm14
  addsd  %xmm14,%xmm7
  movsd  D141(%rip),%xmm14
  addsd  %xmm11,%xmm14
  subsd  %xmm8,%xmm7
  mulsd  %xmm6,%xmm14
  divsd  %xmm4,%xmm7
  addsd  %xmm4,%xmm14
  mulsd  %xmm15,%xmm14
  addsd  %xmm0,%xmm7
  pxor   %xmm0,%xmm0
  cvtss2sd (%r14),%xmm0
  cvtsd2ss %xmm7,%xmm7
  movss  %xmm7,-0x4(%r14)
  movapd %xmm6,%xmm7
  xorpd  D152(%rip),%xmm7
  mulsd  %xmm13,%xmm7
  mulsd  %xmm1,%xmm7
  mulsd  %xmm12,%xmm7
  addsd  %xmm14,%xmm7
  movsd  D145(%rip),%xmm14
  addsd  %xmm11,%xmm14
  mulsd  %xmm10,%xmm14
  subsd  %xmm14,%xmm7
  movsd  D32(%rip),%xmm14
  addsd  %xmm11,%xmm14
  addsd  %xmm8,%xmm7
  mulsd  D105(%rip),%xmm7
  mulsd  %xmm6,%xmm14
  addsd  %xmm0,%xmm7
  pxor   %xmm0,%xmm0
  cvtss2sd 0x4(%r14),%xmm0
  addsd  %xmm2,%xmm14
  cvtsd2ss %xmm7,%xmm7
  movss  %xmm7,(%r14)
  movapd %xmm9,%xmm7
  mulsd  %xmm6,%xmm7
  mulsd  %xmm15,%xmm14
  mulsd  %xmm2,%xmm9
  mulsd  %xmm7,%xmm1
  xorpd  D152(%rip),%xmm7
  mulsd  %xmm13,%xmm7
  mulsd  %xmm10,%xmm9
  mulsd  %xmm12,%xmm1
  mulsd  %xmm12,%xmm7
  subsd  %xmm14,%xmm1
  movsd  D39(%rip),%xmm14
  addsd  %xmm11,%xmm14
  mulsd  %xmm10,%xmm14
  addsd  %xmm14,%xmm1
  subsd  %xmm8,%xmm1
  mulsd  D105(%rip),%xmm1
  addsd  %xmm0,%xmm1
  movsd  D135(%rip),%xmm0
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,0x4(%r14)
  movapd %xmm11,%xmm1
  addsd  %xmm4,%xmm1
  mulsd  %xmm6,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd 0x8(%r14),%xmm1
  mulsd  %xmm15,%xmm0
  addsd  %xmm7,%xmm0
  subsd  %xmm9,%xmm0
  addsd  %xmm8,%xmm0
  divsd  %xmm4,%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x8(%r14)
  movsd  0x68(%rsp),%xmm0
  movsd  %xmm0,0x38(%rsp)
  movsd  0x70(%rsp),%xmm0
  movsd  %xmm0,0x40(%rsp)
  movsd  0x78(%rsp),%xmm0
  movsd  %xmm0,0x48(%rsp)
  movsd  0x80(%rsp),%xmm0
  movsd  %xmm0,0x50(%rsp)
  cmp    0x2c(%rsp),%r15d
  jne    L57
L43:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L48
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L100:
  pxor   %xmm5,%xmm5
  cvtsi2sd %ebx,%xmm5
  mulsd  0x18(%rsp),%xmm5
  jmp    L94
L99:
  movsd  %xmm3,(%rsp)
  mov    0x20(%rsp),%rax
  lea    0x30(%rsp),%rdi
  mov    $0x4,%esi
  pxor   %xmm0,%xmm0
  call   *%rax
  movsd  (%rsp),%xmm3
L34:
  cmp    $0x3,%ebx
  je     L9
  cmp    $0x2,%ebx
  jne    L43
  movsd  0x18(%rsp),%xmm0
  movsd  %xmm3,(%rsp)
  mov    0x20(%rsp),%rax
  lea    0x60(%rsp),%rdi
  mov    $0x2,%esi
  call   *%rax
  movsd  0x68(%rsp),%xmm0
  movsd  (%rsp),%xmm3
  movapd %xmm0,%xmm1
  movsd  0x70(%rsp),%xmm0
  subsd  0x40(%rsp),%xmm0
  subsd  0x38(%rsp),%xmm1
  mulsd  %xmm3,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x8(%r12)
  cvtss2sd %xmm0,%xmm0
  subsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,0x4(%r12)
  jmp    L43
L9:
  movsd  0x18(%rsp),%xmm0
  movsd  %xmm3,(%rsp)
  mov    0x20(%rsp),%rax
  lea    0x60(%rsp),%rdi
  mov    $0x3,%esi
  addsd  %xmm0,%xmm0
  call   *%rax
  movsd  0x70(%rsp),%xmm1
  subsd  0x40(%rsp),%xmm1
  movsd  (%rsp),%xmm3
  movsd  0x78(%rsp),%xmm0
  movsd  D95(%rip),%xmm2
  subsd  0x48(%rsp),%xmm0
  mulsd  %xmm3,%xmm1
  mulsd  %xmm3,%xmm3
  mulsd  %xmm1,%xmm2
  mulsd  %xmm0,%xmm3
  movsd  0x68(%rsp),%xmm0
  subsd  0x38(%rsp),%xmm0
  subsd  %xmm2,%xmm0
  movsd  D105(%rip),%xmm2
  movapd %xmm3,%xmm4
  mulsd  %xmm2,%xmm4
  addsd  %xmm4,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x4(%r12)
  movapd %xmm1,%xmm0
  addsd  %xmm1,%xmm0
  subsd  %xmm3,%xmm0
  subsd  %xmm1,%xmm3
  mulsd  %xmm2,%xmm3
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x8(%r12)
  cvtsd2ss %xmm3,%xmm3
  movss  %xmm3,0xc(%r12)
  jmp    L43
L48:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D69
data_type: f64
name: read_data
arguments: data_label: D104
data_type: f64
name: read_data
arguments: data_label: D102
data_type: f64
name: read_data
arguments: data_label: D135
data_type: f64
name: read_data
arguments: data_label: D147
data_type: f64
name: read_data
arguments: data_label: D5
data_type: f64
name: read_data
arguments: data_label: D141
data_type: f64
name: read_data
arguments: data_label: D152
data_type: f32[4]
name: read_data
arguments: data_label: D145
data_type: f64
name: read_data
arguments: data_label: D32
data_type: f64
name: read_data
arguments: data_label: D105
data_type: f64
name: read_data
arguments: data_label: D39
data_type: f64
name: read_data
arguments: data_label: D95
data_type: f64

tool: D69: 1

tool: D104: 6

tool: D102: 3

tool: D135: 2

tool: D147: 12

tool: D5: 11

tool: D141: 10

tool: {"D152": [0.0,-0.0,0.0,0.0]}

tool: D145: 5

tool: D32: 8

tool: D105: 0.5

tool: D39: 4

tool: D95: 1.5

assistant: ```c
void wwghts(float wghts[], int n, float h, void (*kermom)(double[], double, int)) {
  int j, k;
  double wold[5], wnew[5], w[5], hh, hi, c, fac, a, b;
  hh = h;
  hi = 1.0 / hh;
  for (j = 1; j <= n; j++)
    wghts[j] = 0.0;
  (*kermom)(wold, 0.0, 4);
  if (n >= 4) {
    b = 0.0;
    for (j = 1; j <= n - 3; j++) {
      c = j - 1;
      a = b;
      b = a + hh;
      if (j == n - 3)
        b = (n - 1) * hh;
      (*kermom)(wnew, b, 4);
      for (fac = 1.0, k = 1; k <= 4; k++, fac *= hi)
        w[k] = (wnew[k] - wold[k]) * fac;
      wghts[j] += (((c + 1.0) * (c + 2.0) * (c + 3.0) * w[1] - (11.0 + c * (12.0 + c * 3.0)) * w[2] + 3.0 * (c + 2.0) * w[3] - w[4]) / 6.0);
      wghts[j + 1] += ((-c * (c + 2.0) * (c + 3.0) * w[1] + (6.0 + c * (10.0 + c * 3.0)) * w[2] - (3.0 * c + 5.0) * w[3] + w[4]) * 0.5);
      wghts[j + 2] += ((c * (c + 1.0) * (c + 3.0) * w[1] - (3.0 + c * (8.0 + c * 3.0)) * w[2] + (3.0 * c + 4.0) * w[3] - w[4]) * 0.5);
      wghts[j + 3] += ((-c * (c + 1.0) * (c + 2.0) * w[1] + (2.0 + c * (6.0 + c * 3.0)) * w[2] - 3.0 * (c + 1.0) * w[3] + w[4]) / 6.0);
      for (k = 1; k <= 4; k++)
        wold[k] = wnew[k];
    }
  } else if (n == 3) {
    (*kermom)(wnew, hh + hh, 3);
    w[1] = wnew[1] - wold[1];
    w[2] = hi * (wnew[2] - wold[2]);
    w[3] = hi * hi * (wnew[3] - wold[3]);
    wghts[1] = w[1] - 1.5 * w[2] + 0.5 * w[3];
    wghts[2] = 2.0 * w[2] - w[3];
    wghts[3] = 0.5 * (w[3] - w[2]);
  } else if (n == 2) {
    (*kermom)(wnew, hh, 2);
    wghts[1] = wnew[1] - wold[1] - (wghts[2] = hi * (wnew[2] - wold[2]));
  }
}
```