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

@_ZN6basist39g_bc7_table_anchor_index_third_subset_1E = external constant [64 x i8], align 16
@_ZN6basist39g_bc7_table_anchor_index_third_subset_2E = external constant [64 x i8], align 16
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [118 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu18unpack_bc7_mode0_2EjPKvPNS_10color_rgbaE = external hidden unnamed_addr constant [70 x i8], align 1
@_ZN6basist16g_bc7_partition3E = external constant [1024 x i8], align 16

; 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 void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #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: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu18unpack_bc7_mode0_2EjPKvPNS_10color_rgbaE(i32 noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca i1, align 1
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [6 x %"class.basisu::color_rgba"], align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca [6 x i32], align 16
  %22 = alloca i32, align 4
  %23 = alloca [16 x i32], align 16
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca [3 x [8 x %"class.basisu::color_rgba"]], align 16
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 6, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 3, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = icmp eq i32 %32, 0
  %34 = zext i1 %33 to i64
  %35 = select i1 %33, i32 3, i32 2
  store i32 %35, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = icmp eq i32 %36, 0
  %38 = zext i1 %37 to i64
  %39 = select i1 %37, i32 4, i32 5
  store i32 %39, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = icmp eq i32 %40, 0
  %42 = zext i1 %41 to i64
  %43 = select i1 %41, i32 6, i32 0
  store i32 %43, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %44 = load i32, ptr %10, align 4, !tbaa !5
  %45 = shl i32 1, %44
  store i32 %45, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %46 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %46, ptr %15, align 8, !tbaa !9
  %47 = load ptr, ptr %15, align 8, !tbaa !9
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = add i32 %48, 1
  %50 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %47, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %49)
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = shl i32 1, %51
  %53 = icmp ne i32 %50, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %3
  store i1 false, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %314

55:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %56 = load ptr, ptr %15, align 8, !tbaa !9
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = icmp eq i32 %57, 0
  %59 = zext i1 %58 to i64
  %60 = select i1 %58, i32 4, i32 6
  %61 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %56, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %60)
  store i32 %61, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  %62 = getelementptr inbounds [6 x %"class.basisu::color_rgba"], ptr %18, i32 0, i32 0
  %63 = getelementptr inbounds %"class.basisu::color_rgba", ptr %62, i64 6
  br label %64

64:                                               ; preds = %64, %55
  %65 = phi ptr [ %62, %55 ], [ %66, %64 ]
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %65)
  %66 = getelementptr inbounds %"class.basisu::color_rgba", ptr %65, i64 1
  %67 = icmp eq ptr %66, %63
  br i1 %67, label %68, label %64

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %92, %68
  %70 = load i32, ptr %19, align 4, !tbaa !5
  %71 = icmp ult i32 %70, 3
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %95

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %88, %73
  %75 = load i32, ptr %20, align 4, !tbaa !5
  %76 = icmp ult i32 %75, 6
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %91

78:                                               ; preds = %74
  %79 = load ptr, ptr %15, align 8, !tbaa !9
  %80 = load i32, ptr %11, align 4, !tbaa !5
  %81 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %79, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %80)
  %82 = trunc i32 %81 to i8
  %83 = load i32, ptr %20, align 4, !tbaa !5
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds [6 x %"class.basisu::color_rgba"], ptr %18, i64 0, i64 %84
  %86 = load i32, ptr %19, align 4, !tbaa !5
  %87 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %85, i32 noundef %86)
  store i8 %82, ptr %87, align 1, !tbaa !11
  br label %88

88:                                               ; preds = %78
  %89 = load i32, ptr %20, align 4, !tbaa !5
  %90 = add i32 %89, 1
  store i32 %90, ptr %20, align 4, !tbaa !5
  br label %74, !llvm.loop !12

91:                                               ; preds = %77
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %19, align 4, !tbaa !5
  %94 = add i32 %93, 1
  store i32 %94, ptr %19, align 4, !tbaa !5
  br label %69, !llvm.loop !14

95:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %107, %95
  %97 = load i32, ptr %22, align 4, !tbaa !5
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = icmp ult i32 %97, %98
  br i1 %99, label %101, label %100

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

101:                                              ; preds = %96
  %102 = load ptr, ptr %15, align 8, !tbaa !9
  %103 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %102, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef 1)
  %104 = load i32, ptr %22, align 4, !tbaa !5
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds [6 x i32], ptr %21, i64 0, i64 %105
  store i32 %103, ptr %106, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %101
  %108 = load i32, ptr %22, align 4, !tbaa !5
  %109 = add i32 %108, 1
  store i32 %109, ptr %22, align 4, !tbaa !5
  br label %96, !llvm.loop !15

110:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %146, %110
  %112 = load i32, ptr %24, align 4, !tbaa !5
  %113 = icmp ult i32 %112, 16
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %149

115:                                              ; preds = %111
  %116 = load ptr, ptr %15, align 8, !tbaa !9
  %117 = load i32, ptr %24, align 4, !tbaa !5
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %135

119:                                              ; preds = %115
  %120 = load i32, ptr %24, align 4, !tbaa !5
  %121 = load i32, ptr %17, align 4, !tbaa !5
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds [64 x i8], ptr @_ZN6basist39g_bc7_table_anchor_index_third_subset_1E, i64 0, i64 %122
  %124 = load i8, ptr %123, align 1, !tbaa !11
  %125 = zext i8 %124 to i32
  %126 = icmp eq i32 %120, %125
  br i1 %126, label %135, label %127

127:                                              ; preds = %119
  %128 = load i32, ptr %24, align 4, !tbaa !5
  %129 = load i32, ptr %17, align 4, !tbaa !5
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds [64 x i8], ptr @_ZN6basist39g_bc7_table_anchor_index_third_subset_2E, i64 0, i64 %130
  %132 = load i8, ptr %131, align 1, !tbaa !11
  %133 = zext i8 %132 to i32
  %134 = icmp eq i32 %128, %133
  br i1 %134, label %135, label %138

135:                                              ; preds = %127, %119, %115
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = sub i32 %136, 1
  br label %140

138:                                              ; preds = %127
  %139 = load i32, ptr %10, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %138, %135
  %141 = phi i32 [ %137, %135 ], [ %139, %138 ]
  %142 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %116, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %141)
  %143 = load i32, ptr %24, align 4, !tbaa !5
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds [16 x i32], ptr %23, i64 0, i64 %144
  store i32 %142, ptr %145, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %140
  %147 = load i32, ptr %24, align 4, !tbaa !5
  %148 = add i32 %147, 1
  store i32 %148, ptr %24, align 4, !tbaa !5
  br label %111, !llvm.loop !16

149:                                              ; preds = %114
  %150 = load i32, ptr %14, align 4, !tbaa !5
  %151 = icmp eq i32 %150, 128
  br i1 %151, label %152, label %153

152:                                              ; preds = %149
  br label %155

153:                                              ; preds = %149
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.3, i32 noundef 480, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu18unpack_bc7_mode0_2EjPKvPNS_10color_rgbaE) #7
  unreachable

154:                                              ; No predecessors!
  br label %155

155:                                              ; preds = %154, %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %210, %155
  %157 = load i32, ptr %25, align 4, !tbaa !5
  %158 = icmp ult i32 %157, 6
  br i1 %158, label %160, label %159

159:                                              ; preds = %156
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %213

160:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %206, %160
  %162 = load i32, ptr %26, align 4, !tbaa !5
  %163 = icmp ult i32 %162, 4
  br i1 %163, label %165, label %164

164:                                              ; preds = %161
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %209

165:                                              ; preds = %161
  %166 = load i32, ptr %26, align 4, !tbaa !5
  %167 = icmp eq i32 %166, 3
  br i1 %167, label %168, label %169

168:                                              ; preds = %165
  br label %198

169:                                              ; preds = %165
  %170 = load i32, ptr %12, align 4, !tbaa !5
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %186

172:                                              ; preds = %169
  %173 = load i32, ptr %25, align 4, !tbaa !5
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds [6 x %"class.basisu::color_rgba"], ptr %18, i64 0, i64 %174
  %176 = load i32, ptr %26, align 4, !tbaa !5
  %177 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %175, i32 noundef %176)
  %178 = load i8, ptr %177, align 1, !tbaa !11
  %179 = zext i8 %178 to i32
  %180 = load i32, ptr %25, align 4, !tbaa !5
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds [6 x i32], ptr %21, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = load i32, ptr %11, align 4, !tbaa !5
  %185 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %179, i32 noundef %183, i32 noundef %184)
  br label %196

186:                                              ; preds = %169
  %187 = load i32, ptr %25, align 4, !tbaa !5
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds [6 x %"class.basisu::color_rgba"], ptr %18, i64 0, i64 %188
  %190 = load i32, ptr %26, align 4, !tbaa !5
  %191 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %189, i32 noundef %190)
  %192 = load i8, ptr %191, align 1, !tbaa !11
  %193 = zext i8 %192 to i32
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %193, i32 noundef %194)
  br label %196

196:                                              ; preds = %186, %172
  %197 = phi i32 [ %185, %172 ], [ %195, %186 ]
  br label %198

198:                                              ; preds = %196, %168
  %199 = phi i32 [ 255, %168 ], [ %197, %196 ]
  %200 = trunc i32 %199 to i8
  %201 = load i32, ptr %25, align 4, !tbaa !5
  %202 = zext i32 %201 to i64
  %203 = getelementptr inbounds [6 x %"class.basisu::color_rgba"], ptr %18, i64 0, i64 %202
  %204 = load i32, ptr %26, align 4, !tbaa !5
  %205 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %203, i32 noundef %204)
  store i8 %200, ptr %205, align 1, !tbaa !11
  br label %206

206:                                              ; preds = %198
  %207 = load i32, ptr %26, align 4, !tbaa !5
  %208 = add i32 %207, 1
  store i32 %208, ptr %26, align 4, !tbaa !5
  br label %161, !llvm.loop !17

209:                                              ; preds = %164
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %25, align 4, !tbaa !5
  %212 = add i32 %211, 1
  store i32 %212, ptr %25, align 4, !tbaa !5
  br label %156, !llvm.loop !18

213:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 96, ptr %27) #6
  %214 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %27, i32 0, i32 0, i32 0
  %215 = getelementptr inbounds %"class.basisu::color_rgba", ptr %214, i64 24
  br label %216

216:                                              ; preds = %216, %213
  %217 = phi ptr [ %214, %213 ], [ %218, %216 ]
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %217)
  %218 = getelementptr inbounds %"class.basisu::color_rgba", ptr %217, i64 1
  %219 = icmp eq ptr %218, %215
  br i1 %219, label %220, label %216

220:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %282, %220
  %222 = load i32, ptr %28, align 4, !tbaa !5
  %223 = icmp ult i32 %222, 3
  br i1 %223, label %225, label %224

224:                                              ; preds = %221
  store i32 20, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %285

225:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %226

226:                                              ; preds = %278, %225
  %227 = load i32, ptr %29, align 4, !tbaa !5
  %228 = load i32, ptr %13, align 4, !tbaa !5
  %229 = icmp ult i32 %227, %228
  br i1 %229, label %231, label %230

230:                                              ; preds = %226
  store i32 23, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %281

231:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %232

232:                                              ; preds = %267, %231
  %233 = load i32, ptr %30, align 4, !tbaa !5
  %234 = icmp ult i32 %233, 3
  br i1 %234, label %236, label %235

235:                                              ; preds = %232
  store i32 26, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %270

236:                                              ; preds = %232
  %237 = load i32, ptr %28, align 4, !tbaa !5
  %238 = mul i32 %237, 2
  %239 = add i32 %238, 0
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds [6 x %"class.basisu::color_rgba"], ptr %18, i64 0, i64 %240
  %242 = load i32, ptr %30, align 4, !tbaa !5
  %243 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %241, i32 noundef %242)
  %244 = load i8, ptr %243, align 1, !tbaa !11
  %245 = zext i8 %244 to i32
  %246 = load i32, ptr %28, align 4, !tbaa !5
  %247 = mul i32 %246, 2
  %248 = add i32 %247, 1
  %249 = zext i32 %248 to i64
  %250 = getelementptr inbounds [6 x %"class.basisu::color_rgba"], ptr %18, i64 0, i64 %249
  %251 = load i32, ptr %30, align 4, !tbaa !5
  %252 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %250, i32 noundef %251)
  %253 = load i8, ptr %252, align 1, !tbaa !11
  %254 = zext i8 %253 to i32
  %255 = load i32, ptr %29, align 4, !tbaa !5
  %256 = load i32, ptr %10, align 4, !tbaa !5
  %257 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %245, i32 noundef %254, i32 noundef %255, i32 noundef %256)
  %258 = trunc i32 %257 to i8
  %259 = load i32, ptr %28, align 4, !tbaa !5
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %27, i64 0, i64 %260
  %262 = load i32, ptr %29, align 4, !tbaa !5
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %261, i64 0, i64 %263
  %265 = load i32, ptr %30, align 4, !tbaa !5
  %266 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %264, i32 noundef %265)
  store i8 %258, ptr %266, align 1, !tbaa !11
  br label %267

267:                                              ; preds = %236
  %268 = load i32, ptr %30, align 4, !tbaa !5
  %269 = add i32 %268, 1
  store i32 %269, ptr %30, align 4, !tbaa !5
  br label %232, !llvm.loop !19

270:                                              ; preds = %235
  %271 = load i32, ptr %28, align 4, !tbaa !5
  %272 = zext i32 %271 to i64
  %273 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %27, i64 0, i64 %272
  %274 = load i32, ptr %29, align 4, !tbaa !5
  %275 = zext i32 %274 to i64
  %276 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %273, i64 0, i64 %275
  %277 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %276, i32 noundef 3)
  store i8 -1, ptr %277, align 1, !tbaa !11
  br label %278

278:                                              ; preds = %270
  %279 = load i32, ptr %29, align 4, !tbaa !5
  %280 = add i32 %279, 1
  store i32 %280, ptr %29, align 4, !tbaa !5
  br label %226, !llvm.loop !20

281:                                              ; preds = %230
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %28, align 4, !tbaa !5
  %284 = add i32 %283, 1
  store i32 %284, ptr %28, align 4, !tbaa !5
  br label %221, !llvm.loop !21

285:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %286

286:                                              ; preds = %310, %285
  %287 = load i32, ptr %31, align 4, !tbaa !5
  %288 = icmp ult i32 %287, 16
  br i1 %288, label %290, label %289

289:                                              ; preds = %286
  store i32 29, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %313

290:                                              ; preds = %286
  %291 = load i32, ptr %17, align 4, !tbaa !5
  %292 = mul i32 %291, 16
  %293 = load i32, ptr %31, align 4, !tbaa !5
  %294 = add i32 %292, %293
  %295 = zext i32 %294 to i64
  %296 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %295
  %297 = load i8, ptr %296, align 1, !tbaa !11
  %298 = zext i8 %297 to i64
  %299 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %27, i64 0, i64 %298
  %300 = load i32, ptr %31, align 4, !tbaa !5
  %301 = zext i32 %300 to i64
  %302 = getelementptr inbounds [16 x i32], ptr %23, i64 0, i64 %301
  %303 = load i32, ptr %302, align 4, !tbaa !5
  %304 = zext i32 %303 to i64
  %305 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %299, i64 0, i64 %304
  %306 = load ptr, ptr %7, align 8, !tbaa !9
  %307 = load i32, ptr %31, align 4, !tbaa !5
  %308 = zext i32 %307 to i64
  %309 = getelementptr inbounds %"class.basisu::color_rgba", ptr %306, i64 %308
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %309, ptr align 4 %305, i64 4, i1 false), !tbaa.struct !22
  br label %310

310:                                              ; preds = %290
  %311 = load i32, ptr %31, align 4, !tbaa !5
  %312 = add i32 %311, 1
  store i32 %312, ptr %31, align 4, !tbaa !5
  br label %286, !llvm.loop !23

313:                                              ; preds = %289
  store i1 true, ptr %4, align 1
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 96, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %314

314:                                              ; preds = %313, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %315 = load i1, ptr %4, align 1
  ret i1 %315
}

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

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 = { inlinehint 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 = { noreturn nounwind "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 #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = !{i64 0, i64 4, !11}
!23 = distinct !{!23, !13}


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

@_ZN6basist39g_bc7_table_anchor_index_third_subset_1E = external local_unnamed_addr constant [64 x i8], align 16
@_ZN6basist39g_bc7_table_anchor_index_third_subset_2E = external local_unnamed_addr constant [64 x i8], align 16
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [118 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu18unpack_bc7_mode0_2EjPKvPNS_10color_rgbaE = external hidden unnamed_addr constant [70 x i8], align 1
@_ZN6basist16g_bc7_partition3E = external local_unnamed_addr constant [1024 x i8], align 16

; 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 void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu18unpack_bc7_mode0_2EjPKvPNS_10color_rgbaE(i32 noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 {
  %4 = alloca i32, align 4
  %5 = alloca [6 x %"class.basisu::color_rgba"], align 16
  %6 = alloca [3 x [8 x %"class.basisu::color_rgba"]], align 16
  %7 = icmp eq i32 %0, 0
  %8 = select i1 %7, i32 3, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  %9 = add i32 %0, 1
  %10 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %9)
  %11 = shl nuw i32 1, %0
  %.not = icmp eq i32 %10, %11
  br i1 %.not, label %.preheader95.preheader, label %681

.preheader95.preheader:                           ; preds = %3
  %12 = select i1 %7, i32 4, i32 5
  %13 = select i1 %7, i32 4, i32 6
  %14 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %13)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %5)
  %.ptr.1 = getelementptr inbounds i8, ptr %5, i64 4
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %5, i64 12
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.4)
  %.ptr.5 = getelementptr inbounds i8, ptr %5, i64 20
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.5)
  %15 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %16 = trunc i32 %15 to i8
  %17 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  store i8 %16, ptr %17, align 1, !tbaa !9
  %18 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %19 = trunc i32 %18 to i8
  %20 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 0)
  store i8 %19, ptr %20, align 1, !tbaa !9
  %21 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %22 = trunc i32 %21 to i8
  %23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 0)
  store i8 %22, ptr %23, align 1, !tbaa !9
  %24 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %25 = trunc i32 %24 to i8
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 0)
  store i8 %25, ptr %26, align 1, !tbaa !9
  %27 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %28 = trunc i32 %27 to i8
  %29 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.4, i32 noundef 0)
  store i8 %28, ptr %29, align 1, !tbaa !9
  %30 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %31 = trunc i32 %30 to i8
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.5, i32 noundef 0)
  store i8 %31, ptr %32, align 1, !tbaa !9
  %33 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %34 = trunc i32 %33 to i8
  %35 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  store i8 %34, ptr %35, align 1, !tbaa !9
  %36 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %37 = trunc i32 %36 to i8
  %38 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 1)
  store i8 %37, ptr %38, align 1, !tbaa !9
  %39 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %40 = trunc i32 %39 to i8
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 1)
  store i8 %40, ptr %41, align 1, !tbaa !9
  %42 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %43 = trunc i32 %42 to i8
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 1)
  store i8 %43, ptr %44, align 1, !tbaa !9
  %45 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %46 = trunc i32 %45 to i8
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.4, i32 noundef 1)
  store i8 %46, ptr %47, align 1, !tbaa !9
  %48 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %49 = trunc i32 %48 to i8
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.5, i32 noundef 1)
  store i8 %49, ptr %50, align 1, !tbaa !9
  %51 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %52 = trunc i32 %51 to i8
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  store i8 %52, ptr %53, align 1, !tbaa !9
  %54 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %55 = trunc i32 %54 to i8
  %56 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 2)
  store i8 %55, ptr %56, align 1, !tbaa !9
  %57 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %58 = trunc i32 %57 to i8
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 2)
  store i8 %58, ptr %59, align 1, !tbaa !9
  %60 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %61 = trunc i32 %60 to i8
  %62 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 2)
  store i8 %61, ptr %62, align 1, !tbaa !9
  %63 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %64 = trunc i32 %63 to i8
  %65 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.4, i32 noundef 2)
  store i8 %64, ptr %65, align 1, !tbaa !9
  %66 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %12)
  %67 = trunc i32 %66 to i8
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.5, i32 noundef 2)
  store i8 %67, ptr %68, align 1, !tbaa !9
  br i1 %7, label %.lr.ph.split.preheader, label %194

.lr.ph.split.preheader:                           ; preds = %.preheader95.preheader
  %69 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 1)
  %70 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 1)
  %71 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 1)
  %72 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 1)
  %73 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 1)
  %74 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 1)
  br label %194

.preheader94:                                     ; preds = %332
  br i1 %7, label %.split.us.us, label %.split

.split.us.us:                                     ; preds = %.preheader94
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  %76 = load i8, ptr %75, align 1, !tbaa !9
  %77 = zext i8 %76 to i32
  %78 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %77, i32 noundef %.sroa.0.0, i32 noundef 4)
  %79 = trunc i32 %78 to i8
  %80 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  store i8 %79, ptr %80, align 1, !tbaa !9
  %81 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  %82 = load i8, ptr %81, align 1, !tbaa !9
  %83 = zext i8 %82 to i32
  %84 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %83, i32 noundef %.sroa.0.0, i32 noundef 4)
  %85 = trunc i32 %84 to i8
  %86 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  store i8 %85, ptr %86, align 1, !tbaa !9
  %87 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  %88 = load i8, ptr %87, align 1, !tbaa !9
  %89 = zext i8 %88 to i32
  %90 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %89, i32 noundef %.sroa.0.0, i32 noundef 4)
  %91 = trunc i32 %90 to i8
  %92 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  store i8 %91, ptr %92, align 1, !tbaa !9
  %93 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 3)
  store i8 -1, ptr %93, align 1, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %5, i64 4
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %94, i32 noundef 0)
  %96 = load i8, ptr %95, align 1, !tbaa !9
  %97 = zext i8 %96 to i32
  %98 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %97, i32 noundef %.sroa.6.0, i32 noundef 4)
  %99 = trunc i32 %98 to i8
  %100 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %94, i32 noundef 0)
  store i8 %99, ptr %100, align 1, !tbaa !9
  %101 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %94, i32 noundef 1)
  %102 = load i8, ptr %101, align 1, !tbaa !9
  %103 = zext i8 %102 to i32
  %104 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %103, i32 noundef %.sroa.6.0, i32 noundef 4)
  %105 = trunc i32 %104 to i8
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %94, i32 noundef 1)
  store i8 %105, ptr %106, align 1, !tbaa !9
  %107 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %94, i32 noundef 2)
  %108 = load i8, ptr %107, align 1, !tbaa !9
  %109 = zext i8 %108 to i32
  %110 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %109, i32 noundef %.sroa.6.0, i32 noundef 4)
  %111 = trunc i32 %110 to i8
  %112 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %94, i32 noundef 2)
  store i8 %111, ptr %112, align 1, !tbaa !9
  %113 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %94, i32 noundef 3)
  store i8 -1, ptr %113, align 1, !tbaa !9
  %114 = getelementptr inbounds i8, ptr %5, i64 8
  %115 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %114, i32 noundef 0)
  %116 = load i8, ptr %115, align 1, !tbaa !9
  %117 = zext i8 %116 to i32
  %118 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %117, i32 noundef %.sroa.10.0, i32 noundef 4)
  %119 = trunc i32 %118 to i8
  %120 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %114, i32 noundef 0)
  store i8 %119, ptr %120, align 1, !tbaa !9
  %121 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %114, i32 noundef 1)
  %122 = load i8, ptr %121, align 1, !tbaa !9
  %123 = zext i8 %122 to i32
  %124 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %123, i32 noundef %.sroa.10.0, i32 noundef 4)
  %125 = trunc i32 %124 to i8
  %126 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %114, i32 noundef 1)
  store i8 %125, ptr %126, align 1, !tbaa !9
  %127 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %114, i32 noundef 2)
  %128 = load i8, ptr %127, align 1, !tbaa !9
  %129 = zext i8 %128 to i32
  %130 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %129, i32 noundef %.sroa.10.0, i32 noundef 4)
  %131 = trunc i32 %130 to i8
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %114, i32 noundef 2)
  store i8 %131, ptr %132, align 1, !tbaa !9
  %133 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %114, i32 noundef 3)
  store i8 -1, ptr %133, align 1, !tbaa !9
  %134 = getelementptr inbounds i8, ptr %5, i64 12
  %135 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %134, i32 noundef 0)
  %136 = load i8, ptr %135, align 1, !tbaa !9
  %137 = zext i8 %136 to i32
  %138 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %137, i32 noundef %.sroa.14.0, i32 noundef 4)
  %139 = trunc i32 %138 to i8
  %140 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %134, i32 noundef 0)
  store i8 %139, ptr %140, align 1, !tbaa !9
  %141 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %134, i32 noundef 1)
  %142 = load i8, ptr %141, align 1, !tbaa !9
  %143 = zext i8 %142 to i32
  %144 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %143, i32 noundef %.sroa.14.0, i32 noundef 4)
  %145 = trunc i32 %144 to i8
  %146 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %134, i32 noundef 1)
  store i8 %145, ptr %146, align 1, !tbaa !9
  %147 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %134, i32 noundef 2)
  %148 = load i8, ptr %147, align 1, !tbaa !9
  %149 = zext i8 %148 to i32
  %150 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %149, i32 noundef %.sroa.14.0, i32 noundef 4)
  %151 = trunc i32 %150 to i8
  %152 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %134, i32 noundef 2)
  store i8 %151, ptr %152, align 1, !tbaa !9
  %153 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %134, i32 noundef 3)
  store i8 -1, ptr %153, align 1, !tbaa !9
  %154 = getelementptr inbounds i8, ptr %5, i64 16
  %155 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %154, i32 noundef 0)
  %156 = load i8, ptr %155, align 1, !tbaa !9
  %157 = zext i8 %156 to i32
  %158 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %157, i32 noundef %.sroa.18.0, i32 noundef 4)
  %159 = trunc i32 %158 to i8
  %160 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %154, i32 noundef 0)
  store i8 %159, ptr %160, align 1, !tbaa !9
  %161 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %154, i32 noundef 1)
  %162 = load i8, ptr %161, align 1, !tbaa !9
  %163 = zext i8 %162 to i32
  %164 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %163, i32 noundef %.sroa.18.0, i32 noundef 4)
  %165 = trunc i32 %164 to i8
  %166 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %154, i32 noundef 1)
  store i8 %165, ptr %166, align 1, !tbaa !9
  %167 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %154, i32 noundef 2)
  %168 = load i8, ptr %167, align 1, !tbaa !9
  %169 = zext i8 %168 to i32
  %170 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %169, i32 noundef %.sroa.18.0, i32 noundef 4)
  %171 = trunc i32 %170 to i8
  %172 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %154, i32 noundef 2)
  store i8 %171, ptr %172, align 1, !tbaa !9
  %173 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %154, i32 noundef 3)
  store i8 -1, ptr %173, align 1, !tbaa !9
  %174 = getelementptr inbounds i8, ptr %5, i64 20
  %175 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %174, i32 noundef 0)
  %176 = load i8, ptr %175, align 1, !tbaa !9
  %177 = zext i8 %176 to i32
  %178 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %177, i32 noundef %.sroa.22.0, i32 noundef 4)
  %179 = trunc i32 %178 to i8
  %180 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %174, i32 noundef 0)
  store i8 %179, ptr %180, align 1, !tbaa !9
  %181 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %174, i32 noundef 1)
  %182 = load i8, ptr %181, align 1, !tbaa !9
  %183 = zext i8 %182 to i32
  %184 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %183, i32 noundef %.sroa.22.0, i32 noundef 4)
  %185 = trunc i32 %184 to i8
  %186 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %174, i32 noundef 1)
  store i8 %185, ptr %186, align 1, !tbaa !9
  %187 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %174, i32 noundef 2)
  %188 = load i8, ptr %187, align 1, !tbaa !9
  %189 = zext i8 %188 to i32
  %190 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %189, i32 noundef %.sroa.22.0, i32 noundef 4)
  %191 = trunc i32 %190 to i8
  %192 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %174, i32 noundef 2)
  store i8 %191, ptr %192, align 1, !tbaa !9
  %193 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %174, i32 noundef 3)
  store i8 -1, ptr %193, align 1, !tbaa !9
  br label %.split105.us

194:                                              ; preds = %.preheader95.preheader, %.lr.ph.split.preheader
  %.sroa.22.0 = phi i32 [ %74, %.lr.ph.split.preheader ], [ undef, %.preheader95.preheader ]
  %.sroa.18.0 = phi i32 [ %73, %.lr.ph.split.preheader ], [ undef, %.preheader95.preheader ]
  %.sroa.14.0 = phi i32 [ %72, %.lr.ph.split.preheader ], [ undef, %.preheader95.preheader ]
  %.sroa.10.0 = phi i32 [ %71, %.lr.ph.split.preheader ], [ undef, %.preheader95.preheader ]
  %.sroa.6.0 = phi i32 [ %70, %.lr.ph.split.preheader ], [ undef, %.preheader95.preheader ]
  %.sroa.0.0 = phi i32 [ %69, %.lr.ph.split.preheader ], [ undef, %.preheader95.preheader ]
  %195 = zext i32 %14 to i64
  %196 = getelementptr inbounds [64 x i8], ptr @_ZN6basist39g_bc7_table_anchor_index_third_subset_1E, i64 0, i64 %195
  %197 = getelementptr inbounds [64 x i8], ptr @_ZN6basist39g_bc7_table_anchor_index_third_subset_2E, i64 0, i64 %195
  %198 = add nsw i32 %8, -1
  %199 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %198)
  %200 = load i8, ptr %196, align 1, !tbaa !9
  %201 = icmp eq i8 %200, 1
  br i1 %201, label %205, label %202

202:                                              ; preds = %194
  %203 = load i8, ptr %197, align 1, !tbaa !9
  %204 = icmp eq i8 %203, 1
  br i1 %204, label %205, label %206

205:                                              ; preds = %202, %194
  br label %206

206:                                              ; preds = %202, %205
  %207 = phi i32 [ %198, %205 ], [ %8, %202 ]
  %208 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %207)
  %209 = load i8, ptr %196, align 1, !tbaa !9
  %210 = icmp eq i8 %209, 2
  br i1 %210, label %214, label %211

211:                                              ; preds = %206
  %212 = load i8, ptr %197, align 1, !tbaa !9
  %213 = icmp eq i8 %212, 2
  br i1 %213, label %214, label %215

214:                                              ; preds = %211, %206
  br label %215

215:                                              ; preds = %211, %214
  %216 = phi i32 [ %198, %214 ], [ %8, %211 ]
  %217 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %216)
  %218 = load i8, ptr %196, align 1, !tbaa !9
  %219 = icmp eq i8 %218, 3
  br i1 %219, label %223, label %220

220:                                              ; preds = %215
  %221 = load i8, ptr %197, align 1, !tbaa !9
  %222 = icmp eq i8 %221, 3
  br i1 %222, label %223, label %224

223:                                              ; preds = %220, %215
  br label %224

224:                                              ; preds = %220, %223
  %225 = phi i32 [ %198, %223 ], [ %8, %220 ]
  %226 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %225)
  %227 = load i8, ptr %196, align 1, !tbaa !9
  %228 = icmp eq i8 %227, 4
  br i1 %228, label %232, label %229

229:                                              ; preds = %224
  %230 = load i8, ptr %197, align 1, !tbaa !9
  %231 = icmp eq i8 %230, 4
  br i1 %231, label %232, label %233

232:                                              ; preds = %229, %224
  br label %233

233:                                              ; preds = %229, %232
  %234 = phi i32 [ %198, %232 ], [ %8, %229 ]
  %235 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %234)
  %236 = load i8, ptr %196, align 1, !tbaa !9
  %237 = icmp eq i8 %236, 5
  br i1 %237, label %241, label %238

238:                                              ; preds = %233
  %239 = load i8, ptr %197, align 1, !tbaa !9
  %240 = icmp eq i8 %239, 5
  br i1 %240, label %241, label %242

241:                                              ; preds = %238, %233
  br label %242

242:                                              ; preds = %238, %241
  %243 = phi i32 [ %198, %241 ], [ %8, %238 ]
  %244 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %243)
  %245 = load i8, ptr %196, align 1, !tbaa !9
  %246 = icmp eq i8 %245, 6
  br i1 %246, label %250, label %247

247:                                              ; preds = %242
  %248 = load i8, ptr %197, align 1, !tbaa !9
  %249 = icmp eq i8 %248, 6
  br i1 %249, label %250, label %251

250:                                              ; preds = %247, %242
  br label %251

251:                                              ; preds = %247, %250
  %252 = phi i32 [ %198, %250 ], [ %8, %247 ]
  %253 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %252)
  %254 = load i8, ptr %196, align 1, !tbaa !9
  %255 = icmp eq i8 %254, 7
  br i1 %255, label %259, label %256

256:                                              ; preds = %251
  %257 = load i8, ptr %197, align 1, !tbaa !9
  %258 = icmp eq i8 %257, 7
  br i1 %258, label %259, label %260

259:                                              ; preds = %256, %251
  br label %260

260:                                              ; preds = %256, %259
  %261 = phi i32 [ %198, %259 ], [ %8, %256 ]
  %262 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %261)
  %263 = load i8, ptr %196, align 1, !tbaa !9
  %264 = icmp eq i8 %263, 8
  br i1 %264, label %268, label %265

265:                                              ; preds = %260
  %266 = load i8, ptr %197, align 1, !tbaa !9
  %267 = icmp eq i8 %266, 8
  br i1 %267, label %268, label %269

268:                                              ; preds = %265, %260
  br label %269

269:                                              ; preds = %265, %268
  %270 = phi i32 [ %198, %268 ], [ %8, %265 ]
  %271 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %270)
  %272 = load i8, ptr %196, align 1, !tbaa !9
  %273 = icmp eq i8 %272, 9
  br i1 %273, label %277, label %274

274:                                              ; preds = %269
  %275 = load i8, ptr %197, align 1, !tbaa !9
  %276 = icmp eq i8 %275, 9
  br i1 %276, label %277, label %278

277:                                              ; preds = %274, %269
  br label %278

278:                                              ; preds = %274, %277
  %279 = phi i32 [ %198, %277 ], [ %8, %274 ]
  %280 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %279)
  %281 = load i8, ptr %196, align 1, !tbaa !9
  %282 = icmp eq i8 %281, 10
  br i1 %282, label %286, label %283

283:                                              ; preds = %278
  %284 = load i8, ptr %197, align 1, !tbaa !9
  %285 = icmp eq i8 %284, 10
  br i1 %285, label %286, label %287

286:                                              ; preds = %283, %278
  br label %287

287:                                              ; preds = %283, %286
  %288 = phi i32 [ %198, %286 ], [ %8, %283 ]
  %289 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %288)
  %290 = load i8, ptr %196, align 1, !tbaa !9
  %291 = icmp eq i8 %290, 11
  br i1 %291, label %295, label %292

292:                                              ; preds = %287
  %293 = load i8, ptr %197, align 1, !tbaa !9
  %294 = icmp eq i8 %293, 11
  br i1 %294, label %295, label %296

295:                                              ; preds = %292, %287
  br label %296

296:                                              ; preds = %292, %295
  %297 = phi i32 [ %198, %295 ], [ %8, %292 ]
  %298 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %297)
  %299 = load i8, ptr %196, align 1, !tbaa !9
  %300 = icmp eq i8 %299, 12
  br i1 %300, label %304, label %301

301:                                              ; preds = %296
  %302 = load i8, ptr %197, align 1, !tbaa !9
  %303 = icmp eq i8 %302, 12
  br i1 %303, label %304, label %305

304:                                              ; preds = %301, %296
  br label %305

305:                                              ; preds = %301, %304
  %306 = phi i32 [ %198, %304 ], [ %8, %301 ]
  %307 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %306)
  %308 = load i8, ptr %196, align 1, !tbaa !9
  %309 = icmp eq i8 %308, 13
  br i1 %309, label %313, label %310

310:                                              ; preds = %305
  %311 = load i8, ptr %197, align 1, !tbaa !9
  %312 = icmp eq i8 %311, 13
  br i1 %312, label %313, label %314

313:                                              ; preds = %310, %305
  br label %314

314:                                              ; preds = %310, %313
  %315 = phi i32 [ %198, %313 ], [ %8, %310 ]
  %316 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %315)
  %317 = load i8, ptr %196, align 1, !tbaa !9
  %318 = icmp eq i8 %317, 14
  br i1 %318, label %322, label %319

319:                                              ; preds = %314
  %320 = load i8, ptr %197, align 1, !tbaa !9
  %321 = icmp eq i8 %320, 14
  br i1 %321, label %322, label %323

322:                                              ; preds = %319, %314
  br label %323

323:                                              ; preds = %319, %322
  %324 = phi i32 [ %198, %322 ], [ %8, %319 ]
  %325 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %324)
  %326 = load i8, ptr %196, align 1, !tbaa !9
  %327 = icmp eq i8 %326, 15
  br i1 %327, label %331, label %328

328:                                              ; preds = %323
  %329 = load i8, ptr %197, align 1, !tbaa !9
  %330 = icmp eq i8 %329, 15
  br i1 %330, label %331, label %332

331:                                              ; preds = %328, %323
  br label %332

332:                                              ; preds = %331, %328
  %333 = phi i32 [ %198, %331 ], [ %8, %328 ]
  %334 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %333)
  %335 = load i32, ptr %4, align 4, !tbaa !5
  %336 = icmp eq i32 %335, 128
  br i1 %336, label %.preheader94, label %337

337:                                              ; preds = %332
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, i32 noundef 480, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu18unpack_bc7_mode0_2EjPKvPNS_10color_rgbaE) #6
  unreachable

.split105.us:                                     ; preds = %.split, %.split.us.us
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #5
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %6)
  %.ptr87.1 = getelementptr inbounds i8, ptr %6, i64 4
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.1)
  %.ptr87.2 = getelementptr inbounds i8, ptr %6, i64 8
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.2)
  %.ptr87.3 = getelementptr inbounds i8, ptr %6, i64 12
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.3)
  %.ptr87.4 = getelementptr inbounds i8, ptr %6, i64 16
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.4)
  %.ptr87.5 = getelementptr inbounds i8, ptr %6, i64 20
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.5)
  %.ptr87.6 = getelementptr inbounds i8, ptr %6, i64 24
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.6)
  %.ptr87.7 = getelementptr inbounds i8, ptr %6, i64 28
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.7)
  %.ptr87.8 = getelementptr inbounds i8, ptr %6, i64 32
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.8)
  %.ptr87.9 = getelementptr inbounds i8, ptr %6, i64 36
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.9)
  %.ptr87.10 = getelementptr inbounds i8, ptr %6, i64 40
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.10)
  %.ptr87.11 = getelementptr inbounds i8, ptr %6, i64 44
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.11)
  %.ptr87.12 = getelementptr inbounds i8, ptr %6, i64 48
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.12)
  %.ptr87.13 = getelementptr inbounds i8, ptr %6, i64 52
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.13)
  %.ptr87.14 = getelementptr inbounds i8, ptr %6, i64 56
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.14)
  %.ptr87.15 = getelementptr inbounds i8, ptr %6, i64 60
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.15)
  %.ptr87.16 = getelementptr inbounds i8, ptr %6, i64 64
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.16)
  %.ptr87.17 = getelementptr inbounds i8, ptr %6, i64 68
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.17)
  %.ptr87.18 = getelementptr inbounds i8, ptr %6, i64 72
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.18)
  %.ptr87.19 = getelementptr inbounds i8, ptr %6, i64 76
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.19)
  %.ptr87.20 = getelementptr inbounds i8, ptr %6, i64 80
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.20)
  %.ptr87.21 = getelementptr inbounds i8, ptr %6, i64 84
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.21)
  %.ptr87.22 = getelementptr inbounds i8, ptr %6, i64 88
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.22)
  %.ptr87.23 = getelementptr inbounds i8, ptr %6, i64 92
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr87.23)
  br label %.preheader90

.split:                                           ; preds = %.preheader94
  %338 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  %339 = load i8, ptr %338, align 1, !tbaa !9
  %340 = zext i8 %339 to i32
  %341 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %340, i32 noundef 5)
  %342 = trunc i32 %341 to i8
  %343 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  store i8 %342, ptr %343, align 1, !tbaa !9
  %344 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  %345 = load i8, ptr %344, align 1, !tbaa !9
  %346 = zext i8 %345 to i32
  %347 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %346, i32 noundef 5)
  %348 = trunc i32 %347 to i8
  %349 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  store i8 %348, ptr %349, align 1, !tbaa !9
  %350 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  %351 = load i8, ptr %350, align 1, !tbaa !9
  %352 = zext i8 %351 to i32
  %353 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %352, i32 noundef 5)
  %354 = trunc i32 %353 to i8
  %355 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  store i8 %354, ptr %355, align 1, !tbaa !9
  %356 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 3)
  store i8 -1, ptr %356, align 1, !tbaa !9
  %357 = getelementptr inbounds i8, ptr %5, i64 4
  %358 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %357, i32 noundef 0)
  %359 = load i8, ptr %358, align 1, !tbaa !9
  %360 = zext i8 %359 to i32
  %361 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %360, i32 noundef 5)
  %362 = trunc i32 %361 to i8
  %363 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %357, i32 noundef 0)
  store i8 %362, ptr %363, align 1, !tbaa !9
  %364 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %357, i32 noundef 1)
  %365 = load i8, ptr %364, align 1, !tbaa !9
  %366 = zext i8 %365 to i32
  %367 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %366, i32 noundef 5)
  %368 = trunc i32 %367 to i8
  %369 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %357, i32 noundef 1)
  store i8 %368, ptr %369, align 1, !tbaa !9
  %370 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %357, i32 noundef 2)
  %371 = load i8, ptr %370, align 1, !tbaa !9
  %372 = zext i8 %371 to i32
  %373 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %372, i32 noundef 5)
  %374 = trunc i32 %373 to i8
  %375 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %357, i32 noundef 2)
  store i8 %374, ptr %375, align 1, !tbaa !9
  %376 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %357, i32 noundef 3)
  store i8 -1, ptr %376, align 1, !tbaa !9
  %377 = getelementptr inbounds i8, ptr %5, i64 8
  %378 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %377, i32 noundef 0)
  %379 = load i8, ptr %378, align 1, !tbaa !9
  %380 = zext i8 %379 to i32
  %381 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %380, i32 noundef 5)
  %382 = trunc i32 %381 to i8
  %383 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %377, i32 noundef 0)
  store i8 %382, ptr %383, align 1, !tbaa !9
  %384 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %377, i32 noundef 1)
  %385 = load i8, ptr %384, align 1, !tbaa !9
  %386 = zext i8 %385 to i32
  %387 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %386, i32 noundef 5)
  %388 = trunc i32 %387 to i8
  %389 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %377, i32 noundef 1)
  store i8 %388, ptr %389, align 1, !tbaa !9
  %390 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %377, i32 noundef 2)
  %391 = load i8, ptr %390, align 1, !tbaa !9
  %392 = zext i8 %391 to i32
  %393 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %392, i32 noundef 5)
  %394 = trunc i32 %393 to i8
  %395 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %377, i32 noundef 2)
  store i8 %394, ptr %395, align 1, !tbaa !9
  %396 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %377, i32 noundef 3)
  store i8 -1, ptr %396, align 1, !tbaa !9
  %397 = getelementptr inbounds i8, ptr %5, i64 12
  %398 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %397, i32 noundef 0)
  %399 = load i8, ptr %398, align 1, !tbaa !9
  %400 = zext i8 %399 to i32
  %401 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %400, i32 noundef 5)
  %402 = trunc i32 %401 to i8
  %403 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %397, i32 noundef 0)
  store i8 %402, ptr %403, align 1, !tbaa !9
  %404 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %397, i32 noundef 1)
  %405 = load i8, ptr %404, align 1, !tbaa !9
  %406 = zext i8 %405 to i32
  %407 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %406, i32 noundef 5)
  %408 = trunc i32 %407 to i8
  %409 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %397, i32 noundef 1)
  store i8 %408, ptr %409, align 1, !tbaa !9
  %410 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %397, i32 noundef 2)
  %411 = load i8, ptr %410, align 1, !tbaa !9
  %412 = zext i8 %411 to i32
  %413 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %412, i32 noundef 5)
  %414 = trunc i32 %413 to i8
  %415 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %397, i32 noundef 2)
  store i8 %414, ptr %415, align 1, !tbaa !9
  %416 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %397, i32 noundef 3)
  store i8 -1, ptr %416, align 1, !tbaa !9
  %417 = getelementptr inbounds i8, ptr %5, i64 16
  %418 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %417, i32 noundef 0)
  %419 = load i8, ptr %418, align 1, !tbaa !9
  %420 = zext i8 %419 to i32
  %421 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %420, i32 noundef 5)
  %422 = trunc i32 %421 to i8
  %423 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %417, i32 noundef 0)
  store i8 %422, ptr %423, align 1, !tbaa !9
  %424 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %417, i32 noundef 1)
  %425 = load i8, ptr %424, align 1, !tbaa !9
  %426 = zext i8 %425 to i32
  %427 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %426, i32 noundef 5)
  %428 = trunc i32 %427 to i8
  %429 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %417, i32 noundef 1)
  store i8 %428, ptr %429, align 1, !tbaa !9
  %430 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %417, i32 noundef 2)
  %431 = load i8, ptr %430, align 1, !tbaa !9
  %432 = zext i8 %431 to i32
  %433 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %432, i32 noundef 5)
  %434 = trunc i32 %433 to i8
  %435 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %417, i32 noundef 2)
  store i8 %434, ptr %435, align 1, !tbaa !9
  %436 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %417, i32 noundef 3)
  store i8 -1, ptr %436, align 1, !tbaa !9
  %437 = getelementptr inbounds i8, ptr %5, i64 20
  %438 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %437, i32 noundef 0)
  %439 = load i8, ptr %438, align 1, !tbaa !9
  %440 = zext i8 %439 to i32
  %441 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %440, i32 noundef 5)
  %442 = trunc i32 %441 to i8
  %443 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %437, i32 noundef 0)
  store i8 %442, ptr %443, align 1, !tbaa !9
  %444 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %437, i32 noundef 1)
  %445 = load i8, ptr %444, align 1, !tbaa !9
  %446 = zext i8 %445 to i32
  %447 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %446, i32 noundef 5)
  %448 = trunc i32 %447 to i8
  %449 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %437, i32 noundef 1)
  store i8 %448, ptr %449, align 1, !tbaa !9
  %450 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %437, i32 noundef 2)
  %451 = load i8, ptr %450, align 1, !tbaa !9
  %452 = zext i8 %451 to i32
  %453 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %452, i32 noundef 5)
  %454 = trunc i32 %453 to i8
  %455 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %437, i32 noundef 2)
  store i8 %454, ptr %455, align 1, !tbaa !9
  %456 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %437, i32 noundef 3)
  store i8 -1, ptr %456, align 1, !tbaa !9
  br label %.split105.us

.preheader90:                                     ; preds = %.split105.us, %.preheader90
  %indvars.iv121 = phi i64 [ 0, %.split105.us ], [ %indvars.iv.next122, %.preheader90 ]
  %457 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 0, i64 %indvars.iv121
  %458 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  %459 = load i8, ptr %458, align 1, !tbaa !9
  %460 = zext i8 %459 to i32
  %461 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 0)
  %462 = load i8, ptr %461, align 1, !tbaa !9
  %463 = zext i8 %462 to i32
  %464 = trunc nuw nsw i64 %indvars.iv121 to i32
  %465 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %460, i32 noundef %463, i32 noundef %464, i32 noundef %8)
  %466 = trunc i32 %465 to i8
  %467 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %457, i32 noundef 0)
  store i8 %466, ptr %467, align 1, !tbaa !9
  %468 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  %469 = load i8, ptr %468, align 1, !tbaa !9
  %470 = zext i8 %469 to i32
  %471 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 1)
  %472 = load i8, ptr %471, align 1, !tbaa !9
  %473 = zext i8 %472 to i32
  %474 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %470, i32 noundef %473, i32 noundef %464, i32 noundef %8)
  %475 = trunc i32 %474 to i8
  %476 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %457, i32 noundef 1)
  store i8 %475, ptr %476, align 1, !tbaa !9
  %477 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  %478 = load i8, ptr %477, align 1, !tbaa !9
  %479 = zext i8 %478 to i32
  %480 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 2)
  %481 = load i8, ptr %480, align 1, !tbaa !9
  %482 = zext i8 %481 to i32
  %483 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %479, i32 noundef %482, i32 noundef %464, i32 noundef %8)
  %484 = trunc i32 %483 to i8
  %485 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %457, i32 noundef 2)
  store i8 %484, ptr %485, align 1, !tbaa !9
  %486 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %457, i32 noundef 3)
  store i8 -1, ptr %486, align 1, !tbaa !9
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %487 = trunc nuw i64 %indvars.iv.next122 to i32
  %.075.highbits = lshr i32 %487, %8
  %488 = icmp eq i32 %.075.highbits, 0
  br i1 %488, label %.preheader90, label %.preheader90.1, !llvm.loop !10

.preheader90.1:                                   ; preds = %.preheader90, %.preheader90.1
  %indvars.iv121.1 = phi i64 [ %indvars.iv.next122.1, %.preheader90.1 ], [ 0, %.preheader90 ]
  %489 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 1, i64 %indvars.iv121.1
  %490 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 0)
  %491 = load i8, ptr %490, align 1, !tbaa !9
  %492 = zext i8 %491 to i32
  %493 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 0)
  %494 = load i8, ptr %493, align 1, !tbaa !9
  %495 = zext i8 %494 to i32
  %496 = trunc nuw nsw i64 %indvars.iv121.1 to i32
  %497 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %492, i32 noundef %495, i32 noundef %496, i32 noundef %8)
  %498 = trunc i32 %497 to i8
  %499 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %489, i32 noundef 0)
  store i8 %498, ptr %499, align 1, !tbaa !9
  %500 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 1)
  %501 = load i8, ptr %500, align 1, !tbaa !9
  %502 = zext i8 %501 to i32
  %503 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 1)
  %504 = load i8, ptr %503, align 1, !tbaa !9
  %505 = zext i8 %504 to i32
  %506 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %502, i32 noundef %505, i32 noundef %496, i32 noundef %8)
  %507 = trunc i32 %506 to i8
  %508 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %489, i32 noundef 1)
  store i8 %507, ptr %508, align 1, !tbaa !9
  %509 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 2)
  %510 = load i8, ptr %509, align 1, !tbaa !9
  %511 = zext i8 %510 to i32
  %512 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 2)
  %513 = load i8, ptr %512, align 1, !tbaa !9
  %514 = zext i8 %513 to i32
  %515 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %511, i32 noundef %514, i32 noundef %496, i32 noundef %8)
  %516 = trunc i32 %515 to i8
  %517 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %489, i32 noundef 2)
  store i8 %516, ptr %517, align 1, !tbaa !9
  %518 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %489, i32 noundef 3)
  store i8 -1, ptr %518, align 1, !tbaa !9
  %indvars.iv.next122.1 = add nuw nsw i64 %indvars.iv121.1, 1
  %519 = trunc nuw i64 %indvars.iv.next122.1 to i32
  %.075.highbits.1 = lshr i32 %519, %8
  %520 = icmp eq i32 %.075.highbits.1, 0
  br i1 %520, label %.preheader90.1, label %.preheader90.2, !llvm.loop !10

.preheader90.2:                                   ; preds = %.preheader90.1, %.preheader90.2
  %indvars.iv121.2 = phi i64 [ %indvars.iv.next122.2, %.preheader90.2 ], [ 0, %.preheader90.1 ]
  %521 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 2, i64 %indvars.iv121.2
  %522 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.4, i32 noundef 0)
  %523 = load i8, ptr %522, align 1, !tbaa !9
  %524 = zext i8 %523 to i32
  %525 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.5, i32 noundef 0)
  %526 = load i8, ptr %525, align 1, !tbaa !9
  %527 = zext i8 %526 to i32
  %528 = trunc nuw nsw i64 %indvars.iv121.2 to i32
  %529 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %524, i32 noundef %527, i32 noundef %528, i32 noundef %8)
  %530 = trunc i32 %529 to i8
  %531 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %521, i32 noundef 0)
  store i8 %530, ptr %531, align 1, !tbaa !9
  %532 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.4, i32 noundef 1)
  %533 = load i8, ptr %532, align 1, !tbaa !9
  %534 = zext i8 %533 to i32
  %535 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.5, i32 noundef 1)
  %536 = load i8, ptr %535, align 1, !tbaa !9
  %537 = zext i8 %536 to i32
  %538 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %534, i32 noundef %537, i32 noundef %528, i32 noundef %8)
  %539 = trunc i32 %538 to i8
  %540 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %521, i32 noundef 1)
  store i8 %539, ptr %540, align 1, !tbaa !9
  %541 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.4, i32 noundef 2)
  %542 = load i8, ptr %541, align 1, !tbaa !9
  %543 = zext i8 %542 to i32
  %544 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.5, i32 noundef 2)
  %545 = load i8, ptr %544, align 1, !tbaa !9
  %546 = zext i8 %545 to i32
  %547 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %543, i32 noundef %546, i32 noundef %528, i32 noundef %8)
  %548 = trunc i32 %547 to i8
  %549 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %521, i32 noundef 2)
  store i8 %548, ptr %549, align 1, !tbaa !9
  %550 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %521, i32 noundef 3)
  store i8 -1, ptr %550, align 1, !tbaa !9
  %indvars.iv.next122.2 = add nuw nsw i64 %indvars.iv121.2, 1
  %551 = trunc nuw i64 %indvars.iv.next122.2 to i32
  %.075.highbits.2 = lshr i32 %551, %8
  %552 = icmp eq i32 %.075.highbits.2, 0
  br i1 %552, label %.preheader90.2, label %.preheader, !llvm.loop !10

.preheader:                                       ; preds = %.preheader90.2
  %553 = shl i32 %14, 4
  %554 = zext i32 %553 to i64
  %555 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %554
  %556 = load i8, ptr %555, align 16, !tbaa !9
  %557 = zext i8 %556 to i64
  %558 = zext i32 %199 to i64
  %559 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %557, i64 %558
  %560 = load i32, ptr %559, align 4, !tbaa !9
  store i32 %560, ptr %2, align 1, !tbaa !9
  %561 = or disjoint i64 %554, 1
  %562 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %561
  %563 = load i8, ptr %562, align 1, !tbaa !9
  %564 = zext i8 %563 to i64
  %565 = zext i32 %208 to i64
  %566 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %564, i64 %565
  %567 = getelementptr inbounds i8, ptr %2, i64 4
  %568 = load i32, ptr %566, align 4, !tbaa !9
  store i32 %568, ptr %567, align 1, !tbaa !9
  %569 = or disjoint i64 %554, 2
  %570 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %569
  %571 = load i8, ptr %570, align 2, !tbaa !9
  %572 = zext i8 %571 to i64
  %573 = zext i32 %217 to i64
  %574 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %572, i64 %573
  %575 = getelementptr inbounds i8, ptr %2, i64 8
  %576 = load i32, ptr %574, align 4, !tbaa !9
  store i32 %576, ptr %575, align 1, !tbaa !9
  %577 = or disjoint i64 %554, 3
  %578 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %577
  %579 = load i8, ptr %578, align 1, !tbaa !9
  %580 = zext i8 %579 to i64
  %581 = zext i32 %226 to i64
  %582 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %580, i64 %581
  %583 = getelementptr inbounds i8, ptr %2, i64 12
  %584 = load i32, ptr %582, align 4, !tbaa !9
  store i32 %584, ptr %583, align 1, !tbaa !9
  %585 = or disjoint i64 %554, 4
  %586 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %585
  %587 = load i8, ptr %586, align 4, !tbaa !9
  %588 = zext i8 %587 to i64
  %589 = zext i32 %235 to i64
  %590 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %588, i64 %589
  %591 = getelementptr inbounds i8, ptr %2, i64 16
  %592 = load i32, ptr %590, align 4, !tbaa !9
  store i32 %592, ptr %591, align 1, !tbaa !9
  %593 = or disjoint i64 %554, 5
  %594 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %593
  %595 = load i8, ptr %594, align 1, !tbaa !9
  %596 = zext i8 %595 to i64
  %597 = zext i32 %244 to i64
  %598 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %596, i64 %597
  %599 = getelementptr inbounds i8, ptr %2, i64 20
  %600 = load i32, ptr %598, align 4, !tbaa !9
  store i32 %600, ptr %599, align 1, !tbaa !9
  %601 = or disjoint i64 %554, 6
  %602 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %601
  %603 = load i8, ptr %602, align 2, !tbaa !9
  %604 = zext i8 %603 to i64
  %605 = zext i32 %253 to i64
  %606 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %604, i64 %605
  %607 = getelementptr inbounds i8, ptr %2, i64 24
  %608 = load i32, ptr %606, align 4, !tbaa !9
  store i32 %608, ptr %607, align 1, !tbaa !9
  %609 = or disjoint i64 %554, 7
  %610 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %609
  %611 = load i8, ptr %610, align 1, !tbaa !9
  %612 = zext i8 %611 to i64
  %613 = zext i32 %262 to i64
  %614 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %612, i64 %613
  %615 = getelementptr inbounds i8, ptr %2, i64 28
  %616 = load i32, ptr %614, align 4, !tbaa !9
  store i32 %616, ptr %615, align 1, !tbaa !9
  %617 = or disjoint i64 %554, 8
  %618 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %617
  %619 = load i8, ptr %618, align 8, !tbaa !9
  %620 = zext i8 %619 to i64
  %621 = zext i32 %271 to i64
  %622 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %620, i64 %621
  %623 = getelementptr inbounds i8, ptr %2, i64 32
  %624 = load i32, ptr %622, align 4, !tbaa !9
  store i32 %624, ptr %623, align 1, !tbaa !9
  %625 = or disjoint i64 %554, 9
  %626 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %625
  %627 = load i8, ptr %626, align 1, !tbaa !9
  %628 = zext i8 %627 to i64
  %629 = zext i32 %280 to i64
  %630 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %628, i64 %629
  %631 = getelementptr inbounds i8, ptr %2, i64 36
  %632 = load i32, ptr %630, align 4, !tbaa !9
  store i32 %632, ptr %631, align 1, !tbaa !9
  %633 = or disjoint i64 %554, 10
  %634 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %633
  %635 = load i8, ptr %634, align 2, !tbaa !9
  %636 = zext i8 %635 to i64
  %637 = zext i32 %289 to i64
  %638 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %636, i64 %637
  %639 = getelementptr inbounds i8, ptr %2, i64 40
  %640 = load i32, ptr %638, align 4, !tbaa !9
  store i32 %640, ptr %639, align 1, !tbaa !9
  %641 = or disjoint i64 %554, 11
  %642 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %641
  %643 = load i8, ptr %642, align 1, !tbaa !9
  %644 = zext i8 %643 to i64
  %645 = zext i32 %298 to i64
  %646 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %644, i64 %645
  %647 = getelementptr inbounds i8, ptr %2, i64 44
  %648 = load i32, ptr %646, align 4, !tbaa !9
  store i32 %648, ptr %647, align 1, !tbaa !9
  %649 = or disjoint i64 %554, 12
  %650 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %649
  %651 = load i8, ptr %650, align 4, !tbaa !9
  %652 = zext i8 %651 to i64
  %653 = zext i32 %307 to i64
  %654 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %652, i64 %653
  %655 = getelementptr inbounds i8, ptr %2, i64 48
  %656 = load i32, ptr %654, align 4, !tbaa !9
  store i32 %656, ptr %655, align 1, !tbaa !9
  %657 = or disjoint i64 %554, 13
  %658 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %657
  %659 = load i8, ptr %658, align 1, !tbaa !9
  %660 = zext i8 %659 to i64
  %661 = zext i32 %316 to i64
  %662 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %660, i64 %661
  %663 = getelementptr inbounds i8, ptr %2, i64 52
  %664 = load i32, ptr %662, align 4, !tbaa !9
  store i32 %664, ptr %663, align 1, !tbaa !9
  %665 = or disjoint i64 %554, 14
  %666 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %665
  %667 = load i8, ptr %666, align 2, !tbaa !9
  %668 = zext i8 %667 to i64
  %669 = zext i32 %325 to i64
  %670 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %668, i64 %669
  %671 = getelementptr inbounds i8, ptr %2, i64 56
  %672 = load i32, ptr %670, align 4, !tbaa !9
  store i32 %672, ptr %671, align 1, !tbaa !9
  %673 = or disjoint i64 %554, 15
  %674 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition3E, i64 0, i64 %673
  %675 = load i8, ptr %674, align 1, !tbaa !9
  %676 = zext i8 %675 to i64
  %677 = zext i32 %334 to i64
  %678 = getelementptr inbounds [3 x [8 x %"class.basisu::color_rgba"]], ptr %6, i64 0, i64 %676, i64 %677
  %679 = getelementptr inbounds i8, ptr %2, i64 60
  %680 = load i32, ptr %678, align 4, !tbaa !9
  store i32 %680, ptr %679, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br label %681

681:                                              ; preds = %3, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  ret i1 %.not
}

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { noreturn nounwind "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 }
attributes #6 = { noreturn 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}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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