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

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

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

@.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_mode4_5EjPKvPNS_10color_rgbaE = external hidden unnamed_addr constant [70 x i8], align 1

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

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

55:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %56 = load ptr, ptr %15, align 8, !tbaa !9
  %57 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %56, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef 2)
  store i32 %57, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = icmp eq i32 %58, 4
  br i1 %59, label %60, label %63

60:                                               ; preds = %55
  %61 = load ptr, ptr %15, align 8, !tbaa !9
  %62 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %61, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef 1)
  br label %64

63:                                               ; preds = %55
  br label %64

64:                                               ; preds = %63, %60
  %65 = phi i32 [ %62, %60 ], [ 0, %63 ]
  store i32 %65, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %66 = getelementptr inbounds [2 x %"class.basisu::color_rgba"], ptr %19, i32 0, i32 0
  %67 = getelementptr inbounds %"class.basisu::color_rgba", ptr %66, i64 2
  br label %68

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

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

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

76:                                               ; preds = %73
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %106

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

78:                                               ; preds = %99, %77
  %79 = load i32, ptr %21, align 4, !tbaa !5
  %80 = icmp ult i32 %79, 2
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %102

82:                                               ; preds = %78
  %83 = load ptr, ptr %15, align 8, !tbaa !9
  %84 = load i32, ptr %20, align 4, !tbaa !5
  %85 = icmp eq i32 %84, 3
  br i1 %85, label %86, label %88

86:                                               ; preds = %82
  %87 = load i32, ptr %13, align 4, !tbaa !5
  br label %90

88:                                               ; preds = %82
  %89 = load i32, ptr %12, align 4, !tbaa !5
  br label %90

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

99:                                               ; preds = %90
  %100 = load i32, ptr %21, align 4, !tbaa !5
  %101 = add i32 %100, 1
  store i32 %101, ptr %21, align 4, !tbaa !5
  br label %78, !llvm.loop !12

102:                                              ; preds = %81
  br label %103

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

106:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %107 = load i32, ptr %18, align 4, !tbaa !5
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %106
  %110 = load i32, ptr %11, align 4, !tbaa !5
  br label %112

111:                                              ; preds = %106
  br label %112

112:                                              ; preds = %111, %109
  %113 = phi i32 [ %110, %109 ], [ 2, %111 ]
  store i32 %113, ptr %22, align 4, !tbaa !5
  %114 = getelementptr inbounds i32, ptr %22, i64 1
  %115 = load i32, ptr %18, align 4, !tbaa !5
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %112
  br label %120

118:                                              ; preds = %112
  %119 = load i32, ptr %11, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %118, %117
  %121 = phi i32 [ 2, %117 ], [ %119, %118 ]
  store i32 %121, ptr %114, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #6
  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 %122

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

125:                                              ; preds = %122
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %151

126:                                              ; preds = %122
  %127 = load ptr, ptr %15, align 8, !tbaa !9
  %128 = load i32, ptr %18, align 4, !tbaa !5
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = load i32, ptr %25, align 4, !tbaa !5
  %133 = icmp ne i32 %132, 0
  %134 = xor i1 %133, true
  %135 = zext i1 %134 to i64
  %136 = select i1 %134, i32 1, i32 0
  %137 = sub i32 %131, %136
  %138 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %127, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %137)
  %139 = load i32, ptr %18, align 4, !tbaa !5
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %142

141:                                              ; preds = %126
  br label %143

142:                                              ; preds = %126
  br label %143

143:                                              ; preds = %142, %141
  %144 = phi ptr [ %24, %141 ], [ %23, %142 ]
  %145 = load i32, ptr %25, align 4, !tbaa !5
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds [16 x i32], ptr %144, i64 0, i64 %146
  store i32 %138, ptr %147, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %143
  %149 = load i32, ptr %25, align 4, !tbaa !5
  %150 = add i32 %149, 1
  store i32 %150, ptr %25, align 4, !tbaa !5
  br label %122, !llvm.loop !15

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

152:                                              ; preds = %179, %151
  %153 = load i32, ptr %26, align 4, !tbaa !5
  %154 = icmp ult i32 %153, 16
  br i1 %154, label %156, label %155

155:                                              ; preds = %152
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %182

156:                                              ; preds = %152
  %157 = load ptr, ptr %15, align 8, !tbaa !9
  %158 = load i32, ptr %18, align 4, !tbaa !5
  %159 = sub i32 1, %158
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = load i32, ptr %26, align 4, !tbaa !5
  %164 = icmp ne i32 %163, 0
  %165 = xor i1 %164, true
  %166 = zext i1 %165 to i64
  %167 = select i1 %165, i32 1, i32 0
  %168 = sub i32 %162, %167
  %169 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %157, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %168)
  %170 = load i32, ptr %18, align 4, !tbaa !5
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %156
  br label %174

173:                                              ; preds = %156
  br label %174

174:                                              ; preds = %173, %172
  %175 = phi ptr [ %23, %172 ], [ %24, %173 ]
  %176 = load i32, ptr %26, align 4, !tbaa !5
  %177 = zext i32 %176 to i64
  %178 = getelementptr inbounds [16 x i32], ptr %175, i64 0, i64 %177
  store i32 %169, ptr %178, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %174
  %180 = load i32, ptr %26, align 4, !tbaa !5
  %181 = add i32 %180, 1
  store i32 %181, ptr %26, align 4, !tbaa !5
  br label %152, !llvm.loop !16

182:                                              ; preds = %155
  %183 = load i32, ptr %14, align 4, !tbaa !5
  %184 = icmp eq i32 %183, 128
  br i1 %184, label %185, label %186

185:                                              ; preds = %182
  br label %188

186:                                              ; preds = %182
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.3, i32 noundef 587, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu18unpack_bc7_mode4_5EjPKvPNS_10color_rgbaE) #7
  unreachable

187:                                              ; No predecessors!
  br label %188

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

189:                                              ; preds = %225, %188
  %190 = load i32, ptr %27, align 4, !tbaa !5
  %191 = icmp ult i32 %190, 2
  br i1 %191, label %193, label %192

192:                                              ; preds = %189
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %228

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

194:                                              ; preds = %221, %193
  %195 = load i32, ptr %28, align 4, !tbaa !5
  %196 = icmp ult i32 %195, 4
  br i1 %196, label %198, label %197

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

198:                                              ; preds = %194
  %199 = load i32, ptr %27, align 4, !tbaa !5
  %200 = zext i32 %199 to i64
  %201 = getelementptr inbounds [2 x %"class.basisu::color_rgba"], ptr %19, i64 0, i64 %200
  %202 = load i32, ptr %28, align 4, !tbaa !5
  %203 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %201, i32 noundef %202)
  %204 = load i8, ptr %203, align 1, !tbaa !11
  %205 = zext i8 %204 to i32
  %206 = load i32, ptr %28, align 4, !tbaa !5
  %207 = icmp eq i32 %206, 3
  br i1 %207, label %208, label %210

208:                                              ; preds = %198
  %209 = load i32, ptr %13, align 4, !tbaa !5
  br label %212

210:                                              ; preds = %198
  %211 = load i32, ptr %12, align 4, !tbaa !5
  br label %212

212:                                              ; preds = %210, %208
  %213 = phi i32 [ %209, %208 ], [ %211, %210 ]
  %214 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %205, i32 noundef %213)
  %215 = trunc i32 %214 to i8
  %216 = load i32, ptr %27, align 4, !tbaa !5
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds [2 x %"class.basisu::color_rgba"], ptr %19, i64 0, i64 %217
  %219 = load i32, ptr %28, align 4, !tbaa !5
  %220 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %218, i32 noundef %219)
  store i8 %215, ptr %220, align 1, !tbaa !11
  br label %221

221:                                              ; preds = %212
  %222 = load i32, ptr %28, align 4, !tbaa !5
  %223 = add i32 %222, 1
  store i32 %223, ptr %28, align 4, !tbaa !5
  br label %194, !llvm.loop !17

224:                                              ; preds = %197
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %27, align 4, !tbaa !5
  %227 = add i32 %226, 1
  store i32 %227, ptr %27, align 4, !tbaa !5
  br label %189, !llvm.loop !18

228:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #6
  %229 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %29, i32 0, i32 0
  %230 = getelementptr inbounds %"class.basisu::color_rgba", ptr %229, i64 8
  br label %231

231:                                              ; preds = %231, %228
  %232 = phi ptr [ %229, %228 ], [ %233, %231 ]
  call void @_ZN6basisu10color_rgbaC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %232)
  %233 = getelementptr inbounds %"class.basisu::color_rgba", ptr %232, i64 1
  %234 = icmp eq ptr %233, %230
  br i1 %234, label %235, label %231

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

236:                                              ; preds = %273, %235
  %237 = load i32, ptr %30, align 4, !tbaa !5
  %238 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 0
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = shl i32 1, %239
  %241 = icmp ult i32 %237, %240
  br i1 %241, label %243, label %242

242:                                              ; preds = %236
  store i32 20, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %276

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

244:                                              ; preds = %269, %243
  %245 = load i32, ptr %31, align 4, !tbaa !5
  %246 = icmp ult i32 %245, 3
  br i1 %246, label %248, label %247

247:                                              ; preds = %244
  store i32 23, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %272

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

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

272:                                              ; preds = %247
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %30, align 4, !tbaa !5
  %275 = add i32 %274, 1
  store i32 %275, ptr %30, align 4, !tbaa !5
  br label %236, !llvm.loop !20

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

277:                                              ; preds = %302, %276
  %278 = load i32, ptr %32, align 4, !tbaa !5
  %279 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 1
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %281 = shl i32 1, %280
  %282 = icmp ult i32 %278, %281
  br i1 %282, label %284, label %283

283:                                              ; preds = %277
  store i32 26, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %305

284:                                              ; preds = %277
  %285 = getelementptr inbounds [2 x %"class.basisu::color_rgba"], ptr %19, i64 0, i64 0
  %286 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %285, i32 noundef 3)
  %287 = load i8, ptr %286, align 1, !tbaa !11
  %288 = zext i8 %287 to i32
  %289 = getelementptr inbounds [2 x %"class.basisu::color_rgba"], ptr %19, i64 0, i64 1
  %290 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %289, i32 noundef 3)
  %291 = load i8, ptr %290, align 1, !tbaa !11
  %292 = zext i8 %291 to i32
  %293 = load i32, ptr %32, align 4, !tbaa !5
  %294 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 1
  %295 = load i32, ptr %294, align 4, !tbaa !5
  %296 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %288, i32 noundef %292, i32 noundef %293, i32 noundef %295)
  %297 = trunc i32 %296 to i8
  %298 = load i32, ptr %32, align 4, !tbaa !5
  %299 = zext i32 %298 to i64
  %300 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %29, i64 0, i64 %299
  %301 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %300, i32 noundef 3)
  store i8 %297, ptr %301, align 1, !tbaa !11
  br label %302

302:                                              ; preds = %284
  %303 = load i32, ptr %32, align 4, !tbaa !5
  %304 = add i32 %303, 1
  store i32 %304, ptr %32, align 4, !tbaa !5
  br label %277, !llvm.loop !21

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

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

309:                                              ; preds = %306
  store i32 29, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %358

310:                                              ; preds = %306
  %311 = load i32, ptr %33, align 4, !tbaa !5
  %312 = zext i32 %311 to i64
  %313 = getelementptr inbounds [16 x i32], ptr %23, i64 0, i64 %312
  %314 = load i32, ptr %313, align 4, !tbaa !5
  %315 = zext i32 %314 to i64
  %316 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %29, i64 0, i64 %315
  %317 = load ptr, ptr %7, align 8, !tbaa !9
  %318 = load i32, ptr %33, align 4, !tbaa !5
  %319 = zext i32 %318 to i64
  %320 = getelementptr inbounds %"class.basisu::color_rgba", ptr %317, i64 %319
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %320, ptr align 4 %316, i64 4, i1 false), !tbaa.struct !22
  %321 = load i32, ptr %33, align 4, !tbaa !5
  %322 = zext i32 %321 to i64
  %323 = getelementptr inbounds [16 x i32], ptr %24, i64 0, i64 %322
  %324 = load i32, ptr %323, align 4, !tbaa !5
  %325 = zext i32 %324 to i64
  %326 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %29, i64 0, i64 %325
  %327 = getelementptr inbounds %"class.basisu::color_rgba", ptr %326, i32 0, i32 0
  %328 = getelementptr inbounds %struct.anon, ptr %327, i32 0, i32 3
  %329 = load i8, ptr %328, align 1, !tbaa !11
  %330 = load ptr, ptr %7, align 8, !tbaa !9
  %331 = load i32, ptr %33, align 4, !tbaa !5
  %332 = zext i32 %331 to i64
  %333 = getelementptr inbounds %"class.basisu::color_rgba", ptr %330, i64 %332
  %334 = getelementptr inbounds %"class.basisu::color_rgba", ptr %333, i32 0, i32 0
  %335 = getelementptr inbounds %struct.anon, ptr %334, i32 0, i32 3
  store i8 %329, ptr %335, align 1, !tbaa !11
  %336 = load i32, ptr %17, align 4, !tbaa !5
  %337 = icmp uge i32 %336, 1
  br i1 %337, label %338, label %354

338:                                              ; preds = %310
  %339 = load ptr, ptr %7, align 8, !tbaa !9
  %340 = load i32, ptr %33, align 4, !tbaa !5
  %341 = zext i32 %340 to i64
  %342 = getelementptr inbounds %"class.basisu::color_rgba", ptr %339, i64 %341
  %343 = getelementptr inbounds %"class.basisu::color_rgba", ptr %342, i32 0, i32 0
  %344 = getelementptr inbounds %struct.anon, ptr %343, i32 0, i32 3
  %345 = load ptr, ptr %7, align 8, !tbaa !9
  %346 = load i32, ptr %33, align 4, !tbaa !5
  %347 = zext i32 %346 to i64
  %348 = getelementptr inbounds %"class.basisu::color_rgba", ptr %345, i64 %347
  %349 = getelementptr inbounds %"class.basisu::color_rgba", ptr %348, i32 0, i32 0
  %350 = load i32, ptr %17, align 4, !tbaa !5
  %351 = sub i32 %350, 1
  %352 = zext i32 %351 to i64
  %353 = getelementptr inbounds [4 x i8], ptr %349, i64 0, i64 %352
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %344, ptr noundef nonnull align 1 dereferenceable(1) %353) #6
  br label %354

354:                                              ; preds = %338, %310
  br label %355

355:                                              ; preds = %354
  %356 = load i32, ptr %33, align 4, !tbaa !5
  %357 = add i32 %356, 1
  store i32 %357, ptr %33, align 4, !tbaa !5
  br label %306, !llvm.loop !23

358:                                              ; preds = %309
  store i1 true, ptr %4, align 1
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %359

359:                                              ; preds = %358, %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
  %360 = load i1, ptr %4, align 1
  ret i1 %360
}

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

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

; 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_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 #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu18unpack_bc7_mode4_5EjPKvPNS_10color_rgbaE(i32 noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #4 {
  %4 = alloca i32, align 4
  %5 = alloca [2 x %"class.basisu::color_rgba"], align 1
  %6 = alloca [2 x i32], align 4
  %7 = alloca [8 x %"class.basisu::color_rgba"], align 16
  %8 = icmp eq i32 %0, 4
  %9 = select i1 %8, i32 3, i32 2
  %10 = select i1 %8, i32 5, i32 7
  %11 = select i1 %8, i32 6, i32 8
  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 %15, label %455

15:                                               ; preds = %3
  %16 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 2)
  br i1 %8, label %17, label %.preheader104.preheader

17:                                               ; preds = %15
  %18 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 1)
  br label %.preheader104.preheader

.preheader104.preheader:                          ; preds = %15, %17
  %19 = phi i32 [ %18, %17 ], [ 0, %15 ]
  call void @llvm.lifetime.start.p0(i64 8, 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)
  %20 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %21 = trunc i32 %20 to i8
  %22 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  store i8 %21, ptr %22, align 1, !tbaa !9
  %23 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %24 = trunc i32 %23 to i8
  %25 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 0)
  store i8 %24, ptr %25, align 1, !tbaa !9
  %26 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %27 = trunc i32 %26 to i8
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  store i8 %27, ptr %28, align 1, !tbaa !9
  %29 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %30 = trunc i32 %29 to i8
  %31 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 1)
  store i8 %30, ptr %31, align 1, !tbaa !9
  %32 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %33 = trunc i32 %32 to i8
  %34 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  store i8 %33, ptr %34, align 1, !tbaa !9
  %35 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %10)
  %36 = trunc i32 %35 to i8
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 2)
  store i8 %36, ptr %37, align 1, !tbaa !9
  %38 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %11)
  %39 = trunc i32 %38 to i8
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 3)
  store i8 %39, ptr %40, align 1, !tbaa !9
  %41 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %11)
  %42 = trunc i32 %41 to i8
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 3)
  store i8 %42, ptr %43, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %.not89 = icmp eq i32 %19, 0
  %44 = select i1 %.not89, i32 2, i32 %9
  store i32 %44, ptr %6, align 4, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %6, i64 4
  %46 = select i1 %.not89, i32 %9, i32 2
  store i32 %46, ptr %45, align 4, !tbaa !5
  %47 = zext i32 %19 to i64
  %48 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = add i32 %49, -1
  %51 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %50)
  %52 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %53 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %54 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %55 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %56 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %57 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %58 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %59 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %60 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %61 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %62 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %63 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %64 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %65 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %66 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %49)
  %67 = sub i32 1, %19
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = add i32 %70, -1
  %72 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %71)
  %73 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %74 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %75 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %76 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %77 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %78 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %79 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %80 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %81 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %82 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %83 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %84 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %85 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %86 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %87 = call noundef i32 @_ZN6basisu11read_bits32EPKhRjj(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %70)
  %. = select i1 %.not89, i32 %86, i32 %65
  %.1084 = select i1 %.not89, i32 %65, i32 %86
  %.1085 = select i1 %.not89, i32 %84, i32 %63
  %.1086 = select i1 %.not89, i32 %63, i32 %84
  %.1087 = select i1 %.not89, i32 %82, i32 %61
  %.1088 = select i1 %.not89, i32 %61, i32 %82
  %.1089 = select i1 %.not89, i32 %80, i32 %59
  %.1090 = select i1 %.not89, i32 %59, i32 %80
  %.1091 = select i1 %.not89, i32 %78, i32 %57
  %.1092 = select i1 %.not89, i32 %57, i32 %78
  %.1093 = select i1 %.not89, i32 %76, i32 %55
  %.1094 = select i1 %.not89, i32 %55, i32 %76
  %.1095 = select i1 %.not89, i32 %74, i32 %53
  %.1096 = select i1 %.not89, i32 %53, i32 %74
  %.1097 = select i1 %.not89, i32 %72, i32 %51
  %.1098 = select i1 %.not89, i32 %51, i32 %72
  %.1099 = select i1 %.not89, i32 %52, i32 %73
  %.1100 = select i1 %.not89, i32 %73, i32 %52
  %.1101 = select i1 %.not89, i32 %54, i32 %75
  %.1102 = select i1 %.not89, i32 %75, i32 %54
  %.1103 = select i1 %.not89, i32 %56, i32 %77
  %.1104 = select i1 %.not89, i32 %77, i32 %56
  %.1105 = select i1 %.not89, i32 %58, i32 %79
  %.1106 = select i1 %.not89, i32 %79, i32 %58
  %.1107 = select i1 %.not89, i32 %60, i32 %81
  %.1108 = select i1 %.not89, i32 %81, i32 %60
  %.1109 = select i1 %.not89, i32 %62, i32 %83
  %.1110 = select i1 %.not89, i32 %83, i32 %62
  %.1111 = select i1 %.not89, i32 %64, i32 %85
  %.1112 = select i1 %.not89, i32 %85, i32 %64
  %.1113 = select i1 %.not89, i32 %66, i32 %87
  %.1114 = select i1 %.not89, i32 %87, i32 %66
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = icmp eq i32 %88, 128
  br i1 %89, label %.preheader101.preheader, label %138

.preheader101.preheader:                          ; preds = %.preheader104.preheader
  %90 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  %91 = load i8, ptr %90, align 1, !tbaa !9
  %92 = zext i8 %91 to i32
  %93 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %92, i32 noundef %10)
  %94 = trunc i32 %93 to i8
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  store i8 %94, ptr %95, align 1, !tbaa !9
  %96 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  %97 = load i8, ptr %96, align 1, !tbaa !9
  %98 = zext i8 %97 to i32
  %99 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %98, i32 noundef %10)
  %100 = trunc i32 %99 to i8
  %101 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  store i8 %100, ptr %101, align 1, !tbaa !9
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  %103 = load i8, ptr %102, align 1, !tbaa !9
  %104 = zext i8 %103 to i32
  %105 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %104, i32 noundef %10)
  %106 = trunc i32 %105 to i8
  %107 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  store i8 %106, ptr %107, align 1, !tbaa !9
  %108 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 3)
  %109 = load i8, ptr %108, align 1, !tbaa !9
  %110 = zext i8 %109 to i32
  %111 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %110, i32 noundef %11)
  %112 = trunc i32 %111 to i8
  %113 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 3)
  store i8 %112, ptr %113, align 1, !tbaa !9
  %114 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 0)
  %115 = load i8, ptr %114, align 1, !tbaa !9
  %116 = zext i8 %115 to i32
  %117 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %116, i32 noundef %10)
  %118 = trunc i32 %117 to i8
  %119 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 0)
  store i8 %118, ptr %119, align 1, !tbaa !9
  %120 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 1)
  %121 = load i8, ptr %120, align 1, !tbaa !9
  %122 = zext i8 %121 to i32
  %123 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %122, i32 noundef %10)
  %124 = trunc i32 %123 to i8
  %125 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 1)
  store i8 %124, ptr %125, align 1, !tbaa !9
  %126 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 2)
  %127 = load i8, ptr %126, align 1, !tbaa !9
  %128 = zext i8 %127 to i32
  %129 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %128, i32 noundef %10)
  %130 = trunc i32 %129 to i8
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 2)
  store i8 %130, ptr %131, align 1, !tbaa !9
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 3)
  %133 = load i8, ptr %132, align 1, !tbaa !9
  %134 = zext i8 %133 to i32
  %135 = call noundef i32 @_ZN6basisuL11bc7_dequantEjj(i32 noundef %134, i32 noundef %11)
  %136 = trunc i32 %135 to i8
  %137 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 3)
  store i8 %136, ptr %137, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, 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)
  br label %.preheader99

138:                                              ; preds = %.preheader104.preheader
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, i32 noundef 587, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu18unpack_bc7_mode4_5EjPKvPNS_10color_rgbaE) #6
  unreachable

.preheader99:                                     ; preds = %.preheader101.preheader, %.preheader99
  %.079113 = phi i32 [ 0, %.preheader101.preheader ], [ %168, %.preheader99 ]
  %139 = zext i32 %.079113 to i64
  %140 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %139
  %141 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  %142 = load i8, ptr %141, align 1, !tbaa !9
  %143 = zext i8 %142 to i32
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 0)
  %145 = load i8, ptr %144, align 1, !tbaa !9
  %146 = zext i8 %145 to i32
  %147 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %143, i32 noundef %146, i32 noundef %.079113, i32 noundef %44)
  %148 = trunc i32 %147 to i8
  %149 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %140, i32 noundef 0)
  store i8 %148, ptr %149, align 1, !tbaa !9
  %150 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 1)
  %151 = load i8, ptr %150, align 1, !tbaa !9
  %152 = zext i8 %151 to i32
  %153 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 1)
  %154 = load i8, ptr %153, align 1, !tbaa !9
  %155 = zext i8 %154 to i32
  %156 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %152, i32 noundef %155, i32 noundef %.079113, i32 noundef %44)
  %157 = trunc i32 %156 to i8
  %158 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %140, i32 noundef 1)
  store i8 %157, ptr %158, align 1, !tbaa !9
  %159 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 2)
  %160 = load i8, ptr %159, align 1, !tbaa !9
  %161 = zext i8 %160 to i32
  %162 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 2)
  %163 = load i8, ptr %162, align 1, !tbaa !9
  %164 = zext i8 %163 to i32
  %165 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %161, i32 noundef %164, i32 noundef %.079113, i32 noundef %44)
  %166 = trunc i32 %165 to i8
  %167 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %140, i32 noundef 2)
  store i8 %166, ptr %167, align 1, !tbaa !9
  %168 = add i32 %.079113, 1
  %.079.highbits = lshr i32 %168, %44
  %169 = icmp eq i32 %.079.highbits, 0
  br i1 %169, label %.preheader99, label %.preheader98, !llvm.loop !10

.preheader:                                       ; preds = %.preheader98
  %.not94 = icmp eq i32 %16, 0
  br i1 %.not94, label %.preheader.split.us.preheader, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader
  %170 = add i32 %16, -1
  %171 = zext i32 %170 to i64
  %172 = zext i32 %.1098 to i64
  %173 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !9
  store i32 %174, ptr %2, align 1, !tbaa !9
  %175 = zext i32 %.1097 to i64
  %176 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %175, i32 0, i32 0, i64 3
  %177 = load i8, ptr %176, align 1, !tbaa !9
  %178 = getelementptr inbounds i8, ptr %2, i64 3
  store i8 %177, ptr %178, align 1, !tbaa !9
  %179 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %178, ptr noundef nonnull align 1 dereferenceable(1) %179) #5
  %180 = zext i32 %.1099 to i64
  %181 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %180
  %182 = getelementptr inbounds i8, ptr %2, i64 4
  %183 = load i32, ptr %181, align 4, !tbaa !9
  store i32 %183, ptr %182, align 1, !tbaa !9
  %184 = zext i32 %.1100 to i64
  %185 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %184, i32 0, i32 0, i64 3
  %186 = load i8, ptr %185, align 1, !tbaa !9
  %187 = getelementptr inbounds i8, ptr %2, i64 7
  store i8 %186, ptr %187, align 1, !tbaa !9
  %188 = getelementptr inbounds [4 x i8], ptr %182, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %187, ptr noundef nonnull align 1 dereferenceable(1) %188) #5
  %189 = zext i32 %.1096 to i64
  %190 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %189
  %191 = getelementptr inbounds i8, ptr %2, i64 8
  %192 = load i32, ptr %190, align 4, !tbaa !9
  store i32 %192, ptr %191, align 1, !tbaa !9
  %193 = zext i32 %.1095 to i64
  %194 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %193, i32 0, i32 0, i64 3
  %195 = load i8, ptr %194, align 1, !tbaa !9
  %196 = getelementptr inbounds i8, ptr %2, i64 11
  store i8 %195, ptr %196, align 1, !tbaa !9
  %197 = getelementptr inbounds [4 x i8], ptr %191, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %196, ptr noundef nonnull align 1 dereferenceable(1) %197) #5
  %198 = zext i32 %.1101 to i64
  %199 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %198
  %200 = getelementptr inbounds i8, ptr %2, i64 12
  %201 = load i32, ptr %199, align 4, !tbaa !9
  store i32 %201, ptr %200, align 1, !tbaa !9
  %202 = zext i32 %.1102 to i64
  %203 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %202, i32 0, i32 0, i64 3
  %204 = load i8, ptr %203, align 1, !tbaa !9
  %205 = getelementptr inbounds i8, ptr %2, i64 15
  store i8 %204, ptr %205, align 1, !tbaa !9
  %206 = getelementptr inbounds [4 x i8], ptr %200, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %205, ptr noundef nonnull align 1 dereferenceable(1) %206) #5
  %207 = zext i32 %.1094 to i64
  %208 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %207
  %209 = getelementptr inbounds i8, ptr %2, i64 16
  %210 = load i32, ptr %208, align 4, !tbaa !9
  store i32 %210, ptr %209, align 1, !tbaa !9
  %211 = zext i32 %.1093 to i64
  %212 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %211, i32 0, i32 0, i64 3
  %213 = load i8, ptr %212, align 1, !tbaa !9
  %214 = getelementptr inbounds i8, ptr %2, i64 19
  store i8 %213, ptr %214, align 1, !tbaa !9
  %215 = getelementptr inbounds [4 x i8], ptr %209, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %214, ptr noundef nonnull align 1 dereferenceable(1) %215) #5
  %216 = zext i32 %.1103 to i64
  %217 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %216
  %218 = getelementptr inbounds i8, ptr %2, i64 20
  %219 = load i32, ptr %217, align 4, !tbaa !9
  store i32 %219, ptr %218, align 1, !tbaa !9
  %220 = zext i32 %.1104 to i64
  %221 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %220, i32 0, i32 0, i64 3
  %222 = load i8, ptr %221, align 1, !tbaa !9
  %223 = getelementptr inbounds i8, ptr %2, i64 23
  store i8 %222, ptr %223, align 1, !tbaa !9
  %224 = getelementptr inbounds [4 x i8], ptr %218, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %223, ptr noundef nonnull align 1 dereferenceable(1) %224) #5
  %225 = zext i32 %.1092 to i64
  %226 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %225
  %227 = getelementptr inbounds i8, ptr %2, i64 24
  %228 = load i32, ptr %226, align 4, !tbaa !9
  store i32 %228, ptr %227, align 1, !tbaa !9
  %229 = zext i32 %.1091 to i64
  %230 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %229, i32 0, i32 0, i64 3
  %231 = load i8, ptr %230, align 1, !tbaa !9
  %232 = getelementptr inbounds i8, ptr %2, i64 27
  store i8 %231, ptr %232, align 1, !tbaa !9
  %233 = getelementptr inbounds [4 x i8], ptr %227, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %232, ptr noundef nonnull align 1 dereferenceable(1) %233) #5
  %234 = zext i32 %.1105 to i64
  %235 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %234
  %236 = getelementptr inbounds i8, ptr %2, i64 28
  %237 = load i32, ptr %235, align 4, !tbaa !9
  store i32 %237, ptr %236, align 1, !tbaa !9
  %238 = zext i32 %.1106 to i64
  %239 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %238, i32 0, i32 0, i64 3
  %240 = load i8, ptr %239, align 1, !tbaa !9
  %241 = getelementptr inbounds i8, ptr %2, i64 31
  store i8 %240, ptr %241, align 1, !tbaa !9
  %242 = getelementptr inbounds [4 x i8], ptr %236, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %241, ptr noundef nonnull align 1 dereferenceable(1) %242) #5
  %243 = zext i32 %.1090 to i64
  %244 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %243
  %245 = getelementptr inbounds i8, ptr %2, i64 32
  %246 = load i32, ptr %244, align 4, !tbaa !9
  store i32 %246, ptr %245, align 1, !tbaa !9
  %247 = zext i32 %.1089 to i64
  %248 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %247, i32 0, i32 0, i64 3
  %249 = load i8, ptr %248, align 1, !tbaa !9
  %250 = getelementptr inbounds i8, ptr %2, i64 35
  store i8 %249, ptr %250, align 1, !tbaa !9
  %251 = getelementptr inbounds [4 x i8], ptr %245, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %250, ptr noundef nonnull align 1 dereferenceable(1) %251) #5
  %252 = zext i32 %.1107 to i64
  %253 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %252
  %254 = getelementptr inbounds i8, ptr %2, i64 36
  %255 = load i32, ptr %253, align 4, !tbaa !9
  store i32 %255, ptr %254, align 1, !tbaa !9
  %256 = zext i32 %.1108 to i64
  %257 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %256, i32 0, i32 0, i64 3
  %258 = load i8, ptr %257, align 1, !tbaa !9
  %259 = getelementptr inbounds i8, ptr %2, i64 39
  store i8 %258, ptr %259, align 1, !tbaa !9
  %260 = getelementptr inbounds [4 x i8], ptr %254, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %259, ptr noundef nonnull align 1 dereferenceable(1) %260) #5
  %261 = zext i32 %.1088 to i64
  %262 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %261
  %263 = getelementptr inbounds i8, ptr %2, i64 40
  %264 = load i32, ptr %262, align 4, !tbaa !9
  store i32 %264, ptr %263, align 1, !tbaa !9
  %265 = zext i32 %.1087 to i64
  %266 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %265, i32 0, i32 0, i64 3
  %267 = load i8, ptr %266, align 1, !tbaa !9
  %268 = getelementptr inbounds i8, ptr %2, i64 43
  store i8 %267, ptr %268, align 1, !tbaa !9
  %269 = getelementptr inbounds [4 x i8], ptr %263, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %268, ptr noundef nonnull align 1 dereferenceable(1) %269) #5
  %270 = zext i32 %.1109 to i64
  %271 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %270
  %272 = getelementptr inbounds i8, ptr %2, i64 44
  %273 = load i32, ptr %271, align 4, !tbaa !9
  store i32 %273, ptr %272, align 1, !tbaa !9
  %274 = zext i32 %.1110 to i64
  %275 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %274, i32 0, i32 0, i64 3
  %276 = load i8, ptr %275, align 1, !tbaa !9
  %277 = getelementptr inbounds i8, ptr %2, i64 47
  store i8 %276, ptr %277, align 1, !tbaa !9
  %278 = getelementptr inbounds [4 x i8], ptr %272, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %277, ptr noundef nonnull align 1 dereferenceable(1) %278) #5
  %279 = zext i32 %.1086 to i64
  %280 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %279
  %281 = getelementptr inbounds i8, ptr %2, i64 48
  %282 = load i32, ptr %280, align 4, !tbaa !9
  store i32 %282, ptr %281, align 1, !tbaa !9
  %283 = zext i32 %.1085 to i64
  %284 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %283, i32 0, i32 0, i64 3
  %285 = load i8, ptr %284, align 1, !tbaa !9
  %286 = getelementptr inbounds i8, ptr %2, i64 51
  store i8 %285, ptr %286, align 1, !tbaa !9
  %287 = getelementptr inbounds [4 x i8], ptr %281, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %286, ptr noundef nonnull align 1 dereferenceable(1) %287) #5
  %288 = zext i32 %.1111 to i64
  %289 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %288
  %290 = getelementptr inbounds i8, ptr %2, i64 52
  %291 = load i32, ptr %289, align 4, !tbaa !9
  store i32 %291, ptr %290, align 1, !tbaa !9
  %292 = zext i32 %.1112 to i64
  %293 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %292, i32 0, i32 0, i64 3
  %294 = load i8, ptr %293, align 1, !tbaa !9
  %295 = getelementptr inbounds i8, ptr %2, i64 55
  store i8 %294, ptr %295, align 1, !tbaa !9
  %296 = getelementptr inbounds [4 x i8], ptr %290, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %295, ptr noundef nonnull align 1 dereferenceable(1) %296) #5
  %297 = zext i32 %.1084 to i64
  %298 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %297
  %299 = getelementptr inbounds i8, ptr %2, i64 56
  %300 = load i32, ptr %298, align 4, !tbaa !9
  store i32 %300, ptr %299, align 1, !tbaa !9
  %301 = zext i32 %. to i64
  %302 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %301, i32 0, i32 0, i64 3
  %303 = load i8, ptr %302, align 1, !tbaa !9
  %304 = getelementptr inbounds i8, ptr %2, i64 59
  store i8 %303, ptr %304, align 1, !tbaa !9
  %305 = getelementptr inbounds [4 x i8], ptr %299, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %304, ptr noundef nonnull align 1 dereferenceable(1) %305) #5
  %306 = zext i32 %.1113 to i64
  %307 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %306
  %308 = getelementptr inbounds i8, ptr %2, i64 60
  %309 = load i32, ptr %307, align 4, !tbaa !9
  store i32 %309, ptr %308, align 1, !tbaa !9
  %310 = zext i32 %.1114 to i64
  %311 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %310, i32 0, i32 0, i64 3
  %312 = load i8, ptr %311, align 1, !tbaa !9
  %313 = getelementptr inbounds i8, ptr %2, i64 63
  store i8 %312, ptr %313, align 1, !tbaa !9
  %314 = getelementptr inbounds [4 x i8], ptr %308, i64 0, i64 %171
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %313, ptr noundef nonnull align 1 dereferenceable(1) %314) #5
  br label %.split.us

.preheader.split.us.preheader:                    ; preds = %.preheader
  %315 = zext i32 %.1098 to i64
  %316 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %315
  %317 = load i32, ptr %316, align 4, !tbaa !9
  store i32 %317, ptr %2, align 1, !tbaa !9
  %318 = zext i32 %.1097 to i64
  %319 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %318, i32 0, i32 0, i64 3
  %320 = load i8, ptr %319, align 1, !tbaa !9
  %321 = getelementptr inbounds i8, ptr %2, i64 3
  store i8 %320, ptr %321, align 1, !tbaa !9
  %322 = zext i32 %.1099 to i64
  %323 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %322
  %324 = getelementptr inbounds i8, ptr %2, i64 4
  %325 = load i32, ptr %323, align 4, !tbaa !9
  store i32 %325, ptr %324, align 1, !tbaa !9
  %326 = zext i32 %.1100 to i64
  %327 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %326, i32 0, i32 0, i64 3
  %328 = load i8, ptr %327, align 1, !tbaa !9
  %329 = getelementptr inbounds i8, ptr %2, i64 7
  store i8 %328, ptr %329, align 1, !tbaa !9
  %330 = zext i32 %.1096 to i64
  %331 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %330
  %332 = getelementptr inbounds i8, ptr %2, i64 8
  %333 = load i32, ptr %331, align 4, !tbaa !9
  store i32 %333, ptr %332, align 1, !tbaa !9
  %334 = zext i32 %.1095 to i64
  %335 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %334, i32 0, i32 0, i64 3
  %336 = load i8, ptr %335, align 1, !tbaa !9
  %337 = getelementptr inbounds i8, ptr %2, i64 11
  store i8 %336, ptr %337, align 1, !tbaa !9
  %338 = zext i32 %.1101 to i64
  %339 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %338
  %340 = getelementptr inbounds i8, ptr %2, i64 12
  %341 = load i32, ptr %339, align 4, !tbaa !9
  store i32 %341, ptr %340, align 1, !tbaa !9
  %342 = zext i32 %.1102 to i64
  %343 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %342, i32 0, i32 0, i64 3
  %344 = load i8, ptr %343, align 1, !tbaa !9
  %345 = getelementptr inbounds i8, ptr %2, i64 15
  store i8 %344, ptr %345, align 1, !tbaa !9
  %346 = zext i32 %.1094 to i64
  %347 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %346
  %348 = getelementptr inbounds i8, ptr %2, i64 16
  %349 = load i32, ptr %347, align 4, !tbaa !9
  store i32 %349, ptr %348, align 1, !tbaa !9
  %350 = zext i32 %.1093 to i64
  %351 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %350, i32 0, i32 0, i64 3
  %352 = load i8, ptr %351, align 1, !tbaa !9
  %353 = getelementptr inbounds i8, ptr %2, i64 19
  store i8 %352, ptr %353, align 1, !tbaa !9
  %354 = zext i32 %.1103 to i64
  %355 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %354
  %356 = getelementptr inbounds i8, ptr %2, i64 20
  %357 = load i32, ptr %355, align 4, !tbaa !9
  store i32 %357, ptr %356, align 1, !tbaa !9
  %358 = zext i32 %.1104 to i64
  %359 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %358, i32 0, i32 0, i64 3
  %360 = load i8, ptr %359, align 1, !tbaa !9
  %361 = getelementptr inbounds i8, ptr %2, i64 23
  store i8 %360, ptr %361, align 1, !tbaa !9
  %362 = zext i32 %.1092 to i64
  %363 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %362
  %364 = getelementptr inbounds i8, ptr %2, i64 24
  %365 = load i32, ptr %363, align 4, !tbaa !9
  store i32 %365, ptr %364, align 1, !tbaa !9
  %366 = zext i32 %.1091 to i64
  %367 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %366, i32 0, i32 0, i64 3
  %368 = load i8, ptr %367, align 1, !tbaa !9
  %369 = getelementptr inbounds i8, ptr %2, i64 27
  store i8 %368, ptr %369, align 1, !tbaa !9
  %370 = zext i32 %.1105 to i64
  %371 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %370
  %372 = getelementptr inbounds i8, ptr %2, i64 28
  %373 = load i32, ptr %371, align 4, !tbaa !9
  store i32 %373, ptr %372, align 1, !tbaa !9
  %374 = zext i32 %.1106 to i64
  %375 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %374, i32 0, i32 0, i64 3
  %376 = load i8, ptr %375, align 1, !tbaa !9
  %377 = getelementptr inbounds i8, ptr %2, i64 31
  store i8 %376, ptr %377, align 1, !tbaa !9
  %378 = zext i32 %.1090 to i64
  %379 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %378
  %380 = getelementptr inbounds i8, ptr %2, i64 32
  %381 = load i32, ptr %379, align 4, !tbaa !9
  store i32 %381, ptr %380, align 1, !tbaa !9
  %382 = zext i32 %.1089 to i64
  %383 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %382, i32 0, i32 0, i64 3
  %384 = load i8, ptr %383, align 1, !tbaa !9
  %385 = getelementptr inbounds i8, ptr %2, i64 35
  store i8 %384, ptr %385, align 1, !tbaa !9
  %386 = zext i32 %.1107 to i64
  %387 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %386
  %388 = getelementptr inbounds i8, ptr %2, i64 36
  %389 = load i32, ptr %387, align 4, !tbaa !9
  store i32 %389, ptr %388, align 1, !tbaa !9
  %390 = zext i32 %.1108 to i64
  %391 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %390, i32 0, i32 0, i64 3
  %392 = load i8, ptr %391, align 1, !tbaa !9
  %393 = getelementptr inbounds i8, ptr %2, i64 39
  store i8 %392, ptr %393, align 1, !tbaa !9
  %394 = zext i32 %.1088 to i64
  %395 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %394
  %396 = getelementptr inbounds i8, ptr %2, i64 40
  %397 = load i32, ptr %395, align 4, !tbaa !9
  store i32 %397, ptr %396, align 1, !tbaa !9
  %398 = zext i32 %.1087 to i64
  %399 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %398, i32 0, i32 0, i64 3
  %400 = load i8, ptr %399, align 1, !tbaa !9
  %401 = getelementptr inbounds i8, ptr %2, i64 43
  store i8 %400, ptr %401, align 1, !tbaa !9
  %402 = zext i32 %.1109 to i64
  %403 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %402
  %404 = getelementptr inbounds i8, ptr %2, i64 44
  %405 = load i32, ptr %403, align 4, !tbaa !9
  store i32 %405, ptr %404, align 1, !tbaa !9
  %406 = zext i32 %.1110 to i64
  %407 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %406, i32 0, i32 0, i64 3
  %408 = load i8, ptr %407, align 1, !tbaa !9
  %409 = getelementptr inbounds i8, ptr %2, i64 47
  store i8 %408, ptr %409, align 1, !tbaa !9
  %410 = zext i32 %.1086 to i64
  %411 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %410
  %412 = getelementptr inbounds i8, ptr %2, i64 48
  %413 = load i32, ptr %411, align 4, !tbaa !9
  store i32 %413, ptr %412, align 1, !tbaa !9
  %414 = zext i32 %.1085 to i64
  %415 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %414, i32 0, i32 0, i64 3
  %416 = load i8, ptr %415, align 1, !tbaa !9
  %417 = getelementptr inbounds i8, ptr %2, i64 51
  store i8 %416, ptr %417, align 1, !tbaa !9
  %418 = zext i32 %.1111 to i64
  %419 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %418
  %420 = getelementptr inbounds i8, ptr %2, i64 52
  %421 = load i32, ptr %419, align 4, !tbaa !9
  store i32 %421, ptr %420, align 1, !tbaa !9
  %422 = zext i32 %.1112 to i64
  %423 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %422, i32 0, i32 0, i64 3
  %424 = load i8, ptr %423, align 1, !tbaa !9
  %425 = getelementptr inbounds i8, ptr %2, i64 55
  store i8 %424, ptr %425, align 1, !tbaa !9
  %426 = zext i32 %.1084 to i64
  %427 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %426
  %428 = getelementptr inbounds i8, ptr %2, i64 56
  %429 = load i32, ptr %427, align 4, !tbaa !9
  store i32 %429, ptr %428, align 1, !tbaa !9
  %430 = zext i32 %. to i64
  %431 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %430, i32 0, i32 0, i64 3
  %432 = load i8, ptr %431, align 1, !tbaa !9
  %433 = getelementptr inbounds i8, ptr %2, i64 59
  store i8 %432, ptr %433, align 1, !tbaa !9
  %434 = zext i32 %.1113 to i64
  %435 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %434
  %436 = getelementptr inbounds i8, ptr %2, i64 60
  %437 = load i32, ptr %435, align 4, !tbaa !9
  store i32 %437, ptr %436, align 1, !tbaa !9
  %438 = zext i32 %.1114 to i64
  %439 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %438, i32 0, i32 0, i64 3
  %440 = load i8, ptr %439, align 1, !tbaa !9
  %441 = getelementptr inbounds i8, ptr %2, i64 63
  store i8 %440, ptr %441, align 1, !tbaa !9
  br label %.split.us

.preheader98:                                     ; preds = %.preheader99, %.preheader98
  %.077114 = phi i32 [ %453, %.preheader98 ], [ 0, %.preheader99 ]
  %442 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 3)
  %443 = load i8, ptr %442, align 1, !tbaa !9
  %444 = zext i8 %443 to i32
  %445 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.ptr.1, i32 noundef 3)
  %446 = load i8, ptr %445, align 1, !tbaa !9
  %447 = zext i8 %446 to i32
  %448 = call noundef i32 @_ZN6basisuL10bc7_interpEjjjj(i32 noundef %444, i32 noundef %447, i32 noundef %.077114, i32 noundef %46)
  %449 = trunc i32 %448 to i8
  %450 = zext i32 %.077114 to i64
  %451 = getelementptr inbounds [8 x %"class.basisu::color_rgba"], ptr %7, i64 0, i64 %450
  %452 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %451, i32 noundef 3)
  store i8 %449, ptr %452, align 1, !tbaa !9
  %453 = add i32 %.077114, 1
  %.077.highbits = lshr i32 %453, %46
  %454 = icmp eq i32 %.077.highbits, 0
  br i1 %454, label %.preheader98, label %.preheader, !llvm.loop !12

.split.us:                                        ; preds = %.preheader.split.preheader, %.preheader.split.us.preheader
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %455

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass