; LLVM IR from glaretechnologies/substrata :: opus/opus-1.3.1/silk/float (process_gains_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_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.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.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 }
%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 }

@silk_Quantization_Offsets_Q10 = external constant [2 x [2 x i16]], align 2

; Function Attrs: nounwind uwtable
define dso_local void @silk_process_gains_FLP(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [4 x i32], align 16
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %14, i32 0, i32 1
  store ptr %15, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %16, i32 0, i32 0
  %18 = getelementptr inbounds %struct.silk_encoder_state, ptr %17, i32 0, i32 55
  %19 = getelementptr inbounds %struct.SideInfoIndices, ptr %18, i32 0, i32 5
  %20 = load i8, ptr %19, align 1, !tbaa !11
  %21 = sext i8 %20 to i32
  %22 = icmp eq i32 %21, 2
  br i1 %22, label %23, label %51

23:                                               ; preds = %3
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %24, i32 0, i32 14
  %26 = load float, ptr %25, align 4, !tbaa !22
  %27 = fsub float %26, 1.200000e+01
  %28 = fmul float 2.500000e-01, %27
  %29 = call float @silk_sigmoid(float noundef %28)
  %30 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %29, float 1.000000e+00)
  store float %30, ptr %10, align 4, !tbaa !24
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %47, %23
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %33, i32 0, i32 0
  %35 = getelementptr inbounds %struct.silk_encoder_state, ptr %34, i32 0, i32 20
  %36 = load i32, ptr %35, align 4, !tbaa !25
  %37 = icmp slt i32 %32, %36
  br i1 %37, label %38, label %50

38:                                               ; preds = %31
  %39 = load float, ptr %10, align 4, !tbaa !24
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [4 x float], ptr %41, i64 0, i64 %43
  %45 = load float, ptr %44, align 4, !tbaa !24
  %46 = fmul float %45, %39
  store float %46, ptr %44, align 4, !tbaa !24
  br label %47

47:                                               ; preds = %38
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %8, align 4, !tbaa !9
  br label %31, !llvm.loop !26

50:                                               ; preds = %31
  br label %51

51:                                               ; preds = %50, %3
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds %struct.silk_encoder_state, ptr %53, i32 0, i32 51
  %55 = load i32, ptr %54, align 4, !tbaa !28
  %56 = sitofp i32 %55 to float
  %57 = fneg float %56
  %58 = call float @llvm.fmuladd.f32(float %57, float 7.812500e-03, float 2.100000e+01)
  %59 = fmul float 0x3FD51EB860000000, %58
  %60 = fpext float %59 to double
  %61 = call double @pow(double noundef 2.000000e+00, double noundef %60) #7
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds %struct.silk_encoder_state, ptr %63, i32 0, i32 22
  %65 = load i32, ptr %64, align 4, !tbaa !29
  %66 = sitofp i32 %65 to double
  %67 = fdiv double %61, %66
  %68 = fptrunc double %67 to float
  store float %68, ptr %11, align 4, !tbaa !24
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %109, %51
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds %struct.silk_encoder_state, ptr %72, i32 0, i32 20
  %74 = load i32, ptr %73, align 4, !tbaa !25
  %75 = icmp slt i32 %70, %74
  br i1 %75, label %76, label %112

76:                                               ; preds = %69
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [4 x float], ptr %78, i64 0, i64 %80
  %82 = load float, ptr %81, align 4, !tbaa !24
  store float %82, ptr %12, align 4, !tbaa !24
  %83 = load float, ptr %12, align 4, !tbaa !24
  %84 = load float, ptr %12, align 4, !tbaa !24
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %85, i32 0, i32 15
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [4 x float], ptr %86, i64 0, i64 %88
  %90 = load float, ptr %89, align 4, !tbaa !24
  %91 = load float, ptr %11, align 4, !tbaa !24
  %92 = fmul float %90, %91
  %93 = call float @llvm.fmuladd.f32(float %83, float %84, float %92)
  %94 = fpext float %93 to double
  %95 = call double @sqrt(double noundef %94) #7
  %96 = fptrunc double %95 to float
  store float %96, ptr %12, align 4, !tbaa !24
  %97 = load float, ptr %12, align 4, !tbaa !24
  %98 = fcmp olt float %97, 3.276700e+04
  br i1 %98, label %99, label %101

