user: Converte this assembly snippet into its equivalent C code:

```asm
<initialize>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x498,%rsp
  mov    %rdi,0x28(%rsp)
  mov    0x4d8(%rsp),%ebp
  mov    %esi,0x24(%rsp)
  mov    0x4d0(%rsp),%rdx
  mov    %r8,0x8(%rsp)
  movss  %xmm0,0x3c(%rsp)
  pxor   %xmm0,%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x488(%rsp)
  xor    %eax,%eax
  lea    0x80(%rsp),%rax
  movups %xmm0,0x4(%rcx)
  mov    %rax,0x10(%rsp)
  movups %xmm0,0x14(%rcx)
  movups %xmm0,0x24(%rcx)
  test   %ebp,%ebp
  jle    L190
  lea    0x84(%rsp),%rcx
  mov    %rax,%r12
  lea    -0x1(%rbp),%eax
  mov    %r9,%r13
  mov    %eax,0x38(%rsp)
  lea    (%rcx,%rax,4),%rax
  lea    0x34(%rdx),%r15
  mov    %rcx,0x30(%rsp)
  mov    %rax,0x18(%rsp)
  nopl   (%rax)
L181:
  movss  D6(%rip),%xmm0
  lea    -0x34(%r15),%rax
  nopl   0x0(%rax)
L209:
  mulss  (%rax),%xmm0
  add    $0x4,%rax
  cmp    %r15,%rax
  jne    L209
  movss  0x0(%r13),%xmm4
  add    $0x4,%r12
  add    $0x4,%r13
  add    $0x34,%r15
  movss  %xmm4,0x20(%rsp)
  call   <sqrt@plt>
  mulss  0x20(%rsp),%xmm0
  movss  %xmm0,-0x4(%r12)
  cmp    0x18(%rsp),%r12
  jne    L181
L199:
  mov    0x38(%rsp),%eax
  mov    0x30(%rsp),%rcx
  pxor   %xmm0,%xmm0
  xor    %r9d,%r9d
  movaps %xmm0,0x40(%rsp)
  pxor   %xmm2,%xmm2
  lea    0x40(%rsp),%r8
  movl   $0x0,0x70(%rsp)
  lea    (%rcx,%rax,4),%rdi
  movaps %xmm0,0x50(%rsp)
  movaps %xmm0,0x60(%rsp)
  nopw   0x0(%rax,%rax,1)
L53:
  movl   $0x0,(%rbx,%r9,1)
  test   %ebp,%ebp
  jle    L188
  mov    0x8(%rsp),%rax
  movaps %xmm2,%xmm1
  lea    (%rax,%r9,1),%rdx
  mov    0x10(%rsp),%rax
  nopl   (%rax)
L52:
  movss  (%rax),%xmm0
  mulss  (%rdx),%xmm0
  add    $0x4,%rax
  add    $0x34,%rdx
  addss  %xmm0,%xmm1
  cmp    %rax,%rdi
  jne    L52
  movss  %xmm1,(%r8,%r9,1)
L188:
  add    $0x4,%r9
  cmp    $0x34,%r9
  jne    L53
  mov    0x24(%rsp),%eax
  test   %eax,%eax
  jle    L89
  mov    0x24(%rsp),%eax
  mov    0x28(%rsp),%rcx
  sub    $0x1,%eax
  mov    %rcx,%rdx
  lea    (%rax,%rax,2),%rdi
  lea    (%rax,%rdi,4),%rax
  lea    0x34(%rcx,%rax,4),%rdi
  nopl   (%rax)
L161:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L157:
  movss  (%rbx,%rax,1),%xmm0
  addss  (%rdx,%rax,1),%xmm0
  movss  %xmm0,(%rbx,%rax,1)
  add    $0x4,%rax
  cmp    $0x34,%rax
  jne    L157
  add    $0x34,%rdx
  cmp    %rdx,%rdi
  jne    L161
L89:
  pxor   %xmm1,%xmm1
  xor    %eax,%eax
  cvtsi2ssl 0x24(%rsp),%xmm1
  xchg   %ax,%ax
L68:
  movss  (%rbx,%rax,1),%xmm0
  divss  %xmm1,%xmm0
  subss  (%r8,%rax,1),%xmm0
  movss  %xmm0,(%rbx,%rax,1)
  add    $0x4,%rax
  cmp    $0x34,%rax
  jne    L68
  mov    0x28(%rsp),%rax
  mov    0x24(%rsp),%esi
  movss  (%rax),%xmm0
  test   %esi,%esi
  jle    L224
  lea    -0x1(%rsi),%edx
  lea    0x34(%rax),%rcx
  lea    (%rdx,%rdx,2),%rdi
  mov    %rdx,%rsi
  mov    %rcx,%rax
  lea    (%rdx,%rdi,4),%rdx
  lea    (%rcx,%rdx,4),%rdx
  jmp    L169
  xchg   %ax,%ax
L185:
  movss  (%rax),%xmm1
  add    $0x34,%rax
  minss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
L169:
  cmp    %rdx,%rax
  jne    L185
  mov    %esi,%eax
  movss  0x3c(%rsp),%xmm3
  mov    0x28(%rsp),%rbx
  xor    %edi,%edi
  lea    (%rax,%rax,2),%rdx
  movl   $0x0,0x30(%r14)
  lea    (%rax,%rdx,4),%rax
  addss  %xmm0,%xmm3
  pxor   %xmm0,%xmm0
  xor    %edx,%edx
  movups %xmm0,(%r14)
  lea    (%rcx,%rax,4),%rcx
  movups %xmm0,0x10(%r14)
  movups %xmm0,0x20(%r14)
  movaps %xmm2,%xmm0
  jmp    L124
  nopl   0x0(%rax)
L48:
  add    $0x34,%rbx
  addss  %xmm1,%xmm0
  add    $0x1,%edx
  cmp    %rbx,%rcx
  je     L97
L124:
  movss  (%rbx),%xmm1
  comiss %xmm1,%xmm3
  jbe    L48
  add    $0x1,%edi
  xor    %eax,%eax
  jmp    L102
  nopl   0x0(%rax,%rax,1)
L155:
  movss  (%rbx,%rax,1),%xmm1
L102:
  addss  (%r14,%rax,1),%xmm1
  movss  %xmm1,(%r14,%rax,1)
  add    $0x4,%rax
  cmp    $0x34,%rax
  jne    L155
  add    $0x34,%rbx
  cmp    %rbx,%rcx
  jne    L124
L97:
  pxor   %xmm2,%xmm2
  pxor   %xmm3,%xmm3
  cvtsi2ss %edi,%xmm2
  cvtsi2ss %edx,%xmm3
L0:
  mov    %r14,%rsi
  lea    0x34(%r14),%rax
  nopl   0x0(%rax,%rax,1)
L18:
  movss  (%rsi),%xmm1
  add    $0x4,%rsi
  divss  %xmm2,%xmm1
  movss  %xmm1,-0x4(%rsi)
  cmp    %rsi,%rax
  jne    L18
  divss  %xmm3,%xmm0
  mov    0x488(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L129
  add    $0x498,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L190:
  lea    -0x1(%rbp),%eax
  mov    %eax,0x38(%rsp)
  lea    0x84(%rsp),%rax
  mov    %rax,0x30(%rsp)
  jmp    L199
L224:
  pxor   %xmm0,%xmm0
  movl   $0x0,0x30(%r14)
  movaps %xmm2,%xmm3
  movups %xmm0,(%r14)
  movups %xmm0,0x10(%r14)
  movups %xmm0,0x20(%r14)
  movaps %xmm2,%xmm0
  jmp    L0
L129:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D6
type_infered: f32

tool: D6: 1

assistant: ```c
float initialize(float data[][12 + 1], int num_frames, float *noise, float tilt[], float speech_threshold, float codebook[][12 + 1], float *prob, float var[][12 + 1], int ncodes) {
  float noise_ceiling, min, speech_power, codemean[12 + 1], localprob[256];
  int i, j, noise_frames, speech_frames;
  for (j = 1; j <= 12; j++)
    tilt[j] = 0.0;
  for (i = 0; i < ncodes; ++i) {
    localprob[i] = 1.0;
    for (j = 0; j <= 12; ++j)
      localprob[i] *= var[i][j];
    localprob[i] = prob[i] * sqrt(localprob[i]);
  }
  for (j = 0; j <= 12; ++j) {
    tilt[j] = 0;
    codemean[j] = 0;
    for (i = 0; i < ncodes; ++i)
      codemean[j] += localprob[i] * codebook[i][j];
  }
  for (i = 0; i < num_frames; ++i)
    for (j = 0; j <= 12; ++j)
      tilt[j] += data[i][j];
  for (j = 0; j <= 12; ++j)
    tilt[j] = tilt[j] / (float)num_frames - codemean[j];
  min = data[0][0];
  for (i = 0; i < num_frames; i++)
    if (data[i][0] < min)
      min = data[i][0];
  noise_ceiling = speech_threshold + min;
  noise_frames = 0;
  speech_frames = 0;
  speech_power = 0;
  for (j = 0; j <= 12; j++)
    noise[j] = 0.0;
  for (i = 0; i < num_frames; i++) {
    if (data[i][0] < noise_ceiling) {
      noise_frames++;
      for (j = 0; j <= 12; j++)
        noise[j] += data[i][j];
    } else {
      speech_frames++;
      speech_power += data[i][0];
    }
  }
  for (j = 0; j <= 12; j++)
    noise[j] /= noise_frames;
  speech_power /= speech_frames;
  return (speech_power);
}
```