; LLVM IR from Ryuk17/SpeechAlgorithms :: WebRTC_AGC/src (agc)

; 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.LegacyAgc = type { i32, i16, i16, i16, i8, %struct.WebRtcAgcConfig, %struct.WebRtcAgcConfig, i16, i16, i32, i32, i32, i32, i32, i32, i32, i16, i16, [8 x i32], i32, i32, i32, i32, i32, i32, [10 x i32], [2 x [5 x i32]], [2 x [10 x i32]], i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, %struct.AgcVad, %struct.DigitalAgc, i16 }
%struct.WebRtcAgcConfig = type { i16, i16, i8 }
%struct.AgcVad = type { [8 x i32], i16, i16, i16, i16, i32, i16, i16, i32, i16 }
%struct.DigitalAgc = type { i32, i32, i32, [32 x i32], i16, i16, %struct.AgcVad, %struct.AgcVad }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__.WebRtcAgc_AddMic = external hidden unnamed_addr constant [63 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@kGainTableAnalog = external hidden constant [32 x i16], align 16

; Function Attrs: nounwind uwtable
declare dso_local i32 @DotProductWithScale(ptr noundef, ptr noundef, i64 noundef, i32 noundef) #0

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @WebRtcAgc_ProcessVad(ptr noundef, ptr noundef, i64 noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @WebRtcAgc_AddMic(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i16, align 2
  %16 = alloca i16, align 2
  %17 = alloca i64, align 8
  %18 = alloca i16, align 2
  %19 = alloca i16, align 2
  %20 = alloca i16, align 2
  %21 = alloca [16 x i16], align 16
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store i64 %3, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %25, ptr %22, align 8, !tbaa !5
  %26 = load ptr, ptr %22, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.LegacyAgc, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 4, !tbaa !11
  %29 = icmp eq i32 %28, 8000
  br i1 %29, label %30, label %35

30:                                               ; preds = %4
  store i16 8, ptr %19, align 2, !tbaa !18
  %31 = load i64, ptr %9, align 8, !tbaa !9
  %32 = icmp ne i64 %31, 80
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %331

34:                                               ; preds = %30
  br label %40

35:                                               ; preds = %4
  store i16 16, ptr %19, align 2, !tbaa !18
  %36 = load i64, ptr %9, align 8, !tbaa !9
  %37 = icmp ne i64 %36, 160
  br i1 %37, label %38, label %39

38:                                               ; preds = %35
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %331

39:                                               ; preds = %35
  br label %40

40:                                               ; preds = %39, %34
  %41 = load ptr, ptr %22, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.LegacyAgc, ptr %41, i32 0, i32 45
  %43 = load i32, ptr %42, align 4, !tbaa !19
  %44 = load ptr, ptr %22, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.LegacyAgc, ptr %44, i32 0, i32 47
  %46 = load i32, ptr %45, align 4, !tbaa !20
  %47 = icmp sgt i32 %43, %46
  br i1 %47, label %48, label %182

48:                                               ; preds = %40
  %49 = load ptr, ptr %22, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.LegacyAgc, ptr %49, i32 0, i32 46
  %51 = load i32, ptr %50, align 4, !tbaa !21
  %52 = load ptr, ptr %22, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.LegacyAgc, ptr %52, i32 0, i32 47
  %54 = load i32, ptr %53, align 4, !tbaa !20
  %55 = icmp sgt i32 %51, %54
  br i1 %55, label %56, label %57

56:                                               ; preds = %48
  br label %58

57:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 1046, ptr noundef @__PRETTY_FUNCTION__.WebRtcAgc_AddMic) #6
  unreachable

58:                                               ; preds = %56
  %59 = load ptr, ptr %22, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.LegacyAgc, ptr %59, i32 0, i32 45
  %61 = load i32, ptr %60, align 4, !tbaa !19
  %62 = load ptr, ptr %22, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.LegacyAgc, ptr %62, i32 0, i32 47
  %64 = load i32, ptr %63, align 4, !tbaa !20
  %65 = sub nsw i32 %61, %64
  %66 = trunc i32 %65 to i16
  store i16 %66, ptr %20, align 2, !tbaa !18
  %67 = load i16, ptr %20, align 2, !tbaa !18
  %68 = sext i16 %67 to i32
  %69 = mul nsw i32 31, %68
  store i32 %69, ptr %13, align 4, !tbaa !22
  %70 = load ptr, ptr %22, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.LegacyAgc, ptr %70, i32 0, i32 46
  %72 = load i32, ptr %71, align 4, !tbaa !21
  %73 = load ptr, ptr %22, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.LegacyAgc, ptr %73, i32 0, i32 47
  %75 = load i32, ptr %74, align 4, !tbaa !20
  %76 = sub nsw i32 %72, %75
  %77 = trunc i32 %76 to i16
  store i16 %77, ptr %20, align 2, !tbaa !18
  %78 = load i32, ptr %13, align 4, !tbaa !22
  %79 = load i16, ptr %20, align 2, !tbaa !18
  %80 = sext i16 %79 to i32
  %81 = sdiv i32 %78, %80
  %82 = trunc i32 %81 to i16
  store i16 %82, ptr %15, align 2, !tbaa !18
  %83 = load i16, ptr %15, align 2, !tbaa !18
  %84 = zext i16 %83 to i32
  %85 = icmp slt i32 %84, 32
  br i1 %85, label %86, label %87

86:                                               ; preds = %58
  br label %88

87:                                               ; preds = %58
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1053, ptr noundef @__PRETTY_FUNCTION__.WebRtcAgc_AddMic) #6
  unreachable

88:                                               ; preds = %86
  %89 = load ptr, ptr %22, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.LegacyAgc, ptr %89, i32 0, i32 43
  %91 = load i16, ptr %90, align 4, !tbaa !23
  %92 = zext i16 %91 to i32
  %93 = load i16, ptr %15, align 2, !tbaa !18
  %94 = zext i16 %93 to i32
  %95 = icmp slt i32 %92, %94
  br i1 %95, label %96, label %101

96:                                               ; preds = %88
  %97 = load ptr, ptr %22, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.LegacyAgc, ptr %97, i32 0, i32 43
  %99 = load i16, ptr %98, align 4, !tbaa !23
  %100 = add i16 %99, 1
  store i16 %100, ptr %98, align 4, !tbaa !23
  br label %115

101:                                              ; preds = %88
  %102 = load ptr, ptr %22, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.LegacyAgc, ptr %102, i32 0, i32 43
  %104 = load i16, ptr %103, align 4, !tbaa !23
  %105 = zext i16 %104 to i32
  %106 = load i16, ptr %15, align 2, !tbaa !18
  %107 = zext i16 %106 to i32
  %108 = icmp sgt i32 %105, %107
  br i1 %108, label %109, label %114

109:                                              ; preds = %101
  %110 = load ptr, ptr %22, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.LegacyAgc, ptr %110, i32 0, i32 43
  %112 = load i16, ptr %111, align 4, !tbaa !23
  %113 = add i16 %112, -1
  store i16 %113, ptr %111, align 4, !tbaa !23
  br label %114

114:                                              ; preds = %109, %101
  br label %115

115:                                              ; preds = %114, %96
  %116 = load ptr, ptr %22, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.LegacyAgc, ptr %116, i32 0, i32 43
  %118 = load i16, ptr %117, align 4, !tbaa !23
  %119 = zext i16 %118 to i64
  %120 = getelementptr inbounds [32 x i16], ptr @kGainTableAnalog, i64 0, i64 %119
  %121 = load i16, ptr %120, align 2, !tbaa !18
  store i16 %121, ptr %16, align 2, !tbaa !18
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %178, %115
  %123 = load i64, ptr %17, align 8, !tbaa !9
  %124 = load i64, ptr %9, align 8, !tbaa !9
  %125 = icmp ult i64 %123, %124
  br i1 %125, label %126, label %181

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %127

127:                                              ; preds = %174, %126
  %128 = load i64, ptr %24, align 8, !tbaa !9
  %129 = load i64, ptr %8, align 8, !tbaa !9
  %130 = icmp ult i64 %128, %129
  br i1 %130, label %131, label %177

131:                                              ; preds = %127
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = load i64, ptr %24, align 8, !tbaa !9
  %134 = getelementptr inbounds ptr, ptr %132, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = load i64, ptr %17, align 8, !tbaa !9
  %137 = getelementptr inbounds i16, ptr %135, i64 %136
  %138 = load i16, ptr %137, align 2, !tbaa !18
  %139 = sext i16 %138 to i32
  %140 = load i16, ptr %16, align 2, !tbaa !18
  %141 = zext i16 %140 to i32
  %142 = mul nsw i32 %139, %141
  %143 = ashr i32 %142, 12
  store i32 %143, ptr %12, align 4, !tbaa !22
  %144 = load i32, ptr %12, align 4, !tbaa !22
  %145 = icmp sgt i32 %144, 32767
  br i1 %145, label %146, label %153

146:                                              ; preds = %131
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = load i64, ptr %24, align 8, !tbaa !9
  %149 = getelementptr inbounds ptr, ptr %147, i64 %148
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = load i64, ptr %17, align 8, !tbaa !9
  %152 = getelementptr inbounds i16, ptr %150, i64 %151
  store i16 32767, ptr %152, align 2, !tbaa !18
  br label %173

153:                                              ; preds = %131
  %154 = load i32, ptr %12, align 4, !tbaa !22
  %155 = icmp slt i32 %154, -32768
  br i1 %155, label %156, label %163

156:                                              ; preds = %153
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = load i64, ptr %24, align 8, !tbaa !9
  %159 = getelementptr inbounds ptr, ptr %157, i64 %158
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  %161 = load i64, ptr %17, align 8, !tbaa !9
  %162 = getelementptr inbounds i16, ptr %160, i64 %161
  store i16 -32768, ptr %162, align 2, !tbaa !18
  br label %172

163:                                              ; preds = %153
  %164 = load i32, ptr %12, align 4, !tbaa !22
  %165 = trunc i32 %164 to i16
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load i64, ptr %24, align 8, !tbaa !9
  %168 = getelementptr inbounds ptr, ptr %166, i64 %167
  %169 = load ptr, ptr %168, align 8, !tbaa !5
  %170 = load i64, ptr %17, align 8, !tbaa !9
  %171 = getelementptr inbounds i16, ptr %169, i64 %170
  store i16 %165, ptr %171, align 2, !tbaa !18
  br label %172

172:                                              ; preds = %163, %156
  br label %173

173:                                              ; preds = %172, %146
  br label %174

174:                                              ; preds = %173
  %175 = load i64, ptr %24, align 8, !tbaa !9
  %176 = add i64 %175, 1
  store i64 %176, ptr %24, align 8, !tbaa !9
  br label %127, !llvm.loop !24

177:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %178

178:                                              ; preds = %177
  %179 = load i64, ptr %17, align 8, !tbaa !9
  %180 = add i64 %179, 1
  store i64 %180, ptr %17, align 8, !tbaa !9
  br label %122, !llvm.loop !26

181:                                              ; preds = %122
  br label %185

182:                                              ; preds = %40
  %183 = load ptr, ptr %22, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.LegacyAgc, ptr %183, i32 0, i32 43
  store i16 0, ptr %184, align 4, !tbaa !23
  br label %185

185:                                              ; preds = %182, %181
  %186 = load ptr, ptr %22, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.LegacyAgc, ptr %186, i32 0, i32 41
  %188 = load i16, ptr %187, align 2, !tbaa !27
  %189 = sext i16 %188 to i32
  %190 = icmp sgt i32 %189, 0
  br i1 %190, label %191, label %196

191:                                              ; preds = %185
  %192 = load ptr, ptr %22, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.LegacyAgc, ptr %192, i32 0, i32 27
  %194 = getelementptr inbounds [2 x [10 x i32]], ptr %193, i64 0, i64 1
  %195 = getelementptr inbounds [10 x i32], ptr %194, i64 0, i64 0
  store ptr %195, ptr %14, align 8, !tbaa !5
  br label %201

196:                                              ; preds = %185
  %197 = load ptr, ptr %22, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.LegacyAgc, ptr %197, i32 0, i32 27
  %199 = getelementptr inbounds [2 x [10 x i32]], ptr %198, i64 0, i64 0
  %200 = getelementptr inbounds [10 x i32], ptr %199, i64 0, i64 0
  store ptr %200, ptr %14, align 8, !tbaa !5
  br label %201

201:                                              ; preds = %196, %191
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %202

202:                                              ; preds = %254, %201
  %203 = load i64, ptr %17, align 8, !tbaa !9
  %204 = icmp ult i64 %203, 10
  br i1 %204, label %205, label %257

205:                                              ; preds = %202
  store i32 0, ptr %11, align 4, !tbaa !22
  store i16 0, ptr %18, align 2, !tbaa !18
  br label %206

206:                                              ; preds = %246, %205
  %207 = load i16, ptr %18, align 2, !tbaa !18
  %208 = sext i16 %207 to i32
  %209 = load i16, ptr %19, align 2, !tbaa !18
  %210 = sext i16 %209 to i32
  %211 = icmp slt i32 %208, %210
  br i1 %211, label %212, label %249

212:                                              ; preds = %206
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = getelementptr inbounds ptr, ptr %213, i64 0
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = load i64, ptr %17, align 8, !tbaa !9
  %217 = load i16, ptr %19, align 2, !tbaa !18
  %218 = sext i16 %217 to i64
  %219 = mul i64 %216, %218
  %220 = load i16, ptr %18, align 2, !tbaa !18
  %221 = sext i16 %220 to i64
  %222 = add i64 %219, %221
  %223 = getelementptr inbounds i16, ptr %215, i64 %222
  %224 = load i16, ptr %223, align 2, !tbaa !18
  %225 = sext i16 %224 to i32
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  %227 = getelementptr inbounds ptr, ptr %226, i64 0
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = load i64, ptr %17, align 8, !tbaa !9
  %230 = load i16, ptr %19, align 2, !tbaa !18
  %231 = sext i16 %230 to i64
  %232 = mul i64 %229, %231
  %233 = load i16, ptr %18, align 2, !tbaa !18
  %234 = sext i16 %233 to i64
  %235 = add i64 %232, %234
  %236 = getelementptr inbounds i16, ptr %228, i64 %235
  %237 = load i16, ptr %236, align 2, !tbaa !18
  %238 = sext i16 %237 to i32
  %239 = mul nsw i32 %225, %238
  store i32 %239, ptr %10, align 4, !tbaa !22
  %240 = load i32, ptr %10, align 4, !tbaa !22
  %241 = load i32, ptr %11, align 4, !tbaa !22
  %242 = icmp sgt i32 %240, %241
  br i1 %242, label %243, label %245

243:                                              ; preds = %212
  %244 = load i32, ptr %10, align 4, !tbaa !22
  store i32 %244, ptr %11, align 4, !tbaa !22
  br label %245

245:                                              ; preds = %243, %212
  br label %246

246:                                              ; preds = %245
  %247 = load i16, ptr %18, align 2, !tbaa !18
  %248 = add i16 %247, 1
  store i16 %248, ptr %18, align 2, !tbaa !18
  br label %206, !llvm.loop !28

249:                                              ; preds = %206
  %250 = load i32, ptr %11, align 4, !tbaa !22
  %251 = load ptr, ptr %14, align 8, !tbaa !5
  %252 = load i64, ptr %17, align 8, !tbaa !9
  %253 = getelementptr inbounds i32, ptr %251, i64 %252
  store i32 %250, ptr %253, align 4, !tbaa !22
  br label %254

254:                                              ; preds = %249
  %255 = load i64, ptr %17, align 8, !tbaa !9
  %256 = add i64 %255, 1
  store i64 %256, ptr %17, align 8, !tbaa !9
  br label %202, !llvm.loop !29

257:                                              ; preds = %202
  %258 = load ptr, ptr %22, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.LegacyAgc, ptr %258, i32 0, i32 41
  %260 = load i16, ptr %259, align 2, !tbaa !27
  %261 = sext i16 %260 to i32
  %262 = icmp sgt i32 %261, 0
  br i1 %262, label %263, label %268

263:                                              ; preds = %257
  %264 = load ptr, ptr %22, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.LegacyAgc, ptr %264, i32 0, i32 26
  %266 = getelementptr inbounds [2 x [5 x i32]], ptr %265, i64 0, i64 1
  %267 = getelementptr inbounds [5 x i32], ptr %266, i64 0, i64 0
  store ptr %267, ptr %14, align 8, !tbaa !5
  br label %273

268:                                              ; preds = %257
  %269 = load ptr, ptr %22, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.LegacyAgc, ptr %269, i32 0, i32 26
  %271 = getelementptr inbounds [2 x [5 x i32]], ptr %270, i64 0, i64 0
  %272 = getelementptr inbounds [5 x i32], ptr %271, i64 0, i64 0
  store ptr %272, ptr %14, align 8, !tbaa !5
  br label %273

273:                                              ; preds = %268, %263
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %274

274:                                              ; preds = %308, %273
  %275 = load i64, ptr %17, align 8, !tbaa !9
  %276 = icmp ult i64 %275, 5
  br i1 %276, label %277, label %311

277:                                              ; preds = %274
  %278 = load ptr, ptr %22, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.LegacyAgc, ptr %278, i32 0, i32 0
  %280 = load i32, ptr %279, align 4, !tbaa !11
  %281 = icmp eq i32 %280, 16000
  br i1 %281, label %282, label %293

282:                                              ; preds = %277
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = getelementptr inbounds ptr, ptr %283, i64 0
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  %286 = load i64, ptr %17, align 8, !tbaa !9
  %287 = mul i64 %286, 32
  %288 = getelementptr inbounds i16, ptr %285, i64 %287
  %289 = getelementptr inbounds [16 x i16], ptr %21, i64 0, i64 0
  %290 = load ptr, ptr %22, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.LegacyAgc, ptr %290, i32 0, i32 18
  %292 = getelementptr inbounds [8 x i32], ptr %291, i64 0, i64 0
  call void @downsampleBy2(ptr noundef %288, i64 noundef 32, ptr noundef %289, ptr noundef %292)
  br label %301

293:                                              ; preds = %277
  %294 = getelementptr inbounds [16 x i16], ptr %21, i64 0, i64 0
  %295 = load ptr, ptr %7, align 8, !tbaa !5
  %296 = getelementptr inbounds ptr, ptr %295, i64 0
  %297 = load ptr, ptr %296, align 8, !tbaa !5
  %298 = load i64, ptr %17, align 8, !tbaa !9
  %299 = mul i64 %298, 16
  %300 = getelementptr inbounds i16, ptr %297, i64 %299
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %294, ptr align 2 %300, i64 32, i1 false)
  br label %301

