; LLVM IR from facebookresearch/habitat-sim :: src/deps/basis-universal/encoder (basisu_gpu_texture)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.basisu::color_rgba" = type { %union.anon }
%union.anon = type { [4 x i8] }
%struct.anon = type { i8, i8, i8, i8 }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu9bc1_block13get_low_colorEv(ptr noundef nonnull align 1 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu9bc1_block14get_high_colorEv(ptr noundef nonnull align 1 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu13unpack_bc1_nvEPKvPNS_10color_rgbaEb(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [4 x %"class.basisu::color_rgba"], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %21 = zext i1 %2 to i8
  store i8 %21, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %22, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = call noundef i32 @_ZNK6basisu9bc1_block13get_low_colorEv(ptr noundef nonnull align 1 dereferenceable(8) %23)
  store i32 %24, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call noundef i32 @_ZNK6basisu9bc1_block14get_high_colorEv(ptr noundef nonnull align 1 dereferenceable(8) %25)
  store i32 %26, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  %27 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i32 0, i32 0
  %28 = getelementptr inbounds %"class.basisu::color_rgba", ptr %27, i64 4
  br label %29

29:                                               ; preds = %29, %3
  %30 = phi ptr [ %27, %3 ], [ %31, %29 ]
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %30)
  %31 = getelementptr inbounds %"class.basisu::color_rgba", ptr %30, i64 1
  %32 = icmp eq ptr %31, %28
  br i1 %32, label %33, label %29

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %34 = load i32, ptr %8, align 4, !tbaa !11
  %35 = lshr i32 %34, 11
  %36 = and i32 %35, 31
  store i32 %36, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %37 = load i32, ptr %8, align 4, !tbaa !11
  %38 = lshr i32 %37, 5
  %39 = and i32 %38, 63
  store i32 %39, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %40 = load i32, ptr %8, align 4, !tbaa !11
  %41 = and i32 %40, 31
  store i32 %41, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %42 = load i32, ptr %9, align 4, !tbaa !11
  %43 = lshr i32 %42, 11
  %44 = and i32 %43, 31
  store i32 %44, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %45 = load i32, ptr %9, align 4, !tbaa !11
  %46 = lshr i32 %45, 5
  %47 = and i32 %46, 63
  store i32 %47, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %48 = load i32, ptr %9, align 4, !tbaa !11
  %49 = and i32 %48, 31
  store i32 %49, ptr %16, align 4, !tbaa !11
  %50 = load i32, ptr %13, align 4, !tbaa !11
  %51 = mul nsw i32 3, %50
  %52 = mul nsw i32 %51, 22
  %53 = sdiv i32 %52, 8
  %54 = trunc i32 %53 to i8
  %55 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 0
  %56 = getelementptr inbounds %"class.basisu::color_rgba", ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %struct.anon, ptr %56, i32 0, i32 2
  store i8 %54, ptr %57, align 2, !tbaa !13
  %58 = load i32, ptr %12, align 4, !tbaa !11
  %59 = shl i32 %58, 2
  %60 = load i32, ptr %12, align 4, !tbaa !11
  %61 = ashr i32 %60, 4
  %62 = or i32 %59, %61
  %63 = trunc i32 %62 to i8
  %64 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 0
  %65 = getelementptr inbounds %"class.basisu::color_rgba", ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds %struct.anon, ptr %65, i32 0, i32 1
  store i8 %63, ptr %66, align 1, !tbaa !13
  %67 = load i32, ptr %11, align 4, !tbaa !11
  %68 = mul nsw i32 3, %67
  %69 = mul nsw i32 %68, 22
  %70 = sdiv i32 %69, 8
  %71 = trunc i32 %70 to i8
  %72 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 0
  %73 = getelementptr inbounds %"class.basisu::color_rgba", ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds %struct.anon, ptr %73, i32 0, i32 0
  store i8 %71, ptr %74, align 16, !tbaa !13
  %75 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 0
  %76 = getelementptr inbounds %"class.basisu::color_rgba", ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds %struct.anon, ptr %76, i32 0, i32 3
  store i8 -1, ptr %77, align 1, !tbaa !13
  %78 = load i32, ptr %14, align 4, !tbaa !11
  %79 = mul nsw i32 3, %78
  %80 = mul nsw i32 %79, 22
  %81 = sdiv i32 %80, 8
  %82 = trunc i32 %81 to i8
  %83 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 1
  %84 = getelementptr inbounds %"class.basisu::color_rgba", ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds %struct.anon, ptr %84, i32 0, i32 0
  store i8 %82, ptr %85, align 4, !tbaa !13
  %86 = load i32, ptr %15, align 4, !tbaa !11
  %87 = shl i32 %86, 2
  %88 = load i32, ptr %15, align 4, !tbaa !11
  %89 = ashr i32 %88, 4
  %90 = or i32 %87, %89
  %91 = trunc i32 %90 to i8
  %92 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 1
  %93 = getelementptr inbounds %"class.basisu::color_rgba", ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.anon, ptr %93, i32 0, i32 1
  store i8 %91, ptr %94, align 1, !tbaa !13
  %95 = load i32, ptr %16, align 4, !tbaa !11
  %96 = mul nsw i32 3, %95
  %97 = mul nsw i32 %96, 22
  %98 = sdiv i32 %97, 8
  %99 = trunc i32 %98 to i8
  %100 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 1
  %101 = getelementptr inbounds %"class.basisu::color_rgba", ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds %struct.anon, ptr %101, i32 0, i32 2
  store i8 %99, ptr %102, align 2, !tbaa !13
  %103 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 1
  %104 = getelementptr inbounds %"class.basisu::color_rgba", ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %struct.anon, ptr %104, i32 0, i32 3
  store i8 -1, ptr %105, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %106 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 1
  %107 = getelementptr inbounds %"class.basisu::color_rgba", ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds %struct.anon, ptr %107, i32 0, i32 1
  %109 = load i8, ptr %108, align 1, !tbaa !13
  %110 = zext i8 %109 to i32
  %111 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 0
  %112 = getelementptr inbounds %"class.basisu::color_rgba", ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds %struct.anon, ptr %112, i32 0, i32 1
  %114 = load i8, ptr %113, align 1, !tbaa !13
  %115 = zext i8 %114 to i32
  %116 = sub nsw i32 %110, %115
  store i32 %116, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  store i8 0, ptr %18, align 1, !tbaa !9
  %117 = load i32, ptr %8, align 4, !tbaa !11
  %118 = load i32, ptr %9, align 4, !tbaa !11
  %119 = icmp ugt i32 %117, %118
  br i1 %119, label %120, label %203

120:                                              ; preds = %33
  %121 = load i32, ptr %11, align 4, !tbaa !11
  %122 = mul nsw i32 2, %121
  %123 = load i32, ptr %14, align 4, !tbaa !11
  %124 = add nsw i32 %122, %123
  %125 = mul nsw i32 %124, 22
  %126 = sdiv i32 %125, 8
  %127 = trunc i32 %126 to i8
  %128 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 2
  %129 = getelementptr inbounds %"class.basisu::color_rgba", ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds %struct.anon, ptr %129, i32 0, i32 0
  store i8 %127, ptr %130, align 8, !tbaa !13
  %131 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 0
  %132 = getelementptr inbounds %"class.basisu::color_rgba", ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds %struct.anon, ptr %132, i32 0, i32 1
  %134 = load i8, ptr %133, align 1, !tbaa !13
  %135 = zext i8 %134 to i32
  %136 = mul nsw i32 256, %135
  %137 = load i32, ptr %17, align 4, !tbaa !11
  %138 = sdiv i32 %137, 4
  %139 = add nsw i32 %136, %138
  %140 = add nsw i32 %139, 128
  %141 = load i32, ptr %17, align 4, !tbaa !11
  %142 = mul nsw i32 %141, 80
  %143 = add nsw i32 %140, %142
  %144 = sdiv i32 %143, 256
  %145 = trunc i32 %144 to i8
  %146 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 2
  %147 = getelementptr inbounds %"class.basisu::color_rgba", ptr %146, i32 0, i32 0
  %148 = getelementptr inbounds %struct.anon, ptr %147, i32 0, i32 1
  store i8 %145, ptr %148, align 1, !tbaa !13
  %149 = load i32, ptr %13, align 4, !tbaa !11
  %150 = mul nsw i32 2, %149
  %151 = load i32, ptr %16, align 4, !tbaa !11
  %152 = add nsw i32 %150, %151
  %153 = mul nsw i32 %152, 22
  %154 = sdiv i32 %153, 8
  %155 = trunc i32 %154 to i8
  %156 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 2
  %157 = getelementptr inbounds %"class.basisu::color_rgba", ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds %struct.anon, ptr %157, i32 0, i32 2
  store i8 %155, ptr %158, align 2, !tbaa !13
  %159 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 2
  %160 = getelementptr inbounds %"class.basisu::color_rgba", ptr %159, i32 0, i32 0
  %161 = getelementptr inbounds %struct.anon, ptr %160, i32 0, i32 3
  store i8 -1, ptr %161, align 1, !tbaa !13
  %162 = load i32, ptr %14, align 4, !tbaa !11
  %163 = mul nsw i32 2, %162
  %164 = load i32, ptr %11, align 4, !tbaa !11
  %165 = add nsw i32 %163, %164
  %166 = mul nsw i32 %165, 22
  %167 = sdiv i32 %166, 8
  %168 = trunc i32 %167 to i8
  %169 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 3
  %170 = getelementptr inbounds %"class.basisu::color_rgba", ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds %struct.anon, ptr %170, i32 0, i32 0
  store i8 %168, ptr %171, align 4, !tbaa !13
  %172 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 1
  %173 = getelementptr inbounds %"class.basisu::color_rgba", ptr %172, i32 0, i32 0
  %174 = getelementptr inbounds %struct.anon, ptr %173, i32 0, i32 1
  %175 = load i8, ptr %174, align 1, !tbaa !13
  %176 = zext i8 %175 to i32
  %177 = mul nsw i32 256, %176
  %178 = load i32, ptr %17, align 4, !tbaa !11
  %179 = sdiv i32 %178, 4
  %180 = sub nsw i32 %177, %179
  %181 = add nsw i32 %180, 128
  %182 = load i32, ptr %17, align 4, !tbaa !11
  %183 = mul nsw i32 %182, 80
  %184 = sub nsw i32 %181, %183
  %185 = sdiv i32 %184, 256
  %186 = trunc i32 %185 to i8
  %187 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 3
  %188 = getelementptr inbounds %"class.basisu::color_rgba", ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds %struct.anon, ptr %188, i32 0, i32 1
  store i8 %186, ptr %189, align 1, !tbaa !13
  %190 = load i32, ptr %16, align 4, !tbaa !11
  %191 = mul nsw i32 2, %190
  %192 = load i32, ptr %13, align 4, !tbaa !11
  %193 = add nsw i32 %191, %192
  %194 = mul nsw i32 %193, 22
  %195 = sdiv i32 %194, 8
  %196 = trunc i32 %195 to i8
  %197 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 3
  %198 = getelementptr inbounds %"class.basisu::color_rgba", ptr %197, i32 0, i32 0
  %199 = getelementptr inbounds %struct.anon, ptr %198, i32 0, i32 2
  store i8 %196, ptr %199, align 2, !tbaa !13
  %200 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 3
  %201 = getelementptr inbounds %"class.basisu::color_rgba", ptr %200, i32 0, i32 0
  %202 = getelementptr inbounds %struct.anon, ptr %201, i32 0, i32 3
  store i8 -1, ptr %202, align 1, !tbaa !13
  br label %245

203:                                              ; preds = %33
  %204 = load i32, ptr %11, align 4, !tbaa !11
  %205 = load i32, ptr %14, align 4, !tbaa !11
  %206 = add nsw i32 %204, %205
  %207 = mul nsw i32 %206, 33
  %208 = sdiv i32 %207, 8
  %209 = trunc i32 %208 to i8
  %210 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 2
  %211 = getelementptr inbounds %"class.basisu::color_rgba", ptr %210, i32 0, i32 0
  %212 = getelementptr inbounds %struct.anon, ptr %211, i32 0, i32 0
  store i8 %209, ptr %212, align 8, !tbaa !13
  %213 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 0
  %214 = getelementptr inbounds %"class.basisu::color_rgba", ptr %213, i32 0, i32 0
  %215 = getelementptr inbounds %struct.anon, ptr %214, i32 0, i32 1
  %216 = load i8, ptr %215, align 1, !tbaa !13
  %217 = zext i8 %216 to i32
  %218 = mul nsw i32 256, %217
  %219 = load i32, ptr %17, align 4, !tbaa !11
  %220 = sdiv i32 %219, 4
  %221 = add nsw i32 %218, %220
  %222 = add nsw i32 %221, 128
  %223 = load i32, ptr %17, align 4, !tbaa !11
  %224 = mul nsw i32 %223, 128
  %225 = add nsw i32 %222, %224
  %226 = sdiv i32 %225, 256
  %227 = trunc i32 %226 to i8
  %228 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 2
  %229 = getelementptr inbounds %"class.basisu::color_rgba", ptr %228, i32 0, i32 0
  %230 = getelementptr inbounds %struct.anon, ptr %229, i32 0, i32 1
  store i8 %227, ptr %230, align 1, !tbaa !13
  %231 = load i32, ptr %13, align 4, !tbaa !11
  %232 = load i32, ptr %16, align 4, !tbaa !11
  %233 = add nsw i32 %231, %232
  %234 = mul nsw i32 %233, 33
  %235 = sdiv i32 %234, 8
  %236 = trunc i32 %235 to i8
  %237 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 2
  %238 = getelementptr inbounds %"class.basisu::color_rgba", ptr %237, i32 0, i32 0
  %239 = getelementptr inbounds %struct.anon, ptr %238, i32 0, i32 2
  store i8 %236, ptr %239, align 2, !tbaa !13
  %240 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 2
  %241 = getelementptr inbounds %"class.basisu::color_rgba", ptr %240, i32 0, i32 0
  %242 = getelementptr inbounds %struct.anon, ptr %241, i32 0, i32 3
  store i8 -1, ptr %242, align 1, !tbaa !13
  %243 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 3
  %244 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %243, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  store i8 1, ptr %18, align 1, !tbaa !9
  br label %245

245:                                              ; preds = %203, %120
  %246 = load i8, ptr %6, align 1, !tbaa !9, !range !14, !noundef !15
  %247 = trunc i8 %246 to i1
  br i1 %247, label %248, label %288

248:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %249

249:                                              ; preds = %282, %248
  %250 = load i32, ptr %19, align 4, !tbaa !11
  %251 = icmp ult i32 %250, 4
  br i1 %251, label %253, label %252

252:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %287

253:                                              ; preds = %249
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = load i32, ptr %19, align 4, !tbaa !11
  %256 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %254, i32 noundef 0, i32 noundef %255)
  %257 = zext i32 %256 to i64
  %258 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %257
  %259 = load ptr, ptr %5, align 8, !tbaa !5
  %260 = getelementptr inbounds %"class.basisu::color_rgba", ptr %259, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %260, ptr align 4 %258, i64 4, i1 false), !tbaa.struct !16
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = load i32, ptr %19, align 4, !tbaa !11
  %263 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %261, i32 noundef 1, i32 noundef %262)
  %264 = zext i32 %263 to i64
  %265 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %264
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %"class.basisu::color_rgba", ptr %266, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %267, ptr align 4 %265, i64 4, i1 false), !tbaa.struct !16
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = load i32, ptr %19, align 4, !tbaa !11
  %270 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %268, i32 noundef 2, i32 noundef %269)
  %271 = zext i32 %270 to i64
  %272 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %271
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = getelementptr inbounds %"class.basisu::color_rgba", ptr %273, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %274, ptr align 4 %272, i64 4, i1 false), !tbaa.struct !16
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  %276 = load i32, ptr %19, align 4, !tbaa !11
  %277 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %275, i32 noundef 3, i32 noundef %276)
  %278 = zext i32 %277 to i64
  %279 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %278
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds %"class.basisu::color_rgba", ptr %280, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %281, ptr align 4 %279, i64 4, i1 false), !tbaa.struct !16
  br label %282

