user: Please show me the C implementation that matches the assembly code listed below:

```asm
<WebRtcIsac_NormLatticeFilterMa>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1a8,%rsp
  mov    %edi,(%rsp)
  movslq %edi,%rdi
  mov    %rdx,%r11
  mov    %rcx,%r12
  mov    %rsi,0x40(%rsp)
  lea    0x1(%rdi),%ebx
  lea    (%rdi,%rdi,4),%rbp
  lea    0x150(%rsp),%r13
  shl    $0x5,%rbp
  lea    0x50(%rsp),%r15
  add    %r13,%rbp
  lea    0x970(%rsp),%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x1198(%rsp)
  xor    %eax,%eax
  mov    %rdi,%rax
  mov    %rdi,0x48(%rsp)
  shl    $0x3,%eax
  movl   $0x0,0x4(%rsp)
  mov    %eax,0x24(%rsp)
  movslq %ebx,%rax
  shl    $0x3,%rax
  mov    %ebx,0x20(%rsp)
  mov    %r9,%rbx
  mov    %rax,0x28(%rsp)
  lea    0x8(%r8),%rax
  lea    0x80(%rsp),%r8
  mov    %rax,0x8(%rsp)
  lea    0xe0(%rsp),%rax
  mov    %rax,0x30(%rsp)
  lea    0xe8(%rsp),%rax
  mov    %rax,0x38(%rsp)
L117:
  mov    D13(%rip),%rax
  mov    0x24(%rsp),%edx
  mov    %r8,0x10(%rsp)
  mov    0x8(%rsp),%rsi
  mov    0x38(%rsp),%rdi
  mov    %r11,0x18(%rsp)
  mov    %rax,0xe0(%rsp)
  call   <memcpy@plt>
  mov    0x30(%rsp),%rdi
  mov    (%rsp),%esi
  mov    %r15,%rdx
  mov    0x10(%rsp),%rcx
  call   <WebRtcIsac_Dir2Lat@plt>
  mov    (%rsp),%edi
  mov    0x8(%rsp),%rax
  pxor   %xmm5,%xmm5
  mov    0x10(%rsp),%r8
  movss  D6(%rip),%xmm6
  test   %edi,%edi
  mov    0x18(%rsp),%r11
  cvtsd2ss -0x8(%rax),%xmm5
  jle    L100
  mov    0x48(%rsp),%rdx
  xor    %eax,%eax
  lea    0xb0(%rsp),%r10
  nopl   0x0(%rax,%rax,1)
L12:
  movss  (%r8,%rax,4),%xmm0
  movaps %xmm6,%xmm1
  divss  %xmm0,%xmm1
  mulss  %xmm0,%xmm5
  movss  %xmm1,(%r10,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L12
  movdqu (%r12),%xmm0
  movaps %xmm0,0x0(%r13)
  movdqu 0x10(%r12),%xmm7
  movaps %xmm7,0x10(%r13)
  movdqu 0x20(%r12),%xmm7
  movaps %xmm7,0x20(%r13)
  movdqu 0x30(%r12),%xmm7
  movaps %xmm7,0x30(%r13)
  movdqu 0x40(%r12),%xmm7
  movaps %xmm7,0x40(%r13)
  movdqu 0x50(%r12),%xmm7
  movaps %xmm7,0x50(%r13)
  movdqu 0x60(%r12),%xmm7
  movaps %xmm7,0x60(%r13)
  movdqu 0x70(%r12),%xmm7
  movaps %xmm7,0x70(%r13)
  movdqu 0x80(%r12),%xmm7
  movaps %xmm7,0x80(%r13)
  movdqu 0x90(%r12),%xmm7
  movaps %xmm0,(%r14)
  movaps %xmm7,0x90(%r13)
  movdqu 0x10(%r12),%xmm7
  movaps %xmm7,0x10(%r14)
  movdqu 0x20(%r12),%xmm7
  movaps %xmm7,0x20(%r14)
  movdqu 0x30(%r12),%xmm7
  movaps %xmm7,0x30(%r14)
  movdqu 0x40(%r12),%xmm7
  movaps %xmm7,0x40(%r14)
  movdqu 0x50(%r12),%xmm7
  movaps %xmm7,0x50(%r14)
  movdqu 0x60(%r12),%xmm7
  movaps %xmm7,0x60(%r14)
  movdqu 0x70(%r12),%xmm7
  cmpl   $0x1,0x20(%rsp)
  movaps %xmm7,0x70(%r14)
  movdqu 0x80(%r12),%xmm7
  movaps %xmm7,0x80(%r14)
  movdqu 0x90(%r12),%xmm7
  movaps %xmm7,0x90(%r14)
  jle    L137
L9:
  lea    0x1f0(%rsp),%rax
  lea    0xa10(%rsp),%r9
  mov    %rax,0x10(%rsp)
  mov    %rax,%rdx
  mov    (%rsp),%eax
  mov    %r9,%rcx
  lea    -0x1(%rax),%edi
  xor    %eax,%eax
  nopl   (%rax)
L122:
  movss  (%r15,%rax,4),%xmm2
  movss  (%r11,%rax,4),%xmm0
  mov    %rax,%rsi
  add    $0xa0,%rcx
  add    $0xa0,%rdx
  movaps %xmm2,%xmm1
  mulss  %xmm0,%xmm1
  addss  -0x140(%rdx),%xmm1
  mulss  (%r10,%rax,4),%xmm1
  mulss  (%r8,%rax,4),%xmm0
  add    $0x1,%rax
  mulss  %xmm1,%xmm2
  movss  %xmm1,-0xa0(%rdx)
  addss  %xmm2,%xmm0
  movss  %xmm0,-0xa0(%rcx)
  cmp    %rsi,%rdi
  jne    L122
  mov    (%rsp),%esi
  test   %esi,%esi
  jle    L129
L41:
  mov    (%rsp),%eax
  mov    0x10(%rsp),%rcx
  mov    %r9,%rdx
  mov    %r12,0x10(%rsp)
  mov    %r13,%rdi
  mov    %r14,%rsi
  xor    %r9d,%r9d
  mov    %rax,%r12
L15:
  movss  (%r10,%r9,4),%xmm4
  movss  (%r15,%r9,4),%xmm2
  xor    %eax,%eax
  movss  (%r8,%r9,4),%xmm3
  nopl   0x0(%rax)
L71:
  movss  (%rsi,%rax,1),%xmm1
  movaps %xmm2,%xmm0
  mulss  %xmm1,%xmm0
  addss  0x4(%rdi,%rax,1),%xmm0
  mulss  %xmm3,%xmm1
  mulss  %xmm4,%xmm0
  movss  %xmm0,0x4(%rcx,%rax,1)
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,0x4(%rdx,%rax,1)
  add    $0x4,%rax
  cmp    $0x9c,%rax
  jne    L71
  add    $0x1,%r9
  add    $0xa0,%rdi
  add    $0xa0,%rsi
  add    $0xa0,%rcx
  add    $0xa0,%rdx
  cmp    %r9,%r12
  jne    L15
  mov    0x10(%rsp),%r12
L129:
  xor    %eax,%eax
  xchg   %ax,%ax
L61:
  movss  0x0(%rbp,%rax,4),%xmm0
  mulss  %xmm5,%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    $0x28,%rax
  jne    L61
  mov    0x20(%rsp),%ecx
  mov    (%rsp),%esi
  mov    $0x9c,%edx
  xor    %eax,%eax
  mov    0x40(%rsp),%rdi
  test   %ecx,%ecx
  jle    L25
  nopl   0x0(%rax)
L126:
  movss  0x0(%r13,%rdx,1),%xmm0
  mov    %rax,%rcx
  movss  %xmm0,(%rdi,%rax,4)
  movss  (%r14,%rdx,1),%xmm0
  add    $0xa0,%rdx
  movss  %xmm0,(%r11,%rax,4)
  add    $0x1,%rax
  cmp    %rcx,%rsi
  jne    L126
L25:
  addl   $0x28,0x4(%rsp)
  mov    0x4(%rsp),%eax
  add    $0x140,%rbx
  add    $0xa0,%r12
  mov    0x28(%rsp),%rdi
  add    %rdi,0x8(%rsp)
  cmp    $0xf0,%eax
  jne    L117
  mov    0x1198(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L54
  add    $0x11a8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L137:
  lea    0x1f0(%rsp),%rax
  lea    0xa10(%rsp),%r9
  mov    %rax,0x10(%rsp)
  jmp    L41
L100:
  movdqu (%r12),%xmm0
  lea    0xb0(%rsp),%r10
  movaps %xmm0,0x0(%r13)
  movdqu 0x10(%r12),%xmm7
  movaps %xmm7,0x10(%r13)
  movdqu 0x20(%r12),%xmm7
  movaps %xmm7,0x20(%r13)
  movdqu 0x30(%r12),%xmm7
  movaps %xmm7,0x30(%r13)
  movdqu 0x40(%r12),%xmm7
  movaps %xmm7,0x40(%r13)
  movdqu 0x50(%r12),%xmm7
  movaps %xmm7,0x50(%r13)
  movdqu 0x60(%r12),%xmm7
  movaps %xmm7,0x60(%r13)
  movdqu 0x70(%r12),%xmm7
  movaps %xmm7,0x70(%r13)
  movdqu 0x80(%r12),%xmm7
  movaps %xmm7,0x80(%r13)
  movdqu 0x90(%r12),%xmm7
  movaps %xmm0,(%r14)
  movaps %xmm7,0x90(%r13)
  movdqu 0x10(%r12),%xmm7
  movaps %xmm7,0x10(%r14)
  movdqu 0x20(%r12),%xmm7
  movaps %xmm7,0x20(%r14)
  movdqu 0x30(%r12),%xmm7
  movaps %xmm7,0x30(%r14)
  movdqu 0x40(%r12),%xmm7
  movaps %xmm7,0x40(%r14)
  movdqu 0x50(%r12),%xmm7
  movaps %xmm7,0x50(%r14)
  movdqu 0x60(%r12),%xmm7
  movaps %xmm7,0x60(%r14)
  movdqu 0x70(%r12),%xmm7
  cmpl   $0x1,0x20(%rsp)
  movaps %xmm7,0x70(%r14)
  movdqu 0x80(%r12),%xmm7
  movaps %xmm7,0x80(%r14)
  movdqu 0x90(%r12),%xmm7
  movaps %xmm7,0x90(%r14)
  jg     L9
  jmp    L129
L54:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D13
type_guessed: byte[8]
name: retrieve_data
arguments: label: D6
type_guessed: byte[4]

tool: {"D13": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: {"D6": [0x00,0x00,0x80,0x3f]}

assistant: ```c
void WebRtcIsac_NormLatticeFilterMa(int orderCoef, float *stateF, float *stateG, float *lat_in, double *filtcoeflo, double *lat_out) {
  int n, k, i, u, temp1;
  int ord_1 = orderCoef + 1;
  float sth[12];
  float cth[12];
  float inv_cth[12];
  double a[12 + 1];
  float f[12 + 1][(80 / 2)], g[12 + 1][(80 / 2)];
  float gain1;
  for (u = 0; u < 6; u++) {
    temp1 = u * ord_1;
    a[0] = 1;
    memcpy(a + 1, filtcoeflo + temp1 + 1, sizeof(double) * (ord_1 - 1));
    WebRtcIsac_Dir2Lat(a, orderCoef, sth, cth);
    gain1 = (float)filtcoeflo[temp1];
    for (k = 0; k < orderCoef; k++) {
      gain1 *= cth[k];
      inv_cth[k] = 1 / cth[k];
    }
    for (i = 0; i < (80 / 2); i++) {
      f[0][i] = lat_in[i + u * (80 / 2)];
      g[0][i] = lat_in[i + u * (80 / 2)];
    }
    for (i = 1; i < ord_1; i++) {
      f[i][0] = inv_cth[i - 1] * (f[i - 1][0] + sth[i - 1] * stateG[i - 1]);
      g[i][0] = cth[i - 1] * stateG[i - 1] + sth[i - 1] * f[i][0];
    }
    for (k = 0; k < orderCoef; k++) {
      for (n = 0; n < ((80 / 2) - 1); n++) {
        f[k + 1][n + 1] = inv_cth[k] * (f[k][n + 1] + sth[k] * g[k][n]);
        g[k + 1][n + 1] = cth[k] * g[k][n] + sth[k] * f[k + 1][n + 1];
      }
    }
    for (n = 0; n < (80 / 2); n++) {
      lat_out[n + u * (80 / 2)] = gain1 * f[orderCoef][n];
    }
    for (i = 0; i < ord_1; i++) {
      stateF[i] = f[i][(80 / 2) - 1];
      stateG[i] = g[i][(80 / 2) - 1];
    }
  }
  return;
}
```