#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_bwexpander_32(int *, int const, int);
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,
                         ((int)((2.5e-5f) * ((long long)1 << (32)) + 0.5)),
                         LPC_order);
  SKP_Silk_bwexpander_32(a_Q16, LPC_order,
                         ((int)((0.99995f) * ((long long)1 << (16)) + 0.5)));
  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),
                           ((int)((2.5e-5f) * ((long long)1 << (32)) + 0.5)),
                           LPC_order);
    SKP_Silk_bwexpander_32(a_tmp_Q16, LPC_order,
                           ((int)((0.99995f) * ((long long)1 << (16)) + 0.5)));
    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   $0x1a36e,(%rsp)
mov    %eax,0x8(%rsp)
call   10a0 <SKP_Silk_burg_modified@plt>
lea    -0x70(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0xfffd,%edx
call   1070 <SKP_Silk_bwexpander_32@plt>
cmpl   $0x1,-0x1c(%rbp)
jne    151d <SKP_Silk_find_LPC_FIX+0x39d>
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   $0x1a36e,(%rsp)
mov    %eax,0x8(%rsp)
call   10a0 <SKP_Silk_burg_modified@plt>
lea    -0xf0(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0xfffd,%edx
call   1070 <SKP_Silk_bwexpander_32@plt>
mov    -0x10c(%rbp),%eax
sub    -0x108(%rbp),%eax
mov    %eax,-0x78(%rbp)
cmpl   $0x0,-0x78(%rbp)
jl     1299 <SKP_Silk_find_LPC_FIX+0x119>
cmpl   $0x20,-0x78(%rbp)
jge    1294 <SKP_Silk_find_LPC_FIX+0x114>
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    12be <SKP_Silk_find_LPC_FIX+0x13e>
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   1080 <SKP_Silk_A2NLSF@plt>
movl   $0x7fffffff,-0x100(%rbp)
ff ff 7f
movl   $0x3,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jl     1518 <SKP_Silk_find_LPC_FIX+0x398>
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   1090 <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     13fd <SKP_Silk_find_LPC_FIX+0x27d>
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    141e <SKP_Silk_find_LPC_FIX+0x29e>
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     1478 <SKP_Silk_find_LPC_FIX+0x2f8>
mov    -0xf4(%rbp),%eax
mov    -0x78(%rbp),%ecx
sar    %cl,%eax
cmp    -0xf8(%rbp),%eax
jge    146c <SKP_Silk_find_LPC_FIX+0x2ec>
movl   $0x1,-0x74(%rbp)
jmp    1473 <SKP_Silk_find_LPC_FIX+0x2f3>
movl   $0x0,-0x74(%rbp)
jmp    14c7 <SKP_Silk_find_LPC_FIX+0x347>
xor    %eax,%eax
sub    -0x78(%rbp),%eax
cmp    $0x20,%eax
jge    14bb <SKP_Silk_find_LPC_FIX+0x33b>
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    14af <SKP_Silk_find_LPC_FIX+0x32f>
movl   $0x1,-0x74(%rbp)
jmp    14b6 <SKP_Silk_find_LPC_FIX+0x336>
movl   $0x0,-0x74(%rbp)
jmp    14c2 <SKP_Silk_find_LPC_FIX+0x342>
movl   $0x0,-0x74(%rbp)
jmp    14c7 <SKP_Silk_find_LPC_FIX+0x347>
cmpl   $0x1,-0x74(%rbp)
jne    14f2 <SKP_Silk_find_LPC_FIX+0x372>
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    12e2 <SKP_Silk_find_LPC_FIX+0x162>
jmp    151d <SKP_Silk_find_LPC_FIX+0x39d>
mov    -0x10(%rbp),%rax
cmpl   $0x4,(%rax)
jne    153a <SKP_Silk_find_LPC_FIX+0x3ba>
mov    -0x8(%rbp),%rdi
lea    -0x70(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1080 <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),%r15
mov    %r15,%rdx
mov    %r9,0x40(%rsp)
mov    %r9,%rcx
mov    %ebp,%r8d
mov    $0x4,%r9d
push   %rbx
push   $0x1a36e
call   10a0 <SKP_Silk_burg_modified@plt>
add    $0x10,%rsp
mov    %r15,%rdi
mov    %ebx,%esi
mov    $0xfffd,%edx
call   1070 <SKP_Silk_bwexpander_32@plt>
cmp    $0x1,%r14d
jne    13fe <SKP_Silk_find_LPC_FIX+0x27e>
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),%r14
mov    %r14,%rdx
mov    %ebp,%r8d
mov    $0x2,%r9d
push   %rbx
push   $0x1a36e
call   10a0 <SKP_Silk_burg_modified@plt>
add    $0x10,%rsp
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0xfffd,%edx
call   1070 <SKP_Silk_bwexpander_32@plt>
mov    0x2c(%rsp),%eax
mov    %eax,%ecx
sub    0x8(%rsp),%ecx
js     126d <SKP_Silk_find_LPC_FIX+0xed>
cmp    $0x1f,%ecx
ja     1281 <SKP_Silk_find_LPC_FIX+0x101>
mov    0x14(%rsp),%eax
sar    %cl,%eax
sub    %eax,0x4(%rsp)
jmp    1281 <SKP_Silk_find_LPC_FIX+0x101>
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   1080 <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    12fa <SKP_Silk_find_LPC_FIX+0x17a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %edx,0x4(%rsp)
mov    %eax,0x8(%rsp)
mov    0x38(%rsp),%rax
mov    %r12d,(%rax)
add    $0xffffffff,%r12d
jae    13fe <SKP_Silk_find_LPC_FIX+0x27e>
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   1090 <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     13a0 <SKP_Silk_find_LPC_FIX+0x220>
mov    0xc(%rsp),%edx
sar    %cl,%edx
mov    %edx,0xc(%rsp)
mov    0x10(%rsp),%esi
jmp    13b2 <SKP_Silk_find_LPC_FIX+0x232>
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     13e0 <SKP_Silk_find_LPC_FIX+0x260>
mov    %edx,%esi
sar    %cl,%esi
cmp    0x4(%rsp),%esi
jl     12e0 <SKP_Silk_find_LPC_FIX+0x160>
jmp    12f0 <SKP_Silk_find_LPC_FIX+0x170>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0xffffffe1,%ecx
jb     12f0 <SKP_Silk_find_LPC_FIX+0x170>
mov    0x4(%rsp),%esi
neg    %cl
sar    %cl,%esi
cmp    %esi,%edx
jl     12e0 <SKP_Silk_find_LPC_FIX+0x160>
jmp    12f0 <SKP_Silk_find_LPC_FIX+0x170>
mov    0x38(%rsp),%rax
cmpl   $0x4,(%rax)
jne    141c <SKP_Silk_find_LPC_FIX+0x29c>
lea    0xe0(%rsp),%rsi
mov    0x18(%rsp),%rdi
mov    %ebx,%edx
call   1080 <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 107374, i32 %40)
%42 = getelementptr inbounds [16 x i32], [16 x i32]* %16, i64 0, i64 0
%43 = load i32, i32* %12
%44 = call i32 @SKP_Silk_bwexpander_32(i32* %42, i32 %43, i32 65533)
%45 = load i32, i32* %11
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %202
47: ; preds = %7
%48 = getelementptr inbounds [16 x i32], [16 x i32]* %24, i64 0, i64 0
%49 = load i16*, i16** %13
%50 = load i32, i32* %14
%51 = mul nsw i32 2, %50
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i16, i16* %49, i64 %52
%54 = load i32, i32* %14
%55 = load i32, i32* %12
%56 = call i32 @SKP_Silk_burg_modified(i32* %27, i32* %31, i32* %48, i16* %53, i32 %54, i32 2, i32 107374, i32 %55)
%57 = getelementptr inbounds [16 x i32], [16 x i32]* %24, i64 0, i64 0
%58 = load i32, i32* %12
%59 = call i32 @SKP_Silk_bwexpander_32(i32* %57, i32 %58, i32 65533)
%60 = load i32, i32* %31
%61 = load i32, i32* %30
%62 = sub nsw i32 %60, %61
store i32 %62, i32* %18
%63 = load i32, i32* %18
%64 = icmp sge i32 %63, 0
br i1 %64, label %65, label %75
65: ; preds = %47
%66 = load i32, i32* %18
%67 = icmp slt i32 %66, 32
br i1 %67, label %68, label %74
68: ; preds = %65
%69 = load i32, i32* %26
%70 = load i32, i32* %27
%71 = load i32, i32* %18
%72 = ashr i32 %70, %71
%73 = sub nsw i32 %69, %72
store i32 %73, i32* %26
br label %74
74: ; preds = %68, %65
br label %83
75: ; preds = %47
%76 = load i32, i32* %26
%77 = load i32, i32* %18
%78 = sub nsw i32 0, %77
%79 = ashr i32 %76, %78
%80 = load i32, i32* %27
%81 = sub nsw i32 %79, %80
store i32 %81, i32* %26
%82 = load i32, i32* %31
store i32 %82, i32* %30
br label %83
83: ; preds = %75, %74
%84 = load i32*, i32** %8
%85 = getelementptr inbounds [16 x i32], [16 x i32]* %24, i64 0, i64 0
%86 = load i32, i32* %12
%87 = call i32 @SKP_Silk_A2NLSF(i32* %84, i32* %85, i32 %86)
store i32 2147483647, i32* %28
store i32 3, i32* %15
br label %88
88: ; preds = %198, %83
%89 = load i32, i32* %15
%90 = icmp sge i32 %89, 0
br i1 %90, label %91, label %201
91: ; preds = %88
%92 = getelementptr inbounds [16 x i32], [16 x i32]* %34, i64 0, i64 0
%93 = load i32*, i32** %10
%94 = load i32*, i32** %8
%95 = load i32, i32* %15
%96 = load i32, i32* %12
%97 = call i32 @SKP_Silk_interpolate(i32* %92, i32* %93, i32* %94, i32 %95, i32 %96)
%98 = getelementptr inbounds [16 x i16], [16 x i16]* %33, i64 0, i64 0
%99 = getelementptr inbounds [16 x i32], [16 x i32]* %34, i64 0, i64 0
%100 = load i32, i32* %12
%101 = call i32 @SKP_Silk_NLSF2A_stable(i16* %98, i32* %99, i32 %100)
%102 = getelementptr inbounds [16 x i16], [16 x i16]* %19, i64 0, i64 0
%103 = load i32, i32* %12
%104 = sext i32 %103 to i64
%105 = mul i64 %104, 2
%106 = trunc i64 %105 to i32
%107 = call i32 @memset(i16* %102, i32 0, i32 %106)
%108 = load i16*, i16** %13
%109 = getelementptr inbounds [16 x i16], [16 x i16]* %33, i64 0, i64 0
%110 = getelementptr inbounds [16 x i16], [16 x i16]* %19, i64 0, i64 0
%111 = getelementptr inbounds [272 x i16], [272 x i16]* %35, i64 0, i64 0
%112 = load i32, i32* %14
%113 = mul nsw i32 2, %112
%114 = load i32, i32* %12
%115 = call i32 @SKP_Silk_LPC_analysis_filter(i16* %108, i16* %109, i16* %110, i16* %111, i32 %113, i32 %114)
%116 = getelementptr inbounds [272 x i16], [272 x i16]* %35, i64 0, i64 0
%117 = load i32, i32* %12
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i16, i16* %116, i64 %118
%120 = load i32, i32* %14
%121 = load i32, i32* %12
%122 = sub nsw i32 %120, %121
%123 = call i32 @SKP_Silk_sum_sqr_shift(i32* %20, i32* %22, i16* %119, i32 %122)
%124 = getelementptr inbounds [272 x i16], [272 x i16]* %35, i64 0, i64 0
%125 = load i32, i32* %12
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i16, i16* %124, i64 %126
%128 = load i32, i32* %14
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i16, i16* %127, i64 %129
%131 = load i32, i32* %14
%132 = load i32, i32* %12
%133 = sub nsw i32 %131, %132
%134 = call i32 @SKP_Silk_sum_sqr_shift(i32* %21, i32* %23, i16* %130, i32 %133)
%135 = load i32, i32* %22
%136 = load i32, i32* %23
%137 = sub nsw i32 %135, %136
store i32 %137, i32* %18
%138 = load i32, i32* %18
%139 = icmp sge i32 %138, 0
br i1 %139, label %140, label %146
140: ; preds = %91
%141 = load i32, i32* %21
%142 = load i32, i32* %18
%143 = ashr i32 %141, %142
store i32 %143, i32* %21
%144 = load i32, i32* %22
%145 = sub nsw i32 0, %144
store i32 %145, i32* %29
br label %153
146: ; preds = %91
%147 = load i32, i32* %20
%148 = load i32, i32* %18
%149 = sub nsw i32 0, %148
%150 = ashr i32 %147, %149
store i32 %150, i32* %20
%151 = load i32, i32* %23
%152 = sub nsw i32 0, %151
store i32 %152, i32* %29
br label %153
153: ; preds = %146, %140
%154 = load i32, i32* %20
%155 = load i32, i32* %21
%156 = add nsw i32 %154, %155
store i32 %156, i32* %25
%157 = load i32, i32* %29
%158 = load i32, i32* %30
%159 = sub nsw i32 %157, %158
store i32 %159, i32* %18
%160 = load i32, i32* %18
%161 = icmp sge i32 %160, 0
br i1 %161, label %162, label %171
162: ; preds = %153
%163 = load i32, i32* %25
%164 = load i32, i32* %18
%165 = ashr i32 %163, %164
%166 = load i32, i32* %26
%167 = icmp slt i32 %165, %166
br i1 %167, label %168, label %169
168: ; preds = %162
store i32 1, i32* %17
br label %170
169: ; preds = %162
store i32 0, i32* %17
br label %170
170: ; preds = %169, %168
br label %187
171: ; preds = %153
%172 = load i32, i32* %18
%173 = sub nsw i32 0, %172
%174 = icmp slt i32 %173, 32
br i1 %174, label %175, label %185
175: ; preds = %171
%176 = load i32, i32* %25
%177 = load i32, i32* %26
%178 = load i32, i32* %18
%179 = sub nsw i32 0, %178
%180 = ashr i32 %177, %179
%181 = icmp slt i32 %176, %180
br i1 %181, label %182, label %183
182: ; preds = %175
store i32 1, i32* %17
br label %184
183: ; preds = %175
store i32 0, i32* %17
br label %184
184: ; preds = %183, %182
br label %186
185: ; preds = %171
store i32 0, i32* %17
br label %186
186: ; preds = %185, %184
br label %187
187: ; preds = %186, %170
%188 = load i32, i32* %17
%189 = icmp eq i32 %188, 1
br i1 %189, label %190, label %195
190: ; preds = %187
%191 = load i32, i32* %25
store i32 %191, i32* %26
%192 = load i32, i32* %29
store i32 %192, i32* %30
%193 = load i32, i32* %15
%194 = load i32*, i32** %9
store i32 %193, i32* %194
br label %195
195: ; preds = %190, %187
%196 = load i32, i32* %25
store i32 %196, i32* %28
%197 = load i32, i32* %29
store i32 %197, i32* %32
br label %198
198: ; preds = %195
%199 = load i32, i32* %15
%200 = add nsw i32 %199, -1
store i32 %200, i32* %15
br label %88
201: ; preds = %88
br label %202
202: ; preds = %201, %7
%203 = load i32*, i32** %9
%204 = load i32, i32* %203
%205 = icmp eq i32 %204, 4
br i1 %205, label %206, label %211
206: ; preds = %202
%207 = load i32*, i32** %8
%208 = getelementptr inbounds [16 x i32], [16 x i32]* %16, i64 0, i64 0
%209 = load i32, i32* %12
%210 = call i32 @SKP_Silk_A2NLSF(i32* %207, i32* %208, i32 %209)
br label %211
211: ; preds = %206, %202
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 107374, i32 %4)
%38 = call i32 @SKP_Silk_bwexpander_32(i32* %36, i32 %4, i32 65533)
%39 = icmp eq i32 %3, 1
br i1 %39, label %40, label %121
40: ; preds = %7
%41 = getelementptr inbounds [16 x i32], [16 x i32]* %14, i64 0, i64 0
%42 = shl nsw i32 %6, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i16, i16* %5, i64 %43
%45 = call i32 @SKP_Silk_burg_modified(i32* %16, i32* %18, i32* %41, i16* %44, i32 %6, i32 2, i32 107374, i32 %4)
%46 = call i32 @SKP_Silk_bwexpander_32(i32* %41, i32 %4, i32 65533)
%47 = load i32, i32* %18
%48 = load i32, i32* %17
%49 = sub nsw i32 %47, %48
%50 = icmp sgt i32 %49, -1
br i1 %50, label %51, label %58
51: ; preds = %40
%52 = icmp ult i32 %49, 32
br i1 %52, label %53, label %64
53: ; preds = %51
%54 = load i32, i32* %15
%55 = load i32, i32* %16
%56 = ashr i32 %55, %49
%57 = sub nsw i32 %54, %56
store i32 %57, i32* %15
br label %64
58: ; preds = %40
%59 = load i32, i32* %15
%60 = sub nsw i32 0, %49
%61 = ashr i32 %59, %60
%62 = load i32, i32* %16
%63 = sub nsw i32 %61, %62
store i32 %63, i32* %15
store i32 %47, i32* %17
br label %64
64: ; preds = %51, %53, %58
%65 = call i32 @SKP_Silk_A2NLSF(i32* %0, i32* %41, i32 %4)
%66 = getelementptr inbounds [16 x i32], [16 x i32]* %20, i64 0, i64 0
%67 = getelementptr inbounds [16 x i16], [16 x i16]* %19, i64 0, i64 0
%68 = getelementptr inbounds [16 x i16], [16 x i16]* %9, i64 0, i64 0
%69 = sext i32 %4 to i64
%70 = shl i32 %4, 1
%71 = getelementptr inbounds [272 x i16], [272 x i16]* %21, i64 0, i64 0
%72 = getelementptr inbounds [272 x i16], [272 x i16]* %21, i64 0, i64 %69
%73 = sub nsw i32 %6, %4
%74 = sext i32 %6 to i64
%75 = getelementptr inbounds i16, i16* %72, i64 %74
br label %76
76: ; preds = %64, %118
%77 = phi i32 [ 3, %64 ], [ %119, %118 ]
%78 = call i32 @SKP_Silk_interpolate(i32* %66, i32* %2, i32* %0, i32 %77, i32 %4)
%79 = call i32 @SKP_Silk_NLSF2A_stable(i16* %67, i32* %66, i32 %4)
%80 = call i32 @memset(i16* %68, i32 0, i32 %70)
%81 = call i32 @SKP_Silk_LPC_analysis_filter(i16* %5, i16* %67, i16* %68, i16* %71, i32 %42, i32 %4)
%82 = call i32 @SKP_Silk_sum_sqr_shift(i32* %10, i32* %12, i16* %72, i32 %73)
%83 = call i32 @SKP_Silk_sum_sqr_shift(i32* %11, i32* %13, i16* %75, i32 %73)
%84 = load i32, i32* %12
%85 = load i32, i32* %13
%86 = sub nsw i32 %84, %85
%87 = icmp sgt i32 %86, -1
br i1 %87, label %88, label %92
88: ; preds = %76
%89 = load i32, i32* %11
%90 = ashr i32 %89, %86
store i32 %90, i32* %11
%91 = load i32, i32* %10
br label %97
92: ; preds = %76
%93 = load i32, i32* %10
%94 = sub nsw i32 0, %86
%95 = ashr i32 %93, %94
store i32 %95, i32* %10
%96 = load i32, i32* %11
br label %97
97: ; preds = %92, %88
%98 = phi i32 [ %90, %88 ], [ %96, %92 ]
%99 = phi i32 [ %91, %88 ], [ %95, %92 ]
%100 = phi i32 [ %84, %88 ], [ %85, %92 ]
%101 = sub nsw i32 0, %100
%102 = add nsw i32 %98, %99
%103 = load i32, i32* %17
%104 = sub nsw i32 %101, %103
%105 = icmp sgt i32 %104, -1
br i1 %105, label %106, label %110
106: ; preds = %97
%107 = ashr i32 %102, %104
%108 = load i32, i32* %15
%109 = icmp slt i32 %107, %108
br i1 %109, label %117, label %118
110: ; preds = %97
%111 = icmp ugt i32 %104, -32
br i1 %111, label %112, label %118
112: ; preds = %110
%113 = sub nsw i32 0, %104
%114 = load i32, i32* %15
%115 = ashr i32 %114, %113
%116 = icmp slt i32 %102, %115
br i1 %116, label %117, label %118
117: ; preds = %106, %112
store i32 %102, i32* %15
store i32 %101, i32* %17
store i32 %77, i32* %1
br label %118
118: ; preds = %106, %110, %117, %112
%119 = add nsw i32 %77, -1
%120 = icmp eq i32 %77, 0
br i1 %120, label %121, label %76
121: ; preds = %118, %7
%122 = load i32, i32* %1
%123 = icmp eq i32 %122, 4
br i1 %123, label %124, label %126
124: ; preds = %121
%125 = call i32 @SKP_Silk_A2NLSF(i32* %0, i32* %36, i32 %4)
br label %126
126: ; preds = %124, %121
ret void
}