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

; 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.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type <{ ptr, i32, i32, i32, [4 x i8] }>
%class.anon.41 = type { ptr, i32, i32 }
%"class.basisu::basisu_frontend" = type { %"struct.basisu::basisu_frontend::params", i32, i32, i8, i8, i8, i32, i32, %"class.basisu::vector", %"class.basisu::vector.0", %"class.basisu::vector.0", %"class.basisu::vector.0", %"class.basisu::tree_vector_quant", %"class.basisu::vector.6", %"class.basisu::vector.6", %"class.basisu::vector.8", %"class.basisu::vector.6", %"class.basisu::vector.10", %"class.basisu::vector.12", %"class.basisu::vector.6", %"class.basisu::vector.0", %"class.basisu::vector.6", %"class.basisu::vector.8", %"class.basisu::vector.6", %"class.basisu::vector.14", %"class.basisu::vector.16", %"class.basisu::vector.18", %"class.basisu::vector.20", %"class.std::mutex" }
%"struct.basisu::basisu_frontend::params" = type { i32, ptr, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, ptr, i32, i32, i8, float, i32, ptr, ptr }
%"class.basisu::vector" = type { ptr, i32, i32 }
%"class.basisu::tree_vector_quant" = type <{ %"class.basisu::vector.2", %"class.basisu::vector.4", i32, [4 x i8] }>
%"class.basisu::vector.2" = type { ptr, i32, i32 }
%"class.basisu::vector.4" = type { ptr, i32, i32 }
%"class.basisu::vector.10" = type { ptr, i32, i32 }
%"class.basisu::vector.12" = type { ptr, i32, i32 }
%"class.basisu::vector.0" = type { ptr, i32, i32 }
%"class.basisu::vector.8" = type { ptr, i32, i32 }
%"class.basisu::vector.6" = type { ptr, i32, i32 }
%"class.basisu::vector.14" = type { ptr, i32, i32 }
%"class.basisu::vector.16" = type { ptr, i32, i32 }
%"class.basisu::vector.18" = type { ptr, i32, i32 }
%"class.basisu::vector.20" = type { ptr, i32, i32 }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"struct.basist::endpoint" = type <{ %"struct.basist::color32", i8, [3 x i8] }>
%"struct.basist::color32" = type { %union.anon.33 }
%union.anon.33 = type { i32 }
%"struct.basisu::basisu_frontend::endpoint_cluster_etc_params" = type <{ [2 x %"class.basisu::color_rgba"], [2 x i32], [2 x i64], %"class.basisu::vector.18", [2 x i8], i8, [5 x i8] }>
%"class.basisu::color_rgba" = type { %union.anon }
%union.anon = type { [4 x i8] }
%struct.anon.34 = type { i8, i8, i8, i8 }

@.str.15 = external hidden unnamed_addr constant [32 x i8], align 1

declare void @_ZN6basisu12debug_printfEPKcz(ptr noundef, ...) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorINS_9etc_blockEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu15basisu_frontend21init_global_codebooksEv(ptr noundef nonnull align 8 dereferenceable(496) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::function", align 8
  %18 = alloca %class.anon, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::function", align 8
  %29 = alloca %class.anon.41, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %35 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %36 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %36, i32 0, i32 18
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  store ptr %38, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basist32basisu_lowlevel_etc1s_transcoder13get_endpointsEv(ptr noundef nonnull align 8 dereferenceable(792) %39)
  store ptr %40, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basist32basisu_lowlevel_etc1s_transcoder13get_selectorsEv(ptr noundef nonnull align 8 dereferenceable(792) %41)
  store ptr %42, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 17
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = call noundef i32 @_ZNK6basisu6vectorIN6basist8endpointEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %44)
  %46 = zext i32 %45 to i64
  call void @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %43, i64 noundef %46, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !31
  br label %47

47:                                               ; preds = %125, %1
  %48 = load i32, ptr %6, align 4, !tbaa !31
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = call noundef i32 @_ZNK6basisu6vectorIN6basist8endpointEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %49)
  %51 = icmp ult i32 %48, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %128

53:                                               ; preds = %47
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = load i32, ptr %6, align 4, !tbaa !31
  %56 = zext i32 %55 to i64
  %57 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %54, i64 noundef %56)
  %58 = getelementptr inbounds %"struct.basist::endpoint", ptr %57, i32 0, i32 1
  %59 = load i8, ptr %58, align 4, !tbaa !32
  %60 = zext i8 %59 to i32
  %61 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 17
  %62 = load i32, ptr %6, align 4, !tbaa !31
  %63 = zext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %61, i64 noundef %63)
  %65 = getelementptr inbounds %"struct.basisu::basisu_frontend::endpoint_cluster_etc_params", ptr %64, i32 0, i32 1
  %66 = getelementptr inbounds [2 x i32], ptr %65, i64 0, i64 0
  store i32 %60, ptr %66, align 8, !tbaa !31
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = load i32, ptr %6, align 4, !tbaa !31
  %69 = zext i32 %68 to i64
  %70 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %67, i64 noundef %69)
  %71 = getelementptr inbounds %"struct.basist::endpoint", ptr %70, i32 0, i32 1
  %72 = load i8, ptr %71, align 4, !tbaa !32
  %73 = zext i8 %72 to i32
  %74 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 17
  %75 = load i32, ptr %6, align 4, !tbaa !31
  %76 = zext i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %74, i64 noundef %76)
  %78 = getelementptr inbounds %"struct.basisu::basisu_frontend::endpoint_cluster_etc_params", ptr %77, i32 0, i32 1
  %79 = getelementptr inbounds [2 x i32], ptr %78, i64 0, i64 1
  store i32 %73, ptr %79, align 4, !tbaa !31
  %80 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 17
  %81 = load i32, ptr %6, align 4, !tbaa !31
  %82 = zext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %80, i64 noundef %82)
  %84 = getelementptr inbounds %"struct.basisu::basisu_frontend::endpoint_cluster_etc_params", ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds [2 x %"class.basisu::color_rgba"], ptr %84, i64 0, i64 0
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load i32, ptr %6, align 4, !tbaa !31
  %88 = zext i32 %87 to i64
  %89 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %86, i64 noundef %88)
  %90 = getelementptr inbounds %"struct.basist::endpoint", ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds %"struct.basist::color32", ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds %struct.anon.34, ptr %91, i32 0, i32 0
  %93 = load i8, ptr %92, align 4, !tbaa !35
  %94 = zext i8 %93 to i32
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = load i32, ptr %6, align 4, !tbaa !31
  %97 = zext i32 %96 to i64
  %98 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %95, i64 noundef %97)
  %99 = getelementptr inbounds %"struct.basist::endpoint", ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds %"struct.basist::color32", ptr %99, i32 0, i32 0
  %101 = getelementptr inbounds %struct.anon.34, ptr %100, i32 0, i32 1
  %102 = load i8, ptr %101, align 1, !tbaa !35
  %103 = zext i8 %102 to i32
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = load i32, ptr %6, align 4, !tbaa !31
  %106 = zext i32 %105 to i64
  %107 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %104, i64 noundef %106)
  %108 = getelementptr inbounds %"struct.basist::endpoint", ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds %"struct.basist::color32", ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds %struct.anon.34, ptr %109, i32 0, i32 2
  %111 = load i8, ptr %110, align 2, !tbaa !35
  %112 = zext i8 %111 to i32
  %113 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba3setEiiii(ptr noundef nonnull align 1 dereferenceable(4) %85, i32 noundef %94, i32 noundef %103, i32 noundef %112, i32 noundef 255)
  %114 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 17
  %115 = load i32, ptr %6, align 4, !tbaa !31
  %116 = zext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %114, i64 noundef %116)
  %118 = getelementptr inbounds %"struct.basisu::basisu_frontend::endpoint_cluster_etc_params", ptr %117, i32 0, i32 4
  %119 = getelementptr inbounds [2 x i8], ptr %118, i64 0, i64 0
  store i8 1, ptr %119, align 8, !tbaa !36
  %120 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 17
  %121 = load i32, ptr %6, align 4, !tbaa !31
  %122 = zext i32 %121 to i64
  %123 = call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %120, i64 noundef %122)
  %124 = getelementptr inbounds %"struct.basisu::basisu_frontend::endpoint_cluster_etc_params", ptr %123, i32 0, i32 5
  store i8 1, ptr %124, align 2, !tbaa !37
  br label %125

125:                                              ; preds = %53
  %126 = load i32, ptr %6, align 4, !tbaa !31
  %127 = add i32 %126, 1
  store i32 %127, ptr %6, align 4, !tbaa !31
  br label %47, !llvm.loop !39

128:                                              ; preds = %52
  %129 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 20
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = call noundef i32 @_ZNK6basisu6vectorIN6basist8selectorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %130)
  %132 = zext i32 %131 to i64
  call void @_ZN6basisu6vectorINS_9etc_blockEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %129, i64 noundef %132, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !31
  br label %133

133:                                              ; preds = %171, %128
  %134 = load i32, ptr %7, align 4, !tbaa !31
  %135 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 20
  %136 = call noundef i32 @_ZNK6basisu6vectorINS_9etc_blockEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %135)
  %137 = icmp ult i32 %134, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %133
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %174

139:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !31
  br label %140

140:                                              ; preds = %167, %139
  %141 = load i32, ptr %9, align 4, !tbaa !31
  %142 = icmp ult i32 %141, 4
  br i1 %142, label %144, label %143

143:                                              ; preds = %140
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %170

144:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !31
  br label %145

145:                                              ; preds = %163, %144
  %146 = load i32, ptr %10, align 4, !tbaa !31
  %147 = icmp ult i32 %146, 4
  br i1 %147, label %149, label %148

148:                                              ; preds = %145
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %166

149:                                              ; preds = %145
  %150 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 20
  %151 = load i32, ptr %7, align 4, !tbaa !31
  %152 = zext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %150, i64 noundef %152)
  %154 = load i32, ptr %10, align 4, !tbaa !31
  %155 = load i32, ptr %9, align 4, !tbaa !31
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = load i32, ptr %7, align 4, !tbaa !31
  %158 = zext i32 %157 to i64
  %159 = call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %156, i64 noundef %158)
  %160 = load i32, ptr %10, align 4, !tbaa !31
  %161 = load i32, ptr %9, align 4, !tbaa !31
  %162 = call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %159, i32 noundef %160, i32 noundef %161)
  call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %153, i32 noundef %154, i32 noundef %155, i32 noundef %162)
  br label %163

163:                                              ; preds = %149
  %164 = load i32, ptr %10, align 4, !tbaa !31
  %165 = add i32 %164, 1
  store i32 %165, ptr %10, align 4, !tbaa !31
  br label %145, !llvm.loop !41

166:                                              ; preds = %148
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %9, align 4, !tbaa !31
  %169 = add i32 %168, 1
  store i32 %169, ptr %9, align 4, !tbaa !31
  br label %140, !llvm.loop !42

170:                                              ; preds = %143
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %7, align 4, !tbaa !31
  %173 = add i32 %172, 1
  store i32 %173, ptr %7, align 4, !tbaa !31
  br label %133, !llvm.loop !43

174:                                              ; preds = %138
  %175 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 18
  %176 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %177 = load i32, ptr %176, align 8, !tbaa !44
  %178 = zext i32 %177 to i64
  call void @_ZN6basisu6vectorINS_5vec2UEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %175, i64 noundef %178, i1 noundef zeroext false)
  %179 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 10
  %180 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %181 = load i32, ptr %180, align 8, !tbaa !44
  %182 = zext i32 %181 to i64
  call void @_ZN6basisu6vectorINS_9etc_blockEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %179, i64 noundef %182, i1 noundef zeroext false)
  %183 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 26
  %184 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %185 = load i32, ptr %184, align 8, !tbaa !44
  %186 = zext i32 %185 to i64
  call void @_ZN6basisu6vectorIjE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %183, i64 noundef %186, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 3, ptr %11, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !31
  br label %187

187:                                              ; preds = %352, %174
  %188 = load i32, ptr %12, align 4, !tbaa !31
  %189 = icmp ult i32 %188, 3
  br i1 %189, label %191, label %190

190:                                              ; preds = %187
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %356

191:                                              ; preds = %187
  %192 = load i32, ptr %12, align 4, !tbaa !31
  call void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef @.str.15, i32 noundef %192)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 128, ptr %13, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !31
  br label %193

193:                                              ; preds = %217, %191
  %194 = load i32, ptr %14, align 4, !tbaa !31
  %195 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %196 = load i32, ptr %195, align 8, !tbaa !44
  %197 = icmp ult i32 %194, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %193
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %224

199:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %200 = load i32, ptr %14, align 4, !tbaa !31
  store i32 %200, ptr %15, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %201 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %202 = load i32, ptr %201, align 8, !tbaa !44
  %203 = load i32, ptr %15, align 4, !tbaa !31
  %204 = add i32 %203, 128
  %205 = call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %202, i32 noundef %204)
  store i32 %205, ptr %16, align 4, !tbaa !31
  %206 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 0
  %207 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %206, i32 0, i32 19
  %208 = load ptr, ptr %207, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  %209 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 0
  store ptr %35, ptr %209, align 8, !tbaa !46
  %210 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 1
  %211 = load i32, ptr %15, align 4, !tbaa !31
  store i32 %211, ptr %210, align 8, !tbaa !48
  %212 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 2
  %213 = load i32, ptr %16, align 4, !tbaa !31
  store i32 %213, ptr %212, align 4, !tbaa !49
  %214 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 3
  %215 = load i32, ptr %12, align 4, !tbaa !31
  store i32 %215, ptr %214, align 8, !tbaa !50
  call void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend21init_global_codebooksEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(20) %18)
  invoke void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189) %208, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %216 unwind label %220

216:                                              ; preds = %199
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %14, align 4, !tbaa !31
  %219 = add i32 %218, 128
  store i32 %219, ptr %14, align 4, !tbaa !31
  br label %193, !llvm.loop !51

220:                                              ; preds = %199
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %19, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %20, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, 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
  br label %355

224:                                              ; preds = %198
  %225 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 0
  %226 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %225, i32 0, i32 19
  %227 = load ptr, ptr %226, align 8, !tbaa !45
  call void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189) %227)
  %228 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 13
  call void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %228, i64 noundef 0, i1 noundef zeroext false)
  %229 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 13
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = call noundef i32 @_ZNK6basisu6vectorIN6basist8endpointEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %230)
  %232 = zext i32 %231 to i64
  call void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %229, i64 noundef %232, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !31
  br label %233

233:                                              ; preds = %259, %224
  %234 = load i32, ptr %21, align 4, !tbaa !31
  %235 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %236 = load i32, ptr %235, align 8, !tbaa !44
  %237 = icmp ult i32 %234, %236
  br i1 %237, label %239, label %238

238:                                              ; preds = %233
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %262

239:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %240 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 18
  %241 = load i32, ptr %21, align 4, !tbaa !31
  %242 = zext i32 %241 to i64
  %243 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6basisu6vectorINS_5vec2UEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %240, i64 noundef %242)
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu5vec2UixEj(ptr noundef nonnull align 4 dereferenceable(8) %243, i32 noundef 0)
  %245 = load i32, ptr %244, align 4, !tbaa !31
  store i32 %245, ptr %22, align 4, !tbaa !31
  %246 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 13
  %247 = load i32, ptr %22, align 4, !tbaa !31
  %248 = zext i32 %247 to i64
  %249 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %246, i64 noundef %248)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %250 = load i32, ptr %21, align 4, !tbaa !31
  %251 = mul i32 %250, 2
  store i32 %251, ptr %23, align 4, !tbaa !31
  call void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %249, ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  %252 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 13
  %253 = load i32, ptr %22, align 4, !tbaa !31
  %254 = zext i32 %253 to i64
  %255 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %252, i64 noundef %254)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %256 = load i32, ptr %21, align 4, !tbaa !31
  %257 = mul i32 %256, 2
  %258 = add i32 %257, 1
  store i32 %258, ptr %24, align 4, !tbaa !31
  call void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %255, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %259

259:                                              ; preds = %239
  %260 = load i32, ptr %21, align 4, !tbaa !31
  %261 = add i32 %260, 1
  store i32 %261, ptr %21, align 4, !tbaa !31
  br label %233, !llvm.loop !52

262:                                              ; preds = %238
  %263 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 26
  %264 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %265 = load i32, ptr %264, align 8, !tbaa !44
  %266 = zext i32 %265 to i64
  call void @_ZN6basisu6vectorIjE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %263, i64 noundef %266, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !31
  br label %267

267:                                              ; preds = %289, %262
  %268 = load i32, ptr %25, align 4, !tbaa !31
  %269 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %270 = load i32, ptr %269, align 8, !tbaa !44
  %271 = icmp ult i32 %268, %270
  br i1 %271, label %273, label %272

272:                                              ; preds = %267
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %296

273:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %274 = load i32, ptr %25, align 4, !tbaa !31
  store i32 %274, ptr %26, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %275 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %276 = load i32, ptr %275, align 8, !tbaa !44
  %277 = load i32, ptr %26, align 4, !tbaa !31
  %278 = add i32 %277, 128
  %279 = call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %276, i32 noundef %278)
  store i32 %279, ptr %27, align 4, !tbaa !31
  %280 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 0
  %281 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %280, i32 0, i32 19
  %282 = load ptr, ptr %281, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  %283 = getelementptr inbounds %class.anon.41, ptr %29, i32 0, i32 0
  store ptr %35, ptr %283, align 8, !tbaa !53
  %284 = getelementptr inbounds %class.anon.41, ptr %29, i32 0, i32 1
  %285 = load i32, ptr %26, align 4, !tbaa !31
  store i32 %285, ptr %284, align 8, !tbaa !55
  %286 = getelementptr inbounds %class.anon.41, ptr %29, i32 0, i32 2
  %287 = load i32, ptr %27, align 4, !tbaa !31
  store i32 %287, ptr %286, align 4, !tbaa !56
  call void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend21init_global_codebooksEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  invoke void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189) %282, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %288 unwind label %292

288:                                              ; preds = %273
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %289

289:                                              ; preds = %288
  %290 = load i32, ptr %25, align 4, !tbaa !31
  %291 = add i32 %290, 128
  store i32 %291, ptr %25, align 4, !tbaa !31
  br label %267, !llvm.loop !57

292:                                              ; preds = %273
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %19, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %20, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %355

296:                                              ; preds = %272
  %297 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 0
  %298 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %297, i32 0, i32 19
  %299 = load ptr, ptr %298, align 8, !tbaa !45
  call void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189) %299)
  %300 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 9
  %301 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %302 = load i32, ptr %301, align 8, !tbaa !44
  %303 = zext i32 %302 to i64
  call void @_ZN6basisu6vectorINS_9etc_blockEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %300, i64 noundef %303, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !31
  br label %304

304:                                              ; preds = %348, %296
  %305 = load i32, ptr %30, align 4, !tbaa !31
  %306 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 1
  %307 = load i32, ptr %306, align 8, !tbaa !44
  %308 = icmp ult i32 %305, %307
  br i1 %308, label %310, label %309

309:                                              ; preds = %304
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %351

310:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %311 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 18
  %312 = load i32, ptr %30, align 4, !tbaa !31
  %313 = zext i32 %312 to i64
  %314 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6basisu6vectorINS_5vec2UEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %311, i64 noundef %313)
  %315 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu5vec2UixEj(ptr noundef nonnull align 4 dereferenceable(8) %314, i32 noundef 0)
  %316 = load i32, ptr %315, align 4, !tbaa !31
  store i32 %316, ptr %31, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %317 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 26
  %318 = load i32, ptr %30, align 4, !tbaa !31
  %319 = zext i32 %318 to i64
  %320 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %317, i64 noundef %319)
  %321 = load i32, ptr %320, align 4, !tbaa !31
  store i32 %321, ptr %32, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %322 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 9
  %323 = load i32, ptr %30, align 4, !tbaa !31
  %324 = zext i32 %323 to i64
  %325 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %322, i64 noundef %324)
  store ptr %325, ptr %33, align 8, !tbaa !5
  %326 = load ptr, ptr %33, align 8, !tbaa !5
  %327 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 17
  %328 = load i32, ptr %31, align 4, !tbaa !31
  %329 = zext i32 %328 to i64
  %330 = call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %327, i64 noundef %329)
  %331 = getelementptr inbounds %"struct.basisu::basisu_frontend::endpoint_cluster_etc_params", ptr %330, i32 0, i32 0
  %332 = getelementptr inbounds [2 x %"class.basisu::color_rgba"], ptr %331, i64 0, i64 0
  call void @_ZN6basisu9etc_block22set_block_color5_etc1sERKNS_10color_rgbaE(ptr noundef nonnull align 8 dereferenceable(8) %326, ptr noundef nonnull align 1 dereferenceable(4) %332)
  %333 = load ptr, ptr %33, align 8, !tbaa !5
  %334 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 17
  %335 = load i32, ptr %31, align 4, !tbaa !31
  %336 = zext i32 %335 to i64
  %337 = call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %334, i64 noundef %336)
  %338 = getelementptr inbounds %"struct.basisu::basisu_frontend::endpoint_cluster_etc_params", ptr %337, i32 0, i32 1
  %339 = getelementptr inbounds [2 x i32], ptr %338, i64 0, i64 0
  %340 = load i32, ptr %339, align 8, !tbaa !31
  call void @_ZN6basisu9etc_block22set_inten_tables_etc1sEj(ptr noundef nonnull align 8 dereferenceable(8) %333, i32 noundef %340)
  %341 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZN6basisu9etc_block12set_flip_bitEb(ptr noundef nonnull align 8 dereferenceable(8) %341, i1 noundef zeroext true)
  %342 = load ptr, ptr %33, align 8, !tbaa !5
  %343 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 20
  %344 = load i32, ptr %32, align 4, !tbaa !31
  %345 = zext i32 %344 to i64
  %346 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %343, i64 noundef %345)
  %347 = call noundef i32 @_ZNK6basisu9etc_block21get_raw_selector_bitsEv(ptr noundef nonnull align 8 dereferenceable(8) %346)
  call void @_ZN6basisu9etc_block21set_raw_selector_bitsEj(ptr noundef nonnull align 8 dereferenceable(8) %342, i32 noundef %347)
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %348

348:                                              ; preds = %310
  %349 = load i32, ptr %30, align 4, !tbaa !31
  %350 = add i32 %349, 1
  store i32 %350, ptr %30, align 4, !tbaa !31
  br label %304, !llvm.loop !58

351:                                              ; preds = %309
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %352

352:                                              ; preds = %351
  %353 = load i32, ptr %12, align 4, !tbaa !31
  %354 = add i32 %353, 1
  store i32 %354, ptr %12, align 4, !tbaa !31
  br label %187, !llvm.loop !59

355:                                              ; preds = %292, %220
  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 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %380

356:                                              ; preds = %190
  %357 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 19
  %358 = load ptr, ptr %5, align 8, !tbaa !5
  %359 = call noundef i32 @_ZNK6basisu6vectorIN6basist8selectorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %358)
  %360 = zext i32 %359 to i64
  call void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %357, i64 noundef %360, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !31
  br label %361

361:                                              ; preds = %376, %356
  %362 = load i32, ptr %34, align 4, !tbaa !31
  %363 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 11
  %364 = call noundef i32 @_ZNK6basisu6vectorINS_9etc_blockEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %363)
  %365 = icmp ult i32 %362, %364
  br i1 %365, label %367, label %366

366:                                              ; preds = %361
  store i32 29, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %379

367:                                              ; preds = %361
  %368 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 19
  %369 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %35, i32 0, i32 26
  %370 = load i32, ptr %34, align 4, !tbaa !31
  %371 = zext i32 %370 to i64
  %372 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %369, i64 noundef %371)
  %373 = load i32, ptr %372, align 4, !tbaa !31
  %374 = zext i32 %373 to i64
  %375 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %368, i64 noundef %374)
  call void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %375, ptr noundef nonnull align 4 dereferenceable(4) %34)
  br label %376

376:                                              ; preds = %367
  %377 = load i32, ptr %34, align 4, !tbaa !31
  %378 = add i32 %377, 1
  store i32 %378, ptr %34, align 4, !tbaa !31
  br label %361, !llvm.loop !60

379:                                              ; preds = %366
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret i1 true

380:                                              ; preds = %355
  %381 = load ptr, ptr %19, align 8
  %382 = load i32, ptr %20, align 4
  %383 = insertvalue { ptr, i32 } poison, ptr %381, 0
  %384 = insertvalue { ptr, i32 } %383, i32 %382, 1
  resume { ptr, i32 } %384
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basist32basisu_lowlevel_etc1s_transcoder13get_endpointsEv(ptr noundef nonnull align 8 dereferenceable(792)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basist32basisu_lowlevel_etc1s_transcoder13get_selectorsEv(ptr noundef nonnull align 8 dereferenceable(792)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorINS_5vec2UEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorIjE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef, i32 noundef) #2

declare void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189), ptr noundef nonnull align 8 dereferenceable(32)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend21init_global_codebooksEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

declare void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN6basisu6vectorINS_5vec2UEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu5vec2UixEj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend21init_global_codebooksEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu9etc_block22set_block_color5_etc1sERKNS_10color_rgbaE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(4)) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu9etc_block12set_flip_bitEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #2 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 72}
!10 = !{!"_ZTSN6basisu15basisu_frontendE", !11, i64 0, !12, i64 88, !12, i64 92, !13, i64 96, !13, i64 97, !13, i64 98, !12, i64 100, !12, i64 104, !16, i64 112, !17, i64 128, !17, i64 144, !17, i64 160, !18, i64 176, !21, i64 216, !21, i64 232, !22, i64 248, !21, i64 264, !23, i64 280, !24, i64 296, !21, i64 312, !17, i64 328, !21, i64 344, !22, i64 360, !21, i64 376, !25, i64 392, !26, i64 408, !27, i64 424, !28, i64 440, !29, i64 456}
!11 = !{!"_ZTSN6basisu15basisu_frontend6paramsE", !12, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !13, i64 28, !13, i64 29, !13, i64 30, !13, i64 31, !13, i64 32, !13, i64 33, !13, i64 34, !6, i64 40, !12, i64 48, !12, i64 52, !13, i64 56, !14, i64 60, !15, i64 64, !6, i64 72, !6, i64 80}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTSN6basist18basis_texture_typeE", !7, i64 0}
!16 = !{!"_ZTSN6basisu6vectorINS_11pixel_blockEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!17 = !{!"_ZTSN6basisu6vectorINS_9etc_blockEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!18 = !{!"_ZTSN6basisu17tree_vector_quantINS_3vecILj6EfEEEE", !19, i64 0, !20, i64 16, !12, i64 32}
!19 = !{!"_ZTSN6basisu6vectorINS_17tree_vector_quantINS_3vecILj6EfEEE9tsvq_nodeEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!20 = !{!"_ZTSN6basisu6vectorISt4pairINS_3vecILj6EfEEmEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!21 = !{!"_ZTSN6basisu6vectorINS0_IjEEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!22 = !{!"_ZTSN6basisu6vectorIhEE", !6, i64 0, !12, i64 8, !12, i64 12}
!23 = !{!"_ZTSN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!24 = !{!"_ZTSN6basisu6vectorINS_5vec2UEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!25 = !{!"_ZTSN6basisu6vectorIN6basist38etc1_global_selector_codebook_entry_idEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!26 = !{!"_ZTSN6basisu6vectorIbEE", !6, i64 0, !12, i64 8, !12, i64 12}
!27 = !{!"_ZTSN6basisu6vectorIjEE", !6, i64 0, !12, i64 8, !12, i64 12}
!28 = !{!"_ZTSN6basisu6vectorINS_15basisu_frontend27subblock_endpoint_quant_errEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!29 = !{!"_ZTSSt5mutex", !30, i64 0}
!30 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!31 = !{!12, !12, i64 0}
!32 = !{!33, !7, i64 4}
!33 = !{!"_ZTSN6basist8endpointE", !34, i64 0, !7, i64 4}
!34 = !{!"_ZTSN6basist7color32E", !7, i64 0}
!35 = !{!7, !7, i64 0}
!36 = !{!13, !13, i64 0}
!37 = !{!38, !13, i64 50}
!38 = !{!"_ZTSN6basisu15basisu_frontend27endpoint_cluster_etc_paramsE", !7, i64 0, !7, i64 8, !7, i64 16, !27, i64 32, !7, i64 48, !13, i64 50}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = distinct !{!42, !40}
!43 = distinct !{!43, !40}
!44 = !{!10, !12, i64 88}
!45 = !{!10, !6, i64 80}
!46 = !{!47, !6, i64 0}
!47 = !{!"_ZTSZN6basisu15basisu_frontend21init_global_codebooksEvE3$_0", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16}
!48 = !{!47, !12, i64 8}
!49 = !{!47, !12, i64 12}
!50 = !{!47, !12, i64 16}
!51 = distinct !{!51, !40}
!52 = distinct !{!52, !40}
!53 = !{!54, !6, i64 0}
!54 = !{!"_ZTSZN6basisu15basisu_frontend21init_global_codebooksEvE3$_1", !6, i64 0, !12, i64 8, !12, i64 12}
!55 = !{!54, !12, i64 8}
!56 = !{!54, !12, i64 12}
!57 = distinct !{!57, !40}
!58 = distinct !{!58, !40}
!59 = distinct !{!59, !40}
!60 = distinct !{!60, !40}


; 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.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type <{ ptr, i32, i32, i32, [4 x i8] }>
%class.anon.41 = type { ptr, i32, i32 }

@.str.15 = external hidden unnamed_addr constant [32 x i8], align 1

declare void @_ZN6basisu12debug_printfEPKcz(ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorINS_9etc_blockEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu15basisu_frontend21init_global_codebooksEv(ptr noundef nonnull align 8 dereferenceable(496) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::function", align 8
  %3 = alloca %class.anon, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %class.anon.41, align 8
  %8 = alloca i32, align 4
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basist32basisu_lowlevel_etc1s_transcoder13get_endpointsEv(ptr noundef nonnull align 8 dereferenceable(792) %10)
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basist32basisu_lowlevel_etc1s_transcoder13get_selectorsEv(ptr noundef nonnull align 8 dereferenceable(792) %10)
  %13 = getelementptr inbounds i8, ptr %0, i64 280
  %14 = tail call noundef i32 @_ZNK6basisu6vectorIN6basist8endpointEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %15 = zext i32 %14 to i64
  tail call void @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %15, i1 noundef zeroext false)
  %16 = tail call noundef i32 @_ZNK6basisu6vectorIN6basist8endpointEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %1
  %17 = getelementptr inbounds i8, ptr %0, i64 328
  %18 = tail call noundef i32 @_ZNK6basisu6vectorIN6basist8selectorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  %19 = zext i32 %18 to i64
  tail call void @_ZN6basisu6vectorINS_9etc_blockEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %19, i1 noundef zeroext false)
  %20 = tail call noundef i32 @_ZNK6basisu6vectorINS_9etc_blockEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %.not114 = icmp eq i32 %20, 0
  br i1 %.not114, label %._crit_edge93, label %.preheader88

.lr.ph:                                           ; preds = %1, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %1 ]
  %21 = tail call noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv)
  %22 = getelementptr inbounds i8, ptr %21, i64 4
  %23 = load i8, ptr %22, align 4, !tbaa !30
  %24 = zext i8 %23 to i32
  %25 = tail call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv)
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  store i32 %24, ptr %26, align 8, !tbaa !33
  %27 = tail call noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv)
  %28 = getelementptr inbounds i8, ptr %27, i64 4
  %29 = load i8, ptr %28, align 4, !tbaa !30
  %30 = zext i8 %29 to i32
  %31 = tail call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv)
  %32 = getelementptr inbounds i8, ptr %31, i64 12
  store i32 %30, ptr %32, align 4, !tbaa !33
  %33 = tail call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv)
  %34 = tail call noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv)
  %35 = load i8, ptr %34, align 4, !tbaa !34
  %36 = zext i8 %35 to i32
  %37 = tail call noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv)
  %38 = getelementptr inbounds i8, ptr %37, i64 1
  %39 = load i8, ptr %38, align 1, !tbaa !34
  %40 = zext i8 %39 to i32
  %41 = tail call noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv)
  %42 = getelementptr inbounds i8, ptr %41, i64 2
  %43 = load i8, ptr %42, align 2, !tbaa !34
  %44 = zext i8 %43 to i32
  %45 = tail call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu10color_rgba3setEiiii(ptr noundef nonnull align 1 dereferenceable(4) %33, i32 noundef %36, i32 noundef %40, i32 noundef %44, i32 noundef 255)
  %46 = tail call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv)
  %47 = getelementptr inbounds i8, ptr %46, i64 48
  store i8 1, ptr %47, align 8, !tbaa !35
  %48 = tail call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv)
  %49 = getelementptr inbounds i8, ptr %48, i64 50
  store i8 1, ptr %49, align 2, !tbaa !36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %50 = tail call noundef i32 @_ZNK6basisu6vectorIN6basist8endpointEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %51 = zext i32 %50 to i64
  %52 = icmp ult i64 %indvars.iv.next, %51
  br i1 %52, label %.lr.ph, label %._crit_edge, !llvm.loop !38

.preheader88:                                     ; preds = %._crit_edge, %.preheader88
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %.preheader88 ], [ 0, %._crit_edge ]
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %54 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %55 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %54, i32 noundef 0, i32 noundef 0)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %53, i32 noundef 0, i32 noundef 0, i32 noundef %55)
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %57 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %58 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %57, i32 noundef 1, i32 noundef 0)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %56, i32 noundef 1, i32 noundef 0, i32 noundef %58)
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %60 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %61 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %60, i32 noundef 2, i32 noundef 0)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %59, i32 noundef 2, i32 noundef 0, i32 noundef %61)
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %63 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %64 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %63, i32 noundef 3, i32 noundef 0)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %62, i32 noundef 3, i32 noundef 0, i32 noundef %64)
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %66 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %67 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %66, i32 noundef 0, i32 noundef 1)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %65, i32 noundef 0, i32 noundef 1, i32 noundef %67)
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %69 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %70 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %69, i32 noundef 1, i32 noundef 1)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %68, i32 noundef 1, i32 noundef 1, i32 noundef %70)
  %71 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %72 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %73 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %72, i32 noundef 2, i32 noundef 1)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %71, i32 noundef 2, i32 noundef 1, i32 noundef %73)
  %74 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %75 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %76 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %75, i32 noundef 3, i32 noundef 1)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %74, i32 noundef 3, i32 noundef 1, i32 noundef %76)
  %77 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %78 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %79 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %78, i32 noundef 0, i32 noundef 2)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %77, i32 noundef 0, i32 noundef 2, i32 noundef %79)
  %80 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %81 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %82 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %81, i32 noundef 1, i32 noundef 2)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %80, i32 noundef 1, i32 noundef 2, i32 noundef %82)
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %84 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %85 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %84, i32 noundef 2, i32 noundef 2)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %83, i32 noundef 2, i32 noundef 2, i32 noundef %85)
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %87 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %88 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %87, i32 noundef 3, i32 noundef 2)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %86, i32 noundef 3, i32 noundef 2, i32 noundef %88)
  %89 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %90 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %91 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %90, i32 noundef 0, i32 noundef 3)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %89, i32 noundef 0, i32 noundef 3, i32 noundef %91)
  %92 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %93 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %94 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %93, i32 noundef 1, i32 noundef 3)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %92, i32 noundef 1, i32 noundef 3, i32 noundef %94)
  %95 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %96 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %97 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %96, i32 noundef 2, i32 noundef 3)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %95, i32 noundef 2, i32 noundef 3, i32 noundef %97)
  %98 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv122)
  %99 = tail call noundef nonnull align 1 dereferenceable(11) ptr @_ZNK6basisu6vectorIN6basist8selectorEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv122)
  %100 = tail call noundef i32 @_ZNK6basist8selector12get_selectorEjj(ptr noundef nonnull align 1 dereferenceable(11) %99, i32 noundef 3, i32 noundef 3)
  tail call void @_ZN6basisu9etc_block12set_selectorEjjj(ptr noundef nonnull align 8 dereferenceable(8) %98, i32 noundef 3, i32 noundef 3, i32 noundef %100)
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %101 = tail call noundef i32 @_ZNK6basisu6vectorINS_9etc_blockEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %102 = zext i32 %101 to i64
  %103 = icmp ult i64 %indvars.iv.next123, %102
  br i1 %103, label %.preheader88, label %._crit_edge93, !llvm.loop !40

._crit_edge93:                                    ; preds = %.preheader88, %._crit_edge
  %104 = getelementptr inbounds i8, ptr %0, i64 296
  %105 = getelementptr inbounds i8, ptr %0, i64 88
  %106 = load i32, ptr %105, align 8, !tbaa !41
  %107 = zext i32 %106 to i64
  tail call void @_ZN6basisu6vectorINS_5vec2UEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %104, i64 noundef %107, i1 noundef zeroext false)
  %108 = getelementptr inbounds i8, ptr %0, i64 144
  %109 = load i32, ptr %105, align 8, !tbaa !41
  %110 = zext i32 %109 to i64
  tail call void @_ZN6basisu6vectorINS_9etc_blockEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %108, i64 noundef %110, i1 noundef zeroext false)
  %111 = getelementptr inbounds i8, ptr %0, i64 424
  %112 = load i32, ptr %105, align 8, !tbaa !41
  %113 = zext i32 %112 to i64
  tail call void @_ZN6basisu6vectorIjE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %111, i64 noundef %113, i1 noundef zeroext false)
  %114 = getelementptr inbounds i8, ptr %0, i64 80
  %115 = getelementptr inbounds i8, ptr %3, i64 8
  %116 = getelementptr inbounds i8, ptr %3, i64 12
  %117 = getelementptr inbounds i8, ptr %3, i64 16
  %118 = getelementptr inbounds i8, ptr %0, i64 216
  %119 = getelementptr inbounds i8, ptr %7, i64 8
  %120 = getelementptr inbounds i8, ptr %7, i64 12
  %121 = getelementptr inbounds i8, ptr %0, i64 128
  br label %128

122:                                              ; preds = %._crit_edge109
  %123 = getelementptr inbounds i8, ptr %0, i64 312
  %124 = call noundef i32 @_ZNK6basisu6vectorIN6basist8selectorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  %125 = zext i32 %124 to i64
  call void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %123, i64 noundef %125, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %126 = getelementptr inbounds i8, ptr %0, i64 160
  store i32 0, ptr %8, align 4, !tbaa !33
  %127 = call noundef i32 @_ZNK6basisu6vectorINS_9etc_blockEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %126)
  %.not119 = icmp eq i32 %127, 0
  br i1 %.not119, label %._crit_edge113, label %.lr.ph112

128:                                              ; preds = %._crit_edge93, %._crit_edge109
  %.079110 = phi i32 [ 0, %._crit_edge93 ], [ %170, %._crit_edge109 ]
  call void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef nonnull @.str.15, i32 noundef %.079110)
  %129 = load i32, ptr %105, align 8, !tbaa !41
  %.not115 = icmp eq i32 %129, 0
  br i1 %.not115, label %._crit_edge97, label %.lr.ph96

._crit_edge97:                                    ; preds = %138, %128
  %130 = load ptr, ptr %114, align 8, !tbaa !42
  call void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189) %130)
  call void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %118, i64 noundef 0, i1 noundef zeroext false)
  %131 = call noundef i32 @_ZNK6basisu6vectorIN6basist8endpointEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %132 = zext i32 %131 to i64
  call void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %118, i64 noundef %132, i1 noundef zeroext false)
  %133 = load i32, ptr %105, align 8, !tbaa !41
  %.not116 = icmp eq i32 %133, 0
  br i1 %.not116, label %._crit_edge101, label %.lr.ph100

.lr.ph96:                                         ; preds = %128, %138
  %134 = phi i32 [ %139, %138 ], [ %129, %128 ]
  %.08394 = phi i32 [ %135, %138 ], [ 0, %128 ]
  %135 = add i32 %.08394, 128
  %136 = call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %134, i32 noundef %135)
  %137 = load ptr, ptr %114, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  store ptr %0, ptr %3, align 8, !tbaa !43
  store i32 %.08394, ptr %115, align 8, !tbaa !45
  store i32 %136, ptr %116, align 4, !tbaa !46
  store i32 %.079110, ptr %117, align 8, !tbaa !47
  call void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend21init_global_codebooksEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(20) %3)
  invoke void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189) %137, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %138 unwind label %141

138:                                              ; preds = %.lr.ph96
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  %139 = load i32, ptr %105, align 8, !tbaa !41
  %140 = icmp ult i32 %135, %139
  br i1 %140, label %.lr.ph96, label %._crit_edge97, !llvm.loop !48

141:                                              ; preds = %.lr.ph96
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  br label %188

._crit_edge101:                                   ; preds = %.lr.ph100, %._crit_edge97
  %.lcssa = phi i32 [ 0, %._crit_edge97 ], [ %154, %.lr.ph100 ]
  %143 = zext i32 %.lcssa to i64
  call void @_ZN6basisu6vectorIjE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %111, i64 noundef %143, i1 noundef zeroext false)
  %144 = load i32, ptr %105, align 8, !tbaa !41
  %.not117 = icmp eq i32 %144, 0
  br i1 %.not117, label %._crit_edge105, label %.lr.ph104

.lr.ph100:                                        ; preds = %._crit_edge97, %.lr.ph100
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %.lr.ph100 ], [ 0, %._crit_edge97 ]
  %145 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6basisu6vectorINS_5vec2UEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %104, i64 noundef %indvars.iv125)
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu5vec2UixEj(ptr noundef nonnull align 4 dereferenceable(8) %145, i32 noundef 0)
  %147 = load i32, ptr %146, align 4, !tbaa !33
  %148 = zext i32 %147 to i64
  %149 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %118, i64 noundef %148)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %150 = trunc nuw i64 %indvars.iv125 to i32
  %151 = shl i32 %150, 1
  store i32 %151, ptr %4, align 4, !tbaa !33
  call void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %149, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %118, i64 noundef %148)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %153 = or disjoint i32 %151, 1
  store i32 %153, ptr %5, align 4, !tbaa !33
  call void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %152, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %154 = load i32, ptr %105, align 8, !tbaa !41
  %155 = zext i32 %154 to i64
  %156 = icmp ult i64 %indvars.iv.next126, %155
  br i1 %156, label %.lr.ph100, label %._crit_edge101, !llvm.loop !49

._crit_edge105:                                   ; preds = %165, %._crit_edge101
  %157 = load ptr, ptr %114, align 8, !tbaa !42
  call void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189) %157)
  %158 = load i32, ptr %105, align 8, !tbaa !41
  %159 = zext i32 %158 to i64
  call void @_ZN6basisu6vectorINS_9etc_blockEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %121, i64 noundef %159, i1 noundef zeroext false)
  %160 = load i32, ptr %105, align 8, !tbaa !41
  %.not118 = icmp eq i32 %160, 0
  br i1 %.not118, label %._crit_edge109, label %.lr.ph108

.lr.ph104:                                        ; preds = %._crit_edge101, %165
  %161 = phi i32 [ %166, %165 ], [ %144, %._crit_edge101 ]
  %.078102 = phi i32 [ %162, %165 ], [ 0, %._crit_edge101 ]
  %162 = add i32 %.078102, 128
  %163 = call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %161, i32 noundef %162)
  %164 = load ptr, ptr %114, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  store ptr %0, ptr %7, align 8, !tbaa !50
  store i32 %.078102, ptr %119, align 8, !tbaa !52
  store i32 %163, ptr %120, align 4, !tbaa !53
  call void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend21init_global_codebooksEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  invoke void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189) %164, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %165 unwind label %168

165:                                              ; preds = %.lr.ph104
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  %166 = load i32, ptr %105, align 8, !tbaa !41
  %167 = icmp ult i32 %162, %166
  br i1 %167, label %.lr.ph104, label %._crit_edge105, !llvm.loop !54

168:                                              ; preds = %.lr.ph104
  %169 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %188

._crit_edge109:                                   ; preds = %.lr.ph108, %._crit_edge105
  %170 = add nuw nsw i32 %.079110, 1
  %exitcond.not = icmp eq i32 %170, 3
  br i1 %exitcond.not, label %122, label %128, !llvm.loop !55

.lr.ph108:                                        ; preds = %._crit_edge105, %.lr.ph108
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %.lr.ph108 ], [ 0, %._crit_edge105 ]
  %171 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6basisu6vectorINS_5vec2UEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %104, i64 noundef %indvars.iv128)
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu5vec2UixEj(ptr noundef nonnull align 4 dereferenceable(8) %171, i32 noundef 0)
  %173 = load i32, ptr %172, align 4, !tbaa !33
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %111, i64 noundef %indvars.iv128)
  %175 = load i32, ptr %174, align 4, !tbaa !33
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %121, i64 noundef %indvars.iv128)
  %177 = zext i32 %173 to i64
  %178 = call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %177)
  call void @_ZN6basisu9etc_block22set_block_color5_etc1sERKNS_10color_rgbaE(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef nonnull align 1 dereferenceable(4) %178)
  %179 = call noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %177)
  %180 = getelementptr inbounds i8, ptr %179, i64 8
  %181 = load i32, ptr %180, align 8, !tbaa !33
  call void @_ZN6basisu9etc_block22set_inten_tables_etc1sEj(ptr noundef nonnull align 8 dereferenceable(8) %176, i32 noundef %181)
  call void @_ZN6basisu9etc_block12set_flip_bitEb(ptr noundef nonnull align 8 dereferenceable(8) %176, i1 noundef zeroext true)
  %182 = zext i32 %175 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6basisu6vectorINS_9etc_blockEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %182)
  %184 = call noundef i32 @_ZNK6basisu9etc_block21get_raw_selector_bitsEv(ptr noundef nonnull align 8 dereferenceable(8) %183)
  call void @_ZN6basisu9etc_block21set_raw_selector_bitsEj(ptr noundef nonnull align 8 dereferenceable(8) %176, i32 noundef %184)
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %185 = load i32, ptr %105, align 8, !tbaa !41
  %186 = zext i32 %185 to i64
  %187 = icmp ult i64 %indvars.iv.next129, %186
  br i1 %187, label %.lr.ph108, label %._crit_edge109, !llvm.loop !56

188:                                              ; preds = %168, %141
  %.pn = phi { ptr, i32 } [ %142, %141 ], [ %169, %168 ]
  resume { ptr, i32 } %.pn

._crit_edge113:                                   ; preds = %.lr.ph112, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  ret i1 true

.lr.ph112:                                        ; preds = %122, %.lr.ph112
  %189 = load i32, ptr %8, align 4, !tbaa !33
  %190 = zext i32 %189 to i64
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %111, i64 noundef %190)
  %192 = load i32, ptr %191, align 4, !tbaa !33
  %193 = zext i32 %192 to i64
  %194 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %123, i64 noundef %193)
  call void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %194, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %195 = load i32, ptr %8, align 4, !tbaa !33
  %196 = add i32 %195, 1
  store i32 %196, ptr %8, align 4, !tbaa !33
  %197 = call noundef i32 @_ZNK6basisu6vectorINS_9etc_blockEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %126)
  %198 = icmp ult i32 %196, %197
  br i1 %198, label %.lr.ph112, label %._crit_edge113, !llvm.loop !57
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basist32basisu_lowlevel_etc1s_transcoder13get_endpointsEv(ptr noundef nonnull align 8 dereferenceable(792)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basist32basisu_lowlevel_etc1s_transcoder13get_selectorsEv(ptr noundef nonnull align 8 dereferenceable(792)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(5) ptr @_ZNK6basisu6vectorIN6basist8endpointEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(51) ptr @_ZN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorINS_5vec2UEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorIjE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend21init_global_codebooksEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

declare void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN6basisu6vectorINS_5vec2UEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu5vec2UixEj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend21init_global_codebooksEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu9etc_block22set_block_color5_etc1sERKNS_10color_rgbaE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu9etc_block12set_flip_bitEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

attributes #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 #1 = { 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 #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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, !11, i64 72}
!6 = !{!"_ZTSN6basisu15basisu_frontendE", !7, i64 0, !8, i64 88, !8, i64 92, !12, i64 96, !12, i64 97, !12, i64 98, !8, i64 100, !8, i64 104, !15, i64 112, !16, i64 128, !16, i64 144, !16, i64 160, !17, i64 176, !20, i64 216, !20, i64 232, !21, i64 248, !20, i64 264, !22, i64 280, !23, i64 296, !20, i64 312, !16, i64 328, !20, i64 344, !21, i64 360, !20, i64 376, !24, i64 392, !25, i64 408, !26, i64 424, !27, i64 440, !28, i64 456}
!7 = !{!"_ZTSN6basisu15basisu_frontend6paramsE", !8, i64 0, !11, i64 8, !8, i64 16, !8, i64 20, !8, i64 24, !12, i64 28, !12, i64 29, !12, i64 30, !12, i64 31, !12, i64 32, !12, i64 33, !12, i64 34, !11, i64 40, !8, i64 48, !8, i64 52, !12, i64 56, !13, i64 60, !14, i64 64, !11, i64 72, !11, i64 80}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!"float", !9, i64 0}
!14 = !{!"_ZTSN6basist18basis_texture_typeE", !9, i64 0}
!15 = !{!"_ZTSN6basisu6vectorINS_11pixel_blockEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!16 = !{!"_ZTSN6basisu6vectorINS_9etc_blockEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!17 = !{!"_ZTSN6basisu17tree_vector_quantINS_3vecILj6EfEEEE", !18, i64 0, !19, i64 16, !8, i64 32}
!18 = !{!"_ZTSN6basisu6vectorINS_17tree_vector_quantINS_3vecILj6EfEEE9tsvq_nodeEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!19 = !{!"_ZTSN6basisu6vectorISt4pairINS_3vecILj6EfEEmEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!20 = !{!"_ZTSN6basisu6vectorINS0_IjEEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!21 = !{!"_ZTSN6basisu6vectorIhEE", !11, i64 0, !8, i64 8, !8, i64 12}
!22 = !{!"_ZTSN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!23 = !{!"_ZTSN6basisu6vectorINS_5vec2UEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!24 = !{!"_ZTSN6basisu6vectorIN6basist38etc1_global_selector_codebook_entry_idEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!25 = !{!"_ZTSN6basisu6vectorIbEE", !11, i64 0, !8, i64 8, !8, i64 12}
!26 = !{!"_ZTSN6basisu6vectorIjEE", !11, i64 0, !8, i64 8, !8, i64 12}
!27 = !{!"_ZTSN6basisu6vectorINS_15basisu_frontend27subblock_endpoint_quant_errEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!28 = !{!"_ZTSSt5mutex", !29, i64 0}
!29 = !{!"_ZTSSt12__mutex_base", !9, i64 0}
!30 = !{!31, !9, i64 4}
!31 = !{!"_ZTSN6basist8endpointE", !32, i64 0, !9, i64 4}
!32 = !{!"_ZTSN6basist7color32E", !9, i64 0}
!33 = !{!8, !8, i64 0}
!34 = !{!9, !9, i64 0}
!35 = !{!12, !12, i64 0}
!36 = !{!37, !12, i64 50}
!37 = !{!"_ZTSN6basisu15basisu_frontend27endpoint_cluster_etc_paramsE", !9, i64 0, !9, i64 8, !9, i64 16, !26, i64 32, !9, i64 48, !12, i64 50}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = !{!6, !8, i64 88}
!42 = !{!6, !11, i64 80}
!43 = !{!44, !11, i64 0}
!44 = !{!"_ZTSZN6basisu15basisu_frontend21init_global_codebooksEvE3$_0", !11, i64 0, !8, i64 8, !8, i64 12, !8, i64 16}
!45 = !{!44, !8, i64 8}
!46 = !{!44, !8, i64 12}
!47 = !{!44, !8, i64 16}
!48 = distinct !{!48, !39}
!49 = distinct !{!49, !39}
!50 = !{!51, !11, i64 0}
!51 = !{!"_ZTSZN6basisu15basisu_frontend21init_global_codebooksEvE3$_1", !11, i64 0, !8, i64 8, !8, i64 12}
!52 = !{!51, !8, i64 8}
!53 = !{!51, !8, i64 12}
!54 = distinct !{!54, !39}
!55 = distinct !{!55, !39}
!56 = distinct !{!56, !39}
!57 = distinct !{!57, !39}


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