user: 这段汇编代码用C语言表示是什么样的：

```asm
<setresamp>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x248,%rsp
  mov    %rdi,%rbp
  movss  %xmm0,0xc(%rsp)
  movss  %xmm1,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x238(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rdi
  mov    $0x80,%esi
  call   <blackman@plt>
  movss  0x10(%rsp),%xmm2
  mulss  D50(%rip),%xmm2
  movaps %xmm2,%xmm0
  divss  0xc(%rsp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movsd  %xmm2,0x28(%rsp)
  movsd  D101(%rip),%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,0x20(%rsp)
  mov    $0x0,%ebx
  pxor   %xmm2,%xmm2
  movss  %xmm2,0xc(%rsp)
L30:
  movss  D45(%rip),%xmm0
  mulss  0x30(%rsp,%rbx,4),%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  0x20(%rsp),%xmm0
  movsd  %xmm0,0x10(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2ss %ebx,%xmm0
  cvtss2sd %xmm0,%xmm0
  subsd  D4(%rip),%xmm0
  movsd  %xmm0,0x18(%rsp)
  mulsd  0x28(%rsp),%xmm0
  call   <sin@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x10(%rsp),%xmm0
  movsd  D101(%rip),%xmm1
  mulsd  0x18(%rsp),%xmm1
  divsd  %xmm1,%xmm0
  addsd  D77(%rip),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %ax,0x0(%rbp,%rbx,2)
  cwtl
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  addss  0xc(%rsp),%xmm0
  movss  %xmm0,0xc(%rsp)
  add    $0x1,%rbx
  cmp    $0x40,%rbx
  jne    L30
  addss  %xmm0,%xmm0
  mulss  D48(%rip),%xmm0
  comiss D81(%rip),%xmm0
  jbe    L28
  movss  D81(%rip),%xmm2
  divss  %xmm0,%xmm2
  mov    %rbp,%rax
  sub    $0xffffffffffffff80,%rbp
  pxor   %xmm0,%xmm0
  movsd  D69(%rip),%xmm3
L31:
  movswl (%rax),%edx
  pxor   %xmm1,%xmm1
  cvtsi2ss %edx,%xmm1
  mulss  %xmm2,%xmm1
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm3,%xmm1
  cvttsd2si %xmm1,%edx
  mov    %dx,(%rax)
  movswl %dx,%edx
  pxor   %xmm1,%xmm1
  cvtsi2ss %edx,%xmm1
  addss  %xmm1,%xmm0
  add    $0x2,%rax
  cmp    %rbp,%rax
  jne    L31
  addss  %xmm0,%xmm0
  mulss  D48(%rip),%xmm0
L28:
  mov    0x238(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L36
  add    $0x248,%rsp
  pop    %rbx
  pop    %rbp
  ret
L36:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D50
type_guessed: byte[4]
name: extract_symbolic_data
arguments: label: D101
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D45
type_guessed: byte[4]
name: extract_symbolic_data
arguments: label: D4
type_guessed: f64
name: extract_symbolic_data
arguments: label: D77
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D48
type_guessed: byte[4]
name: extract_symbolic_data
arguments: label: D81
type_guessed: byte[4]
name: extract_symbolic_data
arguments: label: D69
type_guessed: f64

tool: {"D50": [0x00,0x00,0x40,0x40]}

tool: {"D101": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

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

tool: D4: 63.5

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

tool: {"D48": [0x00,0x00,0x80,0x39]}

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

tool: D69: 0.499999

assistant: ```c
float setresamp(short *resampcoeffs, float freq_in, float BW) {
  int pi = 3.14159265359;
  int length = 128;
  float window[128];
  float resampgain;
  float gaintemp;
  double wp, ws, wc;
  int n;
  blackman(window, length);
  wc = pi * (float)BW / (float)freq_in;
  resampgain = 0;
  for (n = 0; n < 64; n++) {
    resampcoeffs[n] = (short)(2047 * window[n] * (pi / wc) * sin(wc * ((float)n - 63.5)) / (pi * ((float)n - 63.5)) + .49999);
    resampgain = resampgain + resampcoeffs[n];
  }
  resampgain = 2 * resampgain / 4096;
  if (resampgain > 1) {
    gaintemp = resampgain;
    resampgain = 0;
    for (n = 0; n < 64; n++) {
      resampcoeffs[n] = (short)((1 / gaintemp) * (float)resampcoeffs[n] + 0.499999);
      resampgain = resampgain + resampcoeffs[n];
    }
    resampgain = 2 * resampgain;
    resampgain = resampgain / 4096;
  }
  return resampgain;
}
```