user: What is the c source code of the assembly code below?

```asm
<FrameClassify>:
  endbr64
  push   %r12
  mov    $0x18,%edx
  xor    %esi,%esi
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  add    $0xffffffffffffff80,%rsp
  movss  D13(%rip),%xmm5
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  movabs $0x3f8000003f666666,%rax
  lea    0x40(%rsp),%rbp
  lea    0x60(%rsp),%r12
  mov    %rbp,%rdi
  movss  %xmm5,0x30(%rsp)
  mov    %rax,0x4(%rsp)
  movabs $0x3f4ccccd3f666666,%rax
  mov    %rax,0xc(%rsp)
  movabs $0x3eaaaaab3e2aaaab,%rax
  mov    %rax,0x20(%rsp)
  movabs $0x3f2aaaab3f000000,%rax
  mov    %rax,0x28(%rsp)
  call   <memset@plt>
  xor    %esi,%esi
  mov    $0x18,%edx
  mov    %r12,%rdi
  call   <memset@plt>
  movss  0x40(%rsp),%xmm4
  xor    %eax,%eax
  lea    0x20(%rsp),%rsi
  movss  D0(%rip),%xmm0
  movss  D13(%rip),%xmm5
L57:
  movss  (%rbx,%rax,1),%xmm1
  add    $0x4,%rax
  mulss  %xmm1,%xmm0
  mulss  %xmm1,%xmm0
  addss  %xmm0,%xmm4
  cmp    $0x14,%rax
  je     L18
  movss  (%rax,%rsi,1),%xmm0
  jmp    L57
L18:
  lea    0x14(%rbx),%rax
  lea    0xa0(%rbx),%rdx
  nopl   0x0(%rax)
L113:
  movss  (%rax),%xmm0
  add    $0x4,%rax
  mulss  %xmm0,%xmm0
  addss  %xmm0,%xmm4
  cmp    %rax,%rdx
  jne    L113
  movss  %xmm4,0x40(%rsp)
  mov    %rbp,%r8
  mov    %r12,%r9
  lea    0x12c(%rbx),%rdx
  lea    0x140(%rbx),%rdi
  lea    0x50(%rsp),%r10
L149:
  movss  0x4(%r8),%xmm2
  movss  0x4(%r9),%xmm1
  lea    -0x8c(%rdx),%rcx
  xor    %eax,%eax
  movss  D0(%rip),%xmm3
L22:
  movss  (%rcx,%rax,1),%xmm0
  add    $0x4,%rax
  mulss  %xmm0,%xmm3
  mulss  %xmm0,%xmm3
  mulss  %xmm0,%xmm0
  addss  %xmm3,%xmm2
  addss  %xmm0,%xmm1
  cmp    $0x14,%rax
  je     L141
  movss  (%rax,%rsi,1),%xmm3
  jmp    L22
  nopl   0x0(%rax,%rax,1)
L141:
  lea    -0x78(%rdx),%rax
  nopl   0x0(%rax)
L146:
  movss  (%rax),%xmm0
  add    $0x4,%rax
  mulss  %xmm0,%xmm0
  addss  %xmm0,%xmm2
  addss  %xmm0,%xmm1
  cmp    %rdx,%rax
  jne    L146
  mov    %rsi,%r11
  mov    %rsi,%rcx
  movaps %xmm5,%xmm0
L79:
  movss  (%rax),%xmm3
  add    $0x4,%rax
  sub    $0x4,%rcx
  mulss  %xmm3,%xmm0
  movaps %xmm3,%xmm6
  mulss  %xmm3,%xmm6
  mulss  %xmm3,%xmm0
  addss  %xmm6,%xmm2
  addss  %xmm0,%xmm1
  cmp    %rdi,%rax
  je     L24
  movss  0x10(%rcx),%xmm0
  jmp    L79
  nopl   0x0(%rax)
L24:
  movss  %xmm2,0x4(%r8)
  add    $0x4,%r8
  add    $0x4,%r9
  add    $0xa0,%rdx
  movss  %xmm1,(%r9)
  lea    0xa0(%rax),%rdi
  cmp    %r8,%r10
  jne    L149
  movss  0x74(%rsp),%xmm1
  lea    0x320(%rbx),%rax
  lea    0x3ac(%rbx),%rdx
  xchg   %ax,%ax
L54:
  movss  (%rax),%xmm0
  add    $0x4,%rax
  mulss  %xmm0,%xmm0
  addss  %xmm0,%xmm1
  cmp    %rdx,%rax
  jne    L54
  add    $0x3c0,%rbx
L130:
  movss  (%rdx),%xmm0
  add    $0x4,%rdx
  sub    $0x4,%r11
  mulss  %xmm0,%xmm5
  mulss  %xmm0,%xmm5
  addss  %xmm5,%xmm1
  cmp    %rbx,%rdx
  je     L78
  movss  0x10(%r11),%xmm5
  jmp    L130
L78:
  addss  0x64(%rsp),%xmm4
  mulss  D51(%rip),%xmm4
  movss  %xmm1,0x74(%rsp)
  mov    $0x2,%eax
  movss  D7(%rip),%xmm1
  mov    $0x1,%r8d
L28:
  movss  -0x4(%rbp,%rax,4),%xmm0
  addss  (%r12,%rax,4),%xmm0
  mulss  %xmm1,%xmm0
  comiss %xmm4,%xmm0
  maxss  %xmm4,%xmm0
  cmova  %eax,%r8d
  movaps %xmm0,%xmm4
  cmp    $0x5,%rax
  je     L14
  movss  (%rsp,%rax,4),%xmm1
  add    $0x1,%rax
  jmp    L28
L14:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  sub    $0xffffffffffffff80,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L40:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D13
type_guessed: byte[4]
name: read_data
arguments: label: D0
type_guessed: byte[4]
name: read_data
arguments: label: D51
type_guessed: f32
name: read_data
arguments: label: D7
type_guessed: f32

tool: {"D13": [0x55,0x55,0x55,0x3f]}

tool: {"D0": [0xab,0xaa,0x2a,0x3e]}

tool: D51: 0.8

tool: D7: 0.9

assistant: ```c
int FrameClassify(float *residual) {
  float max_ssqEn, fssqEn[6], bssqEn[6], *pp;
  int n, l, max_ssqEn_n;
  const float ssqEn_win[6 - 1] = {(float)0.8, (float)0.9, (float)1.0, (float)0.9, (float)0.8};
  const float sampEn_win[5] = {(float)1.0 / (float)6.0, (float)2.0 / (float)6.0, (float)3.0 / (float)6.0, (float)4.0 / (float)6.0, (float)5.0 / (float)6.0};
  memset(fssqEn, 0, 6 * sizeof(float));
  memset(bssqEn, 0, 6 * sizeof(float));
  n = 0;
  pp = residual;
  for (l = 0; l < 5; l++) {
    fssqEn[n] += sampEn_win[l] * (*pp) * (*pp);
    pp++;
  }
  for (l = 5; l < 40; l++) {
    fssqEn[n] += (*pp) * (*pp);
    pp++;
  }
  for (n = 1; n < 6 - 1; n++) {
    pp = residual + n * 40;
    for (l = 0; l < 5; l++) {
      fssqEn[n] += sampEn_win[l] * (*pp) * (*pp);
      bssqEn[n] += (*pp) * (*pp);
      pp++;
    }
    for (l = 5; l < 40 - 5; l++) {
      fssqEn[n] += (*pp) * (*pp);
      bssqEn[n] += (*pp) * (*pp);
      pp++;
    }
    for (l = 40 - 5; l < 40; l++) {
      fssqEn[n] += (*pp) * (*pp);
      bssqEn[n] += sampEn_win[40 - l - 1] * (*pp) * (*pp);
      pp++;
    }
  }
  n = 6 - 1;
  pp = residual + n * 40;
  for (l = 0; l < 40 - 5; l++) {
    bssqEn[n] += (*pp) * (*pp);
    pp++;
  }
  for (l = 40 - 5; l < 40; l++) {
    bssqEn[n] += sampEn_win[40 - l - 1] * (*pp) * (*pp);
    pp++;
  }
  max_ssqEn = (fssqEn[0] + bssqEn[1]) * ssqEn_win[0];
  max_ssqEn_n = 1;
  for (n = 2; n < 6; n++) {
    if ((fssqEn[n - 1] + bssqEn[n]) * ssqEn_win[n - 1] > max_ssqEn) {
      max_ssqEn = (fssqEn[n - 1] + bssqEn[n]) * ssqEn_win[n - 1];
      max_ssqEn_n = n;
    }
  }
  return max_ssqEn_n;
}
```