301:                                              ; preds = %293, %282
  %302 = getelementptr inbounds [16 x i16], ptr %21, i64 0, i64 0
  %303 = getelementptr inbounds [16 x i16], ptr %21, i64 0, i64 0
  %304 = call i32 @DotProductWithScale(ptr noundef %302, ptr noundef %303, i64 noundef 16, i32 noundef 4)
  %305 = load ptr, ptr %14, align 8, !tbaa !5
  %306 = load i64, ptr %17, align 8, !tbaa !9
  %307 = getelementptr inbounds i32, ptr %305, i64 %306
  store i32 %304, ptr %307, align 4, !tbaa !22
  br label %308

308:                                              ; preds = %301
  %309 = load i64, ptr %17, align 8, !tbaa !9
  %310 = add i64 %309, 1
  store i64 %310, ptr %17, align 8, !tbaa !9
  br label %274, !llvm.loop !30

311:                                              ; preds = %274
  %312 = load ptr, ptr %22, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.LegacyAgc, ptr %312, i32 0, i32 41
  %314 = load i16, ptr %313, align 2, !tbaa !27
  %315 = sext i16 %314 to i32
  %316 = icmp eq i32 %315, 0
  br i1 %316, label %317, label %320

317:                                              ; preds = %311
  %318 = load ptr, ptr %22, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.LegacyAgc, ptr %318, i32 0, i32 41
  store i16 1, ptr %319, align 2, !tbaa !27
  br label %323

