; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseResizerBilinear.ll (ZN4Simd4Base19ResizerByteBilinear3RunEPKhmPhm)

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

%"class.Simd::Resizer" = type { %"struct.Simd::Deletable", %"struct.Simd::ResParam" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::ResParam" = type { i32, i32, i64, i64, i64, i64, i64, i64 }
%"class.Simd::Base::ResizerByteBilinear" = type { %"class.Simd::Resizer", %"struct.Simd::Array", %"struct.Simd::Array", %"struct.Simd::Array", %"struct.Simd::Array", [2 x %"struct.Simd::Array"] }
%"struct.Simd::Array" = type { ptr, i64 }

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd4Base19ResizerByteBilinear18EstimateIndexAlphaEmmmPiS2_(ptr noundef nonnull align 8 dereferenceable(160), i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base19ResizerByteBilinear3RunEPKhmPhm(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) unnamed_addr #1 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca [2 x ptr], align 16
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  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 ptr %3, ptr %9, align 8, !tbaa !5
  store i64 %4, ptr %10, align 8, !tbaa !9
  %30 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %31 = getelementptr inbounds %"class.Simd::Resizer", ptr %30, i32 0, i32 1
  %32 = getelementptr inbounds %"struct.Simd::ResParam", ptr %31, i32 0, i32 6
  %33 = load i64, ptr %32, align 8, !tbaa !11
  store i64 %33, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %34 = getelementptr inbounds %"class.Simd::Resizer", ptr %30, i32 0, i32 1
  %35 = getelementptr inbounds %"struct.Simd::ResParam", ptr %34, i32 0, i32 4
  %36 = load i64, ptr %35, align 8, !tbaa !17
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = mul i64 %36, %37
  store i64 %38, ptr %12, align 8, !tbaa !9
  %39 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 1
  %40 = getelementptr inbounds %"struct.Simd::Array", ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !18
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %67

43:                                               ; preds = %5
  %44 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 1
  %45 = load i64, ptr %12, align 8, !tbaa !9
  call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %44, i64 noundef %45, i1 noundef zeroext false, i64 noundef 8)
  %46 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 2
  %47 = load i64, ptr %12, align 8, !tbaa !9
  call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %46, i64 noundef %47, i1 noundef zeroext false, i64 noundef 8)
  %48 = getelementptr inbounds %"class.Simd::Resizer", ptr %30, i32 0, i32 1
  %49 = getelementptr inbounds %"struct.Simd::ResParam", ptr %48, i32 0, i32 2
  %50 = load i64, ptr %49, align 8, !tbaa !21
  %51 = getelementptr inbounds %"class.Simd::Resizer", ptr %30, i32 0, i32 1
  %52 = getelementptr inbounds %"struct.Simd::ResParam", ptr %51, i32 0, i32 4
  %53 = load i64, ptr %52, align 8, !tbaa !17
  %54 = load i64, ptr %11, align 8, !tbaa !9
  %55 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 2
  %56 = getelementptr inbounds %"struct.Simd::Array", ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  %58 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 1
  %59 = getelementptr inbounds %"struct.Simd::Array", ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  call void @_ZN4Simd4Base19ResizerByteBilinear18EstimateIndexAlphaEmmmPiS2_(ptr noundef nonnull align 8 dereferenceable(160) %30, i64 noundef %50, i64 noundef %53, i64 noundef %54, ptr noundef %57, ptr noundef %60)
  %61 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 5
  %62 = getelementptr inbounds [2 x %"struct.Simd::Array"], ptr %61, i64 0, i64 0
  %63 = load i64, ptr %12, align 8, !tbaa !9
  call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %62, i64 noundef %63, i1 noundef zeroext false, i64 noundef 8)
  %64 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 5
  %65 = getelementptr inbounds [2 x %"struct.Simd::Array"], ptr %64, i64 0, i64 1
  %66 = load i64, ptr %12, align 8, !tbaa !9
  call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %65, i64 noundef %66, i1 noundef zeroext false, i64 noundef 8)
  br label %67

67:                                               ; preds = %43, %5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %68 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 5
  %69 = getelementptr inbounds [2 x %"struct.Simd::Array"], ptr %68, i64 0, i64 0
  %70 = getelementptr inbounds %"struct.Simd::Array", ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !23
  store ptr %71, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds ptr, ptr %13, i64 1
  %73 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 5
  %74 = getelementptr inbounds [2 x %"struct.Simd::Array"], ptr %73, i64 0, i64 1
  %75 = getelementptr inbounds %"struct.Simd::Array", ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !23
  store ptr %76, ptr %72, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 -2, ptr %14, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %257, %67
  %78 = load i64, ptr %15, align 8, !tbaa !9
  %79 = getelementptr inbounds %"class.Simd::Resizer", ptr %30, i32 0, i32 1
  %80 = getelementptr inbounds %"struct.Simd::ResParam", ptr %79, i32 0, i32 5
  %81 = load i64, ptr %80, align 8, !tbaa !26
  %82 = icmp ult i64 %78, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %77
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %263

84:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %85 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 3
  %86 = load i64, ptr %15, align 8, !tbaa !9
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %85, i64 noundef %86)
  %88 = load i32, ptr %87, align 4, !tbaa !24
  store i32 %88, ptr %17, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %89 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 4
  %90 = load i64, ptr %15, align 8, !tbaa !9
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %89, i64 noundef %90)
  %92 = load i32, ptr %91, align 4, !tbaa !24
  store i32 %92, ptr %18, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !24
  %93 = load i32, ptr %18, align 4, !tbaa !24
  %94 = load i32, ptr %14, align 4, !tbaa !24
  %95 = icmp eq i32 %93, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %84
  store i32 2, ptr %19, align 4, !tbaa !24
  br label %106

