; LLVM IR from zeux/meshoptimizer :: gltf (stream)

; 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.StreamFormat = type { i32, i32, i8, i64, i32 }
%struct.Settings = type { i32, i32, i32, i32, i8, i8, i8, i8, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, float, float, i8, i8, i8, float, i32, i8, i8, i8, i8, i8, [4 x float], [4 x i32], [4 x i32], [4 x i32], i32, i8, i8, i8, i8, i32 }
%struct.Attr = type { [4 x float] }

@__const._Z19writeKeyframeStreamRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE25cgltf_animation_path_typeRKSt6vectorI4AttrSaIS8_EERK8Settingsb.format = external hidden unnamed_addr constant %struct.StreamFormat, align 8
@__const._Z19writeKeyframeStreamRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE25cgltf_animation_path_typeRKSt6vectorI4AttrSaIS8_EERK8Settingsb.format.12 = external hidden unnamed_addr constant %struct.StreamFormat, align 8

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11encodeSnormPvmmiPKf(ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19writeKeyframeStreamRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE25cgltf_animation_path_typeRKSt6vectorI4AttrSaIS8_EERK8Settingsb(ptr dead_on_unwind noalias writable sret(%struct.StreamFormat) align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(148) %4, i1 noundef zeroext %5) #4 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca [1 x i8], align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca [3 x float], align 4
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca [4 x float], align 16
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %27 = zext i1 %5 to i8
  store i8 %27, ptr %11, align 1, !tbaa !11
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = icmp eq i32 %28, 2
  br i1 %29, label %30, label %87

30:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.Settings, ptr %31, i32 0, i32 39
  %33 = load i8, ptr %32, align 2, !tbaa !13, !range !17, !noundef !18
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %39

35:                                               ; preds = %30
  %36 = load i8, ptr %11, align 1, !tbaa !11, !range !17, !noundef !18
  %37 = trunc i8 %36 to i1
  %38 = xor i1 %37, true
  br label %39

39:                                               ; preds = %35, %30
  %40 = phi i1 [ false, %30 ], [ %38, %35 ]
  %41 = zext i1 %40 to i64
  %42 = select i1 %40, i32 2, i32 0
  store i32 %42, ptr %12, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %43) #6
  store i64 %44, ptr %13, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 8, ptr %14, align 8, !tbaa !21
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #6
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  %50 = load i64, ptr %14, align 8, !tbaa !21
  %51 = mul i64 %49, %50
  %52 = add i64 %47, %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %45, i64 noundef %52)
  %53 = load i32, ptr %12, align 4, !tbaa !19
  %54 = icmp eq i32 %53, 2
  br i1 %54, label %55, label %69

55:                                               ; preds = %39
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load i64, ptr %13, align 8, !tbaa !21
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %56, i64 noundef %57)
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  %61 = load i64, ptr %14, align 8, !tbaa !21
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.Settings, ptr %62, i32 0, i32 9
  %64 = load i32, ptr %63, align 4, !tbaa !23
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef 0) #6
  %67 = getelementptr inbounds %struct.Attr, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds [4 x float], ptr %67, i64 0, i64 0
  call void @meshopt_encodeFilterQuat(ptr noundef %58, i64 noundef %60, i64 noundef %61, i32 noundef %64, ptr noundef %68)
  br label %80

69:                                               ; preds = %39
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load i64, ptr %13, align 8, !tbaa !21
  %72 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %70, i64 noundef %71)
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #6
  %75 = load i64, ptr %14, align 8, !tbaa !21
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef 0) #6
  %78 = getelementptr inbounds %struct.Attr, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds [4 x float], ptr %78, i64 0, i64 0
  call void @_ZL11encodeSnormPvmmiPKf(ptr noundef %72, i64 noundef %74, i64 noundef %75, i32 noundef 16, ptr noundef %79)
  br label %80

80:                                               ; preds = %69, %55
  %81 = getelementptr inbounds %struct.StreamFormat, ptr %0, i32 0, i32 0
  store i32 4, ptr %81, align 8, !tbaa !24
  %82 = getelementptr inbounds %struct.StreamFormat, ptr %0, i32 0, i32 1
  store i32 3, ptr %82, align 4, !tbaa !28
  %83 = getelementptr inbounds %struct.StreamFormat, ptr %0, i32 0, i32 2
  store i8 1, ptr %83, align 8, !tbaa !29
  %84 = getelementptr inbounds %struct.StreamFormat, ptr %0, i32 0, i32 3
  store i64 8, ptr %84, align 8, !tbaa !30
  %85 = getelementptr inbounds %struct.StreamFormat, ptr %0, i32 0, i32 4
  %86 = load i32, ptr %12, align 4, !tbaa !19
  store i32 %86, ptr %85, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %228

87:                                               ; preds = %6
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 4
  br i1 %89, label %90, label %114

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !21
  br label %91

91:                                               ; preds = %110, %90
  %92 = load i64, ptr %15, align 8, !tbaa !21
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #6
  %95 = icmp ult i64 %92, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %113

97:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = load i64, ptr %15, align 8, !tbaa !21
  %100 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %99) #6
  store ptr %100, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.Attr, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds [4 x float], ptr %102, i64 0, i64 0
  %104 = load float, ptr %103, align 4, !tbaa !32
  %105 = call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %104, i32 noundef 8)
  %106 = trunc i32 %105 to i8
  store i8 %106, ptr %17, align 1, !tbaa !33
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds [1 x i8], ptr %17, i64 0, i64 0
  %109 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %107, ptr noundef %108, i64 noundef 1)
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %110

110:                                              ; preds = %97
  %111 = load i64, ptr %15, align 8, !tbaa !21
  %112 = add i64 %111, 1
  store i64 %112, ptr %15, align 8, !tbaa !21
  br label %91, !llvm.loop !34

113:                                              ; preds = %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 @__const._Z19writeKeyframeStreamRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE25cgltf_animation_path_typeRKSt6vectorI4AttrSaIS8_EERK8Settingsb.format, i64 32, i1 false)
  br label %228

114:                                              ; preds = %87
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = icmp eq i32 %115, 1
  br i1 %116, label %120, label %117

117:                                              ; preds = %114
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = icmp eq i32 %118, 3
  br i1 %119, label %120, label %191

120:                                              ; preds = %117, %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.Settings, ptr %121, i32 0, i32 39
  %123 = load i8, ptr %122, align 2, !tbaa !13, !range !17, !noundef !18
  %124 = trunc i8 %123 to i1
  %125 = zext i1 %124 to i64
  %126 = select i1 %124, i32 3, i32 0
  store i32 %126, ptr %18, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = icmp eq i32 %127, 1
  br i1 %128, label %129, label %133

129:                                              ; preds = %120
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Settings, ptr %130, i32 0, i32 8
  %132 = load i32, ptr %131, align 4, !tbaa !36
  br label %137

133:                                              ; preds = %120
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.Settings, ptr %134, i32 0, i32 10
  %136 = load i32, ptr %135, align 4, !tbaa !37
  br label %137

137:                                              ; preds = %133, %129
  %138 = phi i32 [ %132, %129 ], [ %136, %133 ]
  store i32 %138, ptr %19, align 4, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %139) #6
  store i64 %140, ptr %20, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store i64 0, ptr %21, align 8, !tbaa !21
  br label %141

141:                                              ; preds = %168, %137
  %142 = load i64, ptr %21, align 8, !tbaa !21
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #6
  %145 = icmp ult i64 %142, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %171

147:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = load i64, ptr %21, align 8, !tbaa !21
  %150 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef %149) #6
  store ptr %150, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #6
  %151 = load ptr, ptr %22, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.Attr, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds [4 x float], ptr %152, i64 0, i64 0
  %154 = load float, ptr %153, align 4, !tbaa !32
  store float %154, ptr %23, align 4, !tbaa !32
  %155 = getelementptr inbounds float, ptr %23, i64 1
  %156 = load ptr, ptr %22, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.Attr, ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds [4 x float], ptr %157, i64 0, i64 1
  %159 = load float, ptr %158, align 4, !tbaa !32
  store float %159, ptr %155, align 4, !tbaa !32
  %160 = getelementptr inbounds float, ptr %23, i64 2
  %161 = load ptr, ptr %22, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.Attr, ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds [4 x float], ptr %162, i64 0, i64 2
  %164 = load float, ptr %163, align 4, !tbaa !32
  store float %164, ptr %160, align 4, !tbaa !32
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds [3 x float], ptr %23, i64 0, i64 0
  %167 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %165, ptr noundef %166, i64 noundef 12)
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %168

168:                                              ; preds = %147
  %169 = load i64, ptr %21, align 8, !tbaa !21
  %170 = add i64 %169, 1
  store i64 %170, ptr %21, align 8, !tbaa !21
  br label %141, !llvm.loop !39

171:                                              ; preds = %146
  %172 = load i32, ptr %18, align 4, !tbaa !19
  %173 = icmp eq i32 %172, 3
  br i1 %173, label %174, label %184

174:                                              ; preds = %171
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = load i64, ptr %20, align 8, !tbaa !21
  %177 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %175, i64 noundef %176)
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %178) #6
  %180 = load i32, ptr %19, align 4, !tbaa !38
  %181 = load ptr, ptr %7, align 8, !tbaa !5
  %182 = load i64, ptr %20, align 8, !tbaa !21
  %183 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %181, i64 noundef %182)
  call void @meshopt_encodeFilterExp(ptr noundef %177, i64 noundef %179, i64 noundef 12, i32 noundef %180, ptr noundef %183, i32 noundef 1)
  br label %184

184:                                              ; preds = %174, %171
  %185 = getelementptr inbounds %struct.StreamFormat, ptr %0, i32 0, i32 0
  store i32 3, ptr %185, align 8, !tbaa !24
  %186 = getelementptr inbounds %struct.StreamFormat, ptr %0, i32 0, i32 1
  store i32 6, ptr %186, align 4, !tbaa !28
  %187 = getelementptr inbounds %struct.StreamFormat, ptr %0, i32 0, i32 2
  store i8 0, ptr %187, align 8, !tbaa !29
  %188 = getelementptr inbounds %struct.StreamFormat, ptr %0, i32 0, i32 3
  store i64 12, ptr %188, align 8, !tbaa !30
  %189 = getelementptr inbounds %struct.StreamFormat, ptr %0, i32 0, i32 4
  %190 = load i32, ptr %18, align 4, !tbaa !19
  store i32 %190, ptr %189, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %228

191:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store i64 0, ptr %24, align 8, !tbaa !21
  br label %192

192:                                              ; preds = %224, %191
  %193 = load i64, ptr %24, align 8, !tbaa !21
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %194) #6
  %196 = icmp ult i64 %193, %195
  br i1 %196, label %198, label %197

197:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %227

198:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = load i64, ptr %24, align 8, !tbaa !21
  %201 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %200) #6
  store ptr %201, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %202 = load ptr, ptr %25, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.Attr, ptr %202, i32 0, i32 0
  %204 = getelementptr inbounds [4 x float], ptr %203, i64 0, i64 0
  %205 = load float, ptr %204, align 4, !tbaa !32
  store float %205, ptr %26, align 4, !tbaa !32
  %206 = getelementptr inbounds float, ptr %26, i64 1
  %207 = load ptr, ptr %25, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.Attr, ptr %207, i32 0, i32 0
  %209 = getelementptr inbounds [4 x float], ptr %208, i64 0, i64 1
  %210 = load float, ptr %209, align 4, !tbaa !32
  store float %210, ptr %206, align 4, !tbaa !32
  %211 = getelementptr inbounds float, ptr %26, i64 2
  %212 = load ptr, ptr %25, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.Attr, ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds [4 x float], ptr %213, i64 0, i64 2
  %215 = load float, ptr %214, align 4, !tbaa !32
  store float %215, ptr %211, align 4, !tbaa !32
  %216 = getelementptr inbounds float, ptr %26, i64 3
  %217 = load ptr, ptr %25, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.Attr, ptr %217, i32 0, i32 0
  %219 = getelementptr inbounds [4 x float], ptr %218, i64 0, i64 3
  %220 = load float, ptr %219, align 4, !tbaa !32
  store float %220, ptr %216, align 4, !tbaa !32
  %221 = load ptr, ptr %7, align 8, !tbaa !5
  %222 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 0
  %223 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %221, ptr noundef %222, i64 noundef 16)
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %224

224:                                              ; preds = %198
  %225 = load i64, ptr %24, align 8, !tbaa !21
  %226 = add i64 %225, 1
  store i64 %226, ptr %24, align 8, !tbaa !21
  br label %192, !llvm.loop !40

227:                                              ; preds = %197
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 @__const._Z19writeKeyframeStreamRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE25cgltf_animation_path_typeRKSt6vectorI4AttrSaIS8_EERK8Settingsb.format.12, i64 32, i1 false)
  br label %228

228:                                              ; preds = %227, %184, %113, %80
  ret void
}

declare void @meshopt_encodeFilterQuat(ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef) #5

declare void @meshopt_encodeFilterExp(ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) #5

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

!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, !10, i64 0}
!10 = !{!"_ZTS25cgltf_animation_path_type", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !12, i64 142}
!14 = !{!"_ZTS8Settings", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !12, i64 16, !12, i64 17, !12, i64 18, !12, i64 19, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !12, i64 36, !12, i64 37, !12, i64 38, !12, i64 39, !12, i64 40, !12, i64 41, !12, i64 42, !12, i64 43, !16, i64 44, !16, i64 48, !12, i64 52, !12, i64 53, !12, i64 54, !16, i64 56, !15, i64 60, !12, i64 64, !12, i64 65, !12, i64 66, !12, i64 67, !12, i64 68, !7, i64 72, !7, i64 88, !7, i64 104, !7, i64 120, !15, i64 136, !12, i64 140, !12, i64 141, !12, i64 142, !12, i64 143, !15, i64 144}
!15 = !{!"int", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTSN12StreamFormat6FilterE", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!14, !15, i64 24}
!24 = !{!25, !26, i64 0}
!25 = !{!"_ZTS12StreamFormat", !26, i64 0, !27, i64 4, !12, i64 8, !22, i64 16, !20, i64 24}
!26 = !{!"_ZTS10cgltf_type", !7, i64 0}
!27 = !{!"_ZTS20cgltf_component_type", !7, i64 0}
!28 = !{!25, !27, i64 4}
!29 = !{!25, !12, i64 8}
!30 = !{!25, !22, i64 16}
!31 = !{!25, !20, i64 24}
!32 = !{!16, !16, i64 0}
!33 = !{!7, !7, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!14, !15, i64 20}
!37 = !{!14, !15, i64 28}
!38 = !{!15, !15, i64 0}
!39 = distinct !{!39, !35}
!40 = distinct !{!40, !35}


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

%struct.StreamFormat = type { i32, i32, i8, i64, i32 }

@__const._Z19writeKeyframeStreamRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE25cgltf_animation_path_typeRKSt6vectorI4AttrSaIS8_EERK8Settingsb.format = external hidden unnamed_addr constant %struct.StreamFormat, align 8
@__const._Z19writeKeyframeStreamRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE25cgltf_animation_path_typeRKSt6vectorI4AttrSaIS8_EERK8Settingsb.format.12 = external hidden unnamed_addr constant %struct.StreamFormat, align 8

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11encodeSnormPvmmiPKf(ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19writeKeyframeStreamRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE25cgltf_animation_path_typeRKSt6vectorI4AttrSaIS8_EERK8Settingsb(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.StreamFormat) align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr nocapture noundef nonnull readonly align 4 dereferenceable(148) %4, i1 noundef zeroext %5) local_unnamed_addr #4 {
  %7 = alloca [1 x i8], align 1
  %8 = alloca [3 x float], align 8
  %9 = alloca [4 x float], align 16
  switch i32 %2, label %.preheader [
    i32 2, label %12
    i32 4, label %.preheader66
    i32 3, label %45
    i32 1, label %45
  ]

.preheader66:                                     ; preds = %6
  %10 = tail call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %.not74 = icmp eq i64 %10, 0
  br i1 %.not74, label %._crit_edge70, label %.lr.ph69

.preheader:                                       ; preds = %6
  %11 = tail call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %.not75 = icmp eq i64 %11, 0
  br i1 %.not75, label %._crit_edge73, label %.lr.ph72

12:                                               ; preds = %6
  %13 = getelementptr inbounds i8, ptr %4, i64 142
  %14 = load i8, ptr %13, align 2, !tbaa !5, !range !12, !noundef !13
  %15 = trunc nuw i8 %14 to i1
  %16 = xor i1 %5, true
  %17 = and i1 %16, %15
  %18 = select i1 %17, i32 2, i32 0
  %19 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %20 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %21 = tail call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %22 = shl i64 %21, 3
  %23 = add i64 %22, %20
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
  %24 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %19)
  %25 = tail call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br i1 %17, label %26, label %30

26:                                               ; preds = %12
  %27 = getelementptr inbounds i8, ptr %4, i64 24
  %28 = load i32, ptr %27, align 4, !tbaa !14
  %29 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  tail call void @meshopt_encodeFilterQuat(ptr noundef nonnull %24, i64 noundef %25, i64 noundef 8, i32 noundef %28, ptr noundef nonnull %29)
  br label %32

30:                                               ; preds = %12
  %31 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  tail call void @_ZL11encodeSnormPvmmiPKf(ptr noundef nonnull %24, i64 noundef %25, i64 noundef 8, i32 noundef 16, ptr noundef nonnull %31)
  br label %32

32:                                               ; preds = %30, %26
  store i32 4, ptr %0, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 3, ptr %33, align 4, !tbaa !21
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  store i8 1, ptr %34, align 8, !tbaa !22
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 8, ptr %35, align 8, !tbaa !23
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 %18, ptr %36, align 8, !tbaa !24
  br label %79

._crit_edge70:                                    ; preds = %.lr.ph69, %.preheader66
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) @__const._Z19writeKeyframeStreamRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE25cgltf_animation_path_typeRKSt6vectorI4AttrSaIS8_EERK8Settingsb.format, i64 32, i1 false)
  br label %79

.lr.ph69:                                         ; preds = %.preheader66, %.lr.ph69
  %.068 = phi i64 [ %42, %.lr.ph69 ], [ 0, %.preheader66 ]
  %37 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.068) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  %38 = load float, ptr %37, align 4, !tbaa !25
  %39 = call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %38, i32 noundef 8)
  %40 = trunc i32 %39 to i8
  store i8 %40, ptr %7, align 1, !tbaa !26
  %41 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %7, i64 noundef 1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  %42 = add nuw i64 %.068, 1
  %43 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %44 = icmp ult i64 %42, %43
  br i1 %44, label %.lr.ph69, label %._crit_edge70, !llvm.loop !27

45:                                               ; preds = %6, %6
  %46 = icmp eq i32 %2, 1
  %47 = getelementptr inbounds i8, ptr %4, i64 142
  %48 = load i8, ptr %47, align 2, !tbaa !5, !range !12, !noundef !13
  %49 = trunc nuw i8 %48 to i1
  %50 = select i1 %49, i32 3, i32 0
  %.in.v = select i1 %46, i64 20, i64 28
  %.in = getelementptr inbounds i8, ptr %4, i64 %.in.v
  %51 = load i32, ptr %.in, align 4, !tbaa !29
  %52 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %53 = tail call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %.not = icmp eq i64 %53, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %45
  %54 = getelementptr inbounds i8, ptr %8, i64 8
  br label %55

._crit_edge:                                      ; preds = %55, %45
  br i1 %49, label %64, label %68

55:                                               ; preds = %.lr.ph, %55
  %.06467 = phi i64 [ 0, %.lr.ph ], [ %61, %55 ]
  %56 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06467) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  %57 = load <2 x float>, ptr %56, align 4, !tbaa !25
  store <2 x float> %57, ptr %8, align 8, !tbaa !25
  %58 = getelementptr inbounds i8, ptr %56, i64 8
  %59 = load float, ptr %58, align 4, !tbaa !25
  store float %59, ptr %54, align 8, !tbaa !25
  %60 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %8, i64 noundef 12)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  %61 = add nuw i64 %.06467, 1
  %62 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %63 = icmp ult i64 %61, %62
  br i1 %63, label %55, label %._crit_edge, !llvm.loop !30

64:                                               ; preds = %._crit_edge
  %65 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %52)
  %66 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %67 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %52)
  call void @meshopt_encodeFilterExp(ptr noundef nonnull %65, i64 noundef %66, i64 noundef 12, i32 noundef %51, ptr noundef nonnull %67, i32 noundef 1)
  br label %68

68:                                               ; preds = %64, %._crit_edge
  store i32 3, ptr %0, align 8, !tbaa !15
  %69 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 6, ptr %69, align 4, !tbaa !21
  %70 = getelementptr inbounds i8, ptr %0, i64 8
  store i8 0, ptr %70, align 8, !tbaa !22
  %71 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 12, ptr %71, align 8, !tbaa !23
  %72 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 %50, ptr %72, align 8, !tbaa !24
  br label %79

._crit_edge73:                                    ; preds = %.lr.ph72, %.preheader
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) @__const._Z19writeKeyframeStreamRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE25cgltf_animation_path_typeRKSt6vectorI4AttrSaIS8_EERK8Settingsb.format.12, i64 32, i1 false)
  br label %79

.lr.ph72:                                         ; preds = %.preheader, %.lr.ph72
  %.06371 = phi i64 [ %76, %.lr.ph72 ], [ 0, %.preheader ]
  %73 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06371) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %74 = load <4 x float>, ptr %73, align 4, !tbaa !25
  store <4 x float> %74, ptr %9, align 16, !tbaa !25
  %75 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %9, i64 noundef 16)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  %76 = add nuw i64 %.06371, 1
  %77 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %78 = icmp ult i64 %76, %77
  br i1 %78, label %.lr.ph72, label %._crit_edge73, !llvm.loop !31

79:                                               ; preds = %._crit_edge73, %68, %._crit_edge70, %32
  ret void
}

declare void @meshopt_encodeFilterQuat(ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare void @meshopt_encodeFilterExp(ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

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

!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, !10, i64 142}
!6 = !{!"_ZTS8Settings", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 17, !10, i64 18, !10, i64 19, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !10, i64 36, !10, i64 37, !10, i64 38, !10, i64 39, !10, i64 40, !10, i64 41, !10, i64 42, !10, i64 43, !11, i64 44, !11, i64 48, !10, i64 52, !10, i64 53, !10, i64 54, !11, i64 56, !7, i64 60, !10, i64 64, !10, i64 65, !10, i64 66, !10, i64 67, !10, i64 68, !8, i64 72, !8, i64 88, !8, i64 104, !8, i64 120, !7, i64 136, !10, i64 140, !10, i64 141, !10, i64 142, !10, i64 143, !7, i64 144}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !7, i64 24}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS12StreamFormat", !17, i64 0, !18, i64 4, !10, i64 8, !19, i64 16, !20, i64 24}
!17 = !{!"_ZTS10cgltf_type", !8, i64 0}
!18 = !{!"_ZTS20cgltf_component_type", !8, i64 0}
!19 = !{!"long", !8, i64 0}
!20 = !{!"_ZTSN12StreamFormat6FilterE", !8, i64 0}
!21 = !{!16, !18, i64 4}
!22 = !{!16, !10, i64 8}
!23 = !{!16, !19, i64 16}
!24 = !{!16, !20, i64 24}
!25 = !{!11, !11, i64 0}
!26 = !{!8, !8, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !28}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass