; LLVM IR from glaretechnologies/substrata :: opus/opus-1.3.1/silk/float (encode_frame_FLP)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.silk_encoder_control_FLP = type { [4 x float], [2 x [16 x float]], [20 x float], float, [4 x i32], [96 x float], [4 x float], [4 x float], [4 x float], [4 x float], float, float, float, float, float, [4 x float], [4 x i32], i8 }
%struct.ec_ctx = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.silk_nsq_state = type { [640 x i16], [640 x i32], [96 x i32], [24 x i32], i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.silk_encoder_state_FLP = type { %struct.silk_encoder_state, %struct.silk_shape_state_FLP, [720 x float], float }
%struct.silk_encoder_state = type { [2 x i32], i32, i32, %struct.silk_LP_state, %struct.silk_VAD_state, %struct.silk_nsq_state, [16 x i16], i32, i32, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, [4 x i32], i32, i32, [3 x i8], i8, [3 x i32], %struct.SideInfoIndices, [320 x i8], i32, [322 x i16], i32, i32, i32, i32, i32, i32, i32, i32, i16, %struct._silk_resampler_state_struct, i32, i32, i32, i32, i32, i32, [3 x %struct.SideInfoIndices], [3 x [320 x i8]] }
%struct.silk_LP_state = type { [2 x i32], i32, i32, i32 }
%struct.silk_VAD_state = type { [2 x i32], [2 x i32], [2 x i32], [4 x i32], [4 x i32], i16, [4 x i32], [4 x i32], [4 x i32], i32 }
%struct.SideInfoIndices = type { [4 x i8], [4 x i8], [17 x i8], i16, i8, i8, i8, i8, i8, i8, i8 }
%struct._silk_resampler_state_struct = type { [6 x i32], %union.anon, [48 x i16], i32, i32, i32, i32, i32, i32, i32, i32, ptr }
%union.anon = type { [36 x i32] }
%struct.silk_shape_state_FLP = type { i8, float, float }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @silk_encode_frame_FLP(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #1 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.silk_encoder_control_FLP, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca [672 x float], align 16
  %24 = alloca %struct.ec_ctx, align 8
  %25 = alloca %struct.ec_ctx, align 8
  %26 = alloca %struct.silk_nsq_state, align 4
  %27 = alloca %struct.silk_nsq_state, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i16, align 2
  %38 = alloca i16, align 2
  %39 = alloca i32, align 4
  %40 = alloca i8, align 1
  %41 = alloca [4 x i32], align 16
  %42 = alloca [1275 x i8], align 16
  %43 = alloca [4 x i32], align 16
  %44 = alloca [4 x i16], align 2
  %45 = alloca [4 x i32], align 16
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i16, align 2
  %50 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 748, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 2688, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4352, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 4352, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #7
  call void @llvm.lifetime.start.p0(i64 1275, ptr %42) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #7
  call void @llvm.memset.p0.i64(ptr align 16 %43, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #7
  store i32 0, ptr %33, align 4, !tbaa !9
  store i32 0, ptr %32, align 4, !tbaa !9
  store i32 0, ptr %31, align 4, !tbaa !9
  store i32 0, ptr %30, align 4, !tbaa !9
  store i8 0, ptr %40, align 1, !tbaa !11
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %struct.silk_encoder_state, ptr %52, i32 0, i32 30
  %54 = load i32, ptr %53, align 4, !tbaa !12
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %53, align 4, !tbaa !12
  %56 = and i32 %54, 3
  %57 = trunc i32 %56 to i8
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %58, i32 0, i32 0
  %60 = getelementptr inbounds %struct.silk_encoder_state, ptr %59, i32 0, i32 55
  %61 = getelementptr inbounds %struct.SideInfoIndices, ptr %60, i32 0, i32 10
  store i8 %57, ptr %61, align 2, !tbaa !23
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %62, i32 0, i32 2
  %64 = getelementptr inbounds [720 x float], ptr %63, i64 0, i64 0
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds %struct.silk_encoder_state, ptr %66, i32 0, i32 23
  %68 = load i32, ptr %67, align 8, !tbaa !24
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds float, ptr %64, i64 %69
  store ptr %70, ptr %21, align 8, !tbaa !5
  %71 = getelementptr inbounds [672 x float], ptr %23, i64 0, i64 0
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds %struct.silk_encoder_state, ptr %73, i32 0, i32 23
  %75 = load i32, ptr %74, align 8, !tbaa !24
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds float, ptr %71, i64 %76
  store ptr %77, ptr %22, align 8, !tbaa !5
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds %struct.silk_encoder_state, ptr %79, i32 0, i32 3
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %struct.silk_encoder_state, ptr %82, i32 0, i32 58
  %84 = getelementptr inbounds [322 x i16], ptr %83, i64 0, i64 0
  %85 = getelementptr inbounds i16, ptr %84, i64 1
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %struct.silk_encoder_state, ptr %87, i32 0, i32 21
  %89 = load i32, ptr %88, align 8, !tbaa !25
  call void @silk_LP_variable_cutoff(ptr noundef %80, ptr noundef %85, i32 noundef %89)
  %90 = load ptr, ptr %21, align 8, !tbaa !5
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %struct.silk_encoder_state, ptr %92, i32 0, i32 19
  %94 = load i32, ptr %93, align 8, !tbaa !26
  %95 = mul nsw i32 5, %94
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %90, i64 %96
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds %struct.silk_encoder_state, ptr %99, i32 0, i32 58
  %101 = getelementptr inbounds [322 x i16], ptr %100, i64 0, i64 0
  %102 = getelementptr inbounds i16, ptr %101, i64 1
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %struct.silk_encoder_state, ptr %104, i32 0, i32 21
  %106 = load i32, ptr %105, align 8, !tbaa !25
  call void @silk_short2float_array(ptr noundef %97, ptr noundef %102, i32 noundef %106)
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %133, %6
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = icmp slt i32 %108, 8
  br i1 %109, label %110, label %136

110:                                              ; preds = %107
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = and i32 %111, 2
  %113 = sub nsw i32 1, %112
  %114 = sitofp i32 %113 to float
  %115 = load ptr, ptr %21, align 8, !tbaa !5
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.silk_encoder_state, ptr %117, i32 0, i32 19
  %119 = load i32, ptr %118, align 8, !tbaa !26
  %120 = mul nsw i32 5, %119
  %121 = load i32, ptr %15, align 4, !tbaa !9
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds %struct.silk_encoder_state, ptr %123, i32 0, i32 21
  %125 = load i32, ptr %124, align 8, !tbaa !25
  %126 = ashr i32 %125, 3
  %127 = mul nsw i32 %121, %126
  %128 = add nsw i32 %120, %127
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds float, ptr %115, i64 %129
  %131 = load float, ptr %130, align 4, !tbaa !27
  %132 = call float @llvm.fmuladd.f32(float %114, float 0x3EB0C6F7A0000000, float %131)
  store float %132, ptr %130, align 4, !tbaa !27
  br label %133

133:                                              ; preds = %110
  %134 = load i32, ptr %15, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %15, align 4, !tbaa !9
  br label %107, !llvm.loop !28

136:                                              ; preds = %107
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds %struct.silk_encoder_state, ptr %138, i32 0, i32 45
  %140 = load i32, ptr %139, align 8, !tbaa !30
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %796, label %142

142:                                              ; preds = %136
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds [672 x float], ptr %23, i64 0, i64 0
  %145 = load ptr, ptr %21, align 8, !tbaa !5
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %146, i32 0, i32 0
  %148 = getelementptr inbounds %struct.silk_encoder_state, ptr %147, i32 0, i32 57
  %149 = load i32, ptr %148, align 4, !tbaa !31
  call void @silk_find_pitch_lags_FLP(ptr noundef %143, ptr noundef %14, ptr noundef %144, ptr noundef %145, i32 noundef %149)
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = load ptr, ptr %22, align 8, !tbaa !5
  %152 = load ptr, ptr %21, align 8, !tbaa !5
  call void @silk_noise_shape_analysis_FLP(ptr noundef %150, ptr noundef %14, ptr noundef %151, ptr noundef %152)
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load ptr, ptr %22, align 8, !tbaa !5
  %155 = load ptr, ptr %21, align 8, !tbaa !5
  %156 = load i32, ptr %11, align 4, !tbaa !9
  call void @silk_find_pred_coefs_FLP(ptr noundef %153, ptr noundef %14, ptr noundef %154, ptr noundef %155, i32 noundef %156)
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = load i32, ptr %11, align 4, !tbaa !9
  call void @silk_process_gains_FLP(ptr noundef %157, ptr noundef %14, i32 noundef %158)
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = load ptr, ptr %21, align 8, !tbaa !5
  %161 = load i32, ptr %11, align 4, !tbaa !9
  call void @silk_LBRR_encode_FLP(ptr noundef %159, ptr noundef %14, ptr noundef %160, i32 noundef %161)
  store i32 6, ptr %17, align 4, !tbaa !9
  store i16 256, ptr %37, align 2, !tbaa !32
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds %struct.silk_encoder_state, ptr %163, i32 0, i32 55
  %165 = getelementptr inbounds %struct.SideInfoIndices, ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds [4 x i8], ptr %165, i64 0, i64 0
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %167, i32 0, i32 0
  %169 = getelementptr inbounds %struct.silk_encoder_state, ptr %168, i32 0, i32 20
  %170 = load i32, ptr %169, align 4, !tbaa !33
  %171 = call i32 @silk_gains_ID(ptr noundef %166, i32 noundef %170)
  store i32 %171, ptr %34, align 4, !tbaa !9
  store i32 -1, ptr %35, align 4, !tbaa !9
  store i32 -1, ptr %36, align 4, !tbaa !9
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %172, i64 56, i1 false)
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds %struct.silk_encoder_state, ptr %174, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %175, i64 4352, i1 false)
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds %struct.silk_encoder_state, ptr %177, i32 0, i32 55
  %179 = getelementptr inbounds %struct.SideInfoIndices, ptr %178, i32 0, i32 10
  %180 = load i8, ptr %179, align 2, !tbaa !23
  %181 = sext i8 %180 to i32
  store i32 %181, ptr %28, align 4, !tbaa !9
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %182, i32 0, i32 0
  %184 = getelementptr inbounds %struct.silk_encoder_state, ptr %183, i32 0, i32 67
  %185 = load i16, ptr %184, align 4, !tbaa !34
  store i16 %185, ptr %38, align 2, !tbaa !32
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %186, i32 0, i32 0
  %188 = getelementptr inbounds %struct.silk_encoder_state, ptr %187, i32 0, i32 66
  %189 = load i32, ptr %188, align 8, !tbaa !35
  store i32 %189, ptr %39, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %792, %142
  %191 = load i32, ptr %34, align 4, !tbaa !9
  %192 = load i32, ptr %35, align 4, !tbaa !9
  %193 = icmp eq i32 %191, %192
  br i1 %193, label %194, label %196

194:                                              ; preds = %190
  %195 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %195, ptr %29, align 4, !tbaa !9
  br label %394

196:                                              ; preds = %190
  %197 = load i32, ptr %34, align 4, !tbaa !9
  %198 = load i32, ptr %36, align 4, !tbaa !9
  %199 = icmp eq i32 %197, %198
  br i1 %199, label %200, label %202

200:                                              ; preds = %196
  %201 = load i32, ptr %31, align 4, !tbaa !9
  store i32 %201, ptr %29, align 4, !tbaa !9
  br label %393

202:                                              ; preds = %196
  %203 = load i32, ptr %16, align 4, !tbaa !9
  %204 = icmp sgt i32 %203, 0
  br i1 %204, label %205, label %224

205:                                              ; preds = %202
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %206, ptr align 8 %24, i64 56, i1 false)
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %207, i32 0, i32 0
  %209 = getelementptr inbounds %struct.silk_encoder_state, ptr %208, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %209, ptr align 4 %26, i64 4352, i1 false)
  %210 = load i32, ptr %28, align 4, !tbaa !9
  %211 = trunc i32 %210 to i8
  %212 = load ptr, ptr %8, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds %struct.silk_encoder_state, ptr %213, i32 0, i32 55
  %215 = getelementptr inbounds %struct.SideInfoIndices, ptr %214, i32 0, i32 10
  store i8 %211, ptr %215, align 2, !tbaa !23
  %216 = load i16, ptr %38, align 2, !tbaa !32
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %217, i32 0, i32 0
  %219 = getelementptr inbounds %struct.silk_encoder_state, ptr %218, i32 0, i32 67
  store i16 %216, ptr %219, align 4, !tbaa !34
  %220 = load i32, ptr %39, align 4, !tbaa !9
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %221, i32 0, i32 0
  %223 = getelementptr inbounds %struct.silk_encoder_state, ptr %222, i32 0, i32 66
  store i32 %220, ptr %223, align 8, !tbaa !35
  br label %224

224:                                              ; preds = %205, %202
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %226, i32 0, i32 0
  %228 = getelementptr inbounds %struct.silk_encoder_state, ptr %227, i32 0, i32 55
  %229 = load ptr, ptr %8, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds %struct.silk_encoder_state, ptr %230, i32 0, i32 5
  %232 = load ptr, ptr %8, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %232, i32 0, i32 0
  %234 = getelementptr inbounds %struct.silk_encoder_state, ptr %233, i32 0, i32 56
  %235 = getelementptr inbounds [320 x i8], ptr %234, i64 0, i64 0
  %236 = load ptr, ptr %21, align 8, !tbaa !5
  call void @silk_NSQ_wrapper_FLP(ptr noundef %225, ptr noundef %14, ptr noundef %228, ptr noundef %231, ptr noundef %235, ptr noundef %236)
  %237 = load i32, ptr %16, align 4, !tbaa !9
  %238 = load i32, ptr %17, align 4, !tbaa !9
  %239 = icmp eq i32 %237, %238
  br i1 %239, label %240, label %245

240:                                              ; preds = %224
  %241 = load i32, ptr %19, align 4, !tbaa !9
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %245, label %243

243:                                              ; preds = %240
  %244 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %244, i64 56, i1 false)
  br label %245

245:                                              ; preds = %243, %240, %224
  %246 = load ptr, ptr %8, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %246, i32 0, i32 0
  %248 = load ptr, ptr %10, align 8, !tbaa !5
  %249 = load ptr, ptr %8, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %249, i32 0, i32 0
  %251 = getelementptr inbounds %struct.silk_encoder_state, ptr %250, i32 0, i32 61
  %252 = load i32, ptr %251, align 4, !tbaa !36
  %253 = load i32, ptr %11, align 4, !tbaa !9
  call void @silk_encode_indices(ptr noundef %247, ptr noundef %248, i32 noundef %252, i32 noundef 0, i32 noundef %253)
  %254 = load ptr, ptr %10, align 8, !tbaa !5
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds %struct.silk_encoder_state, ptr %256, i32 0, i32 55
  %258 = getelementptr inbounds %struct.SideInfoIndices, ptr %257, i32 0, i32 5
  %259 = load i8, ptr %258, align 1, !tbaa !37
  %260 = sext i8 %259 to i32
  %261 = load ptr, ptr %8, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %261, i32 0, i32 0
  %263 = getelementptr inbounds %struct.silk_encoder_state, ptr %262, i32 0, i32 55
  %264 = getelementptr inbounds %struct.SideInfoIndices, ptr %263, i32 0, i32 6
  %265 = load i8, ptr %264, align 2, !tbaa !38
  %266 = sext i8 %265 to i32
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %267, i32 0, i32 0
  %269 = getelementptr inbounds %struct.silk_encoder_state, ptr %268, i32 0, i32 56
  %270 = getelementptr inbounds [320 x i8], ptr %269, i64 0, i64 0
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %271, i32 0, i32 0
  %273 = getelementptr inbounds %struct.silk_encoder_state, ptr %272, i32 0, i32 21
  %274 = load i32, ptr %273, align 8, !tbaa !25
  call void @silk_encode_pulses(ptr noundef %254, i32 noundef %260, i32 noundef %266, ptr noundef %270, i32 noundef %274)
  %275 = load ptr, ptr %10, align 8, !tbaa !5
  %276 = call i32 @ec_tell(ptr noundef %275)
  store i32 %276, ptr %29, align 4, !tbaa !9
  %277 = load i32, ptr %16, align 4, !tbaa !9
  %278 = load i32, ptr %17, align 4, !tbaa !9
  %279 = icmp eq i32 %277, %278
  br i1 %279, label %280, label %381

280:                                              ; preds = %245
  %281 = load i32, ptr %19, align 4, !tbaa !9
  %282 = icmp ne i32 %281, 0
  br i1 %282, label %381, label %283

283:                                              ; preds = %280
  %284 = load i32, ptr %29, align 4, !tbaa !9
  %285 = load i32, ptr %12, align 4, !tbaa !9
  %286 = icmp sgt i32 %284, %285
  br i1 %286, label %287, label %381

287:                                              ; preds = %283
  %288 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %288, ptr align 8 %25, i64 56, i1 false)
  %289 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 17
  %290 = load i8, ptr %289, align 4, !tbaa !39
  %291 = load ptr, ptr %8, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %291, i32 0, i32 1
  %293 = getelementptr inbounds %struct.silk_shape_state_FLP, ptr %292, i32 0, i32 0
  store i8 %290, ptr %293, align 8, !tbaa !41
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %294

294:                                              ; preds = %309, %287
  %295 = load i32, ptr %15, align 4, !tbaa !9
  %296 = load ptr, ptr %8, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %296, i32 0, i32 0
  %298 = getelementptr inbounds %struct.silk_encoder_state, ptr %297, i32 0, i32 20
  %299 = load i32, ptr %298, align 4, !tbaa !33
  %300 = icmp slt i32 %295, %299
  br i1 %300, label %301, label %312

301:                                              ; preds = %294
  %302 = load ptr, ptr %8, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %302, i32 0, i32 0
  %304 = getelementptr inbounds %struct.silk_encoder_state, ptr %303, i32 0, i32 55
  %305 = getelementptr inbounds %struct.SideInfoIndices, ptr %304, i32 0, i32 0
  %306 = load i32, ptr %15, align 4, !tbaa !9
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [4 x i8], ptr %305, i64 0, i64 %307
  store i8 4, ptr %308, align 1, !tbaa !11
  br label %309

309:                                              ; preds = %301
  %310 = load i32, ptr %15, align 4, !tbaa !9
  %311 = add nsw i32 %310, 1
  store i32 %311, ptr %15, align 4, !tbaa !9
  br label %294, !llvm.loop !42

312:                                              ; preds = %294
  %313 = load i32, ptr %11, align 4, !tbaa !9
  %314 = icmp ne i32 %313, 2
  br i1 %314, label %315, label %323

315:                                              ; preds = %312
  %316 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 17
  %317 = load i8, ptr %316, align 4, !tbaa !39
  %318 = load ptr, ptr %8, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %318, i32 0, i32 0
  %320 = getelementptr inbounds %struct.silk_encoder_state, ptr %319, i32 0, i32 55
  %321 = getelementptr inbounds %struct.SideInfoIndices, ptr %320, i32 0, i32 0
  %322 = getelementptr inbounds [4 x i8], ptr %321, i64 0, i64 0
  store i8 %317, ptr %322, align 8, !tbaa !11
  br label %323

323:                                              ; preds = %315, %312
  %324 = load i16, ptr %38, align 2, !tbaa !32
  %325 = load ptr, ptr %8, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %325, i32 0, i32 0
  %327 = getelementptr inbounds %struct.silk_encoder_state, ptr %326, i32 0, i32 67
  store i16 %324, ptr %327, align 4, !tbaa !34
  %328 = load i32, ptr %39, align 4, !tbaa !9
  %329 = load ptr, ptr %8, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %329, i32 0, i32 0
  %331 = getelementptr inbounds %struct.silk_encoder_state, ptr %330, i32 0, i32 66
  store i32 %328, ptr %331, align 8, !tbaa !35
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %332

332:                                              ; preds = %346, %323
  %333 = load i32, ptr %15, align 4, !tbaa !9
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %334, i32 0, i32 0
  %336 = getelementptr inbounds %struct.silk_encoder_state, ptr %335, i32 0, i32 21
  %337 = load i32, ptr %336, align 8, !tbaa !25
  %338 = icmp slt i32 %333, %337
  br i1 %338, label %339, label %349

339:                                              ; preds = %332
  %340 = load ptr, ptr %8, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %340, i32 0, i32 0
  %342 = getelementptr inbounds %struct.silk_encoder_state, ptr %341, i32 0, i32 56
  %343 = load i32, ptr %15, align 4, !tbaa !9
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [320 x i8], ptr %342, i64 0, i64 %344
  store i8 0, ptr %345, align 1, !tbaa !11
  br label %346

346:                                              ; preds = %339
  %347 = load i32, ptr %15, align 4, !tbaa !9
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %15, align 4, !tbaa !9
  br label %332, !llvm.loop !43

349:                                              ; preds = %332
  %350 = load ptr, ptr %8, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %350, i32 0, i32 0
  %352 = load ptr, ptr %10, align 8, !tbaa !5
  %353 = load ptr, ptr %8, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %353, i32 0, i32 0
  %355 = getelementptr inbounds %struct.silk_encoder_state, ptr %354, i32 0, i32 61
  %356 = load i32, ptr %355, align 4, !tbaa !36
  %357 = load i32, ptr %11, align 4, !tbaa !9
  call void @silk_encode_indices(ptr noundef %351, ptr noundef %352, i32 noundef %356, i32 noundef 0, i32 noundef %357)
  %358 = load ptr, ptr %10, align 8, !tbaa !5
  %359 = load ptr, ptr %8, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %359, i32 0, i32 0
  %361 = getelementptr inbounds %struct.silk_encoder_state, ptr %360, i32 0, i32 55
  %362 = getelementptr inbounds %struct.SideInfoIndices, ptr %361, i32 0, i32 5
  %363 = load i8, ptr %362, align 1, !tbaa !37
  %364 = sext i8 %363 to i32
  %365 = load ptr, ptr %8, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %365, i32 0, i32 0
  %367 = getelementptr inbounds %struct.silk_encoder_state, ptr %366, i32 0, i32 55
  %368 = getelementptr inbounds %struct.SideInfoIndices, ptr %367, i32 0, i32 6
  %369 = load i8, ptr %368, align 2, !tbaa !38
  %370 = sext i8 %369 to i32
  %371 = load ptr, ptr %8, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %371, i32 0, i32 0
  %373 = getelementptr inbounds %struct.silk_encoder_state, ptr %372, i32 0, i32 56
  %374 = getelementptr inbounds [320 x i8], ptr %373, i64 0, i64 0
  %375 = load ptr, ptr %8, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %375, i32 0, i32 0
  %377 = getelementptr inbounds %struct.silk_encoder_state, ptr %376, i32 0, i32 21
  %378 = load i32, ptr %377, align 8, !tbaa !25
  call void @silk_encode_pulses(ptr noundef %358, i32 noundef %364, i32 noundef %370, ptr noundef %374, i32 noundef %378)
  %379 = load ptr, ptr %10, align 8, !tbaa !5
  %380 = call i32 @ec_tell(ptr noundef %379)
  store i32 %380, ptr %29, align 4, !tbaa !9
  br label %381

381:                                              ; preds = %349, %283, %280, %245
  %382 = load i32, ptr %13, align 4, !tbaa !9
  %383 = icmp eq i32 %382, 0
  br i1 %383, label %384, label %392

384:                                              ; preds = %381
  %385 = load i32, ptr %16, align 4, !tbaa !9
  %386 = icmp eq i32 %385, 0
  br i1 %386, label %387, label %392

387:                                              ; preds = %384
  %388 = load i32, ptr %29, align 4, !tbaa !9
  %389 = load i32, ptr %12, align 4, !tbaa !9
  %390 = icmp sle i32 %388, %389
  br i1 %390, label %391, label %392

391:                                              ; preds = %387
  br label %795

392:                                              ; preds = %387, %384, %381
  br label %393

393:                                              ; preds = %392, %200
  br label %394

394:                                              ; preds = %393, %194
  %395 = load i32, ptr %16, align 4, !tbaa !9
  %396 = load i32, ptr %17, align 4, !tbaa !9
  %397 = icmp eq i32 %395, %396
  br i1 %397, label %398, label %426

398:                                              ; preds = %394
  %399 = load i32, ptr %19, align 4, !tbaa !9
  %400 = icmp ne i32 %399, 0
  br i1 %400, label %401, label %425

401:                                              ; preds = %398
  %402 = load i32, ptr %34, align 4, !tbaa !9
  %403 = load i32, ptr %35, align 4, !tbaa !9
  %404 = icmp eq i32 %402, %403
  br i1 %404, label %409, label %405

405:                                              ; preds = %401
  %406 = load i32, ptr %29, align 4, !tbaa !9
  %407 = load i32, ptr %12, align 4, !tbaa !9
  %408 = icmp sgt i32 %406, %407
  br i1 %408, label %409, label %425

409:                                              ; preds = %405, %401
  %410 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %410, ptr align 8 %25, i64 56, i1 false)
  %411 = load ptr, ptr %10, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.ec_ctx, ptr %411, i32 0, i32 0
  %413 = load ptr, ptr %412, align 8, !tbaa !44
  %414 = getelementptr inbounds [1275 x i8], ptr %42, i64 0, i64 0
  %415 = getelementptr inbounds %struct.ec_ctx, ptr %25, i32 0, i32 6
  %416 = load i32, ptr %415, align 4, !tbaa !46
  %417 = zext i32 %416 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %413, ptr align 16 %414, i64 %417, i1 false)
  %418 = load ptr, ptr %8, align 8, !tbaa !5
  %419 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %418, i32 0, i32 0
  %420 = getelementptr inbounds %struct.silk_encoder_state, ptr %419, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %420, ptr align 4 %27, i64 4352, i1 false)
  %421 = load i8, ptr %40, align 1, !tbaa !11
  %422 = load ptr, ptr %8, align 8, !tbaa !5
  %423 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %422, i32 0, i32 1
  %424 = getelementptr inbounds %struct.silk_shape_state_FLP, ptr %423, i32 0, i32 0
  store i8 %421, ptr %424, align 8, !tbaa !41
  br label %425

425:                                              ; preds = %409, %405, %398
  br label %795

426:                                              ; preds = %394
  %427 = load i32, ptr %29, align 4, !tbaa !9
  %428 = load i32, ptr %12, align 4, !tbaa !9
  %429 = icmp sgt i32 %427, %428
  br i1 %429, label %430, label %459

430:                                              ; preds = %426
  %431 = load i32, ptr %19, align 4, !tbaa !9
  %432 = icmp eq i32 %431, 0
  br i1 %432, label %433, label %453

433:                                              ; preds = %430
  %434 = load i32, ptr %16, align 4, !tbaa !9
  %435 = icmp sge i32 %434, 2
  br i1 %435, label %436, label %453

436:                                              ; preds = %433
  %437 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 10
  %438 = load float, ptr %437, align 4, !tbaa !47
  %439 = fmul float %438, 1.500000e+00
  %440 = fcmp ogt float %439, 1.500000e+00
  br i1 %440, label %441, label %445

441:                                              ; preds = %436
  %442 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 10
  %443 = load float, ptr %442, align 4, !tbaa !47
  %444 = fmul float %443, 1.500000e+00
  br label %446

445:                                              ; preds = %436
  br label %446

446:                                              ; preds = %445, %441
  %447 = phi float [ %444, %441 ], [ 1.500000e+00, %445 ]
  %448 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 10
  store float %447, ptr %448, align 4, !tbaa !47
  %449 = load ptr, ptr %8, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %449, i32 0, i32 0
  %451 = getelementptr inbounds %struct.silk_encoder_state, ptr %450, i32 0, i32 55
  %452 = getelementptr inbounds %struct.SideInfoIndices, ptr %451, i32 0, i32 6
  store i8 0, ptr %452, align 2, !tbaa !38
  store i32 0, ptr %18, align 4, !tbaa !9
  store i32 -1, ptr %36, align 4, !tbaa !9
  br label %458

453:                                              ; preds = %433, %430
  store i32 1, ptr %18, align 4, !tbaa !9
  %454 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %454, ptr %31, align 4, !tbaa !9
  %455 = load i16, ptr %37, align 2, !tbaa !32
  %456 = sext i16 %455 to i32
  store i32 %456, ptr %33, align 4, !tbaa !9
  %457 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %457, ptr %36, align 4, !tbaa !9
  br label %458

458:                                              ; preds = %453, %446
  br label %492

459:                                              ; preds = %426
  %460 = load i32, ptr %29, align 4, !tbaa !9
  %461 = load i32, ptr %12, align 4, !tbaa !9
  %462 = sub nsw i32 %461, 5
  %463 = icmp slt i32 %460, %462
  br i1 %463, label %464, label %490

464:                                              ; preds = %459
  store i32 1, ptr %19, align 4, !tbaa !9
  %465 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %465, ptr %30, align 4, !tbaa !9
  %466 = load i16, ptr %37, align 2, !tbaa !32
  %467 = sext i16 %466 to i32
  store i32 %467, ptr %32, align 4, !tbaa !9
  %468 = load i32, ptr %34, align 4, !tbaa !9
  %469 = load i32, ptr %35, align 4, !tbaa !9
  %470 = icmp ne i32 %468, %469
  br i1 %470, label %471, label %489

471:                                              ; preds = %464
  %472 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %472, ptr %35, align 4, !tbaa !9
  %473 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %473, i64 56, i1 false)
  %474 = getelementptr inbounds [1275 x i8], ptr %42, i64 0, i64 0
  %475 = load ptr, ptr %10, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.ec_ctx, ptr %475, i32 0, i32 0
  %477 = load ptr, ptr %476, align 8, !tbaa !44
  %478 = load ptr, ptr %10, align 8, !tbaa !5
  %479 = getelementptr inbounds %struct.ec_ctx, ptr %478, i32 0, i32 6
  %480 = load i32, ptr %479, align 4, !tbaa !46
  %481 = zext i32 %480 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %474, ptr align 1 %477, i64 %481, i1 false)
  %482 = load ptr, ptr %8, align 8, !tbaa !5
  %483 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %482, i32 0, i32 0
  %484 = getelementptr inbounds %struct.silk_encoder_state, ptr %483, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %484, i64 4352, i1 false)
  %485 = load ptr, ptr %8, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %485, i32 0, i32 1
  %487 = getelementptr inbounds %struct.silk_shape_state_FLP, ptr %486, i32 0, i32 0
  %488 = load i8, ptr %487, align 8, !tbaa !41
  store i8 %488, ptr %40, align 1, !tbaa !11
  br label %489

489:                                              ; preds = %471, %464
  br label %491

490:                                              ; preds = %459
  br label %795

491:                                              ; preds = %489
  br label %492

492:                                              ; preds = %491, %458
  %493 = load i32, ptr %19, align 4, !tbaa !9
  %494 = icmp ne i32 %493, 0
  br i1 %494, label %573, label %495

495:                                              ; preds = %492
  %496 = load i32, ptr %29, align 4, !tbaa !9
  %497 = load i32, ptr %12, align 4, !tbaa !9
  %498 = icmp sgt i32 %496, %497
  br i1 %498, label %499, label %573

499:                                              ; preds = %495
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %500

500:                                              ; preds = %569, %499
  %501 = load i32, ptr %15, align 4, !tbaa !9
  %502 = load ptr, ptr %8, align 8, !tbaa !5
  %503 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %502, i32 0, i32 0
  %504 = getelementptr inbounds %struct.silk_encoder_state, ptr %503, i32 0, i32 20
  %505 = load i32, ptr %504, align 4, !tbaa !33
  %506 = icmp slt i32 %501, %505
  br i1 %506, label %507, label %572

507:                                              ; preds = %500
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  store i32 0, ptr %47, align 4, !tbaa !9
  %508 = load i32, ptr %15, align 4, !tbaa !9
  %509 = load ptr, ptr %8, align 8, !tbaa !5
  %510 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %509, i32 0, i32 0
  %511 = getelementptr inbounds %struct.silk_encoder_state, ptr %510, i32 0, i32 22
  %512 = load i32, ptr %511, align 4, !tbaa !48
  %513 = mul nsw i32 %508, %512
  store i32 %513, ptr %46, align 4, !tbaa !9
  br label %514

514:                                              ; preds = %536, %507
  %515 = load i32, ptr %46, align 4, !tbaa !9
  %516 = load i32, ptr %15, align 4, !tbaa !9
  %517 = add nsw i32 %516, 1
  %518 = load ptr, ptr %8, align 8, !tbaa !5
  %519 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %518, i32 0, i32 0
  %520 = getelementptr inbounds %struct.silk_encoder_state, ptr %519, i32 0, i32 22
  %521 = load i32, ptr %520, align 4, !tbaa !48
  %522 = mul nsw i32 %517, %521
  %523 = icmp slt i32 %515, %522
  br i1 %523, label %524, label %539

524:                                              ; preds = %514
  %525 = load ptr, ptr %8, align 8, !tbaa !5
  %526 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %525, i32 0, i32 0
  %527 = getelementptr inbounds %struct.silk_encoder_state, ptr %526, i32 0, i32 56
  %528 = load i32, ptr %46, align 4, !tbaa !9
  %529 = sext i32 %528 to i64
  %530 = getelementptr inbounds [320 x i8], ptr %527, i64 0, i64 %529
  %531 = load i8, ptr %530, align 1, !tbaa !11
  %532 = sext i8 %531 to i32
  %533 = call i32 @llvm.abs.i32(i32 %532, i1 true)
  %534 = load i32, ptr %47, align 4, !tbaa !9
  %535 = add nsw i32 %534, %533
  store i32 %535, ptr %47, align 4, !tbaa !9
  br label %536

536:                                              ; preds = %524
  %537 = load i32, ptr %46, align 4, !tbaa !9
  %538 = add nsw i32 %537, 1
  store i32 %538, ptr %46, align 4, !tbaa !9
  br label %514, !llvm.loop !49

539:                                              ; preds = %514
  %540 = load i32, ptr %16, align 4, !tbaa !9
  %541 = icmp eq i32 %540, 0
  br i1 %541, label %555, label %542

542:                                              ; preds = %539
  %543 = load i32, ptr %47, align 4, !tbaa !9
  %544 = load i32, ptr %15, align 4, !tbaa !9
  %545 = sext i32 %544 to i64
  %546 = getelementptr inbounds [4 x i32], ptr %45, i64 0, i64 %545
  %547 = load i32, ptr %546, align 4, !tbaa !9
  %548 = icmp slt i32 %543, %547
  br i1 %548, label %549, label %564

549:                                              ; preds = %542
  %550 = load i32, ptr %15, align 4, !tbaa !9
  %551 = sext i32 %550 to i64
  %552 = getelementptr inbounds [4 x i32], ptr %43, i64 0, i64 %551
  %553 = load i32, ptr %552, align 4, !tbaa !9
  %554 = icmp ne i32 %553, 0
  br i1 %554, label %564, label %555

555:                                              ; preds = %549, %539
  %556 = load i32, ptr %47, align 4, !tbaa !9
  %557 = load i32, ptr %15, align 4, !tbaa !9
  %558 = sext i32 %557 to i64
  %559 = getelementptr inbounds [4 x i32], ptr %45, i64 0, i64 %558
  store i32 %556, ptr %559, align 4, !tbaa !9
  %560 = load i16, ptr %37, align 2, !tbaa !32
  %561 = load i32, ptr %15, align 4, !tbaa !9
  %562 = sext i32 %561 to i64
  %563 = getelementptr inbounds [4 x i16], ptr %44, i64 0, i64 %562
  store i16 %560, ptr %563, align 2, !tbaa !32
  br label %568

564:                                              ; preds = %549, %542
  %565 = load i32, ptr %15, align 4, !tbaa !9
  %566 = sext i32 %565 to i64
  %567 = getelementptr inbounds [4 x i32], ptr %43, i64 0, i64 %566
  store i32 1, ptr %567, align 4, !tbaa !9
  br label %568

568:                                              ; preds = %564, %555
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %569

569:                                              ; preds = %568
  %570 = load i32, ptr %15, align 4, !tbaa !9
  %571 = add nsw i32 %570, 1
  store i32 %571, ptr %15, align 4, !tbaa !9
  br label %500, !llvm.loop !50

572:                                              ; preds = %500
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  br label %573

573:                                              ; preds = %572, %495, %492
  %574 = load i32, ptr %19, align 4, !tbaa !9
  %575 = load i32, ptr %18, align 4, !tbaa !9
  %576 = and i32 %574, %575
  %577 = icmp eq i32 %576, 0
  br i1 %577, label %578, label %614

578:                                              ; preds = %573
  %579 = load i32, ptr %29, align 4, !tbaa !9
  %580 = load i32, ptr %12, align 4, !tbaa !9
  %581 = icmp sgt i32 %579, %580
  br i1 %581, label %582, label %593

582:                                              ; preds = %578
  %583 = load i16, ptr %37, align 2, !tbaa !32
  %584 = sext i16 %583 to i32
  %585 = icmp slt i32 %584, 16384
  br i1 %585, label %586, label %591

586:                                              ; preds = %582
  %587 = load i16, ptr %37, align 2, !tbaa !32
  %588 = sext i16 %587 to i32
  %589 = mul nsw i32 %588, 2
  %590 = trunc i32 %589 to i16
  store i16 %590, ptr %37, align 2, !tbaa !32
  br label %592

591:                                              ; preds = %582
  store i16 32767, ptr %37, align 2, !tbaa !32
  br label %592

592:                                              ; preds = %591, %586
  br label %613

593:                                              ; preds = %578
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  %594 = load i32, ptr %29, align 4, !tbaa !9
  %595 = load i32, ptr %12, align 4, !tbaa !9
  %596 = sub nsw i32 %594, %595
  %597 = shl i32 %596, 7
  %598 = load ptr, ptr %8, align 8, !tbaa !5
  %599 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %598, i32 0, i32 0
  %600 = getelementptr inbounds %struct.silk_encoder_state, ptr %599, i32 0, i32 21
  %601 = load i32, ptr %600, align 8, !tbaa !25
  %602 = sdiv i32 %597, %601
  %603 = add nsw i32 %602, 2048
  %604 = call i32 @silk_log2lin(i32 noundef %603)
  store i32 %604, ptr %48, align 4, !tbaa !9
  %605 = load i32, ptr %48, align 4, !tbaa !9
  %606 = sext i32 %605 to i64
  %607 = load i16, ptr %37, align 2, !tbaa !32
  %608 = sext i16 %607 to i64
  %609 = mul nsw i64 %606, %608
  %610 = ashr i64 %609, 16
  %611 = trunc i64 %610 to i32
  %612 = trunc i32 %611 to i16
  store i16 %612, ptr %37, align 2, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  br label %613

613:                                              ; preds = %593, %592
  br label %666

614:                                              ; preds = %573
  %615 = load i32, ptr %32, align 4, !tbaa !9
  %616 = load i32, ptr %33, align 4, !tbaa !9
  %617 = load i32, ptr %32, align 4, !tbaa !9
  %618 = sub nsw i32 %616, %617
  %619 = load i32, ptr %12, align 4, !tbaa !9
  %620 = load i32, ptr %30, align 4, !tbaa !9
  %621 = sub nsw i32 %619, %620
  %622 = mul nsw i32 %618, %621
  %623 = load i32, ptr %31, align 4, !tbaa !9
  %624 = load i32, ptr %30, align 4, !tbaa !9
  %625 = sub nsw i32 %623, %624
  %626 = sdiv i32 %622, %625
  %627 = add nsw i32 %615, %626
  %628 = trunc i32 %627 to i16
  store i16 %628, ptr %37, align 2, !tbaa !32
  %629 = load i16, ptr %37, align 2, !tbaa !32
  %630 = sext i16 %629 to i32
  %631 = load i32, ptr %32, align 4, !tbaa !9
  %632 = load i32, ptr %33, align 4, !tbaa !9
  %633 = load i32, ptr %32, align 4, !tbaa !9
  %634 = sub nsw i32 %632, %633
  %635 = ashr i32 %634, 2
  %636 = add nsw i32 %631, %635
  %637 = icmp sgt i32 %630, %636
  br i1 %637, label %638, label %646

638:                                              ; preds = %614
  %639 = load i32, ptr %32, align 4, !tbaa !9
  %640 = load i32, ptr %33, align 4, !tbaa !9
  %641 = load i32, ptr %32, align 4, !tbaa !9
  %642 = sub nsw i32 %640, %641
  %643 = ashr i32 %642, 2
  %644 = add nsw i32 %639, %643
  %645 = trunc i32 %644 to i16
  store i16 %645, ptr %37, align 2, !tbaa !32
  br label %665

646:                                              ; preds = %614
  %647 = load i16, ptr %37, align 2, !tbaa !32
  %648 = sext i16 %647 to i32
  %649 = load i32, ptr %33, align 4, !tbaa !9
  %650 = load i32, ptr %33, align 4, !tbaa !9
  %651 = load i32, ptr %32, align 4, !tbaa !9
  %652 = sub nsw i32 %650, %651
  %653 = ashr i32 %652, 2
  %654 = sub nsw i32 %649, %653
  %655 = icmp slt i32 %648, %654
  br i1 %655, label %656, label %664

656:                                              ; preds = %646
  %657 = load i32, ptr %33, align 4, !tbaa !9
  %658 = load i32, ptr %33, align 4, !tbaa !9
  %659 = load i32, ptr %32, align 4, !tbaa !9
  %660 = sub nsw i32 %658, %659
  %661 = ashr i32 %660, 2
  %662 = sub nsw i32 %657, %661
  %663 = trunc i32 %662 to i16
  store i16 %663, ptr %37, align 2, !tbaa !32
  br label %664

664:                                              ; preds = %656, %646
  br label %665

665:                                              ; preds = %664, %638
  br label %666

666:                                              ; preds = %665, %613
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %667

667:                                              ; preds = %735, %666
  %668 = load i32, ptr %15, align 4, !tbaa !9
  %669 = load ptr, ptr %8, align 8, !tbaa !5
  %670 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %669, i32 0, i32 0
  %671 = getelementptr inbounds %struct.silk_encoder_state, ptr %670, i32 0, i32 20
  %672 = load i32, ptr %671, align 4, !tbaa !33
  %673 = icmp slt i32 %668, %672
  br i1 %673, label %674, label %738

674:                                              ; preds = %667
  call void @llvm.lifetime.start.p0(i64 2, ptr %49) #7
  %675 = load i32, ptr %15, align 4, !tbaa !9
  %676 = sext i32 %675 to i64
  %677 = getelementptr inbounds [4 x i32], ptr %43, i64 0, i64 %676
  %678 = load i32, ptr %677, align 4, !tbaa !9
  %679 = icmp ne i32 %678, 0
  br i1 %679, label %680, label %685

680:                                              ; preds = %674
  %681 = load i32, ptr %15, align 4, !tbaa !9
  %682 = sext i32 %681 to i64
  %683 = getelementptr inbounds [4 x i16], ptr %44, i64 0, i64 %682
  %684 = load i16, ptr %683, align 2, !tbaa !32
  store i16 %684, ptr %49, align 2, !tbaa !32
  br label %687

685:                                              ; preds = %674
  %686 = load i16, ptr %37, align 2, !tbaa !32
  store i16 %686, ptr %49, align 2, !tbaa !32
  br label %687

687:                                              ; preds = %685, %680
  %688 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 16
  %689 = load i32, ptr %15, align 4, !tbaa !9
  %690 = sext i32 %689 to i64
  %691 = getelementptr inbounds [4 x i32], ptr %688, i64 0, i64 %690
  %692 = load i32, ptr %691, align 4, !tbaa !9
  %693 = sext i32 %692 to i64
  %694 = load i16, ptr %49, align 2, !tbaa !32
  %695 = sext i16 %694 to i64
  %696 = mul nsw i64 %693, %695
  %697 = ashr i64 %696, 16
  %698 = trunc i64 %697 to i32
  %699 = icmp sgt i32 %698, 8388607
  br i1 %699, label %700, label %701

700:                                              ; preds = %687
  br label %729

701:                                              ; preds = %687
  %702 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 16
  %703 = load i32, ptr %15, align 4, !tbaa !9
  %704 = sext i32 %703 to i64
  %705 = getelementptr inbounds [4 x i32], ptr %702, i64 0, i64 %704
  %706 = load i32, ptr %705, align 4, !tbaa !9
  %707 = sext i32 %706 to i64
  %708 = load i16, ptr %49, align 2, !tbaa !32
  %709 = sext i16 %708 to i64
  %710 = mul nsw i64 %707, %709
  %711 = ashr i64 %710, 16
  %712 = trunc i64 %711 to i32
  %713 = icmp slt i32 %712, -8388608
  br i1 %713, label %714, label %715

714:                                              ; preds = %701
  br label %727

715:                                              ; preds = %701
  %716 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 16
  %717 = load i32, ptr %15, align 4, !tbaa !9
  %718 = sext i32 %717 to i64
  %719 = getelementptr inbounds [4 x i32], ptr %716, i64 0, i64 %718
  %720 = load i32, ptr %719, align 4, !tbaa !9
  %721 = sext i32 %720 to i64
  %722 = load i16, ptr %49, align 2, !tbaa !32
  %723 = sext i16 %722 to i64
  %724 = mul nsw i64 %721, %723
  %725 = ashr i64 %724, 16
  %726 = trunc i64 %725 to i32
  br label %727

727:                                              ; preds = %715, %714
  %728 = phi i32 [ -8388608, %714 ], [ %726, %715 ]
  br label %729

729:                                              ; preds = %727, %700
  %730 = phi i32 [ 8388607, %700 ], [ %728, %727 ]
  %731 = shl i32 %730, 8
  %732 = load i32, ptr %15, align 4, !tbaa !9
  %733 = sext i32 %732 to i64
  %734 = getelementptr inbounds [4 x i32], ptr %41, i64 0, i64 %733
  store i32 %731, ptr %734, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 2, ptr %49) #7
  br label %735

735:                                              ; preds = %729
  %736 = load i32, ptr %15, align 4, !tbaa !9
  %737 = add nsw i32 %736, 1
  store i32 %737, ptr %15, align 4, !tbaa !9
  br label %667, !llvm.loop !51

738:                                              ; preds = %667
  %739 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 17
  %740 = load i8, ptr %739, align 4, !tbaa !39
  %741 = load ptr, ptr %8, align 8, !tbaa !5
  %742 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %741, i32 0, i32 1
  %743 = getelementptr inbounds %struct.silk_shape_state_FLP, ptr %742, i32 0, i32 0
  store i8 %740, ptr %743, align 8, !tbaa !41
  %744 = load ptr, ptr %8, align 8, !tbaa !5
  %745 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %744, i32 0, i32 0
  %746 = getelementptr inbounds %struct.silk_encoder_state, ptr %745, i32 0, i32 55
  %747 = getelementptr inbounds %struct.SideInfoIndices, ptr %746, i32 0, i32 0
  %748 = getelementptr inbounds [4 x i8], ptr %747, i64 0, i64 0
  %749 = getelementptr inbounds [4 x i32], ptr %41, i64 0, i64 0
  %750 = load ptr, ptr %8, align 8, !tbaa !5
  %751 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %750, i32 0, i32 1
  %752 = getelementptr inbounds %struct.silk_shape_state_FLP, ptr %751, i32 0, i32 0
  %753 = load i32, ptr %11, align 4, !tbaa !9
  %754 = icmp eq i32 %753, 2
  %755 = zext i1 %754 to i32
  %756 = load ptr, ptr %8, align 8, !tbaa !5
  %757 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %756, i32 0, i32 0
  %758 = getelementptr inbounds %struct.silk_encoder_state, ptr %757, i32 0, i32 20
  %759 = load i32, ptr %758, align 4, !tbaa !33
  call void @silk_gains_quant(ptr noundef %748, ptr noundef %749, ptr noundef %752, i32 noundef %755, i32 noundef %759)
  %760 = load ptr, ptr %8, align 8, !tbaa !5
  %761 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %760, i32 0, i32 0
  %762 = getelementptr inbounds %struct.silk_encoder_state, ptr %761, i32 0, i32 55
  %763 = getelementptr inbounds %struct.SideInfoIndices, ptr %762, i32 0, i32 0
  %764 = getelementptr inbounds [4 x i8], ptr %763, i64 0, i64 0
  %765 = load ptr, ptr %8, align 8, !tbaa !5
  %766 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %765, i32 0, i32 0
  %767 = getelementptr inbounds %struct.silk_encoder_state, ptr %766, i32 0, i32 20
  %768 = load i32, ptr %767, align 4, !tbaa !33
  %769 = call i32 @silk_gains_ID(ptr noundef %764, i32 noundef %768)
  store i32 %769, ptr %34, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %770

770:                                              ; preds = %788, %738
  %771 = load i32, ptr %15, align 4, !tbaa !9
  %772 = load ptr, ptr %8, align 8, !tbaa !5
  %773 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %772, i32 0, i32 0
  %774 = getelementptr inbounds %struct.silk_encoder_state, ptr %773, i32 0, i32 20
  %775 = load i32, ptr %774, align 4, !tbaa !33
  %776 = icmp slt i32 %771, %775
  br i1 %776, label %777, label %791

777:                                              ; preds = %770
  %778 = load i32, ptr %15, align 4, !tbaa !9
  %779 = sext i32 %778 to i64
  %780 = getelementptr inbounds [4 x i32], ptr %41, i64 0, i64 %779
  %781 = load i32, ptr %780, align 4, !tbaa !9
  %782 = sitofp i32 %781 to float
  %783 = fdiv float %782, 6.553600e+04
  %784 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 0
  %785 = load i32, ptr %15, align 4, !tbaa !9
  %786 = sext i32 %785 to i64
  %787 = getelementptr inbounds [4 x float], ptr %784, i64 0, i64 %786
  store float %783, ptr %787, align 4, !tbaa !27
  br label %788

788:                                              ; preds = %777
  %789 = load i32, ptr %15, align 4, !tbaa !9
  %790 = add nsw i32 %789, 1
  store i32 %790, ptr %15, align 4, !tbaa !9
  br label %770, !llvm.loop !52

791:                                              ; preds = %770
  br label %792

792:                                              ; preds = %791
  %793 = load i32, ptr %16, align 4, !tbaa !9
  %794 = add nsw i32 %793, 1
  store i32 %794, ptr %16, align 4, !tbaa !9
  br label %190

795:                                              ; preds = %490, %425, %391
  br label %796

796:                                              ; preds = %795, %136
  %797 = load ptr, ptr %8, align 8, !tbaa !5
  %798 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %797, i32 0, i32 2
  %799 = getelementptr inbounds [720 x float], ptr %798, i64 0, i64 0
  %800 = load ptr, ptr %8, align 8, !tbaa !5
  %801 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %800, i32 0, i32 2
  %802 = load ptr, ptr %8, align 8, !tbaa !5
  %803 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %802, i32 0, i32 0
  %804 = getelementptr inbounds %struct.silk_encoder_state, ptr %803, i32 0, i32 21
  %805 = load i32, ptr %804, align 8, !tbaa !25
  %806 = sext i32 %805 to i64
  %807 = getelementptr inbounds [720 x float], ptr %801, i64 0, i64 %806
  %808 = load ptr, ptr %8, align 8, !tbaa !5
  %809 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %808, i32 0, i32 0
  %810 = getelementptr inbounds %struct.silk_encoder_state, ptr %809, i32 0, i32 23
  %811 = load i32, ptr %810, align 8, !tbaa !24
  %812 = load ptr, ptr %8, align 8, !tbaa !5
  %813 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %812, i32 0, i32 0
  %814 = getelementptr inbounds %struct.silk_encoder_state, ptr %813, i32 0, i32 19
  %815 = load i32, ptr %814, align 8, !tbaa !26
  %816 = mul nsw i32 5, %815
  %817 = add nsw i32 %811, %816
  %818 = sext i32 %817 to i64
  %819 = mul i64 %818, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %799, ptr align 4 %807, i64 %819, i1 false)
  %820 = load ptr, ptr %8, align 8, !tbaa !5
  %821 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %820, i32 0, i32 0
  %822 = getelementptr inbounds %struct.silk_encoder_state, ptr %821, i32 0, i32 45
  %823 = load i32, ptr %822, align 8, !tbaa !30
  %824 = icmp ne i32 %823, 0
  br i1 %824, label %825, label %828

825:                                              ; preds = %796
  %826 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %826, align 4, !tbaa !9
  %827 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %827, ptr %7, align 4
  store i32 1, ptr %50, align 4
  br label %858

828:                                              ; preds = %796
  %829 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %14, i32 0, i32 4
  %830 = load ptr, ptr %8, align 8, !tbaa !5
  %831 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %830, i32 0, i32 0
  %832 = getelementptr inbounds %struct.silk_encoder_state, ptr %831, i32 0, i32 20
  %833 = load i32, ptr %832, align 4, !tbaa !33
  %834 = sub nsw i32 %833, 1
  %835 = sext i32 %834 to i64
  %836 = getelementptr inbounds [4 x i32], ptr %829, i64 0, i64 %835
  %837 = load i32, ptr %836, align 4, !tbaa !9
  %838 = load ptr, ptr %8, align 8, !tbaa !5
  %839 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %838, i32 0, i32 0
  %840 = getelementptr inbounds %struct.silk_encoder_state, ptr %839, i32 0, i32 11
  store i32 %837, ptr %840, align 8, !tbaa !53
  %841 = load ptr, ptr %8, align 8, !tbaa !5
  %842 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %841, i32 0, i32 0
  %843 = getelementptr inbounds %struct.silk_encoder_state, ptr %842, i32 0, i32 55
  %844 = getelementptr inbounds %struct.SideInfoIndices, ptr %843, i32 0, i32 5
  %845 = load i8, ptr %844, align 1, !tbaa !37
  %846 = load ptr, ptr %8, align 8, !tbaa !5
  %847 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %846, i32 0, i32 0
  %848 = getelementptr inbounds %struct.silk_encoder_state, ptr %847, i32 0, i32 10
  store i8 %845, ptr %848, align 1, !tbaa !54
  %849 = load ptr, ptr %8, align 8, !tbaa !5
  %850 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %849, i32 0, i32 0
  %851 = getelementptr inbounds %struct.silk_encoder_state, ptr %850, i32 0, i32 41
  store i32 0, ptr %851, align 8, !tbaa !55
  %852 = load ptr, ptr %10, align 8, !tbaa !5
  %853 = call i32 @ec_tell(ptr noundef %852)
  %854 = add nsw i32 %853, 7
  %855 = ashr i32 %854, 3
  %856 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %855, ptr %856, align 4, !tbaa !9
  %857 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %857, ptr %7, align 4
  store i32 1, ptr %50, align 4
  br label %858

858:                                              ; preds = %828, %825
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 1275, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4352, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4352, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 2688, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 748, ptr %14) #7
  %859 = load i32, ptr %7, align 4
  ret i32 %859
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare void @silk_LP_variable_cutoff(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @silk_short2float_array(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

declare void @silk_find_pitch_lags_FLP(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

declare void @silk_noise_shape_analysis_FLP(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @silk_find_pred_coefs_FLP(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

declare void @silk_process_gains_FLP(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @silk_LBRR_encode_FLP(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #4

declare i32 @silk_gains_ID(ptr noundef, i32 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

declare void @silk_NSQ_wrapper_FLP(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @silk_encode_indices(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare void @silk_encode_pulses(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @ec_tell(ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

declare i32 @silk_log2lin(i32 noundef) #3

declare void @silk_gains_quant(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 4620}
!13 = !{!"", !14, i64 0, !21, i64 7192, !7, i64 7204, !22, i64 10084}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !15, i64 16, !16, i64 36, !18, i64 148, !7, i64 4500, !10, i64 4532, !10, i64 4536, !7, i64 4540, !7, i64 4541, !10, i64 4544, !10, i64 4548, !10, i64 4552, !10, i64 4556, !10, i64 4560, !10, i64 4564, !10, i64 4568, !10, i64 4572, !10, i64 4576, !10, i64 4580, !10, i64 4584, !10, i64 4588, !10, i64 4592, !10, i64 4596, !10, i64 4600, !10, i64 4604, !10, i64 4608, !10, i64 4612, !10, i64 4616, !10, i64 4620, !10, i64 4624, !10, i64 4628, !10, i64 4632, !10, i64 4636, !10, i64 4640, !10, i64 4644, !10, i64 4648, !10, i64 4652, !10, i64 4656, !10, i64 4660, !10, i64 4664, !10, i64 4668, !10, i64 4672, !10, i64 4676, !10, i64 4680, !6, i64 4688, !6, i64 4696, !6, i64 4704, !7, i64 4712, !10, i64 4728, !10, i64 4732, !7, i64 4736, !7, i64 4739, !7, i64 4740, !19, i64 4752, !7, i64 4788, !10, i64 5108, !7, i64 5112, !10, i64 5756, !10, i64 5760, !10, i64 5764, !10, i64 5768, !10, i64 5772, !10, i64 5776, !10, i64 5780, !10, i64 5784, !17, i64 5788, !20, i64 5792, !10, i64 6096, !10, i64 6100, !10, i64 6104, !10, i64 6108, !10, i64 6112, !10, i64 6116, !7, i64 6120, !7, i64 6228}
!15 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!16 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 40, !17, i64 56, !7, i64 60, !7, i64 76, !7, i64 92, !10, i64 108}
!17 = !{!"short", !7, i64 0}
!18 = !{!"", !7, i64 0, !7, i64 1280, !7, i64 3840, !7, i64 4224, !10, i64 4320, !10, i64 4324, !10, i64 4328, !10, i64 4332, !10, i64 4336, !10, i64 4340, !10, i64 4344, !10, i64 4348}
!19 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !17, i64 26, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !7, i64 33, !7, i64 34}
!20 = !{!"_silk_resampler_state_struct", !7, i64 0, !7, i64 24, !7, i64 168, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !6, i64 296}
!21 = !{!"", !7, i64 0, !22, i64 4, !22, i64 8}
!22 = !{!"float", !7, i64 0}
!23 = !{!13, !7, i64 4786}
!24 = !{!13, !10, i64 4592}
!25 = !{!13, !10, i64 4584}
!26 = !{!13, !10, i64 4576}
!27 = !{!22, !22, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!13, !10, i64 4680}
!31 = !{!13, !10, i64 5108}
!32 = !{!17, !17, i64 0}
!33 = !{!13, !10, i64 4580}
!34 = !{!13, !17, i64 5788}
!35 = !{!13, !10, i64 5784}
!36 = !{!13, !10, i64 5764}
!37 = !{!13, !7, i64 4781}
!38 = !{!13, !7, i64 4782}
!39 = !{!40, !7, i64 744}
!40 = !{!"", !7, i64 0, !7, i64 16, !7, i64 144, !22, i64 224, !7, i64 228, !7, i64 244, !7, i64 628, !7, i64 644, !7, i64 660, !7, i64 676, !22, i64 692, !22, i64 696, !22, i64 700, !22, i64 704, !22, i64 708, !7, i64 712, !7, i64 728, !7, i64 744}
!41 = !{!13, !7, i64 7192}
!42 = distinct !{!42, !29}
!43 = distinct !{!43, !29}
!44 = !{!45, !6, i64 0}
!45 = !{!"ec_ctx", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48}
!46 = !{!45, !10, i64 28}
!47 = !{!40, !22, i64 692}
!48 = !{!13, !10, i64 4588}
!49 = distinct !{!49, !29}
!50 = distinct !{!50, !29}
!51 = distinct !{!51, !29}
!52 = distinct !{!52, !29}
!53 = !{!13, !10, i64 4544}
!54 = !{!13, !7, i64 4541}
!55 = !{!13, !10, i64 4664}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.silk_encoder_control_FLP = type { [4 x float], [2 x [16 x float]], [20 x float], float, [4 x i32], [96 x float], [4 x float], [4 x float], [4 x float], [4 x float], float, float, float, float, float, [4 x float], [4 x i32], i8 }
%struct.ec_ctx = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.silk_nsq_state = type { [640 x i16], [640 x i32], [96 x i32], [24 x i32], i32, i32, i32, i32, i32, i32, i32, i32 }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @silk_encode_frame_FLP(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = alloca %struct.silk_encoder_control_FLP, align 4
  %8 = alloca [672 x float], align 16
  %9 = alloca %struct.ec_ctx, align 8
  %.sroa.0 = alloca [28 x i8], align 8
  %.sroa.7 = alloca [24 x i8], align 8
  %10 = alloca %struct.silk_nsq_state, align 4
  %11 = alloca %struct.silk_nsq_state, align 4
  %12 = alloca [4 x i32], align 16
  %13 = alloca [1275 x i8], align 16
  %14 = alloca [4 x i32], align 16
  %15 = alloca [4 x i16], align 2
  %16 = alloca [4 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 748, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 2688, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9)
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %.sroa.0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %.sroa.7)
  call void @llvm.lifetime.start.p0(i64 4352, ptr nonnull %10)
  call void @llvm.lifetime.start.p0(i64 4352, ptr nonnull %11)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 1275, ptr nonnull %13)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  %17 = getelementptr inbounds i8, ptr %0, i64 4620
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %17, align 4, !tbaa !5
  %20 = trunc i32 %18 to i8
  %21 = and i8 %20, 3
  %22 = getelementptr inbounds i8, ptr %0, i64 4786
  store i8 %21, ptr %22, align 2, !tbaa !20
  %23 = getelementptr inbounds i8, ptr %0, i64 7204
  %24 = getelementptr inbounds i8, ptr %0, i64 4592
  %25 = load i32, ptr %24, align 8, !tbaa !21
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds float, ptr %23, i64 %26
  %28 = getelementptr inbounds i8, ptr %0, i64 16
  %29 = getelementptr inbounds i8, ptr %0, i64 5114
  %30 = getelementptr inbounds i8, ptr %0, i64 4584
  %31 = load i32, ptr %30, align 8, !tbaa !22
  tail call void @silk_LP_variable_cutoff(ptr noundef nonnull %28, ptr noundef nonnull %29, i32 noundef %31) #7
  %32 = getelementptr inbounds i8, ptr %0, i64 4576
  %33 = load i32, ptr %32, align 8, !tbaa !23
  %34 = mul nsw i32 %33, 5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds float, ptr %27, i64 %35
  %37 = load i32, ptr %30, align 8, !tbaa !22
  tail call void @silk_short2float_array(ptr noundef nonnull %36, ptr noundef nonnull %29, i32 noundef %37)
  %38 = load i32, ptr %32, align 8, !tbaa !23
  %39 = mul nsw i32 %38, 5
  %40 = load i32, ptr %30, align 8, !tbaa !22
  %41 = ashr i32 %40, 3
  %42 = sext i32 %41 to i64
  %43 = sext i32 %39 to i64
  %44 = getelementptr inbounds float, ptr %27, i64 %43
  %45 = load float, ptr %44, align 4, !tbaa !24
  %46 = fadd float %45, 0x3EB0C6F7A0000000
  store float %46, ptr %44, align 4, !tbaa !24
  %47 = getelementptr float, ptr %27, i64 %42
  %48 = getelementptr float, ptr %47, i64 %43
  %49 = load float, ptr %48, align 4, !tbaa !24
  %50 = fadd float %49, 0x3EB0C6F7A0000000
  store float %50, ptr %48, align 4, !tbaa !24
  %.idx = shl nsw i64 %42, 3
  %51 = getelementptr i8, ptr %27, i64 %.idx
  %52 = getelementptr float, ptr %51, i64 %43
  %53 = load float, ptr %52, align 4, !tbaa !24
  %54 = fadd float %53, 0xBEB0C6F7A0000000
  store float %54, ptr %52, align 4, !tbaa !24
  %.idx478 = mul nsw i64 %42, 12
  %55 = getelementptr i8, ptr %27, i64 %.idx478
  %56 = getelementptr float, ptr %55, i64 %43
  %57 = load float, ptr %56, align 4, !tbaa !24
  %58 = fadd float %57, 0xBEB0C6F7A0000000
  store float %58, ptr %56, align 4, !tbaa !24
  %.idx479 = shl nsw i64 %42, 4
  %59 = getelementptr i8, ptr %27, i64 %.idx479
  %60 = getelementptr float, ptr %59, i64 %43
  %61 = load float, ptr %60, align 4, !tbaa !24
  %62 = fadd float %61, 0x3EB0C6F7A0000000
  store float %62, ptr %60, align 4, !tbaa !24
  %.idx480 = mul nsw i64 %42, 20
  %63 = getelementptr i8, ptr %27, i64 %.idx480
  %64 = getelementptr float, ptr %63, i64 %43
  %65 = load float, ptr %64, align 4, !tbaa !24
  %66 = fadd float %65, 0x3EB0C6F7A0000000
  store float %66, ptr %64, align 4, !tbaa !24
  %.idx481 = mul nsw i64 %42, 24
  %67 = getelementptr i8, ptr %27, i64 %.idx481
  %68 = getelementptr float, ptr %67, i64 %43
  %69 = load float, ptr %68, align 4, !tbaa !24
  %70 = fadd float %69, 0xBEB0C6F7A0000000
  store float %70, ptr %68, align 4, !tbaa !24
  %.idx482 = mul nsw i64 %42, 28
  %71 = getelementptr i8, ptr %27, i64 %.idx482
  %72 = getelementptr float, ptr %71, i64 %43
  %73 = load float, ptr %72, align 4, !tbaa !24
  %74 = fadd float %73, 0xBEB0C6F7A0000000
  store float %74, ptr %72, align 4, !tbaa !24
  %75 = getelementptr i8, ptr %0, i64 4752
  %76 = getelementptr inbounds i8, ptr %0, i64 4680
  %77 = load i32, ptr %76, align 8, !tbaa !25
  %.not = icmp eq i32 %77, 0
  br i1 %.not, label %78, label %.loopexit

78:                                               ; preds = %6
  %79 = getelementptr inbounds float, ptr %8, i64 %26
  %80 = getelementptr inbounds i8, ptr %0, i64 5108
  %81 = load i32, ptr %80, align 4, !tbaa !26
  call void @silk_find_pitch_lags_FLP(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %27, i32 noundef %81) #7
  call void @silk_noise_shape_analysis_FLP(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull %79, ptr noundef nonnull %27) #7
  call void @silk_find_pred_coefs_FLP(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull %79, ptr noundef nonnull %27, i32 noundef %3) #7
  call void @silk_process_gains_FLP(ptr noundef nonnull %0, ptr noundef nonnull %7, i32 noundef %3) #7
  call void @silk_LBRR_encode_FLP(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull %27, i32 noundef %3)
  %82 = getelementptr inbounds i8, ptr %0, i64 4580
  %83 = load i32, ptr %82, align 4, !tbaa !27
  %84 = call i32 @silk_gains_ID(ptr noundef nonnull %75, i32 noundef %83) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(56) %2, i64 56, i1 false)
  %85 = getelementptr inbounds i8, ptr %0, i64 148
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(4352) %10, ptr noundef nonnull align 4 dereferenceable(4352) %85, i64 4352, i1 false)
  %86 = load i8, ptr %22, align 2, !tbaa !20
  %87 = getelementptr inbounds i8, ptr %0, i64 5788
  %88 = load i16, ptr %87, align 4, !tbaa !28
  %89 = getelementptr inbounds i8, ptr %0, i64 5784
  %90 = load i32, ptr %89, align 8, !tbaa !29
  %91 = getelementptr i8, ptr %0, i64 4788
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 28
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 32
  %92 = getelementptr inbounds i8, ptr %0, i64 5764
  %93 = getelementptr inbounds i8, ptr %0, i64 4781
  %94 = getelementptr inbounds i8, ptr %0, i64 4782
  %95 = getelementptr inbounds i8, ptr %7, i64 744
  %96 = getelementptr inbounds i8, ptr %0, i64 7192
  %.not296 = icmp eq i32 %3, 2
  %97 = getelementptr inbounds i8, ptr %7, i64 692
  %98 = getelementptr inbounds i8, ptr %0, i64 4588
  %99 = add nsw i32 %4, -5
  %100 = getelementptr inbounds i8, ptr %7, i64 728
  %101 = zext i1 %.not296 to i32
  br label %102

102:                                              ; preds = %._crit_edge450, %78
  %.0285 = phi i32 [ 0, %78 ], [ %.1286325373, %._crit_edge450 ]
  %.sroa.6.0 = phi i32 [ undef, %78 ], [ %.sroa.6.3326370, %._crit_edge450 ]
  %.0283 = phi i32 [ 0, %78 ], [ %.1284327367, %._crit_edge450 ]
  %.0279 = phi i32 [ 0, %78 ], [ %.1280328364, %._crit_edge450 ]
  %.0277 = phi i32 [ 0, %78 ], [ %.1278329361, %._crit_edge450 ]
  %.0275 = phi i32 [ 0, %78 ], [ %.1276330358, %._crit_edge450 ]
  %.0273 = phi i32 [ 0, %78 ], [ %.1274331355, %._crit_edge450 ]
  %.0272 = phi i32 [ %84, %78 ], [ %259, %._crit_edge450 ]
  %.0270 = phi i32 [ -1, %78 ], [ %.1271332352, %._crit_edge450 ]
  %.0268 = phi i32 [ -1, %78 ], [ %.1269333349, %._crit_edge450 ]
  %.0266 = phi i16 [ 256, %78 ], [ %.1267, %._crit_edge450 ]
  %.0265 = phi i32 [ 0, %78 ], [ %276, %._crit_edge450 ]
  %.0262 = phi i8 [ 0, %78 ], [ %.1334346, %._crit_edge450 ]
  %103 = icmp eq i32 %.0272, %.0270
  br i1 %103, label %140, label %104

104:                                              ; preds = %102
  %105 = icmp eq i32 %.0272, %.0268
  br i1 %105, label %140, label %106

106:                                              ; preds = %104
  %.not295 = icmp eq i32 %.0265, 0
  br i1 %.not295, label %108, label %107

107:                                              ; preds = %106
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(56) %9, i64 56, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(4352) %85, ptr noundef nonnull align 4 dereferenceable(4352) %10, i64 4352, i1 false)
  store i8 %86, ptr %22, align 2, !tbaa !20
  store i16 %88, ptr %87, align 4, !tbaa !28
  store i32 %90, ptr %89, align 8, !tbaa !29
  br label %108

108:                                              ; preds = %107, %106
  call void @silk_NSQ_wrapper_FLP(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull %75, ptr noundef nonnull %85, ptr noundef nonnull %91, ptr noundef nonnull %27) #7
  %109 = icmp eq i32 %.0265, 6
  %110 = icmp eq i32 %.0285, 0
  %or.cond.not421 = and i1 %110, %109
  br i1 %or.cond.not421, label %111, label %112

111:                                              ; preds = %108
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(28) %.sroa.0, ptr noundef nonnull align 8 dereferenceable(28) %2, i64 28, i1 false)
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %.sroa.7, ptr noundef nonnull align 8 dereferenceable(24) %.sroa.7.0..sroa_idx, i64 24, i1 false)
  br label %112

112:                                              ; preds = %111, %108
  %.sroa.6.1 = phi i32 [ %.sroa.6.0, %108 ], [ %.sroa.6.0.copyload, %111 ]
  %113 = load i32, ptr %92, align 4, !tbaa !30
  call void @silk_encode_indices(ptr noundef nonnull %0, ptr noundef %2, i32 noundef %113, i32 noundef 0, i32 noundef %3) #7
  %114 = load i8, ptr %93, align 1, !tbaa !31
  %115 = sext i8 %114 to i32
  %116 = load i8, ptr %94, align 2, !tbaa !32
  %117 = sext i8 %116 to i32
  %118 = load i32, ptr %30, align 8, !tbaa !22
  call void @silk_encode_pulses(ptr noundef %2, i32 noundef %115, i32 noundef %117, ptr noundef nonnull %91, i32 noundef %118) #7
  %119 = call i32 @ec_tell(ptr noundef %2)
  %120 = icmp sgt i32 %119, %4
  %or.cond304 = select i1 %or.cond.not421, i1 %120, i1 false
  br i1 %or.cond304, label %121, label %138

121:                                              ; preds = %112
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(28) %2, ptr noundef nonnull align 8 dereferenceable(28) %.sroa.0, i64 28, i1 false)
  store i32 %.sroa.6.1, ptr %.sroa.6.0..sroa_idx, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %.sroa.7.0..sroa_idx, ptr noundef nonnull align 8 dereferenceable(24) %.sroa.7, i64 24, i1 false)
  %122 = load i8, ptr %95, align 4, !tbaa !33
  store i8 %122, ptr %96, align 8, !tbaa !35
  %123 = load i32, ptr %82, align 4, !tbaa !27
  %124 = icmp sgt i32 %123, 0
  br i1 %124, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %121
  %125 = zext nneg i32 %123 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %75, i8 4, i64 %125, i1 false), !tbaa !36
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %121
  br i1 %.not296, label %127, label %126

126:                                              ; preds = %._crit_edge
  store i8 %122, ptr %75, align 8, !tbaa !36
  br label %127

127:                                              ; preds = %126, %._crit_edge
  store i16 %88, ptr %87, align 4, !tbaa !28
  store i32 %90, ptr %89, align 8, !tbaa !29
  %128 = load i32, ptr %30, align 8, !tbaa !22
  %129 = icmp sgt i32 %128, 0
  br i1 %129, label %.lr.ph431.preheader, label %._crit_edge432

.lr.ph431.preheader:                              ; preds = %127
  %130 = zext nneg i32 %128 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %91, i8 0, i64 %130, i1 false), !tbaa !36
  br label %._crit_edge432

._crit_edge432:                                   ; preds = %.lr.ph431.preheader, %127
  %131 = load i32, ptr %92, align 4, !tbaa !30
  call void @silk_encode_indices(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %131, i32 noundef 0, i32 noundef %3) #7
  %132 = load i8, ptr %93, align 1, !tbaa !31
  %133 = sext i8 %132 to i32
  %134 = load i8, ptr %94, align 2, !tbaa !32
  %135 = sext i8 %134 to i32
  %136 = load i32, ptr %30, align 8, !tbaa !22
  call void @silk_encode_pulses(ptr noundef nonnull %2, i32 noundef %133, i32 noundef %135, ptr noundef nonnull %91, i32 noundef %136) #7
  %137 = call i32 @ec_tell(ptr noundef nonnull %2)
  br label %138

138:                                              ; preds = %._crit_edge432, %112
  %.0281 = phi i32 [ %119, %112 ], [ %137, %._crit_edge432 ]
  %139 = or i32 %.0265, %5
  %or.cond5 = icmp ne i32 %139, 0
  %.not297 = icmp sgt i32 %.0281, %4
  %or.cond305 = select i1 %or.cond5, i1 true, i1 %.not297
  br i1 %or.cond305, label %140, label %.loopexit

140:                                              ; preds = %104, %102, %138
  %.sroa.6.2 = phi i32 [ %.sroa.6.1, %138 ], [ %.sroa.6.0, %102 ], [ %.sroa.6.0, %104 ]
  %.1282 = phi i32 [ %.0281, %138 ], [ %.0279, %102 ], [ %.0277, %104 ]
  %141 = icmp eq i32 %.0265, 6
  br i1 %141, label %142, label %147

142:                                              ; preds = %140
  %.not302 = icmp ne i32 %.0285, 0
  %143 = icmp sgt i32 %.1282, %4
  %or.cond306 = select i1 %103, i1 true, i1 %143
  %or.cond309 = select i1 %.not302, i1 %or.cond306, i1 false
  br i1 %or.cond309, label %144, label %.loopexit

144:                                              ; preds = %142
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(28) %2, ptr noundef nonnull align 8 dereferenceable(28) %.sroa.0, i64 28, i1 false)
  store i32 %.sroa.6.2, ptr %.sroa.6.0..sroa_idx, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %.sroa.7.0..sroa_idx, ptr noundef nonnull align 8 dereferenceable(24) %.sroa.7, i64 24, i1 false)
  %145 = load ptr, ptr %2, align 8, !tbaa !37
  %146 = zext i32 %.sroa.6.2 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %145, ptr nonnull align 16 %13, i64 %146, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(4352) %85, ptr noundef nonnull align 4 dereferenceable(4352) %11, i64 4352, i1 false)
  store i8 %.0262, ptr %96, align 8, !tbaa !35
  br label %.loopexit

147:                                              ; preds = %140
  %.not451 = icmp sgt i32 %.1282, %4
  br i1 %.not451, label %148, label %155

148:                                              ; preds = %147
  %149 = icmp eq i32 %.0285, 0
  %150 = icmp ugt i32 %.0265, 1
  %or.cond7 = select i1 %149, i1 %150, i1 false
  br i1 %or.cond7, label %.thread, label %163

.thread:                                          ; preds = %148
  %151 = load float, ptr %97, align 4
  %152 = fmul float %151, 1.500000e+00
  %153 = fcmp ogt float %152, 1.500000e+00
  %154 = select i1 %153, float %152, float 1.500000e+00
  store float %154, ptr %97, align 4, !tbaa !39
  store i8 0, ptr %94, align 2, !tbaa !32
  br label %.preheader

155:                                              ; preds = %147
  %156 = icmp slt i32 %.1282, %99
  br i1 %156, label %157, label %.loopexit

157:                                              ; preds = %155
  %158 = sext i16 %.0266 to i32
  br i1 %103, label %.thread335, label %159

159:                                              ; preds = %157
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(28) %.sroa.0, ptr noundef nonnull align 8 dereferenceable(28) %2, i64 28, i1 false)
  %.sroa.6.0.copyload77 = load i32, ptr %.sroa.6.0..sroa_idx, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %.sroa.7, ptr noundef nonnull align 8 dereferenceable(24) %.sroa.7.0..sroa_idx, i64 24, i1 false)
  %160 = load ptr, ptr %2, align 8, !tbaa !37
  %161 = zext i32 %.sroa.6.0.copyload77 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %13, ptr align 1 %160, i64 %161, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(4352) %11, ptr noundef nonnull align 4 dereferenceable(4352) %85, i64 4352, i1 false)
  %162 = load i8, ptr %96, align 8, !tbaa !35
  br label %.thread335

163:                                              ; preds = %148
  %164 = sext i16 %.0266 to i32
  br i1 %149, label %.preheader, label %.thread397

.preheader:                                       ; preds = %.thread, %163
  %.1269494 = phi i32 [ -1, %.thread ], [ %.0272, %163 ]
  %.1274492 = phi i32 [ %.0273, %.thread ], [ %164, %163 ]
  %.1278490 = phi i32 [ %.0277, %.thread ], [ %.1282, %163 ]
  %.1284488 = phi i32 [ 0, %.thread ], [ 1, %163 ]
  %165 = load i32, ptr %82, align 4, !tbaa !27
  %166 = icmp sgt i32 %165, 0
  br i1 %166, label %.lr.ph440, label %.thread398

.lr.ph440:                                        ; preds = %.preheader
  %167 = load i32, ptr %98, align 4, !tbaa !40
  %168 = icmp eq i32 %.0265, 0
  %169 = sext i32 %167 to i64
  %wide.trip.count = zext nneg i32 %165 to i64
  %170 = add i32 %167, -1
  %171 = zext i32 %170 to i64
  %172 = add nuw nsw i64 %171, 1
  %min.iters.check506 = icmp ult i32 %170, 7
  %n.vec509 = and i64 %172, 8589934584
  %cmp.n517 = icmp eq i64 %172, %n.vec509
  br label %173

173:                                              ; preds = %.lr.ph440, %204
  %indvars.iv464 = phi i64 [ 0, %.lr.ph440 ], [ %indvars.iv.next465, %204 ]
  %indvars.iv462 = phi i32 [ %167, %.lr.ph440 ], [ %indvars.iv.next463, %204 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph440 ], [ %indvars.iv.next, %204 ]
  %174 = mul nsw i64 %indvars.iv464, %169
  %indvars.iv.next465 = add nuw nsw i64 %indvars.iv464, 1
  %175 = mul nsw i64 %indvars.iv.next465, %169
  %176 = icmp slt i64 %174, %175
  br i1 %176, label %.lr.ph436.preheader, label %._crit_edge437

.lr.ph436.preheader:                              ; preds = %173
  br i1 %min.iters.check506, label %.lr.ph436.preheader518, label %vector.ph507

vector.ph507:                                     ; preds = %.lr.ph436.preheader
  %ind.end = add i64 %indvars.iv, %n.vec509
  br label %vector.body511

vector.body511:                                   ; preds = %vector.body511, %vector.ph507
  %index512 = phi i64 [ 0, %vector.ph507 ], [ %index.next516, %vector.body511 ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph507 ], [ %183, %vector.body511 ]
  %vec.phi513 = phi <4 x i32> [ zeroinitializer, %vector.ph507 ], [ %184, %vector.body511 ]
  %offset.idx = add i64 %indvars.iv, %index512
  %177 = getelementptr inbounds [320 x i8], ptr %91, i64 0, i64 %offset.idx
  %178 = getelementptr inbounds i8, ptr %177, i64 4
  %wide.load514 = load <4 x i8>, ptr %177, align 1, !tbaa !36
  %wide.load515 = load <4 x i8>, ptr %178, align 1, !tbaa !36
  %179 = call <4 x i8> @llvm.abs.v4i8(<4 x i8> %wide.load514, i1 false)
  %180 = call <4 x i8> @llvm.abs.v4i8(<4 x i8> %wide.load515, i1 false)
  %181 = zext <4 x i8> %179 to <4 x i32>
  %182 = zext <4 x i8> %180 to <4 x i32>
  %183 = add <4 x i32> %vec.phi, %181
  %184 = add <4 x i32> %vec.phi513, %182
  %index.next516 = add nuw i64 %index512, 8
  %185 = icmp eq i64 %index.next516, %n.vec509
  br i1 %185, label %middle.block504, label %vector.body511, !llvm.loop !41

middle.block504:                                  ; preds = %vector.body511
  %bin.rdx = add <4 x i32> %184, %183
  %186 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n517, label %._crit_edge437, label %.lr.ph436.preheader518

.lr.ph436.preheader518:                           ; preds = %middle.block504, %.lr.ph436.preheader
  %indvars.iv459.ph = phi i64 [ %indvars.iv, %.lr.ph436.preheader ], [ %ind.end, %middle.block504 ]
  %.0260434.ph = phi i32 [ 0, %.lr.ph436.preheader ], [ %186, %middle.block504 ]
  br label %.lr.ph436

.lr.ph436:                                        ; preds = %.lr.ph436.preheader518, %.lr.ph436
  %indvars.iv459 = phi i64 [ %indvars.iv.next460, %.lr.ph436 ], [ %indvars.iv459.ph, %.lr.ph436.preheader518 ]
  %.0260434 = phi i32 [ %191, %.lr.ph436 ], [ %.0260434.ph, %.lr.ph436.preheader518 ]
  %187 = getelementptr inbounds [320 x i8], ptr %91, i64 0, i64 %indvars.iv459
  %188 = load i8, ptr %187, align 1, !tbaa !36
  %189 = call i8 @llvm.abs.i8(i8 %188, i1 false)
  %190 = zext i8 %189 to i32
  %191 = add nuw nsw i32 %.0260434, %190
  %indvars.iv.next460 = add nsw i64 %indvars.iv459, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next460 to i32
  %exitcond.not = icmp eq i32 %indvars.iv462, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge437, label %.lr.ph436, !llvm.loop !45

._crit_edge437:                                   ; preds = %.lr.ph436, %middle.block504, %173
  %.0260.lcssa = phi i32 [ 0, %173 ], [ %186, %middle.block504 ], [ %191, %.lr.ph436 ]
  br i1 %168, label %199, label %192

192:                                              ; preds = %._crit_edge437
  %193 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %indvars.iv464
  %194 = load i32, ptr %193, align 4, !tbaa !46
  %195 = icmp slt i32 %.0260.lcssa, %194
  br i1 %195, label %196, label %202

196:                                              ; preds = %192
  %197 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 %indvars.iv464
  %198 = load i32, ptr %197, align 4, !tbaa !46
  %.not300 = icmp eq i32 %198, 0
  br i1 %.not300, label %199, label %202

199:                                              ; preds = %196, %._crit_edge437
  %200 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %indvars.iv464
  store i32 %.0260.lcssa, ptr %200, align 4, !tbaa !46
  %201 = getelementptr inbounds [4 x i16], ptr %15, i64 0, i64 %indvars.iv464
  store i16 %.0266, ptr %201, align 2, !tbaa !47
  br label %204

202:                                              ; preds = %196, %192
  %203 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 %indvars.iv464
  store i32 1, ptr %203, align 4, !tbaa !46
  br label %204

204:                                              ; preds = %202, %199
  %indvars.iv.next = add i64 %indvars.iv, %169
  %indvars.iv.next463 = add i32 %indvars.iv462, %167
  %exitcond467.not = icmp eq i64 %indvars.iv.next465, %wide.trip.count
  br i1 %exitcond467.not, label %.thread398, label %173, !llvm.loop !48

.thread397:                                       ; preds = %163
  %205 = and i32 %.0285, 1
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %.thread398, label %222

.thread335:                                       ; preds = %157, %159
  %.sroa.6.3.ph = phi i32 [ %.sroa.6.2, %157 ], [ %.sroa.6.0.copyload77, %159 ]
  %.1.ph = phi i8 [ %.0262, %157 ], [ %162, %159 ]
  %207 = and i32 %.0283, 1
  %208 = icmp eq i32 %207, 0
  br i1 %208, label %.thread376, label %222

.thread398:                                       ; preds = %204, %.preheader, %.thread397
  %.1269493 = phi i32 [ %.1269494, %.preheader ], [ %.0272, %.thread397 ], [ %.1269494, %204 ]
  %.1274491 = phi i32 [ %.1274492, %.preheader ], [ %164, %.thread397 ], [ %.1274492, %204 ]
  %.1278489 = phi i32 [ %.1278490, %.preheader ], [ %.1282, %.thread397 ], [ %.1278490, %204 ]
  %.1284487 = phi i32 [ %.1284488, %.preheader ], [ 1, %.thread397 ], [ %.1284488, %204 ]
  %209 = icmp slt i16 %.0266, 16384
  %210 = shl i16 %.0266, 1
  %spec.select310 = select i1 %209, i16 %210, i16 32767
  br label %238

.thread376:                                       ; preds = %.thread335
  %211 = sub nsw i32 %.1282, %4
  %212 = shl i32 %211, 7
  %213 = load i32, ptr %30, align 8, !tbaa !22
  %214 = sdiv i32 %212, %213
  %215 = add nsw i32 %214, 2048
  %216 = call i32 @silk_log2lin(i32 noundef %215) #7
  %217 = zext i32 %216 to i64
  %218 = sext i16 %.0266 to i64
  %219 = mul nsw i64 %217, %218
  %220 = lshr i64 %219, 16
  %221 = trunc i64 %220 to i16
  br label %238

222:                                              ; preds = %.thread397, %.thread335
  %.1286325374 = phi i32 [ 1, %.thread335 ], [ %.0285, %.thread397 ]
  %.sroa.6.3326371 = phi i32 [ %.sroa.6.3.ph, %.thread335 ], [ %.sroa.6.2, %.thread397 ]
  %.1284327368 = phi i32 [ %.0283, %.thread335 ], [ 1, %.thread397 ]
  %.1280328365 = phi i32 [ %.1282, %.thread335 ], [ %.0279, %.thread397 ]
  %.1278329362 = phi i32 [ %.0277, %.thread335 ], [ %.1282, %.thread397 ]
  %.1276330359 = phi i32 [ %158, %.thread335 ], [ %.0275, %.thread397 ]
  %.1274331356 = phi i32 [ %.0273, %.thread335 ], [ %164, %.thread397 ]
  %.1271332353 = phi i32 [ %.0272, %.thread335 ], [ %.0270, %.thread397 ]
  %.1269333350 = phi i32 [ %.0268, %.thread335 ], [ %.0272, %.thread397 ]
  %.1334347 = phi i8 [ %.1.ph, %.thread335 ], [ %.0262, %.thread397 ]
  %223 = sub nsw i32 %.1274331356, %.1276330359
  %224 = sub nsw i32 %4, %.1280328365
  %225 = mul nsw i32 %223, %224
  %226 = sub nsw i32 %.1278329362, %.1280328365
  %227 = sdiv i32 %225, %226
  %228 = add nsw i32 %227, %.1276330359
  %sext = shl i32 %228, 16
  %229 = ashr exact i32 %sext, 16
  %230 = ashr i32 %223, 2
  %231 = add nsw i32 %230, %.1276330359
  %232 = icmp sgt i32 %229, %231
  br i1 %232, label %233, label %235

233:                                              ; preds = %222
  %234 = trunc i32 %231 to i16
  br label %238

235:                                              ; preds = %222
  %236 = sub nsw i32 %.1274331356, %230
  %237 = icmp slt i32 %229, %236
  %spec.select.v = select i1 %237, i32 %236, i32 %228
  %spec.select = trunc i32 %spec.select.v to i16
  br label %238

238:                                              ; preds = %.thread398, %235, %233, %.thread376
  %.1286325373 = phi i32 [ 1, %.thread376 ], [ %.1286325374, %233 ], [ %.1286325374, %235 ], [ %.0285, %.thread398 ]
  %.sroa.6.3326370 = phi i32 [ %.sroa.6.3.ph, %.thread376 ], [ %.sroa.6.3326371, %233 ], [ %.sroa.6.3326371, %235 ], [ %.sroa.6.2, %.thread398 ]
  %.1284327367 = phi i32 [ %.0283, %.thread376 ], [ %.1284327368, %233 ], [ %.1284327368, %235 ], [ %.1284487, %.thread398 ]
  %.1280328364 = phi i32 [ %.1282, %.thread376 ], [ %.1280328365, %233 ], [ %.1280328365, %235 ], [ %.0279, %.thread398 ]
  %.1278329361 = phi i32 [ %.0277, %.thread376 ], [ %.1278329362, %233 ], [ %.1278329362, %235 ], [ %.1278489, %.thread398 ]
  %.1276330358 = phi i32 [ %158, %.thread376 ], [ %.1276330359, %233 ], [ %.1276330359, %235 ], [ %.0275, %.thread398 ]
  %.1274331355 = phi i32 [ %.0273, %.thread376 ], [ %.1274331356, %233 ], [ %.1274331356, %235 ], [ %.1274491, %.thread398 ]
  %.1271332352 = phi i32 [ %.0272, %.thread376 ], [ %.1271332353, %233 ], [ %.1271332353, %235 ], [ %.0270, %.thread398 ]
  %.1269333349 = phi i32 [ %.0268, %.thread376 ], [ %.1269333350, %233 ], [ %.1269333350, %235 ], [ %.1269493, %.thread398 ]
  %.1334346 = phi i8 [ %.1.ph, %.thread376 ], [ %.1334347, %233 ], [ %.1334347, %235 ], [ %.0262, %.thread398 ]
  %.1267 = phi i16 [ %221, %.thread376 ], [ %234, %233 ], [ %spec.select, %235 ], [ %spec.select310, %.thread398 ]
  %239 = load i32, ptr %82, align 4, !tbaa !27
  %240 = icmp sgt i32 %239, 0
  br i1 %240, label %.lr.ph444.preheader, label %._crit_edge445

.lr.ph444.preheader:                              ; preds = %238
  %wide.trip.count471 = zext nneg i32 %239 to i64
  br label %.lr.ph444

.lr.ph444:                                        ; preds = %.lr.ph444.preheader, %246
  %indvars.iv468 = phi i64 [ 0, %.lr.ph444.preheader ], [ %indvars.iv.next469, %246 ]
  %241 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 %indvars.iv468
  %242 = load i32, ptr %241, align 4, !tbaa !46
  %.not301 = icmp eq i32 %242, 0
  br i1 %.not301, label %246, label %243

243:                                              ; preds = %.lr.ph444
  %244 = getelementptr inbounds [4 x i16], ptr %15, i64 0, i64 %indvars.iv468
  %245 = load i16, ptr %244, align 2, !tbaa !47
  br label %246

246:                                              ; preds = %.lr.ph444, %243
  %.0 = phi i16 [ %245, %243 ], [ %.1267, %.lr.ph444 ]
  %247 = getelementptr inbounds [4 x i32], ptr %100, i64 0, i64 %indvars.iv468
  %248 = load i32, ptr %247, align 4, !tbaa !46
  %249 = sext i32 %248 to i64
  %250 = sext i16 %.0 to i64
  %251 = mul nsw i64 %249, %250
  %252 = lshr i64 %251, 16
  %253 = trunc i64 %252 to i32
  %spec.select308 = call i32 @llvm.smax.i32(i32 %253, i32 -8388608)
  %254 = call i32 @llvm.smin.i32(i32 %spec.select308, i32 8388607)
  %255 = shl nsw i32 %254, 8
  %256 = getelementptr inbounds [4 x i32], ptr %12, i64 0, i64 %indvars.iv468
  store i32 %255, ptr %256, align 4, !tbaa !46
  %indvars.iv.next469 = add nuw nsw i64 %indvars.iv468, 1
  %exitcond472.not = icmp eq i64 %indvars.iv.next469, %wide.trip.count471
  br i1 %exitcond472.not, label %._crit_edge445, label %.lr.ph444, !llvm.loop !49

._crit_edge445:                                   ; preds = %246, %238
  %257 = load i8, ptr %95, align 4, !tbaa !33
  store i8 %257, ptr %96, align 8, !tbaa !35
  call void @silk_gains_quant(ptr noundef nonnull %75, ptr noundef nonnull %12, ptr noundef nonnull %96, i32 noundef %101, i32 noundef %239) #7
  %258 = load i32, ptr %82, align 4, !tbaa !27
  %259 = call i32 @silk_gains_ID(ptr noundef nonnull %75, i32 noundef %258) #7
  %260 = load i32, ptr %82, align 4, !tbaa !27
  %261 = icmp sgt i32 %260, 0
  br i1 %261, label %.lr.ph449.preheader, label %._crit_edge450

.lr.ph449.preheader:                              ; preds = %._crit_edge445
  %wide.trip.count476 = zext nneg i32 %260 to i64
  %min.iters.check = icmp ult i32 %260, 8
  br i1 %min.iters.check, label %.lr.ph449.preheader519, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph449.preheader
  %n.vec = and i64 %wide.trip.count476, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %262 = getelementptr inbounds [4 x i32], ptr %12, i64 0, i64 %index
  %263 = getelementptr inbounds i8, ptr %262, i64 16
  %wide.load = load <4 x i32>, ptr %262, align 16, !tbaa !46
  %wide.load503 = load <4 x i32>, ptr %263, align 16, !tbaa !46
  %264 = sitofp <4 x i32> %wide.load to <4 x float>
  %265 = sitofp <4 x i32> %wide.load503 to <4 x float>
  %266 = fmul <4 x float> %264, <float 0x3EF0000000000000, float 0x3EF0000000000000, float 0x3EF0000000000000, float 0x3EF0000000000000>
  %267 = fmul <4 x float> %265, <float 0x3EF0000000000000, float 0x3EF0000000000000, float 0x3EF0000000000000, float 0x3EF0000000000000>
  %268 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 %index
  %269 = getelementptr inbounds i8, ptr %268, i64 16
  store <4 x float> %266, ptr %268, align 4, !tbaa !24
  store <4 x float> %267, ptr %269, align 4, !tbaa !24
  %index.next = add nuw i64 %index, 8
  %270 = icmp eq i64 %index.next, %n.vec
  br i1 %270, label %middle.block, label %vector.body, !llvm.loop !50

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count476
  br i1 %cmp.n, label %._crit_edge450, label %.lr.ph449.preheader519

.lr.ph449.preheader519:                           ; preds = %middle.block, %.lr.ph449.preheader
  %indvars.iv473.ph = phi i64 [ 0, %.lr.ph449.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph449

.lr.ph449:                                        ; preds = %.lr.ph449.preheader519, %.lr.ph449
  %indvars.iv473 = phi i64 [ %indvars.iv.next474, %.lr.ph449 ], [ %indvars.iv473.ph, %.lr.ph449.preheader519 ]
  %271 = getelementptr inbounds [4 x i32], ptr %12, i64 0, i64 %indvars.iv473
  %272 = load i32, ptr %271, align 4, !tbaa !46
  %273 = sitofp i32 %272 to float
  %274 = fmul float %273, 0x3EF0000000000000
  %275 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 %indvars.iv473
  store float %274, ptr %275, align 4, !tbaa !24
  %indvars.iv.next474 = add nuw nsw i64 %indvars.iv473, 1
  %exitcond477.not = icmp eq i64 %indvars.iv.next474, %wide.trip.count476
  br i1 %exitcond477.not, label %._crit_edge450, label %.lr.ph449, !llvm.loop !51

._crit_edge450:                                   ; preds = %.lr.ph449, %middle.block, %._crit_edge445
  %276 = add nuw nsw i32 %.0265, 1
  br label %102

.loopexit:                                        ; preds = %138, %155, %144, %142, %6
  %277 = load i32, ptr %30, align 8, !tbaa !22
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [720 x float], ptr %23, i64 0, i64 %278
  %280 = load i32, ptr %24, align 8, !tbaa !21
  %281 = load i32, ptr %32, align 8, !tbaa !23
  %282 = mul nsw i32 %281, 5
  %283 = add nsw i32 %282, %280
  %284 = sext i32 %283 to i64
  %285 = shl nsw i64 %284, 2
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 4 %23, ptr nonnull align 4 %279, i64 %285, i1 false)
  %286 = load i32, ptr %76, align 8, !tbaa !25
  %.not303 = icmp eq i32 %286, 0
  br i1 %.not303, label %287, label %303

287:                                              ; preds = %.loopexit
  %288 = getelementptr inbounds i8, ptr %7, i64 228
  %289 = getelementptr inbounds i8, ptr %0, i64 4580
  %290 = load i32, ptr %289, align 4, !tbaa !27
  %291 = add nsw i32 %290, -1
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [4 x i32], ptr %288, i64 0, i64 %292
  %294 = load i32, ptr %293, align 4, !tbaa !46
  %295 = getelementptr inbounds i8, ptr %0, i64 4544
  store i32 %294, ptr %295, align 8, !tbaa !52
  %296 = getelementptr inbounds i8, ptr %0, i64 4781
  %297 = load i8, ptr %296, align 1, !tbaa !31
  %298 = getelementptr inbounds i8, ptr %0, i64 4541
  store i8 %297, ptr %298, align 1, !tbaa !53
  %299 = getelementptr inbounds i8, ptr %0, i64 4664
  store i32 0, ptr %299, align 8, !tbaa !54
  %300 = call i32 @ec_tell(ptr noundef %2)
  %301 = add nsw i32 %300, 7
  %302 = ashr i32 %301, 3
  br label %303

303:                                              ; preds = %.loopexit, %287
  %storemerge = phi i32 [ %302, %287 ], [ 0, %.loopexit ]
  store i32 %storemerge, ptr %1, align 4, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 1275, ptr nonnull %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4352, ptr nonnull %11)
  call void @llvm.lifetime.end.p0(i64 4352, ptr nonnull %10)
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %.sroa.0)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %.sroa.7)
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9)
  call void @llvm.lifetime.end.p0(i64 2688, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 748, ptr nonnull %7) #7
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare void @silk_LP_variable_cutoff(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @silk_short2float_array(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @silk_find_pitch_lags_FLP(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @silk_noise_shape_analysis_FLP(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @silk_find_pred_coefs_FLP(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @silk_process_gains_FLP(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @silk_LBRR_encode_FLP(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @silk_gains_ID(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare void @silk_NSQ_wrapper_FLP(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @silk_encode_indices(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @silk_encode_pulses(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @ec_tell(ptr noundef) local_unnamed_addr #4

declare i32 @silk_log2lin(i32 noundef) local_unnamed_addr #3

declare void @silk_gains_quant(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.abs.i8(i8, i1 immarg) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i8> @llvm.abs.v4i8(<4 x i8>, i1 immarg) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 4620}
!6 = !{!"", !7, i64 0, !18, i64 7192, !8, i64 7204, !19, i64 10084}
!7 = !{!"", !8, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !12, i64 36, !14, i64 148, !8, i64 4500, !10, i64 4532, !10, i64 4536, !8, i64 4540, !8, i64 4541, !10, i64 4544, !10, i64 4548, !10, i64 4552, !10, i64 4556, !10, i64 4560, !10, i64 4564, !10, i64 4568, !10, i64 4572, !10, i64 4576, !10, i64 4580, !10, i64 4584, !10, i64 4588, !10, i64 4592, !10, i64 4596, !10, i64 4600, !10, i64 4604, !10, i64 4608, !10, i64 4612, !10, i64 4616, !10, i64 4620, !10, i64 4624, !10, i64 4628, !10, i64 4632, !10, i64 4636, !10, i64 4640, !10, i64 4644, !10, i64 4648, !10, i64 4652, !10, i64 4656, !10, i64 4660, !10, i64 4664, !10, i64 4668, !10, i64 4672, !10, i64 4676, !10, i64 4680, !15, i64 4688, !15, i64 4696, !15, i64 4704, !8, i64 4712, !10, i64 4728, !10, i64 4732, !8, i64 4736, !8, i64 4739, !8, i64 4740, !16, i64 4752, !8, i64 4788, !10, i64 5108, !8, i64 5112, !10, i64 5756, !10, i64 5760, !10, i64 5764, !10, i64 5768, !10, i64 5772, !10, i64 5776, !10, i64 5780, !10, i64 5784, !13, i64 5788, !17, i64 5792, !10, i64 6096, !10, i64 6100, !10, i64 6104, !10, i64 6108, !10, i64 6112, !10, i64 6116, !8, i64 6120, !8, i64 6228}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !8, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!12 = !{!"", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 40, !13, i64 56, !8, i64 60, !8, i64 76, !8, i64 92, !10, i64 108}
!13 = !{!"short", !8, i64 0}
!14 = !{!"", !8, i64 0, !8, i64 1280, !8, i64 3840, !8, i64 4224, !10, i64 4320, !10, i64 4324, !10, i64 4328, !10, i64 4332, !10, i64 4336, !10, i64 4340, !10, i64 4344, !10, i64 4348}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"", !8, i64 0, !8, i64 4, !8, i64 8, !13, i64 26, !8, i64 28, !8, i64 29, !8, i64 30, !8, i64 31, !8, i64 32, !8, i64 33, !8, i64 34}
!17 = !{!"_silk_resampler_state_struct", !8, i64 0, !8, i64 24, !8, i64 168, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !15, i64 296}
!18 = !{!"", !8, i64 0, !19, i64 4, !19, i64 8}
!19 = !{!"float", !8, i64 0}
!20 = !{!6, !8, i64 4786}
!21 = !{!6, !10, i64 4592}
!22 = !{!6, !10, i64 4584}
!23 = !{!6, !10, i64 4576}
!24 = !{!19, !19, i64 0}
!25 = !{!6, !10, i64 4680}
!26 = !{!6, !10, i64 5108}
!27 = !{!6, !10, i64 4580}
!28 = !{!6, !13, i64 5788}
!29 = !{!6, !10, i64 5784}
!30 = !{!6, !10, i64 5764}
!31 = !{!6, !8, i64 4781}
!32 = !{!6, !8, i64 4782}
!33 = !{!34, !8, i64 744}
!34 = !{!"", !8, i64 0, !8, i64 16, !8, i64 144, !19, i64 224, !8, i64 228, !8, i64 244, !8, i64 628, !8, i64 644, !8, i64 660, !8, i64 676, !19, i64 692, !19, i64 696, !19, i64 700, !19, i64 704, !19, i64 708, !8, i64 712, !8, i64 728, !8, i64 744}
!35 = !{!6, !8, i64 7192}
!36 = !{!8, !8, i64 0}
!37 = !{!38, !15, i64 0}
!38 = !{!"ec_ctx", !15, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48}
!39 = !{!34, !19, i64 692}
!40 = !{!6, !10, i64 4588}
!41 = distinct !{!41, !42, !43, !44}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!"llvm.loop.isvectorized", i32 1}
!44 = !{!"llvm.loop.unroll.runtime.disable"}
!45 = distinct !{!45, !42, !44, !43}
!46 = !{!10, !10, i64 0}
!47 = !{!13, !13, i64 0}
!48 = distinct !{!48, !42}
!49 = distinct !{!49, !42}
!50 = distinct !{!50, !42, !43, !44}
!51 = distinct !{!51, !42, !44, !43}
!52 = !{!6, !10, i64 4544}
!53 = !{!6, !8, i64 4541}
!54 = !{!6, !10, i64 4664}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass