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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [118 x i8], align 1
@_ZN6basist38g_bc7_table_anchor_index_second_subsetE = external constant [64 x i8], align 16
@__PRETTY_FUNCTION__._ZN6basisu20unpack_bc7_mode1_3_7EjPKvPNS_10color_rgbaE = external hidden unnamed_addr constant [72 x i8], align 1
@_ZN6basist16g_bc7_partition2E = 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: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #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) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu20unpack_bc7_mode1_3_7EjPKvPNS_10color_rgbaE(i32 noundef %0, ptr noundef %1, ptr noundef %2) #5 {
  %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 i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca [4 x %"class.basisu::color_rgba"], align 16
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca [4 x i32], align 16
  %23 = alloca i32, align 4
  %24 = alloca [16 x i32], align 16
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca [2 x [8 x %"class.basisu::color_rgba"]], align 16
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = 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 4, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = icmp eq i32 %33, 7
  %35 = zext i1 %34 to i64
  %36 = select i1 %34, i32 4, i32 3
  store i32 %36, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = icmp eq i32 %37, 1
  %39 = zext i1 %38 to i64
  %40 = select i1 %38, i32 3, i32 2
  store i32 %40, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = icmp eq i32 %41, 7
  br i1 %42, label %43, label %44

43:                                               ; preds = %3
  br label %49

44:                                               ; preds = %3
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = icmp eq i32 %45, 1
  %47 = zext i1 %46 to i64
  %48 = select i1 %46, i32 6, i32 7
  br label %49

49:                                               ; preds = %44, %43
  %50 = phi i32 [ 5, %43 ], [ %48, %44 ]
  store i32 %50, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = icmp eq i32 %51, 1
  %53 = zext i1 %52 to i64
  %54 = select i1 %52, i32 2, i32 4
  store i32 %54, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = icmp eq i32 %55, 1
  %57 = zext i1 %56 to i64
  %58 = select i1 %56, i1 true, i1 false
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = shl i32 1, %60
  store i32 %61, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %62 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %62, ptr %16, align 8, !tbaa !9
  %63 = load ptr, ptr %16, align 8, !tbaa !9
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = add i32 %64, 1
  %66 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %63, ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %65)
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = shl i32 1, %67
  %69 = icmp ne i32 %66, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %49
  store i1 false, ptr %4, align 1
  store i32 1, ptr %17, align 4
  br label %333

71:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %72 = load ptr, ptr %16, align 8, !tbaa !9
  %73 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %72, ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 6)
  store i32 %73, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %74 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %19, i32 0, i32 0
  %75 = getelementptr inbounds %"class.basisu::color_rgba", ptr %74, i64 4
  br label %76

76:                                               ; preds = %76, %71
  %77 = phi ptr [ %74, %71 ], [ %78, %76 ]
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %77)
  %78 = getelementptr inbounds %"class.basisu::color_rgba", ptr %77, i64 1
  %79 = icmp eq ptr %78, %75
  br i1 %79, label %80, label %76

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

81:                                               ; preds = %105, %80
  %82 = load i32, ptr %20, align 4, !tbaa !5
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = icmp ult i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %108

86:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %101, %86
  %88 = load i32, ptr %21, align 4, !tbaa !5
  %89 = icmp ult i32 %88, 4
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %104

91:                                               ; preds = %87
  %92 = load ptr, ptr %16, align 8, !tbaa !9
  %93 = load i32, ptr %11, align 4, !tbaa !5
  %94 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %92, ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %93)
  %95 = trunc i32 %94 to i8
  %96 = load i32, ptr %21, align 4, !tbaa !5
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %19, i64 0, i64 %97
  %99 = load i32, ptr %20, align 4, !tbaa !5
  %100 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %98, i32 noundef %99)
  store i8 %95, ptr %100, align 1, !tbaa !11
  br label %101

101:                                              ; preds = %91
  %102 = load i32, ptr %21, align 4, !tbaa !5
  %103 = add i32 %102, 1
  store i32 %103, ptr %21, align 4, !tbaa !5
  br label %87, !llvm.loop !12

104:                                              ; preds = %90
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %20, align 4, !tbaa !5
  %107 = add i32 %106, 1
  store i32 %107, ptr %20, align 4, !tbaa !5
  br label %81, !llvm.loop !14

108:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %120, %108
  %110 = load i32, ptr %23, align 4, !tbaa !5
  %111 = load i32, ptr %12, align 4, !tbaa !5
  %112 = icmp ult i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %123

114:                                              ; preds = %109
  %115 = load ptr, ptr %16, align 8, !tbaa !9
  %116 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %115, ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 1)
  %117 = load i32, ptr %23, align 4, !tbaa !5
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds [4 x i32], ptr %22, i64 0, i64 %118
  store i32 %116, ptr %119, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %114
  %121 = load i32, ptr %23, align 4, !tbaa !5
  %122 = add i32 %121, 1
  store i32 %122, ptr %23, align 4, !tbaa !5
  br label %109, !llvm.loop !15

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

124:                                              ; preds = %151, %123
  %125 = load i32, ptr %25, align 4, !tbaa !5
  %126 = icmp ult i32 %125, 16
  br i1 %126, label %128, label %127

127:                                              ; preds = %124
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %154

128:                                              ; preds = %124
  %129 = load ptr, ptr %16, align 8, !tbaa !9
  %130 = load i32, ptr %25, align 4, !tbaa !5
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %140

132:                                              ; preds = %128
  %133 = load i32, ptr %25, align 4, !tbaa !5
  %134 = load i32, ptr %18, align 4, !tbaa !5
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [64 x i8], ptr @_ZN6basist38g_bc7_table_anchor_index_second_subsetE, i64 0, i64 %135
  %137 = load i8, ptr %136, align 1, !tbaa !11
  %138 = zext i8 %137 to i32
  %139 = icmp eq i32 %133, %138
  br i1 %139, label %140, label %143

140:                                              ; preds = %132, %128
  %141 = load i32, ptr %10, align 4, !tbaa !5
  %142 = sub i32 %141, 1
  br label %145

143:                                              ; preds = %132
  %144 = load i32, ptr %10, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %143, %140
  %146 = phi i32 [ %142, %140 ], [ %144, %143 ]
  %147 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %129, ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %146)
  %148 = load i32, ptr %25, align 4, !tbaa !5
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds [16 x i32], ptr %24, i64 0, i64 %149
  store i32 %147, ptr %150, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %145
  %152 = load i32, ptr %25, align 4, !tbaa !5
  %153 = add i32 %152, 1
  store i32 %153, ptr %25, align 4, !tbaa !5
  br label %124, !llvm.loop !16

154:                                              ; preds = %127
  %155 = load i32, ptr %15, align 4, !tbaa !5
  %156 = icmp eq i32 %155, 128
  br i1 %156, label %157, label %158

157:                                              ; preds = %154
  br label %160

158:                                              ; preds = %154
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.3, i32 noundef 532, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu20unpack_bc7_mode1_3_7EjPKvPNS_10color_rgbaE) #7
  unreachable

159:                                              ; No predecessors!
  br label %160

160:                                              ; preds = %159, %157
  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 = %212, %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 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %215

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

166:                                              ; preds = %208, %165
  %167 = load i32, ptr %27, align 4, !tbaa !5
  %168 = icmp ult i32 %167, 4
  br i1 %168, label %170, label %169

169:                                              ; preds = %166
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %211

170:                                              ; preds = %166
  %171 = load i32, ptr %27, align 4, !tbaa !5
  %172 = load i32, ptr %5, align 4, !tbaa !5
  %173 = icmp eq i32 %172, 7
  %174 = zext i1 %173 to i64
  %175 = select i1 %173, i32 4, i32 3
  %176 = icmp eq i32 %171, %175
  br i1 %176, label %177, label %178

177:                                              ; preds = %170
  br label %200

178:                                              ; preds = %170
  %179 = load i32, ptr %26, align 4, !tbaa !5
  %180 = zext i32 %179 to i64
  %181 = getelementptr inbounds [4 x %"class.basisu::color_rgba"], ptr %19, i64 0, i64 %180
  %182 = load i32, ptr %27, align 4, !tbaa !5
  %183 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %181, i32 noundef %182)
  %184 = load i8, ptr %183, align 1, !tbaa !11
  %185 = zext i8 %184 to i32
  %186 = load i32, ptr %13, align 4, !tbaa !5
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %191

188:                                              ; preds = %178
  %189 = load i32, ptr %26, align 4, !tbaa !5
  %190 = lshr i32 %189, 1
  br label %193

191:                                              ; preds = %178
  %192 = load i32, ptr %26, align 4, !tbaa !5
  br label %193

193:                                              ; preds = %191, %188
  %194 = phi i32 [ %190, %188 ], [ %192, %191 ]
  %195 = zext i32 %194 to i64
  %196 = getelementptr inbounds [4 x i32], ptr %22, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = load i32, ptr %11, align 4, !tbaa !5
  %199 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %185, i32 noundef %197, i32 noundef %198)
  br label %200

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

208:                                              ; preds = %200
  %209 = load i32, ptr %27, align 4, !tbaa !5
  %210 = add i32 %209, 1
  store i32 %210, ptr %27, align 4, !tbaa !5
  br label %166, !llvm.loop !17

211:                                              ; preds = %169
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %26, align 4, !tbaa !5
  %214 = add i32 %213, 1
  store i32 %214, ptr %26, align 4, !tbaa !5
  br label %161, !llvm.loop !18

215:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #6
  %216 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %28, i32 0, i32 0, i32 0
  %217 = getelementptr inbounds %"class.basisu::color_rgba", ptr %216, i64 16
  br label %218

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

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

223:                                              ; preds = %301, %222
  %224 = load i32, ptr %29, align 4, !tbaa !5
  %225 = icmp ult i32 %224, 2
  br i1 %225, label %227, label %226

226:                                              ; preds = %223
  store i32 20, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %304

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

228:                                              ; preds = %297, %227
  %229 = load i32, ptr %30, align 4, !tbaa !5
  %230 = load i32, ptr %14, align 4, !tbaa !5
  %231 = icmp ult i32 %229, %230
  br i1 %231, label %233, label %232

232:                                              ; preds = %228
  store i32 23, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %300

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

234:                                              ; preds = %270, %233
  %235 = load i32, ptr %31, align 4, !tbaa !5
  %236 = load i32, ptr %9, align 4, !tbaa !5
  %237 = icmp ult i32 %235, %236
  br i1 %237, label %239, label %238

238:                                              ; preds = %234
  store i32 26, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %273

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

270:                                              ; preds = %239
  %271 = load i32, ptr %31, align 4, !tbaa !5
  %272 = add i32 %271, 1
  store i32 %272, ptr %31, align 4, !tbaa !5
  br label %234, !llvm.loop !19

273:                                              ; preds = %238
  %274 = load i32, ptr %9, align 4, !tbaa !5
  %275 = icmp eq i32 %274, 3
  br i1 %275, label %276, label %277

276:                                              ; preds = %273
  br label %287

277:                                              ; preds = %273
  %278 = load i32, ptr %29, align 4, !tbaa !5
  %279 = zext i32 %278 to i64
  %280 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %28, i64 0, i64 %279
  %281 = load i32, ptr %30, align 4, !tbaa !5
  %282 = zext i32 %281 to i64
  %283 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %280, i64 0, i64 %282
  %284 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %283, i32 noundef 3)
  %285 = load i8, ptr %284, align 1, !tbaa !11
  %286 = zext i8 %285 to i32
  br label %287

287:                                              ; preds = %277, %276
  %288 = phi i32 [ 255, %276 ], [ %286, %277 ]
  %289 = trunc i32 %288 to i8
  %290 = load i32, ptr %29, align 4, !tbaa !5
  %291 = zext i32 %290 to i64
  %292 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %28, i64 0, i64 %291
  %293 = load i32, ptr %30, align 4, !tbaa !5
  %294 = zext i32 %293 to i64
  %295 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %292, i64 0, i64 %294
  %296 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %295, i32 noundef 3)
  store i8 %289, ptr %296, align 1, !tbaa !11
  br label %297

297:                                              ; preds = %287
  %298 = load i32, ptr %30, align 4, !tbaa !5
  %299 = add i32 %298, 1
  store i32 %299, ptr %30, align 4, !tbaa !5
  br label %228, !llvm.loop !20

300:                                              ; preds = %232
  br label %301

301:                                              ; preds = %300
  %302 = load i32, ptr %29, align 4, !tbaa !5
  %303 = add i32 %302, 1
  store i32 %303, ptr %29, align 4, !tbaa !5
  br label %223, !llvm.loop !21

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

305:                                              ; preds = %329, %304
  %306 = load i32, ptr %32, align 4, !tbaa !5
  %307 = icmp ult i32 %306, 16
  br i1 %307, label %309, label %308

308:                                              ; preds = %305
  store i32 29, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %332

309:                                              ; preds = %305
  %310 = load i32, ptr %18, align 4, !tbaa !5
  %311 = mul i32 %310, 16
  %312 = load i32, ptr %32, align 4, !tbaa !5
  %313 = add i32 %311, %312
  %314 = zext i32 %313 to i64
  %315 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %314
  %316 = load i8, ptr %315, align 1, !tbaa !11
  %317 = zext i8 %316 to i64
  %318 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %28, i64 0, i64 %317
  %319 = load i32, ptr %32, align 4, !tbaa !5
  %320 = zext i32 %319 to i64
  %321 = getelementptr inbounds [16 x i32], ptr %24, i64 0, i64 %320
  %322 = load i32, ptr %321, align 4, !tbaa !5
  %323 = zext i32 %322 to i64
  %324 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %318, i64 0, i64 %323
  %325 = load ptr, ptr %7, align 8, !tbaa !9
  %326 = load i32, ptr %32, align 4, !tbaa !5
  %327 = zext i32 %326 to i64
  %328 = getelementptr inbounds %"class.basisu::color_rgba", ptr %325, i64 %327
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %328, ptr align 4 %324, i64 4, i1 false), !tbaa.struct !22
  br label %329

329:                                              ; preds = %309
  %330 = load i32, ptr %32, align 4, !tbaa !5
  %331 = add i32 %330, 1
  store i32 %331, ptr %32, align 4, !tbaa !5
  br label %305, !llvm.loop !23

332:                                              ; preds = %308
  store i1 true, ptr %4, align 1
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %333

333:                                              ; preds = %332, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, 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
  %334 = load i1, ptr %4, align 1
  ret i1 %334
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 #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] }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [118 x i8], align 1
@_ZN6basist38g_bc7_table_anchor_index_second_subsetE = external local_unnamed_addr constant [64 x i8], align 16
@__PRETTY_FUNCTION__._ZN6basisu20unpack_bc7_mode1_3_7EjPKvPNS_10color_rgbaE = external hidden unnamed_addr constant [72 x i8], align 1
@_ZN6basist16g_bc7_partition2E = 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: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #2

; 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 #3

; 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 uwtable
declare hidden noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

.preheader101.preheader:                          ; preds = %3
  %15 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 6)
  call void @llvm.lifetime.start.p0(i64 16, 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)
  br label %.preheader101

.preheader101:                                    ; preds = %.preheader101.preheader, %.preheader101
  %.086104 = phi i32 [ %28, %.preheader101 ], [ 0, %.preheader101.preheader ]
  %16 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %spec.select)
  %17 = trunc i32 %16 to i8
  %18 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef %.086104)
  store i8 %17, ptr %18, align 1, !tbaa !9
  %19 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %spec.select)
  %20 = trunc i32 %19 to i8
  %21 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef %.086104)
  store i8 %20, ptr %21, align 1, !tbaa !9
  %22 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %spec.select)
  %23 = trunc i32 %22 to i8
  %24 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef %.086104)
  store i8 %23, ptr %24, align 1, !tbaa !9
  %25 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %spec.select)
  %26 = trunc i32 %25 to i8
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef %.086104)
  store i8 %26, ptr %27, align 1, !tbaa !9
  %28 = add nuw nsw i32 %.086104, 1
  %exitcond.not = icmp eq i32 %28, %8
  br i1 %exitcond.not, label %29, label %.preheader101, !llvm.loop !10

29:                                               ; preds = %.preheader101
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  br label %30

30:                                               ; preds = %29, %30
  %indvars.iv = phi i64 [ 0, %29 ], [ %indvars.iv.next, %30 ]
  %31 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 1)
  %32 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 %31, ptr %32, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond118.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond118.not, label %33, label %30, !llvm.loop !12

33:                                               ; preds = %30
  %34 = zext i32 %15 to i64
  %35 = getelementptr inbounds [64 x i8], ptr @_ZN6basist38g_bc7_table_anchor_index_second_subsetE, i64 0, i64 %34
  %36 = add nsw i32 %10, -1
  %37 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %36)
  %38 = load i8, ptr %35, align 1, !tbaa !9
  %39 = icmp eq i8 %38, 1
  br i1 %39, label %.thread, label %41

.thread:                                          ; preds = %33
  %40 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %36)
  br label %44

41:                                               ; preds = %33
  %42 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %43 = icmp eq i8 %38, 2
  %spec.select177 = select i1 %43, i32 %36, i32 %10
  br label %44

44:                                               ; preds = %41, %.thread
  %45 = phi i32 [ %40, %.thread ], [ %42, %41 ]
  %46 = phi i32 [ %10, %.thread ], [ %spec.select177, %41 ]
  %47 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %46)
  %48 = load i8, ptr %35, align 1, !tbaa !9
  %49 = icmp eq i8 %48, 3
  br i1 %49, label %.thread170, label %51

.thread170:                                       ; preds = %44
  %50 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %36)
  br label %54

51:                                               ; preds = %44
  %52 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %53 = icmp eq i8 %48, 4
  %spec.select178 = select i1 %53, i32 %36, i32 %10
  br label %54

54:                                               ; preds = %51, %.thread170
  %55 = phi i32 [ %50, %.thread170 ], [ %52, %51 ]
  %56 = phi i32 [ %10, %.thread170 ], [ %spec.select178, %51 ]
  %57 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %56)
  %58 = load i8, ptr %35, align 1, !tbaa !9
  %59 = icmp eq i8 %58, 5
  br i1 %59, label %.thread171, label %61

.thread171:                                       ; preds = %54
  %60 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %36)
  br label %64

61:                                               ; preds = %54
  %62 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %63 = icmp eq i8 %58, 6
  %spec.select179 = select i1 %63, i32 %36, i32 %10
  br label %64

64:                                               ; preds = %61, %.thread171
  %65 = phi i32 [ %60, %.thread171 ], [ %62, %61 ]
  %66 = phi i32 [ %10, %.thread171 ], [ %spec.select179, %61 ]
  %67 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %66)
  %68 = load i8, ptr %35, align 1, !tbaa !9
  %69 = icmp eq i8 %68, 7
  br i1 %69, label %.thread172, label %71

.thread172:                                       ; preds = %64
  %70 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %36)
  br label %74

71:                                               ; preds = %64
  %72 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %73 = icmp eq i8 %68, 8
  %spec.select180 = select i1 %73, i32 %36, i32 %10
  br label %74

74:                                               ; preds = %71, %.thread172
  %75 = phi i32 [ %70, %.thread172 ], [ %72, %71 ]
  %76 = phi i32 [ %10, %.thread172 ], [ %spec.select180, %71 ]
  %77 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %76)
  %78 = load i8, ptr %35, align 1, !tbaa !9
  %79 = icmp eq i8 %78, 9
  br i1 %79, label %.thread173, label %81

.thread173:                                       ; preds = %74
  %80 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %36)
  br label %84

81:                                               ; preds = %74
  %82 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %83 = icmp eq i8 %78, 10
  %spec.select181 = select i1 %83, i32 %36, i32 %10
  br label %84

84:                                               ; preds = %81, %.thread173
  %85 = phi i32 [ %80, %.thread173 ], [ %82, %81 ]
  %86 = phi i32 [ %10, %.thread173 ], [ %spec.select181, %81 ]
  %87 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %86)
  %88 = load i8, ptr %35, align 1, !tbaa !9
  %89 = icmp eq i8 %88, 11
  br i1 %89, label %.thread174, label %91

.thread174:                                       ; preds = %84
  %90 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %36)
  br label %94

91:                                               ; preds = %84
  %92 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %93 = icmp eq i8 %88, 12
  %spec.select182 = select i1 %93, i32 %36, i32 %10
  br label %94

94:                                               ; preds = %91, %.thread174
  %95 = phi i32 [ %90, %.thread174 ], [ %92, %91 ]
  %96 = phi i32 [ %10, %.thread174 ], [ %spec.select182, %91 ]
  %97 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %96)
  %98 = load i8, ptr %35, align 1, !tbaa !9
  %99 = icmp eq i8 %98, 13
  br i1 %99, label %.thread175, label %101

.thread175:                                       ; preds = %94
  %100 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %36)
  br label %104

101:                                              ; preds = %94
  %102 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %103 = icmp eq i8 %98, 14
  %spec.select183 = select i1 %103, i32 %36, i32 %10
  br label %104

104:                                              ; preds = %101, %.thread175
  %105 = phi i32 [ %100, %.thread175 ], [ %102, %101 ]
  %106 = phi i32 [ %10, %.thread175 ], [ %spec.select183, %101 ]
  %107 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %106)
  %108 = load i8, ptr %35, align 1, !tbaa !9
  %109 = icmp eq i8 %108, 15
  %spec.select184 = select i1 %109, i32 %36, i32 %10
  %110 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %spec.select184)
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = icmp eq i32 %111, 128
  br i1 %112, label %114, label %113

113:                                              ; preds = %104
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, i32 noundef 532, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu20unpack_bc7_mode1_3_7EjPKvPNS_10color_rgbaE) #6
  unreachable

114:                                              ; preds = %104
  %115 = zext i1 %9 to i32
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  %117 = load i8, ptr %116, align 1, !tbaa !9
  %118 = zext i8 %117 to i32
  %119 = load i32, ptr %6, align 16, !tbaa !5
  %120 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %118, i32 noundef %119, i32 noundef %spec.select)
  %121 = trunc i32 %120 to i8
  %122 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  store i8 %121, ptr %122, align 1, !tbaa !9
  %123 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  %124 = load i8, ptr %123, align 1, !tbaa !9
  %125 = zext i8 %124 to i32
  %126 = load i32, ptr %6, align 16, !tbaa !5
  %127 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %125, i32 noundef %126, i32 noundef %spec.select)
  %128 = trunc i32 %127 to i8
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  store i8 %128, ptr %129, align 1, !tbaa !9
  %130 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  %131 = load i8, ptr %130, align 1, !tbaa !9
  %132 = zext i8 %131 to i32
  %133 = load i32, ptr %6, align 16, !tbaa !5
  %134 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %132, i32 noundef %133, i32 noundef %spec.select)
  %135 = trunc i32 %134 to i8
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  store i8 %135, ptr %136, align 1, !tbaa !9
  br i1 %.not94.not, label %137, label %144

137:                                              ; preds = %114
  %138 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 3)
  %139 = load i8, ptr %138, align 1, !tbaa !9
  %140 = zext i8 %139 to i32
  %141 = load i32, ptr %6, align 16, !tbaa !5
  %142 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %140, i32 noundef %141, i32 noundef 5)
  %143 = trunc i32 %142 to i8
  br label %144

144:                                              ; preds = %137, %114
  %145 = phi i8 [ %143, %137 ], [ -1, %114 ]
  %146 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 3)
  store i8 %145, ptr %146, align 1, !tbaa !9
  %147 = lshr i32 1, %115
  %148 = zext nneg i32 %147 to i64
  %149 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %148
  %150 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 0)
  %151 = load i8, ptr %150, align 1, !tbaa !9
  %152 = zext i8 %151 to i32
  %153 = load i32, ptr %149, align 4, !tbaa !5
  %154 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %152, i32 noundef %153, i32 noundef %spec.select)
  %155 = trunc i32 %154 to i8
  %156 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 0)
  store i8 %155, ptr %156, align 1, !tbaa !9
  %157 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 1)
  %158 = load i8, ptr %157, align 1, !tbaa !9
  %159 = zext i8 %158 to i32
  %160 = load i32, ptr %149, align 4, !tbaa !5
  %161 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %159, i32 noundef %160, i32 noundef %spec.select)
  %162 = trunc i32 %161 to i8
  %163 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 1)
  store i8 %162, ptr %163, align 1, !tbaa !9
  %164 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 2)
  %165 = load i8, ptr %164, align 1, !tbaa !9
  %166 = zext i8 %165 to i32
  %167 = load i32, ptr %149, align 4, !tbaa !5
  %168 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %166, i32 noundef %167, i32 noundef %spec.select)
  %169 = trunc i32 %168 to i8
  %170 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 2)
  store i8 %169, ptr %170, align 1, !tbaa !9
  br i1 %.not94.not, label %171, label %178

171:                                              ; preds = %144
  %172 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 3)
  %173 = load i8, ptr %172, align 1, !tbaa !9
  %174 = zext i8 %173 to i32
  %175 = load i32, ptr %149, align 4, !tbaa !5
  %176 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %174, i32 noundef %175, i32 noundef 5)
  %177 = trunc i32 %176 to i8
  br label %178

178:                                              ; preds = %171, %144
  %179 = phi i8 [ %177, %171 ], [ -1, %144 ]
  %180 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 3)
  store i8 %179, ptr %180, align 1, !tbaa !9
  %181 = lshr exact i32 2, %115
  %182 = zext nneg i32 %181 to i64
  %183 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %182
  %184 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 0)
  %185 = load i8, ptr %184, align 1, !tbaa !9
  %186 = zext i8 %185 to i32
  %187 = load i32, ptr %183, align 4, !tbaa !5
  %188 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %186, i32 noundef %187, i32 noundef %spec.select)
  %189 = trunc i32 %188 to i8
  %190 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 0)
  store i8 %189, ptr %190, align 1, !tbaa !9
  %191 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 1)
  %192 = load i8, ptr %191, align 1, !tbaa !9
  %193 = zext i8 %192 to i32
  %194 = load i32, ptr %183, align 4, !tbaa !5
  %195 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %193, i32 noundef %194, i32 noundef %spec.select)
  %196 = trunc i32 %195 to i8
  %197 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 1)
  store i8 %196, ptr %197, align 1, !tbaa !9
  %198 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 2)
  %199 = load i8, ptr %198, align 1, !tbaa !9
  %200 = zext i8 %199 to i32
  %201 = load i32, ptr %183, align 4, !tbaa !5
  %202 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %200, i32 noundef %201, i32 noundef %spec.select)
  %203 = trunc i32 %202 to i8
  %204 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 2)
  store i8 %203, ptr %204, align 1, !tbaa !9
  br i1 %.not94.not, label %205, label %212

205:                                              ; preds = %178
  %206 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 3)
  %207 = load i8, ptr %206, align 1, !tbaa !9
  %208 = zext i8 %207 to i32
  %209 = load i32, ptr %183, align 4, !tbaa !5
  %210 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %208, i32 noundef %209, i32 noundef 5)
  %211 = trunc i32 %210 to i8
  br label %212

212:                                              ; preds = %205, %178
  %213 = phi i8 [ %211, %205 ], [ -1, %178 ]
  %214 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef 3)
  store i8 %213, ptr %214, align 1, !tbaa !9
  %215 = lshr i32 3, %115
  %216 = zext nneg i32 %215 to i64
  %217 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %216
  %218 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 0)
  %219 = load i8, ptr %218, align 1, !tbaa !9
  %220 = zext i8 %219 to i32
  %221 = load i32, ptr %217, align 4, !tbaa !5
  %222 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %220, i32 noundef %221, i32 noundef %spec.select)
  %223 = trunc i32 %222 to i8
  %224 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 0)
  store i8 %223, ptr %224, align 1, !tbaa !9
  %225 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 1)
  %226 = load i8, ptr %225, align 1, !tbaa !9
  %227 = zext i8 %226 to i32
  %228 = load i32, ptr %217, align 4, !tbaa !5
  %229 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %227, i32 noundef %228, i32 noundef %spec.select)
  %230 = trunc i32 %229 to i8
  %231 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 1)
  store i8 %230, ptr %231, align 1, !tbaa !9
  %232 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 2)
  %233 = load i8, ptr %232, align 1, !tbaa !9
  %234 = zext i8 %233 to i32
  %235 = load i32, ptr %217, align 4, !tbaa !5
  %236 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %234, i32 noundef %235, i32 noundef %spec.select)
  %237 = trunc i32 %236 to i8
  %238 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 2)
  store i8 %237, ptr %238, align 1, !tbaa !9
  br i1 %.not94.not, label %239, label %.preheader98

239:                                              ; preds = %212
  %240 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 3)
  %241 = load i8, ptr %240, align 1, !tbaa !9
  %242 = zext i8 %241 to i32
  %243 = load i32, ptr %217, align 4, !tbaa !5
  %244 = call noundef i32 @_ZN6basisuL11bc7_dequantEjjj(i32 noundef %242, i32 noundef %243, i32 noundef 5)
  %245 = trunc i32 %244 to i8
  br label %.preheader98

.preheader98:                                     ; preds = %239, %212
  %246 = phi i8 [ %245, %239 ], [ -1, %212 ]
  %247 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef 3)
  store i8 %246, ptr %247, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %.ptr92.1 = getelementptr inbounds i8, ptr %7, i64 4
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.1)
  %.ptr92.2 = getelementptr inbounds i8, ptr %7, i64 8
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.2)
  %.ptr92.3 = getelementptr inbounds i8, ptr %7, i64 12
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.3)
  %.ptr92.4 = getelementptr inbounds i8, ptr %7, i64 16
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.4)
  %.ptr92.5 = getelementptr inbounds i8, ptr %7, i64 20
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.5)
  %.ptr92.6 = getelementptr inbounds i8, ptr %7, i64 24
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.6)
  %.ptr92.7 = getelementptr inbounds i8, ptr %7, i64 28
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.7)
  %.ptr92.8 = getelementptr inbounds i8, ptr %7, i64 32
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.8)
  %.ptr92.9 = getelementptr inbounds i8, ptr %7, i64 36
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.9)
  %.ptr92.10 = getelementptr inbounds i8, ptr %7, i64 40
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.10)
  %.ptr92.11 = getelementptr inbounds i8, ptr %7, i64 44
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.11)
  %.ptr92.12 = getelementptr inbounds i8, ptr %7, i64 48
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.12)
  %.ptr92.13 = getelementptr inbounds i8, ptr %7, i64 52
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.13)
  %.ptr92.14 = getelementptr inbounds i8, ptr %7, i64 56
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.14)
  %.ptr92.15 = getelementptr inbounds i8, ptr %7, i64 60
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %.ptr92.15)
  br i1 %.not94.not, label %.preheader96.us.us, label %.preheader96

.preheader96.us.us:                               ; preds = %.preheader98, %250
  %indvars.iv136 = phi i64 [ %indvars.iv.next137, %250 ], [ 0, %.preheader98 ]
  %248 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 0, i64 %indvars.iv136
  %249 = trunc nuw nsw i64 %indvars.iv136 to i32
  br label %256

250:                                              ; preds = %256
  %251 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %248, i32 noundef 3)
  %252 = load i8, ptr %251, align 1, !tbaa !9
  %253 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %248, i32 noundef 3)
  store i8 %252, ptr %253, align 1, !tbaa !9
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %254 = trunc nuw i64 %indvars.iv.next137 to i32
  %.079.highbits.us.us = lshr i32 %254, %10
  %255 = icmp eq i32 %.079.highbits.us.us, 0
  br i1 %255, label %.preheader96.us.us, label %.preheader96.us.us.1, !llvm.loop !13

256:                                              ; preds = %256, %.preheader96.us.us
  %.078110.us.us = phi i32 [ 0, %.preheader96.us.us ], [ %266, %256 ]
  %257 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef %.078110.us.us)
  %258 = load i8, ptr %257, align 1, !tbaa !9
  %259 = zext i8 %258 to i32
  %260 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef %.078110.us.us)
  %261 = load i8, ptr %260, align 1, !tbaa !9
  %262 = zext i8 %261 to i32
  %263 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %259, i32 noundef %262, i32 noundef %249, i32 noundef %10)
  %264 = trunc i32 %263 to i8
  %265 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %248, i32 noundef %.078110.us.us)
  store i8 %264, ptr %265, align 1, !tbaa !9
  %266 = add nuw nsw i32 %.078110.us.us, 1
  %exitcond135.not = icmp eq i32 %266, %8
  br i1 %exitcond135.not, label %250, label %256, !llvm.loop !14

.preheader96.us.us.1:                             ; preds = %250, %280
  %indvars.iv136.1 = phi i64 [ %indvars.iv.next137.1, %280 ], [ 0, %250 ]
  %267 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 1, i64 %indvars.iv136.1
  %268 = trunc nuw nsw i64 %indvars.iv136.1 to i32
  br label %269

269:                                              ; preds = %269, %.preheader96.us.us.1
  %.078110.us.us.1 = phi i32 [ 0, %.preheader96.us.us.1 ], [ %279, %269 ]
  %270 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef %.078110.us.us.1)
  %271 = load i8, ptr %270, align 1, !tbaa !9
  %272 = zext i8 %271 to i32
  %273 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef %.078110.us.us.1)
  %274 = load i8, ptr %273, align 1, !tbaa !9
  %275 = zext i8 %274 to i32
  %276 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %272, i32 noundef %275, i32 noundef %268, i32 noundef %10)
  %277 = trunc i32 %276 to i8
  %278 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %267, i32 noundef %.078110.us.us.1)
  store i8 %277, ptr %278, align 1, !tbaa !9
  %279 = add nuw nsw i32 %.078110.us.us.1, 1
  %exitcond135.1.not = icmp eq i32 %279, %8
  br i1 %exitcond135.1.not, label %280, label %269, !llvm.loop !14

280:                                              ; preds = %269
  %281 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %267, i32 noundef 3)
  %282 = load i8, ptr %281, align 1, !tbaa !9
  %283 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %267, i32 noundef 3)
  store i8 %282, ptr %283, align 1, !tbaa !9
  %indvars.iv.next137.1 = add nuw nsw i64 %indvars.iv136.1, 1
  %284 = trunc nuw i64 %indvars.iv.next137.1 to i32
  %.079.highbits.us.us.1 = lshr i32 %284, %10
  %285 = icmp eq i32 %.079.highbits.us.us.1, 0
  br i1 %285, label %.preheader96.us.us.1, label %.preheader, !llvm.loop !13

.preheader:                                       ; preds = %429, %280
  %286 = shl i32 %15, 4
  %287 = zext i32 %286 to i64
  %288 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %287
  %289 = load i8, ptr %288, align 16, !tbaa !9
  %290 = zext i8 %289 to i64
  %291 = zext i32 %37 to i64
  %292 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %290, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !9
  store i32 %293, ptr %2, align 1, !tbaa !9
  %294 = or disjoint i64 %287, 1
  %295 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %294
  %296 = load i8, ptr %295, align 1, !tbaa !9
  %297 = zext i8 %296 to i64
  %298 = zext i32 %45 to i64
  %299 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %297, i64 %298
  %300 = getelementptr inbounds i8, ptr %2, i64 4
  %301 = load i32, ptr %299, align 4, !tbaa !9
  store i32 %301, ptr %300, align 1, !tbaa !9
  %302 = or disjoint i64 %287, 2
  %303 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %302
  %304 = load i8, ptr %303, align 2, !tbaa !9
  %305 = zext i8 %304 to i64
  %306 = zext i32 %47 to i64
  %307 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %305, i64 %306
  %308 = getelementptr inbounds i8, ptr %2, i64 8
  %309 = load i32, ptr %307, align 4, !tbaa !9
  store i32 %309, ptr %308, align 1, !tbaa !9
  %310 = or disjoint i64 %287, 3
  %311 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %310
  %312 = load i8, ptr %311, align 1, !tbaa !9
  %313 = zext i8 %312 to i64
  %314 = zext i32 %55 to i64
  %315 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %313, i64 %314
  %316 = getelementptr inbounds i8, ptr %2, i64 12
  %317 = load i32, ptr %315, align 4, !tbaa !9
  store i32 %317, ptr %316, align 1, !tbaa !9
  %318 = or disjoint i64 %287, 4
  %319 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %318
  %320 = load i8, ptr %319, align 4, !tbaa !9
  %321 = zext i8 %320 to i64
  %322 = zext i32 %57 to i64
  %323 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %321, i64 %322
  %324 = getelementptr inbounds i8, ptr %2, i64 16
  %325 = load i32, ptr %323, align 4, !tbaa !9
  store i32 %325, ptr %324, align 1, !tbaa !9
  %326 = or disjoint i64 %287, 5
  %327 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %326
  %328 = load i8, ptr %327, align 1, !tbaa !9
  %329 = zext i8 %328 to i64
  %330 = zext i32 %65 to i64
  %331 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %329, i64 %330
  %332 = getelementptr inbounds i8, ptr %2, i64 20
  %333 = load i32, ptr %331, align 4, !tbaa !9
  store i32 %333, ptr %332, align 1, !tbaa !9
  %334 = or disjoint i64 %287, 6
  %335 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %334
  %336 = load i8, ptr %335, align 2, !tbaa !9
  %337 = zext i8 %336 to i64
  %338 = zext i32 %67 to i64
  %339 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %337, i64 %338
  %340 = getelementptr inbounds i8, ptr %2, i64 24
  %341 = load i32, ptr %339, align 4, !tbaa !9
  store i32 %341, ptr %340, align 1, !tbaa !9
  %342 = or disjoint i64 %287, 7
  %343 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %342
  %344 = load i8, ptr %343, align 1, !tbaa !9
  %345 = zext i8 %344 to i64
  %346 = zext i32 %75 to i64
  %347 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %345, i64 %346
  %348 = getelementptr inbounds i8, ptr %2, i64 28
  %349 = load i32, ptr %347, align 4, !tbaa !9
  store i32 %349, ptr %348, align 1, !tbaa !9
  %350 = or disjoint i64 %287, 8
  %351 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %350
  %352 = load i8, ptr %351, align 8, !tbaa !9
  %353 = zext i8 %352 to i64
  %354 = zext i32 %77 to i64
  %355 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %353, i64 %354
  %356 = getelementptr inbounds i8, ptr %2, i64 32
  %357 = load i32, ptr %355, align 4, !tbaa !9
  store i32 %357, ptr %356, align 1, !tbaa !9
  %358 = or disjoint i64 %287, 9
  %359 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %358
  %360 = load i8, ptr %359, align 1, !tbaa !9
  %361 = zext i8 %360 to i64
  %362 = zext i32 %85 to i64
  %363 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %361, i64 %362
  %364 = getelementptr inbounds i8, ptr %2, i64 36
  %365 = load i32, ptr %363, align 4, !tbaa !9
  store i32 %365, ptr %364, align 1, !tbaa !9
  %366 = or disjoint i64 %287, 10
  %367 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %366
  %368 = load i8, ptr %367, align 2, !tbaa !9
  %369 = zext i8 %368 to i64
  %370 = zext i32 %87 to i64
  %371 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %369, i64 %370
  %372 = getelementptr inbounds i8, ptr %2, i64 40
  %373 = load i32, ptr %371, align 4, !tbaa !9
  store i32 %373, ptr %372, align 1, !tbaa !9
  %374 = or disjoint i64 %287, 11
  %375 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %374
  %376 = load i8, ptr %375, align 1, !tbaa !9
  %377 = zext i8 %376 to i64
  %378 = zext i32 %95 to i64
  %379 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %377, i64 %378
  %380 = getelementptr inbounds i8, ptr %2, i64 44
  %381 = load i32, ptr %379, align 4, !tbaa !9
  store i32 %381, ptr %380, align 1, !tbaa !9
  %382 = or disjoint i64 %287, 12
  %383 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %382
  %384 = load i8, ptr %383, align 4, !tbaa !9
  %385 = zext i8 %384 to i64
  %386 = zext i32 %97 to i64
  %387 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %385, i64 %386
  %388 = getelementptr inbounds i8, ptr %2, i64 48
  %389 = load i32, ptr %387, align 4, !tbaa !9
  store i32 %389, ptr %388, align 1, !tbaa !9
  %390 = or disjoint i64 %287, 13
  %391 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %390
  %392 = load i8, ptr %391, align 1, !tbaa !9
  %393 = zext i8 %392 to i64
  %394 = zext i32 %105 to i64
  %395 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %393, i64 %394
  %396 = getelementptr inbounds i8, ptr %2, i64 52
  %397 = load i32, ptr %395, align 4, !tbaa !9
  store i32 %397, ptr %396, align 1, !tbaa !9
  %398 = or disjoint i64 %287, 14
  %399 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %398
  %400 = load i8, ptr %399, align 2, !tbaa !9
  %401 = zext i8 %400 to i64
  %402 = zext i32 %107 to i64
  %403 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %401, i64 %402
  %404 = getelementptr inbounds i8, ptr %2, i64 56
  %405 = load i32, ptr %403, align 4, !tbaa !9
  store i32 %405, ptr %404, align 1, !tbaa !9
  %406 = or disjoint i64 %287, 15
  %407 = getelementptr inbounds [1024 x i8], ptr @_ZN6basist16g_bc7_partition2E, i64 0, i64 %406
  %408 = load i8, ptr %407, align 1, !tbaa !9
  %409 = zext i8 %408 to i64
  %410 = zext i32 %110 to i64
  %411 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 %409, i64 %410
  %412 = getelementptr inbounds i8, ptr %2, i64 60
  %413 = load i32, ptr %411, align 4, !tbaa !9
  store i32 %413, ptr %412, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %448

.preheader96:                                     ; preds = %.preheader98, %433
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %433 ], [ 0, %.preheader98 ]
  %414 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 0, i64 %indvars.iv129
  %415 = trunc nuw nsw i64 %indvars.iv129 to i32
  br label %437

.preheader96.1:                                   ; preds = %433, %429
  %indvars.iv129.1 = phi i64 [ %indvars.iv.next130.1, %429 ], [ 0, %433 ]
  %416 = getelementptr inbounds [2 x [8 x %"class.basisu::color_rgba"]], ptr %7, i64 0, i64 1, i64 %indvars.iv129.1
  %417 = trunc nuw nsw i64 %indvars.iv129.1 to i32
  br label %418

418:                                              ; preds = %418, %.preheader96.1
  %.078110.1 = phi i32 [ 0, %.preheader96.1 ], [ %428, %418 ]
  %419 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.2, i32 noundef %.078110.1)
  %420 = load i8, ptr %419, align 1, !tbaa !9
  %421 = zext i8 %420 to i32
  %422 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.3, i32 noundef %.078110.1)
  %423 = load i8, ptr %422, align 1, !tbaa !9
  %424 = zext i8 %423 to i32
  %425 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %421, i32 noundef %424, i32 noundef %417, i32 noundef %10)
  %426 = trunc i32 %425 to i8
  %427 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %416, i32 noundef %.078110.1)
  store i8 %426, ptr %427, align 1, !tbaa !9
  %428 = add nuw nsw i32 %.078110.1, 1
  %exitcond128.1.not = icmp eq i32 %428, %8
  br i1 %exitcond128.1.not, label %429, label %418, !llvm.loop !14

429:                                              ; preds = %418
  %430 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %416, i32 noundef 3)
  store i8 -1, ptr %430, align 1, !tbaa !9
  %indvars.iv.next130.1 = add nuw nsw i64 %indvars.iv129.1, 1
  %431 = trunc nuw i64 %indvars.iv.next130.1 to i32
  %.079.highbits.1 = lshr i32 %431, %10
  %432 = icmp eq i32 %.079.highbits.1, 0
  br i1 %432, label %.preheader96.1, label %.preheader, !llvm.loop !13

433:                                              ; preds = %437
  %434 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %414, i32 noundef 3)
  store i8 -1, ptr %434, align 1, !tbaa !9
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %435 = trunc nuw i64 %indvars.iv.next130 to i32
  %.079.highbits = lshr i32 %435, %10
  %436 = icmp eq i32 %.079.highbits, 0
  br i1 %436, label %.preheader96, label %.preheader96.1, !llvm.loop !13

437:                                              ; preds = %.preheader96, %437
  %.078110 = phi i32 [ 0, %.preheader96 ], [ %447, %437 ]
  %438 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef %.078110)
  %439 = load i8, ptr %438, align 1, !tbaa !9
  %440 = zext i8 %439 to i32
  %441 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef %.078110)
  %442 = load i8, ptr %441, align 1, !tbaa !9
  %443 = zext i8 %442 to i32
  %444 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %440, i32 noundef %443, i32 noundef %415, i32 noundef %10)
  %445 = trunc i32 %444 to i8
  %446 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %414, i32 noundef %.078110)
  store i8 %445, ptr %446, align 1, !tbaa !9
  %447 = add nuw nsw i32 %.078110, 1
  %exitcond128.not = icmp eq i32 %447, %8
  br i1 %exitcond128.not, label %433, label %437, !llvm.loop !14

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

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


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