#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int res_nrg0;

/* Variables and functions */
int /*<<< orphan*/ SKP_Silk_A2NLSF(int *, int *, int const);
int /*<<< orphan*/ SKP_Silk_LPC_analysis_filter(short const *, short *, short *,
                                                short *, int, int const);
int /*<<< orphan*/ SKP_Silk_NLSF2A_stable(short *, int *, int const);
int /*<<< orphan*/ SKP_Silk_burg_modified(int *, int *, int *, short const *,
                                          int const, int, int, int const);
int /*<<< orphan*/ SKP_Silk_interpolate(int *, int const *, int *, int,
                                        int const);
int /*<<< orphan*/ SKP_Silk_sum_sqr_shift(int *, int *, short *, int const);
int /*<<< orphan*/ memset(short *, int /*<<< orphan*/, int const);
void SKP_Silk_find_LPC_FIX(int NLSF_Q15[], int *interpIndex,
                           const int prev_NLSFq_Q15[],
                           const int useInterpolatedNLSFs, const int LPC_order,
                           const short x[], const int subfr_length) {
  int k;
  int a_Q16[16];
  int isInterpLower, shift;
  short S[16];
  int res_nrg0, res_nrg1;
  int rshift0, rshift1;
  int a_tmp_Q16[16], res_nrg_interp, res_nrg, res_tmp_nrg, res_nrg_2nd;
  int res_nrg_interp_Q, res_nrg_Q, res_tmp_nrg_Q, res_nrg_2nd_Q;
  short a_tmp_Q12[16];
  int NLSF0_Q15[16];
  short LPC_res[((20 * 24) + 4 * 16) / 2];
  *interpIndex = 4;
  SKP_Silk_burg_modified(&res_nrg, &res_nrg_Q, a_Q16, x, subfr_length, 4,
                         257698, LPC_order);
  if (useInterpolatedNLSFs == 1) {
    SKP_Silk_burg_modified(&res_tmp_nrg, &res_tmp_nrg_Q, a_tmp_Q16,
                           x + (4 >> 1) * subfr_length, subfr_length, (4 >> 1),
                           257698, LPC_order);
    shift = res_tmp_nrg_Q - res_nrg_Q;
    if (shift >= 0) {
      if (shift < 32) {
        res_nrg = res_nrg - ((res_tmp_nrg) >> (shift));
      }
    } else {
      ;
      res_nrg = ((res_nrg) >> (-shift)) - res_tmp_nrg;
      res_nrg_Q = res_tmp_nrg_Q;
    }
    SKP_Silk_A2NLSF(NLSF_Q15, a_tmp_Q16, LPC_order);
    res_nrg_2nd = 0x7FFFFFFF;
    for (k = 3; k >= 0; k--) {
      SKP_Silk_interpolate(NLSF0_Q15, prev_NLSFq_Q15, NLSF_Q15, k, LPC_order);
      SKP_Silk_NLSF2A_stable(a_tmp_Q12, NLSF0_Q15, LPC_order);
      memset((S), (0), (LPC_order * sizeof(short)));
      SKP_Silk_LPC_analysis_filter(x, a_tmp_Q12, S, LPC_res, 2 * subfr_length,
                                   LPC_order);
      SKP_Silk_sum_sqr_shift(&res_nrg0, &rshift0, LPC_res + LPC_order,
                             subfr_length - LPC_order);
      SKP_Silk_sum_sqr_shift(&res_nrg1, &rshift1,
                             LPC_res + LPC_order + subfr_length,
                             subfr_length - LPC_order);
      shift = rshift0 - rshift1;
      if (shift >= 0) {
        res_nrg1 = ((res_nrg1) >> (shift));
        res_nrg_interp_Q = -rshift0;
      } else {
        res_nrg0 = ((res_nrg0) >> (-shift));
        res_nrg_interp_Q = -rshift1;
      }
      res_nrg_interp = ((res_nrg0) + (res_nrg1));
      shift = res_nrg_interp_Q - res_nrg_Q;
      if (shift >= 0) {
        if (((res_nrg_interp) >> (shift)) < res_nrg) {
          isInterpLower = 1;
        } else {
          isInterpLower = 0;
        }
      } else {
        if (-shift < 32) {
          if (res_nrg_interp < ((res_nrg) >> (-shift))) {
            isInterpLower = 1;
          } else {
            isInterpLower = 0;
          }
        } else {
          isInterpLower = 0;
        }
      }
      if (isInterpLower == 1) {
        res_nrg = res_nrg_interp;
        res_nrg_Q = res_nrg_interp_Q;
        *interpIndex = k;
      }
      res_nrg_2nd = res_nrg_interp;
      res_nrg_2nd_Q = res_nrg_interp_Q;
    }
  }
  if (*interpIndex == 4) {
    SKP_Silk_A2NLSF(NLSF_Q15, a_Q16, LPC_order);
  }
}


x86 assembly (clang, -O0):
<SKP_Silk_find_LPC_FIX>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3a0,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movl   $0x4,(%rax)
lea    -0x70(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    0x10(%rbp),%r8d
mov    -0x20(%rbp),%eax
lea    -0xf8(%rbp),%rdi
lea    -0x108(%rbp),%rsi
mov    $0x4,%r9d
movl   $0x3eea2,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <SKP_Silk_burg_modified@plt>
cmpl   $0x1,-0x1c(%rbp)
jne    14e8 <SKP_Silk_find_LPC_FIX+0x378>
lea    -0xf0(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    0x10(%rbp),%eax
shl    $0x1,%eax
cltq
shl    $0x1,%rax
add    %rax,%rcx
mov    0x10(%rbp),%r8d
mov    -0x20(%rbp),%eax
lea    -0xfc(%rbp),%rdi
lea    -0x10c(%rbp),%rsi
mov    $0x2,%r9d
movl   $0x3eea2,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <SKP_Silk_burg_modified@plt>
mov    -0x10c(%rbp),%eax
sub    -0x108(%rbp),%eax
mov    %eax,-0x78(%rbp)
cmpl   $0x0,-0x78(%rbp)
jl     1264 <SKP_Silk_find_LPC_FIX+0xf4>
cmpl   $0x20,-0x78(%rbp)
jge    125f <SKP_Silk_find_LPC_FIX+0xef>
mov    -0xf8(%rbp),%eax
mov    -0xfc(%rbp),%edx
mov    -0x78(%rbp),%ecx
sar    %cl,%edx
mov    %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0xf8(%rbp)
jmp    1289 <SKP_Silk_find_LPC_FIX+0x119>
mov    -0xf8(%rbp),%eax
xor    %ecx,%ecx
sub    -0x78(%rbp),%ecx
sar    %cl,%eax
sub    -0xfc(%rbp),%eax
mov    %eax,-0xf8(%rbp)
mov    -0x10c(%rbp),%eax
mov    %eax,-0x108(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1070 <SKP_Silk_A2NLSF@plt>
movl   $0x7fffffff,-0x100(%rbp)
ff ff 7f
movl   $0x3,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jl     14e3 <SKP_Silk_find_LPC_FIX+0x373>
lea    -0x170(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
call   1040 <SKP_Silk_interpolate@plt>
lea    -0x130(%rbp),%rdi
lea    -0x170(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1080 <SKP_Silk_NLSF2A_stable@plt>
lea    -0xa0(%rbp),%rdi
movslq -0x20(%rbp),%rax
shl    $0x1,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1050 <memset@plt>
mov    -0x28(%rbp),%rdi
lea    -0x130(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
lea    -0x390(%rbp),%rcx
mov    0x10(%rbp),%r8d
shl    $0x1,%r8d
mov    -0x20(%rbp),%r9d
call   1030 <SKP_Silk_LPC_analysis_filter@plt>
lea    -0x390(%rbp),%rdx
movslq -0x20(%rbp),%rax
shl    $0x1,%rax
add    %rax,%rdx
mov    0x10(%rbp),%ecx
sub    -0x20(%rbp),%ecx
lea    -0xa4(%rbp),%rdi
lea    -0xac(%rbp),%rsi
call   1060 <SKP_Silk_sum_sqr_shift@plt>
lea    -0x390(%rbp),%rdx
movslq -0x20(%rbp),%rax
shl    $0x1,%rax
add    %rax,%rdx
movslq 0x10(%rbp),%rax
shl    $0x1,%rax
add    %rax,%rdx
mov    0x10(%rbp),%ecx
sub    -0x20(%rbp),%ecx
lea    -0xa8(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1060 <SKP_Silk_sum_sqr_shift@plt>
mov    -0xac(%rbp),%eax
sub    -0xb0(%rbp),%eax
mov    %eax,-0x78(%rbp)
cmpl   $0x0,-0x78(%rbp)
jl     13c8 <SKP_Silk_find_LPC_FIX+0x258>
mov    -0xa8(%rbp),%eax
mov    -0x78(%rbp),%ecx
sar    %cl,%eax
mov    %eax,-0xa8(%rbp)
xor    %eax,%eax
sub    -0xac(%rbp),%eax
mov    %eax,-0x104(%rbp)
jmp    13e9 <SKP_Silk_find_LPC_FIX+0x279>
mov    -0xa4(%rbp),%eax
xor    %ecx,%ecx
sub    -0x78(%rbp),%ecx
sar    %cl,%eax
mov    %eax,-0xa4(%rbp)
xor    %eax,%eax
sub    -0xb0(%rbp),%eax
mov    %eax,-0x104(%rbp)
mov    -0xa4(%rbp),%eax
add    -0xa8(%rbp),%eax
mov    %eax,-0xf4(%rbp)
mov    -0x104(%rbp),%eax
sub    -0x108(%rbp),%eax
mov    %eax,-0x78(%rbp)
cmpl   $0x0,-0x78(%rbp)
jl     1443 <SKP_Silk_find_LPC_FIX+0x2d3>
mov    -0xf4(%rbp),%eax
mov    -0x78(%rbp),%ecx
sar    %cl,%eax
cmp    -0xf8(%rbp),%eax
jge    1437 <SKP_Silk_find_LPC_FIX+0x2c7>
movl   $0x1,-0x74(%rbp)
jmp    143e <SKP_Silk_find_LPC_FIX+0x2ce>
movl   $0x0,-0x74(%rbp)
jmp    1492 <SKP_Silk_find_LPC_FIX+0x322>
xor    %eax,%eax
sub    -0x78(%rbp),%eax
cmp    $0x20,%eax
jge    1486 <SKP_Silk_find_LPC_FIX+0x316>
mov    -0xf4(%rbp),%eax
mov    -0xf8(%rbp),%edx
xor    %ecx,%ecx
sub    -0x78(%rbp),%ecx
sar    %cl,%edx
mov    %edx,%ecx
cmp    %ecx,%eax
jge    147a <SKP_Silk_find_LPC_FIX+0x30a>
movl   $0x1,-0x74(%rbp)
jmp    1481 <SKP_Silk_find_LPC_FIX+0x311>
movl   $0x0,-0x74(%rbp)
jmp    148d <SKP_Silk_find_LPC_FIX+0x31d>
movl   $0x0,-0x74(%rbp)
jmp    1492 <SKP_Silk_find_LPC_FIX+0x322>
cmpl   $0x1,-0x74(%rbp)
jne    14bd <SKP_Silk_find_LPC_FIX+0x34d>
mov    -0xf4(%rbp),%eax
mov    %eax,-0xf8(%rbp)
mov    -0x104(%rbp),%eax
mov    %eax,-0x108(%rbp)
mov    -0x2c(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xf4(%rbp),%eax
mov    %eax,-0x100(%rbp)
mov    -0x104(%rbp),%eax
mov    %eax,-0x110(%rbp)
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
jmp    12ad <SKP_Silk_find_LPC_FIX+0x13d>
jmp    14e8 <SKP_Silk_find_LPC_FIX+0x378>
mov    -0x10(%rbp),%rax
cmpl   $0x4,(%rax)
jne    1505 <SKP_Silk_find_LPC_FIX+0x395>
mov    -0x8(%rbp),%rdi
lea    -0x70(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1070 <SKP_Silk_A2NLSF@plt>
add    $0x3a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SKP_Silk_find_LPC_FIX>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x388,%rsp
mov    %r8d,%ebx
mov    %ecx,%r14d
mov    %rdx,0x58(%rsp)
mov    %rdi,0x18(%rsp)
mov    0x3c0(%rsp),%ebp
mov    %rsi,0x38(%rsp)
movl   $0x4,(%rsi)
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
lea    0xe0(%rsp),%rdx
mov    %r9,0x40(%rsp)
mov    %r9,%rcx
mov    %ebp,%r8d
mov    $0x4,%r9d
push   %rbx
push   $0x3eea2
call   1090 <SKP_Silk_burg_modified@plt>
add    $0x10,%rsp
cmp    $0x1,%r14d
jne    13be <SKP_Silk_find_LPC_FIX+0x24e>
lea    0x0(%rbp,%rbp,1),%eax
mov    %eax,0x28(%rsp)
cltq
mov    0x40(%rsp),%rcx
lea    (%rcx,%rax,2),%rcx
lea    0x14(%rsp),%rdi
lea    0x2c(%rsp),%rsi
lea    0x80(%rsp),%rdx
mov    %ebp,%r8d
mov    $0x2,%r9d
push   %rbx
push   $0x3eea2
call   1090 <SKP_Silk_burg_modified@plt>
add    $0x10,%rsp
mov    0x2c(%rsp),%eax
mov    %eax,%ecx
sub    0x8(%rsp),%ecx
js     1239 <SKP_Silk_find_LPC_FIX+0xc9>
cmp    $0x1f,%ecx
ja     124d <SKP_Silk_find_LPC_FIX+0xdd>
mov    0x14(%rsp),%eax
sar    %cl,%eax
sub    %eax,0x4(%rsp)
jmp    124d <SKP_Silk_find_LPC_FIX+0xdd>
mov    0x4(%rsp),%edx
neg    %cl
sar    %cl,%edx
sub    0x14(%rsp),%edx
mov    %edx,0x4(%rsp)
mov    %eax,0x8(%rsp)
lea    0x80(%rsp),%rsi
mov    0x18(%rsp),%rdi
mov    %ebx,%edx
call   1070 <SKP_Silk_A2NLSF@plt>
movslq %ebx,%rax
lea    (%rbx,%rbx,1),%ecx
mov    %ecx,0x24(%rsp)
lea    (%rsp,%rax,2),%rcx
add    $0x160,%rcx
movslq %ebp,%rax
sub    %ebx,%ebp
mov    %rcx,0x48(%rsp)
lea    (%rcx,%rax,2),%rax
mov    %rax,0x50(%rsp)
mov    $0x3,%r12d
lea    0x60(%rsp),%r13
lea    0xc0(%rsp),%r15
jmp    12ba <SKP_Silk_find_LPC_FIX+0x14a>
xchg   %ax,%ax
mov    %edx,0x4(%rsp)
mov    %eax,0x8(%rsp)
mov    0x38(%rsp),%rax
mov    %r12d,(%rax)
add    $0xffffffff,%r12d
jae    13be <SKP_Silk_find_LPC_FIX+0x24e>
lea    0x120(%rsp),%r14
mov    %r14,%rdi
mov    0x58(%rsp),%rsi
mov    0x18(%rsp),%rdx
mov    %r12d,%ecx
mov    %ebx,%r8d
call   1040 <SKP_Silk_interpolate@plt>
mov    %r13,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1080 <SKP_Silk_NLSF2A_stable@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    0x24(%rsp),%edx
call   1050 <memset@plt>
mov    0x40(%rsp),%rdi
mov    %r13,%rsi
mov    %r15,%rdx
lea    0x160(%rsp),%rcx
mov    0x28(%rsp),%r8d
mov    %ebx,%r9d
call   1030 <SKP_Silk_LPC_analysis_filter@plt>
lea    0x10(%rsp),%rdi
lea    0x34(%rsp),%rsi
mov    0x48(%rsp),%rdx
mov    %ebp,%ecx
call   1060 <SKP_Silk_sum_sqr_shift@plt>
lea    0xc(%rsp),%rdi
lea    0x30(%rsp),%rsi
mov    0x50(%rsp),%rdx
mov    %ebp,%ecx
call   1060 <SKP_Silk_sum_sqr_shift@plt>
mov    0x34(%rsp),%eax
mov    0x30(%rsp),%edi
mov    %eax,%ecx
sub    %edi,%ecx
js     1360 <SKP_Silk_find_LPC_FIX+0x1f0>
mov    0xc(%rsp),%edx
sar    %cl,%edx
mov    %edx,0xc(%rsp)
mov    0x10(%rsp),%esi
jmp    1372 <SKP_Silk_find_LPC_FIX+0x202>
nop
mov    0x10(%rsp),%esi
neg    %cl
sar    %cl,%esi
mov    %esi,0x10(%rsp)
mov    0xc(%rsp),%edx
mov    %edi,%eax
add    %esi,%edx
neg    %eax
mov    %eax,%ecx
sub    0x8(%rsp),%ecx
js     13a0 <SKP_Silk_find_LPC_FIX+0x230>
mov    %edx,%esi
sar    %cl,%esi
cmp    0x4(%rsp),%esi
jl     12a0 <SKP_Silk_find_LPC_FIX+0x130>
jmp    12b0 <SKP_Silk_find_LPC_FIX+0x140>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0xffffffe1,%ecx
jb     12b0 <SKP_Silk_find_LPC_FIX+0x140>
mov    0x4(%rsp),%esi
neg    %cl
sar    %cl,%esi
cmp    %esi,%edx
jl     12a0 <SKP_Silk_find_LPC_FIX+0x130>
jmp    12b0 <SKP_Silk_find_LPC_FIX+0x140>
mov    0x38(%rsp),%rax
cmpl   $0x4,(%rax)
jne    13dc <SKP_Silk_find_LPC_FIX+0x26c>
lea    0xe0(%rsp),%rsi
mov    0x18(%rsp),%rdi
mov    %ebx,%edx
call   1070 <SKP_Silk_A2NLSF@plt>
add    $0x388,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @SKP_Silk_find_LPC_FIX(i32* %0, i32* %1, i32* %2, i32 %3, i32 %4, i16* %5, i32 %6) {
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i16*
%14 = alloca i32
%15 = alloca i32
%16 = alloca [16 x i32]
%17 = alloca i32
%18 = alloca i32
%19 = alloca [16 x i16]
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca [16 x i32]
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca [16 x i16]
%34 = alloca [16 x i32]
%35 = alloca [272 x i16]
store i32* %0, i32** %8
store i32* %1, i32** %9
store i32* %2, i32** %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i16* %5, i16** %13
store i32 %6, i32* %14
%36 = load i32*, i32** %9
store i32 4, i32* %36
%37 = getelementptr inbounds [16 x i32], [16 x i32]* %16, i64 0, i64 0
%38 = load i16*, i16** %13
%39 = load i32, i32* %14
%40 = load i32, i32* %12
%41 = call i32 @SKP_Silk_burg_modified(i32* %26, i32* %30, i32* %37, i16* %38, i32 %39, i32 4, i32 257698, i32 %40)
%42 = load i32, i32* %11
%43 = icmp eq i32 %42, 1
br i1 %43, label %44, label %196
44: ; preds = %7
%45 = getelementptr inbounds [16 x i32], [16 x i32]* %24, i64 0, i64 0
%46 = load i16*, i16** %13
%47 = load i32, i32* %14
%48 = mul nsw i32 2, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i16, i16* %46, i64 %49
%51 = load i32, i32* %14
%52 = load i32, i32* %12
%53 = call i32 @SKP_Silk_burg_modified(i32* %27, i32* %31, i32* %45, i16* %50, i32 %51, i32 2, i32 257698, i32 %52)
%54 = load i32, i32* %31
%55 = load i32, i32* %30
%56 = sub nsw i32 %54, %55
store i32 %56, i32* %18
%57 = load i32, i32* %18
%58 = icmp sge i32 %57, 0
br i1 %58, label %59, label %69
59: ; preds = %44
%60 = load i32, i32* %18
%61 = icmp slt i32 %60, 32
br i1 %61, label %62, label %68
62: ; preds = %59
%63 = load i32, i32* %26
%64 = load i32, i32* %27
%65 = load i32, i32* %18
%66 = ashr i32 %64, %65
%67 = sub nsw i32 %63, %66
store i32 %67, i32* %26
br label %68
68: ; preds = %62, %59
br label %77
69: ; preds = %44
%70 = load i32, i32* %26
%71 = load i32, i32* %18
%72 = sub nsw i32 0, %71
%73 = ashr i32 %70, %72
%74 = load i32, i32* %27
%75 = sub nsw i32 %73, %74
store i32 %75, i32* %26
%76 = load i32, i32* %31
store i32 %76, i32* %30
br label %77
77: ; preds = %69, %68
%78 = load i32*, i32** %8
%79 = getelementptr inbounds [16 x i32], [16 x i32]* %24, i64 0, i64 0
%80 = load i32, i32* %12
%81 = call i32 @SKP_Silk_A2NLSF(i32* %78, i32* %79, i32 %80)
store i32 2147483647, i32* %28
store i32 3, i32* %15
br label %82
82: ; preds = %192, %77
%83 = load i32, i32* %15
%84 = icmp sge i32 %83, 0
br i1 %84, label %85, label %195
85: ; preds = %82
%86 = getelementptr inbounds [16 x i32], [16 x i32]* %34, i64 0, i64 0
%87 = load i32*, i32** %10
%88 = load i32*, i32** %8
%89 = load i32, i32* %15
%90 = load i32, i32* %12
%91 = call i32 @SKP_Silk_interpolate(i32* %86, i32* %87, i32* %88, i32 %89, i32 %90)
%92 = getelementptr inbounds [16 x i16], [16 x i16]* %33, i64 0, i64 0
%93 = getelementptr inbounds [16 x i32], [16 x i32]* %34, i64 0, i64 0
%94 = load i32, i32* %12
%95 = call i32 @SKP_Silk_NLSF2A_stable(i16* %92, i32* %93, i32 %94)
%96 = getelementptr inbounds [16 x i16], [16 x i16]* %19, i64 0, i64 0
%97 = load i32, i32* %12
%98 = sext i32 %97 to i64
%99 = mul i64 %98, 2
%100 = trunc i64 %99 to i32
%101 = call i32 @memset(i16* %96, i32 0, i32 %100)
%102 = load i16*, i16** %13
%103 = getelementptr inbounds [16 x i16], [16 x i16]* %33, i64 0, i64 0
%104 = getelementptr inbounds [16 x i16], [16 x i16]* %19, i64 0, i64 0
%105 = getelementptr inbounds [272 x i16], [272 x i16]* %35, i64 0, i64 0
%106 = load i32, i32* %14
%107 = mul nsw i32 2, %106
%108 = load i32, i32* %12
%109 = call i32 @SKP_Silk_LPC_analysis_filter(i16* %102, i16* %103, i16* %104, i16* %105, i32 %107, i32 %108)
%110 = getelementptr inbounds [272 x i16], [272 x i16]* %35, i64 0, i64 0
%111 = load i32, i32* %12
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i16, i16* %110, i64 %112
%114 = load i32, i32* %14
%115 = load i32, i32* %12
%116 = sub nsw i32 %114, %115
%117 = call i32 @SKP_Silk_sum_sqr_shift(i32* %20, i32* %22, i16* %113, i32 %116)
%118 = getelementptr inbounds [272 x i16], [272 x i16]* %35, i64 0, i64 0
%119 = load i32, i32* %12
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i16, i16* %118, i64 %120
%122 = load i32, i32* %14
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i16, i16* %121, i64 %123
%125 = load i32, i32* %14
%126 = load i32, i32* %12
%127 = sub nsw i32 %125, %126
%128 = call i32 @SKP_Silk_sum_sqr_shift(i32* %21, i32* %23, i16* %124, i32 %127)
%129 = load i32, i32* %22
%130 = load i32, i32* %23
%131 = sub nsw i32 %129, %130
store i32 %131, i32* %18
%132 = load i32, i32* %18
%133 = icmp sge i32 %132, 0
br i1 %133, label %134, label %140
134: ; preds = %85
%135 = load i32, i32* %21
%136 = load i32, i32* %18
%137 = ashr i32 %135, %136
store i32 %137, i32* %21
%138 = load i32, i32* %22
%139 = sub nsw i32 0, %138
store i32 %139, i32* %29
br label %147
140: ; preds = %85
%141 = load i32, i32* %20
%142 = load i32, i32* %18
%143 = sub nsw i32 0, %142
%144 = ashr i32 %141, %143
store i32 %144, i32* %20
%145 = load i32, i32* %23
%146 = sub nsw i32 0, %145
store i32 %146, i32* %29
br label %147
147: ; preds = %140, %134
%148 = load i32, i32* %20
%149 = load i32, i32* %21
%150 = add nsw i32 %148, %149
store i32 %150, i32* %25
%151 = load i32, i32* %29
%152 = load i32, i32* %30
%153 = sub nsw i32 %151, %152
store i32 %153, i32* %18
%154 = load i32, i32* %18
%155 = icmp sge i32 %154, 0
br i1 %155, label %156, label %165
156: ; preds = %147
%157 = load i32, i32* %25
%158 = load i32, i32* %18
%159 = ashr i32 %157, %158
%160 = load i32, i32* %26
%161 = icmp slt i32 %159, %160
br i1 %161, label %162, label %163
162: ; preds = %156
store i32 1, i32* %17
br label %164
163: ; preds = %156
store i32 0, i32* %17
br label %164
164: ; preds = %163, %162
br label %181
165: ; preds = %147
%166 = load i32, i32* %18
%167 = sub nsw i32 0, %166
%168 = icmp slt i32 %167, 32
br i1 %168, label %169, label %179
169: ; preds = %165
%170 = load i32, i32* %25
%171 = load i32, i32* %26
%172 = load i32, i32* %18
%173 = sub nsw i32 0, %172
%174 = ashr i32 %171, %173
%175 = icmp slt i32 %170, %174
br i1 %175, label %176, label %177
176: ; preds = %169
store i32 1, i32* %17
br label %178
177: ; preds = %169
store i32 0, i32* %17
br label %178
178: ; preds = %177, %176
br label %180
179: ; preds = %165
store i32 0, i32* %17
br label %180
180: ; preds = %179, %178
br label %181
181: ; preds = %180, %164
%182 = load i32, i32* %17
%183 = icmp eq i32 %182, 1
br i1 %183, label %184, label %189
184: ; preds = %181
%185 = load i32, i32* %25
store i32 %185, i32* %26
%186 = load i32, i32* %29
store i32 %186, i32* %30
%187 = load i32, i32* %15
%188 = load i32*, i32** %9
store i32 %187, i32* %188
br label %189
189: ; preds = %184, %181
%190 = load i32, i32* %25
store i32 %190, i32* %28
%191 = load i32, i32* %29
store i32 %191, i32* %32
br label %192
192: ; preds = %189
%193 = load i32, i32* %15
%194 = add nsw i32 %193, -1
store i32 %194, i32* %15
br label %82
195: ; preds = %82
br label %196
196: ; preds = %195, %7
%197 = load i32*, i32** %9
%198 = load i32, i32* %197
%199 = icmp eq i32 %198, 4
br i1 %199, label %200, label %205
200: ; preds = %196
%201 = load i32*, i32** %8
%202 = getelementptr inbounds [16 x i32], [16 x i32]* %16, i64 0, i64 0
%203 = load i32, i32* %12
%204 = call i32 @SKP_Silk_A2NLSF(i32* %201, i32* %202, i32 %203)
br label %205
205: ; preds = %200, %196
ret void
}

LLVM IR (-O2):
define void @SKP_Silk_find_LPC_FIX(i32* %0, i32* nocapture %1, i32* %2, i32 %3, i32 %4, i16* %5, i32 %6) {
%8 = alloca [16 x i32]
%9 = alloca [16 x i16]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca [16 x i32]
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca [16 x i16]
%20 = alloca [16 x i32]
%21 = alloca [272 x i16]
%22 = bitcast [16 x i32]* %8 to i8*
%23 = bitcast [16 x i16]* %9 to i8*
%24 = bitcast i32* %10 to i8*
%25 = bitcast i32* %11 to i8*
%26 = bitcast i32* %12 to i8*
%27 = bitcast i32* %13 to i8*
%28 = bitcast [16 x i32]* %14 to i8*
%29 = bitcast i32* %15 to i8*
%30 = bitcast i32* %16 to i8*
%31 = bitcast i32* %17 to i8*
%32 = bitcast i32* %18 to i8*
%33 = bitcast [16 x i16]* %19 to i8*
%34 = bitcast [16 x i32]* %20 to i8*
%35 = bitcast [272 x i16]* %21 to i8*
store i32 4, i32* %1
%36 = getelementptr inbounds [16 x i32], [16 x i32]* %8, i64 0, i64 0
%37 = call i32 @SKP_Silk_burg_modified(i32* %15, i32* %17, i32* %36, i16* %5, i32 %6, i32 4, i32 257698, i32 %4)
%38 = icmp eq i32 %3, 1
br i1 %38, label %39, label %119
39: ; preds = %7
%40 = getelementptr inbounds [16 x i32], [16 x i32]* %14, i64 0, i64 0
%41 = shl nsw i32 %6, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i16, i16* %5, i64 %42
%44 = call i32 @SKP_Silk_burg_modified(i32* %16, i32* %18, i32* %40, i16* %43, i32 %6, i32 2, i32 257698, i32 %4)
%45 = load i32, i32* %18
%46 = load i32, i32* %17
%47 = sub nsw i32 %45, %46
%48 = icmp sgt i32 %47, -1
br i1 %48, label %49, label %56
49: ; preds = %39
%50 = icmp ult i32 %47, 32
br i1 %50, label %51, label %62
51: ; preds = %49
%52 = load i32, i32* %15
%53 = load i32, i32* %16
%54 = ashr i32 %53, %47
%55 = sub nsw i32 %52, %54
store i32 %55, i32* %15
br label %62
56: ; preds = %39
%57 = load i32, i32* %15
%58 = sub nsw i32 0, %47
%59 = ashr i32 %57, %58
%60 = load i32, i32* %16
%61 = sub nsw i32 %59, %60
store i32 %61, i32* %15
store i32 %45, i32* %17
br label %62
62: ; preds = %49, %51, %56
%63 = call i32 @SKP_Silk_A2NLSF(i32* %0, i32* %40, i32 %4)
%64 = getelementptr inbounds [16 x i32], [16 x i32]* %20, i64 0, i64 0
%65 = getelementptr inbounds [16 x i16], [16 x i16]* %19, i64 0, i64 0
%66 = getelementptr inbounds [16 x i16], [16 x i16]* %9, i64 0, i64 0
%67 = sext i32 %4 to i64
%68 = shl i32 %4, 1
%69 = getelementptr inbounds [272 x i16], [272 x i16]* %21, i64 0, i64 0
%70 = getelementptr inbounds [272 x i16], [272 x i16]* %21, i64 0, i64 %67
%71 = sub nsw i32 %6, %4
%72 = sext i32 %6 to i64
%73 = getelementptr inbounds i16, i16* %70, i64 %72
br label %74
74: ; preds = %62, %116
%75 = phi i32 [ 3, %62 ], [ %117, %116 ]
%76 = call i32 @SKP_Silk_interpolate(i32* %64, i32* %2, i32* %0, i32 %75, i32 %4)
%77 = call i32 @SKP_Silk_NLSF2A_stable(i16* %65, i32* %64, i32 %4)
%78 = call i32 @memset(i16* %66, i32 0, i32 %68)
%79 = call i32 @SKP_Silk_LPC_analysis_filter(i16* %5, i16* %65, i16* %66, i16* %69, i32 %41, i32 %4)
%80 = call i32 @SKP_Silk_sum_sqr_shift(i32* %10, i32* %12, i16* %70, i32 %71)
%81 = call i32 @SKP_Silk_sum_sqr_shift(i32* %11, i32* %13, i16* %73, i32 %71)
%82 = load i32, i32* %12
%83 = load i32, i32* %13
%84 = sub nsw i32 %82, %83
%85 = icmp sgt i32 %84, -1
br i1 %85, label %86, label %90
86: ; preds = %74
%87 = load i32, i32* %11
%88 = ashr i32 %87, %84
store i32 %88, i32* %11
%89 = load i32, i32* %10
br label %95
90: ; preds = %74
%91 = load i32, i32* %10
%92 = sub nsw i32 0, %84
%93 = ashr i32 %91, %92
store i32 %93, i32* %10
%94 = load i32, i32* %11
br label %95
95: ; preds = %90, %86
%96 = phi i32 [ %88, %86 ], [ %94, %90 ]
%97 = phi i32 [ %89, %86 ], [ %93, %90 ]
%98 = phi i32 [ %82, %86 ], [ %83, %90 ]
%99 = sub nsw i32 0, %98
%100 = add nsw i32 %96, %97
%101 = load i32, i32* %17
%102 = sub nsw i32 %99, %101
%103 = icmp sgt i32 %102, -1
br i1 %103, label %104, label %108
104: ; preds = %95
%105 = ashr i32 %100, %102
%106 = load i32, i32* %15
%107 = icmp slt i32 %105, %106
br i1 %107, label %115, label %116
108: ; preds = %95
%109 = icmp ugt i32 %102, -32
br i1 %109, label %110, label %116
110: ; preds = %108
%111 = sub nsw i32 0, %102
%112 = load i32, i32* %15
%113 = ashr i32 %112, %111
%114 = icmp slt i32 %100, %113
br i1 %114, label %115, label %116
115: ; preds = %104, %110
store i32 %100, i32* %15
store i32 %99, i32* %17
store i32 %75, i32* %1
br label %116
116: ; preds = %104, %108, %115, %110
%117 = add nsw i32 %75, -1
%118 = icmp eq i32 %75, 0
br i1 %118, label %119, label %74
119: ; preds = %116, %7
%120 = load i32, i32* %1
%121 = icmp eq i32 %120, 4
br i1 %121, label %122, label %124
122: ; preds = %119
%123 = call i32 @SKP_Silk_A2NLSF(i32* %0, i32* %36, i32 %4)
br label %124
124: ; preds = %122, %119
ret void
}