99:                                               ; preds = %76
  %100 = load float, ptr %12, align 4, !tbaa !24
  br label %102

101:                                              ; preds = %76
  br label %102

102:                                              ; preds = %101, %99
  %103 = phi float [ %100, %99 ], [ 3.276700e+04, %101 ]
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %8, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [4 x float], ptr %105, i64 0, i64 %107
  store float %103, ptr %108, align 4, !tbaa !24
  br label %109

109:                                              ; preds = %102
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %8, align 4, !tbaa !9
  br label %69, !llvm.loop !30

112:                                              ; preds = %69
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %132, %112
  %114 = load i32, ptr %8, align 4, !tbaa !9
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds %struct.silk_encoder_state, ptr %116, i32 0, i32 20
  %118 = load i32, ptr %117, align 4, !tbaa !25
  %119 = icmp slt i32 %114, %118
  br i1 %119, label %120, label %135

120:                                              ; preds = %113
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %121, i32 0, i32 0
  %123 = load i32, ptr %8, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [4 x float], ptr %122, i64 0, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !24
  %127 = fmul float %126, 6.553600e+04
  %128 = fptosi float %127 to i32
  %129 = load i32, ptr %8, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 %130
  store i32 %128, ptr %131, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %120
  %133 = load i32, ptr %8, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %8, align 4, !tbaa !9
  br label %113, !llvm.loop !31

135:                                              ; preds = %113
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %136, i32 0, i32 16
  %138 = getelementptr inbounds [4 x i32], ptr %137, i64 0, i64 0
  %139 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds %struct.silk_encoder_state, ptr %141, i32 0, i32 20
  %143 = load i32, ptr %142, align 4, !tbaa !25
  %144 = sext i32 %143 to i64
  %145 = mul i64 %144, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %138, ptr align 16 %139, i64 %145, i1 false)
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.silk_shape_state_FLP, ptr %146, i32 0, i32 0
  %148 = load i8, ptr %147, align 4, !tbaa !32
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %149, i32 0, i32 17
  store i8 %148, ptr %150, align 4, !tbaa !33
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds %struct.silk_encoder_state, ptr %152, i32 0, i32 55
  %154 = getelementptr inbounds %struct.SideInfoIndices, ptr %153, i32 0, i32 0
  %155 = getelementptr inbounds [4 x i8], ptr %154, i64 0, i64 0
  %156 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.silk_shape_state_FLP, ptr %157, i32 0, i32 0
  %159 = load i32, ptr %6, align 4, !tbaa !9
  %160 = icmp eq i32 %159, 2
  %161 = zext i1 %160 to i32
  %162 = load ptr, ptr %4, 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 20
  %165 = load i32, ptr %164, align 4, !tbaa !25
  call void @silk_gains_quant(ptr noundef %155, ptr noundef %156, ptr noundef %158, i32 noundef %161, i32 noundef %165)
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %185, %135
  %167 = load i32, ptr %8, align 4, !tbaa !9
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds %struct.silk_encoder_state, ptr %169, i32 0, i32 20
  %171 = load i32, ptr %170, align 4, !tbaa !25
  %172 = icmp slt i32 %167, %171
  br i1 %172, label %173, label %188

173:                                              ; preds = %166
  %174 = load i32, ptr %8, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !9
  %178 = sitofp i32 %177 to float
  %179 = fdiv float %178, 6.553600e+04
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %180, i32 0, i32 0
  %182 = load i32, ptr %8, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [4 x float], ptr %181, i64 0, i64 %183
  store float %179, ptr %184, align 4, !tbaa !24
  br label %185

185:                                              ; preds = %173
  %186 = load i32, ptr %8, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %8, align 4, !tbaa !9
  br label %166, !llvm.loop !34

188:                                              ; preds = %166
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %189, i32 0, i32 0
  %191 = getelementptr inbounds %struct.silk_encoder_state, ptr %190, i32 0, i32 55
  %192 = getelementptr inbounds %struct.SideInfoIndices, ptr %191, i32 0, i32 5
  %193 = load i8, ptr %192, align 1, !tbaa !11
  %194 = sext i8 %193 to i32
  %195 = icmp eq i32 %194, 2
  br i1 %195, label %196, label %218

196:                                              ; preds = %188
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %197, i32 0, i32 14
  %199 = load float, ptr %198, align 4, !tbaa !22
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %200, i32 0, i32 0
  %202 = getelementptr inbounds %struct.silk_encoder_state, ptr %201, i32 0, i32 50
  %203 = load i32, ptr %202, align 8, !tbaa !35
  %204 = sitofp i32 %203 to float
  %205 = call float @llvm.fmuladd.f32(float %204, float 0x3F00000000000000, float %199)
  %206 = fcmp ogt float %205, 1.000000e+00
  br i1 %206, label %207, label %212

207:                                              ; preds = %196
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %208, i32 0, i32 0
  %210 = getelementptr inbounds %struct.silk_encoder_state, ptr %209, i32 0, i32 55
  %211 = getelementptr inbounds %struct.SideInfoIndices, ptr %210, i32 0, i32 6
  store i8 0, ptr %211, align 2, !tbaa !36
  br label %217

212:                                              ; preds = %196
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %213, i32 0, i32 0
  %215 = getelementptr inbounds %struct.silk_encoder_state, ptr %214, i32 0, i32 55
  %216 = getelementptr inbounds %struct.SideInfoIndices, ptr %215, i32 0, i32 6
  store i8 1, ptr %216, align 2, !tbaa !36
  br label %217

217:                                              ; preds = %212, %207
  br label %218

218:                                              ; preds = %217, %188
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %219, i32 0, i32 0
  %221 = getelementptr inbounds %struct.silk_encoder_state, ptr %220, i32 0, i32 55
  %222 = getelementptr inbounds %struct.SideInfoIndices, ptr %221, i32 0, i32 5
  %223 = load i8, ptr %222, align 1, !tbaa !11
  %224 = sext i8 %223 to i32
  %225 = ashr i32 %224, 1
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [2 x [2 x i16]], ptr @silk_Quantization_Offsets_Q10, i64 0, i64 %226
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %228, i32 0, i32 0
  %230 = getelementptr inbounds %struct.silk_encoder_state, ptr %229, i32 0, i32 55
  %231 = getelementptr inbounds %struct.SideInfoIndices, ptr %230, i32 0, i32 6
  %232 = load i8, ptr %231, align 2, !tbaa !36
  %233 = sext i8 %232 to i64
  %234 = getelementptr inbounds [2 x i16], ptr %227, i64 0, i64 %233
  %235 = load i16, ptr %234, align 2, !tbaa !37
  %236 = sext i16 %235 to i32
  %237 = sitofp i32 %236 to float
  %238 = fdiv float %237, 1.024000e+03
  store float %238, ptr %13, align 4, !tbaa !24
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %239, i32 0, i32 0
  %241 = getelementptr inbounds %struct.silk_encoder_state, ptr %240, i32 0, i32 32
  %242 = load i32, ptr %241, align 4, !tbaa !38
  %243 = sitofp i32 %242 to float
  %244 = call float @llvm.fmuladd.f32(float 0xBFA99999A0000000, float %243, float 0x3FF3333340000000)
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %245, i32 0, i32 0
  %247 = getelementptr inbounds %struct.silk_encoder_state, ptr %246, i32 0, i32 7
  %248 = load i32, ptr %247, align 4, !tbaa !39
  %249 = sitofp i32 %248 to float
  %250 = fmul float 0xBFC99999A0000000, %249
  %251 = call float @llvm.fmuladd.f32(float %250, float 3.906250e-03, float %244)
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %252, i32 0, i32 11
  %254 = load float, ptr %253, align 4, !tbaa !40
  %255 = call float @llvm.fmuladd.f32(float 0xBFB99999A0000000, float %254, float %251)
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %256, i32 0, i32 12
  %258 = load float, ptr %257, align 4, !tbaa !41
  %259 = call float @llvm.fmuladd.f32(float 0xBFC99999A0000000, float %258, float %255)
  %260 = load float, ptr %13, align 4, !tbaa !24
  %261 = call float @llvm.fmuladd.f32(float 0x3FE99999A0000000, float %260, float %259)
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.silk_encoder_control_FLP, ptr %262, i32 0, i32 10
  store float %261, ptr %263, align 4, !tbaa !42
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @silk_sigmoid(float noundef) #2

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #4

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

; 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) #5

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind "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 nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { "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 #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 = !{!12, !7, i64 4781}
!12 = !{!"", !13, i64 0, !20, i64 7192, !7, i64 7204, !21, i64 10084}
!13 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !14, i64 16, !15, i64 36, !17, 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, !18, 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, !16, i64 5788, !19, 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}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!15 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 40, !16, i64 56, !7, i64 60, !7, i64 76, !7, i64 92, !10, i64 108}
!16 = !{!"short", !7, i64 0}
!17 = !{!"", !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}
!18 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !16, i64 26, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !7, i64 33, !7, i64 34}
!19 = !{!"_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}
!20 = !{!"", !7, i64 0, !21, i64 4, !21, i64 8}
!21 = !{!"float", !7, i64 0}
!22 = !{!23, !21, i64 708}
!23 = !{!"", !7, i64 0, !7, i64 16, !7, i64 144, !21, i64 224, !7, i64 228, !7, i64 244, !7, i64 628, !7, i64 644, !7, i64 660, !7, i64 676, !21, i64 692, !21, i64 696, !21, i64 700, !21, i64 704, !21, i64 708, !7, i64 712, !7, i64 728, !7, i64 744}
!24 = !{!21, !21, i64 0}
!25 = !{!12, !10, i64 4580}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!12, !10, i64 4732}
!29 = !{!12, !10, i64 4588}
!30 = distinct !{!30, !27}
!31 = distinct !{!31, !27}
!32 = !{!20, !7, i64 0}
!33 = !{!23, !7, i64 744}
!34 = distinct !{!34, !27}
!35 = !{!12, !10, i64 4728}
!36 = !{!12, !7, i64 4782}
!37 = !{!16, !16, i64 0}
!38 = !{!12, !10, i64 4628}
!39 = !{!12, !10, i64 4532}
!40 = !{!23, !21, i64 696}
!41 = !{!23, !21, i64 700}
!42 = !{!23, !21, i64 692}


; 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"

@silk_Quantization_Offsets_Q10 = external local_unnamed_addr constant [2 x [2 x i16]], align 2

; Function Attrs: nounwind uwtable
define dso_local void @silk_process_gains_FLP(ptr noundef %0, ptr nocapture noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca [4 x i32], align 16
  %5 = getelementptr inbounds i8, ptr %0, i64 7192
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %6 = getelementptr inbounds i8, ptr %0, i64 4752
  %7 = getelementptr inbounds i8, ptr %0, i64 4781
  %8 = load i8, ptr %7, align 1, !tbaa !5
  %9 = icmp eq i8 %8, 2
  br i1 %9, label %10, label %.loopexit

10:                                               ; preds = %3
  %11 = getelementptr inbounds i8, ptr %1, i64 708
  %12 = load float, ptr %11, align 4, !tbaa !20
  %13 = fadd float %12, -1.200000e+01
  %14 = fmul float %13, 2.500000e-01
  %15 = tail call float @silk_sigmoid(float noundef %14)
  %16 = tail call float @llvm.fmuladd.f32(float %15, float -5.000000e-01, float 1.000000e+00)
  %17 = getelementptr inbounds i8, ptr %0, i64 4580
  %18 = load i32, ptr %17, align 4, !tbaa !22
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %10
  %wide.trip.count = zext nneg i32 %18 to i64
  %min.iters.check = icmp ult i32 %18, 8
  br i1 %min.iters.check, label %.lr.ph.preheader114, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  %broadcast.splatinsert = insertelement <4 x float> poison, float %16, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %20 = getelementptr inbounds [4 x float], ptr %1, i64 0, i64 %index
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %wide.load = load <4 x float>, ptr %20, align 4, !tbaa !23
  %wide.load85 = load <4 x float>, ptr %21, align 4, !tbaa !23
  %22 = fmul <4 x float> %broadcast.splat, %wide.load
  %23 = fmul <4 x float> %broadcast.splat, %wide.load85
  store <4 x float> %22, ptr %20, align 4, !tbaa !23
  store <4 x float> %23, ptr %21, align 4, !tbaa !23
  %index.next = add nuw i64 %index, 8
  %24 = icmp eq i64 %index.next, %n.vec
  br i1 %24, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit, label %.lr.ph.preheader114

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

.lr.ph:                                           ; preds = %.lr.ph.preheader114, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader114 ]
  %25 = getelementptr inbounds [4 x float], ptr %1, i64 0, i64 %indvars.iv
  %26 = load float, ptr %25, align 4, !tbaa !23
  %27 = fmul float %16, %26
  store float %27, ptr %25, align 4, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !28

.loopexit:                                        ; preds = %.lr.ph, %middle.block, %10, %3
  %28 = getelementptr inbounds i8, ptr %0, i64 4732
  %29 = load i32, ptr %28, align 4, !tbaa !29
  %30 = sitofp i32 %29 to float
  %31 = fneg float %30
  %32 = tail call float @llvm.fmuladd.f32(float %31, float 7.812500e-03, float 2.100000e+01)
  %33 = fmul float %32, 0x3FD51EB860000000
  %34 = fpext float %33 to double
  %exp2 = tail call double @exp2(double %34) #6
  %35 = getelementptr inbounds i8, ptr %0, i64 4588
  %36 = load i32, ptr %35, align 4, !tbaa !30
  %37 = sitofp i32 %36 to double
  %38 = fdiv double %exp2, %37
  %39 = fptrunc double %38 to float
  %40 = getelementptr inbounds i8, ptr %0, i64 4580
  %41 = load i32, ptr %40, align 4, !tbaa !22
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph61, label %._crit_edge

.lr.ph61:                                         ; preds = %.loopexit
  %43 = getelementptr inbounds i8, ptr %1, i64 712
  br label %54

.preheader:                                       ; preds = %54
  %44 = icmp sgt i32 %63, 0
  br i1 %44, label %.lr.ph63.preheader, label %._crit_edge

.lr.ph63.preheader:                               ; preds = %.preheader
  %wide.trip.count76 = zext nneg i32 %63 to i64
  %min.iters.check88 = icmp ult i32 %63, 8
  br i1 %min.iters.check88, label %.lr.ph63.preheader113, label %vector.ph89

.lr.ph63.preheader113:                            ; preds = %middle.block86, %.lr.ph63.preheader
  %indvars.iv73.ph = phi i64 [ 0, %.lr.ph63.preheader ], [ %n.vec91, %middle.block86 ]
  br label %.lr.ph63

vector.ph89:                                      ; preds = %.lr.ph63.preheader
  %n.vec91 = and i64 %wide.trip.count76, 2147483640
  br label %vector.body93

