user: Translate the below assembly code into C programming language:

```asm
<lfr_filter_calculate_f32>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %edx,-0x50(%rbp)
  movsd  %xmm0,-0x58(%rbp)
  movsd  %xmm1,-0x60(%rbp)
  movsd  %xmm2,-0x68(%rbp)
  movsd  -0x60(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x68(%rbp),%rax
  movq   %rax,%xmm0
  call   <bessel_i0@plt>
  movapd %xmm0,%xmm1
  movsd  -0x70(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x60(%rbp),%xmm1
  movsd  D15(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movl   $0x0,-0x38(%rbp)
  jmp    L42
L61:
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x38(%rbp),%xmm0
  mulsd  -0x58(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L21
L14:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x34(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x4c(%rbp),%eax
  sub    $0x2,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D22(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  -0x10(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  D8(%rip),%xmm0
  comisd -0x8(%rbp),%xmm0
  jae    L3
  movsd  -0x8(%rbp),%xmm0
  movsd  D24(%rip),%xmm1
  comisd %xmm1,%xmm0
  jb     L39
L3:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  jmp    L68
L39:
  movsd  -0x8(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D24(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm3
  mulsd  -0x68(%rbp),%xmm3
  movq   %xmm3,%rax
  movq   %rax,%xmm0
  call   <bessel_i0@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm4
  mulsd  -0x28(%rbp),%xmm4
  movsd  %xmm4,-0x70(%rbp)
  movsd  -0x20(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sinc@plt>
  mulsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
L68:
  mov    -0x38(%rbp),%eax
  imul   -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsd2ss -0x30(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x34(%rbp)
L21:
  mov    -0x34(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L14
  addl   $0x1,-0x38(%rbp)
L42:
  mov    -0x38(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L61
  nop
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D15
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D22
type_infered: f64
name: retrieve_data
arguments: data_tag: D8
type_infered: f32[2]
name: retrieve_data
arguments: data_tag: D24
type_infered: f64

tool: {"D15": [0x18,0x2d,0x44,0x54,0xfb,0x21,0x19,0x40]}

tool: D22: 2

tool: {"D8": [0.0,-1.875]}

tool: D24: 1

assistant: ```c
void lfr_filter_calculate_f32(float *data, int nsamp, int nfilt, double offset, double cutoff, double beta) {
  double x, x0, t, y, xscale, yscale;
  int i, j;
  yscale = 2.0 * cutoff / bessel_i0(beta);
  xscale = (8.0 * atan(1.0)) * cutoff;
  for (i = 0; i < nfilt; ++i) {
    x0 = (nsamp - 1) / 2 + offset * i;
    for (j = 0; j < nsamp; ++j) {
      x = j - x0;
      t = x * (2.0 / (nsamp - 2));
      if (t <= -1.0 || t >= 1.0) {
        y = 0.0;
      } else {
        y = yscale * bessel_i0(beta * sqrt(1.0 - t * t)) * sinc(xscale * x);
      }
      data[i * nsamp + j] = (float)y;
    }
  }
}
```