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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9ImageDataI8ColorRgbE12gradientVBoxEtttthhh(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 %23, align 4, !tbaa !12
  %75 = load i32, ptr %21, 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 %229

90:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %91 = load i32, ptr %21, 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 %23, 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 %21, 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 i16, ptr %10, align 2, !tbaa !9
  %119 = load i32, ptr %31, align 4, !tbaa !12
  %120 = trunc i32 %119 to i16
  %121 = load i16, ptr %12, align 2, !tbaa !9
  %122 = load i32, ptr %31, align 4, !tbaa !12
  %123 = trunc i32 %122 to i16
  %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 %118, i16 noundef zeroext %120, i16 noundef zeroext %121, 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 i16, ptr %10, align 2, !tbaa !9
  %163 = load i32, ptr %21, align 4, !tbaa !12
  %164 = add nsw i32 %163, 2
  %165 = trunc i32 %164 to i16
  %166 = load i16, ptr %12, align 2, !tbaa !9
  %167 = load i32, ptr %23, align 4, !tbaa !12
  %168 = sub nsw i32 %167, 2
  %169 = trunc i32 %168 to i16
  %170 = load i8, ptr %14, align 1, !tbaa !11
  %171 = load i8, ptr %15, align 1, !tbaa !11
  %172 = load i8, ptr %16, align 1, !tbaa !11
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %45, i16 noundef zeroext %162, i16 noundef zeroext %165, i16 noundef zeroext %166, i16 noundef zeroext %169, i8 noundef zeroext %170, i8 noundef zeroext %171, i8 noundef zeroext %172)
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  %173 = load i32, ptr %23, align 4, !tbaa !12
  %174 = sub nsw i32 %173, 1
  store i32 %174, ptr %38, align 4, !tbaa !12
  br label %175

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

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

180:                                              ; preds = %175
  %181 = load i32, ptr %38, align 4, !tbaa !12
  %182 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %183 = icmp slt i32 %181, %182
  br i1 %183, label %184, label %197

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

197:                                              ; preds = %184, %180
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  %198 = load i16, ptr %28, align 2, !tbaa !9
  %199 = zext i16 %198 to i32
  %200 = load i8, ptr %14, align 1, !tbaa !11
  %201 = zext i8 %200 to i32
  %202 = sdiv i32 %201, 6
  %203 = sub nsw i32 %199, %202
  store i32 %203, 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
  %204 = 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)
  %205 = load i32, ptr %204, align 4, !tbaa !12
  %206 = trunc i32 %205 to i16
  store i16 %206, 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
  %207 = load i16, ptr %29, align 2, !tbaa !9
  %208 = zext i16 %207 to i32
  %209 = load i8, ptr %15, align 1, !tbaa !11
  %210 = zext i8 %209 to i32
  %211 = sdiv i32 %210, 6
  %212 = sub nsw i32 %208, %211
  store i32 %212, 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
  %213 = 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)
  %214 = load i32, ptr %213, align 4, !tbaa !12
  %215 = trunc i32 %214 to i16
  store i16 %215, 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
  %216 = load i16, ptr %30, align 2, !tbaa !9
  %217 = zext i16 %216 to i32
  %218 = load i8, ptr %16, align 1, !tbaa !11
  %219 = zext i8 %218 to i32
  %220 = sdiv i32 %219, 6
  %221 = sub nsw i32 %217, %220
  store i32 %221, 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
  %222 = 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)
  %223 = load i32, ptr %222, align 4, !tbaa !12
  %224 = trunc i32 %223 to i16
  store i16 %224, 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 %225

225:                                              ; preds = %197
  %226 = load i32, ptr %38, align 4, !tbaa !12
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %38, align 4, !tbaa !12
  br label %175, !llvm.loop !16

228:                                              ; preds = %179
  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 %229

229:                                              ; preds = %228, %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
  %230 = load i32, ptr %25, align 4
  switch i32 %230, label %232 [
    i32 0, label %231
    i32 1, label %231
  ]

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

232:                                              ; preds = %229
  unreachable
}

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: 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9ImageDataI8ColorRgbE12gradientVBoxEtttthhh(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
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %13) #4
  %35 = 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
  %36 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %37 = trunc i32 %36 to i16
  %38 = add i16 %37, -1
  store i16 %38, ptr %14, align 2, !tbaa !5
  %39 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %35, ptr noundef nonnull align 2 dereferenceable(2) %14)
  %40 = load i16, ptr %39, align 2, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %14) #4
  %41 = 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
  %42 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %43 = trunc i32 %42 to i16
  %44 = add i16 %43, -1
  store i16 %44, ptr %15, align 2, !tbaa !5
  %45 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %41, ptr noundef nonnull align 2 dereferenceable(2) %15)
  %46 = load i16, ptr %45, align 2, !tbaa !5
  %47 = zext i16 %46 to i32
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %15) #4
  %48 = 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
  %49 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %50 = trunc i32 %49 to i16
  %51 = add i16 %50, -1
  store i16 %51, ptr %16, align 2, !tbaa !5
  %52 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %48, ptr noundef nonnull align 2 dereferenceable(2) %16)
  %53 = load i16, ptr %52, align 2, !tbaa !5
  %54 = zext i16 %53 to i32
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %16) #4
  %55 = sub nsw i32 %54, %47
  %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 %46, i16 noundef zeroext %40, i16 noundef zeroext %53, 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 %46, 3
  br i1 %65, label %66, label %70

66:                                               ; preds = %58
  %67 = add i16 %46, -4
  %68 = load i16, ptr %9, align 2, !tbaa !5
  %69 = load i16, ptr %11, align 2, !tbaa !5
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %68, i16 noundef zeroext %67, i16 noundef zeroext %69, i16 noundef zeroext %67, 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
  %narrow67 = shl nuw nsw i8 %61, 1
  %74 = zext nneg i8 %narrow67 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
  %narrow68 = shl nuw nsw i8 %63, 1
  %77 = zext nneg i8 %narrow68 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 %46, 2
  br i1 %80, label %81, label %88

81:                                               ; preds = %70
  %82 = add i16 %46, -3
  %83 = load i16, ptr %9, align 2, !tbaa !5
  %84 = load i16, ptr %11, 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 %83, i16 noundef zeroext %82, i16 noundef zeroext %84, i16 noundef zeroext %82, 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 %46, 1
  br i1 %101, label %102, label %109

102:                                              ; preds = %88
  %103 = add i16 %46, -2
  %104 = load i16, ptr %9, align 2, !tbaa !5
  %105 = load i16, ptr %11, 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 %104, i16 noundef zeroext %103, i16 noundef zeroext %105, i16 noundef zeroext %103, 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 %46, 0
  br i1 %.not, label %129, label %122

122:                                              ; preds = %109
  %123 = add i16 %46, -1
  %124 = load i16, ptr %9, align 2, !tbaa !5
  %125 = load i16, ptr %11, 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 %124, i16 noundef zeroext %123, i16 noundef zeroext %125, i16 noundef zeroext %123, 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 %9, align 2, !tbaa !5
  %143 = load i16, ptr %11, 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 %142, i16 noundef zeroext %46, i16 noundef zeroext %143, i16 noundef zeroext %46, 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 %46, 1
  %160 = load i16, ptr %9, align 2, !tbaa !5
  %161 = load i16, ptr %11, 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 %160, i16 noundef zeroext %159, i16 noundef zeroext %161, i16 noundef zeroext %159, 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 = load i16, ptr %9, align 2, !tbaa !5
  %178 = add i16 %46, 2
  %179 = load i16, ptr %11, align 2, !tbaa !5
  %180 = add i16 %53, -2
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %177, i16 noundef zeroext %178, i16 noundef zeroext %179, i16 noundef zeroext %180, i8 noundef zeroext %5, i8 noundef zeroext %6, i8 noundef zeroext %7)
  %181 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not69 = icmp slt i32 %181, %54
  br i1 %.not69, label %189, label %182

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

189:                                              ; preds = %182, %129
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  %190 = and i32 %168, 65535
  %191 = sub nsw i32 %190, %60
  store i32 %191, 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
  %192 = 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)
  %193 = load i32, ptr %192, 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
  %194 = and i32 %172, 65535
  %195 = sub nsw i32 %194, %62
  store i32 %195, 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
  %196 = 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)
  %197 = load i32, ptr %196, 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
  %198 = and i32 %176, 65535
  %199 = sub nsw i32 %198, %64
  store i32 %199, 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
  %200 = 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)
  %201 = load i32, ptr %200, 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
  %202 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %203 = icmp sgt i32 %202, %54
  br i1 %203, label %204, label %210

204:                                              ; preds = %189
  %205 = load i16, ptr %9, align 2, !tbaa !5
  %206 = load i16, ptr %11, align 2, !tbaa !5
  %207 = trunc i32 %193 to i8
  %208 = trunc i32 %197 to i8
  %209 = trunc i32 %201 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %205, i16 noundef zeroext %53, i16 noundef zeroext %206, i16 noundef zeroext %53, i8 noundef zeroext %207, i8 noundef zeroext %208, i8 noundef zeroext %209)
  br label %210

210:                                              ; preds = %204, %189
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  %211 = and i32 %193, 65535
  %212 = sub nsw i32 %211, %60
  store i32 %212, 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
  %213 = 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)
  %214 = load i32, ptr %213, 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
  %215 = and i32 %197, 65535
  %216 = sub nsw i32 %215, %62
  store i32 %216, 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
  %217 = 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)
  %218 = load i32, ptr %217, 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
  %219 = and i32 %201, 65535
  %220 = sub nsw i32 %219, %64
  store i32 %220, 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
  %221 = 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)
  %222 = load i32, ptr %221, 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
  %223 = add nuw nsw i32 %54, 1
  %224 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %225 = icmp slt i32 %223, %224
  br i1 %225, label %226, label %233

226:                                              ; preds = %210
  %227 = load i16, ptr %9, align 2, !tbaa !5
  %228 = trunc i32 %223 to i16
  %229 = load i16, ptr %11, align 2, !tbaa !5
  %230 = trunc i32 %214 to i8
  %231 = trunc i32 %218 to i8
  %232 = trunc i32 %222 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %227, i16 noundef zeroext %228, i16 noundef zeroext %229, i16 noundef zeroext %228, i8 noundef zeroext %230, i8 noundef zeroext %231, i8 noundef zeroext %232)
  br label %233

233:                                              ; preds = %226, %210
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  %234 = and i32 %214, 65535
  %235 = sub nsw i32 %234, %60
  store i32 %235, 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
  %236 = 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)
  %237 = load i32, ptr %236, 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
  %238 = and i32 %218, 65535
  %239 = sub nsw i32 %238, %62
  store i32 %239, 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
  %240 = 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)
  %241 = load i32, ptr %240, 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
  %242 = and i32 %222, 65535
  %243 = sub nsw i32 %242, %64
  store i32 %243, 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
  %244 = 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)
  %245 = load i32, ptr %244, 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
  %246 = add nuw nsw i32 %54, 2
  %247 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %248 = icmp slt i32 %246, %247
  br i1 %248, label %249, label %256

249:                                              ; preds = %233
  %250 = load i16, ptr %9, align 2, !tbaa !5
  %251 = trunc i32 %246 to i16
  %252 = load i16, ptr %11, align 2, !tbaa !5
  %253 = trunc i32 %237 to i8
  %254 = trunc i32 %241 to i8
  %255 = trunc i32 %245 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %250, i16 noundef zeroext %251, i16 noundef zeroext %252, i16 noundef zeroext %251, i8 noundef zeroext %253, i8 noundef zeroext %254, i8 noundef zeroext %255)
  br label %256

256:                                              ; preds = %249, %233
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  %257 = and i32 %237, 65535
  %258 = sub nsw i32 %257, %60
  store i32 %258, 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
  %259 = 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)
  %260 = load i32, ptr %259, 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
  %261 = and i32 %241, 65535
  %262 = sub nsw i32 %261, %62
  store i32 %262, 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
  %263 = 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)
  %264 = load i32, ptr %263, 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
  %265 = and i32 %245, 65535
  %266 = sub nsw i32 %265, %64
  store i32 %266, 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
  %267 = 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)
  %268 = load i32, ptr %267, 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
  %269 = add nuw nsw i32 %54, 3
  %270 = call noundef i32 @_ZNK9ImageDataI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %271 = icmp slt i32 %269, %270
  br i1 %271, label %272, label %.loopexit.loopexit

272:                                              ; preds = %256
  %273 = load i16, ptr %9, align 2, !tbaa !5
  %274 = trunc i32 %269 to i16
  %275 = load i16, ptr %11, align 2, !tbaa !5
  %276 = trunc i32 %260 to i8
  %277 = trunc i32 %264 to i8
  %278 = trunc i32 %268 to i8
  call void @_ZN9ImageDataI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(24) %0, i16 noundef zeroext %273, i16 noundef zeroext %274, i16 noundef zeroext %275, i16 noundef zeroext %274, i8 noundef zeroext %276, i8 noundef zeroext %277, i8 noundef zeroext %278)
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %272, %256
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  %279 = and i32 %260, 65535
  %280 = sub nsw i32 %279, %60
  store i32 %280, 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
  %281 = 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
  %282 = and i32 %264, 65535
  %283 = sub nsw i32 %282, %62
  store i32 %283, 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
  %284 = 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
  %285 = and i32 %268, 65535
  %286 = sub nsw i32 %285, %64
  store i32 %286, 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
  %287 = 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
}

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