282:                                              ; preds = %253
  %283 = load i32, ptr %19, align 4, !tbaa !11
  %284 = add i32 %283, 1
  store i32 %284, ptr %19, align 4, !tbaa !11
  %285 = load ptr, ptr %5, align 8, !tbaa !5
  %286 = getelementptr inbounds %"class.basisu::color_rgba", ptr %285, i64 4
  store ptr %286, ptr %5, align 8, !tbaa !5
  br label %249, !llvm.loop !17

287:                                              ; preds = %252
  br label %332

288:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %289

289:                                              ; preds = %326, %288
  %290 = load i32, ptr %20, align 4, !tbaa !11
  %291 = icmp ult i32 %290, 4
  br i1 %291, label %293, label %292

292:                                              ; preds = %289
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %331

293:                                              ; preds = %289
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = getelementptr inbounds %"class.basisu::color_rgba", ptr %294, i64 0
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = load i32, ptr %20, align 4, !tbaa !11
  %298 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %296, i32 noundef 0, i32 noundef %297)
  %299 = zext i32 %298 to i64
  %300 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %299
  %301 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %295, ptr noundef nonnull align 1 dereferenceable(4) %300)
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds %"class.basisu::color_rgba", ptr %302, i64 1
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = load i32, ptr %20, align 4, !tbaa !11
  %306 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %304, i32 noundef 1, i32 noundef %305)
  %307 = zext i32 %306 to i64
  %308 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %307
  %309 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %303, ptr noundef nonnull align 1 dereferenceable(4) %308)
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  %311 = getelementptr inbounds %"class.basisu::color_rgba", ptr %310, i64 2
  %312 = load ptr, ptr %7, align 8, !tbaa !5
  %313 = load i32, ptr %20, align 4, !tbaa !11
  %314 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %312, i32 noundef 2, i32 noundef %313)
  %315 = zext i32 %314 to i64
  %316 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %315
  %317 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %311, ptr noundef nonnull align 1 dereferenceable(4) %316)
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = getelementptr inbounds %"class.basisu::color_rgba", ptr %318, i64 3
  %320 = load ptr, ptr %7, align 8, !tbaa !5
  %321 = load i32, ptr %20, align 4, !tbaa !11
  %322 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %320, i32 noundef 3, i32 noundef %321)
  %323 = zext i32 %322 to i64
  %324 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %323
  %325 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %319, ptr noundef nonnull align 1 dereferenceable(4) %324)
  br label %326

