user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<FrameClassify>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  movss  D27(%rip),%xmm0
  movss  %xmm0,(%rsp)
  movss  D29(%rip),%xmm1
  movss  %xmm1,0x4(%rsp)
  movl   $0x3f800000,0x8(%rsp)
  movss  %xmm1,0xc(%rsp)
  movss  %xmm0,0x10(%rsp)
  movl   $0x3e2aaaab,0x20(%rsp)
  movl   $0x3eaaaaab,0x24(%rsp)
  movl   $0x3f000000,0x28(%rsp)
  movl   $0x3f2aaaab,0x2c(%rsp)
  movl   $0x3f555555,0x30(%rsp)
  lea    0x40(%rsp),%rdi
  mov    $0x18,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  lea    0x60(%rsp),%rdi
  mov    $0x18,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  movss  0x40(%rsp),%xmm1
  mov    $0x0,%eax
  lea    0x20(%rsp),%rdx
L33:
  movss  (%rbx,%rax,1),%xmm2
  movaps %xmm2,%xmm0
  mulss  (%rax,%rdx,1),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  add    $0x4,%rax
  cmp    $0x14,%rax
  jne    L33
  lea    0x14(%rbx),%rax
  lea    0xa0(%rbx),%rdx
L46:
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm0
  addss  %xmm0,%xmm1
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L46
  movss  %xmm1,0x40(%rsp)
  lea    0x40(%rsp),%r9
  lea    0x60(%rsp),%r10
  lea    0x12c(%rbx),%rdx
  lea    0x140(%rbx),%rsi
  lea    0x50(%rsp),%r12
  lea    0x20(%rsp),%r8
L23:
  lea    -0x8c(%rdx),%rcx
  mov    %r9,%rbp
  movss  0x4(%r9),%xmm2
  mov    %r10,%r11
  movss  0x4(%r10),%xmm1
  mov    $0x0,%eax
L56:
  movss  (%rcx,%rax,1),%xmm0
  movaps %xmm0,%xmm3
  mulss  (%rax,%r8,1),%xmm3
  mulss  %xmm0,%xmm3
  addss  %xmm3,%xmm2
  mulss  %xmm0,%xmm0
  addss  %xmm0,%xmm1
  add    $0x4,%rax
  cmp    $0x14,%rax
  jne    L56
  lea    -0x78(%rdx),%rax
L7:
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm0
  addss  %xmm0,%xmm2
  addss  %xmm0,%xmm1
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L7
  lea    0x20(%rsp),%rdi
  mov    %rdi,%rcx
L31:
  movss  (%rax),%xmm0
  movaps %xmm0,%xmm3
  mulss  %xmm0,%xmm3
  addss  %xmm3,%xmm2
  movaps %xmm0,%xmm3
  mulss  0x10(%rcx),%xmm3
  mulss  %xmm3,%xmm0
  addss  %xmm0,%xmm1
  add    $0x4,%rax
  sub    $0x4,%rcx
  cmp    %rsi,%rax
  jne    L31
  movss  %xmm2,0x4(%rbp)
  movss  %xmm1,0x4(%r11)
  add    $0x4,%r9
  add    $0x4,%r10
  add    $0xa0,%rdx
  add    $0xa0,%rsi
  cmp    %r12,%r9
  jne    L23
  lea    0x320(%rbx),%rax
  movss  0x74(%rsp),%xmm1
  lea    0x3ac(%rbx),%rdx
L29:
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm0
  addss  %xmm0,%xmm1
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L29
  lea    0x3ac(%rbx),%rax
  add    $0x3c0,%rbx
L74:
  movss  (%rax),%xmm2
  movaps %xmm2,%xmm0
  mulss  0x10(%rdi),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  add    $0x4,%rax
  sub    $0x4,%rdi
  cmp    %rbx,%rax
  jne    L74
  movss  %xmm1,0x74(%rsp)
  movss  0x40(%rsp),%xmm1
  addss  0x64(%rsp),%xmm1
  mulss  D27(%rip),%xmm1
  mov    $0x2,%eax
  mov    $0x1,%edx
  lea    0x60(%rsp),%rsi
  mov    %rsp,%rcx
L84:
  movss  0x3c(%rsp,%rax,4),%xmm0
  addss  (%rsi,%rax,4),%xmm0
  mulss  -0x4(%rcx,%rax,4),%xmm0
  comiss %xmm1,%xmm0
  cmova  %eax,%edx
  maxss  %xmm1,%xmm0
  movaps %xmm0,%xmm1
  add    $0x1,%rax
  cmp    $0x6,%rax
  jne    L84
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  mov    %edx,%eax
  sub    $0xffffffffffffff80,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D27
data_type: f32
name: extract_symbolic_data
arguments: label: D29
data_type: f32

tool: D27: 0.8

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