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

```asm
<dt_iop_equalizer_wtf>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  sub    $0xb0,%rsp
  mov    %rdi,-0x98(%rbp)
  mov    %rsi,-0xa0(%rbp)
  mov    %edx,-0xa4(%rbp)
  mov    %ecx,-0xa8(%rbp)
  mov    %r8d,-0xac(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    -0xa8(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  add    $0x1,%eax
  mov    %eax,-0x58(%rbp)
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    -0xac(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  add    $0x1,%eax
  mov    %eax,-0x54(%rbp)
  movl   $0x0,-0x84(%rbp)
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x54(%rbp),%eax
  cltq
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0xa4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0xa0(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  movl   $0x0,-0x80(%rbp)
  jmp    L483
L340:
  movl   $0x0,-0x7c(%rbp)
  jmp    L183
L87:
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x80(%rbp),%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  imul   -0xa8(%rbp),%eax
  mov    %eax,%esi
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x7c(%rbp),%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  add    %esi,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rax,%rdx
  mov    -0xa4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0xa0(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x80(%rbp),%eax
  imul   -0x58(%rbp),%eax
  mov    %eax,%esi
  mov    -0x7c(%rbp),%eax
  add    %esi,%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x7c(%rbp)
L183:
  mov    -0x58(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x7c(%rbp)
  jl     L87
  addl   $0x1,-0x80(%rbp)
L483:
  mov    -0x54(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x80(%rbp)
  jl     L340
  mov    -0xa4(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x50(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x4c(%rbp)
  movl   $0x0,-0x78(%rbp)
  jmp    L84
L120:
  mov    %rsp,%rax
  mov    %rax,%r8
  mov    -0xa8(%rbp),%eax
  cltq
  sub    $0x1,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0xa8(%rbp),%eax
  cltq
  mov    %rax,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  mov    -0xa8(%rbp),%eax
  cltq
  mov    %rax,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  mov    -0xa8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L394:
  cmp    %rdx,%rsp
  je     L427
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L394
L427:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L115
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L115:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x30(%rbp)
  movl   $0x0,-0x74(%rbp)
  jmp    L229
L156:
  mov    -0xa4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rsi
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x78(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  imul   -0x58(%rbp),%eax
  mov    %eax,%edi
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x74(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  add    %edi,%eax
  cltq
  shl    $0x2,%rax
  add    %rsi,%rax
  movss  (%rax),%xmm0
  mov    -0xa4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rsi
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x78(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  imul   -0x58(%rbp),%eax
  mov    %eax,%edi
  mov    -0x74(%rbp),%edx
  mov    -0x4c(%rbp),%eax
  add    %eax,%edx
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  add    %edi,%eax
  cltq
  shl    $0x2,%rax
  add    %rsi,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  D51(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D5(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D43(%rip),%xmm0
  divsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  mov    -0x30(%rbp),%rax
  mov    -0x74(%rbp),%edx
  movslq %edx,%rdx
  movss  %xmm0,(%rax,%rdx,4)
  mov    -0x4c(%rbp),%eax
  add    %eax,-0x74(%rbp)
L229:
  mov    -0xa8(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  cmp    %eax,-0x74(%rbp)
  jl     L156
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x70(%rbp)
  jmp    L210
L385:
  movl   $0x0,-0x84(%rbp)
  jmp    L56
L154:
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x70(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm2
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mulss  %xmm1,%xmm2
  mov    -0x30(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm3
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    -0x70(%rbp),%ecx
  mov    -0x4c(%rbp),%edx
  add    %ecx,%edx
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mulss  %xmm3,%xmm1
  addss  %xmm2,%xmm1
  mov    -0x70(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm3
  mov    -0x30(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm2
  addss  %xmm3,%xmm2
  divss  %xmm2,%xmm1
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x84(%rbp)
L56:
  cmpl   $0x2,-0x84(%rbp)
  jle    L154
  mov    -0x50(%rbp),%eax
  add    %eax,-0x70(%rbp)
L210:
  mov    -0xa8(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  cmp    %eax,-0x70(%rbp)
  jl     L385
  mov    -0x70(%rbp),%eax
  cmp    -0xa8(%rbp),%eax
  jge    L301
  movl   $0x0,-0x84(%rbp)
  jmp    L163
L416:
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x84(%rbp)
L163:
  cmpl   $0x2,-0x84(%rbp)
  jle    L416
L301:
  movl   $0x0,-0x84(%rbp)
  jmp    L211
L453:
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm2
  movss  D24(%rip),%xmm0
  mulss  %xmm2,%xmm0
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x84(%rbp)
L211:
  cmpl   $0x2,-0x84(%rbp)
  jle    L453
  mov    -0x50(%rbp),%eax
  mov    %eax,-0x70(%rbp)
  jmp    L30
L363:
  movl   $0x0,-0x84(%rbp)
  jmp    L86
L284:
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  mov    -0x70(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm1
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  mov    -0x30(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm3
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    -0x70(%rbp),%ecx
  mov    -0x4c(%rbp),%edx
  add    %ecx,%edx
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm3,%xmm0
  addss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  mov    -0x70(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm3
  mov    -0x30(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  addss  %xmm3,%xmm0
  cvtss2sd %xmm0,%xmm0
  movapd %xmm0,%xmm3
  addsd  %xmm0,%xmm3
  divsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x84(%rbp)
L86:
  cmpl   $0x2,-0x84(%rbp)
  jle    L284
  mov    -0x50(%rbp),%eax
  add    %eax,-0x70(%rbp)
L30:
  mov    -0xa8(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  cmp    %eax,-0x70(%rbp)
  jl     L363
  mov    -0x70(%rbp),%eax
  cmp    -0xa8(%rbp),%eax
  jge    L326
  movl   $0x0,-0x84(%rbp)
  jmp    L314
L11:
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm2
  movss  D24(%rip),%xmm0
  mulss  %xmm2,%xmm0
  mov    -0xa8(%rbp),%eax
  imul   -0x78(%rbp),%eax
  mov    %eax,%edx
  mov    -0x70(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x84(%rbp)
L314:
  cmpl   $0x2,-0x84(%rbp)
  jle    L11
L326:
  mov    %r8,%rsp
  addl   $0x1,-0x78(%rbp)
L84:
  mov    -0x78(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L120
  movl   $0x0,-0x6c(%rbp)
  jmp    L278
L464:
  mov    %rsp,%rax
  mov    %rax,%r8
  mov    -0xac(%rbp),%eax
  cltq
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  mov    -0xac(%rbp),%eax
  cltq
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    -0xac(%rbp),%eax
  cltq
  mov    %rax,%r14
  mov    $0x0,%r15d
  mov    -0xac(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L240:
  cmp    %rdx,%rsp
  je     L136
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L240
L136:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L377
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L377:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x68(%rbp)
  jmp    L308
L445:
  mov    -0xa4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rsi
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x68(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  imul   -0x58(%rbp),%eax
  mov    %eax,%edi
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x6c(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  add    %edi,%eax
  cltq
  shl    $0x2,%rax
  add    %rsi,%rax
  movss  (%rax),%xmm0
  mov    -0xa4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rsi
  mov    -0x68(%rbp),%edx
  mov    -0x4c(%rbp),%eax
  add    %eax,%edx
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  imul   -0x58(%rbp),%eax
  mov    %eax,%edi
  mov    -0xa4(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x6c(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  add    %edi,%eax
  cltq
  shl    $0x2,%rax
  add    %rsi,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  D51(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D5(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D43(%rip),%xmm0
  divsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  mov    -0x40(%rbp),%rax
  mov    -0x68(%rbp),%edx
  movslq %edx,%rdx
  movss  %xmm0,(%rax,%rdx,4)
  mov    -0x4c(%rbp),%eax
  add    %eax,-0x68(%rbp)
L308:
  mov    -0xac(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  cmp    %eax,-0x68(%rbp)
  jl     L445
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x64(%rbp)
  jmp    L51
L97:
  movl   $0x0,-0x84(%rbp)
  jmp    L472
L457:
  mov    -0xa8(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x64(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm2
  mov    -0x64(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  imul   -0xa8(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mulss  %xmm1,%xmm2
  mov    -0x40(%rbp),%rax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm3
  mov    -0x64(%rbp),%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  imul   -0xa8(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mulss  %xmm3,%xmm1
  addss  %xmm2,%xmm1
  mov    -0x64(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm3
  mov    -0x40(%rbp),%rax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm2
  addss  %xmm3,%xmm2
  divss  %xmm2,%xmm1
  mov    -0xa8(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x84(%rbp)
L472:
  cmpl   $0x2,-0x84(%rbp)
  jle    L457
  mov    -0x50(%rbp),%eax
  add    %eax,-0x64(%rbp)
L51:
  mov    -0xac(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  cmp    %eax,-0x64(%rbp)
  jl     L97
  mov    -0x64(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jge    L352
  movl   $0x0,-0x60(%rbp)
  jmp    L15
L487:
  mov    -0xa8(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x64(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  imul   -0xa8(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0xa8(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x60(%rbp)
L15:
  cmpl   $0x2,-0x60(%rbp)
  jle    L487
L352:
  movl   $0x0,-0x84(%rbp)
  jmp    L25
L415:
  mov    -0x6c(%rbp),%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  mov    -0xa8(%rbp),%eax
  imul   -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movsd  D67(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x6c(%rbp),%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x84(%rbp)
L25:
  cmpl   $0x2,-0x84(%rbp)
  jle    L415
  mov    -0x50(%rbp),%eax
  mov    %eax,-0x64(%rbp)
  jmp    L204
L142:
  movl   $0x0,-0x84(%rbp)
  jmp    L4
L113:
  mov    -0xa8(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  mov    -0x64(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm1
  mov    -0x64(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  imul   -0xa8(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  mov    -0x40(%rbp),%rax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm3
  mov    -0x64(%rbp),%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  imul   -0xa8(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm3,%xmm0
  addss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  mov    -0x64(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm3
  mov    -0x40(%rbp),%rax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  addss  %xmm3,%xmm0
  cvtss2sd %xmm0,%xmm0
  movapd %xmm0,%xmm3
  addsd  %xmm0,%xmm3
  divsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  mov    -0xa8(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x84(%rbp)
L4:
  cmpl   $0x2,-0x84(%rbp)
  jle    L113
  mov    -0x50(%rbp),%eax
  add    %eax,-0x64(%rbp)
L204:
  mov    -0xac(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  cmp    %eax,-0x64(%rbp)
  jl     L142
  mov    -0x64(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jge    L233
  movl   $0x0,-0x5c(%rbp)
  jmp    L462
L124:
  mov    -0xa8(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x5c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x64(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  imul   -0xa8(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x5c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm2
  movss  D24(%rip),%xmm0
  mulss  %xmm2,%xmm0
  mov    -0xa8(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x5c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x5c(%rbp)
L462:
  cmpl   $0x2,-0x5c(%rbp)
  jle    L124
L233:
  mov    %r8,%rsp
  addl   $0x1,-0x6c(%rbp)
L278:
  mov    -0x6c(%rbp),%eax
  cmp    -0xa8(%rbp),%eax
  jl     L464
  nop
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L470
  call   <__stack_chk_fail@plt>
L470:
  lea    -0x20(%rbp),%rsp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: tag: D51
data_type: dword
name: read_data
arguments: tag: D5
data_type: byte[8]
name: read_data
arguments: tag: D43
data_type: f64
name: read_data
arguments: tag: D24
data_type: f32
name: read_data
arguments: tag: D67
data_type: byte[8]

tool: D51: 2147483647

tool: {"D5": [0xf1,0x68,0xe3,0x88,0xb5,0xf8,0xe4,0x3e]}

tool: D43: 1

tool: D24: 0.5

tool: {"D67": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

assistant: ```c
void dt_iop_equalizer_wtf(float *buf, float **weight_a, const int l, const int width, const int height) {
  const int wd = (int)(1 + (width >> (l - 1))), ht = (int)(1 + (height >> (l - 1)));
  int ch = 0;
  memset(weight_a[l], 0, sizeof(float) * wd * ht);
  for (int j = 0; j < ht - 1; j++)
    for (int i = 0; i < wd - 1; i++)
      weight_a[l][j * wd + i] = ((buf)[4 * (width * ((j << (l - 1))) + ((i << (l - 1)))) + ch]);
  const int step = 1 << l;
  const int st = step / 2;
  for (int j = 0; j < height; j++) {
    float tmp[width];
    for (int i = 0; i < width - st; i += st)
      tmp[i] = 1.0 / (fabsf(weight_a[l][wd * ((j) >> (l - 1)) + ((i) >> (l - 1))] - weight_a[l][wd * ((j) >> (l - 1)) + ((i + st) >> (l - 1))]) + 1.e-5);
    int i = st;
    for (; i < width - st; i += step)
      for (ch = 0; ch < 3; ch++)
        ((buf)[4 * (width * ((j)) + ((i))) + ch]) -= (tmp[i - st] * ((buf)[4 * (width * ((j)) + ((i - st))) + ch]) + tmp[i] * ((buf)[4 * (width * ((j)) + ((i + st))) + ch])) / (tmp[i - st] + tmp[i]);
    if (i < width)
      for (ch = 0; ch < 3; ch++)
        ((buf)[4 * (width * ((j)) + ((i))) + ch]) -= ((buf)[4 * (width * ((j)) + ((i - st))) + ch]);
    for (ch = 0; ch < 3; ch++)
      ((buf)[4 * (width * ((j)) + ((0))) + ch]) += ((buf)[4 * (width * ((j)) + ((st))) + ch]) * 0.5f;
    for (i = step; i < width - st; i += step)
      for (ch = 0; ch < 3; ch++)
        ((buf)[4 * (width * ((j)) + ((i))) + ch]) += (tmp[i - st] * ((buf)[4 * (width * ((j)) + ((i - st))) + ch]) + tmp[i] * ((buf)[4 * (width * ((j)) + ((i + st))) + ch])) / (2.0 * (tmp[i - st] + tmp[i]));
    if (i < width)
      for (ch = 0; ch < 3; ch++)
        ((buf)[4 * (width * ((j)) + ((i))) + ch]) += ((buf)[4 * (width * ((j)) + ((i - st))) + ch]) * .5f;
  }
  for (int i = 0; i < width; i++) {
    float tmp[height];
    for (int j = 0; j < height - st; j += st)
      tmp[j] = 1.0 / (fabsf(weight_a[l][wd * ((j) >> (l - 1)) + ((i) >> (l - 1))] - weight_a[l][wd * ((j + st) >> (l - 1)) + ((i) >> (l - 1))]) + 1.e-5);
    int j = st;
    for (; j < height - st; j += step)
      for (ch = 0; ch < 3; ch++)
        ((buf)[4 * (width * ((j)) + ((i))) + ch]) -= (tmp[j - st] * ((buf)[4 * (width * ((j - st)) + ((i))) + ch]) + tmp[j] * ((buf)[4 * (width * ((j + st)) + ((i))) + ch])) / (tmp[j - st] + tmp[j]);
    if (j < height)
      for (int ch = 0; ch < 3; ch++)
        ((buf)[4 * (width * ((j)) + ((i))) + ch]) -= ((buf)[4 * (width * ((j - st)) + ((i))) + ch]);
    for (ch = 0; ch < 3; ch++)
      ((buf)[4 * (width * ((0)) + ((i))) + ch]) += ((buf)[4 * (width * ((st)) + ((i))) + ch]) * 0.5;
    for (j = step; j < height - st; j += step)
      for (ch = 0; ch < 3; ch++)
        ((buf)[4 * (width * ((j)) + ((i))) + ch]) += (tmp[j - st] * ((buf)[4 * (width * ((j - st)) + ((i))) + ch]) + tmp[j] * ((buf)[4 * (width * ((j + st)) + ((i))) + ch])) / (2.0 * (tmp[j - st] + tmp[j]));
    if (j < height)
      for (int ch = 0; ch < 3; ch++)
        ((buf)[4 * (width * ((j)) + ((i))) + ch]) += ((buf)[4 * (width * ((j - st)) + ((i))) + ch]) * .5f;
  }
}
```