97:                                               ; preds = %84
  %98 = load i32, ptr %18, align 4, !tbaa !24
  %99 = load i32, ptr %14, align 4, !tbaa !24
  %100 = add nsw i32 %99, 1
  %101 = icmp eq i32 %98, %100
  br i1 %101, label %102, label %105

102:                                              ; preds = %97
  %103 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %104 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  call void @_ZN4Simd4SwapIPiEEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull align 8 dereferenceable(8) %104)
  store i32 1, ptr %19, align 4, !tbaa !24
  br label %105

105:                                              ; preds = %102, %97
  br label %106

106:                                              ; preds = %105, %96
  %107 = load i32, ptr %18, align 4, !tbaa !24
  store i32 %107, ptr %14, align 4, !tbaa !24
  br label %108

108:                                              ; preds = %166, %106
  %109 = load i32, ptr %19, align 4, !tbaa !24
  %110 = icmp slt i32 %109, 2
  br i1 %110, label %111, label %169

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %112 = load i32, ptr %19, align 4, !tbaa !24
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 %113
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  store ptr %115, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load i32, ptr %18, align 4, !tbaa !24
  %118 = load i32, ptr %19, align 4, !tbaa !24
  %119 = add nsw i32 %117, %118
  %120 = sext i32 %119 to i64
  %121 = load i64, ptr %8, align 8, !tbaa !9
  %122 = mul i64 %120, %121
  %123 = getelementptr inbounds i8, ptr %116, i64 %122
  store ptr %123, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %162, %111
  %125 = load i64, ptr %22, align 8, !tbaa !9
  %126 = load i64, ptr %12, align 8, !tbaa !9
  %127 = icmp ult i64 %125, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %165

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %130 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 2
  %131 = load i64, ptr %22, align 8, !tbaa !9
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %130, i64 noundef %131)
  %133 = load i32, ptr %132, align 4, !tbaa !24
  store i32 %133, ptr %23, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %134 = getelementptr inbounds %"class.Simd::Base::ResizerByteBilinear", ptr %30, i32 0, i32 1
  %135 = load i64, ptr %22, align 8, !tbaa !9
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %134, i64 noundef %135)
  %137 = load i32, ptr %136, align 4, !tbaa !24
  store i32 %137, ptr %24, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %138 = load ptr, ptr %21, align 8, !tbaa !5
  %139 = load i32, ptr %23, align 4, !tbaa !24
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds i8, ptr %138, i64 %140
  %142 = load i8, ptr %141, align 1, !tbaa !27
  %143 = zext i8 %142 to i32
  store i32 %143, ptr %25, align 4, !tbaa !24
  %144 = load i32, ptr %25, align 4, !tbaa !24
  %145 = shl i32 %144, 4
  %146 = load ptr, ptr %21, align 8, !tbaa !5
  %147 = load i32, ptr %23, align 4, !tbaa !24
  %148 = sext i32 %147 to i64
  %149 = load i64, ptr %11, align 8, !tbaa !9
  %150 = add i64 %148, %149
  %151 = getelementptr inbounds i8, ptr %146, i64 %150
  %152 = load i8, ptr %151, align 1, !tbaa !27
  %153 = zext i8 %152 to i32
  %154 = load i32, ptr %25, align 4, !tbaa !24
  %155 = sub nsw i32 %153, %154
  %156 = load i32, ptr %24, align 4, !tbaa !24
  %157 = mul nsw i32 %155, %156
  %158 = add nsw i32 %145, %157
  %159 = load ptr, ptr %20, align 8, !tbaa !5
  %160 = load i64, ptr %22, align 8, !tbaa !9
  %161 = getelementptr inbounds i32, ptr %159, i64 %160
  store i32 %158, ptr %161, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %162

162:                                              ; preds = %129
  %163 = load i64, ptr %22, align 8, !tbaa !9
  %164 = add i64 %163, 1
  store i64 %164, ptr %22, align 8, !tbaa !9
  br label %124, !llvm.loop !28

165:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %19, align 4, !tbaa !24
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %19, align 4, !tbaa !24
  br label %108, !llvm.loop !30

169:                                              ; preds = %108
  %170 = load i32, ptr %17, align 4, !tbaa !24
  %171 = icmp eq i32 %170, 0
  br i1 %171, label %172, label %195

172:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %191, %172
  %174 = load i64, ptr %26, align 8, !tbaa !9
  %175 = load i64, ptr %12, align 8, !tbaa !9
  %176 = icmp ult i64 %174, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %173
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  br label %194

178:                                              ; preds = %173
  %179 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %180 = load ptr, ptr %179, align 16, !tbaa !5
  %181 = load i64, ptr %26, align 8, !tbaa !9
  %182 = getelementptr inbounds i32, ptr %180, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !24
  %184 = shl i32 %183, 4
  %185 = add nsw i32 %184, 128
  %186 = ashr i32 %185, 8
  %187 = trunc i32 %186 to i8
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = load i64, ptr %26, align 8, !tbaa !9
  %190 = getelementptr inbounds i8, ptr %188, i64 %189
  store i8 %187, ptr %190, align 1, !tbaa !27
  br label %191

191:                                              ; preds = %178
  %192 = load i64, ptr %26, align 8, !tbaa !9
  %193 = add i64 %192, 1
  store i64 %193, ptr %26, align 8, !tbaa !9
  br label %173, !llvm.loop !31

194:                                              ; preds = %177
  br label %256

195:                                              ; preds = %169
  %196 = load i32, ptr %17, align 4, !tbaa !24
  %197 = icmp eq i32 %196, 16
  br i1 %197, label %198, label %221

198:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %199

199:                                              ; preds = %217, %198
  %200 = load i64, ptr %27, align 8, !tbaa !9
  %201 = load i64, ptr %12, align 8, !tbaa !9
  %202 = icmp ult i64 %200, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %199
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  br label %220

204:                                              ; preds = %199
  %205 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  %207 = load i64, ptr %27, align 8, !tbaa !9
  %208 = getelementptr inbounds i32, ptr %206, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !24
  %210 = shl i32 %209, 4
  %211 = add nsw i32 %210, 128
  %212 = ashr i32 %211, 8
  %213 = trunc i32 %212 to i8
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = load i64, ptr %27, align 8, !tbaa !9
  %216 = getelementptr inbounds i8, ptr %214, i64 %215
  store i8 %213, ptr %216, align 1, !tbaa !27
  br label %217

217:                                              ; preds = %204
  %218 = load i64, ptr %27, align 8, !tbaa !9
  %219 = add i64 %218, 1
  store i64 %219, ptr %27, align 8, !tbaa !9
  br label %199, !llvm.loop !32

220:                                              ; preds = %203
  br label %255

221:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %222

222:                                              ; preds = %251, %221
  %223 = load i64, ptr %28, align 8, !tbaa !9
  %224 = load i64, ptr %12, align 8, !tbaa !9
  %225 = icmp ult i64 %223, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %222
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  br label %254

227:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %228 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %229 = load ptr, ptr %228, align 16, !tbaa !5
  %230 = load i64, ptr %28, align 8, !tbaa !9
  %231 = getelementptr inbounds i32, ptr %229, i64 %230
  %232 = load i32, ptr %231, align 4, !tbaa !24
  store i32 %232, ptr %29, align 4, !tbaa !24
  %233 = load i32, ptr %29, align 4, !tbaa !24
  %234 = shl i32 %233, 4
  %235 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = load i64, ptr %28, align 8, !tbaa !9
  %238 = getelementptr inbounds i32, ptr %236, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !24
  %240 = load i32, ptr %29, align 4, !tbaa !24
  %241 = sub nsw i32 %239, %240
  %242 = load i32, ptr %17, align 4, !tbaa !24
  %243 = mul nsw i32 %241, %242
  %244 = add nsw i32 %234, %243
  %245 = add nsw i32 %244, 128
  %246 = ashr i32 %245, 8
  %247 = trunc i32 %246 to i8
  %248 = load ptr, ptr %9, align 8, !tbaa !5
  %249 = load i64, ptr %28, align 8, !tbaa !9
  %250 = getelementptr inbounds i8, ptr %248, i64 %249
  store i8 %247, ptr %250, align 1, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %251

251:                                              ; preds = %227
  %252 = load i64, ptr %28, align 8, !tbaa !9
  %253 = add i64 %252, 1
  store i64 %253, ptr %28, align 8, !tbaa !9
  br label %222, !llvm.loop !33

254:                                              ; preds = %226
  br label %255

255:                                              ; preds = %254, %220
  br label %256

256:                                              ; preds = %255, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %257

257:                                              ; preds = %256
  %258 = load i64, ptr %15, align 8, !tbaa !9
  %259 = add i64 %258, 1
  store i64 %259, ptr %15, align 8, !tbaa !9
  %260 = load i64, ptr %10, align 8, !tbaa !9
  %261 = load ptr, ptr %9, align 8, !tbaa !5
  %262 = getelementptr inbounds i8, ptr %261, i64 %260
  store ptr %262, ptr %9, align 8, !tbaa !5
  br label %77, !llvm.loop !34

263:                                              ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd4SwapIPiEEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

attributes #0 = { alwaysinline mustprogress 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 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 willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress 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 #4 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"_ZTSN4Simd7ResizerE", !13, i64 0, !14, i64 8}
!13 = !{!"_ZTSN4Simd9DeletableE"}
!14 = !{!"_ZTSN4Simd8ResParamE", !15, i64 0, !16, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!15 = !{!"_ZTS21SimdResizeChannelType", !7, i64 0}
!16 = !{!"_ZTS20SimdResizeMethodType", !7, i64 0}
!17 = !{!12, !10, i64 32}
!18 = !{!19, !6, i64 64}
!19 = !{!"_ZTSN4Simd4Base19ResizerByteBilinearE", !12, i64 0, !20, i64 64, !20, i64 80, !20, i64 96, !20, i64 112, !7, i64 128}
!20 = !{!"_ZTSN4Simd5ArrayIiEE", !6, i64 0, !10, i64 8}
!21 = !{!12, !10, i64 16}
!22 = !{!19, !6, i64 80}
!23 = !{!20, !6, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{!12, !10, i64 40}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !29}
!33 = distinct !{!33, !29}
!34 = distinct !{!34, !29}


; 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd4Base19ResizerByteBilinear18EstimateIndexAlphaEmmmPiS2_(ptr noundef nonnull align 8 dereferenceable(160), i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base19ResizerByteBilinear3RunEPKhmPhm(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr nocapture noundef writeonly %3, i64 noundef %4) unnamed_addr #1 align 2 {
  %6 = alloca [2 x ptr], align 16
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load i64, ptr %9, align 8, !tbaa !14
  %11 = mul i64 %10, %8
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %24

15:                                               ; preds = %5
  tail call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %11, i1 noundef zeroext false, i64 noundef 8)
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %11, i1 noundef zeroext false, i64 noundef 8)
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load i64, ptr %17, align 8, !tbaa !19
  %19 = load i64, ptr %9, align 8, !tbaa !14
  %20 = load ptr, ptr %16, align 8, !tbaa !20
  %21 = load ptr, ptr %12, align 8, !tbaa !15
  tail call void @_ZN4Simd4Base19ResizerByteBilinear18EstimateIndexAlphaEmmmPiS2_(ptr noundef nonnull align 8 dereferenceable(160) %0, i64 noundef %18, i64 noundef %19, i64 noundef %8, ptr noundef %20, ptr noundef %21)
  %22 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef %11, i1 noundef zeroext false, i64 noundef 8)
  %23 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %11, i1 noundef zeroext false, i64 noundef 8)
  br label %24

24:                                               ; preds = %15, %5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %25 = getelementptr inbounds i8, ptr %0, i64 128
  %26 = load ptr, ptr %25, align 8, !tbaa !21
  store ptr %26, ptr %6, align 16, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %6, i64 8
  %28 = getelementptr inbounds i8, ptr %0, i64 144
  %29 = load ptr, ptr %28, align 8, !tbaa !21
  store ptr %29, ptr %27, align 8, !tbaa !22
  %30 = getelementptr inbounds i8, ptr %0, i64 40
  %31 = load i64, ptr %30, align 8, !tbaa !23
  %.not = icmp eq i64 %31, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph90

.lr.ph90:                                         ; preds = %24
  %32 = getelementptr inbounds i8, ptr %0, i64 96
  %33 = getelementptr inbounds i8, ptr %0, i64 112
  %.not91 = icmp eq i64 %11, 0
  %34 = getelementptr inbounds i8, ptr %0, i64 80
  %35 = mul i64 %10, %8
  %36 = shl i64 %35, 2
  %37 = getelementptr i8, ptr %3, i64 %11
  %38 = getelementptr i8, ptr %3, i64 %11
  %39 = getelementptr i8, ptr %3, i64 %11
  %min.iters.check144 = icmp ult i64 %11, 8
  %n.vec147 = and i64 %11, -8
  %cmp.n154 = icmp eq i64 %11, %n.vec147
  %xtraiter = and i64 %11, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %min.iters.check125 = icmp ult i64 %11, 8
  %n.vec128 = and i64 %11, -8
  %cmp.n135 = icmp eq i64 %11, %n.vec128
  %xtraiter157 = and i64 %11, 1
  %lcmp.mod158.not = icmp eq i64 %xtraiter157, 0
  %min.iters.check = icmp ult i64 %11, 8
  %n.vec = and i64 %11, -8
  %cmp.n = icmp eq i64 %11, %n.vec
  %xtraiter159 = and i64 %11, 1
  %lcmp.mod160.not = icmp eq i64 %xtraiter159, 0
  br label %40

._crit_edge:                                      ; preds = %.loopexit, %24
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  ret void

40:                                               ; preds = %.lr.ph90, %.loopexit
  %.088 = phi ptr [ %3, %.lr.ph90 ], [ %220, %.loopexit ]
  %.06687 = phi i32 [ -2, %.lr.ph90 ], [ %47, %.loopexit ]
  %.06786 = phi i64 [ 0, %.lr.ph90 ], [ %219, %.loopexit ]
  %41 = mul i64 %.06786, %4
  %scevgep137 = getelementptr i8, ptr %37, i64 %41
  %42 = mul i64 %.06786, %4
  %scevgep118 = getelementptr i8, ptr %38, i64 %42
  %43 = mul i64 %.06786, %4
  %scevgep = getelementptr i8, ptr %39, i64 %43
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %32, i64 noundef %.06786)
  %45 = load i32, ptr %44, align 4, !tbaa !24
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef %.06786)
  %47 = load i32, ptr %46, align 4, !tbaa !24
  %.not95 = icmp eq i32 %47, %.06687
  br i1 %.not95, label %._crit_edge80, label %48

48:                                               ; preds = %40
  %49 = add nsw i32 %.06687, 1
  %50 = icmp eq i32 %47, %49
  br i1 %50, label %51, label %.lr.ph79

51:                                               ; preds = %48
  call void @_ZN4Simd4SwapIPiEEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %27)
  br label %.lr.ph79

.lr.ph79:                                         ; preds = %48, %51
  %.069.ph = phi i64 [ 0, %48 ], [ 1, %51 ]
  br i1 %.not91, label %._crit_edge80, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %.lr.ph79
  %52 = sext i32 %47 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %indvars.iv = phi i64 [ %.069.ph, %.lr.ph.us.preheader ], [ 1, %._crit_edge.us ]
  %53 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 %indvars.iv
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = add nsw i64 %indvars.iv, %52
  %56 = mul i64 %55, %2
  %57 = getelementptr inbounds i8, ptr %1, i64 %56
  %58 = getelementptr i8, ptr %57, i64 %8
  br label %59

59:                                               ; preds = %.lr.ph.us, %59
  %.06876.us = phi i64 [ 0, %.lr.ph.us ], [ %76, %59 ]
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %34, i64 noundef %.06876.us)
  %61 = load i32, ptr %60, align 4, !tbaa !24
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %.06876.us)
  %63 = load i32, ptr %62, align 4, !tbaa !24
  %64 = sext i32 %61 to i64
  %65 = getelementptr inbounds i8, ptr %57, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !26
  %67 = zext i8 %66 to i32
  %68 = shl nuw nsw i32 %67, 4
  %69 = getelementptr i8, ptr %58, i64 %64
  %70 = load i8, ptr %69, align 1, !tbaa !26
  %71 = zext i8 %70 to i32
  %72 = sub nsw i32 %71, %67
  %73 = mul nsw i32 %72, %63
  %74 = add nsw i32 %73, %68
  %75 = getelementptr inbounds i32, ptr %54, i64 %.06876.us
  store i32 %74, ptr %75, align 4, !tbaa !24
  %76 = add nuw i64 %.06876.us, 1
  %exitcond.not = icmp eq i64 %76, %11
  br i1 %exitcond.not, label %._crit_edge.us, label %59, !llvm.loop !27

._crit_edge.us:                                   ; preds = %59
  %77 = icmp eq i64 %indvars.iv, 0
  br i1 %77, label %.lr.ph.us, label %._crit_edge80, !llvm.loop !29

._crit_edge80:                                    ; preds = %._crit_edge.us, %.lr.ph79, %40
  switch i32 %45, label %.preheader [
    i32 0, label %.preheader72
    i32 16, label %.preheader74
  ]

.preheader74:                                     ; preds = %._crit_edge80
  br i1 %.not91, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader74
  %78 = load ptr, ptr %27, align 8, !tbaa !22
  br i1 %min.iters.check144, label %scalar.ph143.preheader, label %vector.memcheck136

scalar.ph143.preheader:                           ; preds = %middle.block142, %vector.memcheck136, %.lr.ph
  %.06481.ph = phi i64 [ 0, %vector.memcheck136 ], [ 0, %.lr.ph ], [ %n.vec147, %middle.block142 ]
  %.neg = or disjoint i64 %.06481.ph, 1
  br i1 %lcmp.mod.not, label %scalar.ph143.prol.loopexit, label %scalar.ph143.prol

scalar.ph143.prol:                                ; preds = %scalar.ph143.preheader
  %79 = getelementptr inbounds i32, ptr %78, i64 %.06481.ph
  %80 = load i32, ptr %79, align 4, !tbaa !24
  %81 = shl i32 %80, 4
  %82 = add nsw i32 %81, 128
  %83 = lshr i32 %82, 8
  %84 = trunc i32 %83 to i8
  %85 = getelementptr inbounds i8, ptr %.088, i64 %.06481.ph
  store i8 %84, ptr %85, align 1, !tbaa !26
  %86 = or disjoint i64 %.06481.ph, 1
  br label %scalar.ph143.prol.loopexit

scalar.ph143.prol.loopexit:                       ; preds = %scalar.ph143.prol, %scalar.ph143.preheader
  %.06481.unr = phi i64 [ %.06481.ph, %scalar.ph143.preheader ], [ %86, %scalar.ph143.prol ]
  %87 = icmp eq i64 %11, %.neg
  br i1 %87, label %.loopexit, label %scalar.ph143

vector.memcheck136:                               ; preds = %.lr.ph
  %scevgep138 = getelementptr i8, ptr %78, i64 %36
  %bound0139 = icmp ult ptr %.088, %scevgep138
  %bound1140 = icmp ult ptr %78, %scevgep137
  %found.conflict141 = and i1 %bound0139, %bound1140
  br i1 %found.conflict141, label %scalar.ph143.preheader, label %vector.body149

vector.body149:                                   ; preds = %vector.memcheck136, %vector.body149
  %index150 = phi i64 [ %index.next153, %vector.body149 ], [ 0, %vector.memcheck136 ]
  %88 = getelementptr inbounds i32, ptr %78, i64 %index150
  %89 = getelementptr inbounds i8, ptr %88, i64 16
  %wide.load151 = load <4 x i32>, ptr %88, align 4, !tbaa !24, !alias.scope !30
  %wide.load152 = load <4 x i32>, ptr %89, align 4, !tbaa !24, !alias.scope !30
  %90 = shl <4 x i32> %wide.load151, <i32 4, i32 4, i32 4, i32 4>
  %91 = shl <4 x i32> %wide.load152, <i32 4, i32 4, i32 4, i32 4>
  %92 = add nsw <4 x i32> %90, <i32 128, i32 128, i32 128, i32 128>
  %93 = add nsw <4 x i32> %91, <i32 128, i32 128, i32 128, i32 128>
  %94 = lshr <4 x i32> %92, <i32 8, i32 8, i32 8, i32 8>
  %95 = lshr <4 x i32> %93, <i32 8, i32 8, i32 8, i32 8>
  %96 = trunc <4 x i32> %94 to <4 x i8>
  %97 = trunc <4 x i32> %95 to <4 x i8>
  %98 = getelementptr inbounds i8, ptr %.088, i64 %index150
  %99 = getelementptr inbounds i8, ptr %98, i64 4
  store <4 x i8> %96, ptr %98, align 1, !tbaa !26, !alias.scope !33, !noalias !30
  store <4 x i8> %97, ptr %99, align 1, !tbaa !26, !alias.scope !33, !noalias !30
  %index.next153 = add nuw i64 %index150, 8
  %100 = icmp eq i64 %index.next153, %n.vec147
  br i1 %100, label %middle.block142, label %vector.body149, !llvm.loop !35

middle.block142:                                  ; preds = %vector.body149
  br i1 %cmp.n154, label %.loopexit, label %scalar.ph143.preheader

.preheader72:                                     ; preds = %._crit_edge80
  br i1 %.not91, label %.loopexit, label %.lr.ph83

.lr.ph83:                                         ; preds = %.preheader72
  %101 = load ptr, ptr %6, align 16, !tbaa !22
  br i1 %min.iters.check125, label %scalar.ph124.preheader, label %vector.memcheck117

scalar.ph124.preheader:                           ; preds = %middle.block123, %vector.memcheck117, %.lr.ph83
  %.06582.ph = phi i64 [ 0, %vector.memcheck117 ], [ 0, %.lr.ph83 ], [ %n.vec128, %middle.block123 ]
  %.neg161 = or disjoint i64 %.06582.ph, 1
  br i1 %lcmp.mod158.not, label %scalar.ph124.prol.loopexit, label %scalar.ph124.prol

scalar.ph124.prol:                                ; preds = %scalar.ph124.preheader
  %102 = getelementptr inbounds i32, ptr %101, i64 %.06582.ph
  %103 = load i32, ptr %102, align 4, !tbaa !24
  %104 = shl i32 %103, 4
  %105 = add nsw i32 %104, 128
  %106 = lshr i32 %105, 8
  %107 = trunc i32 %106 to i8
  %108 = getelementptr inbounds i8, ptr %.088, i64 %.06582.ph
  store i8 %107, ptr %108, align 1, !tbaa !26
  %109 = or disjoint i64 %.06582.ph, 1
  br label %scalar.ph124.prol.loopexit

scalar.ph124.prol.loopexit:                       ; preds = %scalar.ph124.prol, %scalar.ph124.preheader
  %.06582.unr = phi i64 [ %.06582.ph, %scalar.ph124.preheader ], [ %109, %scalar.ph124.prol ]
  %110 = icmp eq i64 %11, %.neg161
  br i1 %110, label %.loopexit, label %scalar.ph124

vector.memcheck117:                               ; preds = %.lr.ph83
  %scevgep119 = getelementptr i8, ptr %101, i64 %36
  %bound0120 = icmp ult ptr %.088, %scevgep119
  %bound1121 = icmp ult ptr %101, %scevgep118
  %found.conflict122 = and i1 %bound0120, %bound1121
  br i1 %found.conflict122, label %scalar.ph124.preheader, label %vector.body130

vector.body130:                                   ; preds = %vector.memcheck117, %vector.body130
  %index131 = phi i64 [ %index.next134, %vector.body130 ], [ 0, %vector.memcheck117 ]
  %111 = getelementptr inbounds i32, ptr %101, i64 %index131
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %wide.load132 = load <4 x i32>, ptr %111, align 4, !tbaa !24, !alias.scope !38
  %wide.load133 = load <4 x i32>, ptr %112, align 4, !tbaa !24, !alias.scope !38
  %113 = shl <4 x i32> %wide.load132, <i32 4, i32 4, i32 4, i32 4>
  %114 = shl <4 x i32> %wide.load133, <i32 4, i32 4, i32 4, i32 4>
  %115 = add nsw <4 x i32> %113, <i32 128, i32 128, i32 128, i32 128>
  %116 = add nsw <4 x i32> %114, <i32 128, i32 128, i32 128, i32 128>
  %117 = lshr <4 x i32> %115, <i32 8, i32 8, i32 8, i32 8>
  %118 = lshr <4 x i32> %116, <i32 8, i32 8, i32 8, i32 8>
  %119 = trunc <4 x i32> %117 to <4 x i8>
  %120 = trunc <4 x i32> %118 to <4 x i8>
  %121 = getelementptr inbounds i8, ptr %.088, i64 %index131
  %122 = getelementptr inbounds i8, ptr %121, i64 4
  store <4 x i8> %119, ptr %121, align 1, !tbaa !26, !alias.scope !41, !noalias !38
  store <4 x i8> %120, ptr %122, align 1, !tbaa !26, !alias.scope !41, !noalias !38
  %index.next134 = add nuw i64 %index131, 8
  %123 = icmp eq i64 %index.next134, %n.vec128
  br i1 %123, label %middle.block123, label %vector.body130, !llvm.loop !43

middle.block123:                                  ; preds = %vector.body130
  br i1 %cmp.n135, label %.loopexit, label %scalar.ph124.preheader

.preheader:                                       ; preds = %._crit_edge80
  br i1 %.not91, label %.loopexit, label %.lr.ph85

.lr.ph85:                                         ; preds = %.preheader
  %124 = load ptr, ptr %6, align 16, !tbaa !22
  %125 = load ptr, ptr %27, align 8, !tbaa !22
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph85
  %.06384.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph85 ], [ %n.vec, %middle.block ]
  %.neg162 = or disjoint i64 %.06384.ph, 1
  br i1 %lcmp.mod160.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %126 = getelementptr inbounds i32, ptr %124, i64 %.06384.ph
  %127 = load i32, ptr %126, align 4, !tbaa !24
  %128 = shl i32 %127, 4
  %129 = getelementptr inbounds i32, ptr %125, i64 %.06384.ph
  %130 = load i32, ptr %129, align 4, !tbaa !24
  %131 = sub nsw i32 %130, %127
  %132 = mul nsw i32 %131, %45
  %133 = add i32 %128, 128
  %134 = add i32 %133, %132
  %135 = lshr i32 %134, 8
  %136 = trunc i32 %135 to i8
  %137 = getelementptr inbounds i8, ptr %.088, i64 %.06384.ph
  store i8 %136, ptr %137, align 1, !tbaa !26
  %138 = or disjoint i64 %.06384.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.06384.unr = phi i64 [ %.06384.ph, %scalar.ph.preheader ], [ %138, %scalar.ph.prol ]
  %139 = icmp eq i64 %11, %.neg162
  br i1 %139, label %.loopexit, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph85
  %scevgep109 = getelementptr i8, ptr %124, i64 %36
  %scevgep110 = getelementptr i8, ptr %125, i64 %36
  %bound0 = icmp ult ptr %.088, %scevgep109
  %bound1 = icmp ult ptr %124, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound0111 = icmp ult ptr %.088, %scevgep110
  %bound1112 = icmp ult ptr %125, %scevgep
  %found.conflict113 = and i1 %bound0111, %bound1112
  %conflict.rdx = or i1 %found.conflict, %found.conflict113
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %45, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %140 = getelementptr inbounds i32, ptr %124, i64 %index
  %141 = getelementptr inbounds i8, ptr %140, i64 16
  %wide.load = load <4 x i32>, ptr %140, align 4, !tbaa !24, !alias.scope !44
  %wide.load114 = load <4 x i32>, ptr %141, align 4, !tbaa !24, !alias.scope !44
  %142 = shl <4 x i32> %wide.load, <i32 4, i32 4, i32 4, i32 4>
  %143 = shl <4 x i32> %wide.load114, <i32 4, i32 4, i32 4, i32 4>
  %144 = getelementptr inbounds i32, ptr %125, i64 %index
  %145 = getelementptr inbounds i8, ptr %144, i64 16
  %wide.load115 = load <4 x i32>, ptr %144, align 4, !tbaa !24, !alias.scope !47
  %wide.load116 = load <4 x i32>, ptr %145, align 4, !tbaa !24, !alias.scope !47
  %146 = sub nsw <4 x i32> %wide.load115, %wide.load
  %147 = sub nsw <4 x i32> %wide.load116, %wide.load114
  %148 = mul nsw <4 x i32> %146, %broadcast.splat
  %149 = mul nsw <4 x i32> %147, %broadcast.splat
  %150 = add <4 x i32> %142, <i32 128, i32 128, i32 128, i32 128>
  %151 = add <4 x i32> %143, <i32 128, i32 128, i32 128, i32 128>
  %152 = add <4 x i32> %150, %148
  %153 = add <4 x i32> %151, %149
  %154 = lshr <4 x i32> %152, <i32 8, i32 8, i32 8, i32 8>
  %155 = lshr <4 x i32> %153, <i32 8, i32 8, i32 8, i32 8>
  %156 = trunc <4 x i32> %154 to <4 x i8>
  %157 = trunc <4 x i32> %155 to <4 x i8>
  %158 = getelementptr inbounds i8, ptr %.088, i64 %index
  %159 = getelementptr inbounds i8, ptr %158, i64 4
  store <4 x i8> %156, ptr %158, align 1, !tbaa !26, !alias.scope !49, !noalias !51
  store <4 x i8> %157, ptr %159, align 1, !tbaa !26, !alias.scope !49, !noalias !51
  %index.next = add nuw i64 %index, 8
  %160 = icmp eq i64 %index.next, %n.vec
  br i1 %160, label %middle.block, label %vector.body, !llvm.loop !52

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph124:                                     ; preds = %scalar.ph124.prol.loopexit, %scalar.ph124
  %.06582 = phi i64 [ %176, %scalar.ph124 ], [ %.06582.unr, %scalar.ph124.prol.loopexit ]
  %161 = getelementptr inbounds i32, ptr %101, i64 %.06582
  %162 = load i32, ptr %161, align 4, !tbaa !24
  %163 = shl i32 %162, 4
  %164 = add nsw i32 %163, 128
  %165 = lshr i32 %164, 8
  %166 = trunc i32 %165 to i8
  %167 = getelementptr inbounds i8, ptr %.088, i64 %.06582
  store i8 %166, ptr %167, align 1, !tbaa !26
  %168 = add nuw i64 %.06582, 1
  %169 = getelementptr inbounds i32, ptr %101, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !24
  %171 = shl i32 %170, 4
  %172 = add nsw i32 %171, 128
  %173 = lshr i32 %172, 8
  %174 = trunc i32 %173 to i8
  %175 = getelementptr inbounds i8, ptr %.088, i64 %168
  store i8 %174, ptr %175, align 1, !tbaa !26
  %176 = add nuw i64 %.06582, 2
  %exitcond101.not.1 = icmp eq i64 %176, %11
  br i1 %exitcond101.not.1, label %.loopexit, label %scalar.ph124, !llvm.loop !53

scalar.ph143:                                     ; preds = %scalar.ph143.prol.loopexit, %scalar.ph143
  %.06481 = phi i64 [ %192, %scalar.ph143 ], [ %.06481.unr, %scalar.ph143.prol.loopexit ]
  %177 = getelementptr inbounds i32, ptr %78, i64 %.06481
  %178 = load i32, ptr %177, align 4, !tbaa !24
  %179 = shl i32 %178, 4
  %180 = add nsw i32 %179, 128
  %181 = lshr i32 %180, 8
  %182 = trunc i32 %181 to i8
  %183 = getelementptr inbounds i8, ptr %.088, i64 %.06481
  store i8 %182, ptr %183, align 1, !tbaa !26
  %184 = add nuw i64 %.06481, 1
  %185 = getelementptr inbounds i32, ptr %78, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !24
  %187 = shl i32 %186, 4
  %188 = add nsw i32 %187, 128
  %189 = lshr i32 %188, 8
  %190 = trunc i32 %189 to i8
  %191 = getelementptr inbounds i8, ptr %.088, i64 %184
  store i8 %190, ptr %191, align 1, !tbaa !26
  %192 = add nuw i64 %.06481, 2
  %exitcond100.not.1 = icmp eq i64 %192, %11
  br i1 %exitcond100.not.1, label %.loopexit, label %scalar.ph143, !llvm.loop !54

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.06384 = phi i64 [ %218, %scalar.ph ], [ %.06384.unr, %scalar.ph.prol.loopexit ]
  %193 = getelementptr inbounds i32, ptr %124, i64 %.06384
  %194 = load i32, ptr %193, align 4, !tbaa !24
  %195 = shl i32 %194, 4
  %196 = getelementptr inbounds i32, ptr %125, i64 %.06384
  %197 = load i32, ptr %196, align 4, !tbaa !24
  %198 = sub nsw i32 %197, %194
  %199 = mul nsw i32 %198, %45
  %200 = add i32 %195, 128
  %201 = add i32 %200, %199
  %202 = lshr i32 %201, 8
  %203 = trunc i32 %202 to i8
  %204 = getelementptr inbounds i8, ptr %.088, i64 %.06384
  store i8 %203, ptr %204, align 1, !tbaa !26
  %205 = add nuw i64 %.06384, 1
  %206 = getelementptr inbounds i32, ptr %124, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !24
  %208 = shl i32 %207, 4
  %209 = getelementptr inbounds i32, ptr %125, i64 %205
  %210 = load i32, ptr %209, align 4, !tbaa !24
  %211 = sub nsw i32 %210, %207
  %212 = mul nsw i32 %211, %45
  %213 = add i32 %208, 128
  %214 = add i32 %213, %212
  %215 = lshr i32 %214, 8
  %216 = trunc i32 %215 to i8
  %217 = getelementptr inbounds i8, ptr %.088, i64 %205
  store i8 %216, ptr %217, align 1, !tbaa !26
  %218 = add nuw i64 %.06384, 2
  %exitcond102.not.1 = icmp eq i64 %218, %11
  br i1 %exitcond102.not.1, label %.loopexit, label %scalar.ph, !llvm.loop !55

.loopexit:                                        ; preds = %scalar.ph143.prol.loopexit, %scalar.ph143, %scalar.ph124.prol.loopexit, %scalar.ph124, %scalar.ph.prol.loopexit, %scalar.ph, %middle.block142, %middle.block123, %middle.block, %.preheader74, %.preheader72, %.preheader
  %219 = add nuw i64 %.06786, 1
  %220 = getelementptr i8, ptr %.088, i64 %4
  %221 = load i64, ptr %30, align 8, !tbaa !23
  %222 = icmp ult i64 %219, %221
  br i1 %222, label %40, label %._crit_edge, !llvm.loop !56
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd4SwapIPiEEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

attributes #0 = { alwaysinline mustprogress 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress 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 #4 = { 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, !13, i64 48}
!6 = !{!"_ZTSN4Simd7ResizerE", !7, i64 0, !8, i64 8}
!7 = !{!"_ZTSN4Simd9DeletableE"}
!8 = !{!"_ZTSN4Simd8ResParamE", !9, i64 0, !12, i64 4, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48}
!9 = !{!"_ZTS21SimdResizeChannelType", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS20SimdResizeMethodType", !10, i64 0}
!13 = !{!"long", !10, i64 0}
!14 = !{!6, !13, i64 32}
!15 = !{!16, !18, i64 64}
!16 = !{!"_ZTSN4Simd4Base19ResizerByteBilinearE", !6, i64 0, !17, i64 64, !17, i64 80, !17, i64 96, !17, i64 112, !10, i64 128}
!17 = !{!"_ZTSN4Simd5ArrayIiEE", !18, i64 0, !13, i64 8}
!18 = !{!"any pointer", !10, i64 0}
!19 = !{!6, !13, i64 16}
!20 = !{!16, !18, i64 80}
!21 = !{!17, !18, i64 0}
!22 = !{!18, !18, i64 0}
!23 = !{!6, !13, i64 40}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !10, i64 0}
!26 = !{!10, !10, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!31}
!31 = distinct !{!31, !32}
!32 = distinct !{!32, !"LVerDomain"}
!33 = !{!34}
!34 = distinct !{!34, !32}
!35 = distinct !{!35, !28, !36, !37}
!36 = !{!"llvm.loop.isvectorized", i32 1}
!37 = !{!"llvm.loop.unroll.runtime.disable"}
!38 = !{!39}
!39 = distinct !{!39, !40}
!40 = distinct !{!40, !"LVerDomain"}
!41 = !{!42}
!42 = distinct !{!42, !40}
!43 = distinct !{!43, !28, !36, !37}
!44 = !{!45}
!45 = distinct !{!45, !46}
!46 = distinct !{!46, !"LVerDomain"}
!47 = !{!48}
!48 = distinct !{!48, !46}
!49 = !{!50}
!50 = distinct !{!50, !46}
!51 = !{!45, !48}
!52 = distinct !{!52, !28, !36, !37}
!53 = distinct !{!53, !28, !36}
!54 = distinct !{!54, !28, !36}
!55 = distinct !{!55, !28, !36}
!56 = distinct !{!56, !28}


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