user: Demonstrate the C code that generates the assembly output below:

```asm
<setresamp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x250,%rsp
  mov    %rdi,-0x238(%rbp)
  movss  %xmm0,-0x23c(%rbp)
  movss  %xmm1,-0x240(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x3,-0x224(%rbp)
  movl   $0x80,-0x220(%rbp)
  mov    -0x220(%rbp),%edx
  lea    -0x210(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <blackman@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x224(%rbp),%xmm0
  mulss  -0x240(%rbp),%xmm0
  divss  -0x23c(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,-0x218(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x22c(%rbp)
  movl   $0x0,-0x228(%rbp)
  jmp    L2
L54:
  mov    -0x228(%rbp),%eax
  cltq
  movss  -0x210(%rbp,%rax,4),%xmm1
  movss  D65(%rip),%xmm0
  mulss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x224(%rbp),%xmm0
  divsd  -0x218(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,-0x248(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x228(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  D55(%rip),%xmm1
  subsd  %xmm1,%xmm0
  mulsd  -0x218(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x248(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x224(%rbp),%xmm2
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x228(%rbp),%xmm1
  cvtss2sd %xmm1,%xmm1
  movsd  D55(%rip),%xmm3
  subsd  %xmm3,%xmm1
  mulsd  %xmm1,%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  D57(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x228(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  cvttsd2si %xmm0,%edx
  mov    %dx,(%rax)
  mov    -0x228(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  cwtl
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x22c(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x22c(%rbp)
  addl   $0x1,-0x228(%rbp)
L2:
  cmpl   $0x3f,-0x228(%rbp)
  jle    L54
  movss  -0x22c(%rbp),%xmm0
  addss  %xmm0,%xmm0
  movss  D84(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x22c(%rbp)
  movss  -0x22c(%rbp),%xmm0
  movss  D21(%rip),%xmm1
  comiss %xmm1,%xmm0
  jbe    L51
  movss  -0x22c(%rbp),%xmm0
  movss  %xmm0,-0x21c(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x22c(%rbp)
  movl   $0x0,-0x228(%rbp)
  jmp    L52
L26:
  movss  D21(%rip),%xmm0
  movaps %xmm0,%xmm1
  divss  -0x21c(%rbp),%xmm1
  mov    -0x228(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  cwtl
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  mulss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D25(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x228(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  cvttsd2si %xmm0,%edx
  mov    %dx,(%rax)
  mov    -0x228(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  cwtl
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x22c(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x22c(%rbp)
  addl   $0x1,-0x228(%rbp)
L52:
  cmpl   $0x3f,-0x228(%rbp)
  jle    L26
  movss  -0x22c(%rbp),%xmm0
  addss  %xmm0,%xmm0
  movss  %xmm0,-0x22c(%rbp)
  movss  -0x22c(%rbp),%xmm0
  movss  D84(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x22c(%rbp)
L51:
  movss  -0x22c(%rbp),%xmm0
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L48
  call   <__stack_chk_fail@plt>
L48:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D65
type_infered: byte[4]
name: disassemble_data
arguments: data_tag: D55
type_infered: f64
name: disassemble_data
arguments: data_tag: D57
type_infered: byte[8]
name: disassemble_data
arguments: data_tag: D84
type_infered: byte[4]
name: disassemble_data
arguments: data_tag: D21
type_infered: byte[4]
name: disassemble_data
arguments: data_tag: D25
type_infered: f64

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

tool: D55: 63.5

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

tool: {"D84": [0x00,0x00,0x80,0x45]}

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

tool: D25: 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;
}
```