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

```asm
<lsp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8,-0x38(%rbp)
  mov    %r9d,-0x3c(%rbp)
  movss  %xmm0,-0x40(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L64
L71:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  D14(%rip),%xmm0
  movsd  %xmm0,(%rax)
  movl   $0x0,-0x8(%rbp)
  jmp    L55
L48:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x4(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x10(%rbp),%xmm1
  movsd  D14(%rip),%xmm0
  divsd  %xmm1,%xmm0
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movq   D7(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x8(%rbp)
L55:
  mov    -0x8(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jl     L48
  addl   $0x1,-0x10(%rbp)
L64:
  mov    -0x10(%rbp),%eax
  cmp    0x18(%rbp),%eax
  jl     L71
  movl   $0x0,-0x10(%rbp)
  jmp    L4
L43:
  mov    -0x10(%rbp),%edx
  mov    0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  D14(%rip),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x10(%rbp)
L4:
  mov    -0x10(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L43
  movl   $0x0,-0xc(%rbp)
  jmp    L47
L2:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x40(%rbp),%xmm0
  mov    -0xc(%rbp),%edx
  mov    0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x40(%rbp),%xmm0
  mov    -0xc(%rbp),%edx
  mov    0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x8,%rax
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0xc(%rbp)
L47:
  mov    -0xc(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L2
  nop
  nop
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_label: D14
datatype: f64
name: parse_data
arguments: data_label: D7
datatype: byte[8]

tool: D14: 1

tool: {"D7": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

assistant: ```c
extern void lsp(double **neighbors, double **A, double **b, int *sample_indices, double **sample_proj, int nc, int n_neighbors, int instances, float weight) {
  int i = 0;
  int j = 0;
  for (i = 0; i < instances; i++) {
    A[i][i] = 1.0;
    for (int j = 0; j < n_neighbors; j++) {
      int value = neighbors[i][j];
      A[i][value] = (-(1.0 / n_neighbors));
    }
  }
  for (i = 0; i < nc; i++) {
    A[i + instances][sample_indices[i]] = 1.0;
  }
  for (j = 0; j < nc; j++) {
    b[j + instances][0] = sample_proj[j][0] * weight;
    b[j + instances][1] = sample_proj[j][1] * weight;
  }
}
```