; 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] }

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu9bc1_block12unpack_colorEjRjS1_S1_(i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2 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) #3

; 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 @_ZN6basisu14unpack_bc1_amdEPKvPNS_10color_rgbaEb(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2) #4 {
  %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 i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %20 = zext i1 %2 to i8
  store i8 %20, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %21, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = call noundef i32 @_ZNK6basisu9bc1_block13get_low_colorEv(ptr noundef nonnull align 1 dereferenceable(8) %22)
  store i32 %23, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = call noundef i32 @_ZNK6basisu9bc1_block14get_high_colorEv(ptr noundef nonnull align 1 dereferenceable(8) %24)
  store i32 %25, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %26 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i32 0, i32 0
  %27 = getelementptr inbounds %"class.basisu::color_rgba", ptr %26, i64 4
  br label %28

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

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %33 = load i32, ptr %8, align 4, !tbaa !11
  call void @_ZN6basisu9bc1_block12unpack_colorEjRjS1_S1_(i32 noundef %33, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %34 = load i32, ptr %9, align 4, !tbaa !11
  call void @_ZN6basisu9bc1_block12unpack_colorEjRjS1_S1_(i32 noundef %34, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %35 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 0
  %36 = load i32, ptr %11, align 4, !tbaa !11
  %37 = load i32, ptr %12, align 4, !tbaa !11
  %38 = load i32, ptr %13, align 4, !tbaa !11
  %39 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %35, i32 noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef 255)
  %40 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 1
  %41 = load i32, ptr %14, align 4, !tbaa !11
  %42 = load i32, ptr %15, align 4, !tbaa !11
  %43 = load i32, ptr %16, align 4, !tbaa !11
  %44 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %40, i32 noundef %41, i32 noundef %42, i32 noundef %43, i32 noundef 255)
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  store i8 0, ptr %17, align 1, !tbaa !9
  %45 = load i32, ptr %8, align 4, !tbaa !11
  %46 = load i32, ptr %9, align 4, !tbaa !11
  %47 = icmp ugt i32 %45, %46
  br i1 %47, label %48, label %71

48:                                               ; preds = %32
  %49 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 2
  %50 = load i32, ptr %11, align 4, !tbaa !11
  %51 = load i32, ptr %14, align 4, !tbaa !11
  %52 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %50, i32 noundef %51)
  %53 = load i32, ptr %12, align 4, !tbaa !11
  %54 = load i32, ptr %15, align 4, !tbaa !11
  %55 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %53, i32 noundef %54)
  %56 = load i32, ptr %13, align 4, !tbaa !11
  %57 = load i32, ptr %16, align 4, !tbaa !11
  %58 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %56, i32 noundef %57)
  %59 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %49, i32 noundef %52, i32 noundef %55, i32 noundef %58, i32 noundef 255)
  %60 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 3
  %61 = load i32, ptr %14, align 4, !tbaa !11
  %62 = load i32, ptr %11, align 4, !tbaa !11
  %63 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %61, i32 noundef %62)
  %64 = load i32, ptr %15, align 4, !tbaa !11
  %65 = load i32, ptr %12, align 4, !tbaa !11
  %66 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %64, i32 noundef %65)
  %67 = load i32, ptr %16, align 4, !tbaa !11
  %68 = load i32, ptr %13, align 4, !tbaa !11
  %69 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %67, i32 noundef %68)
  %70 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %60, i32 noundef %63, i32 noundef %66, i32 noundef %69, i32 noundef 255)
  br label %85

71:                                               ; preds = %32
  %72 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 2
  %73 = load i32, ptr %11, align 4, !tbaa !11
  %74 = load i32, ptr %14, align 4, !tbaa !11
  %75 = call noundef i32 @_ZN6basisuL19interp_half_5_6_amdEii(i32 noundef %73, i32 noundef %74)
  %76 = load i32, ptr %12, align 4, !tbaa !11
  %77 = load i32, ptr %15, align 4, !tbaa !11
  %78 = call noundef i32 @_ZN6basisuL19interp_half_5_6_amdEii(i32 noundef %76, i32 noundef %77)
  %79 = load i32, ptr %13, align 4, !tbaa !11
  %80 = load i32, ptr %16, align 4, !tbaa !11
  %81 = call noundef i32 @_ZN6basisuL19interp_half_5_6_amdEii(i32 noundef %79, i32 noundef %80)
  %82 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %72, i32 noundef %75, i32 noundef %78, i32 noundef %81, i32 noundef 255)
  %83 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 3
  %84 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %83, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %85

85:                                               ; preds = %71, %48
  %86 = load i8, ptr %6, align 1, !tbaa !9, !range !13, !noundef !14
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %128

88:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %89

89:                                               ; preds = %122, %88
  %90 = load i32, ptr %18, align 4, !tbaa !11
  %91 = icmp ult i32 %90, 4
  br i1 %91, label %93, label %92

92:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %127

93:                                               ; preds = %89
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = load i32, ptr %18, align 4, !tbaa !11
  %96 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %94, i32 noundef 0, i32 noundef %95)
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %97
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.basisu::color_rgba", ptr %99, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %100, ptr align 4 %98, i64 4, i1 false), !tbaa.struct !15
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load i32, ptr %18, align 4, !tbaa !11
  %103 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %101, i32 noundef 1, i32 noundef %102)
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %104
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %"class.basisu::color_rgba", ptr %106, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %107, ptr align 4 %105, i64 4, i1 false), !tbaa.struct !15
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = load i32, ptr %18, align 4, !tbaa !11
  %110 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %108, i32 noundef 2, i32 noundef %109)
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %111
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.basisu::color_rgba", ptr %113, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %114, ptr align 4 %112, i64 4, i1 false), !tbaa.struct !15
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = load i32, ptr %18, align 4, !tbaa !11
  %117 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %115, i32 noundef 3, i32 noundef %116)
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %118
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.basisu::color_rgba", ptr %120, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %121, ptr align 4 %119, i64 4, i1 false), !tbaa.struct !15
  br label %122

122:                                              ; preds = %93
  %123 = load i32, ptr %18, align 4, !tbaa !11
  %124 = add i32 %123, 1
  store i32 %124, ptr %18, align 4, !tbaa !11
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.basisu::color_rgba", ptr %125, i64 4
  store ptr %126, ptr %5, align 8, !tbaa !5
  br label %89, !llvm.loop !17

127:                                              ; preds = %92
  br label %172

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

129:                                              ; preds = %166, %128
  %130 = load i32, ptr %19, align 4, !tbaa !11
  %131 = icmp ult i32 %130, 4
  br i1 %131, label %133, label %132

132:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %171

133:                                              ; preds = %129
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %"class.basisu::color_rgba", ptr %134, i64 0
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = load i32, ptr %19, align 4, !tbaa !11
  %138 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %136, i32 noundef 0, i32 noundef %137)
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %139
  %141 = 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) %140)
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %"class.basisu::color_rgba", ptr %142, i64 1
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = load i32, ptr %19, align 4, !tbaa !11
  %146 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %144, i32 noundef 1, i32 noundef %145)
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %147
  %149 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %143, ptr noundef nonnull align 1 dereferenceable(4) %148)
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.basisu::color_rgba", ptr %150, i64 2
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = load i32, ptr %19, align 4, !tbaa !11
  %154 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %152, i32 noundef 2, i32 noundef %153)
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %155
  %157 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %151, ptr noundef nonnull align 1 dereferenceable(4) %156)
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %"class.basisu::color_rgba", ptr %158, i64 3
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = load i32, ptr %19, align 4, !tbaa !11
  %162 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %160, i32 noundef 3, i32 noundef %161)
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %10, i64 0, i64 %163
  %165 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %159, ptr noundef nonnull align 1 dereferenceable(4) %164)
  br label %166

166:                                              ; preds = %133
  %167 = load i32, ptr %19, align 4, !tbaa !11
  %168 = add i32 %167, 1
  store i32 %168, ptr %19, align 4, !tbaa !11
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %"class.basisu::color_rgba", ptr %169, i64 4
  store ptr %170, ptr %5, align 8, !tbaa !5
  br label %129, !llvm.loop !19

171:                                              ; preds = %132
  br label %172

172:                                              ; preds = %171, %127
  %173 = load i8, ptr %17, align 1, !tbaa !9, !range !13, !noundef !14
  %174 = trunc i8 %173 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret i1 %174
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN6basisuL19interp_half_5_6_amdEii(i32 noundef, i32 noundef) #1

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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = !{i8 0, i8 2}
!14 = !{}
!15 = !{i64 0, i64 4, !16}
!16 = !{!7, !7, i64 0}
!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: mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu9bc1_block12unpack_colorEjRjS1_S1_(i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 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 @_ZN6basisu14unpack_bc1_amdEPKvPNS_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 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = tail call noundef i32 @_ZNK6basisu9bc1_block13get_low_colorEv(ptr noundef nonnull align 1 dereferenceable(8) %0)
  %12 = 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)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  call void @_ZN6basisu9bc1_block12unpack_colorEjRjS1_S1_(i32 noundef %11, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @_ZN6basisu9bc1_block12unpack_colorEjRjS1_S1_(i32 noundef %12, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %13 = load i32, ptr %5, align 4, !tbaa !5
  %14 = load i32, ptr %6, align 4, !tbaa !5
  %15 = load i32, ptr %7, align 4, !tbaa !5
  %16 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %4, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef 255)
  %17 = load i32, ptr %8, align 4, !tbaa !5
  %18 = load i32, ptr %9, align 4, !tbaa !5
  %19 = load i32, ptr %10, align 4, !tbaa !5
  %20 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef 255)
  %21 = icmp ule i32 %11, %12
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = load i32, ptr %8, align 4, !tbaa !5
  br i1 %21, label %43, label %24

24:                                               ; preds = %3
  %25 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %22, i32 noundef %23)
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = load i32, ptr %9, align 4, !tbaa !5
  %28 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %26, i32 noundef %27)
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = load i32, ptr %10, align 4, !tbaa !5
  %31 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %29, i32 noundef %30)
  %32 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef %25, i32 noundef %28, i32 noundef %31, i32 noundef 255)
  %33 = load i32, ptr %8, align 4, !tbaa !5
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %33, i32 noundef %34)
  %36 = load i32, ptr %9, align 4, !tbaa !5
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %36, i32 noundef %37)
  %39 = load i32, ptr %10, align 4, !tbaa !5
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = call noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef %39, i32 noundef %40)
  %42 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef %35, i32 noundef %38, i32 noundef %41, i32 noundef 255)
  br label %53

43:                                               ; preds = %3
  %44 = call noundef i32 @_ZN6basisuL19interp_half_5_6_amdEii(i32 noundef %22, i32 noundef %23)
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = call noundef i32 @_ZN6basisuL19interp_half_5_6_amdEii(i32 noundef %45, i32 noundef %46)
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = load i32, ptr %10, align 4, !tbaa !5
  %50 = call noundef i32 @_ZN6basisuL19interp_half_5_6_amdEii(i32 noundef %48, i32 noundef %49)
  %51 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba16set_noclamp_rgbaEiiii(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef %44, i32 noundef %47, i32 noundef %50, i32 noundef 255)
  %52 = 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 %53

53:                                               ; preds = %43, %24
  %54 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 0)
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %55
  br i1 %2, label %.preheader.preheader, label %.preheader42.preheader

.preheader42.preheader:                           ; preds = %53
  %57 = 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) %56)
  %58 = getelementptr inbounds i8, ptr %1, i64 4
  %59 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 0)
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %60
  %62 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %58, ptr noundef nonnull align 1 dereferenceable(4) %61)
  %63 = getelementptr inbounds i8, ptr %1, i64 8
  %64 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 0)
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %65
  %67 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %63, ptr noundef nonnull align 1 dereferenceable(4) %66)
  %68 = getelementptr inbounds i8, ptr %1, i64 12
  %69 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 0)
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %70
  %72 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %68, ptr noundef nonnull align 1 dereferenceable(4) %71)
  %73 = getelementptr inbounds i8, ptr %1, i64 16
  %74 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 1)
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %75
  %77 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %73, ptr noundef nonnull align 1 dereferenceable(4) %76)
  %78 = getelementptr inbounds i8, ptr %1, i64 20
  %79 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 1)
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %80
  %82 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %78, ptr noundef nonnull align 1 dereferenceable(4) %81)
  %83 = getelementptr inbounds i8, ptr %1, i64 24
  %84 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 1)
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %85
  %87 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %83, ptr noundef nonnull align 1 dereferenceable(4) %86)
  %88 = getelementptr inbounds i8, ptr %1, i64 28
  %89 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 1)
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %90
  %92 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %88, ptr noundef nonnull align 1 dereferenceable(4) %91)
  %93 = getelementptr inbounds i8, ptr %1, i64 32
  %94 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 2)
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %95
  %97 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %93, ptr noundef nonnull align 1 dereferenceable(4) %96)
  %98 = getelementptr inbounds i8, ptr %1, i64 36
  %99 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 2)
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %100
  %102 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %98, ptr noundef nonnull align 1 dereferenceable(4) %101)
  %103 = getelementptr inbounds i8, ptr %1, i64 40
  %104 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 2)
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %105
  %107 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %103, ptr noundef nonnull align 1 dereferenceable(4) %106)
  %108 = getelementptr inbounds i8, ptr %1, i64 44
  %109 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 2)
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %110
  %112 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %108, ptr noundef nonnull align 1 dereferenceable(4) %111)
  %113 = getelementptr inbounds i8, ptr %1, i64 48
  %114 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 3)
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %115
  %117 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %113, ptr noundef nonnull align 1 dereferenceable(4) %116)
  %118 = getelementptr inbounds i8, ptr %1, i64 52
  %119 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 3)
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %120
  %122 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %118, ptr noundef nonnull align 1 dereferenceable(4) %121)
  %123 = getelementptr inbounds i8, ptr %1, i64 56
  %124 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 3)
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %125
  %127 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %123, ptr noundef nonnull align 1 dereferenceable(4) %126)
  %128 = getelementptr inbounds i8, ptr %1, i64 60
  %129 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 3)
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %130
  %132 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba7set_rgbERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %128, ptr noundef nonnull align 1 dereferenceable(4) %131)
  br label %.loopexit

.preheader.preheader:                             ; preds = %53
  %133 = load i32, ptr %56, align 4, !tbaa !9
  store i32 %133, ptr %1, align 1, !tbaa !9
  %134 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 0)
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %135
  %137 = getelementptr inbounds i8, ptr %1, i64 4
  %138 = load i32, ptr %136, align 4, !tbaa !9
  store i32 %138, ptr %137, align 1, !tbaa !9
  %139 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 0)
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %140
  %142 = getelementptr inbounds i8, ptr %1, i64 8
  %143 = load i32, ptr %141, align 4, !tbaa !9
  store i32 %143, ptr %142, align 1, !tbaa !9
  %144 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 0)
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %145
  %147 = getelementptr inbounds i8, ptr %1, i64 12
  %148 = load i32, ptr %146, align 4, !tbaa !9
  store i32 %148, ptr %147, align 1, !tbaa !9
  %149 = getelementptr inbounds i8, ptr %1, i64 16
  %150 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 1)
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !9
  store i32 %153, ptr %149, align 1, !tbaa !9
  %154 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 1)
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %155
  %157 = getelementptr inbounds i8, ptr %1, i64 20
  %158 = load i32, ptr %156, align 4, !tbaa !9
  store i32 %158, ptr %157, align 1, !tbaa !9
  %159 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 1)
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %160
  %162 = getelementptr inbounds i8, ptr %1, i64 24
  %163 = load i32, ptr %161, align 4, !tbaa !9
  store i32 %163, ptr %162, align 1, !tbaa !9
  %164 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 1)
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %165
  %167 = getelementptr inbounds i8, ptr %1, i64 28
  %168 = load i32, ptr %166, align 4, !tbaa !9
  store i32 %168, ptr %167, align 1, !tbaa !9
  %169 = getelementptr inbounds i8, ptr %1, i64 32
  %170 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 2)
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !9
  store i32 %173, ptr %169, align 1, !tbaa !9
  %174 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 2)
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %175
  %177 = getelementptr inbounds i8, ptr %1, i64 36
  %178 = load i32, ptr %176, align 4, !tbaa !9
  store i32 %178, ptr %177, align 1, !tbaa !9
  %179 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 2)
  %180 = zext i32 %179 to i64
  %181 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %180
  %182 = getelementptr inbounds i8, ptr %1, i64 40
  %183 = load i32, ptr %181, align 4, !tbaa !9
  store i32 %183, ptr %182, align 1, !tbaa !9
  %184 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 2)
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %185
  %187 = getelementptr inbounds i8, ptr %1, i64 44
  %188 = load i32, ptr %186, align 4, !tbaa !9
  store i32 %188, ptr %187, align 1, !tbaa !9
  %189 = getelementptr inbounds i8, ptr %1, i64 48
  %190 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 0, i32 noundef 3)
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !9
  store i32 %193, ptr %189, align 1, !tbaa !9
  %194 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 1, i32 noundef 3)
  %195 = zext i32 %194 to i64
  %196 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %195
  %197 = getelementptr inbounds i8, ptr %1, i64 52
  %198 = load i32, ptr %196, align 4, !tbaa !9
  store i32 %198, ptr %197, align 1, !tbaa !9
  %199 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 2, i32 noundef 3)
  %200 = zext i32 %199 to i64
  %201 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %200
  %202 = getelementptr inbounds i8, ptr %1, i64 56
  %203 = load i32, ptr %201, align 4, !tbaa !9
  store i32 %203, ptr %202, align 1, !tbaa !9
  %204 = call noundef i32 @_ZNK6basisu9bc1_block12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(8) %0, i32 noundef 3, i32 noundef 3)
  %205 = zext i32 %204 to i64
  %206 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %4, i64 0, i64 %205
  %207 = getelementptr inbounds i8, ptr %1, i64 60
  %208 = load i32, ptr %206, align 4, !tbaa !9
  store i32 %208, ptr %207, align 1, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader42.preheader, %.preheader.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  ret i1 %21
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN6basisuL14interp_5_6_amdEii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN6basisuL19interp_half_5_6_amdEii(i32 noundef, i32 noundef) local_unnamed_addr #1

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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}


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