; LLVM IR from awawa-dev/HyperHDR :: sources/image/ImageData.ll (ZN9ImageDataI8ColorRgbE12gradientHBoxEtttthhh)

; 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24), i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 2 dereferenceable(2)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 2 dereferenceable(2)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9ImageDataI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %1, i16 noundef zeroext %2, i16 noundef zeroext %3, i16 noundef zeroext %4, i8 noundef zeroext %5, i8 noundef zeroext %6, i8 noundef zeroext %7) #2 align 2 {
  %9 = alloca ptr, align 8
  %10 = alloca i16, align 2
  %11 = alloca i16, align 2
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca i16, align 2
  %19 = alloca i32, align 4
  %20 = alloca i16, align 2
  %21 = alloca i32, align 4
  %22 = alloca i16, align 2
  %23 = alloca i32, align 4
  %24 = alloca i16, align 2
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i16, align 2
  %29 = alloca i16, align 2
  %30 = alloca i16, align 2
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i16 %1, ptr %10, align 2, !tbaa !9
  store i16 %2, ptr %11, align 2, !tbaa !9
  store i16 %3, ptr %12, align 2, !tbaa !9
  store i16 %4, ptr %13, align 2, !tbaa !9
  store i8 %5, ptr %14, align 1, !tbaa !11
  store i8 %6, ptr %15, align 1, !tbaa !11
  store i8 %7, ptr %16, align 1, !tbaa !11
  %45 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %46 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %10, ptr noundef nonnull align 2 dereferenceable(2) %12)
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #4
  %47 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %48 = sub i32 %47, 1
  %49 = trunc i32 %48 to i16
  store i16 %49, ptr %18, align 2, !tbaa !9
  %50 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %46, ptr noundef nonnull align 2 dereferenceable(2) %18)
  %51 = load i16, ptr %50, align 2, !tbaa !9
  %52 = zext i16 %51 to i32
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #4
  store i32 %52, ptr %17, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %53 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %10, ptr noundef nonnull align 2 dereferenceable(2) %12)
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #4
  %54 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %55 = sub i32 %54, 1
  %56 = trunc i32 %55 to i16
  store i16 %56, ptr %20, align 2, !tbaa !9
  %57 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %53, ptr noundef nonnull align 2 dereferenceable(2) %20)
  %58 = load i16, ptr %57, align 2, !tbaa !9
  %59 = zext i16 %58 to i32
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #4
  store i32 %59, ptr %19, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %60 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %11, ptr noundef nonnull align 2 dereferenceable(2) %13)
  call void @llvm.lifetime.start.p0(i64 2, ptr %22) #4
  %61 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %62 = sub i32 %61, 1
  %63 = trunc i32 %62 to i16
  store i16 %63, ptr %22, align 2, !tbaa !9
  %64 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %60, ptr noundef nonnull align 2 dereferenceable(2) %22)
  %65 = load i16, ptr %64, align 2, !tbaa !9
  %66 = zext i16 %65 to i32
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #4
  store i32 %66, ptr %21, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %67 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %11, ptr noundef nonnull align 2 dereferenceable(2) %13)
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #4
  %68 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %69 = sub i32 %68, 1
  %70 = trunc i32 %69 to i16
  store i16 %70, ptr %24, align 2, !tbaa !9
  %71 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %67, ptr noundef nonnull align 2 dereferenceable(2) %24)
  %72 = load i16, ptr %71, align 2, !tbaa !9
  %73 = zext i16 %72 to i32
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #4
  store i32 %73, ptr %23, align 4, !tbaa !12
  %74 = load i32, ptr %19, align 4, !tbaa !12
  %75 = load i32, ptr %17, align 4, !tbaa !12
  %76 = sub nsw i32 %74, %75
  %77 = icmp slt i32 %76, 4
  br i1 %77, label %78, label %90

78:                                               ; preds = %8
  %79 = load i32, ptr %17, align 4, !tbaa !12
  %80 = trunc i32 %79 to i16
  %81 = load i32, ptr %21, align 4, !tbaa !12
  %82 = trunc i32 %81 to i16
  %83 = load i32, ptr %19, align 4, !tbaa !12
  %84 = trunc i32 %83 to i16
  %85 = load i32, ptr %23, align 4, !tbaa !12
  %86 = trunc i32 %85 to i16
  %87 = load i8, ptr %14, align 1, !tbaa !11
  %88 = load i8, ptr %15, align 1, !tbaa !11
  %89 = load i8, ptr %16, align 1, !tbaa !11
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %45, i16 noundef zeroext %80, i16 noundef zeroext %82, i16 noundef zeroext %84, i16 noundef zeroext %86, i8 noundef zeroext %87, i8 noundef zeroext %88, i8 noundef zeroext %89)
  store i32 1, ptr %25, align 4
  br label %231

90:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %91 = load i32, ptr %17, align 4, !tbaa !12
  %92 = sub nsw i32 %91, 4
  store i32 %92, ptr %26, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %93 = load i32, ptr %19, align 4, !tbaa !12
  %94 = add nsw i32 %93, 4
  store i32 %94, ptr %27, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 2, ptr %28) #4
  %95 = load i8, ptr %14, align 1, !tbaa !11
  %96 = zext i8 %95 to i32
  %97 = sdiv i32 %96, 6
  %98 = trunc i32 %97 to i16
  store i16 %98, ptr %28, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %29) #4
  %99 = load i8, ptr %15, align 1, !tbaa !11
  %100 = zext i8 %99 to i32
  %101 = sdiv i32 %100, 6
  %102 = trunc i32 %101 to i16
  store i16 %102, ptr %29, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %30) #4
  %103 = load i8, ptr %16, align 1, !tbaa !11
  %104 = zext i8 %103 to i32
  %105 = sdiv i32 %104, 6
  %106 = trunc i32 %105 to i16
  store i16 %106, ptr %30, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %107 = load i32, ptr %26, align 4, !tbaa !12
  store i32 %107, ptr %31, align 4, !tbaa !12
  br label %108

108:                                              ; preds = %158, %90
  %109 = load i32, ptr %31, align 4, !tbaa !12
  %110 = load i32, ptr %17, align 4, !tbaa !12
  %111 = add nsw i32 %110, 1
  %112 = icmp sle i32 %109, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %108
  store i32 2, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  br label %161

114:                                              ; preds = %108
  %115 = load i32, ptr %31, align 4, !tbaa !12
  %116 = icmp sge i32 %115, 0
  br i1 %116, label %117, label %130

117:                                              ; preds = %114
  %118 = load i32, ptr %31, align 4, !tbaa !12
  %119 = trunc i32 %118 to i16
  %120 = load i16, ptr %11, align 2, !tbaa !9
  %121 = load i32, ptr %31, align 4, !tbaa !12
  %122 = trunc i32 %121 to i16
  %123 = load i16, ptr %13, align 2, !tbaa !9
  %124 = load i16, ptr %28, align 2, !tbaa !9
  %125 = trunc i16 %124 to i8
  %126 = load i16, ptr %29, align 2, !tbaa !9
  %127 = trunc i16 %126 to i8
  %128 = load i16, ptr %30, align 2, !tbaa !9
  %129 = trunc i16 %128 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %45, i16 noundef zeroext %119, i16 noundef zeroext %120, i16 noundef zeroext %122, i16 noundef zeroext %123, i8 noundef zeroext %125, i8 noundef zeroext %127, i8 noundef zeroext %129)
  br label %130

130:                                              ; preds = %117, %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  %131 = load i16, ptr %28, align 2, !tbaa !9
  %132 = zext i16 %131 to i32
  %133 = load i8, ptr %14, align 1, !tbaa !11
  %134 = zext i8 %133 to i32
  %135 = sdiv i32 %134, 6
  %136 = add nsw i32 %132, %135
  store i32 %136, ptr %32, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  store i32 255, ptr %33, align 4, !tbaa !12
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %138 = load i32, ptr %137, align 4, !tbaa !12
  %139 = trunc i32 %138 to i16
  store i16 %139, ptr %28, align 2, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  %140 = load i16, ptr %29, align 2, !tbaa !9
  %141 = zext i16 %140 to i32
  %142 = load i8, ptr %15, align 1, !tbaa !11
  %143 = zext i8 %142 to i32
  %144 = sdiv i32 %143, 6
  %145 = add nsw i32 %141, %144
  store i32 %145, ptr %34, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  store i32 255, ptr %35, align 4, !tbaa !12
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %147 = load i32, ptr %146, align 4, !tbaa !12
  %148 = trunc i32 %147 to i16
  store i16 %148, ptr %29, align 2, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  %149 = load i16, ptr %30, align 2, !tbaa !9
  %150 = zext i16 %149 to i32
  %151 = load i8, ptr %16, align 1, !tbaa !11
  %152 = zext i8 %151 to i32
  %153 = sdiv i32 %152, 6
  %154 = add nsw i32 %150, %153
  store i32 %154, ptr %36, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  store i32 255, ptr %37, align 4, !tbaa !12
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %156 = load i32, ptr %155, align 4, !tbaa !12
  %157 = trunc i32 %156 to i16
  store i16 %157, ptr %30, align 2, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  br label %158

158:                                              ; preds = %130
  %159 = load i32, ptr %31, align 4, !tbaa !12
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %31, align 4, !tbaa !12
  br label %108, !llvm.loop !14

161:                                              ; preds = %113
  %162 = load i32, ptr %17, align 4, !tbaa !12
  %163 = add nsw i32 %162, 2
  %164 = trunc i32 %163 to i16
  %165 = load i32, ptr %21, align 4, !tbaa !12
  %166 = trunc i32 %165 to i16
  %167 = load i32, ptr %19, align 4, !tbaa !12
  %168 = sub nsw i32 %167, 2
  %169 = trunc i32 %168 to i16
  %170 = load i32, ptr %23, align 4, !tbaa !12
  %171 = trunc i32 %170 to i16
  %172 = load i8, ptr %14, align 1, !tbaa !11
  %173 = load i8, ptr %15, align 1, !tbaa !11
  %174 = load i8, ptr %16, align 1, !tbaa !11
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %45, i16 noundef zeroext %164, i16 noundef zeroext %166, i16 noundef zeroext %169, i16 noundef zeroext %171, i8 noundef zeroext %172, i8 noundef zeroext %173, i8 noundef zeroext %174)
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  %175 = load i32, ptr %19, align 4, !tbaa !12
  %176 = sub nsw i32 %175, 1
  store i32 %176, ptr %38, align 4, !tbaa !12
  br label %177

177:                                              ; preds = %227, %161
  %178 = load i32, ptr %38, align 4, !tbaa !12
  %179 = load i32, ptr %27, align 4, !tbaa !12
  %180 = icmp slt i32 %178, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %177
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  br label %230

182:                                              ; preds = %177
  %183 = load i32, ptr %38, align 4, !tbaa !12
  %184 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %185 = icmp slt i32 %183, %184
  br i1 %185, label %186, label %199

186:                                              ; preds = %182
  %187 = load i32, ptr %38, align 4, !tbaa !12
  %188 = trunc i32 %187 to i16
  %189 = load i16, ptr %11, align 2, !tbaa !9
  %190 = load i32, ptr %38, align 4, !tbaa !12
  %191 = trunc i32 %190 to i16
  %192 = load i16, ptr %13, align 2, !tbaa !9
  %193 = load i16, ptr %28, align 2, !tbaa !9
  %194 = trunc i16 %193 to i8
  %195 = load i16, ptr %29, align 2, !tbaa !9
  %196 = trunc i16 %195 to i8
  %197 = load i16, ptr %30, align 2, !tbaa !9
  %198 = trunc i16 %197 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %45, i16 noundef zeroext %188, i16 noundef zeroext %189, i16 noundef zeroext %191, i16 noundef zeroext %192, i8 noundef zeroext %194, i8 noundef zeroext %196, i8 noundef zeroext %198)
  br label %199

199:                                              ; preds = %186, %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  %200 = load i16, ptr %28, align 2, !tbaa !9
  %201 = zext i16 %200 to i32
  %202 = load i8, ptr %14, align 1, !tbaa !11
  %203 = zext i8 %202 to i32
  %204 = sdiv i32 %203, 6
  %205 = sub nsw i32 %201, %204
  store i32 %205, ptr %39, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  store i32 0, ptr %40, align 4, !tbaa !12
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40)
  %207 = load i32, ptr %206, align 4, !tbaa !12
  %208 = trunc i32 %207 to i16
  store i16 %208, ptr %28, align 2, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  %209 = load i16, ptr %29, align 2, !tbaa !9
  %210 = zext i16 %209 to i32
  %211 = load i8, ptr %15, align 1, !tbaa !11
  %212 = zext i8 %211 to i32
  %213 = sdiv i32 %212, 6
  %214 = sub nsw i32 %210, %213
  store i32 %214, ptr %41, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #4
  store i32 0, ptr %42, align 4, !tbaa !12
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %41, ptr noundef nonnull align 4 dereferenceable(4) %42)
  %216 = load i32, ptr %215, align 4, !tbaa !12
  %217 = trunc i32 %216 to i16
  store i16 %217, ptr %29, align 2, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  %218 = load i16, ptr %30, align 2, !tbaa !9
  %219 = zext i16 %218 to i32
  %220 = load i8, ptr %16, align 1, !tbaa !11
  %221 = zext i8 %220 to i32
  %222 = sdiv i32 %221, 6
  %223 = sub nsw i32 %219, %222
  store i32 %223, ptr %43, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  store i32 0, ptr %44, align 4, !tbaa !12
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
  %225 = load i32, ptr %224, align 4, !tbaa !12
  %226 = trunc i32 %225 to i16
  store i16 %226, ptr %30, align 2, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  br label %227

227:                                              ; preds = %199
  %228 = load i32, ptr %38, align 4, !tbaa !12
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %38, align 4, !tbaa !12
  br label %177, !llvm.loop !16

230:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 2, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  store i32 0, ptr %25, align 4
  br label %231

231:                                              ; preds = %230, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %232 = load i32, ptr %25, align 4
  switch i32 %232, label %234 [
    i32 0, label %233
    i32 1, label %233
  ]

233:                                              ; preds = %231, %231
  ret void

234:                                              ; preds = %231
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint 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 = !{!"short", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24), i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9ImageDataI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %1, i16 noundef zeroext %2, i16 noundef zeroext %3, i16 noundef zeroext %4, i8 noundef zeroext %5, i8 noundef zeroext %6, i8 noundef zeroext %7) local_unnamed_addr #2 align 2 {
  %9 = alloca i16, align 2
  %10 = alloca i16, align 2
  %11 = alloca i16, align 2
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  %15 = alloca i16, align 2
  %16 = alloca i16, align 2
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %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 i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store i16 %1, ptr %9, align 2, !tbaa !5
  store i16 %2, ptr %10, align 2, !tbaa !5
  store i16 %3, ptr %11, align 2, !tbaa !5
  store i16 %4, ptr %12, align 2, !tbaa !5
  %29 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %9, ptr noundef nonnull align 2 dereferenceable(2) %11)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %13) #4
  %30 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %31 = trunc i32 %30 to i16
  %32 = add i16 %31, -1
  store i16 %32, ptr %13, align 2, !tbaa !5
  %33 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %29, ptr noundef nonnull align 2 dereferenceable(2) %13)
  %34 = load i16, ptr %33, align 2, !tbaa !5
  %35 = zext i16 %34 to i32
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %13) #4
  %36 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %9, ptr noundef nonnull align 2 dereferenceable(2) %11)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %14) #4
  %37 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %38 = trunc i32 %37 to i16
  %39 = add i16 %38, -1
  store i16 %39, ptr %14, align 2, !tbaa !5
  %40 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %36, ptr noundef nonnull align 2 dereferenceable(2) %14)
  %41 = load i16, ptr %40, align 2, !tbaa !5
  %42 = zext i16 %41 to i32
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %14) #4
  %43 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %10, ptr noundef nonnull align 2 dereferenceable(2) %12)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %15) #4
  %44 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %45 = trunc i32 %44 to i16
  %46 = add i16 %45, -1
  store i16 %46, ptr %15, align 2, !tbaa !5
  %47 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %43, ptr noundef nonnull align 2 dereferenceable(2) %15)
  %48 = load i16, ptr %47, align 2, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %15) #4
  %49 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %10, ptr noundef nonnull align 2 dereferenceable(2) %12)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %16) #4
  %50 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %51 = trunc i32 %50 to i16
  %52 = add i16 %51, -1
  store i16 %52, ptr %16, align 2, !tbaa !5
  %53 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %49, ptr noundef nonnull align 2 dereferenceable(2) %16)
  %54 = load i16, ptr %53, align 2, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %16) #4
  %55 = sub nsw i32 %42, %35
  %56 = icmp slt i32 %55, 4
  br i1 %56, label %57, label %58

57:                                               ; preds = %8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %34, i16 noundef zeroext %48, i16 noundef zeroext %41, i16 noundef zeroext %54, i8 noundef zeroext %5, i8 noundef zeroext %6, i8 noundef zeroext %7)
  br label %.loopexit

58:                                               ; preds = %8
  %59 = udiv i8 %5, 6
  %60 = zext nneg i8 %59 to i32
  %61 = udiv i8 %6, 6
  %62 = zext nneg i8 %61 to i32
  %63 = udiv i8 %7, 6
  %64 = zext nneg i8 %63 to i32
  %65 = icmp ugt i16 %34, 3
  br i1 %65, label %66, label %70

66:                                               ; preds = %58
  %67 = add i16 %34, -4
  %68 = load i16, ptr %10, align 2, !tbaa !5
  %69 = load i16, ptr %12, align 2, !tbaa !5
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %67, i16 noundef zeroext %68, i16 noundef zeroext %67, i16 noundef zeroext %69, i8 noundef zeroext %59, i8 noundef zeroext %61, i8 noundef zeroext %63)
  br label %70

70:                                               ; preds = %66, %58
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  %narrow = shl nuw nsw i8 %59, 1
  %71 = zext nneg i8 %narrow to i32
  store i32 %71, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  store i32 255, ptr %18, align 4, !tbaa !9
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %73 = load i32, ptr %72, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  %narrow69 = shl nuw nsw i8 %61, 1
  %74 = zext nneg i8 %narrow69 to i32
  store i32 %74, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  store i32 255, ptr %20, align 4, !tbaa !9
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %76 = load i32, ptr %75, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #4
  %narrow70 = shl nuw nsw i8 %63, 1
  %77 = zext nneg i8 %narrow70 to i32
  store i32 %77, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #4
  store i32 255, ptr %22, align 4, !tbaa !9
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %79 = load i32, ptr %78, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #4
  %80 = icmp ugt i16 %34, 2
  br i1 %80, label %81, label %88

81:                                               ; preds = %70
  %82 = add i16 %34, -3
  %83 = load i16, ptr %10, align 2, !tbaa !5
  %84 = load i16, ptr %12, align 2, !tbaa !5
  %85 = trunc i32 %73 to i8
  %86 = trunc i32 %76 to i8
  %87 = trunc i32 %79 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %82, i16 noundef zeroext %83, i16 noundef zeroext %82, i16 noundef zeroext %84, i8 noundef zeroext %85, i8 noundef zeroext %86, i8 noundef zeroext %87)
  br label %88

88:                                               ; preds = %81, %70
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  %89 = and i32 %73, 65535
  %90 = add nuw nsw i32 %89, %60
  store i32 %90, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  store i32 255, ptr %18, align 4, !tbaa !9
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %92 = load i32, ptr %91, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  %93 = and i32 %76, 65535
  %94 = add nuw nsw i32 %93, %62
  store i32 %94, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  store i32 255, ptr %20, align 4, !tbaa !9
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %96 = load i32, ptr %95, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #4
  %97 = and i32 %79, 65535
  %98 = add nuw nsw i32 %97, %64
  store i32 %98, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #4
  store i32 255, ptr %22, align 4, !tbaa !9
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %100 = load i32, ptr %99, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #4
  %101 = icmp ugt i16 %34, 1
  br i1 %101, label %102, label %109

102:                                              ; preds = %88
  %103 = add i16 %34, -2
  %104 = load i16, ptr %10, align 2, !tbaa !5
  %105 = load i16, ptr %12, align 2, !tbaa !5
  %106 = trunc i32 %92 to i8
  %107 = trunc i32 %96 to i8
  %108 = trunc i32 %100 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %103, i16 noundef zeroext %104, i16 noundef zeroext %103, i16 noundef zeroext %105, i8 noundef zeroext %106, i8 noundef zeroext %107, i8 noundef zeroext %108)
  br label %109

109:                                              ; preds = %102, %88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  %110 = and i32 %92, 65535
  %111 = add nuw nsw i32 %110, %60
  store i32 %111, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  store i32 255, ptr %18, align 4, !tbaa !9
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %113 = load i32, ptr %112, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  %114 = and i32 %96, 65535
  %115 = add nuw nsw i32 %114, %62
  store i32 %115, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  store i32 255, ptr %20, align 4, !tbaa !9
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %117 = load i32, ptr %116, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #4
  %118 = and i32 %100, 65535
  %119 = add nuw nsw i32 %118, %64
  store i32 %119, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #4
  store i32 255, ptr %22, align 4, !tbaa !9
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %121 = load i32, ptr %120, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #4
  %.not = icmp eq i16 %34, 0
  br i1 %.not, label %129, label %122

122:                                              ; preds = %109
  %123 = add i16 %34, -1
  %124 = load i16, ptr %10, align 2, !tbaa !5
  %125 = load i16, ptr %12, align 2, !tbaa !5
  %126 = trunc i32 %113 to i8
  %127 = trunc i32 %117 to i8
  %128 = trunc i32 %121 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %123, i16 noundef zeroext %124, i16 noundef zeroext %123, i16 noundef zeroext %125, i8 noundef zeroext %126, i8 noundef zeroext %127, i8 noundef zeroext %128)
  br label %129

129:                                              ; preds = %122, %109
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  %130 = and i32 %113, 65535
  %131 = add nuw nsw i32 %130, %60
  store i32 %131, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  store i32 255, ptr %18, align 4, !tbaa !9
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %133 = load i32, ptr %132, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  %134 = and i32 %117, 65535
  %135 = add nuw nsw i32 %134, %62
  store i32 %135, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  store i32 255, ptr %20, align 4, !tbaa !9
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %137 = load i32, ptr %136, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #4
  %138 = and i32 %121, 65535
  %139 = add nuw nsw i32 %138, %64
  store i32 %139, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #4
  store i32 255, ptr %22, align 4, !tbaa !9
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %141 = load i32, ptr %140, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #4
  %142 = load i16, ptr %10, align 2, !tbaa !5
  %143 = load i16, ptr %12, align 2, !tbaa !5
  %144 = trunc i32 %133 to i8
  %145 = trunc i32 %137 to i8
  %146 = trunc i32 %141 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %34, i16 noundef zeroext %142, i16 noundef zeroext %34, i16 noundef zeroext %143, i8 noundef zeroext %144, i8 noundef zeroext %145, i8 noundef zeroext %146)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  %147 = and i32 %133, 65535
  %148 = add nuw nsw i32 %147, %60
  store i32 %148, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  store i32 255, ptr %18, align 4, !tbaa !9
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %150 = load i32, ptr %149, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  %151 = and i32 %137, 65535
  %152 = add nuw nsw i32 %151, %62
  store i32 %152, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  store i32 255, ptr %20, align 4, !tbaa !9
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %154 = load i32, ptr %153, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #4
  %155 = and i32 %141, 65535
  %156 = add nuw nsw i32 %155, %64
  store i32 %156, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #4
  store i32 255, ptr %22, align 4, !tbaa !9
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %158 = load i32, ptr %157, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #4
  %159 = add i16 %34, 1
  %160 = load i16, ptr %10, align 2, !tbaa !5
  %161 = load i16, ptr %12, align 2, !tbaa !5
  %162 = trunc i32 %150 to i8
  %163 = trunc i32 %154 to i8
  %164 = trunc i32 %158 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %159, i16 noundef zeroext %160, i16 noundef zeroext %159, i16 noundef zeroext %161, i8 noundef zeroext %162, i8 noundef zeroext %163, i8 noundef zeroext %164)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  %165 = and i32 %150, 65535
  %166 = add nuw nsw i32 %165, %60
  store i32 %166, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  store i32 255, ptr %18, align 4, !tbaa !9
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %168 = load i32, ptr %167, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  %169 = and i32 %154, 65535
  %170 = add nuw nsw i32 %169, %62
  store i32 %170, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  store i32 255, ptr %20, align 4, !tbaa !9
  %171 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %172 = load i32, ptr %171, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #4
  %173 = and i32 %158, 65535
  %174 = add nuw nsw i32 %173, %64
  store i32 %174, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #4
  store i32 255, ptr %22, align 4, !tbaa !9
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %176 = load i32, ptr %175, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #4
  %177 = add i16 %34, 2
  %178 = add i16 %41, -2
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %177, i16 noundef zeroext %48, i16 noundef zeroext %178, i16 noundef zeroext %54, i8 noundef zeroext %5, i8 noundef zeroext %6, i8 noundef zeroext %7)
  %179 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not71 = icmp slt i32 %179, %42
  br i1 %.not71, label %187, label %180

180:                                              ; preds = %129
  %181 = add i16 %41, -1
  %182 = load i16, ptr %10, align 2, !tbaa !5
  %183 = load i16, ptr %12, align 2, !tbaa !5
  %184 = trunc i32 %168 to i8
  %185 = trunc i32 %172 to i8
  %186 = trunc i32 %176 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %181, i16 noundef zeroext %182, i16 noundef zeroext %181, i16 noundef zeroext %183, i8 noundef zeroext %184, i8 noundef zeroext %185, i8 noundef zeroext %186)
  br label %187

187:                                              ; preds = %180, %129
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  %188 = and i32 %168, 65535
  %189 = sub nsw i32 %188, %60
  store i32 %189, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %191 = load i32, ptr %190, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #4
  %192 = and i32 %172, 65535
  %193 = sub nsw i32 %192, %62
  store i32 %193, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  %194 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %195 = load i32, ptr %194, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #4
  %196 = and i32 %176, 65535
  %197 = sub nsw i32 %196, %64
  store i32 %197, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %199 = load i32, ptr %198, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #4
  %200 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %201 = icmp sgt i32 %200, %42
  br i1 %201, label %202, label %208

202:                                              ; preds = %187
  %203 = load i16, ptr %10, align 2, !tbaa !5
  %204 = load i16, ptr %12, align 2, !tbaa !5
  %205 = trunc i32 %191 to i8
  %206 = trunc i32 %195 to i8
  %207 = trunc i32 %199 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %41, i16 noundef zeroext %203, i16 noundef zeroext %41, i16 noundef zeroext %204, i8 noundef zeroext %205, i8 noundef zeroext %206, i8 noundef zeroext %207)
  br label %208

208:                                              ; preds = %202, %187
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  %209 = and i32 %191, 65535
  %210 = sub nsw i32 %209, %60
  store i32 %210, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %212 = load i32, ptr %211, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #4
  %213 = and i32 %195, 65535
  %214 = sub nsw i32 %213, %62
  store i32 %214, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %216 = load i32, ptr %215, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #4
  %217 = and i32 %199, 65535
  %218 = sub nsw i32 %217, %64
  store i32 %218, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %220 = load i32, ptr %219, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #4
  %221 = add nuw nsw i32 %42, 1
  %222 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %223 = icmp slt i32 %221, %222
  br i1 %223, label %224, label %231

224:                                              ; preds = %208
  %225 = trunc i32 %221 to i16
  %226 = load i16, ptr %10, align 2, !tbaa !5
  %227 = load i16, ptr %12, align 2, !tbaa !5
  %228 = trunc i32 %212 to i8
  %229 = trunc i32 %216 to i8
  %230 = trunc i32 %220 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %225, i16 noundef zeroext %226, i16 noundef zeroext %225, i16 noundef zeroext %227, i8 noundef zeroext %228, i8 noundef zeroext %229, i8 noundef zeroext %230)
  br label %231

231:                                              ; preds = %224, %208
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  %232 = and i32 %212, 65535
  %233 = sub nsw i32 %232, %60
  store i32 %233, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %235 = load i32, ptr %234, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #4
  %236 = and i32 %216, 65535
  %237 = sub nsw i32 %236, %62
  store i32 %237, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  %238 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %239 = load i32, ptr %238, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #4
  %240 = and i32 %220, 65535
  %241 = sub nsw i32 %240, %64
  store i32 %241, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %243 = load i32, ptr %242, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #4
  %244 = add nuw nsw i32 %42, 2
  %245 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %246 = icmp slt i32 %244, %245
  br i1 %246, label %247, label %254

247:                                              ; preds = %231
  %248 = trunc i32 %244 to i16
  %249 = load i16, ptr %10, align 2, !tbaa !5
  %250 = load i16, ptr %12, align 2, !tbaa !5
  %251 = trunc i32 %235 to i8
  %252 = trunc i32 %239 to i8
  %253 = trunc i32 %243 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %248, i16 noundef zeroext %249, i16 noundef zeroext %248, i16 noundef zeroext %250, i8 noundef zeroext %251, i8 noundef zeroext %252, i8 noundef zeroext %253)
  br label %254

254:                                              ; preds = %247, %231
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  %255 = and i32 %235, 65535
  %256 = sub nsw i32 %255, %60
  store i32 %256, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  %257 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %258 = load i32, ptr %257, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #4
  %259 = and i32 %239, 65535
  %260 = sub nsw i32 %259, %62
  store i32 %260, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %262 = load i32, ptr %261, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #4
  %263 = and i32 %243, 65535
  %264 = sub nsw i32 %263, %64
  store i32 %264, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  %265 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %266 = load i32, ptr %265, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #4
  %267 = add nuw nsw i32 %42, 3
  %268 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %269 = icmp slt i32 %267, %268
  br i1 %269, label %270, label %.loopexit.loopexit

270:                                              ; preds = %254
  %271 = trunc i32 %267 to i16
  %272 = load i16, ptr %10, align 2, !tbaa !5
  %273 = load i16, ptr %12, align 2, !tbaa !5
  %274 = trunc i32 %258 to i8
  %275 = trunc i32 %262 to i8
  %276 = trunc i32 %266 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %271, i16 noundef zeroext %272, i16 noundef zeroext %271, i16 noundef zeroext %273, i8 noundef zeroext %274, i8 noundef zeroext %275, i8 noundef zeroext %276)
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %270, %254
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  %277 = and i32 %258, 65535
  %278 = sub nsw i32 %277, %60
  store i32 %278, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  %279 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #4
  %280 = and i32 %262, 65535
  %281 = sub nsw i32 %280, %62
  store i32 %281, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  %282 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #4
  %283 = and i32 %266, 65535
  %284 = sub nsw i32 %283, %64
  store i32 %284, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  %285 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %57
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint 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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass