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

```asm
<firGen>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %edi,-0x54(%rbp)
  mov    %esi,-0x58(%rbp)
  movsd  %xmm0,-0x60(%rbp)
  movsd  %xmm1,-0x68(%rbp)
  mov    %edx,-0x6c(%rbp)
  mov    %rcx,-0x78(%rbp)
  movsd  %xmm2,-0x80(%rbp)
  movsd  D16(%rip),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x54(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L178
  mov    -0x54(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  add    $0x1,%eax
  mov    %eax,-0x48(%rbp)
  movl   $0x1,-0x44(%rbp)
  jmp    L157
L178:
  mov    -0x54(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x48(%rbp)
  movl   $0x0,-0x44(%rbp)
L157:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x54(%rbp),%xmm0
  movsd  D18(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x38(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movsd  -0x60(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  cmpl   $0x2,-0x58(%rbp)
  jle    L76
  movsd  -0x38(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movsd  -0x68(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
L76:
  cmpl   $0x4,-0x58(%rbp)
  je     L18
  cmpl   $0x4,-0x58(%rbp)
  jg     L288
  cmpl   $0x3,-0x58(%rbp)
  je     L175
  cmpl   $0x3,-0x58(%rbp)
  jg     L288
  cmpl   $0x1,-0x58(%rbp)
  je     L45
  cmpl   $0x2,-0x58(%rbp)
  je     L200
  jmp    L288
L45:
  movl   $0x0,-0x4c(%rbp)
  jmp    L50
L101:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4c(%rbp),%xmm0
  subsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x28(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  divsd  -0x18(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  movsd  -0x38(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  movq   %rax,%xmm4
  divsd  %xmm0,%xmm4
  movsd  %xmm4,-0x88(%rbp)
  mov    -0x54(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    -0x80(%rbp),%rcx
  mov    -0x4c(%rbp),%edx
  mov    -0x6c(%rbp),%eax
  movq   %rcx,%xmm0
  mov    %eax,%edi
  call   <window@plt>
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mulsd  -0x88(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x54(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x4c(%rbp)
L50:
  mov    -0x4c(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jle    L101
  cmpl   $0x1,-0x44(%rbp)
  jne    L41
  mov    -0x54(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x28(%rbp),%xmm0
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L41
L200:
  movl   $0x0,-0x4c(%rbp)
  jmp    L20
L185:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4c(%rbp),%xmm0
  subsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x38(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rbx
  movsd  -0x28(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  divsd  -0x18(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  -0x20(%rbp),%xmm1
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm7
  movsd  %xmm7,-0x88(%rbp)
  mov    -0x54(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    -0x80(%rbp),%rcx
  mov    -0x4c(%rbp),%edx
  mov    -0x6c(%rbp),%eax
  movq   %rcx,%xmm0
  mov    %eax,%edi
  call   <window@plt>
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mulsd  -0x88(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x54(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x4c(%rbp)
L20:
  mov    -0x4c(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jle    L185
  cmpl   $0x1,-0x44(%rbp)
  jne    L195
  movsd  -0x28(%rbp),%xmm0
  movapd %xmm0,%xmm1
  divsd  -0x38(%rbp),%xmm1
  mov    -0x54(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  D10(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L195
L175:
  movl   $0x0,-0x4c(%rbp)
  jmp    L96
L228:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4c(%rbp),%xmm0
  subsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x40(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  divsd  -0x18(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rbx
  movsd  -0x28(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  divsd  -0x18(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  -0x20(%rbp),%xmm1
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  movsd  %xmm2,-0x88(%rbp)
  mov    -0x54(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    -0x80(%rbp),%rcx
  mov    -0x4c(%rbp),%edx
  mov    -0x6c(%rbp),%eax
  movq   %rcx,%xmm0
  mov    %eax,%edi
  call   <window@plt>
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mulsd  -0x88(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x54(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x4c(%rbp)
L96:
  mov    -0x4c(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L228
  cmpl   $0x1,-0x44(%rbp)
  jne    L251
  movsd  -0x40(%rbp),%xmm0
  subsd  -0x28(%rbp),%xmm0
  mov    -0x54(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L251
L18:
  movl   $0x0,-0x4c(%rbp)
  jmp    L110
L206:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4c(%rbp),%xmm0
  subsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x28(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  divsd  -0x18(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  %xmm0,-0x88(%rbp)
  movsd  -0x38(%rbp),%xmm0
  movapd %xmm0,%xmm5
  mulsd  -0x20(%rbp),%xmm5
  movq   %xmm5,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movapd %xmm0,%xmm3
  addsd  -0x88(%rbp),%xmm3
  movsd  %xmm3,-0x88(%rbp)
  movsd  -0x40(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm6
  divsd  -0x18(%rbp),%xmm6
  movq   %xmm6,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movapd %xmm0,%xmm1
  movsd  -0x88(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  -0x20(%rbp),%xmm1
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movsd  %xmm3,-0x88(%rbp)
  mov    -0x54(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    -0x80(%rbp),%rcx
  mov    -0x4c(%rbp),%edx
  mov    -0x6c(%rbp),%eax
  movq   %rcx,%xmm0
  mov    %eax,%edi
  call   <window@plt>
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mulsd  -0x88(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x54(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x4c(%rbp)
L110:
  mov    -0x4c(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jle    L206
  cmpl   $0x1,-0x44(%rbp)
  jne    L86
  movsd  -0x28(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  subsd  -0x40(%rbp),%xmm0
  mov    -0x54(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L86
L41:
  nop
  jmp    L288
L195:
  nop
  jmp    L288
L251:
  nop
  jmp    L288
L86:
  nop
L288:
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D16
type: byte[8]
name: extract_symbolic_data
arguments: data_label: D18
type: f64
name: extract_symbolic_data
arguments: data_label: D10
type: f64

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

tool: D18: 2

tool: D10: 1

assistant: ```c
void firGen(int n, int band, double fln, double fhn, int wn, double *h, double beta) {
  int i, n2, mid;
  double s, pi, wc1, wc2, delay, fs;
  pi = 4.0 * atan(1.0);
  if ((n % 2) == 0) {
    n2 = n / 2 + 1;
    mid = 1;
  } else {
    n2 = n / 2;
    mid = 0;
  }
  delay = n / 2.0;
  wc1 = 2.0 * pi * fln;
  if (band >= 3)
    wc2 = 2.0 * pi * fhn;
  switch (band) {
  case 1:
    for (i = 0; i <= n2; i++) {
      s = i - delay;
      h[i] = (sin(wc1 * s / fs) / (pi * s)) * window(wn, n + 1, i, beta);
      h[n - i] = h[i];
    }
    if (mid == 1)
      h[n / 2] = wc1 / pi;
    break;
  case 2:
    for (i = 0; i <= n2; i++) {
      s = i - delay;
      h[i] = (sin(pi * s) - sin(wc1 * s / fs)) / (pi * s);
      h[i] = h[i] * window(wn, n + 1, i, beta);
      h[n - i] = h[i];
    }
    if (mid == 1)
      h[n / 2] = 1.0 - wc1 / pi;
    break;
  case 3:
    for (i = 0; i < n2; i++) {
      s = i - delay;
      h[i] = (sin(wc2 * s / fs) - sin(wc1 * s / fs)) / (pi * s);
      h[i] = h[i] * window(wn, n + 1, i, beta);
      h[n - i] = h[i];
    }
    if (mid == 1)
      h[n / 2] = (wc2 - wc1) / pi;
    break;
  case 4:
    for (i = 0; i <= n2; i++) {
      s = i - delay;
      h[i] = (sin(wc1 * s / fs) + sin(pi * s) - sin(wc2 * s / fs)) / (pi * s);
      h[i] = h[i] * window(wn, n + 1, i, beta);
      h[n - i] = h[i];
    }
    if (mid == 1)
      h[n / 2] = (wc1 + pi - wc2) / pi;
    break;
  }
}
```