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

```asm
<setresamp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x470,%rsp
  mov    %rdi,-0x448(%rbp)
  movss  %xmm0,-0x44c(%rbp)
  movss  %xmm1,-0x450(%rbp)
  movss  %xmm2,-0x454(%rbp)
  mov    %esi,-0x458(%rbp)
  mov    %edx,-0x45c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x3,-0x430(%rbp)
  movl   $0x100,-0x42c(%rbp)
  mov    -0x42c(%rbp),%edx
  lea    -0x410(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <blackman@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x430(%rbp),%xmm0
  mulss  -0x450(%rbp),%xmm0
  divss  -0x44c(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,-0x428(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x430(%rbp),%xmm0
  mulss  -0x454(%rbp),%xmm0
  divss  -0x44c(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,-0x420(%rbp)
  movsd  -0x428(%rbp),%xmm0
  addsd  -0x420(%rbp),%xmm0
  movsd  %xmm0,-0x418(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x438(%rbp)
  cmpl   $0x0,-0x45c(%rbp)
  je     L20
  mov    -0x448(%rbp),%rax
  movw   $0x400,(%rax)
  movl   $0x1,-0x434(%rbp)
  jmp    L27
L38:
  mov    -0x434(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x448(%rbp),%rax
  add    %rdx,%rax
  movw   $0x0,(%rax)
  addl   $0x1,-0x434(%rbp)
L27:
  cmpl   $0xff,-0x434(%rbp)
  jle    L38
  movss  D21(%rip),%xmm0
  movss  %xmm0,-0x438(%rbp)
  jmp    L4
L20:
  movl   $0x0,-0x434(%rbp)
  jmp    L41
L14:
  mov    -0x434(%rbp),%eax
  cltq
  movss  -0x410(%rbp,%rax,4),%xmm1
  movss  D11(%rip),%xmm0
  mulss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x430(%rbp),%xmm0
  divsd  -0x418(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,-0x468(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x434(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  D33(%rip),%xmm1
  subsd  %xmm1,%xmm0
  mulsd  -0x418(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x468(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x430(%rbp),%xmm2
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x434(%rbp),%xmm1
  cvtss2sd %xmm1,%xmm1
  movsd  D33(%rip),%xmm3
  subsd  %xmm3,%xmm1
  mulsd  %xmm1,%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  D22(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x434(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x458(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x448(%rbp),%rax
  add    %rdx,%rax
  cvttsd2si %xmm0,%edx
  mov    %dx,(%rax)
  mov    -0x434(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x458(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x448(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  cwtl
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x438(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x438(%rbp)
  addl   $0x1,-0x434(%rbp)
L41:
  cmpl   $0x7f,-0x434(%rbp)
  jle    L14
  movss  -0x438(%rbp),%xmm0
  addss  %xmm0,%xmm0
  movss  D27(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x438(%rbp)
L4:
  movss  -0x438(%rbp),%xmm0
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L13
  call   <__stack_chk_fail@plt>
L13:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D21
type: f32
name: parse_data
arguments: data_label: D11
type: byte[4]
name: parse_data
arguments: data_label: D33
type: f64
name: parse_data
arguments: data_label: D22
type: byte[8]
name: parse_data
arguments: data_label: D27
type: byte[4]

tool: D21: 0.3125

tool: {"D11": [0x00,0xe0,0xff,0x44]}

tool: D33: 127.5

tool: {"D22": [0x39,0xee,0x94,0x0e,0xd6,0xff,0xdf,0x3f]}

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

assistant: ```c
float setresamp(short *resampcoeffs, float freq_in, float Fpass, float Fstop, int filtnum, int bypass) {
  int pi = 3.14159265359;
  int length = 256;
  float window[256];
  float resampgain;
  double wp, ws, wc;
  int n;
  blackman(window, length);
  wp = pi * (float)Fpass / (float)freq_in;
  ws = pi * (float)Fstop / (float)freq_in;
  wc = (wp + ws);
  resampgain = 0;
  if (bypass) {
    resampcoeffs[0] = 1024;
    for (n = 1; n < 256; n++) {
      resampcoeffs[n] = 0;
    }
    resampgain = 0.3125;
  } else {
    for (n = 0; n < 128; n++) {
      resampcoeffs[2 * n + filtnum] = (short)(2047 * window[n] * (pi / wc) * sin(wc * ((float)n - 127.5)) / (pi * ((float)n - 127.5)) + .49999);
      resampgain = resampgain + resampcoeffs[2 * n + filtnum];
    }
    resampgain = 2 * resampgain / 32768;
  }
  return resampgain;
}
```