326:                                              ; preds = %293
  %327 = load i32, ptr %20, align 4, !tbaa !11
  %328 = add i32 %327, 1
  store i32 %328, ptr %20, align 4, !tbaa !11
  %329 = load ptr, ptr %5, align 8, !tbaa !5
  %330 = getelementptr inbounds %"class.basisu::color_rgba", ptr %329, i64 4
  store ptr %330, ptr %5, align 8, !tbaa !5
  br label %289, !llvm.loop !19

331:                                              ; preds = %292
  br label %332

332:                                              ; preds = %331, %287
  %333 = load i8, ptr %18, align 1, !tbaa !9, !range !14, !noundef !15
  %334 = trunc i8 %333 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret i1 %334
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{i64 0, i64 4, !13}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

%"class.basisu::color_rgba" = type { %union.anon }
%union.anon = type { [4 x i8] }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu9bc1_block13get_low_colorEv(ptr noundef nonnull align 1 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu9bc1_block14get_high_colorEv(ptr noundef nonnull align 1 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN6basisu13unpack_bc1_nvEPKvPNS_10color_rgbaEb(ptr noundef nonnull %0, ptr noundef %1, i1 noundef zeroext %2) local_unnamed_addr #2 {
  %4 = alloca [4 x %"class.basisu::color_rgba"], align 16
  %5 = tail call noundef i32 @_ZNK6basisu9bc1_block13get_low_colorEv(ptr noundef nonnull align 1 dereferenceable(8) %0)
  %6 = tail call noundef i32 @_ZNK6basisu9bc1_block14get_high_colorEv(ptr noundef nonnull align 1 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %4)
  %.ptr.1 = getelementptr inbounds i8, ptr %4, i64 4
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %4, i64 8
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %4, i64 12
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3)
  %7 = lshr i32 %5, 11
  %8 = and i32 %7, 31
  %9 = and i32 %5, 31
  %10 = lshr i32 %6, 11
  %11 = and i32 %10, 31
  %12 = and i32 %6, 31
  %13 = mul nuw nsw i32 %9, 66
  %14 = lshr i32 %13, 3
  %15 = trunc nuw i32 %14 to i8
  %16 = getelementptr inbounds i8, ptr %4, i64 2
  store i8 %15, ptr %16, align 2, !tbaa !5
  %17 = lshr i32 %5, 3
  %18 = and i32 %17, 252
  %19 = lshr i32 %5, 9
  %20 = and i32 %19, 3
  %21 = or disjoint i32 %18, %20
  %22 = trunc nuw i32 %21 to i8
  %23 = getelementptr inbounds i8, ptr %4, i64 1
  store i8 %22, ptr %23, align 1, !tbaa !5
  %24 = mul nuw nsw i32 %8, 66
  %25 = lshr i32 %24, 3
  %26 = trunc nuw i32 %25 to i8
  store i8 %26, ptr %4, align 16, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %4, i64 3
  store i8 -1, ptr %27, align 1, !tbaa !5
  %28 = mul nuw nsw i32 %11, 66
  %29 = lshr i32 %28, 3
  %30 = trunc nuw i32 %29 to i8
  store i8 %30, ptr %.ptr.1, align 4, !tbaa !5
  %31 = lshr i32 %6, 3
  %32 = and i32 %31, 252
  %33 = lshr i32 %6, 9
  %34 = and i32 %33, 3
  %35 = or disjoint i32 %32, %34
  %36 = trunc nuw i32 %35 to i8
  %37 = getelementptr inbounds i8, ptr %4, i64 5
  store i8 %36, ptr %37, align 1, !tbaa !5
  %38 = mul nuw nsw i32 %12, 66
  %39 = lshr i32 %38, 3
  %40 = trunc nuw i32 %39 to i8
  %41 = getelementptr inbounds i8, ptr %4, i64 6
  store i8 %40, ptr %41, align 2, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %4, i64 7
  store i8 -1, ptr %42, align 1, !tbaa !5
  %43 = sub nsw i32 %35, %21
  %44 = icmp ule i32 %5, %6
  br i1 %44, label %84, label %45

45:                                               ; preds = %3
  %46 = shl nuw nsw i32 %8, 1
  %47 = add nuw nsw i32 %46, %11
  %48 = mul nuw nsw i32 %47, 22
  %49 = lshr i32 %48, 3
  %50 = trunc nuw i32 %49 to i8
  store i8 %50, ptr %.ptr.2, align 8, !tbaa !5
  %51 = shl nuw nsw i32 %21, 8
  %.lhs.trunc72 = trunc nsw i32 %43 to i16
  %52 = sdiv i16 %.lhs.trunc72, 4
  %.sext73 = sext i16 %52 to i32
  %53 = mul nsw i32 %43, 80
  %54 = add nsw i32 %53, %.sext73
  %55 = add nsw i32 %54, 128
  %56 = add nsw i32 %55, %51
  %57 = sdiv i32 %56, 256
  %58 = trunc i32 %57 to i8
  %59 = getelementptr inbounds i8, ptr %4, i64 9
  store i8 %58, ptr %59, align 1, !tbaa !5
  %60 = shl nuw nsw i32 %9, 1
  %61 = add nuw nsw i32 %60, %12
  %62 = mul nuw nsw i32 %61, 22
  %63 = lshr i32 %62, 3
  %64 = trunc nuw i32 %63 to i8
  %65 = getelementptr inbounds i8, ptr %4, i64 10
  store i8 %64, ptr %65, align 2, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %4, i64 11
  store i8 -1, ptr %66, align 1, !tbaa !5
  %67 = shl nuw nsw i32 %11, 1
  %68 = add nuw nsw i32 %67, %8
  %69 = mul nuw nsw i32 %68, 22
  %70 = lshr i32 %69, 3
  %71 = trunc nuw i32 %70 to i8
  store i8 %71, ptr %.ptr.3, align 4, !tbaa !5
  %72 = shl nuw nsw i32 %35, 8
  %.neg74 = or disjoint i32 %72, 128
  %73 = sub nsw i32 %.neg74, %54
  %74 = sdiv i32 %73, 256
  %75 = trunc i32 %74 to i8
  %76 = getelementptr inbounds i8, ptr %4, i64 13
  store i8 %75, ptr %76, align 1, !tbaa !5
  %77 = shl nuw nsw i32 %12, 1
  %78 = add nuw nsw i32 %77, %9
  %79 = mul nuw nsw i32 %78, 22
  %80 = lshr i32 %79, 3
  %81 = trunc nuw i32 %80 to i8
  %82 = getelementptr inbounds i8, ptr %4, i64 14
  store i8 %81, ptr %82, align 2, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %4, i64 15
  store i8 -1, ptr %83, align 1, !tbaa !5
  br label %105

84:                                               ; preds = %3
  %85 = add nuw nsw i32 %11, %8
  %86 = mul nuw nsw i32 %85, 33
  %87 = lshr i32 %86, 3
  %88 = trunc nuw i32 %87 to i8
  store i8 %88, ptr %.ptr.2, align 8, !tbaa !5
  %89 = shl nuw nsw i32 %21, 8
  %.lhs.trunc = trunc nsw i32 %43 to i16
  %90 = sdiv i16 %.lhs.trunc, 4
  %.sext = sext i16 %90 to i32
  %91 = shl nsw i32 %43, 7
  %92 = or disjoint i32 %89, 128
  %93 = add nsw i32 %92, %91
  %94 = add nsw i32 %93, %.sext
  %95 = sdiv i32 %94, 256
  %96 = trunc i32 %95 to i8
  %97 = getelementptr inbounds i8, ptr %4, i64 9
  store i8 %96, ptr %97, align 1, !tbaa !5
  %98 = add nuw nsw i32 %12, %9
  %99 = mul nuw nsw i32 %98, 33
  %100 = lshr i32 %99, 3
  %101 = trunc nuw i32 %100 to i8
  %102 = getelementptr inbounds i8, ptr %4, i64 10
  store i8 %101, ptr %102, align 2, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %4, i64 11
  store i8 -1, ptr %103, align 1, !tbaa !5
  %104 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %105

105:                                              ; preds = %84, %45
  %106 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 0)
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %107
  br i1 %2, label %.preheader.preheader, label %.preheader75.preheader

.preheader75.preheader:                           ; preds = %105
  %109 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %1, ptr noundef nonnull align 1 dereferenceable(4) %108)
  %110 = getelementptr inbounds i8, ptr %1, i64 4
  %111 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 0)
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %112
  %114 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %110, ptr noundef nonnull align 1 dereferenceable(4) %113)
  %115 = getelementptr inbounds i8, ptr %1, i64 8
  %116 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 0)
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %117
  %119 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %115, ptr noundef nonnull align 1 dereferenceable(4) %118)
  %120 = getelementptr inbounds i8, ptr %1, i64 12
  %121 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 0)
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %122
  %124 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %120, ptr noundef nonnull align 1 dereferenceable(4) %123)
  %125 = getelementptr inbounds i8, ptr %1, i64 16
  %126 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 1)
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %127
  %129 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %125, ptr noundef nonnull align 1 dereferenceable(4) %128)
  %130 = getelementptr inbounds i8, ptr %1, i64 20
  %131 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 1)
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %132
  %134 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %130, ptr noundef nonnull align 1 dereferenceable(4) %133)
  %135 = getelementptr inbounds i8, ptr %1, i64 24
  %136 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 1)
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %137
  %139 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %135, ptr noundef nonnull align 1 dereferenceable(4) %138)
  %140 = getelementptr inbounds i8, ptr %1, i64 28
  %141 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 1)
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %142
  %144 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %140, ptr noundef nonnull align 1 dereferenceable(4) %143)
  %145 = getelementptr inbounds i8, ptr %1, i64 32
  %146 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 2)
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %147
  %149 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %145, ptr noundef nonnull align 1 dereferenceable(4) %148)
  %150 = getelementptr inbounds i8, ptr %1, i64 36
  %151 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 2)
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %152
  %154 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %150, ptr noundef nonnull align 1 dereferenceable(4) %153)
  %155 = getelementptr inbounds i8, ptr %1, i64 40
  %156 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 2)
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %157
  %159 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %155, ptr noundef nonnull align 1 dereferenceable(4) %158)
  %160 = getelementptr inbounds i8, ptr %1, i64 44
  %161 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 2)
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %162
  %164 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %160, ptr noundef nonnull align 1 dereferenceable(4) %163)
  %165 = getelementptr inbounds i8, ptr %1, i64 48
  %166 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 3)
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %167
  %169 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %165, ptr noundef nonnull align 1 dereferenceable(4) %168)
  %170 = getelementptr inbounds i8, ptr %1, i64 52
  %171 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 3)
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %172
  %174 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %170, ptr noundef nonnull align 1 dereferenceable(4) %173)
  %175 = getelementptr inbounds i8, ptr %1, i64 56
  %176 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 3)
  %177 = zext i32 %176 to i64
  %178 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %177
  %179 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %175, ptr noundef nonnull align 1 dereferenceable(4) %178)
  %180 = getelementptr inbounds i8, ptr %1, i64 60
  %181 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 3)
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %182
  %184 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %180, ptr noundef nonnull align 1 dereferenceable(4) %183)
  br label %.loopexit

.preheader.preheader:                             ; preds = %105
  %185 = load i32, ptr %108, align 4, !tbaa !5
  store i32 %185, ptr %1, align 1, !tbaa !5
  %186 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 0)
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %187
  %189 = getelementptr inbounds i8, ptr %1, i64 4
  %190 = load i32, ptr %188, align 4, !tbaa !5
  store i32 %190, ptr %189, align 1, !tbaa !5
  %191 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 0)
  %192 = zext i32 %191 to i64
  %193 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %192
  %194 = getelementptr inbounds i8, ptr %1, i64 8
  %195 = load i32, ptr %193, align 4, !tbaa !5
  store i32 %195, ptr %194, align 1, !tbaa !5
  %196 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 0)
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %197
  %199 = getelementptr inbounds i8, ptr %1, i64 12
  %200 = load i32, ptr %198, align 4, !tbaa !5
  store i32 %200, ptr %199, align 1, !tbaa !5
  %201 = getelementptr inbounds i8, ptr %1, i64 16
  %202 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 1)
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !5
  store i32 %205, ptr %201, align 1, !tbaa !5
  %206 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 1)
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %207
  %209 = getelementptr inbounds i8, ptr %1, i64 20
  %210 = load i32, ptr %208, align 4, !tbaa !5
  store i32 %210, ptr %209, align 1, !tbaa !5
  %211 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 1)
  %212 = zext i32 %211 to i64
  %213 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %212
  %214 = getelementptr inbounds i8, ptr %1, i64 24
  %215 = load i32, ptr %213, align 4, !tbaa !5
  store i32 %215, ptr %214, align 1, !tbaa !5
  %216 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 1)
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %217
  %219 = getelementptr inbounds i8, ptr %1, i64 28
  %220 = load i32, ptr %218, align 4, !tbaa !5
  store i32 %220, ptr %219, align 1, !tbaa !5
  %221 = getelementptr inbounds i8, ptr %1, i64 32
  %222 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 2)
  %223 = zext i32 %222 to i64
  %224 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  store i32 %225, ptr %221, align 1, !tbaa !5
  %226 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 2)
  %227 = zext i32 %226 to i64
  %228 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %227
  %229 = getelementptr inbounds i8, ptr %1, i64 36
  %230 = load i32, ptr %228, align 4, !tbaa !5
  store i32 %230, ptr %229, align 1, !tbaa !5
  %231 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 2)
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %232
  %234 = getelementptr inbounds i8, ptr %1, i64 40
  %235 = load i32, ptr %233, align 4, !tbaa !5
  store i32 %235, ptr %234, align 1, !tbaa !5
  %236 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 2)
  %237 = zext i32 %236 to i64
  %238 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %237
  %239 = getelementptr inbounds i8, ptr %1, i64 44
  %240 = load i32, ptr %238, align 4, !tbaa !5
  store i32 %240, ptr %239, align 1, !tbaa !5
  %241 = getelementptr inbounds i8, ptr %1, i64 48
  %242 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 3)
  %243 = zext i32 %242 to i64
  %244 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %243
  %245 = load i32, ptr %244, align 4, !tbaa !5
  store i32 %245, ptr %241, align 1, !tbaa !5
  %246 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 3)
  %247 = zext i32 %246 to i64
  %248 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %247
  %249 = getelementptr inbounds i8, ptr %1, i64 52
  %250 = load i32, ptr %248, align 4, !tbaa !5
  store i32 %250, ptr %249, align 1, !tbaa !5
  %251 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 3)
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %252
  %254 = getelementptr inbounds i8, ptr %1, i64 56
  %255 = load i32, ptr %253, align 4, !tbaa !5
  store i32 %255, ptr %254, align 1, !tbaa !5
  %256 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 3)
  %257 = zext i32 %256 to i64
  %258 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %257
  %259 = getelementptr inbounds i8, ptr %1, i64 60
  %260 = load i32, ptr %258, align 4, !tbaa !5
  store i32 %260, ptr %259, align 1, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader75.preheader, %.preheader.preheader
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  ret i1 %44
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass