user: Converte this assembly snippet into its equivalent C code:

```asm
<add_signal_vector>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  movss  %xmm0,-0x44(%rbp)
  movss  %xmm1,-0x48(%rbp)
  movss  %xmm2,-0x4c(%rbp)
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  D19(%rip),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  D9(%rip),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  D29(%rip),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x48(%rbp),%xmm0
  divsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x30(%rbp)
  movl   $0x0,-0x38(%rbp)
  jmp    L34
L30:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x44(%rbp),%xmm1
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D26(%rip),%xmm2
  subsd  %xmm2,%xmm0
  mulsd  -0x18(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x20(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L7
L16:
  mov    -0x38(%rbp),%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%eax
  add    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movsd  %xmm3,-0x70(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movd   %xmm0,%eax
  movd   %eax,%xmm0
  mulss  -0x4c(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  addsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm4
  movsd  %xmm4,-0x70(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movd   %xmm0,%eax
  movd   %eax,%xmm0
  mulss  -0x4c(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  addsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  movsd  -0x28(%rbp),%xmm0
  addsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  addl   $0x1,-0x34(%rbp)
L7:
  cmpl   $0xff,-0x34(%rbp)
  jle    L16
  addl   $0x1,-0x38(%rbp)
L34:
  cmpl   $0xa1,-0x38(%rbp)
  jle    L30
  mov    $0x1,%eax
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D19
type_infered: byte[8]
name: parse_data
arguments: data_label: D9
type_infered: f32[2]
name: parse_data
arguments: data_label: D29
type_infered: byte[8]
name: parse_data
arguments: data_label: D26
type_infered: f64

tool: {"D19": [0x2c,0xa1,0x07,0xcf,0x43,0x28,0x91,0x3f]}

tool: {"D9": [0.0,1.93310546875]}

tool: {"D29": [0xa5,0xe2,0xec,0xc3,0x67,0xd8,0x65,0x3f]}

tool: D26: 1.5

assistant: ```c
int add_signal_vector(float f0, float t0, float amp, unsigned char *symbols, double *isig, double *qsig) {
  int i, j, ii, idelay;
  double phi = 0.0, twopidt, df, dt, dphi;
  twopidt = 8.0 * atan(1.0) / 375.0;
  df = 375.0 / 256.0;
  dt = 1 / 375.0;
  idelay = t0 / dt;
  for (i = 0; i < 162; i++) {
    dphi = twopidt * (f0 + ((double)symbols[i] - 1.5) * df);
    for (j = 0; j < 256; j++) {
      ii = idelay + 256 * i + j;
      isig[ii] = isig[ii] + amp * cos(phi);
      qsig[ii] = qsig[ii] + amp * sin(phi);
      phi = phi + dphi;
    }
  }
  return 1;
}
```