320:                                              ; preds = %311
  %321 = load ptr, ptr %22, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.LegacyAgc, ptr %321, i32 0, i32 41
  store i16 2, ptr %322, align 2, !tbaa !27
  br label %323

323:                                              ; preds = %320, %317
  %324 = load ptr, ptr %22, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.LegacyAgc, ptr %324, i32 0, i32 54
  %326 = load ptr, ptr %7, align 8, !tbaa !5
  %327 = getelementptr inbounds ptr, ptr %326, i64 0
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  %329 = load i64, ptr %9, align 8, !tbaa !9
  %330 = call signext i16 @WebRtcAgc_ProcessVad(ptr noundef %325, ptr noundef %328, i64 noundef %329)
  store i32 0, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %331

331:                                              ; preds = %323, %38, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %332 = load i32, ptr %5, align 4
  ret i32 %332
}

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 = { noreturn 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #6 = { noreturn 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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !14, i64 4, !14, i64 6, !14, i64 8, !7, i64 10, !15, i64 12, !15, i64 18, !14, i64 24, !14, i64 26, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !14, i64 56, !14, i64 58, !7, i64 60, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !7, i64 116, !7, i64 156, !7, i64 196, !14, i64 276, !14, i64 278, !14, i64 280, !14, i64 282, !14, i64 284, !14, i64 286, !14, i64 288, !14, i64 290, !14, i64 292, !14, i64 294, !14, i64 296, !14, i64 298, !14, i64 300, !14, i64 302, !13, i64 304, !14, i64 308, !13, i64 312, !13, i64 316, !13, i64 320, !13, i64 324, !13, i64 328, !13, i64 332, !13, i64 336, !13, i64 340, !13, i64 344, !14, i64 348, !16, i64 352, !17, i64 408, !14, i64 664}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"", !14, i64 0, !14, i64 2, !7, i64 4}
!16 = !{!"", !7, i64 0, !14, i64 32, !14, i64 34, !14, i64 36, !14, i64 38, !13, i64 40, !14, i64 44, !14, i64 46, !13, i64 48, !14, i64 52}
!17 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !7, i64 12, !14, i64 140, !14, i64 142, !16, i64 144, !16, i64 200}
!18 = !{!14, !14, i64 0}
!19 = !{!12, !13, i64 316}
!20 = !{!12, !13, i64 324}
!21 = !{!12, !13, i64 320}
!22 = !{!13, !13, i64 0}
!23 = !{!12, !14, i64 308}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!12, !14, i64 302}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}


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

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__.WebRtcAgc_AddMic = external hidden unnamed_addr constant [63 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@kGainTableAnalog = external hidden local_unnamed_addr constant [32 x i16], align 16

; Function Attrs: nounwind uwtable
declare dso_local i32 @DotProductWithScale(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @WebRtcAgc_ProcessVad(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @WebRtcAgc_AddMic(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #0 {
  %5 = alloca [16 x i16], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %6 = load i32, ptr %0, align 4, !tbaa !5
  %7 = icmp eq i32 %6, 8000
  br i1 %7, label %8, label %9

8:                                                ; preds = %4
  %.not102 = icmp eq i64 %3, 80
  br i1 %.not102, label %10, label %286

9:                                                ; preds = %4
  %.not = icmp eq i64 %3, 160
  br i1 %.not, label %10, label %286

10:                                               ; preds = %9, %8
  %.089 = phi i64 [ 8, %8 ], [ 16, %9 ]
  %11 = getelementptr inbounds i8, ptr %0, i64 316
  %12 = load i32, ptr %11, align 4, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %0, i64 324
  %14 = load i32, ptr %13, align 4, !tbaa !15
  %15 = icmp sgt i32 %12, %14
  br i1 %15, label %16, label %69

16:                                               ; preds = %10
  %17 = getelementptr inbounds i8, ptr %0, i64 320
  %18 = load i32, ptr %17, align 4, !tbaa !16
  %19 = icmp sgt i32 %18, %14
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 1046, ptr noundef nonnull @__PRETTY_FUNCTION__.WebRtcAgc_AddMic) #7
  unreachable

21:                                               ; preds = %16
  %22 = sub nsw i32 %12, %14
  %sext = shl i32 %22, 16
  %23 = ashr exact i32 %sext, 16
  %24 = mul nsw i32 %23, 31
  %25 = sub nsw i32 %18, %14
  %sext103 = shl i32 %25, 16
  %26 = ashr exact i32 %sext103, 16
  %27 = sdiv i32 %24, %26
  %28 = and i32 %27, 65535
  %29 = icmp ult i32 %28, 32
  br i1 %29, label %31, label %30

30:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1053, ptr noundef nonnull @__PRETTY_FUNCTION__.WebRtcAgc_AddMic) #7
  unreachable

31:                                               ; preds = %21
  %32 = getelementptr inbounds i8, ptr %0, i64 308
  %33 = load i16, ptr %32, align 4, !tbaa !17
  %34 = zext i16 %33 to i32
  %35 = icmp ugt i32 %28, %34
  br i1 %35, label %.preheader107.lr.ph.sink.split, label %36

36:                                               ; preds = %31
  %37 = icmp ult i32 %28, %34
  br i1 %37, label %.preheader107.lr.ph.sink.split, label %.preheader107.lr.ph

.preheader107.lr.ph.sink.split:                   ; preds = %36, %31
  %.sink129 = phi i16 [ 1, %31 ], [ -1, %36 ]
  %38 = add i16 %33, %.sink129
  store i16 %38, ptr %32, align 4, !tbaa !17
  br label %.preheader107.lr.ph

.preheader107.lr.ph:                              ; preds = %.preheader107.lr.ph.sink.split, %36
  %39 = phi i16 [ %33, %36 ], [ %38, %.preheader107.lr.ph.sink.split ]
  %40 = zext i16 %39 to i64
  %41 = getelementptr inbounds [32 x i16], ptr @kGainTableAnalog, i64 0, i64 %40
  %42 = load i16, ptr %41, align 2, !tbaa !18
  %.not115 = icmp eq i64 %2, 0
  %43 = zext i16 %42 to i32
  br i1 %.not115, label %.loopexit, label %.preheader107.us.preheader

.preheader107.us.preheader:                       ; preds = %.preheader107.lr.ph
  %xtraiter = and i64 %2, 1
  %44 = icmp eq i64 %2, 1
  %unroll_iter = and i64 %2, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader107.us

.preheader107.us:                                 ; preds = %.preheader107.us.preheader, %._crit_edge.us
  %.091109.us = phi i64 [ %68, %._crit_edge.us ], [ 0, %.preheader107.us.preheader ]
  br i1 %44, label %._crit_edge.us.unr-lcssa, label %.preheader107.us.new

.preheader107.us.new:                             ; preds = %.preheader107.us, %.preheader107.us.new
  %.0108.us = phi i64 [ %60, %.preheader107.us.new ], [ 0, %.preheader107.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader107.us.new ], [ 0, %.preheader107.us ]
  %45 = getelementptr inbounds ptr, ptr %1, i64 %.0108.us
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = getelementptr inbounds i16, ptr %46, i64 %.091109.us
  %48 = load i16, ptr %47, align 2, !tbaa !18
  %49 = sext i16 %48 to i32
  %50 = mul nsw i32 %49, %43
  %51 = ashr i32 %50, 12
  %spec.select130131 = tail call i32 @llvm.smax.i32(i32 %51, i32 -32768)
  %.sink132 = tail call i32 @llvm.smin.i32(i32 %spec.select130131, i32 32767)
  %.sink = trunc nsw i32 %.sink132 to i16
  store i16 %.sink, ptr %47, align 2, !tbaa !18
  %52 = or disjoint i64 %.0108.us, 1
  %53 = getelementptr inbounds ptr, ptr %1, i64 %52
  %54 = load ptr, ptr %53, align 8, !tbaa !19
  %55 = getelementptr inbounds i16, ptr %54, i64 %.091109.us
  %56 = load i16, ptr %55, align 2, !tbaa !18
  %57 = sext i16 %56 to i32
  %58 = mul nsw i32 %57, %43
  %59 = ashr i32 %58, 12
  %spec.select130131.1 = tail call i32 @llvm.smax.i32(i32 %59, i32 -32768)
  %.sink132.1 = tail call i32 @llvm.smin.i32(i32 %spec.select130131.1, i32 32767)
  %.sink.1 = trunc nsw i32 %.sink132.1 to i16
  store i16 %.sink.1, ptr %55, align 2, !tbaa !18
  %60 = add nuw i64 %.0108.us, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader107.us.new, !llvm.loop !21

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader107.us.new, %.preheader107.us
  %.0108.us.unr = phi i64 [ 0, %.preheader107.us ], [ %60, %.preheader107.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %61 = getelementptr inbounds ptr, ptr %1, i64 %.0108.us.unr
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  %63 = getelementptr inbounds i16, ptr %62, i64 %.091109.us
  %64 = load i16, ptr %63, align 2, !tbaa !18
  %65 = sext i16 %64 to i32
  %66 = mul nsw i32 %65, %43
  %67 = ashr i32 %66, 12
  %spec.select130131.epil = tail call i32 @llvm.smax.i32(i32 %67, i32 -32768)
  %.sink132.epil = tail call i32 @llvm.smin.i32(i32 %spec.select130131.epil, i32 32767)
  %.sink.epil = trunc nsw i32 %.sink132.epil to i16
  store i16 %.sink.epil, ptr %63, align 2, !tbaa !18
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %68 = add nuw i64 %.091109.us, 1
  %exitcond117.not = icmp eq i64 %68, %3
  br i1 %exitcond117.not, label %.loopexit, label %.preheader107.us, !llvm.loop !23

69:                                               ; preds = %10
  %70 = getelementptr inbounds i8, ptr %0, i64 308
  store i16 0, ptr %70, align 4, !tbaa !17
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge.us, %.preheader107.lr.ph, %69
  %71 = getelementptr inbounds i8, ptr %0, i64 302
  %72 = load i16, ptr %71, align 2, !tbaa !24
  %73 = icmp sgt i16 %72, 0
  %. = select i1 %73, i64 236, i64 196
  %74 = load ptr, ptr %1, align 8, !tbaa !19
  %75 = getelementptr inbounds i8, ptr %0, i64 %.
  %76 = getelementptr i8, ptr %74, i64 8
  %wide.load = load <4 x i16>, ptr %74, align 2, !tbaa !18
  %wide.load134 = load <4 x i16>, ptr %76, align 2, !tbaa !18
  %77 = sext <4 x i16> %wide.load to <4 x i32>
  %78 = sext <4 x i16> %wide.load134 to <4 x i32>
  %79 = mul nsw <4 x i32> %77, %77
  %80 = mul nsw <4 x i32> %78, %78
  br i1 %7, label %middle.block, label %vector.body.1, !llvm.loop !25

vector.body.1:                                    ; preds = %.loopexit
  %81 = getelementptr i8, ptr %74, i64 16
  %82 = getelementptr i8, ptr %74, i64 24
  %wide.load.1 = load <4 x i16>, ptr %81, align 2, !tbaa !18
  %wide.load134.1 = load <4 x i16>, ptr %82, align 2, !tbaa !18
  %83 = sext <4 x i16> %wide.load.1 to <4 x i32>
  %84 = sext <4 x i16> %wide.load134.1 to <4 x i32>
  %85 = mul nsw <4 x i32> %83, %83
  %86 = mul nsw <4 x i32> %84, %84
  %87 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %85, <4 x i32> %79)
  %88 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %86, <4 x i32> %80)
  br label %middle.block

middle.block:                                     ; preds = %vector.body.1, %.loopexit
  %.lcssa307 = phi <4 x i32> [ %79, %.loopexit ], [ %87, %vector.body.1 ]
  %.lcssa306 = phi <4 x i32> [ %80, %.loopexit ], [ %88, %vector.body.1 ]
  %rdx.minmax = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %.lcssa307, <4 x i32> %.lcssa306)
  %89 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax)
  store i32 %89, ptr %75, align 4, !tbaa !28
  %90 = getelementptr i16, ptr %74, i64 %.089
  %91 = getelementptr i8, ptr %90, i64 8
  %wide.load146 = load <4 x i16>, ptr %90, align 2, !tbaa !18
  %wide.load147 = load <4 x i16>, ptr %91, align 2, !tbaa !18
  %92 = sext <4 x i16> %wide.load146 to <4 x i32>
  %93 = sext <4 x i16> %wide.load147 to <4 x i32>
  %94 = mul nsw <4 x i32> %92, %92
  %95 = mul nsw <4 x i32> %93, %93
  br i1 %7, label %middle.block135, label %vector.body142.1, !llvm.loop !29

vector.body142.1:                                 ; preds = %middle.block
  %96 = getelementptr i8, ptr %90, i64 16
  %97 = getelementptr i8, ptr %90, i64 24
  %wide.load146.1 = load <4 x i16>, ptr %96, align 2, !tbaa !18
  %wide.load147.1 = load <4 x i16>, ptr %97, align 2, !tbaa !18
  %98 = sext <4 x i16> %wide.load146.1 to <4 x i32>
  %99 = sext <4 x i16> %wide.load147.1 to <4 x i32>
  %100 = mul nsw <4 x i32> %98, %98
  %101 = mul nsw <4 x i32> %99, %99
  %102 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %100, <4 x i32> %94)
  %103 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %101, <4 x i32> %95)
  br label %middle.block135

middle.block135:                                  ; preds = %vector.body142.1, %middle.block
  %.lcssa305 = phi <4 x i32> [ %94, %middle.block ], [ %102, %vector.body142.1 ]
  %.lcssa304 = phi <4 x i32> [ %95, %middle.block ], [ %103, %vector.body142.1 ]
  %rdx.minmax149 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %.lcssa305, <4 x i32> %.lcssa304)
  %104 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax149)
  %105 = getelementptr inbounds i8, ptr %75, i64 4
  store i32 %104, ptr %105, align 4, !tbaa !28
  %.idx = shl nuw nsw i64 %.089, 2
  %106 = getelementptr i8, ptr %74, i64 %.idx
  %107 = getelementptr i8, ptr %106, i64 8
  %wide.load163 = load <4 x i16>, ptr %106, align 2, !tbaa !18
  %wide.load164 = load <4 x i16>, ptr %107, align 2, !tbaa !18
  %108 = sext <4 x i16> %wide.load163 to <4 x i32>
  %109 = sext <4 x i16> %wide.load164 to <4 x i32>
  %110 = mul nsw <4 x i32> %108, %108
  %111 = mul nsw <4 x i32> %109, %109
  br i1 %7, label %middle.block152, label %vector.body159.1, !llvm.loop !30

vector.body159.1:                                 ; preds = %middle.block135
  %112 = getelementptr i8, ptr %106, i64 16
  %113 = getelementptr i8, ptr %106, i64 24
  %wide.load163.1 = load <4 x i16>, ptr %112, align 2, !tbaa !18
  %wide.load164.1 = load <4 x i16>, ptr %113, align 2, !tbaa !18
  %114 = sext <4 x i16> %wide.load163.1 to <4 x i32>
  %115 = sext <4 x i16> %wide.load164.1 to <4 x i32>
  %116 = mul nsw <4 x i32> %114, %114
  %117 = mul nsw <4 x i32> %115, %115
  %118 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %116, <4 x i32> %110)
  %119 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %117, <4 x i32> %111)
  br label %middle.block152

middle.block152:                                  ; preds = %vector.body159.1, %middle.block135
  %.lcssa303 = phi <4 x i32> [ %110, %middle.block135 ], [ %118, %vector.body159.1 ]
  %.lcssa302 = phi <4 x i32> [ %111, %middle.block135 ], [ %119, %vector.body159.1 ]
  %rdx.minmax166 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %.lcssa303, <4 x i32> %.lcssa302)
  %120 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax166)
  %121 = getelementptr inbounds i8, ptr %75, i64 8
  store i32 %120, ptr %121, align 4, !tbaa !28
  %.idx122 = mul nuw nsw i64 %.089, 6
  %122 = getelementptr i8, ptr %74, i64 %.idx122
  %123 = getelementptr i8, ptr %122, i64 8
  %wide.load180 = load <4 x i16>, ptr %122, align 2, !tbaa !18
  %wide.load181 = load <4 x i16>, ptr %123, align 2, !tbaa !18
  %124 = sext <4 x i16> %wide.load180 to <4 x i32>
  %125 = sext <4 x i16> %wide.load181 to <4 x i32>
  %126 = mul nsw <4 x i32> %124, %124
  %127 = mul nsw <4 x i32> %125, %125
  br i1 %7, label %middle.block169, label %vector.body176.1, !llvm.loop !31

vector.body176.1:                                 ; preds = %middle.block152
  %128 = getelementptr i8, ptr %122, i64 16
  %129 = getelementptr i8, ptr %122, i64 24
  %wide.load180.1 = load <4 x i16>, ptr %128, align 2, !tbaa !18
  %wide.load181.1 = load <4 x i16>, ptr %129, align 2, !tbaa !18
  %130 = sext <4 x i16> %wide.load180.1 to <4 x i32>
  %131 = sext <4 x i16> %wide.load181.1 to <4 x i32>
  %132 = mul nsw <4 x i32> %130, %130
  %133 = mul nsw <4 x i32> %131, %131
  %134 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %132, <4 x i32> %126)
  %135 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %133, <4 x i32> %127)
  br label %middle.block169

middle.block169:                                  ; preds = %vector.body176.1, %middle.block152
  %.lcssa301 = phi <4 x i32> [ %126, %middle.block152 ], [ %134, %vector.body176.1 ]
  %.lcssa300 = phi <4 x i32> [ %127, %middle.block152 ], [ %135, %vector.body176.1 ]
  %rdx.minmax183 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %.lcssa301, <4 x i32> %.lcssa300)
  %136 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax183)
  %137 = getelementptr inbounds i8, ptr %75, i64 12
  store i32 %136, ptr %137, align 4, !tbaa !28
  %.idx123 = shl nuw nsw i64 %.089, 3
  %138 = getelementptr i8, ptr %74, i64 %.idx123
  %139 = getelementptr i8, ptr %138, i64 8
  %wide.load197 = load <4 x i16>, ptr %138, align 2, !tbaa !18
  %wide.load198 = load <4 x i16>, ptr %139, align 2, !tbaa !18
  %140 = sext <4 x i16> %wide.load197 to <4 x i32>
  %141 = sext <4 x i16> %wide.load198 to <4 x i32>
  %142 = mul nsw <4 x i32> %140, %140
  %143 = mul nsw <4 x i32> %141, %141
  br i1 %7, label %middle.block186, label %vector.body193.1, !llvm.loop !32

vector.body193.1:                                 ; preds = %middle.block169
  %144 = getelementptr i8, ptr %138, i64 16
  %145 = getelementptr i8, ptr %138, i64 24
  %wide.load197.1 = load <4 x i16>, ptr %144, align 2, !tbaa !18
  %wide.load198.1 = load <4 x i16>, ptr %145, align 2, !tbaa !18
  %146 = sext <4 x i16> %wide.load197.1 to <4 x i32>
  %147 = sext <4 x i16> %wide.load198.1 to <4 x i32>
  %148 = mul nsw <4 x i32> %146, %146
  %149 = mul nsw <4 x i32> %147, %147
  %150 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %148, <4 x i32> %142)
  %151 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %149, <4 x i32> %143)
  br label %middle.block186

middle.block186:                                  ; preds = %vector.body193.1, %middle.block169
  %.lcssa299 = phi <4 x i32> [ %142, %middle.block169 ], [ %150, %vector.body193.1 ]
  %.lcssa298 = phi <4 x i32> [ %143, %middle.block169 ], [ %151, %vector.body193.1 ]
  %rdx.minmax200 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %.lcssa299, <4 x i32> %.lcssa298)
  %152 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax200)
  %153 = getelementptr inbounds i8, ptr %75, i64 16
  store i32 %152, ptr %153, align 4, !tbaa !28
  %.idx124 = mul nuw nsw i64 %.089, 10
  %154 = getelementptr i8, ptr %74, i64 %.idx124
  %155 = getelementptr i8, ptr %154, i64 8
  %wide.load214 = load <4 x i16>, ptr %154, align 2, !tbaa !18
  %wide.load215 = load <4 x i16>, ptr %155, align 2, !tbaa !18
  %156 = sext <4 x i16> %wide.load214 to <4 x i32>
  %157 = sext <4 x i16> %wide.load215 to <4 x i32>
  %158 = mul nsw <4 x i32> %156, %156
  %159 = mul nsw <4 x i32> %157, %157
  br i1 %7, label %middle.block203, label %vector.body210.1, !llvm.loop !33

vector.body210.1:                                 ; preds = %middle.block186
  %160 = getelementptr i8, ptr %154, i64 16
  %161 = getelementptr i8, ptr %154, i64 24
  %wide.load214.1 = load <4 x i16>, ptr %160, align 2, !tbaa !18
  %wide.load215.1 = load <4 x i16>, ptr %161, align 2, !tbaa !18
  %162 = sext <4 x i16> %wide.load214.1 to <4 x i32>
  %163 = sext <4 x i16> %wide.load215.1 to <4 x i32>
  %164 = mul nsw <4 x i32> %162, %162
  %165 = mul nsw <4 x i32> %163, %163
  %166 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %164, <4 x i32> %158)
  %167 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %165, <4 x i32> %159)
  br label %middle.block203

middle.block203:                                  ; preds = %vector.body210.1, %middle.block186
  %.lcssa297 = phi <4 x i32> [ %158, %middle.block186 ], [ %166, %vector.body210.1 ]
  %.lcssa296 = phi <4 x i32> [ %159, %middle.block186 ], [ %167, %vector.body210.1 ]
  %rdx.minmax217 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %.lcssa297, <4 x i32> %.lcssa296)
  %168 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax217)
  %169 = getelementptr inbounds i8, ptr %75, i64 20
  store i32 %168, ptr %169, align 4, !tbaa !28
  %.idx125 = mul nuw nsw i64 %.089, 12
  %170 = getelementptr i8, ptr %74, i64 %.idx125
  %171 = getelementptr i8, ptr %170, i64 8
  %wide.load231 = load <4 x i16>, ptr %170, align 2, !tbaa !18
  %wide.load232 = load <4 x i16>, ptr %171, align 2, !tbaa !18
  %172 = sext <4 x i16> %wide.load231 to <4 x i32>
  %173 = sext <4 x i16> %wide.load232 to <4 x i32>
  %174 = mul nsw <4 x i32> %172, %172
  %175 = mul nsw <4 x i32> %173, %173
  br i1 %7, label %middle.block220, label %vector.body227.1, !llvm.loop !34

vector.body227.1:                                 ; preds = %middle.block203
  %176 = getelementptr i8, ptr %170, i64 16
  %177 = getelementptr i8, ptr %170, i64 24
  %wide.load231.1 = load <4 x i16>, ptr %176, align 2, !tbaa !18
  %wide.load232.1 = load <4 x i16>, ptr %177, align 2, !tbaa !18
  %178 = sext <4 x i16> %wide.load231.1 to <4 x i32>
  %179 = sext <4 x i16> %wide.load232.1 to <4 x i32>
  %180 = mul nsw <4 x i32> %178, %178
  %181 = mul nsw <4 x i32> %179, %179
  %182 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %180, <4 x i32> %174)
  %183 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %181, <4 x i32> %175)
  br label %middle.block220

middle.block220:                                  ; preds = %vector.body227.1, %middle.block203
  %.lcssa295 = phi <4 x i32> [ %174, %middle.block203 ], [ %182, %vector.body227.1 ]
  %.lcssa294 = phi <4 x i32> [ %175, %middle.block203 ], [ %183, %vector.body227.1 ]
  %rdx.minmax234 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %.lcssa295, <4 x i32> %.lcssa294)
  %184 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax234)
  %185 = getelementptr inbounds i8, ptr %75, i64 24
  store i32 %184, ptr %185, align 4, !tbaa !28
  %.idx126 = mul nuw nsw i64 %.089, 14
  %186 = getelementptr i8, ptr %74, i64 %.idx126
  %187 = getelementptr i8, ptr %186, i64 8
  %wide.load248 = load <4 x i16>, ptr %186, align 2, !tbaa !18
  %wide.load249 = load <4 x i16>, ptr %187, align 2, !tbaa !18
  %188 = sext <4 x i16> %wide.load248 to <4 x i32>
  %189 = sext <4 x i16> %wide.load249 to <4 x i32>
  %190 = mul nsw <4 x i32> %188, %188
  %191 = mul nsw <4 x i32> %189, %189
  br i1 %7, label %middle.block237, label %vector.body244.1, !llvm.loop !35

vector.body244.1:                                 ; preds = %middle.block220
  %192 = getelementptr i8, ptr %186, i64 16
  %193 = getelementptr i8, ptr %186, i64 24
  %wide.load248.1 = load <4 x i16>, ptr %192, align 2, !tbaa !18
  %wide.load249.1 = load <4 x i16>, ptr %193, align 2, !tbaa !18
  %194 = sext <4 x i16> %wide.load248.1 to <4 x i32>
  %195 = sext <4 x i16> %wide.load249.1 to <4 x i32>
  %196 = mul nsw <4 x i32> %194, %194
  %197 = mul nsw <4 x i32> %195, %195
  %198 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %196, <4 x i32> %190)
  %199 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %197, <4 x i32> %191)
  br label %middle.block237

middle.block237:                                  ; preds = %vector.body244.1, %middle.block220
  %.lcssa293 = phi <4 x i32> [ %190, %middle.block220 ], [ %198, %vector.body244.1 ]
  %.lcssa292 = phi <4 x i32> [ %191, %middle.block220 ], [ %199, %vector.body244.1 ]
  %rdx.minmax251 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %.lcssa293, <4 x i32> %.lcssa292)
  %200 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax251)
  %201 = getelementptr inbounds i8, ptr %75, i64 28
  store i32 %200, ptr %201, align 4, !tbaa !28
  %.idx127 = shl nuw nsw i64 %.089, 4
  %202 = getelementptr i8, ptr %74, i64 %.idx127
  %203 = getelementptr i8, ptr %202, i64 8
  %wide.load265 = load <4 x i16>, ptr %202, align 2, !tbaa !18
  %wide.load266 = load <4 x i16>, ptr %203, align 2, !tbaa !18
  %204 = sext <4 x i16> %wide.load265 to <4 x i32>
  %205 = sext <4 x i16> %wide.load266 to <4 x i32>
  %206 = mul nsw <4 x i32> %204, %204
  %207 = mul nsw <4 x i32> %205, %205
  br i1 %7, label %middle.block254, label %vector.body261.1, !llvm.loop !36

vector.body261.1:                                 ; preds = %middle.block237
  %208 = getelementptr i8, ptr %202, i64 16
  %209 = getelementptr i8, ptr %202, i64 24
  %wide.load265.1 = load <4 x i16>, ptr %208, align 2, !tbaa !18
  %wide.load266.1 = load <4 x i16>, ptr %209, align 2, !tbaa !18
  %210 = sext <4 x i16> %wide.load265.1 to <4 x i32>
  %211 = sext <4 x i16> %wide.load266.1 to <4 x i32>
  %212 = mul nsw <4 x i32> %210, %210
  %213 = mul nsw <4 x i32> %211, %211
  %214 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %212, <4 x i32> %206)
  %215 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %213, <4 x i32> %207)
  br label %middle.block254

middle.block254:                                  ; preds = %vector.body261.1, %middle.block237
  %.lcssa291 = phi <4 x i32> [ %206, %middle.block237 ], [ %214, %vector.body261.1 ]
  %.lcssa290 = phi <4 x i32> [ %207, %middle.block237 ], [ %215, %vector.body261.1 ]
  %rdx.minmax268 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %.lcssa291, <4 x i32> %.lcssa290)
  %216 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax268)
  %217 = getelementptr inbounds i8, ptr %75, i64 32
  store i32 %216, ptr %217, align 4, !tbaa !28
  %.idx128 = mul nuw nsw i64 %.089, 18
  %218 = getelementptr i8, ptr %74, i64 %.idx128
  %219 = getelementptr i8, ptr %218, i64 8
  %wide.load282 = load <4 x i16>, ptr %218, align 2, !tbaa !18
  %wide.load283 = load <4 x i16>, ptr %219, align 2, !tbaa !18
  %220 = sext <4 x i16> %wide.load282 to <4 x i32>
  %221 = sext <4 x i16> %wide.load283 to <4 x i32>
  %222 = mul nsw <4 x i32> %220, %220
  %223 = mul nsw <4 x i32> %221, %221
  br i1 %7, label %middle.block271, label %vector.body278.1, !llvm.loop !37

vector.body278.1:                                 ; preds = %middle.block254
  %224 = getelementptr i8, ptr %218, i64 16
  %225 = getelementptr i8, ptr %218, i64 24
  %wide.load282.1 = load <4 x i16>, ptr %224, align 2, !tbaa !18
  %wide.load283.1 = load <4 x i16>, ptr %225, align 2, !tbaa !18
  %226 = sext <4 x i16> %wide.load282.1 to <4 x i32>
  %227 = sext <4 x i16> %wide.load283.1 to <4 x i32>
  %228 = mul nsw <4 x i32> %226, %226
  %229 = mul nsw <4 x i32> %227, %227
  %230 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %228, <4 x i32> %222)
  %231 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %229, <4 x i32> %223)
  br label %middle.block271

middle.block271:                                  ; preds = %vector.body278.1, %middle.block254
  %.lcssa289 = phi <4 x i32> [ %222, %middle.block254 ], [ %230, %vector.body278.1 ]
  %.lcssa = phi <4 x i32> [ %223, %middle.block254 ], [ %231, %vector.body278.1 ]
  %rdx.minmax285 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %.lcssa289, <4 x i32> %.lcssa)
  %232 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax285)
  %233 = getelementptr inbounds i8, ptr %75, i64 36
  store i32 %232, ptr %233, align 4, !tbaa !28
  %.105 = select i1 %73, i64 176, i64 156
  %234 = getelementptr inbounds i8, ptr %0, i64 60
  %235 = getelementptr inbounds i8, ptr %0, i64 %.105
  %236 = icmp eq i32 %6, 16000
  br i1 %236, label %237, label %238

237:                                              ; preds = %middle.block271
  call void @downsampleBy2(ptr noundef nonnull %74, i64 noundef 32, ptr noundef nonnull %5, ptr noundef nonnull %234)
  br label %239

238:                                              ; preds = %middle.block271
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 2 dereferenceable(32) %74, i64 32, i1 false)
  br label %239

239:                                              ; preds = %238, %237
  %240 = call i32 @DotProductWithScale(ptr noundef nonnull %5, ptr noundef nonnull %5, i64 noundef 16, i32 noundef 4)
  store i32 %240, ptr %235, align 4, !tbaa !28
  %241 = load i32, ptr %0, align 4, !tbaa !5
  %242 = icmp eq i32 %241, 16000
  %243 = load ptr, ptr %1, align 8, !tbaa !19
  br i1 %242, label %246, label %244

244:                                              ; preds = %239
  %245 = getelementptr inbounds i8, ptr %243, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 2 dereferenceable(32) %245, i64 32, i1 false)
  br label %248

246:                                              ; preds = %239
  %247 = getelementptr inbounds i8, ptr %243, i64 64
  call void @downsampleBy2(ptr noundef nonnull %247, i64 noundef 32, ptr noundef nonnull %5, ptr noundef nonnull %234)
  br label %248

248:                                              ; preds = %246, %244
  %249 = call i32 @DotProductWithScale(ptr noundef nonnull %5, ptr noundef nonnull %5, i64 noundef 16, i32 noundef 4)
  %250 = getelementptr inbounds i8, ptr %235, i64 4
  store i32 %249, ptr %250, align 4, !tbaa !28
  %251 = load i32, ptr %0, align 4, !tbaa !5
  %252 = icmp eq i32 %251, 16000
  %253 = load ptr, ptr %1, align 8, !tbaa !19
  br i1 %252, label %256, label %254

254:                                              ; preds = %248
  %255 = getelementptr inbounds i8, ptr %253, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 2 dereferenceable(32) %255, i64 32, i1 false)
  br label %258

256:                                              ; preds = %248
  %257 = getelementptr inbounds i8, ptr %253, i64 128
  call void @downsampleBy2(ptr noundef nonnull %257, i64 noundef 32, ptr noundef nonnull %5, ptr noundef nonnull %234)
  br label %258

258:                                              ; preds = %256, %254
  %259 = call i32 @DotProductWithScale(ptr noundef nonnull %5, ptr noundef nonnull %5, i64 noundef 16, i32 noundef 4)
  %260 = getelementptr inbounds i8, ptr %235, i64 8
  store i32 %259, ptr %260, align 4, !tbaa !28
  %261 = load i32, ptr %0, align 4, !tbaa !5
  %262 = icmp eq i32 %261, 16000
  %263 = load ptr, ptr %1, align 8, !tbaa !19
  br i1 %262, label %266, label %264

264:                                              ; preds = %258
  %265 = getelementptr inbounds i8, ptr %263, i64 96
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 2 dereferenceable(32) %265, i64 32, i1 false)
  br label %268

266:                                              ; preds = %258
  %267 = getelementptr inbounds i8, ptr %263, i64 192
  call void @downsampleBy2(ptr noundef nonnull %267, i64 noundef 32, ptr noundef nonnull %5, ptr noundef nonnull %234)
  br label %268

268:                                              ; preds = %266, %264
  %269 = call i32 @DotProductWithScale(ptr noundef nonnull %5, ptr noundef nonnull %5, i64 noundef 16, i32 noundef 4)
  %270 = getelementptr inbounds i8, ptr %235, i64 12
  store i32 %269, ptr %270, align 4, !tbaa !28
  %271 = load i32, ptr %0, align 4, !tbaa !5
  %272 = icmp eq i32 %271, 16000
  %273 = load ptr, ptr %1, align 8, !tbaa !19
  br i1 %272, label %276, label %274

274:                                              ; preds = %268
  %275 = getelementptr inbounds i8, ptr %273, i64 128
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 2 dereferenceable(32) %275, i64 32, i1 false)
  br label %278

276:                                              ; preds = %268
  %277 = getelementptr inbounds i8, ptr %273, i64 256
  call void @downsampleBy2(ptr noundef nonnull %277, i64 noundef 32, ptr noundef nonnull %5, ptr noundef nonnull %234)
  br label %278

278:                                              ; preds = %276, %274
  %279 = call i32 @DotProductWithScale(ptr noundef nonnull %5, ptr noundef nonnull %5, i64 noundef 16, i32 noundef 4)
  %280 = getelementptr inbounds i8, ptr %235, i64 16
  store i32 %279, ptr %280, align 4, !tbaa !28
  %281 = load i16, ptr %71, align 2, !tbaa !24
  %282 = icmp eq i16 %281, 0
  %.106 = select i1 %282, i16 1, i16 2
  store i16 %.106, ptr %71, align 2, !tbaa !24
  %283 = getelementptr inbounds i8, ptr %0, i64 352
  %284 = load ptr, ptr %1, align 8, !tbaa !19
  %285 = call signext i16 @WebRtcAgc_ProcessVad(ptr noundef nonnull %283, ptr noundef %284, i64 noundef %3)
  br label %286

286:                                              ; preds = %9, %8, %278
  %.087 = phi i32 [ 0, %278 ], [ -1, %8 ], [ -1, %9 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  ret i32 %.087
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.smax.v4i32(<4 x i32>, <4 x i32>) #5

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

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 = { noreturn 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #7 = { noreturn 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 4, !10, i64 6, !10, i64 8, !8, i64 10, !11, i64 12, !11, i64 18, !10, i64 24, !10, i64 26, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !10, i64 56, !10, i64 58, !8, i64 60, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !8, i64 116, !8, i64 156, !8, i64 196, !10, i64 276, !10, i64 278, !10, i64 280, !10, i64 282, !10, i64 284, !10, i64 286, !10, i64 288, !10, i64 290, !10, i64 292, !10, i64 294, !10, i64 296, !10, i64 298, !10, i64 300, !10, i64 302, !7, i64 304, !10, i64 308, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !7, i64 344, !10, i64 348, !12, i64 352, !13, i64 408, !10, i64 664}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"", !10, i64 0, !10, i64 2, !8, i64 4}
!12 = !{!"", !8, i64 0, !10, i64 32, !10, i64 34, !10, i64 36, !10, i64 38, !7, i64 40, !10, i64 44, !10, i64 46, !7, i64 48, !10, i64 52}
!13 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !8, i64 12, !10, i64 140, !10, i64 142, !12, i64 144, !12, i64 200}
!14 = !{!6, !7, i64 316}
!15 = !{!6, !7, i64 324}
!16 = !{!6, !7, i64 320}
!17 = !{!6, !10, i64 308}
!18 = !{!10, !10, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"any pointer", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!6, !10, i64 302}
!25 = distinct !{!25, !22, !26, !27}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = !{!7, !7, i64 0}
!29 = distinct !{!29, !22, !26, !27}
!30 = distinct !{!30, !22, !26, !27}
!31 = distinct !{!31, !22, !26, !27}
!32 = distinct !{!32, !22, !26, !27}
!33 = distinct !{!33, !22, !26, !27}
!34 = distinct !{!34, !22, !26, !27}
!35 = distinct !{!35, !22, !26, !27}
!36 = distinct !{!36, !22, !26, !27}
!37 = distinct !{!37, !22, !26, !27}


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