vector.body93:                                    ; preds = %vector.body93, %vector.ph89
  %index94 = phi i64 [ 0, %vector.ph89 ], [ %index.next97, %vector.body93 ]
  %45 = getelementptr inbounds [4 x float], ptr %1, i64 0, i64 %index94
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %wide.load95 = load <4 x float>, ptr %45, align 4, !tbaa !23
  %wide.load96 = load <4 x float>, ptr %46, align 4, !tbaa !23
  %47 = fmul <4 x float> %wide.load95, <float 6.553600e+04, float 6.553600e+04, float 6.553600e+04, float 6.553600e+04>
  %48 = fmul <4 x float> %wide.load96, <float 6.553600e+04, float 6.553600e+04, float 6.553600e+04, float 6.553600e+04>
  %49 = fptosi <4 x float> %47 to <4 x i32>
  %50 = fptosi <4 x float> %48 to <4 x i32>
  %51 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %index94
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  store <4 x i32> %49, ptr %51, align 16, !tbaa !31
  store <4 x i32> %50, ptr %52, align 16, !tbaa !31
  %index.next97 = add nuw i64 %index94, 8
  %53 = icmp eq i64 %index.next97, %n.vec91
  br i1 %53, label %middle.block86, label %vector.body93, !llvm.loop !32

middle.block86:                                   ; preds = %vector.body93
  %cmp.n98 = icmp eq i64 %n.vec91, %wide.trip.count76
  br i1 %cmp.n98, label %._crit_edge, label %.lr.ph63.preheader113

54:                                               ; preds = %.lr.ph61, %54
  %indvars.iv70 = phi i64 [ 0, %.lr.ph61 ], [ %indvars.iv.next71, %54 ]
  %55 = getelementptr inbounds [4 x float], ptr %1, i64 0, i64 %indvars.iv70
  %56 = load float, ptr %55, align 4, !tbaa !23
  %57 = getelementptr inbounds [4 x float], ptr %43, i64 0, i64 %indvars.iv70
  %58 = load float, ptr %57, align 4, !tbaa !23
  %59 = fmul float %58, %39
  %60 = tail call float @llvm.fmuladd.f32(float %56, float %56, float %59)
  %sqrtf = tail call float @sqrtf(float noundef %60) #7
  %61 = fcmp olt float %sqrtf, 3.276700e+04
  %62 = select i1 %61, float %sqrtf, float 3.276700e+04
  store float %62, ptr %55, align 4, !tbaa !23
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %63 = load i32, ptr %40, align 4, !tbaa !22
  %64 = sext i32 %63 to i64
  %65 = icmp slt i64 %indvars.iv.next71, %64
  br i1 %65, label %54, label %.preheader, !llvm.loop !33

.lr.ph63:                                         ; preds = %.lr.ph63.preheader113, %.lr.ph63
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %.lr.ph63 ], [ %indvars.iv73.ph, %.lr.ph63.preheader113 ]
  %66 = getelementptr inbounds [4 x float], ptr %1, i64 0, i64 %indvars.iv73
  %67 = load float, ptr %66, align 4, !tbaa !23
  %68 = fmul float %67, 6.553600e+04
  %69 = fptosi float %68 to i32
  %70 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %indvars.iv73
  store i32 %69, ptr %70, align 4, !tbaa !31
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %exitcond77.not = icmp eq i64 %indvars.iv.next74, %wide.trip.count76
  br i1 %exitcond77.not, label %._crit_edge, label %.lr.ph63, !llvm.loop !34

._crit_edge:                                      ; preds = %.lr.ph63, %middle.block86, %.loopexit, %.preheader
  %.lcssa84 = phi i32 [ %63, %.preheader ], [ %41, %.loopexit ], [ %63, %middle.block86 ], [ %63, %.lr.ph63 ]
  %71 = getelementptr inbounds i8, ptr %1, i64 728
  %72 = sext i32 %.lcssa84 to i64
  %73 = shl nsw i64 %72, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %71, ptr nonnull align 16 %4, i64 %73, i1 false)
  %74 = load i8, ptr %5, align 4, !tbaa !35
  %75 = getelementptr inbounds i8, ptr %1, i64 744
  store i8 %74, ptr %75, align 4, !tbaa !36
  %76 = icmp eq i32 %2, 2
  %77 = zext i1 %76 to i32
  %78 = load i32, ptr %40, align 4, !tbaa !22
  call void @silk_gains_quant(ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef %77, i32 noundef %78) #6
  %79 = load i32, ptr %40, align 4, !tbaa !22
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %.lr.ph66.preheader, label %._crit_edge67

.lr.ph66.preheader:                               ; preds = %._crit_edge
  %wide.trip.count81 = zext nneg i32 %79 to i64
  %min.iters.check101 = icmp ult i32 %79, 8
  br i1 %min.iters.check101, label %.lr.ph66.preheader112, label %vector.ph102

vector.ph102:                                     ; preds = %.lr.ph66.preheader
  %n.vec104 = and i64 %wide.trip.count81, 2147483640
  br label %vector.body106

vector.body106:                                   ; preds = %vector.body106, %vector.ph102
  %index107 = phi i64 [ 0, %vector.ph102 ], [ %index.next110, %vector.body106 ]
  %81 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %index107
  %82 = getelementptr inbounds i8, ptr %81, i64 16
  %wide.load108 = load <4 x i32>, ptr %81, align 16, !tbaa !31
  %wide.load109 = load <4 x i32>, ptr %82, align 16, !tbaa !31
  %83 = sitofp <4 x i32> %wide.load108 to <4 x float>
  %84 = sitofp <4 x i32> %wide.load109 to <4 x float>
  %85 = fmul <4 x float> %83, <float 0x3EF0000000000000, float 0x3EF0000000000000, float 0x3EF0000000000000, float 0x3EF0000000000000>
  %86 = fmul <4 x float> %84, <float 0x3EF0000000000000, float 0x3EF0000000000000, float 0x3EF0000000000000, float 0x3EF0000000000000>
  %87 = getelementptr inbounds [4 x float], ptr %1, i64 0, i64 %index107
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  store <4 x float> %85, ptr %87, align 4, !tbaa !23
  store <4 x float> %86, ptr %88, align 4, !tbaa !23
  %index.next110 = add nuw i64 %index107, 8
  %89 = icmp eq i64 %index.next110, %n.vec104
  br i1 %89, label %middle.block99, label %vector.body106, !llvm.loop !37

middle.block99:                                   ; preds = %vector.body106
  %cmp.n111 = icmp eq i64 %n.vec104, %wide.trip.count81
  br i1 %cmp.n111, label %._crit_edge67, label %.lr.ph66.preheader112

.lr.ph66.preheader112:                            ; preds = %middle.block99, %.lr.ph66.preheader
  %indvars.iv78.ph = phi i64 [ 0, %.lr.ph66.preheader ], [ %n.vec104, %middle.block99 ]
  br label %.lr.ph66

.lr.ph66:                                         ; preds = %.lr.ph66.preheader112, %.lr.ph66
  %indvars.iv78 = phi i64 [ %indvars.iv.next79, %.lr.ph66 ], [ %indvars.iv78.ph, %.lr.ph66.preheader112 ]
  %90 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %indvars.iv78
  %91 = load i32, ptr %90, align 4, !tbaa !31
  %92 = sitofp i32 %91 to float
  %93 = fmul float %92, 0x3EF0000000000000
  %94 = getelementptr inbounds [4 x float], ptr %1, i64 0, i64 %indvars.iv78
  store float %93, ptr %94, align 4, !tbaa !23
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %exitcond82.not = icmp eq i64 %indvars.iv.next79, %wide.trip.count81
  br i1 %exitcond82.not, label %._crit_edge67, label %.lr.ph66, !llvm.loop !38

._crit_edge67:                                    ; preds = %.lr.ph66, %middle.block99, %._crit_edge
  %95 = load i8, ptr %7, align 1, !tbaa !5
  %96 = icmp eq i8 %95, 2
  br i1 %96, label %98, label %._crit_edge67._crit_edge

._crit_edge67._crit_edge:                         ; preds = %._crit_edge67
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 4782
  %.pre = load i8, ptr %.phi.trans.insert, align 2, !tbaa !39
  %97 = sext i8 %.pre to i64
  br label %109

98:                                               ; preds = %._crit_edge67
  %99 = getelementptr inbounds i8, ptr %1, i64 708
  %100 = load float, ptr %99, align 4, !tbaa !20
  %101 = getelementptr inbounds i8, ptr %0, i64 4728
  %102 = load i32, ptr %101, align 8, !tbaa !40
  %103 = sitofp i32 %102 to float
  %104 = call float @llvm.fmuladd.f32(float %103, float 0x3F00000000000000, float %100)
  %105 = fcmp ogt float %104, 1.000000e+00
  %106 = getelementptr inbounds i8, ptr %0, i64 4782
  br i1 %105, label %107, label %108

107:                                              ; preds = %98
  store i8 0, ptr %106, align 2, !tbaa !39
  br label %109

108:                                              ; preds = %98
  store i8 1, ptr %106, align 2, !tbaa !39
  br label %109

109:                                              ; preds = %._crit_edge67._crit_edge, %107, %108
  %110 = phi i64 [ %97, %._crit_edge67._crit_edge ], [ 0, %107 ], [ 1, %108 ]
  %111 = ashr i8 %95, 1
  %112 = sext i8 %111 to i64
  %113 = getelementptr inbounds [2 x [2 x i16]], ptr @silk_Quantization_Offsets_Q10, i64 0, i64 %112, i64 %110
  %114 = load i16, ptr %113, align 2, !tbaa !41
  %115 = sitofp i16 %114 to float
  %116 = fmul float %115, 0x3F50000000000000
  %117 = getelementptr inbounds i8, ptr %0, i64 4628
  %118 = load i32, ptr %117, align 4, !tbaa !42
  %119 = sitofp i32 %118 to float
  %120 = call float @llvm.fmuladd.f32(float %119, float 0xBFA99999A0000000, float 0x3FF3333340000000)
  %121 = getelementptr inbounds i8, ptr %0, i64 4532
  %122 = load i32, ptr %121, align 4, !tbaa !43
  %123 = sitofp i32 %122 to float
  %124 = fmul float %123, 0xBFC99999A0000000
  %125 = call float @llvm.fmuladd.f32(float %124, float 3.906250e-03, float %120)
  %126 = getelementptr inbounds i8, ptr %1, i64 696
  %127 = load float, ptr %126, align 4, !tbaa !44
  %128 = call float @llvm.fmuladd.f32(float %127, float 0xBFB99999A0000000, float %125)
  %129 = getelementptr inbounds i8, ptr %1, i64 700
  %130 = load float, ptr %129, align 4, !tbaa !45
  %131 = call float @llvm.fmuladd.f32(float %130, float 0xBFC99999A0000000, float %128)
  %132 = call float @llvm.fmuladd.f32(float %116, float 0x3FE99999A0000000, float %131)
  %133 = getelementptr inbounds i8, ptr %1, i64 692
  store float %132, ptr %133, align 4, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @silk_sigmoid(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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) #4

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

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

declare double @exp2(double) local_unnamed_addr

declare float @sqrtf(float) local_unnamed_addr

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 #6 = { nounwind }
attributes #7 = { mustprogress nofree nounwind willreturn memory(write) "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" }

!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, !8, i64 4781}
!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 = !{!21, !19, i64 708}
!21 = !{!"", !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}
!22 = !{!6, !10, i64 4580}
!23 = !{!19, !19, i64 0}
!24 = distinct !{!24, !25, !26, !27}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = distinct !{!28, !25, !27, !26}
!29 = !{!6, !10, i64 4732}
!30 = !{!6, !10, i64 4588}
!31 = !{!10, !10, i64 0}
!32 = distinct !{!32, !25, !26, !27}
!33 = distinct !{!33, !25}
!34 = distinct !{!34, !25, !27, !26}
!35 = !{!18, !8, i64 0}
!36 = !{!21, !8, i64 744}
!37 = distinct !{!37, !25, !26, !27}
!38 = distinct !{!38, !25, !27, !26}
!39 = !{!6, !8, i64 4782}
!40 = !{!6, !10, i64 4728}
!41 = !{!13, !13, i64 0}
!42 = !{!6, !10, i64 4628}
!43 = !{!6, !10, i64 4532}
!44 = !{!21, !19, i64 696}
!45 = !{!21, !19, i64 700}
!46 = !{!21, !19, i64 692}


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