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

```asm
<lsptopc>:
  endbr64
  push   %r15
  mov    $0x18,%edx
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x168,%rsp
  movdqu (%rdi),%xmm7
  mov    %rsi,0x18(%rsp)
  lea    0x70(%rsp),%rcx
  xor    %esi,%esi
  lea    0x90(%rsp),%r12
  lea    0xb0(%rsp),%rbx
  lea    0xd0(%rsp),%r14
  lea    0xf0(%rsp),%r13
  lea    0x110(%rsp),%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x158(%rsp)
  xor    %eax,%eax
  mov    0x20(%rdi),%rax
  mov    %rcx,0x10(%rsp)
  lea    0x30(%rsp),%r15
  movaps %xmm7,0x130(%rsp)
  movdqu 0x10(%rdi),%xmm7
  mov    %rcx,%rdi
  mov    %rax,0x150(%rsp)
  movaps %xmm7,0x140(%rsp)
  call   <memset@plt>
  mov    $0x18,%edx
  xor    %esi,%esi
  mov    %r12,%rdi
  call   <memset@plt>
  mov    $0x18,%edx
  xor    %esi,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    $0x18,%edx
  xor    %esi,%esi
  mov    %r14,%rdi
  call   <memset@plt>
  mov    $0x18,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  call   <memset@plt>
  mov    $0x18,%edx
  mov    %rbp,%rdi
  xor    %esi,%esi
  call   <memset@plt>
  lea    0x130(%rsp),%rax
  mov    0x18(%rsp),%r8
  xor    %edi,%edi
  mov    %rax,0x8(%rsp)
  mov    0x10(%rsp),%rcx
  lea    0x50(%rsp),%rdx
L54:
  mov    0x8(%rsp),%rax
  movss  D59(%rip),%xmm0
  mov    %rcx,0x28(%rsp)
  mov    %rdx,0x20(%rsp)
  mulss  (%rax,%rdi,2),%xmm0
  mov    %r8,0x18(%rsp)
  mov    %rdi,0x10(%rsp)
  call   <cos@plt>
  pxor   %xmm0,%xmm0
  mov    0x10(%rsp),%rdi
  cvtsi2ss %rax,%xmm0
  mulss  D27(%rip),%xmm0
  mov    0x8(%rsp),%rax
  movss  %xmm0,(%r15,%rdi,1)
  movss  D59(%rip),%xmm0
  mulss  0x4(%rax,%rdi,2),%xmm0
  call   <cos@plt>
  pxor   %xmm0,%xmm0
  mov    0x10(%rsp),%rdi
  mov    0x20(%rsp),%rdx
  cvtsi2ss %rax,%xmm0
  mov    0x18(%rsp),%r8
  mov    0x28(%rsp),%rcx
  mulss  D27(%rip),%xmm0
  movss  %xmm0,(%rdx,%rdi,1)
  add    $0x4,%rdi
  cmp    $0x14,%rdi
  jne    L54
  movss  D28(%rip),%xmm8
  pxor   %xmm6,%xmm6
  xor    %r10d,%r10d
  lea    0x74(%rsp),%r9
  movss  D51(%rip),%xmm7
  movaps %xmm6,%xmm2
  lea    0xd4(%rsp),%rdi
  movaps %xmm8,%xmm5
  nopl   0x0(%rax)
L26:
  movaps %xmm5,%xmm1
  movaps %xmm5,%xmm0
  xor    %eax,%eax
  addss  %xmm2,%xmm1
  subss  %xmm2,%xmm0
  movss  %xmm1,0x70(%rsp)
  movss  %xmm0,0xd0(%rsp)
L65:
  movss  (%r12,%rax,1),%xmm3
  movss  (%r15,%rax,1),%xmm2
  movss  (%rdx,%rax,1),%xmm4
  mulss  %xmm3,%xmm2
  addss  %xmm2,%xmm1
  movss  0x0(%r13,%rax,1),%xmm2
  addss  (%rbx,%rax,1),%xmm1
  movss  %xmm3,(%rbx,%rax,1)
  mulss  %xmm2,%xmm4
  movss  %xmm1,(%r9,%rax,1)
  movss  (%rcx,%rax,1),%xmm3
  movss  %xmm3,(%r12,%rax,1)
  addss  %xmm4,%xmm0
  addss  0x0(%rbp,%rax,1),%xmm0
  movss  %xmm2,0x0(%rbp,%rax,1)
  movss  %xmm0,(%rdi,%rax,1)
  movss  (%r14,%rax,1),%xmm2
  movss  %xmm2,0x0(%r13,%rax,1)
  add    $0x4,%rax
  cmp    $0x14,%rax
  jne    L65
  test   %r10,%r10
  je     L42
  movss  0x84(%rsp),%xmm0
  addss  0xe4(%rsp),%xmm0
  mulss  %xmm7,%xmm0
  movss  %xmm0,-0x4(%r8,%r10,4)
  cmp    $0xa,%r10
  je     L30
L42:
  movaps %xmm5,%xmm2
  add    $0x1,%r10
  movaps %xmm6,%xmm5
  jmp    L26
  nopl   0x0(%rax)
L30:
  lea    0x24(%r8),%rax
  movss  D29(%rip),%xmm1
  nopl   0x0(%rax)
L17:
  movss  (%rax),%xmm0
  mov    %rax,%rdx
  sub    $0x4,%rax
  xorps  %xmm1,%xmm0
  movss  %xmm0,0x8(%rax)
  cmp    %rdx,%r8
  jne    L17
  movss  %xmm8,(%r8)
  mov    0x158(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L38
  add    $0x168,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L38:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D59
datatype: byte[4]
name: unpack_data
arguments: tag: D27
datatype: byte[4]
name: unpack_data
arguments: tag: D28
datatype: byte[4]
name: unpack_data
arguments: tag: D51
datatype: byte[4]
name: unpack_data
arguments: tag: D29
datatype: byte[4]

tool: {"D59": [0xdb,0x0f,0xc9,0x40]}

tool: {"D27": [0x00,0x00,0x00,0xc0]}

tool: {"D28": [0x00,0x00,0x80,0x3f]}

tool: {"D51": [0x00,0x00,0x00,0xbf]}

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

assistant: ```c
void lsptopc(float *f, float *pc) {
  int i, j, k, lspflag;
  float freq[10], p[10 / 2], q[10 / 2];
  float a[10 / 2 + 1], a1[10 / 2 + 1], a2[10 / 2 + 1];
  float b[10 / 2 + 1], b1[10 / 2 + 1], b2[10 / 2 + 1];
  float xx, xf;
  lspflag = 0;
  for (i = 1; i < 10; i++) {
    if (f[i] <= f[i - 1])
      lspflag = 1;
  }
  for (j = 0; j < 10; j++)
    freq[j] = f[j];
  memset(a, 0, sizeof(a[0]) * (10 / 2 + 1));
  memset(a1, 0, sizeof(a[0]) * (10 / 2 + 1));
  memset(a2, 0, sizeof(a[0]) * (10 / 2 + 1));
  memset(b, 0, sizeof(a[0]) * (10 / 2 + 1));
  memset(b1, 0, sizeof(a[0]) * (10 / 2 + 1));
  memset(b2, 0, sizeof(a[0]) * (10 / 2 + 1));
  for (i = 0; i < (10 / 2); i++) {
    p[i] = -2.f * (float)cos(2.f * 3.14159265358979323846f * freq[2 * i]);
    q[i] = -2.f * (float)cos(2.f * 3.14159265358979323846f * freq[2 * i + 1]);
  }
  xf = 0.0f;
  for (k = 0; k < 10 + 1; k++) {
    xx = 0.0;
    if (k == 0)
      xx = 1.0f;
    a[0] = xx + xf;
    b[0] = xx - xf;
    xf = xx;
    for (i = 0; i < (10 / 2); i++) {
      a[i + 1] = a[i] + p[i] * a1[i] + a2[i];
      b[i + 1] = b[i] + q[i] * b1[i] + b2[i];
      a2[i] = a1[i];
      a1[i] = a[i];
      b2[i] = b1[i];
      b1[i] = b[i];
    }
    if (k != 0)
      pc[k - 1] = -.5f * (a[10 / 2] + b[10 / 2]);
  }
  for (i = 10 - 1; i >= 0; i--)
    pc[i + 1] = -pc[i];
  pc[0] = 1.0f;
}
```