#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 */

/* Variables and functions */
int SKP_INVERSE32_varQ(int, int);
int SKP_Silk_CLZ32(int);
int SKP_Silk_LPC_inverse_pred_gain(int *invGain_Q30, const short *A_Q12,
                                   const int order) {
  int k, n, headrm;
  int rc_Q31, rc_mult1_Q30, rc_mult2_Q16;
  int Atmp_QA[2][16], tmp_QA;
  int *Aold_QA, *Anew_QA;
  Anew_QA = Atmp_QA[order & 1];
  for (k = 0; k < order; k++) {
    Anew_QA[k] = (((int)A_Q12[k]) << (16 - 12));
  }
  *invGain_Q30 = (1 << 30);
  for (k = order - 1; k > 0; k--) {
    if ((Anew_QA[k] > 65520) || (Anew_QA[k] < -65520)) {
      return 1;
    }
    rc_Q31 = -((Anew_QA[k]) << (31 - 16));
    rc_mult1_Q30 = (0x7FFFFFFF >> 1) -
                   (int)((((long long)((rc_Q31)) * ((rc_Q31)))) >> (32));
    ;
    ;
    rc_mult2_Q16 = SKP_INVERSE32_varQ(rc_mult1_Q30, 46);
    *invGain_Q30 =
        (((int)((((long long)((*invGain_Q30)) * ((rc_mult1_Q30)))) >> (32)))
         << (2));
    ;
    ;
    Aold_QA = Anew_QA;
    Anew_QA = Atmp_QA[k & 1];
    headrm = SKP_Silk_CLZ32(rc_mult2_Q16) - 1;
    rc_mult2_Q16 = ((rc_mult2_Q16) << (headrm));
    for (n = 0; n < k; n++) {
      tmp_QA =
          Aold_QA[n] -
          (((int)((((long long)((Aold_QA[k - n - 1])) * ((rc_Q31)))) >> (32)))
           << (1));
      Anew_QA[n] =
          (((int)((((long long)((tmp_QA)) * ((rc_mult2_Q16)))) >> (32)))
           << (16 - headrm));
    }
  }
  if ((Anew_QA[0] > 65520) || (Anew_QA[0] < -65520)) {
    return 1;
  }
  rc_Q31 = -((Anew_QA[0]) << (31 - 16));
  rc_mult1_Q30 =
      (0x7FFFFFFF >> 1) - (int)((((long long)((rc_Q31)) * ((rc_Q31)))) >> (32));
  *invGain_Q30 =
      (((int)((((long long)((*invGain_Q30)) * ((rc_mult1_Q30)))) >> (32)))
       << (2));
  ;
  ;
  return 0;
}


x86 assembly (clang, -O0):
<SKP_Silk_LPC_inverse_pred_gain>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
and    $0x1,%eax
movslq %eax,%rcx
lea    -0xc0(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
mov    %rax,-0xd8(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1192 <SKP_Silk_LPC_inverse_pred_gain+0x72>
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
movswl (%rax,%rcx,2),%edx
shl    $0x4,%edx
mov    -0xd8(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    115b <SKP_Silk_LPC_inverse_pred_gain+0x3b>
mov    -0x10(%rbp),%rax
movl   $0x40000000,(%rax)
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jle    132f <SKP_Silk_LPC_inverse_pred_gain+0x20f>
mov    -0xd8(%rbp),%rax
movslq -0x20(%rbp),%rcx
cmpl   $0xfff0,(%rax,%rcx,4)
jg     11df <SKP_Silk_LPC_inverse_pred_gain+0xbf>
mov    -0xd8(%rbp),%rax
movslq -0x20(%rbp),%rcx
cmpl   $0xffff0010,(%rax,%rcx,4)
jge    11eb <SKP_Silk_LPC_inverse_pred_gain+0xcb>
movl   $0x1,-0x4(%rbp)
jmp    13b5 <SKP_Silk_LPC_inverse_pred_gain+0x295>
mov    -0xd8(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
shl    $0xf,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x2c(%rbp)
movslq -0x2c(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   %rcx,%rax
sar    $0x20,%rax
mov    %eax,%ecx
mov    $0x3fffffff,%eax
sub    %ecx,%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%edi
mov    $0x2e,%esi
call   1040 <SKP_INVERSE32_varQ@plt>
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
movslq -0x30(%rbp),%rcx
imul   %rcx,%rax
sar    $0x20,%rax
mov    %eax,%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xd8(%rbp),%rax
mov    %rax,-0xd0(%rbp)
mov    -0x20(%rbp),%eax
and    $0x1,%eax
movslq %eax,%rcx
lea    -0xc0(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
mov    %rax,-0xd8(%rbp)
mov    -0x34(%rbp),%edi
call   1030 <SKP_Silk_CLZ32@plt>
sub    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x34(%rbp),%eax
mov    -0x28(%rbp),%ecx
shl    %cl,%eax
mov    %eax,-0x34(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    131c <SKP_Silk_LPC_inverse_pred_gain+0x1fc>
mov    -0xd0(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0xd0(%rbp),%rcx
mov    -0x20(%rbp),%edx
sub    -0x24(%rbp),%edx
sub    $0x1,%edx
movslq %edx,%rdx
movslq (%rcx,%rdx,4),%rcx
movslq -0x2c(%rbp),%rdx
imul   %rdx,%rcx
sar    $0x20,%rcx
shl    $0x1,%ecx
sub    %ecx,%eax
mov    %eax,-0xc4(%rbp)
movslq -0xc4(%rbp),%rax
movslq -0x34(%rbp),%rcx
imul   %rcx,%rax
sar    $0x20,%rax
mov    %eax,%edx
mov    $0x10,%ecx
sub    -0x28(%rbp),%ecx
shl    %cl,%edx
mov    -0xd8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1299 <SKP_Silk_LPC_inverse_pred_gain+0x179>
jmp    1321 <SKP_Silk_LPC_inverse_pred_gain+0x201>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
jmp    11a5 <SKP_Silk_LPC_inverse_pred_gain+0x85>
mov    -0xd8(%rbp),%rax
cmpl   $0xfff0,(%rax)
jg     1355 <SKP_Silk_LPC_inverse_pred_gain+0x235>
mov    -0xd8(%rbp),%rax
cmpl   $0xffff0010,(%rax)
jge    1361 <SKP_Silk_LPC_inverse_pred_gain+0x241>
movl   $0x1,-0x4(%rbp)
jmp    13b5 <SKP_Silk_LPC_inverse_pred_gain+0x295>
mov    -0xd8(%rbp),%rax
mov    (%rax),%ecx
shl    $0xf,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x2c(%rbp)
movslq -0x2c(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   %rcx,%rax
sar    $0x20,%rax
mov    %eax,%ecx
mov    $0x3fffffff,%eax
sub    %ecx,%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
movslq -0x30(%rbp),%rcx
imul   %rcx,%rax
sar    $0x20,%rax
mov    %eax,%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SKP_Silk_LPC_inverse_pred_gain>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    %edx,%r9d
and    $0x1,%r9d
test   %edx,%edx
mov    %rdi,0x30(%rsp)
jle    1152 <SKP_Silk_LPC_inverse_pred_gain+0x32>
mov    %edx,%r10d
mov    %edx,%ebx
cmp    $0x8,%edx
jae    115d <SKP_Silk_LPC_inverse_pred_gain+0x3d>
xor    %eax,%eax
jmp    125c <SKP_Silk_LPC_inverse_pred_gain+0x13c>
movl   $0x40000000,(%rdi)
jmp    16ee <SKP_Silk_LPC_inverse_pred_gain+0x5ce>
mov    %ebx,%eax
and    $0xfffffff8,%eax
lea    -0x8(%rax),%rcx
mov    %rcx,%r8
shr    $0x3,%r8
add    $0x1,%r8
test   %rcx,%rcx
je     1763 <SKP_Silk_LPC_inverse_pred_gain+0x643>
mov    %r8,%rdx
and    $0xfffffffffffffffe,%rdx
mov    %r9,%rcx
shl    $0x6,%rcx
lea    (%rsp,%rcx,1),%rbp
add    $0x90,%rbp
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
movq   (%rsi,%rcx,2),%xmm0
punpcklwd %xmm0,%xmm0
movq   0x8(%rsi,%rcx,2),%xmm1
punpcklwd %xmm1,%xmm1
psrad  $0x10,%xmm0
psrad  $0x10,%xmm1
pslld  $0x4,%xmm0
pslld  $0x4,%xmm1
movdqa %xmm0,-0x30(%rbp,%rcx,4)
movdqa %xmm1,-0x20(%rbp,%rcx,4)
movq   0x10(%rsi,%rcx,2),%xmm0
punpcklwd %xmm0,%xmm0
movq   0x18(%rsi,%rcx,2),%xmm1
punpcklwd %xmm1,%xmm1
psrad  $0x10,%xmm0
psrad  $0x10,%xmm1
pslld  $0x4,%xmm0
pslld  $0x4,%xmm1
movdqa %xmm0,-0x10(%rbp,%rcx,4)
movdqa %xmm1,0x0(%rbp,%rcx,4)
add    $0x10,%rcx
add    $0xfffffffffffffffe,%rdx
jne    11a0 <SKP_Silk_LPC_inverse_pred_gain+0x80>
test   $0x1,%r8b
je     1257 <SKP_Silk_LPC_inverse_pred_gain+0x137>
movq   (%rsi,%rcx,2),%xmm0
movq   0x8(%rsi,%rcx,2),%xmm1
punpcklwd %xmm0,%xmm0
psrad  $0x10,%xmm0
punpcklwd %xmm1,%xmm1
psrad  $0x10,%xmm1
pslld  $0x4,%xmm0
pslld  $0x4,%xmm1
mov    %r9,%rdx
shl    $0x6,%rdx
add    %rsp,%rdx
add    $0x60,%rdx
movdqa %xmm0,(%rdx,%rcx,4)
movdqa %xmm1,0x10(%rdx,%rcx,4)
cmp    %rbx,%rax
je     1283 <SKP_Silk_LPC_inverse_pred_gain+0x163>
mov    %r9,%rcx
shl    $0x6,%rcx
add    %rsp,%rcx
add    $0x60,%rcx
nopw   0x0(%rax,%rax,1)
movswl (%rsi,%rax,2),%edx
shl    $0x4,%edx
mov    %edx,(%rcx,%rax,4)
add    $0x1,%rax
cmp    %rax,%rbx
jne    1270 <SKP_Silk_LPC_inverse_pred_gain+0x150>
movl   $0x40000000,(%rdi)
cmp    $0x2,%r10d
jl     16ee <SKP_Silk_LPC_inverse_pred_gain+0x5ce>
lea    -0x1(%r10),%ecx
lea    -0x2(%r10),%eax
mov    %eax,0x28(%rsp)
mov    %r10d,%eax
not    %eax
mov    %eax,0x24(%rsp)
mov    %rbx,%rax
shl    $0x20,%rax
movabs $0xfffffffe00000000,%rdx
ff ff ff
add    %rax,%rdx
mov    %rdx,(%rsp)
xor    %edx,%edx
mov    %ecx,0x2c(%rsp)
mov    %ecx,%r8d
mov    %r9,%rsi
mov    %r10,0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rsi,%rax
shl    $0x6,%rax
lea    (%rsp,%rax,1),%r14
add    $0x60,%r14
lea    -0x1(%rbx),%rcx
mov    %ecx,%eax
movslq (%r14,%rax,4),%r15
lea    -0xfff1(%r15),%eax
cmp    $0xfffe001f,%eax
jb     174c <SKP_Silk_LPC_inverse_pred_gain+0x62c>
mov    %rbx,0x50(%rsp)
mov    %r8d,%eax
and    $0x1,%eax
shl    $0x6,%rax
lea    (%rsp,%rax,1),%r13
add    $0x60,%r13
mov    %esi,%eax
and    $0x1,%eax
shl    $0x6,%rax
lea    (%rsp,%rax,1),%r12
add    $0x60,%r12
mov    %r8d,%r8d
mov    %r8,0x8(%rsp)
mov    %edx,%ebx
not    %ebx
add    %r10d,%ebx
shl    $0xf,%r15
neg    %r15
mov    %r15,%rax
imul   %r15,%rax
shr    $0x20,%rax
mov    $0x3fffffff,%ebp
sub    %eax,%ebp
mov    %ebp,%edi
mov    %rsi,0x48(%rsp)
mov    $0x2e,%esi
mov    %rcx,0x38(%rsp)
mov    %rdx,0x18(%rsp)
call   1040 <SKP_INVERSE32_varQ@plt>
mov    0x30(%rsp),%rdx
movslq (%rdx),%rsi
movslq %ebp,%rcx
imul   %rsi,%rcx
shr    $0x1e,%rcx
and    $0xfffffffc,%ecx
mov    %ecx,(%rdx)
mov    0x38(%rsp),%rcx
and    $0x1,%ecx
mov    %rcx,0x58(%rsp)
mov    %eax,%ebp
mov    %eax,%edi
call   1030 <SKP_Silk_CLZ32@plt>
mov    %rbx,%rdx
lea    -0x1(%rax),%ecx
shl    %cl,%ebp
movslq %ebp,%rbx
mov    $0x11,%ecx
sub    %eax,%ecx
cmp    $0x4,%edx
jae    1460 <SKP_Silk_LPC_inverse_pred_gain+0x340>
xor    %eax,%eax
mov    0x10(%rsp),%r10
movabs $0xffffffff00000000,%rdi
ff ff ff
mov    (%rsp),%r9
mov    0x8(%rsp),%r8
mov    %rax,%rsi
shl    $0x20,%rsi
mov    %r9,%rbp
sub    %rsi,%rbp
cs nopw 0x0(%rax,%rax,1)
movslq (%r12,%rax,4),%rsi
mov    %rbp,%rdx
sar    $0x1e,%rdx
movslq (%rdx,%r14,1),%rdx
imul   %r15,%rdx
shr    $0x1f,%rdx
movslq %edx,%rdx
and    $0xfffffffffffffffe,%rdx
sub    %rdx,%rsi
imul   %rbx,%rsi
shr    $0x20,%rsi
shl    %cl,%esi
mov    %esi,0x0(%r13,%rax,4)
add    $0x1,%rax
add    %rdi,%rbp
cmp    %rax,%r8
jne    13f0 <SKP_Silk_LPC_inverse_pred_gain+0x2d0>
mov    0x18(%rsp),%rdx
add    $0x1,%edx
add    %rdi,%r9
mov    %r9,(%rsp)
add    $0xffffffff,%r8d
mov    0x58(%rsp),%r9
mov    %r9,%rsi
cmpq   $0x3,0x50(%rsp)
mov    0x38(%rsp),%rbx
jge    12e0 <SKP_Silk_LPC_inverse_pred_gain+0x1c0>
jmp    16ee <SKP_Silk_LPC_inverse_pred_gain+0x5ce>
nopl   (%rax)
mov    %rdx,0x40(%rsp)
mov    0x2c(%rsp),%eax
mov    %eax,%r11d
mov    0x18(%rsp),%rax
sub    %eax,%r11d
mov    0x28(%rsp),%ebp
sub    %eax,%ebp
lea    -0x1(%r11),%r10
mov    %ebp,%esi
sub    %r10d,%esi
mov    %r10,%rax
mov    $0x4,%edx
mul    %rdx
seto   %r9b
cmp    %ebp,%esi
jg     13bf <SKP_Silk_LPC_inverse_pred_gain+0x29f>
shr    $0x20,%r10
jne    13bf <SKP_Silk_LPC_inverse_pred_gain+0x29f>
movslq %ebp,%rdx
lea    (%r14,%rdx,4),%rbp
mov    %rbp,%rsi
sub    %rax,%rsi
cmp    %rbp,%rsi
ja     13bf <SKP_Silk_LPC_inverse_pred_gain+0x29f>
mov    $0x0,%eax
test   %r9b,%r9b
mov    0x10(%rsp),%r10
movabs $0xffffffff00000000,%rdi
ff ff ff
mov    (%rsp),%r9
movaps 0xb23(%rip),%xmm10
mov    0x8(%rsp),%r8
jne    13d9 <SKP_Silk_LPC_inverse_pred_gain+0x2b9>
mov    0x24(%rsp),%eax
sub    0x18(%rsp),%eax
and    $0x1,%eax
shl    $0x6,%rax
add    %rsp,%rax
add    $0x60,%rax
lea    (%rax,%r11,4),%rsi
lea    (%r14,%r11,4),%r9
mov    0x48(%rsp),%rbp
shl    $0x4,%rbp
add    %rdx,%rbp
lea    0x64(%rsp),%rdi
lea    (%rdi,%rbp,4),%rdx
sub    %r11,%rbp
lea    (%rdi,%rbp,4),%rbp
cmp    %r9,%rax
setb   %r8b
cmp    %rsi,%r14
setb   %r9b
cmp    %rdx,%rax
setb   %dl
cmp    %rsi,%rbp
setb   %sil
test   %r9b,%r8b
jne    16e7 <SKP_Silk_LPC_inverse_pred_gain+0x5c7>
mov    $0x0,%eax
and    %sil,%dl
movabs $0xffffffff00000000,%rdi
ff ff ff
mov    (%rsp),%r9
mov    0x8(%rsp),%r8
jne    13d9 <SKP_Silk_LPC_inverse_pred_gain+0x2b9>
and    $0xfffffffc,%r8d
mov    0x40(%rsp),%r11
mov    %r11d,%eax
and    $0xfffffffc,%eax
movq   %r15,%xmm0
pshufd $0x44,%xmm0,%xmm9
movq   %rbx,%xmm1
pshufd $0x44,%xmm1,%xmm1
movd   %ecx,%xmm8
mov    %r9,%rdx
xor    %ebp,%ebp
movabs $0xfffffffc00000000,%r10
ff ff ff
nop
movdqa (%r12,%rbp,4),%xmm3
mov    %rdx,%rsi
sar    $0x1e,%rsi
movdqu -0xc(%rsi,%r14,1),%xmm4
pshufd $0x1b,%xmm4,%xmm5
pshufd $0x11,%xmm4,%xmm4
pxor   %xmm6,%xmm6
pcmpgtd %xmm4,%xmm6
punpckldq %xmm6,%xmm4
pxor   %xmm7,%xmm7
pcmpgtd %xmm5,%xmm7
punpckldq %xmm7,%xmm5
movdqa %xmm9,%xmm0
pmuludq %xmm5,%xmm0
movdqa %xmm9,%xmm2
psrlq  $0x20,%xmm2
pmuludq %xmm2,%xmm5
pshufd $0xd4,%xmm7,%xmm7
pmuludq %xmm9,%xmm7
paddq  %xmm5,%xmm7
psllq  $0x20,%xmm7
paddq  %xmm0,%xmm7
movdqa %xmm9,%xmm0
pmuludq %xmm4,%xmm0
pmuludq %xmm4,%xmm2
pshufd $0xd4,%xmm6,%xmm4
pmuludq %xmm9,%xmm4
paddq  %xmm2,%xmm4
psllq  $0x20,%xmm4
paddq  %xmm0,%xmm4
psrlq  $0x1f,%xmm4
psrlq  $0x1f,%xmm7
shufps $0x88,%xmm4,%xmm7
andps  %xmm10,%xmm7
psubd  %xmm7,%xmm3
pshufd $0xee,%xmm3,%xmm0
pxor   %xmm2,%xmm2
pcmpgtd %xmm0,%xmm2
punpckldq %xmm2,%xmm0
pxor   %xmm4,%xmm4
pcmpgtd %xmm3,%xmm4
punpckldq %xmm4,%xmm3
movdqa %xmm1,%xmm5
pmuludq %xmm3,%xmm5
movdqa %xmm1,%xmm6
psrlq  $0x20,%xmm6
pmuludq %xmm6,%xmm3
pshufd $0xd4,%xmm4,%xmm4
pmuludq %xmm1,%xmm4
paddq  %xmm3,%xmm4
psllq  $0x20,%xmm4
paddq  %xmm5,%xmm4
movdqa %xmm1,%xmm3
pmuludq %xmm0,%xmm3
pmuludq %xmm0,%xmm6
pshufd $0xd4,%xmm2,%xmm0
pmuludq %xmm1,%xmm0
paddq  %xmm6,%xmm0
psllq  $0x20,%xmm0
paddq  %xmm3,%xmm0
shufps $0xdd,%xmm0,%xmm4
xorps  %xmm0,%xmm0
movss  %xmm8,%xmm0
pslld  %xmm0,%xmm4
movdqa %xmm4,0x0(%r13,%rbp,4)
add    $0x4,%rbp
add    %r10,%rdx
cmp    %rbp,%r8
jne    15a0 <SKP_Silk_LPC_inverse_pred_gain+0x480>
cmp    %r11,%rax
mov    0x10(%rsp),%r10
mov    0x8(%rsp),%r8
jne    13d9 <SKP_Silk_LPC_inverse_pred_gain+0x2b9>
jmp    142c <SKP_Silk_LPC_inverse_pred_gain+0x30c>
xor    %eax,%eax
jmp    13c6 <SKP_Silk_LPC_inverse_pred_gain+0x2a6>
shl    $0x6,%r9
movslq 0x60(%rsp,%r9,1),%rcx
lea    -0xfff1(%rcx),%edx
mov    $0x1,%eax
cmp    $0xfffe001f,%edx
jb     1751 <SKP_Silk_LPC_inverse_pred_gain+0x631>
shl    $0xf,%rcx
neg    %rcx
imul   %rcx,%rcx
movabs $0x7fffffff00000000,%rax
ff ff 7f
and    %rcx,%rax
mov    0x30(%rsp),%rsi
movslq (%rsi),%rcx
movabs $0x3fffffff00000000,%rdx
ff ff 3f
sub    %rax,%rdx
sar    $0x20,%rdx
imul   %rcx,%rdx
shr    $0x1e,%rdx
and    $0xfffffffc,%edx
mov    %edx,(%rsi)
xor    %eax,%eax
jmp    1751 <SKP_Silk_LPC_inverse_pred_gain+0x631>
mov    $0x1,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
test   $0x1,%r8b
jne    1217 <SKP_Silk_LPC_inverse_pred_gain+0xf7>
jmp    1257 <SKP_Silk_LPC_inverse_pred_gain+0x137>

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

LLVM IR (-O2):
define i32 @SKP_Silk_LPC_inverse_pred_gain(i32* nocapture %0, i16* nocapture %1, i32 %2) {
%4 = alloca [2 x [16 x i32]]
%5 = bitcast [2 x [16 x i32]]* %4 to i8*
%6 = and i32 %2, 1
%7 = zext i32 %6 to i64
%8 = icmp sgt i32 %2, 0
br i1 %8, label %10, label %9
9: ; preds = %3
store i32 1073741824, i32* %0
br label %248
10: ; preds = %3
%11 = zext i32 %2 to i64
%12 = icmp ult i32 %2, 8
br i1 %12, label %77, label %13
13: ; preds = %10
%14 = and i64 %11, 4294967288
%15 = add nsw i64 %14, -8
%16 = lshr exact i64 %15, 3
%17 = add nuw nsw i64 %16, 1
%18 = and i64 %17, 1
%19 = icmp eq i64 %15, 0
br i1 %19, label %57, label %20
20: ; preds = %13
%21 = and i64 %17, 4611686018427387902
br label %22
22: ; preds = %22, %20
%23 = phi i64 [ 0, %20 ], [ %54, %22 ]
%24 = phi i64 [ 0, %20 ], [ %55, %22 ]
%25 = getelementptr inbounds i16, i16* %1, i64 %23
%26 = bitcast i16* %25 to <4 x i16>*
%27 = load <4 x i16>, <4 x i16>* %26
%28 = getelementptr inbounds i16, i16* %25, i64 4
%29 = bitcast i16* %28 to <4 x i16>*
%30 = load <4 x i16>, <4 x i16>* %29
%31 = sext <4 x i16> %27 to <4 x i32>
%32 = sext <4 x i16> %30 to <4 x i32>
%33 = shl nsw <4 x i32> %31, <i32 4, i32 4, i32 4, i32 4>
%34 = shl nsw <4 x i32> %32, <i32 4, i32 4, i32 4, i32 4>
%35 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %7, i64 %23
%36 = bitcast i32* %35 to <4 x i32>*
store <4 x i32> %33, <4 x i32>* %36
%37 = getelementptr inbounds i32, i32* %35, i64 4
%38 = bitcast i32* %37 to <4 x i32>*
store <4 x i32> %34, <4 x i32>* %38
%39 = or i64 %23, 8
%40 = getelementptr inbounds i16, i16* %1, i64 %39
%41 = bitcast i16* %40 to <4 x i16>*
%42 = load <4 x i16>, <4 x i16>* %41
%43 = getelementptr inbounds i16, i16* %40, i64 4
%44 = bitcast i16* %43 to <4 x i16>*
%45 = load <4 x i16>, <4 x i16>* %44
%46 = sext <4 x i16> %42 to <4 x i32>
%47 = sext <4 x i16> %45 to <4 x i32>
%48 = shl nsw <4 x i32> %46, <i32 4, i32 4, i32 4, i32 4>
%49 = shl nsw <4 x i32> %47, <i32 4, i32 4, i32 4, i32 4>
%50 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %7, i64 %39
%51 = bitcast i32* %50 to <4 x i32>*
store <4 x i32> %48, <4 x i32>* %51
%52 = getelementptr inbounds i32, i32* %50, i64 4
%53 = bitcast i32* %52 to <4 x i32>*
store <4 x i32> %49, <4 x i32>* %53
%54 = add nuw i64 %23, 16
%55 = add i64 %24, 2
%56 = icmp eq i64 %55, %21
br i1 %56, label %57, label %22
57: ; preds = %22, %13
%58 = phi i64 [ 0, %13 ], [ %54, %22 ]
%59 = icmp eq i64 %18, 0
br i1 %59, label %75, label %60
60: ; preds = %57
%61 = getelementptr inbounds i16, i16* %1, i64 %58
%62 = bitcast i16* %61 to <4 x i16>*
%63 = load <4 x i16>, <4 x i16>* %62
%64 = getelementptr inbounds i16, i16* %61, i64 4
%65 = bitcast i16* %64 to <4 x i16>*
%66 = load <4 x i16>, <4 x i16>* %65
%67 = sext <4 x i16> %63 to <4 x i32>
%68 = sext <4 x i16> %66 to <4 x i32>
%69 = shl nsw <4 x i32> %67, <i32 4, i32 4, i32 4, i32 4>
%70 = shl nsw <4 x i32> %68, <i32 4, i32 4, i32 4, i32 4>
%71 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %7, i64 %58
%72 = bitcast i32* %71 to <4 x i32>*
store <4 x i32> %69, <4 x i32>* %72
%73 = getelementptr inbounds i32, i32* %71, i64 4
%74 = bitcast i32* %73 to <4 x i32>*
store <4 x i32> %70, <4 x i32>* %74
br label %75
75: ; preds = %57, %60
%76 = icmp eq i64 %14, %11
br i1 %76, label %88, label %77
77: ; preds = %10, %75
%78 = phi i64 [ 0, %10 ], [ %14, %75 ]
br label %79
79: ; preds = %77, %79
%80 = phi i64 [ %86, %79 ], [ %78, %77 ]
%81 = getelementptr inbounds i16, i16* %1, i64 %80
%82 = load i16, i16* %81
%83 = sext i16 %82 to i32
%84 = shl nsw i32 %83, 4
%85 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %7, i64 %80
store i32 %84, i32* %85
%86 = add nuw nsw i64 %80, 1
%87 = icmp eq i64 %86, %11
br i1 %87, label %88, label %79
88: ; preds = %79, %75
store i32 1073741824, i32* %0
%89 = icmp sgt i32 %2, 1
br i1 %89, label %90, label %248
90: ; preds = %88
%91 = zext i32 %2 to i64
%92 = add i32 %2, -1
%93 = add i32 %2, -2
%94 = xor i32 %2, -1
%95 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 0, i64 1
%96 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 0, i64 1
br label %100
97: ; preds = %224, %220
%98 = icmp sgt i64 %102, 2
%99 = add i32 %101, 1
br i1 %98, label %100, label %248
100: ; preds = %90, %97
%101 = phi i32 [ 0, %90 ], [ %99, %97 ]
%102 = phi i64 [ %91, %90 ], [ %132, %97 ]
%103 = phi i32 [ %2, %90 ], [ %131, %97 ]
%104 = phi i64 [ %7, %90 ], [ %153, %97 ]
%105 = xor i32 %101, -1
%106 = add i32 %105, %2
%107 = zext i32 %106 to i64
%108 = sub i32 %94, %101
%109 = and i32 %108, 1
%110 = zext i32 %109 to i64
%111 = getelementptr [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %110, i64 0
%112 = sub i32 %92, %101
%113 = zext i32 %112 to i64
%114 = getelementptr [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %110, i64 %113
%115 = getelementptr [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %104, i64 0
%116 = getelementptr [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %104, i64 %113
%117 = shl nuw nsw i64 %104, 4
%118 = sub i32 %93, %101
%119 = sext i32 %118 to i64
%120 = add nsw i64 %117, %119
%121 = sub nsw i64 %120, %113
%122 = getelementptr i32, i32* %95, i64 %121
%123 = getelementptr i32, i32* %96, i64 %120
%124 = sub i32 %92, %101
%125 = zext i32 %124 to i64
%126 = add nsw i64 %125, -1
%127 = sub i32 %93, %101
%128 = sext i32 %127 to i64
%129 = getelementptr [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %104, i64 %128
%130 = bitcast i32* %129 to i8*
%131 = add i32 %103, -1
%132 = add nsw i64 %102, -1
%133 = and i64 %132, 4294967295
%134 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %104, i64 %133
%135 = load i32, i32* %134
%136 = add i32 %135, -65521
%137 = icmp ult i32 %136, -131041
br i1 %137, label %267, label %138
138: ; preds = %100
%139 = mul nsw i32 %135, -32768
%140 = sext i32 %139 to i64
%141 = mul nsw i64 %140, %140
%142 = lshr i64 %141, 32
%143 = trunc i64 %142 to i32
%144 = sub nsw i32 1073741823, %143
%145 = tail call i32 @SKP_INVERSE32_varQ(i32 %144, i32 46)
%146 = load i32, i32* %0
%147 = sext i32 %146 to i64
%148 = sext i32 %144 to i64
%149 = mul nsw i64 %147, %148
%150 = lshr i64 %149, 30
%151 = trunc i64 %150 to i32
%152 = and i32 %151, -4
store i32 %152, i32* %0
%153 = and i64 %132, 1
%154 = tail call i32 @SKP_Silk_CLZ32(i32 %145)
%155 = add nsw i32 %154, -1
%156 = shl i32 %145, %155
%157 = sext i32 %156 to i64
%158 = sub i32 17, %154
%159 = zext i32 %131 to i64
%160 = icmp ult i32 %106, 4
br i1 %160, label %222, label %161
161: ; preds = %138
%162 = trunc i64 %126 to i32
%163 = sub i32 %127, %162
%164 = icmp sgt i32 %163, %127
%165 = icmp ugt i64 %126, 4294967295
%166 = or i1 %164, %165
%167 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %126, i64 4)
%168 = extractvalue { i64, i1 } %167, 0
%169 = extractvalue { i64, i1 } %167, 1
%170 = sub i64 0, %168
%171 = getelementptr i8, i8* %130, i64 %170
%172 = icmp ugt i8* %171, %130
%173 = or i1 %172, %169
%174 = or i1 %166, %173
br i1 %174, label %222, label %175
175: ; preds = %161
%176 = icmp ult i32* %111, %116
%177 = icmp ult i32* %115, %114
%178 = and i1 %176, %177
%179 = icmp ult i32* %111, %123
%180 = icmp ult i32* %122, %114
%181 = and i1 %179, %180
%182 = or i1 %178, %181
br i1 %182, label %222, label %183
183: ; preds = %175
%184 = and i64 %107, 4294967292
%185 = insertelement <4 x i64> poison, i64 %140, i64 0
%186 = shufflevector <4 x i64> %185, <4 x i64> poison, <4 x i32> zeroinitializer
%187 = insertelement <4 x i64> poison, i64 %157, i64 0
%188 = shufflevector <4 x i64> %187, <4 x i64> poison, <4 x i32> zeroinitializer
%189 = insertelement <4 x i32> poison, i32 %158, i64 0
%190 = shufflevector <4 x i32> %189, <4 x i32> poison, <4 x i32> zeroinitializer
br label %191
191: ; preds = %191, %183
%192 = phi i64 [ 0, %183 ], [ %218, %191 ]
%193 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %104, i64 %192
%194 = bitcast i32* %193 to <4 x i32>*
%195 = load <4 x i32>, <4 x i32>* %194
%196 = xor i64 %192, -1
%197 = add i64 %132, %196
%198 = shl i64 %197, 32
%199 = ashr exact i64 %198, 32
%200 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %104, i64 %199
%201 = getelementptr inbounds i32, i32* %200, i64 -3
%202 = bitcast i32* %201 to <4 x i32>*
%203 = load <4 x i32>, <4 x i32>* %202
%204 = shufflevector <4 x i32> %203, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
%205 = sext <4 x i32> %204 to <4 x i64>
%206 = mul nsw <4 x i64> %186, %205
%207 = lshr <4 x i64> %206, <i64 31, i64 31, i64 31, i64 31>
%208 = trunc <4 x i64> %207 to <4 x i32>
%209 = and <4 x i32> %208, <i32 -2, i32 -2, i32 -2, i32 -2>
%210 = sub nsw <4 x i32> %195, %209
%211 = sext <4 x i32> %210 to <4 x i64>
%212 = mul nsw <4 x i64> %188, %211
%213 = lshr <4 x i64> %212, <i64 32, i64 32, i64 32, i64 32>
%214 = trunc <4 x i64> %213 to <4 x i32>
%215 = shl <4 x i32> %214, %190
%216 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %153, i64 %192
%217 = bitcast i32* %216 to <4 x i32>*
store <4 x i32> %215, <4 x i32>* %217
%218 = add nuw i64 %192, 4
%219 = icmp eq i64 %218, %184
br i1 %219, label %220, label %191
220: ; preds = %191
%221 = icmp eq i64 %184, %107
br i1 %221, label %97, label %222
222: ; preds = %175, %161, %138, %220
%223 = phi i64 [ 0, %175 ], [ 0, %161 ], [ 0, %138 ], [ %184, %220 ]
br label %224
224: ; preds = %222, %224
%225 = phi i64 [ %246, %224 ], [ %223, %222 ]
%226 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %104, i64 %225
%227 = load i32, i32* %226
%228 = xor i64 %225, -1
%229 = add i64 %132, %228
%230 = shl i64 %229, 32
%231 = ashr exact i64 %230, 32
%232 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %104, i64 %231
%233 = load i32, i32* %232
%234 = sext i32 %233 to i64
%235 = mul nsw i64 %234, %140
%236 = lshr i64 %235, 31
%237 = trunc i64 %236 to i32
%238 = and i32 %237, -2
%239 = sub nsw i32 %227, %238
%240 = sext i32 %239 to i64
%241 = mul nsw i64 %240, %157
%242 = lshr i64 %241, 32
%243 = trunc i64 %242 to i32
%244 = shl i32 %243, %158
%245 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %153, i64 %225
store i32 %244, i32* %245
%246 = add nuw nsw i64 %225, 1
%247 = icmp eq i64 %246, %159
br i1 %247, label %97, label %224
248: ; preds = %97, %9, %88
%249 = phi i64 [ %7, %88 ], [ %7, %9 ], [ %153, %97 ]
%250 = getelementptr inbounds [2 x [16 x i32]], [2 x [16 x i32]]* %4, i64 0, i64 %249, i64 0
%251 = load i32, i32* %250
%252 = add i32 %251, -65521
%253 = icmp ult i32 %252, -131041
br i1 %253, label %267, label %254
254: ; preds = %248
%255 = mul nsw i32 %251, -32768
%256 = sext i32 %255 to i64
%257 = mul nsw i64 %256, %256
%258 = and i64 %257, 9223372032559808512
%259 = load i32, i32* %0
%260 = sext i32 %259 to i64
%261 = sub nsw i64 4611686014132420608, %258
%262 = ashr exact i64 %261, 32
%263 = mul nsw i64 %262, %260
%264 = lshr i64 %263, 30
%265 = trunc i64 %264 to i32
%266 = and i32 %265, -4
store i32 %266, i32* %0
br label %267
267: ; preds = %100, %248, %254
%268 = phi i32 [ 0, %254 ], [ 1, %248 ], [ 1, %100 ]
ret i32 %268
}