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

```asm
<SKP_Silk_burg_modified>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x218,%rsp
  mov    %rdi,0x88(%rsp)
  mov    %rsi,0x90(%rsp)
  mov    %rdx,0x98(%rsp)
  mov    %rcx,%rdx
  mov    %rcx,0x70(%rsp)
  mov    %r8d,0x6c(%rsp)
  mov    %r9d,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  mov    %r9d,%eax
  imul   %r8d,%eax
  mov    %eax,%ecx
  lea    0xa8(%rsp),%rsi
  lea    0xac(%rsp),%rdi
  mov    $0x0,%eax
  call   <SKP_Silk_sum_sqr_shift@plt>
  mov    0xa8(%rsp),%eax
  cmp    $0x8,%eax
  jle    L356
  sub    $0x8,%eax
  mov    %eax,%ecx
  shll   %cl,0xac(%rsp)
  mov    $0x8,%eax
L406:
  mov    %eax,0xa8(%rsp)
  movq   $0x0,0xb0(%rsp)
  movq   $0x0,0xb8(%rsp)
  movq   $0x0,0xc0(%rsp)
  movq   $0x0,0xc8(%rsp)
  movq   $0x0,0xd0(%rsp)
  movq   $0x0,0xd8(%rsp)
  movq   $0x0,0xe0(%rsp)
  movq   $0x0,0xe8(%rsp)
  test   %eax,%eax
  jle    L114
  cmpl   $0x0,0x18(%rsp)
  jle    L196
  mov    0x6c(%rsp),%r15d
  movslq %r15d,%r14
  add    %r14,%r14
  mov    0x70(%rsp),%rbp
  mov    $0x0,%r13d
  mov    %r14,(%rsp)
  mov    0x258(%rsp),%r12d
L408:
  mov    %rbp,%r14
  test   %r12d,%r12d
  jle    L295
  mov    $0x1,%ebx
L324:
  mov    %r15d,%edx
  sub    %ebx,%edx
  lea    0x0(%rbp,%rbx,2),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <SKP_Silk_inner_prod16_aligned_64@plt>
  mov    0xa8(%rsp),%ecx
  sar    %cl,%eax
  add    %eax,0xac(%rsp,%rbx,4)
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jge    L324
L295:
  add    $0x1,%r13d
  add    (%rsp),%rbp
  cmp    %r13d,0x18(%rsp)
  jne    L408
L196:
  movdqa 0xb0(%rsp),%xmm0
  movaps %xmm0,0xf0(%rsp)
  movdqa 0xc0(%rsp),%xmm1
  movaps %xmm1,0x100(%rsp)
  movdqa 0xd0(%rsp),%xmm2
  movaps %xmm2,0x110(%rsp)
  movdqa 0xe0(%rsp),%xmm3
  movaps %xmm3,0x120(%rsp)
  movslq 0x250(%rsp),%rax
  mov    %rax,%rbx
  mov    %rax,0x80(%rsp)
  mov    0xac(%rsp),%edx
  movslq %edx,%rax
  imul   %rbx,%rax
  sar    $0x20,%rax
  lea    0x1(%rdx,%rax,1),%esi
  mov    %esi,0x170(%rsp)
  mov    %esi,0x1c0(%rsp)
  cmpl   $0x0,0x258(%rsp)
  jle    L256
  lea    0x1c0(%rsp),%rax
  mov    %rax,0x58(%rsp)
  lea    0x130(%rsp),%rbx
  mov    %rbx,0x78(%rsp)
  movslq 0x6c(%rsp),%rax
  add    %rax,%rax
  mov    %rax,0x20(%rsp)
  mov    %rbx,0x60(%rsp)
  movl   $0xffffffff,0x68(%rsp)
  movq   $0x0,0x10(%rsp)
  movl   $0x0,0x54(%rsp)
  lea    0x1c4(%rsp),%rax
  mov    %rax,0x28(%rsp)
  jmp    L456
L356:
  mov    0xac(%rsp),%edi
  mov    $0x0,%eax
  call   <SKP_Silk_CLZ32@plt>
  mov    %eax,%edx
  mov    $0x3,%eax
  sub    %edx,%eax
  test   %eax,%eax
  jle    L340
  mov    $0x8,%edx
  sub    0xa8(%rsp),%edx
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    0xac(%rsp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
L201:
  mov    %edx,0xac(%rsp)
  add    0xa8(%rsp),%eax
  jmp    L406
L340:
  mov    $0xfffffff0,%edx
  sub    0xa8(%rsp),%edx
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,%ecx
  neg    %ecx
  mov    0xac(%rsp),%edx
  shl    %cl,%edx
  jmp    L201
L114:
  cmpl   $0x0,0x18(%rsp)
  jle    L196
  mov    0x6c(%rsp),%r15d
  movslq %r15d,%r14
  add    %r14,%r14
  mov    0x70(%rsp),%rbp
  mov    $0x0,%r13d
  mov    %r14,(%rsp)
  mov    0x258(%rsp),%r12d
  jmp    L181
L271:
  add    $0x1,%r13d
  add    (%rsp),%rbp
  cmp    %r13d,0x18(%rsp)
  je     L196
L181:
  mov    %rbp,%r14
  test   %r12d,%r12d
  jle    L271
  mov    $0x1,%ebx
L364:
  mov    %r15d,%edx
  sub    %ebx,%edx
  lea    0x0(%rbp,%rbx,2),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <SKP_Silk_inner_prod_aligned@plt>
  mov    0xa8(%rsp),%ecx
  neg    %ecx
  shl    %cl,%eax
  add    %eax,0xac(%rsp,%rbx,4)
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jge    L364
  jmp    L271
L69:
  cmpl   $0x0,0x18(%rsp)
  jle    L126
  mov    0x6c(%rsp),%eax
  sub    0x54(%rsp),%eax
  cltq
  lea    (%rax,%rax,1),%rdi
  mov    %rdi,0x30(%rsp)
  mov    0x70(%rsp),%rbx
  mov    %rbx,%rsi
  add    0x10(%rsp),%rsi
  mov    %rsi,0x8(%rsp)
  add    %rdi,%rbx
  mov    %rbx,%r9
  neg    %rax
  add    %rax,%rax
  mov    %rax,0x38(%rsp)
  movl   $0x0,(%rsp)
  mov    %r10d,%eax
  neg    %eax
  mov    %eax,0x1c(%rsp)
  not    %r10d
  mov    0x68(%rsp),%r13d
  jmp    L259
L9:
  jne    L91
  neg    %r9d
  mov    0x50(%rsp),%eax
  mov    %eax,%ecx
  shl    %cl,%r9d
  neg    %r8d
  shl    %cl,%r8d
  jmp    L205
L419:
  jne    L84
  neg    %edi
  neg    %esi
L94:
  mov    %edi,%r12d
  sar    $0x10,%r12d
  mov    %esi,%ebp
  sar    $0x10,%ebp
  mov    0x8(%rsp),%r8
  mov    $0x0,%edx
  movzwl %di,%ebx
  movzwl %si,%r11d
  mov    %r10d,%ecx
L206:
  movswl (%r8),%eax
  shl    %cl,%eax
  movswl %ax,%r14d
  mov    %ebx,%r10d
  imul   %r14d,%r10d
  sar    $0x10,%r10d
  imul   %r12d,%r14d
  add    %r14d,%r10d
  sar    $0xf,%eax
  add    $0x1,%eax
  sar    %eax
  imul   %edi,%eax
  lea    (%r10,%rax,1),%eax
  add    %eax,0x170(%rsp,%rdx,4)
  movswl -0x2(%r9,%rdx,2),%eax
  shl    %cl,%eax
  movswl %ax,%r14d
  mov    %r11d,%r10d
  imul   %r14d,%r10d
  sar    $0x10,%r10d
  imul   %ebp,%r14d
  add    %r14d,%r10d
  sar    $0xf,%eax
  add    $0x1,%eax
  sar    %eax
  imul   %esi,%eax
  lea    (%r10,%rax,1),%eax
  add    %eax,0x1c0(%rsp,%rdx,4)
  add    $0x1,%rdx
  sub    $0x2,%r8
  cmp    %edx,%r15d
  jge    L206
  mov    %ecx,%r10d
L84:
  addl   $0x1,(%rsp)
  mov    (%rsp),%eax
  mov    0x20(%rsp),%rsi
  add    %rsi,0x8(%rsp)
  add    %rsi,%r9
  cmp    %eax,0x18(%rsp)
  je     L126
L259:
  mov    0x38(%rsp),%rax
  add    %r9,%rax
  mov    0x10(%rsp),%rbx
  movswl (%rax,%rbx,1),%edi
  mov    %edi,%ebx
  mov    0x1c(%rsp),%edx
  mov    %edx,%ecx
  shl    %cl,%ebx
  neg    %ebx
  mov    0x30(%rsp),%rsi
  movswl -0x2(%rax,%rsi,1),%esi
  mov    %esi,%ebp
  shl    %cl,%ebp
  neg    %ebp
  shl    $0x11,%edi
  shl    $0x11,%esi
  test   %r15d,%r15d
  jle    L419
  mov    0x8(%rsp),%r11
  mov    $0x0,%eax
L282:
  movswl -0x2(%r11),%r8d
  mov    %r8d,%edx
  imul   %ebx,%edx
  add    %edx,0xb0(%rsp,%rax,4)
  movswl (%r9,%rax,2),%ecx
  mov    %ecx,%edx
  imul   %ebp,%edx
  add    %edx,0xf0(%rsp,%rax,4)
  mov    0x130(%rsp,%rax,4),%edx
  sar    $0x6,%edx
  add    $0x1,%edx
  sar    %edx
  imul   %edx,%r8d
  add    %r8d,%edi
  imul   %edx,%ecx
  add    %ecx,%esi
  mov    %rax,%rdx
  add    $0x1,%rax
  sub    $0x2,%r11
  cmp    %r13,%rdx
  jne    L282
  neg    %edi
  neg    %esi
  jmp    L94
L126:
  mov    0x10(%rsp),%rax
  mov    0xb0(%rsp,%rax,2),%ebx
  mov    %ebx,%esi
  mov    0xf0(%rsp,%rax,2),%r14d
  mov    0x170(%rsp),%r13d
  add    0x1c0(%rsp),%r13d
  test   %r15d,%r15d
  jle    L461
  lea    -0x4(%rax,%rax,1),%r12
  mov    0x68(%rsp),%eax
  add    $0x2,%rax
  mov    %rax,0x8(%rsp)
  mov    $0x1,%ebp
  movl   $0x0,(%rsp)
  mov    %r15d,0x1c(%rsp)
  mov    %ebx,%r15d
L404:
  mov    0x12c(%rsp,%rbp,4),%ebx
  mov    %ebx,%edi
  neg    %edi
  cmovs  %ebx,%edi
  mov    $0x0,%eax
  call   <SKP_Silk_CLZ32@plt>
  sub    $0x1,%eax
  mov    $0x8,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  mov    %eax,%ecx
  shl    %cl,%ebx
  movslq %ebx,%rbx
  mov    $0x8,%ecx
  sub    %eax,%ecx
  movslq 0xf0(%rsp,%r12,1),%rax
  imul   %rbx,%rax
  sar    $0x20,%rax
  shl    %cl,%eax
  add    %eax,%r15d
  movslq 0xb0(%rsp,%r12,1),%rax
  imul   %rbx,%rax
  sar    $0x20,%rax
  shl    %cl,%eax
  add    %eax,%r14d
  mov    0x28(%rsp),%rax
  movslq (%rax,%r12,1),%rax
  imul   %rbx,%rax
  sar    $0x20,%rax
  shl    %cl,%eax
  add    %eax,(%rsp)
  mov    0x170(%rsp,%rbp,4),%eax
  add    0x1c0(%rsp,%rbp,4),%eax
  cltq
  imul   %rbx,%rax
  sar    $0x20,%rax
  shl    %cl,%eax
  add    %eax,%r13d
  add    $0x1,%rbp
  sub    $0x4,%r12
  cmp    %rbp,0x8(%rsp)
  jne    L404
  mov    %r15d,%esi
  mov    0x1c(%rsp),%r15d
  mov    0x54(%rsp),%eax
  lea    0x1(%rax),%ebx
  mov    0x10(%rsp),%rax
  mov    %esi,0x174(%rsp,%rax,2)
  mov    0x58(%rsp),%rax
  mov    %r14d,0x4(%rax)
  mov    (%rsp),%edi
  add    %r14d,%edi
  mov    %edi,%eax
  neg    %eax
  lea    (%rax,%rax,1),%edi
  mov    %edi,%eax
  neg    %eax
  cmovs  %edi,%eax
  cmp    %eax,%r13d
  jle    L58
  mov    $0x1f,%edx
  mov    %r13d,%esi
  mov    $0x0,%eax
  call   <SKP_DIV32_varQ@plt>
  mov    %eax,%r8d
  mov    %ebx,%r10d
  sar    %r10d
  mov    0x60(%rsp),%rcx
  mov    0x78(%rsp),%rdx
  mov    $0x0,%esi
  movslq %eax,%r9
L291:
  mov    (%rdx),%eax
  mov    -0x4(%rcx),%r11d
  movslq %r11d,%rdi
  imul   %r9,%rdi
  sar    $0x20,%rdi
  lea    (%rax,%rdi,2),%edi
  mov    %edi,(%rdx)
  cltq
  imul   %r9,%rax
  sar    $0x20,%rax
  lea    (%r11,%rax,2),%eax
  mov    %eax,-0x4(%rcx)
  add    $0x1,%esi
  add    $0x4,%rdx
  sub    $0x4,%rcx
  cmp    %esi,%r10d
  jg     L291
  mov    %r8d,%eax
  sar    $0x7,%eax
  mov    0x60(%rsp),%rsi
  mov    %eax,(%rsi)
L135:
  lea    0x170(%rsp),%rcx
  mov    0x58(%rsp),%rdx
  mov    $0x0,%esi
  movslq %r8d,%r8
L403:
  mov    (%rcx),%eax
  mov    0x4(%rdx),%r9d
  movslq %r9d,%rdi
  imul   %r8,%rdi
  sar    $0x20,%rdi
  lea    (%rax,%rdi,2),%edi
  mov    %edi,(%rcx)
  cltq
  imul   %r8,%rax
  sar    $0x20,%rax
  lea    (%r9,%rax,2),%eax
  mov    %eax,0x4(%rdx)
  add    $0x1,%esi
  add    $0x4,%rcx
  sub    $0x4,%rdx
  cmp    %ebx,%esi
  jle    L403
L168:
  addl   $0x1,0x54(%rsp)
  addq   $0x4,0x58(%rsp)
  addq   $0x4,0x60(%rsp)
  addq   $0x2,0x10(%rsp)
  addl   $0x1,0x68(%rsp)
  cmp    0x258(%rsp),%ebx
  jge    L437
L456:
  mov    0x54(%rsp),%r15d
  mov    0xa8(%rsp),%r10d
  cmp    $0xffffffff,%r10d
  jl     L69
  cmpl   $0x0,0x18(%rsp)
  jle    L126
  mov    0x6c(%rsp),%eax
  sub    0x54(%rsp),%eax
  cltq
  lea    (%rax,%rax,1),%rdi
  mov    %rdi,0x38(%rsp)
  mov    0x70(%rsp),%rbx
  mov    %rbx,%rsi
  add    0x10(%rsp),%rsi
  mov    %rsi,0x8(%rsp)
  add    %rdi,%rbx
  neg    %rax
  add    %rax,%rax
  mov    %rax,0x40(%rsp)
  movl   $0x0,(%rsp)
  mov    $0x10,%eax
  sub    %r10d,%eax
  mov    %eax,0x30(%rsp)
  mov    $0x8,%eax
  sub    %r10d,%eax
  mov    %eax,0x50(%rsp)
  mov    0x68(%rsp),%eax
  mov    %rax,0x48(%rsp)
L237:
  mov    0x40(%rsp),%rax
  add    %rbx,%rax
  mov    0x10(%rsp),%rsi
  movswl (%rax,%rsi,1),%r9d
  mov    %r9d,%r12d
  mov    0x30(%rsp),%esi
  mov    %esi,%ecx
  shl    %cl,%r12d
  neg    %r12d
  mov    0x38(%rsp),%rdi
  movswl -0x2(%rax,%rdi,1),%r8d
  mov    %r8d,%ebp
  shl    %cl,%ebp
  neg    %ebp
  shl    $0x8,%r9d
  shl    $0x8,%r8d
  test   %r15d,%r15d
  jle    L9
  mov    %r12d,%r14d
  sar    $0x10,%r14d
  mov    %ebp,%r13d
  sar    $0x10,%r13d
  mov    0x8(%rsp),%r10
  mov    $0x0,%edx
  movzwl %r12w,%r12d
  movzwl %bp,%ebp
  mov    %r15d,0x1c(%rsp)
  mov    0x48(%rsp),%r15
L457:
  movswl -0x2(%r10),%esi
  mov    %r12d,%eax
  imul   %esi,%eax
  sar    $0x10,%eax
  mov    %r14d,%ecx
  imul   %esi,%ecx
  add    %ecx,%eax
  add    %eax,0xb0(%rsp,%rdx,4)
  movswl (%rbx,%rdx,2),%ecx
  mov    %ebp,%eax
  imul   %ecx,%eax
  sar    $0x10,%eax
  mov    %r13d,%edi
  imul   %ecx,%edi
  add    %edi,%eax
  add    %eax,0xf0(%rsp,%rdx,4)
  mov    0x130(%rsp,%rdx,4),%eax
  mov    %eax,%r11d
  sar    $0x10,%r11d
  movzwl %ax,%eax
  mov    %esi,%edi
  imul   %eax,%edi
  sar    $0x10,%edi
  imul   %r11d,%esi
  add    %esi,%edi
  add    %edi,%r9d
  imul   %ecx,%eax
  sar    $0x10,%eax
  imul   %r11d,%ecx
  add    %ecx,%eax
  add    %eax,%r8d
  mov    %rdx,%rax
  add    $0x1,%rdx
  sub    $0x2,%r10
  cmp    %r15,%rax
  jne    L457
  mov    0x1c(%rsp),%r15d
  neg    %r9d
  mov    0x50(%rsp),%eax
  mov    %eax,%ecx
  shl    %cl,%r9d
  neg    %r8d
  shl    %cl,%r8d
L205:
  mov    %r9d,%edi
  sar    $0x10,%edi
  mov    %r8d,%esi
  sar    $0x10,%esi
  mov    0x8(%rsp),%rcx
  mov    $0x0,%eax
  movzwl %r9w,%r9d
  movzwl %r8w,%r8d
L387:
  movswl (%rcx),%r10d
  mov    %r9d,%edx
  imul   %r10d,%edx
  sar    $0x10,%edx
  imul   %edi,%r10d
  add    %r10d,%edx
  add    %edx,0x170(%rsp,%rax,4)
  movswl -0x2(%rbx,%rax,2),%r10d
  mov    %r8d,%edx
  imul   %r10d,%edx
  sar    $0x10,%edx
  imul   %esi,%r10d
  add    %r10d,%edx
  add    %edx,0x1c0(%rsp,%rax,4)
  add    $0x1,%rax
  sub    $0x2,%rcx
  cmp    %eax,%r15d
  jge    L387
L91:
  addl   $0x1,(%rsp)
  mov    (%rsp),%eax
  mov    0x20(%rsp),%rdi
  add    %rdi,0x8(%rsp)
  add    %rdi,%rbx
  cmp    %eax,0x18(%rsp)
  jne    L237
  jmp    L126
L461:
  mov    0x54(%rsp),%eax
  lea    0x1(%rax),%ebx
  mov    0x10(%rsp),%rax
  mov    %esi,0x174(%rsp,%rax,2)
  mov    0x58(%rsp),%rax
  mov    %r14d,0x4(%rax)
  mov    %r14d,%edi
  neg    %edi
  add    %edi,%edi
  mov    %edi,%eax
  neg    %eax
  cmovs  %edi,%eax
  cmp    %r13d,%eax
  jge    L154
  mov    $0x1f,%edx
  mov    %r13d,%esi
  mov    $0x0,%eax
  call   <SKP_DIV32_varQ@plt>
  mov    %eax,%r8d
  sar    $0x7,%eax
  mov    0x60(%rsp),%rsi
  mov    %eax,(%rsi)
  test   %ebx,%ebx
  js     L168
  jmp    L135
L154:
  mov    %r15d,%r14d
  jmp    L76
L256:
  mov    $0x10000,%eax
  jmp    L433
L58:
  mov    %r15d,%r14d
L76:
  mov    0x258(%rsp),%edx
  sub    %r14d,%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  movslq %r14d,%rax
  lea    0x130(%rsp,%rax,4),%rdi
  mov    $0x0,%esi
  call   <memset@plt>
L437:
  mov    0x170(%rsp),%esi
  mov    0x258(%rsp),%r10d
  mov    $0x0,%r9d
  mov    $0x10000,%eax
  mov    0x98(%rsp),%r8
L310:
  mov    0x130(%rsp,%r9,4),%edx
  sar    $0x7,%edx
  add    $0x1,%edx
  mov    %edx,%edi
  sar    %edi
  mov    0x174(%rsp,%r9,4),%ebp
  movswl %di,%r11d
  movzwl %bp,%ecx
  imul   %r11d,%ecx
  sar    $0x10,%ecx
  mov    %ebp,%ebx
  sar    $0x10,%ebx
  imul   %r11d,%ebx
  add    %ebx,%ecx
  add    %esi,%ecx
  mov    %edx,%ebx
  sar    $0x10,%ebx
  add    $0x1,%ebx
  sar    %ebx
  imul   %ebx,%ebp
  lea    0x0(%rbp,%rcx,1),%esi
  movzwl %di,%ecx
  imul   %r11d,%ecx
  sar    $0x10,%ecx
  sar    $0x11,%edx
  imul   %r11d,%edx
  add    %ecx,%edx
  add    %edx,%eax
  imul   %edi,%ebx
  add    %ebx,%eax
  neg    %edi
  mov    %edi,(%r8,%r9,4)
  add    $0x1,%r9
  cmp    %r9,%r10
  jne    L310
L433:
  movslq 0xac(%rsp),%rcx
  imul   0x80(%rsp),%rcx
  sar    $0x20,%rcx
  mov    %eax,%edi
  neg    %edi
  movswl %di,%edi
  movzwl %cx,%edx
  imul   %edi,%edx
  sar    $0x10,%edx
  mov    %ecx,%r8d
  sar    $0x10,%r8d
  imul   %r8d,%edi
  add    %edi,%edx
  add    %esi,%edx
  neg    %eax
  sar    $0xf,%eax
  add    $0x1,%eax
  sar    %eax
  imul   %ecx,%eax
  add    %edx,%eax
  mov    0x88(%rsp),%rbx
  mov    %eax,(%rbx)
  mov    0xa8(%rsp),%eax
  neg    %eax
  mov    0x90(%rsp),%rbx
  mov    %eax,(%rbx)
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L441
  add    $0x218,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L441:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void SKP_Silk_burg_modified(int *res_nrg, int *res_nrg_Q, int A_Q16[], const short x[], const int subfr_length, const int nb_subfr, const int WhiteNoiseFrac_Q32, const int D) {
  int k, n, s, lz, rshifts, rshifts_extra;
  int C0, num, nrg, rc_Q31, Atmp_QA, Atmp1, tmp1, tmp2, x1, x2;
  const short *x_ptr;
  int C_first_row[16];
  int C_last_row[16];
  int Af_QA[16];
  int CAf[16 + 1];
  int CAb[16 + 1];
  ;
  ;
  SKP_Silk_sum_sqr_shift(&C0, &rshifts, x, nb_subfr * subfr_length);
  if (rshifts > (32 - 24)) {
    C0 = ((C0) << (rshifts - (32 - 24)));
    ;
    rshifts = (32 - 24);
  } else {
    lz = SKP_Silk_CLZ32(C0) - 1;
    rshifts_extra = 2 - lz;
    if (rshifts_extra > 0) {
      rshifts_extra = (((rshifts_extra) < ((32 - 24) - rshifts)) ? (rshifts_extra) : ((32 - 24) - rshifts));
      C0 = ((C0) >> (rshifts_extra));
    } else {
      rshifts_extra = (((rshifts_extra) > (-16 - rshifts)) ? (rshifts_extra) : (-16 - rshifts));
      C0 = ((C0) << (-rshifts_extra));
    }
    rshifts += rshifts_extra;
  }
  memset((C_first_row), (0), (16 * sizeof(int)));
  if (rshifts > 0) {
    for (s = 0; s < nb_subfr; s++) {
      x_ptr = x + s * subfr_length;
      for (n = 1; n < D + 1; n++) {
        C_first_row[n - 1] += (int)((SKP_Silk_inner_prod16_aligned_64(x_ptr, x_ptr + n, subfr_length - n)) >> (rshifts));
      }
    }
  } else {
    for (s = 0; s < nb_subfr; s++) {
      x_ptr = x + s * subfr_length;
      for (n = 1; n < D + 1; n++) {
        C_first_row[n - 1] += ((SKP_Silk_inner_prod_aligned(x_ptr, x_ptr + n, subfr_length - n)) << (-rshifts));
      }
    }
  }
  memcpy((C_last_row), (C_first_row), (16 * sizeof(int)));
  CAb[0] = CAf[0] = C0 + (int)((((long long)((WhiteNoiseFrac_Q32)) * ((C0)))) >> (32)) + 1;
  for (n = 0; n < D; n++) {
    if (rshifts > -2) {
      for (s = 0; s < nb_subfr; s++) {
        x_ptr = x + s * subfr_length;
        x1 = -(((int)x_ptr[n]) << (16 - rshifts));
        x2 = -(((int)x_ptr[subfr_length - n - 1]) << (16 - rshifts));
        tmp1 = (((int)x_ptr[n]) << (24 - 16));
        tmp2 = (((int)x_ptr[subfr_length - n - 1]) << (24 - 16));
        for (k = 0; k < n; k++) {
          C_first_row[k] = ((C_first_row[k]) + ((((x1) >> 16) * (int)((short)(x_ptr[n - k - 1]))) + ((((x1)&0x0000FFFF) * (int)((short)(x_ptr[n - k - 1]))) >> 16)));
          C_last_row[k] = ((C_last_row[k]) + ((((x2) >> 16) * (int)((short)(x_ptr[subfr_length - n + k]))) + ((((x2)&0x0000FFFF) * (int)((short)(x_ptr[subfr_length - n + k]))) >> 16)));
          Atmp_QA = Af_QA[k];
          tmp1 = ((tmp1) + ((((Atmp_QA) >> 16) * (int)((short)(x_ptr[n - k - 1]))) + ((((Atmp_QA)&0x0000FFFF) * (int)((short)(x_ptr[n - k - 1]))) >> 16)));
          tmp2 = ((tmp2) + ((((Atmp_QA) >> 16) * (int)((short)(x_ptr[subfr_length - n + k]))) + ((((Atmp_QA)&0x0000FFFF) * (int)((short)(x_ptr[subfr_length - n + k]))) >> 16)));
        }
        tmp1 = ((-tmp1) << (32 - 24 - rshifts));
        tmp2 = ((-tmp2) << (32 - 24 - rshifts));
        for (k = 0; k <= n; k++) {
          CAf[k] = ((CAf[k]) + ((((tmp1) >> 16) * (int)((short)(x_ptr[n - k]))) + ((((tmp1)&0x0000FFFF) * (int)((short)(x_ptr[n - k]))) >> 16)));
          CAb[k] = ((CAb[k]) + ((((tmp2) >> 16) * (int)((short)(x_ptr[subfr_length - n + k - 1]))) + ((((tmp2)&0x0000FFFF) * (int)((short)(x_ptr[subfr_length - n + k - 1]))) >> 16)));
        }
      }
    } else {
      for (s = 0; s < nb_subfr; s++) {
        x_ptr = x + s * subfr_length;
        x1 = -(((int)x_ptr[n]) << (-rshifts));
        x2 = -(((int)x_ptr[subfr_length - n - 1]) << (-rshifts));
        tmp1 = (((int)x_ptr[n]) << (17));
        tmp2 = (((int)x_ptr[subfr_length - n - 1]) << (17));
        for (k = 0; k < n; k++) {
          C_first_row[k] = (((C_first_row[k])) + (((x1) * (x_ptr[n - k - 1]))));
          C_last_row[k] = (((C_last_row[k])) + (((x2) * (x_ptr[subfr_length - n + k]))));
          Atmp1 = ((24 - 17) == 1 ? ((Af_QA[k]) >> 1) + ((Af_QA[k]) & 1) : (((Af_QA[k]) >> ((24 - 17) - 1)) + 1) >> 1);
          tmp1 = (((tmp1)) + (((x_ptr[n - k - 1]) * (Atmp1))));
          tmp2 = (((tmp2)) + (((x_ptr[subfr_length - n + k]) * (Atmp1))));
        }
        tmp1 = -tmp1;
        tmp2 = -tmp2;
        for (k = 0; k <= n; k++) {
          CAf[k] = ((((((CAf[k])) + (((((tmp1)) >> 16) * (int)((short)(((((int)x_ptr[n - k]) << (-rshifts - 1)))))) + (((((tmp1)) & 0x0000FFFF) * (int)((short)(((((int)x_ptr[n - k]) << (-rshifts - 1)))))) >> 16))))) + ((((tmp1)) * (((16) == 1 ? ((((((int)x_ptr[n - k]) << (-rshifts - 1)))) >> 1) + ((((((int)x_ptr[n - k]) << (-rshifts - 1)))) & 1) : (((((((int)x_ptr[n - k]) << (-rshifts - 1)))) >> ((16) - 1)) + 1) >> 1)))));
          CAb[k] = ((((((CAb[k])) + (((((tmp2)) >> 16) * (int)((short)(((((int)x_ptr[subfr_length - n + k - 1]) << (-rshifts - 1)))))) + (((((tmp2)) & 0x0000FFFF) * (int)((short)(((((int)x_ptr[subfr_length - n + k - 1]) << (-rshifts - 1)))))) >> 16))))) + ((((tmp2)) * (((16) == 1 ? ((((((int)x_ptr[subfr_length - n + k - 1]) << (-rshifts - 1)))) >> 1) + ((((((int)x_ptr[subfr_length - n + k - 1]) << (-rshifts - 1)))) & 1) : (((((((int)x_ptr[subfr_length - n + k - 1]) << (-rshifts - 1)))) >> ((16) - 1)) + 1) >> 1)))));
        }
      }
    }
    tmp1 = C_first_row[n];
    tmp2 = C_last_row[n];
    num = 0;
    nrg = ((CAb[0]) + (CAf[0]));
    for (k = 0; k < n; k++) {
      Atmp_QA = Af_QA[k];
      lz = SKP_Silk_CLZ32((((Atmp_QA) > 0) ? (Atmp_QA) : -(Atmp_QA))) - 1;
      lz = (((32 - 24) < (lz)) ? (32 - 24) : (lz));
      Atmp1 = ((Atmp_QA) << (lz));
      tmp1 = (((tmp1)) + (((((int)((((long long)((C_last_row[n - k - 1])) * ((Atmp1)))) >> (32)))) << ((32 - 24 - lz)))));
      tmp2 = (((tmp2)) + (((((int)((((long long)((C_first_row[n - k - 1])) * ((Atmp1)))) >> (32)))) << ((32 - 24 - lz)))));
      num = (((num)) + (((((int)((((long long)((CAb[n - k])) * ((Atmp1)))) >> (32)))) << ((32 - 24 - lz)))));
      nrg = (((nrg)) + (((((int)((((long long)((((CAb[k + 1]) + (CAf[k + 1])))) * ((Atmp1)))) >> (32)))) << ((32 - 24 - lz)))));
    }
    CAf[n + 1] = tmp1;
    CAb[n + 1] = tmp2;
    num = ((num) + (tmp2));
    num = ((-num) << (1));
    if ((((num) > 0) ? (num) : -(num)) < nrg) {
      rc_Q31 = SKP_DIV32_varQ(num, nrg, 31);
    } else {
      memset((&Af_QA[n]), (0), ((D - n) * sizeof(int)));
      ;
      break;
    }
    for (k = 0; k < (n + 1) >> 1; k++) {
      tmp1 = Af_QA[k];
      tmp2 = Af_QA[n - k - 1];
      Af_QA[k] = (((tmp1)) + (((((int)((((long long)((tmp2)) * ((rc_Q31)))) >> (32)))) << ((1)))));
      Af_QA[n - k - 1] = (((tmp2)) + (((((int)((((long long)((tmp1)) * ((rc_Q31)))) >> (32)))) << ((1)))));
    }
    Af_QA[n] = ((rc_Q31) >> (31 - 24));
    for (k = 0; k <= n + 1; k++) {
      tmp1 = CAf[k];
      tmp2 = CAb[n - k + 1];
      CAf[k] = (((tmp1)) + (((((int)((((long long)((tmp2)) * ((rc_Q31)))) >> (32)))) << ((1)))));
      CAb[n - k + 1] = (((tmp2)) + (((((int)((((long long)((tmp1)) * ((rc_Q31)))) >> (32)))) << ((1)))));
    }
  }
  nrg = CAf[0];
  tmp1 = 1 << 16;
  for (k = 0; k < D; k++) {
    Atmp1 = ((24 - 16) == 1 ? ((Af_QA[k]) >> 1) + ((Af_QA[k]) & 1) : (((Af_QA[k]) >> ((24 - 16) - 1)) + 1) >> 1);
    nrg = ((((((nrg)) + (((((CAf[k + 1])) >> 16) * (int)((short)((Atmp1)))) + (((((CAf[k + 1])) & 0x0000FFFF) * (int)((short)((Atmp1)))) >> 16))))) + ((((CAf[k + 1])) * (((16) == 1 ? (((Atmp1)) >> 1) + (((Atmp1)) & 1) : ((((Atmp1)) >> ((16) - 1)) + 1) >> 1)))));
    tmp1 = ((((((tmp1)) + (((((Atmp1)) >> 16) * (int)((short)((Atmp1)))) + (((((Atmp1)) & 0x0000FFFF) * (int)((short)((Atmp1)))) >> 16))))) + ((((Atmp1)) * (((16) == 1 ? (((Atmp1)) >> 1) + (((Atmp1)) & 1) : ((((Atmp1)) >> ((16) - 1)) + 1) >> 1)))));
    A_Q16[k] = -Atmp1;
  }
  *res_nrg = ((((((nrg)) + ((((((int)((((long long)((WhiteNoiseFrac_Q32)) * ((C0)))) >> (32)))) >> 16) * (int)((short)((-tmp1)))) + ((((((int)((((long long)((WhiteNoiseFrac_Q32)) * ((C0)))) >> (32)))) & 0x0000FFFF) * (int)((short)((-tmp1)))) >> 16))))) + (((((int)((((long long)((WhiteNoiseFrac_Q32)) * ((C0)))) >> (32)))) * (((16) == 1 ? (((-tmp1)) >> 1) + (((-tmp1)) & 1) : ((((-tmp1)) >> ((16) - 1)) + 1) >> 1)))));
  *res_nrg_Q = -rshifts;
}
```