; LLVM IR from ubaldot/defrecs :: stm32f4x/ADC_Readings/Drivers/CMSIS/NN/Source/SoftmaxFunctions (s8)

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

; Function Attrs: nounwind uwtable
define dso_local void @arm_nn_softmax_common_s8(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i1 noundef zeroext %6, ptr noundef %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  %30 = zext i1 %6 to i8
  store i8 %30, ptr %15, align 1, !tbaa !11
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %31 = load i32, ptr %13, align 4, !tbaa !9
  %32 = shl i32 1, %31
  store i32 %32, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %270, %8
  %34 = load i32, ptr %19, align 4, !tbaa !9
  %35 = load i32, ptr %10, align 4, !tbaa !9
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %37, label %273

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #3
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = load i8, ptr %38, align 1, !tbaa !13
  store i8 %39, ptr %20, align 1, !tbaa !13
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %67, %37
  %41 = load i32, ptr %18, align 4, !tbaa !9
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %44, label %70

44:                                               ; preds = %40
  %45 = load i8, ptr %20, align 1, !tbaa !13
  %46 = sext i8 %45 to i32
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load i32, ptr %18, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i8, ptr %47, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !13
  %52 = sext i8 %51 to i32
  %53 = icmp sgt i32 %46, %52
  br i1 %53, label %54, label %57

54:                                               ; preds = %44
  %55 = load i8, ptr %20, align 1, !tbaa !13
  %56 = sext i8 %55 to i32
  br label %64

57:                                               ; preds = %44
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i32, ptr %18, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i8, ptr %58, i64 %60
  %62 = load i8, ptr %61, align 1, !tbaa !13
  %63 = sext i8 %62 to i32
  br label %64

64:                                               ; preds = %57, %54
  %65 = phi i32 [ %56, %54 ], [ %63, %57 ]
  %66 = trunc i32 %65 to i8
  store i8 %66, ptr %20, align 1, !tbaa !13
  br label %67

67:                                               ; preds = %64
  %68 = load i32, ptr %18, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %18, align 4, !tbaa !9
  br label %40, !llvm.loop !14

70:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store i32 0, ptr %22, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %99, %70
  %72 = load i32, ptr %18, align 4, !tbaa !9
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %75, label %102

75:                                               ; preds = %71
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load i32, ptr %18, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %76, i64 %78
  %80 = load i8, ptr %79, align 1, !tbaa !13
  %81 = sext i8 %80 to i32
  %82 = load i8, ptr %20, align 1, !tbaa !13
  %83 = sext i8 %82 to i32
  %84 = sub nsw i32 %81, %83
  store i32 %84, ptr %21, align 4, !tbaa !9
  %85 = load i32, ptr %21, align 4, !tbaa !9
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = icmp sge i32 %85, %86
  br i1 %87, label %88, label %98

88:                                               ; preds = %75
  %89 = load i32, ptr %21, align 4, !tbaa !9
  %90 = load i32, ptr %17, align 4, !tbaa !9
  %91 = mul nsw i32 %89, %90
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = call i32 @arm_nn_doubling_high_mult(i32 noundef %91, i32 noundef %92)
  %94 = call i32 @arm_nn_exp_on_negative_values(i32 noundef %93)
  %95 = call i32 @arm_nn_divide_by_power_of_two(i32 noundef %94, i32 noundef 12)
  %96 = load i32, ptr %22, align 4, !tbaa !9
  %97 = add nsw i32 %96, %95
  store i32 %97, ptr %22, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %88, %75
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %18, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %18, align 4, !tbaa !9
  br label %71, !llvm.loop !16

102:                                              ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %103 = load i32, ptr %22, align 4, !tbaa !9
  %104 = call zeroext i8 @__CLZ(i32 noundef %103)
  %105 = zext i8 %104 to i32
  store i32 %105, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %106 = load i32, ptr %22, align 4, !tbaa !9
  %107 = icmp sgt i32 %106, 0
  br i1 %107, label %108, label %112

108:                                              ; preds = %102
  %109 = load i32, ptr %22, align 4, !tbaa !9
  %110 = load i32, ptr %23, align 4, !tbaa !9
  %111 = shl i32 %109, %110
  br label %113

112:                                              ; preds = %102
  br label %113

113:                                              ; preds = %112, %108
  %114 = phi i32 [ %111, %108 ], [ 0, %112 ]
  %115 = sub nsw i32 %114, -2147483648
  %116 = call i32 @arm_nn_one_over_one_plus_x_for_x_in_0_1(i32 noundef %115)
  store i32 %116, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %117 = load i8, ptr %15, align 1, !tbaa !11, !range !17, !noundef !18
  %118 = trunc i8 %117 to i1
  br i1 %118, label %119, label %192

119:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = load i32, ptr %19, align 4, !tbaa !9
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = mul nsw i32 %121, %122
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds i16, ptr %120, i64 %124
  store ptr %125, ptr %26, align 8, !tbaa !5
  %126 = load i32, ptr %23, align 4, !tbaa !9
  %127 = sub nsw i32 12, %126
  %128 = add nsw i32 %127, 15
  store i32 %128, ptr %25, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %188, %119
  %130 = load i32, ptr %18, align 4, !tbaa !9
  %131 = load i32, ptr %11, align 4, !tbaa !9
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %133, label %191

133:                                              ; preds = %129
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = load i32, ptr %18, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds i8, ptr %134, i64 %136
  %138 = load i8, ptr %137, align 1, !tbaa !13
  %139 = sext i8 %138 to i32
  %140 = load i8, ptr %20, align 1, !tbaa !13
  %141 = sext i8 %140 to i32
  %142 = sub nsw i32 %139, %141
  store i32 %142, ptr %21, align 4, !tbaa !9
  %143 = load i32, ptr %21, align 4, !tbaa !9
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = icmp sge i32 %143, %144
  br i1 %145, label %146, label %182

146:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %147 = load i32, ptr %24, align 4, !tbaa !9
  %148 = load i32, ptr %21, align 4, !tbaa !9
  %149 = load i32, ptr %17, align 4, !tbaa !9
  %150 = mul nsw i32 %148, %149
  %151 = load i32, ptr %12, align 4, !tbaa !9
  %152 = call i32 @arm_nn_doubling_high_mult(i32 noundef %150, i32 noundef %151)
  %153 = call i32 @arm_nn_exp_on_negative_values(i32 noundef %152)
  %154 = call i32 @arm_nn_doubling_high_mult(i32 noundef %147, i32 noundef %153)
  %155 = load i32, ptr %25, align 4, !tbaa !9
  %156 = call i32 @arm_nn_divide_by_power_of_two(i32 noundef %154, i32 noundef %155)
  %157 = add nsw i32 %156, -32768
  store i32 %157, ptr %27, align 4, !tbaa !9
  %158 = load i32, ptr %27, align 4, !tbaa !9
  %159 = icmp slt i32 %158, 32767
  br i1 %159, label %160, label %162

160:                                              ; preds = %146
  %161 = load i32, ptr %27, align 4, !tbaa !9
  br label %163

162:                                              ; preds = %146
  br label %163

163:                                              ; preds = %162, %160
  %164 = phi i32 [ %161, %160 ], [ 32767, %162 ]
  %165 = icmp sgt i32 %164, -32768
  br i1 %165, label %166, label %174

166:                                              ; preds = %163
  %167 = load i32, ptr %27, align 4, !tbaa !9
  %168 = icmp slt i32 %167, 32767
  br i1 %168, label %169, label %171

169:                                              ; preds = %166
  %170 = load i32, ptr %27, align 4, !tbaa !9
  br label %172

171:                                              ; preds = %166
  br label %172

172:                                              ; preds = %171, %169
  %173 = phi i32 [ %170, %169 ], [ 32767, %171 ]
  br label %175

174:                                              ; preds = %163
  br label %175

175:                                              ; preds = %174, %172
  %176 = phi i32 [ %173, %172 ], [ -32768, %174 ]
  %177 = trunc i32 %176 to i16
  %178 = load ptr, ptr %26, align 8, !tbaa !5
  %179 = load i32, ptr %18, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds i16, ptr %178, i64 %180
  store i16 %177, ptr %181, align 2, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  br label %187

182:                                              ; preds = %133
  %183 = load ptr, ptr %26, align 8, !tbaa !5
  %184 = load i32, ptr %18, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds i16, ptr %183, i64 %185
  store i16 -32768, ptr %186, align 2, !tbaa !19
  br label %187

187:                                              ; preds = %182, %175
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %18, align 4, !tbaa !9
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %18, align 4, !tbaa !9
  br label %129, !llvm.loop !21

191:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  br label %265

192:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %193 = load ptr, ptr %16, align 8, !tbaa !5
  %194 = load i32, ptr %19, align 4, !tbaa !9
  %195 = load i32, ptr %11, align 4, !tbaa !9
  %196 = mul nsw i32 %194, %195
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds i8, ptr %193, i64 %197
  store ptr %198, ptr %28, align 8, !tbaa !5
  %199 = load i32, ptr %23, align 4, !tbaa !9
  %200 = sub nsw i32 12, %199
  %201 = add nsw i32 %200, 23
  store i32 %201, ptr %25, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %202

202:                                              ; preds = %261, %192
  %203 = load i32, ptr %18, align 4, !tbaa !9
  %204 = load i32, ptr %11, align 4, !tbaa !9
  %205 = icmp slt i32 %203, %204
  br i1 %205, label %206, label %264

206:                                              ; preds = %202
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = load i32, ptr %18, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds i8, ptr %207, i64 %209
  %211 = load i8, ptr %210, align 1, !tbaa !13
  %212 = sext i8 %211 to i32
  %213 = load i8, ptr %20, align 1, !tbaa !13
  %214 = sext i8 %213 to i32
  %215 = sub nsw i32 %212, %214
  store i32 %215, ptr %21, align 4, !tbaa !9
  %216 = load i32, ptr %21, align 4, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = icmp sge i32 %216, %217
  br i1 %218, label %219, label %255

219:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  %220 = load i32, ptr %24, align 4, !tbaa !9
  %221 = load i32, ptr %21, align 4, !tbaa !9
  %222 = load i32, ptr %17, align 4, !tbaa !9
  %223 = mul nsw i32 %221, %222
  %224 = load i32, ptr %12, align 4, !tbaa !9
  %225 = call i32 @arm_nn_doubling_high_mult(i32 noundef %223, i32 noundef %224)
  %226 = call i32 @arm_nn_exp_on_negative_values(i32 noundef %225)
  %227 = call i32 @arm_nn_doubling_high_mult(i32 noundef %220, i32 noundef %226)
  %228 = load i32, ptr %25, align 4, !tbaa !9
  %229 = call i32 @arm_nn_divide_by_power_of_two(i32 noundef %227, i32 noundef %228)
  %230 = add nsw i32 %229, -128
  store i32 %230, ptr %29, align 4, !tbaa !9
  %231 = load i32, ptr %29, align 4, !tbaa !9
  %232 = icmp slt i32 %231, 127
  br i1 %232, label %233, label %235

233:                                              ; preds = %219
  %234 = load i32, ptr %29, align 4, !tbaa !9
  br label %236

235:                                              ; preds = %219
  br label %236

236:                                              ; preds = %235, %233
  %237 = phi i32 [ %234, %233 ], [ 127, %235 ]
  %238 = icmp sgt i32 %237, -128
  br i1 %238, label %239, label %247

239:                                              ; preds = %236
  %240 = load i32, ptr %29, align 4, !tbaa !9
  %241 = icmp slt i32 %240, 127
  br i1 %241, label %242, label %244

242:                                              ; preds = %239
  %243 = load i32, ptr %29, align 4, !tbaa !9
  br label %245

244:                                              ; preds = %239
  br label %245

245:                                              ; preds = %244, %242
  %246 = phi i32 [ %243, %242 ], [ 127, %244 ]
  br label %248

247:                                              ; preds = %236
  br label %248

248:                                              ; preds = %247, %245
  %249 = phi i32 [ %246, %245 ], [ -128, %247 ]
  %250 = trunc i32 %249 to i8
  %251 = load ptr, ptr %28, align 8, !tbaa !5
  %252 = load i32, ptr %18, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds i8, ptr %251, i64 %253
  store i8 %250, ptr %254, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  br label %260

255:                                              ; preds = %206
  %256 = load ptr, ptr %28, align 8, !tbaa !5
  %257 = load i32, ptr %18, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds i8, ptr %256, i64 %258
  store i8 -128, ptr %259, align 1, !tbaa !13
  br label %260

260:                                              ; preds = %255, %248
  br label %261

261:                                              ; preds = %260
  %262 = load i32, ptr %18, align 4, !tbaa !9
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %18, align 4, !tbaa !9
  br label %202, !llvm.loop !22

264:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  br label %265

265:                                              ; preds = %264, %191
  %266 = load i32, ptr %11, align 4, !tbaa !9
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = sext i32 %266 to i64
  %269 = getelementptr inbounds i8, ptr %267, i64 %268
  store ptr %269, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #3
  br label %270

270:                                              ; preds = %265
  %271 = load i32, ptr %19, align 4, !tbaa !9
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %19, align 4, !tbaa !9
  br label %33, !llvm.loop !23

273:                                              ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  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: alwaysinline nounwind uwtable
declare hidden i32 @arm_nn_divide_by_power_of_two(i32 noundef, i32 noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @arm_nn_exp_on_negative_values(i32 noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @arm_nn_doubling_high_mult(i32 noundef, i32 noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i8 @__CLZ(i32 noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @arm_nn_one_over_one_plus_x_for_x_in_0_1(i32 noundef) #2

; 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 = { alwaysinline 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 = { 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, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}


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

; Function Attrs: nounwind uwtable
define dso_local void @arm_nn_softmax_common_s8(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i1 noundef zeroext %6, ptr nocapture noundef writeonly %7) local_unnamed_addr #0 {
  %9 = icmp sgt i32 %1, 0
  br i1 %9, label %.lr.ph112, label %._crit_edge113

.lr.ph112:                                        ; preds = %8
  %10 = icmp sgt i32 %2, 1
  %11 = icmp sgt i32 %2, 0
  %12 = sext i32 %2 to i64
  %wide.trip.count147 = zext nneg i32 %1 to i64
  %wide.trip.count132 = zext i32 %2 to i64
  %wide.trip.count137 = zext nneg i32 %2 to i64
  %wide.trip.count142 = zext nneg i32 %2 to i64
  %13 = add nsw i64 %wide.trip.count132, -1
  br i1 %6, label %.lr.ph112.split.us.preheader, label %.lr.ph112.split.preheader

.lr.ph112.split.preheader:                        ; preds = %.lr.ph112
  %min.iters.check = icmp ult i32 %2, 9
  %min.iters.check153 = icmp ult i32 %2, 33
  %n.vec = and i64 %13, -32
  %cmp.n = icmp eq i64 %13, %n.vec
  %ind.end158 = or disjoint i64 %n.vec, 1
  %n.vec.remaining = and i64 %13, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  %n.vec157 = and i64 %13, -8
  %ind.end = or disjoint i64 %n.vec157, 1
  %cmp.n166 = icmp eq i64 %13, %n.vec157
  br label %.lr.ph112.split

.lr.ph112.split.us.preheader:                     ; preds = %.lr.ph112
  %min.iters.check169 = icmp ult i32 %2, 9
  %min.iters.check172 = icmp ult i32 %2, 33
  %n.vec176 = and i64 %13, -32
  %cmp.n188 = icmp eq i64 %13, %n.vec176
  %ind.end200 = or disjoint i64 %n.vec176, 1
  %n.vec.remaining194 = and i64 %13, 24
  %min.epilog.iters.check195 = icmp eq i64 %n.vec.remaining194, 0
  %n.vec198 = and i64 %13, -8
  %ind.end199 = or disjoint i64 %n.vec198, 1
  %cmp.n210 = icmp eq i64 %13, %n.vec198
  br label %.lr.ph112.split.us

.lr.ph112.split.us:                               ; preds = %.lr.ph112.split.us.preheader, %.loopexit.us
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %.loopexit.us ], [ 0, %.lr.ph112.split.us.preheader ]
  %.0109.us = phi ptr [ %65, %.loopexit.us ], [ %0, %.lr.ph112.split.us.preheader ]
  %14 = load i8, ptr %.0109.us, align 1, !tbaa !5
  br i1 %10, label %iter.check171, label %.preheader.us

iter.check171:                                    ; preds = %.lr.ph112.split.us
  br i1 %min.iters.check169, label %.lr.ph.us.preheader, label %vector.main.loop.iter.check173

vector.main.loop.iter.check173:                   ; preds = %iter.check171
  br i1 %min.iters.check172, label %vec.epilog.ph192, label %vector.ph174

vector.ph174:                                     ; preds = %vector.main.loop.iter.check173
  %minmax.ident.splatinsert181 = insertelement <16 x i8> poison, i8 %14, i64 0
  %minmax.ident.splat182 = shufflevector <16 x i8> %minmax.ident.splatinsert181, <16 x i8> poison, <16 x i32> zeroinitializer
  br label %vector.body177

vector.body177:                                   ; preds = %vector.body177, %vector.ph174
  %index178 = phi i64 [ 0, %vector.ph174 ], [ %index.next186, %vector.body177 ]
  %vec.phi179 = phi <16 x i8> [ %minmax.ident.splat182, %vector.ph174 ], [ %17, %vector.body177 ]
  %vec.phi180 = phi <16 x i8> [ %minmax.ident.splat182, %vector.ph174 ], [ %18, %vector.body177 ]
  %offset.idx183 = or disjoint i64 %index178, 1
  %15 = getelementptr inbounds i8, ptr %.0109.us, i64 %offset.idx183
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %wide.load184 = load <16 x i8>, ptr %15, align 1, !tbaa !5
  %wide.load185 = load <16 x i8>, ptr %16, align 1, !tbaa !5
  %17 = tail call <16 x i8> @llvm.smax.v16i8(<16 x i8> %vec.phi179, <16 x i8> %wide.load184)
  %18 = tail call <16 x i8> @llvm.smax.v16i8(<16 x i8> %vec.phi180, <16 x i8> %wide.load185)
  %index.next186 = add nuw i64 %index178, 32
  %19 = icmp eq i64 %index.next186, %n.vec176
  br i1 %19, label %middle.block168, label %vector.body177, !llvm.loop !8

middle.block168:                                  ; preds = %vector.body177
  %rdx.minmax187 = tail call <16 x i8> @llvm.smax.v16i8(<16 x i8> %17, <16 x i8> %18)
  %20 = tail call i8 @llvm.vector.reduce.smax.v16i8(<16 x i8> %rdx.minmax187)
  br i1 %cmp.n188, label %.preheader.us, label %vec.epilog.iter.check193

vec.epilog.iter.check193:                         ; preds = %middle.block168
  br i1 %min.epilog.iters.check195, label %.lr.ph.us.preheader, label %vec.epilog.ph192

.lr.ph.us.preheader:                              ; preds = %vec.epilog.middle.block190, %iter.check171, %vec.epilog.iter.check193
  %indvars.iv130.ph = phi i64 [ 1, %iter.check171 ], [ %ind.end200, %vec.epilog.iter.check193 ], [ %ind.end199, %vec.epilog.middle.block190 ]
  %.08496.us.ph = phi i8 [ %14, %iter.check171 ], [ %20, %vec.epilog.iter.check193 ], [ %24, %vec.epilog.middle.block190 ]
  br label %.lr.ph.us

vec.epilog.ph192:                                 ; preds = %vector.main.loop.iter.check173, %vec.epilog.iter.check193
  %bc.merge.rdx189 = phi i8 [ %20, %vec.epilog.iter.check193 ], [ %14, %vector.main.loop.iter.check173 ]
  %vec.epilog.resume.val196 = phi i64 [ %n.vec176, %vec.epilog.iter.check193 ], [ 0, %vector.main.loop.iter.check173 ]
  %minmax.ident.splatinsert205 = insertelement <8 x i8> poison, i8 %bc.merge.rdx189, i64 0
  %minmax.ident.splat206 = shufflevector <8 x i8> %minmax.ident.splatinsert205, <8 x i8> poison, <8 x i32> zeroinitializer
  br label %vec.epilog.vector.body202

vec.epilog.vector.body202:                        ; preds = %vec.epilog.vector.body202, %vec.epilog.ph192
  %index203 = phi i64 [ %vec.epilog.resume.val196, %vec.epilog.ph192 ], [ %index.next209, %vec.epilog.vector.body202 ]
  %vec.phi204 = phi <8 x i8> [ %minmax.ident.splat206, %vec.epilog.ph192 ], [ %22, %vec.epilog.vector.body202 ]
  %offset.idx207 = or disjoint i64 %index203, 1
  %21 = getelementptr inbounds i8, ptr %.0109.us, i64 %offset.idx207
  %wide.load208 = load <8 x i8>, ptr %21, align 1, !tbaa !5
  %22 = tail call <8 x i8> @llvm.smax.v8i8(<8 x i8> %vec.phi204, <8 x i8> %wide.load208)
  %index.next209 = add nuw i64 %index203, 8
  %23 = icmp eq i64 %index.next209, %n.vec198
  br i1 %23, label %vec.epilog.middle.block190, label %vec.epilog.vector.body202, !llvm.loop !12

vec.epilog.middle.block190:                       ; preds = %vec.epilog.vector.body202
  %24 = tail call i8 @llvm.vector.reduce.smax.v8i8(<8 x i8> %22)
  br i1 %cmp.n210, label %.preheader.us, label %.lr.ph.us.preheader

._crit_edge.us:                                   ; preds = %62, %.preheader.us
  %.085.lcssa.us = phi i32 [ 0, %.preheader.us ], [ %.186.us, %62 ]
  %25 = tail call zeroext i8 @__CLZ(i32 noundef %.085.lcssa.us)
  %26 = zext i8 %25 to i32
  %27 = icmp sgt i32 %.085.lcssa.us, 0
  %28 = shl i32 %.085.lcssa.us, %26
  %29 = xor i32 %28, -2147483648
  %spec.select = select i1 %27, i32 %29, i32 -2147483648
  %30 = tail call i32 @arm_nn_one_over_one_plus_x_for_x_in_0_1(i32 noundef %spec.select)
  %31 = mul nsw i64 %indvars.iv144, %12
  %32 = getelementptr inbounds i16, ptr %7, i64 %31
  %33 = sub nsw i32 27, %26
  br i1 %11, label %.lr.ph107.us, label %.loopexit.us

34:                                               ; preds = %.lr.ph107.us, %49
  %indvars.iv139 = phi i64 [ 0, %.lr.ph107.us ], [ %indvars.iv.next140, %49 ]
  %35 = getelementptr inbounds i8, ptr %.0109.us, i64 %indvars.iv139
  %36 = load i8, ptr %35, align 1, !tbaa !5
  %37 = sext i8 %36 to i32
  %38 = sub nsw i32 %37, %67
  %.not93.us = icmp slt i32 %38, %5
  br i1 %.not93.us, label %49, label %39

39:                                               ; preds = %34
  %40 = shl i32 %38, %4
  %41 = tail call i32 @arm_nn_doubling_high_mult(i32 noundef %40, i32 noundef %3)
  %42 = tail call i32 @arm_nn_exp_on_negative_values(i32 noundef %41)
  %43 = tail call i32 @arm_nn_doubling_high_mult(i32 noundef %30, i32 noundef %42)
  %44 = tail call i32 @arm_nn_divide_by_power_of_two(i32 noundef %43, i32 noundef %33)
  %45 = tail call i32 @llvm.smin.i32(i32 %44, i32 65535)
  %46 = tail call i32 @llvm.smax.i32(i32 %45, i32 0)
  %47 = trunc nuw i32 %46 to i16
  %48 = xor i16 %47, -32768
  br label %49

49:                                               ; preds = %34, %39
  %.sink = phi i16 [ %48, %39 ], [ -32768, %34 ]
  %50 = getelementptr inbounds i16, ptr %32, i64 %indvars.iv139
  store i16 %.sink, ptr %50, align 2
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %exitcond143.not = icmp eq i64 %indvars.iv.next140, %wide.trip.count142
  br i1 %exitcond143.not, label %.loopexit.us, label %34, !llvm.loop !13

51:                                               ; preds = %.lr.ph100.us, %62
  %indvars.iv134 = phi i64 [ 0, %.lr.ph100.us ], [ %indvars.iv.next135, %62 ]
  %.08598.us = phi i32 [ 0, %.lr.ph100.us ], [ %.186.us, %62 ]
  %52 = getelementptr inbounds i8, ptr %.0109.us, i64 %indvars.iv134
  %53 = load i8, ptr %52, align 1, !tbaa !5
  %54 = sext i8 %53 to i32
  %55 = sub nsw i32 %54, %66
  %.not94.us = icmp slt i32 %55, %5
  br i1 %.not94.us, label %62, label %56

56:                                               ; preds = %51
  %57 = shl i32 %55, %4
  %58 = tail call i32 @arm_nn_doubling_high_mult(i32 noundef %57, i32 noundef %3)
  %59 = tail call i32 @arm_nn_exp_on_negative_values(i32 noundef %58)
  %60 = tail call i32 @arm_nn_divide_by_power_of_two(i32 noundef %59, i32 noundef 12)
  %61 = add nsw i32 %60, %.08598.us
  br label %62

62:                                               ; preds = %56, %51
  %.186.us = phi i32 [ %61, %56 ], [ %.08598.us, %51 ]
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %exitcond138.not = icmp eq i64 %indvars.iv.next135, %wide.trip.count137
  br i1 %exitcond138.not, label %._crit_edge.us, label %51, !llvm.loop !14

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %.lr.ph.us ], [ %indvars.iv130.ph, %.lr.ph.us.preheader ]
  %.08496.us = phi i8 [ %.084..us, %.lr.ph.us ], [ %.08496.us.ph, %.lr.ph.us.preheader ]
  %63 = getelementptr inbounds i8, ptr %.0109.us, i64 %indvars.iv130
  %64 = load i8, ptr %63, align 1, !tbaa !5
  %.084..us = tail call i8 @llvm.smax.i8(i8 %.08496.us, i8 %64)
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %exitcond133.not = icmp eq i64 %indvars.iv.next131, %wide.trip.count132
  br i1 %exitcond133.not, label %.preheader.us, label %.lr.ph.us, !llvm.loop !15

.loopexit.us:                                     ; preds = %49, %._crit_edge.us
  %65 = getelementptr inbounds i8, ptr %.0109.us, i64 %12
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %exitcond148.not = icmp eq i64 %indvars.iv.next145, %wide.trip.count147
  br i1 %exitcond148.not, label %._crit_edge113, label %.lr.ph112.split.us, !llvm.loop !16

.preheader.us:                                    ; preds = %.lr.ph.us, %middle.block168, %vec.epilog.middle.block190, %.lr.ph112.split.us
  %.084.lcssa.us = phi i8 [ %14, %.lr.ph112.split.us ], [ %20, %middle.block168 ], [ %24, %vec.epilog.middle.block190 ], [ %.084..us, %.lr.ph.us ]
  br i1 %11, label %.lr.ph100.us, label %._crit_edge.us

.lr.ph100.us:                                     ; preds = %.preheader.us
  %66 = sext i8 %.084.lcssa.us to i32
  br label %51

.lr.ph107.us:                                     ; preds = %._crit_edge.us
  %67 = sext i8 %.084.lcssa.us to i32
  br label %34

.lr.ph112.split:                                  ; preds = %.lr.ph112.split.preheader, %.loopexit95
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %.loopexit95 ], [ 0, %.lr.ph112.split.preheader ]
  %.0109 = phi ptr [ %121, %.loopexit95 ], [ %0, %.lr.ph112.split.preheader ]
  %68 = load i8, ptr %.0109, align 1, !tbaa !5
  br i1 %10, label %iter.check, label %.preheader

iter.check:                                       ; preds = %.lr.ph112.split
  br i1 %min.iters.check, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  br i1 %min.iters.check153, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %minmax.ident.splatinsert = insertelement <16 x i8> poison, i8 %68, i64 0
  %minmax.ident.splat = shufflevector <16 x i8> %minmax.ident.splatinsert, <16 x i8> poison, <16 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <16 x i8> [ %minmax.ident.splat, %vector.ph ], [ %71, %vector.body ]
  %vec.phi154 = phi <16 x i8> [ %minmax.ident.splat, %vector.ph ], [ %72, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %69 = getelementptr inbounds i8, ptr %.0109, i64 %offset.idx
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %wide.load = load <16 x i8>, ptr %69, align 1, !tbaa !5
  %wide.load155 = load <16 x i8>, ptr %70, align 1, !tbaa !5
  %71 = tail call <16 x i8> @llvm.smax.v16i8(<16 x i8> %vec.phi, <16 x i8> %wide.load)
  %72 = tail call <16 x i8> @llvm.smax.v16i8(<16 x i8> %vec.phi154, <16 x i8> %wide.load155)
  %index.next = add nuw i64 %index, 32
  %73 = icmp eq i64 %index.next, %n.vec
  br i1 %73, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %rdx.minmax = tail call <16 x i8> @llvm.smax.v16i8(<16 x i8> %71, <16 x i8> %72)
  %74 = tail call i8 @llvm.vector.reduce.smax.v16i8(<16 x i8> %rdx.minmax)
  br i1 %cmp.n, label %.preheader, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  br i1 %min.epilog.iters.check, label %.lr.ph.preheader, label %vec.epilog.ph

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %indvars.iv.ph = phi i64 [ 1, %iter.check ], [ %ind.end158, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  %.08496.ph = phi i8 [ %68, %iter.check ], [ %74, %vec.epilog.iter.check ], [ %78, %vec.epilog.middle.block ]
  br label %.lr.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %bc.merge.rdx = phi i8 [ %74, %vec.epilog.iter.check ], [ %68, %vector.main.loop.iter.check ]
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %minmax.ident.splatinsert161 = insertelement <8 x i8> poison, i8 %bc.merge.rdx, i64 0
  %minmax.ident.splat162 = shufflevector <8 x i8> %minmax.ident.splatinsert161, <8 x i8> poison, <8 x i32> zeroinitializer
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index159 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next165, %vec.epilog.vector.body ]
  %vec.phi160 = phi <8 x i8> [ %minmax.ident.splat162, %vec.epilog.ph ], [ %76, %vec.epilog.vector.body ]
  %offset.idx163 = or disjoint i64 %index159, 1
  %75 = getelementptr inbounds i8, ptr %.0109, i64 %offset.idx163
  %wide.load164 = load <8 x i8>, ptr %75, align 1, !tbaa !5
  %76 = tail call <8 x i8> @llvm.smax.v8i8(<8 x i8> %vec.phi160, <8 x i8> %wide.load164)
  %index.next165 = add nuw i64 %index159, 8
  %77 = icmp eq i64 %index.next165, %n.vec157
  br i1 %77, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !18

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %78 = tail call i8 @llvm.vector.reduce.smax.v8i8(<8 x i8> %76)
  br i1 %cmp.n166, label %.preheader, label %.lr.ph.preheader

.preheader:                                       ; preds = %.lr.ph, %middle.block, %vec.epilog.middle.block, %.lr.ph112.split
  %.084.lcssa = phi i8 [ %68, %.lr.ph112.split ], [ %74, %middle.block ], [ %78, %vec.epilog.middle.block ], [ %.084., %.lr.ph ]
  br i1 %11, label %.lr.ph100, label %._crit_edge

.lr.ph100:                                        ; preds = %.preheader
  %79 = sext i8 %.084.lcssa to i32
  br label %82

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader ]
  %.08496 = phi i8 [ %.084., %.lr.ph ], [ %.08496.ph, %.lr.ph.preheader ]
  %80 = getelementptr inbounds i8, ptr %.0109, i64 %indvars.iv
  %81 = load i8, ptr %80, align 1, !tbaa !5
  %.084. = tail call i8 @llvm.smax.i8(i8 %.08496, i8 %81)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count132
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !19

82:                                               ; preds = %.lr.ph100, %93
  %indvars.iv115 = phi i64 [ 0, %.lr.ph100 ], [ %indvars.iv.next116, %93 ]
  %.08598 = phi i32 [ 0, %.lr.ph100 ], [ %.186, %93 ]
  %83 = getelementptr inbounds i8, ptr %.0109, i64 %indvars.iv115
  %84 = load i8, ptr %83, align 1, !tbaa !5
  %85 = sext i8 %84 to i32
  %86 = sub nsw i32 %85, %79
  %.not94 = icmp slt i32 %86, %5
  br i1 %.not94, label %93, label %87

87:                                               ; preds = %82
  %88 = shl i32 %86, %4
  %89 = tail call i32 @arm_nn_doubling_high_mult(i32 noundef %88, i32 noundef %3)
  %90 = tail call i32 @arm_nn_exp_on_negative_values(i32 noundef %89)
  %91 = tail call i32 @arm_nn_divide_by_power_of_two(i32 noundef %90, i32 noundef 12)
  %92 = add nsw i32 %91, %.08598
  br label %93

93:                                               ; preds = %82, %87
  %.186 = phi i32 [ %92, %87 ], [ %.08598, %82 ]
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %exitcond119.not = icmp eq i64 %indvars.iv.next116, %wide.trip.count137
  br i1 %exitcond119.not, label %._crit_edge, label %82, !llvm.loop !14

._crit_edge:                                      ; preds = %93, %.preheader
  %.085.lcssa = phi i32 [ 0, %.preheader ], [ %.186, %93 ]
  %94 = tail call zeroext i8 @__CLZ(i32 noundef %.085.lcssa)
  %95 = zext i8 %94 to i32
  %96 = icmp sgt i32 %.085.lcssa, 0
  %97 = shl i32 %.085.lcssa, %95
  %98 = xor i32 %97, -2147483648
  %spec.select151 = select i1 %96, i32 %98, i32 -2147483648
  %99 = tail call i32 @arm_nn_one_over_one_plus_x_for_x_in_0_1(i32 noundef %spec.select151)
  %100 = mul nsw i64 %indvars.iv125, %12
  %101 = getelementptr inbounds i8, ptr %7, i64 %100
  %102 = sub nsw i32 35, %95
  br i1 %11, label %.lr.ph104, label %.loopexit95

.lr.ph104:                                        ; preds = %._crit_edge
  %103 = sext i8 %.084.lcssa to i32
  br label %104

104:                                              ; preds = %.lr.ph104, %119
  %indvars.iv120 = phi i64 [ 0, %.lr.ph104 ], [ %indvars.iv.next121, %119 ]
  %105 = getelementptr inbounds i8, ptr %.0109, i64 %indvars.iv120
  %106 = load i8, ptr %105, align 1, !tbaa !5
  %107 = sext i8 %106 to i32
  %108 = sub nsw i32 %107, %103
  %.not = icmp slt i32 %108, %5
  br i1 %.not, label %119, label %109

109:                                              ; preds = %104
  %110 = shl i32 %108, %4
  %111 = tail call i32 @arm_nn_doubling_high_mult(i32 noundef %110, i32 noundef %3)
  %112 = tail call i32 @arm_nn_exp_on_negative_values(i32 noundef %111)
  %113 = tail call i32 @arm_nn_doubling_high_mult(i32 noundef %99, i32 noundef %112)
  %114 = tail call i32 @arm_nn_divide_by_power_of_two(i32 noundef %113, i32 noundef %102)
  %115 = tail call i32 @llvm.smin.i32(i32 %114, i32 255)
  %116 = tail call i32 @llvm.smax.i32(i32 %115, i32 0)
  %117 = trunc nuw i32 %116 to i8
  %118 = xor i8 %117, -128
  br label %119

119:                                              ; preds = %104, %109
  %.sink149 = phi i8 [ %118, %109 ], [ -128, %104 ]
  %120 = getelementptr inbounds i8, ptr %101, i64 %indvars.iv120
  store i8 %.sink149, ptr %120, align 1
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond124.not = icmp eq i64 %indvars.iv.next121, %wide.trip.count142
  br i1 %exitcond124.not, label %.loopexit95, label %104, !llvm.loop !20

.loopexit95:                                      ; preds = %119, %._crit_edge
  %121 = getelementptr inbounds i8, ptr %.0109, i64 %12
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next126, %wide.trip.count147
  br i1 %exitcond129.not, label %._crit_edge113, label %.lr.ph112.split, !llvm.loop !16

._crit_edge113:                                   ; preds = %.loopexit95, %.loopexit.us, %8
  ret void
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @arm_nn_divide_by_power_of_two(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @arm_nn_exp_on_negative_values(i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @arm_nn_doubling_high_mult(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i8 @__CLZ(i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @arm_nn_one_over_one_plus_x_for_x_in_0_1(i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <16 x i8> @llvm.smax.v16i8(<16 x i8>, <16 x i8>) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vector.reduce.smax.v16i8(<16 x i8>) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x i8> @llvm.smax.v8i8(<8 x i8>, <8 x i8>) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vector.reduce.smax.v8i8(<8 x i8>) #2

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 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9, !10, !11}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !9, !10, !11}
!13 = distinct !{!13, !9}
!14 = distinct !{!14, !9}
!15 = distinct !{!15, !9, !11, !10}
!16 = distinct !{!16, !9}
!17 = distinct !{!17, !9, !10, !11}
!18 = distinct !{!18, !9, !10, !11}
!19 = distinct !{!19, !9, !11, !10}
!20 = distinct !{!20, !9}


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