; 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.basisu::vector.12" = type { ptr, i32, i32 }
%"class.basisu::vector.18" = type { ptr, i32, i32 }
%"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.74 = type { ptr, i32, i32, ptr, ptr }
%"class.basisu::vector.6" = 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.0" = type { ptr, i32, i32 }
%"class.basisu::vector.8" = type { ptr, i32, i32 }
%"class.basisu::vector.14" = type { ptr, i32, i32 }
%"class.basisu::vector.16" = 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 }

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6basisu15basisu_frontend30refine_endpoint_clusterizationEv(ptr noundef nonnull align 8 dereferenceable(496) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.basisu::vector.12", align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.basisu::vector.18", align 8
  %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.74, align 8
  %19 = alloca %"class.basisu::vector.6", 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
  store ptr %0, ptr %2, align 8, !tbaa !5
  %26 = load ptr, ptr %2, align 8
  call void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef @.str.32)
  %27 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 4
  %28 = load i8, ptr %27, align 1, !tbaa !9, !range !31, !noundef !32
  %29 = trunc i8 %28 to i1
  br i1 %29, label %30, label %31

30:                                               ; preds = %1
  call void @_ZN6basisu15basisu_frontend52compute_endpoint_clusters_within_each_parent_clusterEv(ptr noundef nonnull align 8 dereferenceable(496) %26)
  br label %31

31:                                               ; preds = %30, %1
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  %32 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !33
  %34 = zext i32 %33 to i64
  call void @_ZN6basisu6vectorINS_5vec2UEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %34)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !34
  br label %35

35:                                               ; preds = %104, %31
  %36 = load i32, ptr %4, align 4, !tbaa !34
  %37 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 13
  %38 = invoke noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
          to label %39 unwind label %42

39:                                               ; preds = %35
  %40 = icmp slt i32 %36, %38
  br i1 %40, label %46, label %41

41:                                               ; preds = %39
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %109

42:                                               ; preds = %35
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %5, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %6, align 4
  br label %108

46:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %47 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 13
  %48 = load i32, ptr %4, align 4, !tbaa !34
  %49 = sext i32 %48 to i64
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %47, i64 noundef %49)
          to label %51 unwind label %59

51:                                               ; preds = %46
  store ptr %50, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !34
  br label %52

52:                                               ; preds = %90, %51
  %53 = load i32, ptr %9, align 4, !tbaa !34
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = invoke noundef i32 @_ZNK6basisu6vectorIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %54)
          to label %56 unwind label %63

56:                                               ; preds = %52
  %57 = icmp ult i32 %53, %55
  br i1 %57, label %67, label %58

58:                                               ; preds = %56
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %103

59:                                               ; preds = %46
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %5, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %6, align 4
  br label %107

63:                                               ; preds = %52
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %5, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %6, align 4
  br label %102

67:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load i32, ptr %9, align 4, !tbaa !34
  %70 = zext i32 %69 to i64
  %71 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %68, i64 noundef %70)
          to label %72 unwind label %93

72:                                               ; preds = %67
  %73 = load i32, ptr %71, align 4, !tbaa !34
  %74 = lshr i32 %73, 1
  store i32 %74, ptr %10, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load i32, ptr %9, align 4, !tbaa !34
  %77 = zext i32 %76 to i64
  %78 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %75, i64 noundef %77)
          to label %79 unwind label %97

79:                                               ; preds = %72
  %80 = load i32, ptr %78, align 4, !tbaa !34
  %81 = and i32 %80, 1
  store i32 %81, ptr %11, align 4, !tbaa !34
  %82 = load i32, ptr %4, align 4, !tbaa !34
  %83 = load i32, ptr %10, align 4, !tbaa !34
  %84 = zext i32 %83 to i64
  %85 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN6basisu6vectorINS_5vec2UEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %84)
          to label %86 unwind label %97

86:                                               ; preds = %79
  %87 = load i32, ptr %11, align 4, !tbaa !34
  %88 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu5vec2UixEj(ptr noundef nonnull align 4 dereferenceable(8) %85, i32 noundef %87)
          to label %89 unwind label %97

89:                                               ; preds = %86
  store i32 %82, ptr %88, align 4, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %9, align 4, !tbaa !34
  %92 = add i32 %91, 1
  store i32 %92, ptr %9, align 4, !tbaa !34
  br label %52, !llvm.loop !35

93:                                               ; preds = %67
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %5, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %6, align 4
  br label %101

97:                                               ; preds = %86, %79, %72
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %5, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %101

101:                                              ; preds = %97, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %102

102:                                              ; preds = %101, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %107

103:                                              ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %4, align 4, !tbaa !34
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %4, align 4, !tbaa !34
  br label %35, !llvm.loop !37

107:                                              ; preds = %102, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %108

108:                                              ; preds = %107, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %252

109:                                              ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %110 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 1
  %111 = load i32, ptr %110, align 8, !tbaa !33
  %112 = zext i32 %111 to i64
  invoke void @_ZN6basisu6vectorIjEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %112)
          to label %113 unwind label %120

113:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 1024, ptr %13, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !34
  br label %114

114:                                              ; preds = %144, %113
  %115 = load i32, ptr %14, align 4, !tbaa !34
  %116 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 1
  %117 = load i32, ptr %116, align 8, !tbaa !33
  %118 = icmp ult i32 %115, %117
  br i1 %118, label %124, label %119

119:                                              ; preds = %114
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %161

120:                                              ; preds = %109
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %5, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %6, align 4
  br label %251

124:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %125 = load i32, ptr %14, align 4, !tbaa !34
  store i32 %125, ptr %15, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %126 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 1
  %127 = load i32, ptr %126, align 8, !tbaa !33
  %128 = load i32, ptr %15, align 4, !tbaa !34
  %129 = add i32 %128, 1024
  %130 = invoke noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %127, i32 noundef %129)
          to label %131 unwind label %147

131:                                              ; preds = %124
  store i32 %130, ptr %16, align 4, !tbaa !34
  %132 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 0
  %133 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %132, i32 0, i32 19
  %134 = load ptr, ptr %133, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  %135 = getelementptr inbounds %class.anon.74, ptr %18, i32 0, i32 0
  store ptr %26, ptr %135, align 8, !tbaa !39
  %136 = getelementptr inbounds %class.anon.74, ptr %18, i32 0, i32 1
  %137 = load i32, ptr %15, align 4, !tbaa !34
  store i32 %137, ptr %136, align 8, !tbaa !41
  %138 = getelementptr inbounds %class.anon.74, ptr %18, i32 0, i32 2
  %139 = load i32, ptr %16, align 4, !tbaa !34
  store i32 %139, ptr %138, align 4, !tbaa !42
  %140 = getelementptr inbounds %class.anon.74, ptr %18, i32 0, i32 3
  store ptr %12, ptr %140, align 8, !tbaa !5
  %141 = getelementptr inbounds %class.anon.74, ptr %18, i32 0, i32 4
  store ptr %3, ptr %141, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend30refine_endpoint_clusterizationEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %142 unwind label %151

142:                                              ; preds = %131
  invoke void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189) %134, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %143 unwind label %155

143:                                              ; preds = %142
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, 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 %144

144:                                              ; preds = %143
  %145 = load i32, ptr %14, align 4, !tbaa !34
  %146 = add i32 %145, 1024
  store i32 %146, ptr %14, align 4, !tbaa !34
  br label %114, !llvm.loop !43

147:                                              ; preds = %124
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %5, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %6, align 4
  br label %160

151:                                              ; preds = %131
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %5, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %6, align 4
  br label %159

155:                                              ; preds = %142
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %5, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %6, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %159

159:                                              ; preds = %155, %151
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %160

160:                                              ; preds = %159, %147
  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 %250

161:                                              ; preds = %119
  %162 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 0
  %163 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %162, i32 0, i32 19
  %164 = load ptr, ptr %163, align 8, !tbaa !38
  invoke void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189) %164)
          to label %165 unwind label %177

165:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %166 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 13
  %167 = invoke noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %166)
          to label %168 unwind label %181

168:                                              ; preds = %165
  %169 = zext i32 %167 to i64
  invoke void @_ZN6basisu6vectorINS0_IjEEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %169)
          to label %170 unwind label %181

170:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !34
  br label %171

171:                                              ; preds = %232, %170
  %172 = load i32, ptr %21, align 4, !tbaa !34
  %173 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 1
  %174 = load i32, ptr %173, align 8, !tbaa !33
  %175 = icmp ult i32 %172, %174
  br i1 %175, label %185, label %176

176:                                              ; preds = %171
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %237

177:                                              ; preds = %161
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %5, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %6, align 4
  br label %250

181:                                              ; preds = %168, %165
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %5, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %6, align 4
  br label %249

185:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %186 = load i32, ptr %21, align 4, !tbaa !34
  %187 = mul i32 %186, 2
  %188 = add i32 %187, 0
  store i32 %188, ptr %22, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %189 = load i32, ptr %21, align 4, !tbaa !34
  %190 = zext i32 %189 to i64
  %191 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN6basisu6vectorINS_5vec2UEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %190)
          to label %192 unwind label %219

192:                                              ; preds = %185
  %193 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu5vec2UixEj(ptr noundef nonnull align 4 dereferenceable(8) %191, i32 noundef 0)
          to label %194 unwind label %219

194:                                              ; preds = %192
  %195 = load i32, ptr %193, align 4, !tbaa !34
  store i32 %195, ptr %23, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %196 = load i32, ptr %21, align 4, !tbaa !34
  %197 = zext i32 %196 to i64
  %198 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %197)
          to label %199 unwind label %223

199:                                              ; preds = %194
  %200 = load i32, ptr %198, align 4, !tbaa !34
  store i32 %200, ptr %24, align 4, !tbaa !34
  %201 = load i32, ptr %24, align 4, !tbaa !34
  %202 = zext i32 %201 to i64
  %203 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %202)
          to label %204 unwind label %223

204:                                              ; preds = %199
  invoke void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %203, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %205 unwind label %223

205:                                              ; preds = %204
  %206 = load i32, ptr %24, align 4, !tbaa !34
  %207 = zext i32 %206 to i64
  %208 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %207)
          to label %209 unwind label %223

209:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %210 = load i32, ptr %22, align 4, !tbaa !34
  %211 = add i32 %210, 1
  store i32 %211, ptr %25, align 4, !tbaa !34
  invoke void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %208, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %212 unwind label %227

212:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  %213 = load i32, ptr %24, align 4, !tbaa !34
  %214 = load i32, ptr %23, align 4, !tbaa !34
  %215 = icmp ne i32 %213, %214
  br i1 %215, label %216, label %231

216:                                              ; preds = %212
  %217 = load i32, ptr %20, align 4, !tbaa !34
  %218 = add i32 %217, 1
  store i32 %218, ptr %20, align 4, !tbaa !34
  br label %231

219:                                              ; preds = %192, %185
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %5, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %6, align 4
  br label %236

223:                                              ; preds = %205, %204, %199, %194
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %5, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %6, align 4
  br label %235

227:                                              ; preds = %209
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %5, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %235

231:                                              ; preds = %216, %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %21, align 4, !tbaa !34
  %234 = add i32 %233, 1
  store i32 %234, ptr %21, align 4, !tbaa !34
  br label %171, !llvm.loop !44

235:                                              ; preds = %227, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %236

236:                                              ; preds = %235, %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %248

237:                                              ; preds = %176
  %238 = load i32, ptr %20, align 4, !tbaa !34
  invoke void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef @.str.33, i32 noundef %238)
          to label %239 unwind label %244

239:                                              ; preds = %237
  %240 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %26, i32 0, i32 13
  %241 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %240, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %242 unwind label %244

242:                                              ; preds = %239
  %243 = load i32, ptr %20, align 4, !tbaa !34
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @_ZN6basisu6vectorINS0_IjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @_ZN6basisu6vectorINS_5vec2UEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  ret i32 %243

244:                                              ; preds = %239, %237
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %5, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %6, align 4
  br label %248

248:                                              ; preds = %244, %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @_ZN6basisu6vectorINS0_IjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  br label %249

249:                                              ; preds = %248, %181
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %250

250:                                              ; preds = %249, %177, %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %251

251:                                              ; preds = %250, %120
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %252

252:                                              ; preds = %251, %108
  call void @_ZN6basisu6vectorINS_5vec2UEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  br label %253

253:                                              ; preds = %252
  %254 = load ptr, ptr %5, align 8
  %255 = load i32, ptr %6, align 4
  %256 = insertvalue { ptr, i32 } poison, ptr %254, 0
  %257 = insertvalue { ptr, i32 } %256, i32 %255, 1
  resume { ptr, i32 } %257
}

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

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

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

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 #4 align 2

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

; 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) #3 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) #4 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) #3 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)) #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) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu6vectorINS0_IjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu15basisu_frontend52compute_endpoint_clusters_within_each_parent_clusterEv(ptr noundef nonnull align 8 dereferenceable(496)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu6vectorINS_5vec2UEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { 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 #5 = { 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 #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, !13, i64 97}
!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 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!10, !12, i64 88}
!34 = !{!12, !12, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = !{!10, !6, i64 80}
!39 = !{!40, !6, i64 0}
!40 = !{!"_ZTSZN6basisu15basisu_frontend30refine_endpoint_clusterizationEvE3$_0", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24}
!41 = !{!40, !12, i64 8}
!42 = !{!40, !12, i64 12}
!43 = distinct !{!43, !36}
!44 = distinct !{!44, !36}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.basisu::vector.12" = type { ptr, i32, i32 }
%"class.basisu::vector.18" = type { ptr, i32, i32 }
%"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.74 = type { ptr, i32, i32, ptr, ptr }
%"class.basisu::vector.6" = type { ptr, i32, i32 }

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6basisu15basisu_frontend30refine_endpoint_clusterizationEv(ptr noundef nonnull align 8 dereferenceable(496) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.basisu::vector.12", align 8
  %3 = alloca %"class.basisu::vector.18", align 8
  %4 = alloca %"class.std::function", align 8
  %5 = alloca %class.anon.74, align 8
  %6 = alloca %"class.basisu::vector.6", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  tail call void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef nonnull @.str.32)
  %9 = getelementptr inbounds i8, ptr %0, i64 97
  %10 = load i8, ptr %9, align 1, !tbaa !5, !range !30, !noundef !31
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %12, label %13

12:                                               ; preds = %1
  tail call void @_ZN6basisu15basisu_frontend52compute_endpoint_clusters_within_each_parent_clusterEv(ptr noundef nonnull align 8 dereferenceable(496) %0)
  br label %13

13:                                               ; preds = %12, %1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  %14 = getelementptr inbounds i8, ptr %0, i64 88
  %15 = load i32, ptr %14, align 8, !tbaa !32
  %16 = zext i32 %15 to i64
  call void @_ZN6basisu6vectorINS_5vec2UEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 216
  %18 = call noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph59, label %._crit_edge60

._crit_edge60:                                    ; preds = %._crit_edge, %13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %20 = load i32, ptr %14, align 8, !tbaa !32
  %21 = zext i32 %20 to i64
  invoke void @_ZN6basisu6vectorIjEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %21)
          to label %.preheader53 unwind label %48

.preheader53:                                     ; preds = %._crit_edge60
  %22 = load i32, ptr %14, align 8, !tbaa !32
  %.not70 = icmp eq i32 %22, 0
  br i1 %.not70, label %._crit_edge63, label %.lr.ph62

.lr.ph62:                                         ; preds = %.preheader53
  %23 = getelementptr inbounds i8, ptr %0, i64 80
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  %25 = getelementptr inbounds i8, ptr %5, i64 12
  %26 = getelementptr inbounds i8, ptr %5, i64 16
  %27 = getelementptr inbounds i8, ptr %5, i64 24
  br label %50

.lr.ph59:                                         ; preds = %13, %._crit_edge
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %._crit_edge ], [ 0, %13 ]
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv73)
  %29 = call noundef i32 @_ZNK6basisu6vectorIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  %.not69 = icmp eq i32 %29, 0
  br i1 %.not69, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph59
  %30 = trunc nuw nsw i64 %indvars.iv73 to i32
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph59
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %31 = call noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %32 = sext i32 %31 to i64
  %33 = icmp slt i64 %indvars.iv.next74, %32
  br i1 %33, label %.lr.ph59, label %._crit_edge60, !llvm.loop !33

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %28, i64 noundef %indvars.iv)
  %35 = load i32, ptr %34, align 4, !tbaa !35
  %36 = lshr i32 %35, 1
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %28, i64 noundef %indvars.iv)
  %38 = load i32, ptr %37, align 4, !tbaa !35
  %39 = and i32 %38, 1
  %40 = zext nneg i32 %36 to i64
  %41 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6basisu6vectorINS_5vec2UEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %40)
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu5vec2UixEj(ptr noundef nonnull align 4 dereferenceable(8) %41, i32 noundef %39)
  store i32 %30, ptr %42, align 4, !tbaa !35
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = call noundef i32 @_ZNK6basisu6vectorIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  %44 = zext i32 %43 to i64
  %45 = icmp ult i64 %indvars.iv.next, %44
  br i1 %45, label %.lr.ph, label %._crit_edge, !llvm.loop !36

._crit_edge63:                                    ; preds = %56, %.preheader53
  %46 = getelementptr inbounds i8, ptr %0, i64 80
  %47 = load ptr, ptr %46, align 8, !tbaa !37
  invoke void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189) %47)
          to label %64 unwind label %68

48:                                               ; preds = %._crit_edge60
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %103

50:                                               ; preds = %.lr.ph62, %56
  %51 = phi i32 [ %22, %.lr.ph62 ], [ %57, %56 ]
  %.04361 = phi i32 [ 0, %.lr.ph62 ], [ %52, %56 ]
  %52 = add i32 %.04361, 1024
  %53 = call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %51, i32 noundef %52)
  %54 = load ptr, ptr %23, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  store ptr %0, ptr %5, align 8, !tbaa !38
  store i32 %.04361, ptr %24, align 8, !tbaa !40
  store i32 %53, ptr %25, align 4, !tbaa !41
  store ptr %3, ptr %26, align 8, !tbaa !42
  store ptr %2, ptr %27, align 8, !tbaa !42
  invoke void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend30refine_endpoint_clusterizationEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %55 unwind label %59

55:                                               ; preds = %50
  invoke void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189) %54, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %56 unwind label %61

56:                                               ; preds = %55
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  %57 = load i32, ptr %14, align 8, !tbaa !32
  %58 = icmp ult i32 %52, %57
  br i1 %58, label %50, label %._crit_edge63, !llvm.loop !43

59:                                               ; preds = %50
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %55
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %63

63:                                               ; preds = %61, %59
  %.pn49 = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %102

64:                                               ; preds = %._crit_edge63
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %65 = call noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %66 = zext i32 %65 to i64
  invoke void @_ZN6basisu6vectorINS0_IjEEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %66)
          to label %.preheader unwind label %70

.preheader:                                       ; preds = %64
  %67 = load i32, ptr %14, align 8, !tbaa !32
  %.not71 = icmp eq i32 %67, 0
  br i1 %.not71, label %._crit_edge67, label %.lr.ph66

._crit_edge67:                                    ; preds = %85, %.preheader
  %.035.lcssa = phi i32 [ 0, %.preheader ], [ %spec.select, %85 ]
  invoke void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef nonnull @.str.33, i32 noundef %.035.lcssa)
          to label %95 unwind label %98

68:                                               ; preds = %._crit_edge63
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %102

70:                                               ; preds = %64
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %101

.lr.ph66:                                         ; preds = %.preheader, %85
  %indvars.iv76 = phi i64 [ %indvars.iv.next77, %85 ], [ 0, %.preheader ]
  %.03564 = phi i32 [ %spec.select, %85 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %72 = trunc nuw i64 %indvars.iv76 to i32
  %73 = shl i32 %72, 1
  store i32 %73, ptr %7, align 4, !tbaa !35
  %74 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6basisu6vectorINS_5vec2UEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %indvars.iv76)
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu5vec2UixEj(ptr noundef nonnull align 4 dereferenceable(8) %74, i32 noundef 0)
  %76 = load i32, ptr %75, align 4, !tbaa !35
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv76)
  %78 = load i32, ptr %77, align 4, !tbaa !35
  %79 = zext i32 %78 to i64
  %80 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %79)
  invoke void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %80, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %81 unwind label %90

81:                                               ; preds = %.lr.ph66
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %79)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %83 = load i32, ptr %7, align 4, !tbaa !35
  %84 = add i32 %83, 1
  store i32 %84, ptr %8, align 4, !tbaa !35
  invoke void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %82, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %85 unwind label %92

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %.not = icmp ne i32 %78, %76
  %86 = zext i1 %.not to i32
  %spec.select = add i32 %.03564, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %87 = load i32, ptr %14, align 8, !tbaa !32
  %88 = zext i32 %87 to i64
  %89 = icmp ult i64 %indvars.iv.next77, %88
  br i1 %89, label %.lr.ph66, label %._crit_edge67, !llvm.loop !44

90:                                               ; preds = %.lr.ph66
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %94

92:                                               ; preds = %81
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %94

94:                                               ; preds = %92, %90
  %.pn = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %100

95:                                               ; preds = %._crit_edge67
  %96 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %97 unwind label %98

97:                                               ; preds = %95
  call void @_ZN6basisu6vectorINS0_IjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN6basisu6vectorINS_5vec2UEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  ret i32 %.035.lcssa

98:                                               ; preds = %95, %._crit_edge67
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %100

100:                                              ; preds = %98, %94
  %.pn.pn = phi { ptr, i32 } [ %.pn, %94 ], [ %99, %98 ]
  call void @_ZN6basisu6vectorINS0_IjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %101

101:                                              ; preds = %100, %70
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %100 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %102

102:                                              ; preds = %101, %68, %63
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %63 ], [ %.pn.pn.pn, %101 ], [ %69, %68 ]
  call void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  br label %103

103:                                              ; preds = %102, %48
  %.pn49.pn.pn = phi { ptr, i32 } [ %.pn49.pn, %102 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN6basisu6vectorINS_5vec2UEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn49.pn.pn
}

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

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

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

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 #4 align 2

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

; 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 #3 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 #4 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 #3 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 #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 #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu6vectorINS0_IjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu15basisu_frontend52compute_endpoint_clusters_within_each_parent_clusterEv(ptr noundef nonnull align 8 dereferenceable(496)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu6vectorINS_5vec2UEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { 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 #5 = { 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 #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, !12, i64 97}
!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 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!6, !8, i64 88}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!8, !8, i64 0}
!36 = distinct !{!36, !34}
!37 = !{!6, !11, i64 80}
!38 = !{!39, !11, i64 0}
!39 = !{!"_ZTSZN6basisu15basisu_frontend30refine_endpoint_clusterizationEvE3$_0", !11, i64 0, !8, i64 8, !8, i64 12, !11, i64 16, !11, i64 24}
!40 = !{!39, !8, i64 8}
!41 = !{!39, !8, i64 12}
!42 = !{!11, !11, i64 0}
!43 = distinct !{!43, !34}
!44 = distinct !{!44, !34}


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