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

; 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"

%"struct.basisu::basisu_backend_output" = type { i32, i8, i8, i8, i32, i32, %"class.basisu::vector.3", %"class.basisu::vector.3", %"class.basisu::vector.5", %"class.basisu::vector.3", %"class.basisu::vector.7", %"class.basisu::vector.9" }
%"class.basisu::vector.5" = type { ptr, i32, i32 }
%"class.basisu::vector.3" = type { ptr, i32, i32 }
%"class.basisu::vector.7" = type { ptr, i32, i32 }
%"class.basisu::vector.9" = type { ptr, i32, i32 }
%"class.basisu::basisu_file" = type <{ %"struct.basist::basis_file_header", [3 x i8], %"class.basisu::vector", %"class.basisu::vector.3", i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%"struct.basist::basis_file_header" = type { %"struct.basisu::packed_uint", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint.2", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.2", %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0" }
%"struct.basisu::packed_uint.2" = type { [1 x i8] }
%"struct.basisu::packed_uint" = type { [2 x i8] }
%"struct.basisu::packed_uint.1" = type { [3 x i8] }
%"struct.basisu::packed_uint.0" = type { [4 x i8] }
%"class.basisu::vector" = type { ptr, i32, i32 }
%"struct.basisu::basisu_backend_slice_desc" = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8] }>
%"struct.basist::basis_slice_desc" = type { %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint.2", %"struct.basisu::packed_uint.2", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint" }

@.str.3 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [40 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu11basisu_file18create_image_descsERKNS_21basisu_backend_outputE = external hidden unnamed_addr constant [76 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2), i64 noundef) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(3) ptr @_ZN6basisu11packed_uintILj3EEaSEm(ptr noundef nonnull align 1 dereferenceable(3), i64 noundef) #0 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu11packed_uintILj1EEaSEm(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu11basisu_file18create_image_descsERKNS_21basisu_backend_outputE(ptr noundef nonnull align 8 dereferenceable(140) %0, ptr noundef nonnull align 8 dereferenceable(112) %1) #3 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %12, i32 0, i32 8
  store ptr %13, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = call noundef i32 @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  %17 = zext i32 %16 to i64
  call void @_ZN6basisu6vectorIN6basist16basis_slice_descEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %17, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %18 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 9
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = zext i32 %19 to i64
  store i64 %20, ptr %7, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !21
  br label %21

21:                                               ; preds = %212, %2
  %22 = load i32, ptr %8, align 4, !tbaa !21
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef i32 @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %25 = icmp ult i32 %22, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %21
  store i32 2, ptr %9, align 4
  br label %215

27:                                               ; preds = %21
  %28 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %29 = load i32, ptr %8, align 4, !tbaa !21
  %30 = zext i32 %29 to i64
  %31 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %28, i64 noundef %30)
  call void @_ZN6basisu9clear_objIN6basist16basis_slice_descEEEvRT_(ptr noundef nonnull align 1 dereferenceable(23) %31)
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load i32, ptr %8, align 4, !tbaa !21
  %34 = zext i32 %33 to i64
  %35 = call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %32, i64 noundef %34)
  %36 = getelementptr inbounds %"struct.basisu::basisu_backend_slice_desc", ptr %35, i32 0, i32 9
  %37 = load i32, ptr %36, align 4, !tbaa !22
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %40 = load i32, ptr %8, align 4, !tbaa !21
  %41 = zext i32 %40 to i64
  %42 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %39, i64 noundef %41)
  %43 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %42, i32 0, i32 0
  %44 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZN6basisu11packed_uintILj3EEaSEm(ptr noundef nonnull align 1 dereferenceable(3) %43, i64 noundef %38)
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = load i32, ptr %8, align 4, !tbaa !21
  %47 = zext i32 %46 to i64
  %48 = call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %45, i64 noundef %47)
  %49 = getelementptr inbounds %"struct.basisu::basisu_backend_slice_desc", ptr %48, i32 0, i32 10
  %50 = load i32, ptr %49, align 4, !tbaa !25
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %53 = load i32, ptr %8, align 4, !tbaa !21
  %54 = zext i32 %53 to i64
  %55 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %52, i64 noundef %54)
  %56 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %55, i32 0, i32 1
  %57 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu11packed_uintILj1EEaSEm(ptr noundef nonnull align 1 dereferenceable(1) %56, i64 noundef %51)
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load i32, ptr %8, align 4, !tbaa !21
  %60 = zext i32 %59 to i64
  %61 = call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %58, i64 noundef %60)
  %62 = getelementptr inbounds %"struct.basisu::basisu_backend_slice_desc", ptr %61, i32 0, i32 11
  %63 = load i8, ptr %62, align 4, !tbaa !26, !range !27, !noundef !28
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %80

65:                                               ; preds = %27
  %66 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %67 = load i32, ptr %8, align 4, !tbaa !21
  %68 = zext i32 %67 to i64
  %69 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %66, i64 noundef %68)
  %70 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %69, i32 0, i32 2
  %71 = call noundef i32 @_ZNK6basisu11packed_uintILj1EEcvjEv(ptr noundef nonnull align 1 dereferenceable(1) %70)
  %72 = or i32 %71, 1
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %75 = load i32, ptr %8, align 4, !tbaa !21
  %76 = zext i32 %75 to i64
  %77 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %74, i64 noundef %76)
  %78 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %77, i32 0, i32 2
  %79 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu11packed_uintILj1EEaSEm(ptr noundef nonnull align 1 dereferenceable(1) %78, i64 noundef %73)
  br label %80

80:                                               ; preds = %65, %27
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load i32, ptr %8, align 4, !tbaa !21
  %83 = zext i32 %82 to i64
  %84 = call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %81, i64 noundef %83)
  %85 = getelementptr inbounds %"struct.basisu::basisu_backend_slice_desc", ptr %84, i32 0, i32 12
  %86 = load i8, ptr %85, align 1, !tbaa !29, !range !27, !noundef !28
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %103

88:                                               ; preds = %80
  %89 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %90 = load i32, ptr %8, align 4, !tbaa !21
  %91 = zext i32 %90 to i64
  %92 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %89, i64 noundef %91)
  %93 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %92, i32 0, i32 2
  %94 = call noundef i32 @_ZNK6basisu11packed_uintILj1EEcvjEv(ptr noundef nonnull align 1 dereferenceable(1) %93)
  %95 = or i32 %94, 2
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %98 = load i32, ptr %8, align 4, !tbaa !21
  %99 = zext i32 %98 to i64
  %100 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %97, i64 noundef %99)
  %101 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %100, i32 0, i32 2
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu11packed_uintILj1EEaSEm(ptr noundef nonnull align 1 dereferenceable(1) %101, i64 noundef %96)
  br label %103

103:                                              ; preds = %88, %80
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load i32, ptr %8, align 4, !tbaa !21
  %106 = zext i32 %105 to i64
  %107 = call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %104, i64 noundef %106)
  %108 = getelementptr inbounds %"struct.basisu::basisu_backend_slice_desc", ptr %107, i32 0, i32 1
  %109 = load i32, ptr %108, align 4, !tbaa !30
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %112 = load i32, ptr %8, align 4, !tbaa !21
  %113 = zext i32 %112 to i64
  %114 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %111, i64 noundef %113)
  %115 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %114, i32 0, i32 3
  %116 = call noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2) %115, i64 noundef %110)
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load i32, ptr %8, align 4, !tbaa !21
  %119 = zext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %117, i64 noundef %119)
  %121 = getelementptr inbounds %"struct.basisu::basisu_backend_slice_desc", ptr %120, i32 0, i32 2
  %122 = load i32, ptr %121, align 4, !tbaa !31
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %125 = load i32, ptr %8, align 4, !tbaa !21
  %126 = zext i32 %125 to i64
  %127 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %124, i64 noundef %126)
  %128 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %127, i32 0, i32 4
  %129 = call noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2) %128, i64 noundef %123)
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load i32, ptr %8, align 4, !tbaa !21
  %132 = zext i32 %131 to i64
  %133 = call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %130, i64 noundef %132)
  %134 = getelementptr inbounds %"struct.basisu::basisu_backend_slice_desc", ptr %133, i32 0, i32 5
  %135 = load i32, ptr %134, align 4, !tbaa !32
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %138 = load i32, ptr %8, align 4, !tbaa !21
  %139 = zext i32 %138 to i64
  %140 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %137, i64 noundef %139)
  %141 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %140, i32 0, i32 5
  %142 = call noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2) %141, i64 noundef %136)
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = load i32, ptr %8, align 4, !tbaa !21
  %145 = zext i32 %144 to i64
  %146 = call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %143, i64 noundef %145)
  %147 = getelementptr inbounds %"struct.basisu::basisu_backend_slice_desc", ptr %146, i32 0, i32 6
  %148 = load i32, ptr %147, align 4, !tbaa !33
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %151 = load i32, ptr %8, align 4, !tbaa !21
  %152 = zext i32 %151 to i64
  %153 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %150, i64 noundef %152)
  %154 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %153, i32 0, i32 6
  %155 = call noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2) %154, i64 noundef %149)
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %156, i32 0, i32 11
  %158 = load i32, ptr %8, align 4, !tbaa !21
  %159 = zext i32 %158 to i64
  %160 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNK6basisu6vectorItEixEm(ptr noundef nonnull align 8 dereferenceable(16) %157, i64 noundef %159)
  %161 = load i16, ptr %160, align 2, !tbaa !34
  %162 = zext i16 %161 to i64
  %163 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %164 = load i32, ptr %8, align 4, !tbaa !21
  %165 = zext i32 %164 to i64
  %166 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %163, i64 noundef %165)
  %167 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %166, i32 0, i32 9
  %168 = call noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2) %167, i64 noundef %162)
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %169, i32 0, i32 10
  %171 = load i32, ptr %8, align 4, !tbaa !21
  %172 = zext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu6vectorINS0_IhEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %170, i64 noundef %172)
  %174 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %173)
  %175 = icmp ugt i32 %174, -1
  br i1 %175, label %176, label %177

176:                                              ; preds = %103
  call void (ptr, ...) @_ZN6basisu12error_printfEPKcz(ptr noundef @.str.7)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %215

177:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %178, i32 0, i32 10
  %180 = load i32, ptr %8, align 4, !tbaa !21
  %181 = zext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu6vectorINS0_IhEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %179, i64 noundef %181)
  %183 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %182)
  store i32 %183, ptr %10, align 4, !tbaa !21
  %184 = load i64, ptr %7, align 8, !tbaa !19
  %185 = trunc i64 %184 to i32
  %186 = zext i32 %185 to i64
  %187 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %188 = load i32, ptr %8, align 4, !tbaa !21
  %189 = zext i32 %188 to i64
  %190 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %187, i64 noundef %189)
  %191 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %190, i32 0, i32 7
  %192 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu11packed_uintILj4EEaSEm(ptr noundef nonnull align 1 dereferenceable(4) %191, i64 noundef %186)
  %193 = load i32, ptr %10, align 4, !tbaa !21
  %194 = zext i32 %193 to i64
  %195 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 2
  %196 = load i32, ptr %8, align 4, !tbaa !21
  %197 = zext i32 %196 to i64
  %198 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %195, i64 noundef %197)
  %199 = getelementptr inbounds %"struct.basist::basis_slice_desc", ptr %198, i32 0, i32 8
  %200 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu11packed_uintILj4EEaSEm(ptr noundef nonnull align 1 dereferenceable(4) %199, i64 noundef %194)
  %201 = load i32, ptr %10, align 4, !tbaa !21
  %202 = zext i32 %201 to i64
  %203 = load i64, ptr %7, align 8, !tbaa !19
  %204 = add i64 %203, %202
  store i64 %204, ptr %7, align 8, !tbaa !19
  %205 = load i64, ptr %7, align 8, !tbaa !19
  %206 = icmp ugt i64 %205, 4294967295
  br i1 %206, label %207, label %208

207:                                              ; preds = %177
  call void (ptr, ...) @_ZN6basisu12error_printfEPKcz(ptr noundef @.str.7)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %209

208:                                              ; preds = %177
  store i32 0, ptr %9, align 4
  br label %209

209:                                              ; preds = %208, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %210 = load i32, ptr %9, align 4
  switch i32 %210, label %215 [
    i32 0, label %211
  ]

211:                                              ; preds = %209
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %8, align 4, !tbaa !21
  %214 = add i32 %213, 1
  store i32 %214, ptr %8, align 4, !tbaa !21
  br label %21, !llvm.loop !36

215:                                              ; preds = %209, %176, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %216 = load i32, ptr %9, align 4
  switch i32 %216, label %227 [
    i32 2, label %217
  ]

217:                                              ; preds = %215
  %218 = load i64, ptr %7, align 8, !tbaa !19
  %219 = getelementptr inbounds %"class.basisu::basisu_file", ptr %11, i32 0, i32 10
  %220 = load i32, ptr %219, align 8, !tbaa !38
  %221 = zext i32 %220 to i64
  %222 = icmp eq i64 %218, %221
  br i1 %222, label %223, label %224

223:                                              ; preds = %217
  br label %226

224:                                              ; preds = %217
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.3, i32 noundef 142, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu11basisu_file18create_image_descsERKNS_21basisu_backend_outputE) #7
  unreachable

225:                                              ; No predecessors!
  br label %226

226:                                              ; preds = %225, %223
  store i1 true, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %227

227:                                              ; preds = %226, %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %228 = load i1, ptr %3, align 1
  ret i1 %228
}

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

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

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

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

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

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

declare void @_ZN6basisu12error_printfEPKcz(ptr noundef, ...) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !17, i64 132}
!10 = !{!"_ZTSN6basisu11basisu_fileE", !11, i64 0, !16, i64 80, !18, i64 96, !17, i64 112, !17, i64 116, !17, i64 120, !17, i64 124, !17, i64 128, !17, i64 132, !17, i64 136}
!11 = !{!"_ZTSN6basist17basis_file_headerE", !12, i64 0, !12, i64 2, !12, i64 4, !12, i64 6, !13, i64 8, !12, i64 12, !14, i64 14, !14, i64 17, !15, i64 20, !12, i64 21, !15, i64 23, !14, i64 24, !13, i64 27, !13, i64 31, !13, i64 35, !12, i64 39, !13, i64 41, !14, i64 45, !12, i64 48, !13, i64 50, !14, i64 54, !13, i64 57, !13, i64 61, !13, i64 65, !13, i64 69, !13, i64 73}
!12 = !{!"_ZTSN6basisu11packed_uintILj2EEE", !7, i64 0}
!13 = !{!"_ZTSN6basisu11packed_uintILj4EEE", !7, i64 0}
!14 = !{!"_ZTSN6basisu11packed_uintILj3EEE", !7, i64 0}
!15 = !{!"_ZTSN6basisu11packed_uintILj1EEE", !7, i64 0}
!16 = !{!"_ZTSN6basisu6vectorIN6basist16basis_slice_descEEE", !6, i64 0, !17, i64 8, !17, i64 12}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN6basisu6vectorIhEE", !6, i64 0, !17, i64 8, !17, i64 12}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!17, !17, i64 0}
!22 = !{!23, !17, i64 36}
!23 = !{!"_ZTSN6basisu25basisu_backend_slice_descE", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !24, i64 44, !24, i64 45}
!24 = !{!"bool", !7, i64 0}
!25 = !{!23, !17, i64 40}
!26 = !{!23, !24, i64 44}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!23, !24, i64 45}
!30 = !{!23, !17, i64 4}
!31 = !{!23, !17, i64 8}
!32 = !{!23, !17, i64 20}
!33 = !{!23, !17, i64 24}
!34 = !{!35, !35, i64 0}
!35 = !{!"short", !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!10, !17, i64 136}


; 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"

@.str.3 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [40 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu11basisu_file18create_image_descsERKNS_21basisu_backend_outputE = external hidden unnamed_addr constant [76 x i8], align 1

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(3) ptr @_ZN6basisu11packed_uintILj3EEaSEm(ptr noundef nonnull align 1 dereferenceable(3), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu11basisu_file18create_image_descsERKNS_21basisu_backend_outputE(ptr noundef nonnull align 8 dereferenceable(140) %0, ptr noundef nonnull align 8 dereferenceable(112) %1) local_unnamed_addr #2 align 2 {
  %3 = getelementptr inbounds i8, ptr %1, i64 48
  %4 = getelementptr inbounds i8, ptr %0, i64 80
  %5 = tail call noundef i32 @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %6 = zext i32 %5 to i64
  tail call void @_ZN6basisu6vectorIN6basist16basis_slice_descEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %6, i1 noundef zeroext false)
  %7 = getelementptr inbounds i8, ptr %0, i64 132
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = zext i32 %8 to i64
  %10 = tail call noundef i32 @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not65 = icmp eq i32 %10, 0
  br i1 %.not65, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %11 = getelementptr inbounds i8, ptr %1, i64 96
  %12 = getelementptr inbounds i8, ptr %1, i64 80
  br label %16

13:                                               ; preds = %.critedge
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = tail call noundef i32 @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %15 = zext i32 %14 to i64
  %.not.not = icmp ult i64 %indvars.iv.next, %15
  br i1 %.not.not, label %16, label %._crit_edge, !llvm.loop !18

16:                                               ; preds = %.lr.ph, %13
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %13 ]
  %.05466 = phi i64 [ %9, %.lr.ph ], [ %104, %13 ]
  %17 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  tail call void @_ZN6basisu9clear_objIN6basist16basis_slice_descEEEvRT_(ptr noundef nonnull align 1 dereferenceable(23) %17)
  %18 = tail call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv)
  %19 = getelementptr inbounds i8, ptr %18, i64 36
  %20 = load i32, ptr %19, align 4, !tbaa !20
  %21 = zext i32 %20 to i64
  %22 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %23 = tail call noundef nonnull align 1 dereferenceable(3) ptr @_ZN6basisu11packed_uintILj3EEaSEm(ptr noundef nonnull align 1 dereferenceable(3) %22, i64 noundef %21)
  %24 = tail call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv)
  %25 = getelementptr inbounds i8, ptr %24, i64 40
  %26 = load i32, ptr %25, align 4, !tbaa !23
  %27 = zext i32 %26 to i64
  %28 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %29 = getelementptr inbounds i8, ptr %28, i64 3
  %30 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu11packed_uintILj1EEaSEm(ptr noundef nonnull align 1 dereferenceable(1) %29, i64 noundef %27)
  %31 = tail call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv)
  %32 = getelementptr inbounds i8, ptr %31, i64 44
  %33 = load i8, ptr %32, align 4, !tbaa !24, !range !25, !noundef !26
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %35, label %44

35:                                               ; preds = %16
  %36 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %37 = getelementptr inbounds i8, ptr %36, i64 4
  %38 = tail call noundef i32 @_ZNK6basisu11packed_uintILj1EEcvjEv(ptr noundef nonnull align 1 dereferenceable(1) %37)
  %39 = or i32 %38, 1
  %40 = zext i32 %39 to i64
  %41 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %42 = getelementptr inbounds i8, ptr %41, i64 4
  %43 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu11packed_uintILj1EEaSEm(ptr noundef nonnull align 1 dereferenceable(1) %42, i64 noundef %40)
  br label %44

44:                                               ; preds = %35, %16
  %45 = tail call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv)
  %46 = getelementptr inbounds i8, ptr %45, i64 45
  %47 = load i8, ptr %46, align 1, !tbaa !27, !range !25, !noundef !26
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %49, label %.critedge

49:                                               ; preds = %44
  %50 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %51 = getelementptr inbounds i8, ptr %50, i64 4
  %52 = tail call noundef i32 @_ZNK6basisu11packed_uintILj1EEcvjEv(ptr noundef nonnull align 1 dereferenceable(1) %51)
  %53 = or i32 %52, 2
  %54 = zext i32 %53 to i64
  %55 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %56 = getelementptr inbounds i8, ptr %55, i64 4
  %57 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu11packed_uintILj1EEaSEm(ptr noundef nonnull align 1 dereferenceable(1) %56, i64 noundef %54)
  br label %.critedge

.critedge:                                        ; preds = %49, %44
  %58 = tail call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv)
  %59 = getelementptr inbounds i8, ptr %58, i64 4
  %60 = load i32, ptr %59, align 4, !tbaa !28
  %61 = zext i32 %60 to i64
  %62 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %63 = getelementptr inbounds i8, ptr %62, i64 5
  %64 = tail call noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2) %63, i64 noundef %61)
  %65 = tail call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv)
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = load i32, ptr %66, align 4, !tbaa !29
  %68 = zext i32 %67 to i64
  %69 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %70 = getelementptr inbounds i8, ptr %69, i64 7
  %71 = tail call noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2) %70, i64 noundef %68)
  %72 = tail call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv)
  %73 = getelementptr inbounds i8, ptr %72, i64 20
  %74 = load i32, ptr %73, align 4, !tbaa !30
  %75 = zext i32 %74 to i64
  %76 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %77 = getelementptr inbounds i8, ptr %76, i64 9
  %78 = tail call noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2) %77, i64 noundef %75)
  %79 = tail call noundef nonnull align 4 dereferenceable(46) ptr @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv)
  %80 = getelementptr inbounds i8, ptr %79, i64 24
  %81 = load i32, ptr %80, align 4, !tbaa !31
  %82 = zext i32 %81 to i64
  %83 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %84 = getelementptr inbounds i8, ptr %83, i64 11
  %85 = tail call noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2) %84, i64 noundef %82)
  %86 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZNK6basisu6vectorItEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv)
  %87 = load i16, ptr %86, align 2, !tbaa !32
  %88 = zext i16 %87 to i64
  %89 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %90 = getelementptr inbounds i8, ptr %89, i64 21
  %91 = tail call noundef nonnull align 1 dereferenceable(2) ptr @_ZN6basisu11packed_uintILj2EEaSEm(ptr noundef nonnull align 1 dereferenceable(2) %90, i64 noundef %88)
  %92 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu6vectorINS0_IhEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv)
  %93 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %92)
  %94 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu6vectorINS0_IhEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv)
  %95 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %94)
  %96 = and i64 %.05466, 4294967295
  %97 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %98 = getelementptr inbounds i8, ptr %97, i64 13
  %99 = tail call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu11packed_uintILj4EEaSEm(ptr noundef nonnull align 1 dereferenceable(4) %98, i64 noundef %96)
  %100 = zext i32 %95 to i64
  %101 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv)
  %102 = getelementptr inbounds i8, ptr %101, i64 17
  %103 = tail call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu11packed_uintILj4EEaSEm(ptr noundef nonnull align 1 dereferenceable(4) %102, i64 noundef %100)
  %104 = add nuw nsw i64 %.05466, %100
  %105 = icmp ult i64 %104, 4294967296
  br i1 %105, label %13, label %.thread

.thread:                                          ; preds = %.critedge
  tail call void (ptr, ...) @_ZN6basisu12error_printfEPKcz(ptr noundef nonnull @.str.7)
  br label %111

._crit_edge:                                      ; preds = %13, %2
  %.054.lcssa = phi i64 [ %9, %2 ], [ %104, %13 ]
  %106 = getelementptr inbounds i8, ptr %0, i64 136
  %107 = load i32, ptr %106, align 8
  %108 = zext i32 %107 to i64
  %109 = icmp eq i64 %.054.lcssa, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.3, i32 noundef 142, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu11basisu_file18create_image_descsERKNS_21basisu_backend_outputE) #5
  unreachable

111:                                              ; preds = %.thread, %._crit_edge
  %.not63 = phi i1 [ false, %.thread ], [ true, %._crit_edge ]
  ret i1 %.not63
}

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

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

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

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

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

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

declare void @_ZN6basisu12error_printfEPKcz(ptr noundef, ...) local_unnamed_addr #4

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

!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, !16, i64 132}
!6 = !{!"_ZTSN6basisu11basisu_fileE", !7, i64 0, !14, i64 80, !17, i64 96, !16, i64 112, !16, i64 116, !16, i64 120, !16, i64 124, !16, i64 128, !16, i64 132, !16, i64 136}
!7 = !{!"_ZTSN6basist17basis_file_headerE", !8, i64 0, !8, i64 2, !8, i64 4, !8, i64 6, !11, i64 8, !8, i64 12, !12, i64 14, !12, i64 17, !13, i64 20, !8, i64 21, !13, i64 23, !12, i64 24, !11, i64 27, !11, i64 31, !11, i64 35, !8, i64 39, !11, i64 41, !12, i64 45, !8, i64 48, !11, i64 50, !12, i64 54, !11, i64 57, !11, i64 61, !11, i64 65, !11, i64 69, !11, i64 73}
!8 = !{!"_ZTSN6basisu11packed_uintILj2EEE", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN6basisu11packed_uintILj4EEE", !9, i64 0}
!12 = !{!"_ZTSN6basisu11packed_uintILj3EEE", !9, i64 0}
!13 = !{!"_ZTSN6basisu11packed_uintILj1EEE", !9, i64 0}
!14 = !{!"_ZTSN6basisu6vectorIN6basist16basis_slice_descEEE", !15, i64 0, !16, i64 8, !16, i64 12}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!"_ZTSN6basisu6vectorIhEE", !15, i64 0, !16, i64 8, !16, i64 12}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !16, i64 36}
!21 = !{!"_ZTSN6basisu25basisu_backend_slice_descE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !16, i64 40, !22, i64 44, !22, i64 45}
!22 = !{!"bool", !9, i64 0}
!23 = !{!21, !16, i64 40}
!24 = !{!21, !22, i64 44}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!21, !22, i64 45}
!28 = !{!21, !16, i64 4}
!29 = !{!21, !16, i64 8}
!30 = !{!21, !16, i64 20}
!31 = !{!21, !16, i64 24}
!32 = !{!33, !33, i64 0}
!33 = !{!"short", !9, i64 0}


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