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

; 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.cgltf_data = type { i32, ptr, %struct.cgltf_asset, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, ptr, i64, ptr, i64, %struct.cgltf_extras, i64, ptr, ptr, i64, ptr, i64, ptr, i64, ptr, i64, %struct.cgltf_memory_options, %struct.cgltf_file_options }
%struct.cgltf_asset = type { ptr, ptr, ptr, ptr, %struct.cgltf_extras, i64, ptr }
%struct.cgltf_extras = type { i64, i64, ptr }
%struct.cgltf_memory_options = type { ptr, ptr, ptr }
%struct.cgltf_file_options = type { ptr, ptr, ptr }
%struct.cgltf_skin = type { ptr, ptr, i64, ptr, ptr, %struct.cgltf_extras, i64, ptr }
%struct.NodeInfo = type { i32, i8, i8, i32, i32, %"class.std::vector.0", i8, i64, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Animation = type { ptr, float, i32, %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Track, std::allocator<Track>>::_Vector_impl" }
%"struct.std::_Vector_base<Track, std::allocator<Track>>::_Vector_impl" = type { %"struct.std::_Vector_base<Track, std::allocator<Track>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Track, std::allocator<Track>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%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.Track = type { ptr, i32, i8, i8, i64, i32, %"class.std::vector.15", %"class.std::vector.20" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<Attr, std::allocator<Attr>>::_Vector_impl" }
%"struct.std::_Vector_base<Attr, std::allocator<Attr>>::_Vector_impl" = type { %"struct.std::_Vector_base<Attr, std::allocator<Attr>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Attr, std::allocator<Attr>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Mesh = type { i32, %"class.std::vector.30", %"class.std::vector.35", ptr, ptr, %struct.cgltf_extras, i32, %"class.std::vector.40", %"class.std::vector.45", i8, [2 x i64], i64, %"class.std::vector.15", %"class.std::vector.50", %"class.std::vector.55" }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<cgltf_node *, std::allocator<cgltf_node *>>::_Vector_impl" }
%"struct.std::_Vector_base<cgltf_node *, std::allocator<cgltf_node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgltf_node *, std::allocator<cgltf_node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgltf_node *, std::allocator<cgltf_node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<Transform, std::allocator<Transform>>::_Vector_impl" }
%"struct.std::_Vector_base<Transform, std::allocator<Transform>>::_Vector_impl" = type { %"struct.std::_Vector_base<Transform, std::allocator<Transform>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Transform, std::allocator<Transform>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<Stream, std::allocator<Stream>>::_Vector_impl" }
%"struct.std::_Vector_base<Stream, std::allocator<Stream>>::_Vector_impl" = type { %"struct.std::_Vector_base<Stream, std::allocator<Stream>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Stream, std::allocator<Stream>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.45" = type { %"struct.std::_Vector_base.46" }
%"struct.std::_Vector_base.46" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.55" = type { %"struct.std::_Vector_base.56" }
%"struct.std::_Vector_base.56" = type { %"struct.std::_Vector_base<cgltf_material_mapping, std::allocator<cgltf_material_mapping>>::_Vector_impl" }
%"struct.std::_Vector_base<cgltf_material_mapping, std::allocator<cgltf_material_mapping>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgltf_material_mapping, std::allocator<cgltf_material_mapping>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgltf_material_mapping, std::allocator<cgltf_material_mapping>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.cgltf_node = type { ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, i64, i32, i32, i32, i32, [3 x float], [4 x float], [3 x float], [16 x float], %struct.cgltf_extras, i32, %struct.cgltf_mesh_gpu_instancing, i64, ptr }
%struct.cgltf_mesh_gpu_instancing = type { ptr, i64 }

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z15markNeededNodesP10cgltf_dataRSt6vectorI8NodeInfoSaIS2_EERKS1_I4MeshSaIS6_EERKS1_I9AnimationSaISB_EERK8Settings(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(148) %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %71, %5
  %30 = load i64, ptr %11, align 8, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.cgltf_data, ptr %31, i32 0, i32 20
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = icmp ult i64 %30, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %29
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  br label %74

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.cgltf_data, ptr %37, i32 0, i32 19
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %40 = load i64, ptr %11, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.cgltf_skin, ptr %39, i64 %40
  store ptr %41, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %42

42:                                               ; preds = %67, %36
  %43 = load i64, ptr %14, align 8, !tbaa !9
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.cgltf_skin, ptr %44, i32 0, i32 2
  %46 = load i64, ptr %45, align 8, !tbaa !19
  %47 = icmp ult i64 %43, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %42
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  br label %70

49:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.cgltf_skin, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = load i64, ptr %14, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %53, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.cgltf_data, ptr %57, i32 0, i32 25
  %59 = load ptr, ptr %58, align 8, !tbaa !22
  %60 = ptrtoint ptr %56 to i64
  %61 = ptrtoint ptr %59 to i64
  %62 = sub i64 %60, %61
  %63 = sdiv exact i64 %62, 264
  %64 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %63) #2
  store ptr %64, ptr %15, align 8, !tbaa !5
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.NodeInfo, ptr %65, i32 0, i32 1
  store i8 1, ptr %66, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  br label %67

67:                                               ; preds = %49
  %68 = load i64, ptr %14, align 8, !tbaa !9
  %69 = add i64 %68, 1
  store i64 %69, ptr %14, align 8, !tbaa !9
  br label %42, !llvm.loop !31

70:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  br label %71

71:                                               ; preds = %70
  %72 = load i64, ptr %11, align 8, !tbaa !9
  %73 = add i64 %72, 1
  store i64 %73, ptr %11, align 8, !tbaa !9
  br label %29, !llvm.loop !33

74:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #2
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %126, %74
  %76 = load i64, ptr %16, align 8, !tbaa !9
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = call noundef i64 @_ZNKSt6vectorI9AnimationSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #2
  %79 = icmp ult i64 %76, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %75
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #2
  br label %129

81:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #2
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = load i64, ptr %16, align 8, !tbaa !9
  %84 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI9AnimationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %83) #2
  store ptr %84, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %122, %81
  %86 = load i64, ptr %18, align 8, !tbaa !9
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Animation, ptr %87, i32 0, i32 3
  %89 = call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #2
  %90 = icmp ult i64 %86, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %85
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  br label %125

92:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #2
  %93 = load ptr, ptr %17, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.Animation, ptr %93, i32 0, i32 3
  %95 = load i64, ptr %18, align 8, !tbaa !9
  %96 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt6vectorI5TrackSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %95) #2
  store ptr %96, ptr %19, align 8, !tbaa !5
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.Settings, ptr %97, i32 0, i32 12
  %99 = load i8, ptr %98, align 4, !tbaa !34, !range !37, !noundef !38
  %100 = trunc i8 %99 to i1
  br i1 %100, label %106, label %101

101:                                              ; preds = %92
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.Track, ptr %102, i32 0, i32 3
  %104 = load i8, ptr %103, align 1, !tbaa !39, !range !37, !noundef !38
  %105 = trunc i8 %104 to i1
  br i1 %105, label %121, label %106

106:                                              ; preds = %101, %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #2
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.Track, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !51
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.cgltf_data, ptr %111, i32 0, i32 25
  %113 = load ptr, ptr %112, align 8, !tbaa !22
  %114 = ptrtoint ptr %110 to i64
  %115 = ptrtoint ptr %113 to i64
  %116 = sub i64 %114, %115
  %117 = sdiv exact i64 %116, 264
  %118 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %117) #2
  store ptr %118, ptr %20, align 8, !tbaa !5
  %119 = load ptr, ptr %20, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.NodeInfo, ptr %119, i32 0, i32 1
  store i8 1, ptr %120, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #2
  br label %121

121:                                              ; preds = %106, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  br label %122

122:                                              ; preds = %121
  %123 = load i64, ptr %18, align 8, !tbaa !9
  %124 = add i64 %123, 1
  store i64 %124, ptr %18, align 8, !tbaa !9
  br label %85, !llvm.loop !52

125:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #2
  br label %126

126:                                              ; preds = %125
  %127 = load i64, ptr %16, align 8, !tbaa !9
  %128 = add i64 %127, 1
  store i64 %128, ptr %16, align 8, !tbaa !9
  br label %75, !llvm.loop !53

129:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #2
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %168, %129
  %131 = load i64, ptr %21, align 8, !tbaa !9
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = call noundef i64 @_ZNKSt6vectorI4MeshSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #2
  %134 = icmp ult i64 %131, %133
  br i1 %134, label %136, label %135

135:                                              ; preds = %130
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #2
  br label %171

136:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #2
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load i64, ptr %21, align 8, !tbaa !9
  %139 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorI4MeshSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %138) #2
  store ptr %139, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #2
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %164, %136
  %141 = load i64, ptr %23, align 8, !tbaa !9
  %142 = load ptr, ptr %22, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.Mesh, ptr %142, i32 0, i32 1
  %144 = call noundef i64 @_ZNKSt6vectorIP10cgltf_nodeSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #2
  %145 = icmp ult i64 %141, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %140
  store i32 17, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #2
  br label %167

147:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #2
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = load ptr, ptr %22, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.Mesh, ptr %149, i32 0, i32 1
  %151 = load i64, ptr %23, align 8, !tbaa !9
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP10cgltf_nodeSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %151) #2
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.cgltf_data, ptr %154, i32 0, i32 25
  %156 = load ptr, ptr %155, align 8, !tbaa !22
  %157 = ptrtoint ptr %153 to i64
  %158 = ptrtoint ptr %156 to i64
  %159 = sub i64 %157, %158
  %160 = sdiv exact i64 %159, 264
  %161 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef %160) #2
  store ptr %161, ptr %24, align 8, !tbaa !5
  %162 = load ptr, ptr %24, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.NodeInfo, ptr %162, i32 0, i32 1
  store i8 1, ptr %163, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #2
  br label %164

164:                                              ; preds = %147
  %165 = load i64, ptr %23, align 8, !tbaa !9
  %166 = add i64 %165, 1
  store i64 %166, ptr %23, align 8, !tbaa !9
  br label %140, !llvm.loop !54

167:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #2
  br label %168

168:                                              ; preds = %167
  %169 = load i64, ptr %21, align 8, !tbaa !9
  %170 = add i64 %169, 1
  store i64 %170, ptr %21, align 8, !tbaa !9
  br label %130, !llvm.loop !55

171:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #2
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %200, %171
  %173 = load i64, ptr %25, align 8, !tbaa !9
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.cgltf_data, ptr %174, i32 0, i32 26
  %176 = load i64, ptr %175, align 8, !tbaa !56
  %177 = icmp ult i64 %173, %176
  br i1 %177, label %179, label %178

178:                                              ; preds = %172
  store i32 20, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #2
  br label %203

179:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #2
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.cgltf_data, ptr %180, i32 0, i32 25
  %182 = load ptr, ptr %181, align 8, !tbaa !22
  %183 = load i64, ptr %25, align 8, !tbaa !9
  %184 = getelementptr inbounds %struct.cgltf_node, ptr %182, i64 %183
  store ptr %184, ptr %26, align 8, !tbaa !5
  %185 = load ptr, ptr %26, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.cgltf_node, ptr %185, i32 0, i32 7
  %187 = load ptr, ptr %186, align 8, !tbaa !57
  %188 = icmp ne ptr %187, null
  br i1 %188, label %194, label %189

189:                                              ; preds = %179
  %190 = load ptr, ptr %26, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.cgltf_node, ptr %190, i32 0, i32 6
  %192 = load ptr, ptr %191, align 8, !tbaa !60
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %199

194:                                              ; preds = %189, %179
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = load i64, ptr %25, align 8, !tbaa !9
  %197 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef %196) #2
  %198 = getelementptr inbounds %struct.NodeInfo, ptr %197, i32 0, i32 1
  store i8 1, ptr %198, align 4, !tbaa !23
  br label %199

199:                                              ; preds = %194, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #2
  br label %200

200:                                              ; preds = %199
  %201 = load i64, ptr %25, align 8, !tbaa !9
  %202 = add i64 %201, 1
  store i64 %202, ptr %25, align 8, !tbaa !9
  br label %172, !llvm.loop !61

203:                                              ; preds = %178
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.Settings, ptr %204, i32 0, i32 13
  %206 = load i8, ptr %205, align 1, !tbaa !62, !range !37, !noundef !38
  %207 = trunc i8 %206 to i1
  br i1 %207, label %208, label %242

208:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #2
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %209

209:                                              ; preds = %238, %208
  %210 = load i64, ptr %27, align 8, !tbaa !9
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.cgltf_data, ptr %211, i32 0, i32 26
  %213 = load i64, ptr %212, align 8, !tbaa !56
  %214 = icmp ult i64 %210, %213
  br i1 %214, label %216, label %215

215:                                              ; preds = %209
  store i32 23, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #2
  br label %241

216:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #2
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.cgltf_data, ptr %217, i32 0, i32 25
  %219 = load ptr, ptr %218, align 8, !tbaa !22
  %220 = load i64, ptr %27, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.cgltf_node, ptr %219, i64 %220
  store ptr %221, ptr %28, align 8, !tbaa !5
  %222 = load ptr, ptr %28, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.cgltf_node, ptr %222, i32 0, i32 0
  %224 = load ptr, ptr %223, align 8, !tbaa !63
  %225 = icmp ne ptr %224, null
  br i1 %225, label %226, label %237

226:                                              ; preds = %216
  %227 = load ptr, ptr %28, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.cgltf_node, ptr %227, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !63
  %230 = load i8, ptr %229, align 1, !tbaa !64
  %231 = icmp ne i8 %230, 0
  br i1 %231, label %232, label %237

232:                                              ; preds = %226
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = load i64, ptr %27, align 8, !tbaa !9
  %235 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %233, i64 noundef %234) #2
  %236 = getelementptr inbounds %struct.NodeInfo, ptr %235, i32 0, i32 1
  store i8 1, ptr %236, align 4, !tbaa !23
  br label %237

237:                                              ; preds = %232, %226, %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #2
  br label %238

238:                                              ; preds = %237
  %239 = load i64, ptr %27, align 8, !tbaa !9
  %240 = add i64 %239, 1
  store i64 %240, ptr %27, align 8, !tbaa !9
  br label %209, !llvm.loop !65

241:                                              ; preds = %215
  br label %242

242:                                              ; preds = %241, %203
  ret void
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 224}
!12 = !{!"_ZTS10cgltf_data", !13, i64 0, !6, i64 8, !14, i64 16, !6, i64 88, !10, i64 96, !6, i64 104, !10, i64 112, !6, i64 120, !10, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !10, i64 160, !6, i64 168, !10, i64 176, !6, i64 184, !10, i64 192, !6, i64 200, !10, i64 208, !6, i64 216, !10, i64 224, !6, i64 232, !10, i64 240, !6, i64 248, !10, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !10, i64 288, !6, i64 296, !6, i64 304, !10, i64 312, !6, i64 320, !10, i64 328, !15, i64 336, !10, i64 360, !6, i64 368, !6, i64 376, !10, i64 384, !6, i64 392, !10, i64 400, !6, i64 408, !10, i64 416, !6, i64 424, !10, i64 432, !16, i64 440, !17, i64 464}
!13 = !{!"_ZTS15cgltf_file_type", !7, i64 0}
!14 = !{!"_ZTS11cgltf_asset", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !10, i64 56, !6, i64 64}
!15 = !{!"_ZTS12cgltf_extras", !10, i64 0, !10, i64 8, !6, i64 16}
!16 = !{!"_ZTS20cgltf_memory_options", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTS18cgltf_file_options", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!12, !6, i64 216}
!19 = !{!20, !10, i64 16}
!20 = !{!"_ZTS10cgltf_skin", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !15, i64 40, !10, i64 64, !6, i64 72}
!21 = !{!20, !6, i64 8}
!22 = !{!12, !6, i64 264}
!23 = !{!24, !26, i64 4}
!24 = !{!"_ZTS8NodeInfo", !25, i64 0, !26, i64 4, !26, i64 5, !25, i64 8, !25, i64 12, !27, i64 16, !26, i64 40, !10, i64 48, !6, i64 56}
!25 = !{!"int", !7, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTSSt6vectorImSaImEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseImSaImEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = !{!35, !26, i64 36}
!35 = !{!"_ZTS8Settings", !25, i64 0, !25, i64 4, !25, i64 8, !25, i64 12, !26, i64 16, !26, i64 17, !26, i64 18, !26, i64 19, !25, i64 20, !25, i64 24, !25, i64 28, !25, i64 32, !26, i64 36, !26, i64 37, !26, i64 38, !26, i64 39, !26, i64 40, !26, i64 41, !26, i64 42, !26, i64 43, !36, i64 44, !36, i64 48, !26, i64 52, !26, i64 53, !26, i64 54, !36, i64 56, !25, i64 60, !26, i64 64, !26, i64 65, !26, i64 66, !26, i64 67, !26, i64 68, !7, i64 72, !7, i64 88, !7, i64 104, !7, i64 120, !25, i64 136, !26, i64 140, !26, i64 141, !26, i64 142, !26, i64 143, !25, i64 144}
!36 = !{!"float", !7, i64 0}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!40, !26, i64 13}
!40 = !{!"_ZTS5Track", !6, i64 0, !41, i64 8, !26, i64 12, !26, i64 13, !10, i64 16, !42, i64 24, !43, i64 32, !47, i64 56}
!41 = !{!"_ZTS25cgltf_animation_path_type", !7, i64 0}
!42 = !{!"_ZTS24cgltf_interpolation_type", !7, i64 0}
!43 = !{!"_ZTSSt6vectorIfSaIfEE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!"_ZTSSt6vectorI4AttrSaIS0_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseI4AttrSaIS0_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!40, !6, i64 0}
!52 = distinct !{!52, !32}
!53 = distinct !{!53, !32}
!54 = distinct !{!54, !32}
!55 = distinct !{!55, !32}
!56 = !{!12, !10, i64 272}
!57 = !{!58, !6, i64 56}
!58 = !{!"_ZTS10cgltf_node", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !25, i64 80, !25, i64 84, !25, i64 88, !25, i64 92, !7, i64 96, !7, i64 108, !7, i64 124, !7, i64 136, !15, i64 200, !25, i64 224, !59, i64 232, !10, i64 248, !6, i64 256}
!59 = !{!"_ZTS25cgltf_mesh_gpu_instancing", !6, i64 0, !10, i64 8}
!60 = !{!58, !6, i64 48}
!61 = distinct !{!61, !32}
!62 = !{!35, !26, i64 37}
!63 = !{!58, !6, i64 0}
!64 = !{!7, !7, i64 0}
!65 = distinct !{!65, !32}


; 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.cgltf_skin = type { ptr, ptr, i64, ptr, ptr, %struct.cgltf_extras, i64, ptr }
%struct.cgltf_extras = type { i64, i64, ptr }
%struct.cgltf_node = type { ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, i64, i32, i32, i32, i32, [3 x float], [4 x float], [3 x float], [16 x float], %struct.cgltf_extras, i32, %struct.cgltf_mesh_gpu_instancing, i64, ptr }
%struct.cgltf_mesh_gpu_instancing = type { ptr, i64 }

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z15markNeededNodesP10cgltf_dataRSt6vectorI8NodeInfoSaIS2_EERKS1_I4MeshSaIS6_EERKS1_I9AnimationSaISB_EERK8Settings(ptr nocapture noundef readonly %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr nocapture noundef nonnull readonly align 4 dereferenceable(148) %4) local_unnamed_addr #0 {
  %6 = getelementptr inbounds i8, ptr %0, i64 224
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %.not95 = icmp eq i64 %7, 0
  br i1 %.not95, label %.preheader73, label %.lr.ph77

.lr.ph77:                                         ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 216
  %9 = getelementptr inbounds i8, ptr %0, i64 264
  br label %13

.preheader73:                                     ; preds = %._crit_edge, %5
  %10 = tail call noundef i64 @_ZNKSt6vectorI9AnimationSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #1
  %.not97 = icmp eq i64 %10, 0
  br i1 %.not97, label %.preheader72, label %.lr.ph83

.lr.ph83:                                         ; preds = %.preheader73
  %11 = getelementptr inbounds i8, ptr %4, i64 36
  %12 = getelementptr inbounds i8, ptr %0, i64 264
  br label %39

13:                                               ; preds = %.lr.ph77, %._crit_edge
  %14 = phi i64 [ %7, %.lr.ph77 ], [ %20, %._crit_edge ]
  %.075 = phi i64 [ 0, %.lr.ph77 ], [ %21, %._crit_edge ]
  %15 = load ptr, ptr %8, align 8, !tbaa !16
  %16 = getelementptr inbounds %struct.cgltf_skin, ptr %15, i64 %.075
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load i64, ptr %17, align 8, !tbaa !17
  %.not96 = icmp eq i64 %18, 0
  br i1 %.not96, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %13
  %19 = getelementptr inbounds i8, ptr %16, i64 8
  br label %23

._crit_edge.loopexit:                             ; preds = %23
  %.pre = load i64, ptr %6, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %13
  %20 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %14, %13 ]
  %21 = add nuw i64 %.075, 1
  %22 = icmp ult i64 %21, %20
  br i1 %22, label %13, label %.preheader73, !llvm.loop !19

23:                                               ; preds = %.lr.ph, %23
  %.06274 = phi i64 [ 0, %.lr.ph ], [ %34, %23 ]
  %24 = load ptr, ptr %19, align 8, !tbaa !21
  %25 = getelementptr inbounds ptr, ptr %24, i64 %.06274
  %26 = load ptr, ptr %25, align 8, !tbaa !22
  %27 = load ptr, ptr %9, align 8, !tbaa !23
  %28 = ptrtoint ptr %26 to i64
  %29 = ptrtoint ptr %27 to i64
  %30 = sub i64 %28, %29
  %31 = sdiv exact i64 %30, 264
  %32 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %31) #1
  %33 = getelementptr inbounds i8, ptr %32, i64 4
  store i8 1, ptr %33, align 4, !tbaa !24
  %34 = add nuw i64 %.06274, 1
  %35 = load i64, ptr %17, align 8, !tbaa !17
  %36 = icmp ult i64 %34, %35
  br i1 %36, label %23, label %._crit_edge.loopexit, !llvm.loop !32

.preheader72:                                     ; preds = %._crit_edge81, %.preheader73
  %37 = tail call noundef i64 @_ZNKSt6vectorI4MeshSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %.not99 = icmp eq i64 %37, 0
  br i1 %.not99, label %.preheader71, label %.lr.ph89

.lr.ph89:                                         ; preds = %.preheader72
  %38 = getelementptr inbounds i8, ptr %0, i64 264
  br label %69

39:                                               ; preds = %.lr.ph83, %._crit_edge81
  %.06482 = phi i64 [ 0, %.lr.ph83 ], [ %43, %._crit_edge81 ]
  %40 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI9AnimationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06482) #1
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %42 = tail call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #1
  %.not98 = icmp eq i64 %42, 0
  br i1 %.not98, label %._crit_edge81, label %.lr.ph80

._crit_edge81:                                    ; preds = %62, %39
  %43 = add nuw i64 %.06482, 1
  %44 = tail call noundef i64 @_ZNKSt6vectorI9AnimationSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #1
  %45 = icmp ult i64 %43, %44
  br i1 %45, label %39, label %.preheader72, !llvm.loop !33

.lr.ph80:                                         ; preds = %39, %62
  %.06678 = phi i64 [ %63, %62 ], [ 0, %39 ]
  %46 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt6vectorI5TrackSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %.06678) #1
  %47 = load i8, ptr %11, align 4, !tbaa !34, !range !37, !noundef !38
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %53, label %49

49:                                               ; preds = %.lr.ph80
  %50 = getelementptr inbounds i8, ptr %46, i64 13
  %51 = load i8, ptr %50, align 1, !tbaa !39, !range !37, !noundef !38
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %62, label %53

53:                                               ; preds = %49, %.lr.ph80
  %54 = load ptr, ptr %46, align 8, !tbaa !51
  %55 = load ptr, ptr %12, align 8, !tbaa !23
  %56 = ptrtoint ptr %54 to i64
  %57 = ptrtoint ptr %55 to i64
  %58 = sub i64 %56, %57
  %59 = sdiv exact i64 %58, 264
  %60 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %59) #1
  %61 = getelementptr inbounds i8, ptr %60, i64 4
  store i8 1, ptr %61, align 4, !tbaa !24
  br label %62

62:                                               ; preds = %53, %49
  %63 = add nuw i64 %.06678, 1
  %64 = tail call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #1
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %.lr.ph80, label %._crit_edge81, !llvm.loop !52

.preheader71:                                     ; preds = %._crit_edge87, %.preheader72
  %66 = getelementptr inbounds i8, ptr %0, i64 272
  %67 = load i64, ptr %66, align 8, !tbaa !53
  %.not101 = icmp eq i64 %67, 0
  br i1 %.not101, label %.loopexit, label %.lr.ph91

.lr.ph91:                                         ; preds = %.preheader71
  %68 = getelementptr inbounds i8, ptr %0, i64 264
  br label %92

69:                                               ; preds = %.lr.ph89, %._crit_edge87
  %.06588 = phi i64 [ 0, %.lr.ph89 ], [ %73, %._crit_edge87 ]
  %70 = tail call noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorI4MeshSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.06588) #1
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = tail call noundef i64 @_ZNKSt6vectorIP10cgltf_nodeSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #1
  %.not100 = icmp eq i64 %72, 0
  br i1 %.not100, label %._crit_edge87, label %.lr.ph86

._crit_edge87:                                    ; preds = %.lr.ph86, %69
  %73 = add nuw i64 %.06588, 1
  %74 = tail call noundef i64 @_ZNKSt6vectorI4MeshSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %75 = icmp ult i64 %73, %74
  br i1 %75, label %69, label %.preheader71, !llvm.loop !54

.lr.ph86:                                         ; preds = %69, %.lr.ph86
  %.06384 = phi i64 [ %85, %.lr.ph86 ], [ 0, %69 ]
  %76 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP10cgltf_nodeSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %.06384) #1
  %77 = load ptr, ptr %76, align 8, !tbaa !22
  %78 = load ptr, ptr %38, align 8, !tbaa !23
  %79 = ptrtoint ptr %77 to i64
  %80 = ptrtoint ptr %78 to i64
  %81 = sub i64 %79, %80
  %82 = sdiv exact i64 %81, 264
  %83 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %82) #1
  %84 = getelementptr inbounds i8, ptr %83, i64 4
  store i8 1, ptr %84, align 4, !tbaa !24
  %85 = add nuw i64 %.06384, 1
  %86 = tail call noundef i64 @_ZNKSt6vectorIP10cgltf_nodeSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #1
  %87 = icmp ult i64 %85, %86
  br i1 %87, label %.lr.ph86, label %._crit_edge87, !llvm.loop !55

._crit_edge92:                                    ; preds = %104
  %88 = getelementptr inbounds i8, ptr %4, i64 37
  %89 = load i8, ptr %88, align 1, !tbaa !56, !range !37, !noundef !38
  %90 = trunc nuw i8 %89 to i1
  %.not102 = icmp ne i64 %105, 0
  %or.cond.not = and i1 %.not102, %90
  br i1 %or.cond.not, label %.lr.ph94, label %.loopexit

.lr.ph94:                                         ; preds = %._crit_edge92
  %91 = getelementptr inbounds i8, ptr %0, i64 264
  br label %108

92:                                               ; preds = %.lr.ph91, %104
  %93 = phi i64 [ %67, %.lr.ph91 ], [ %105, %104 ]
  %.06190 = phi i64 [ 0, %.lr.ph91 ], [ %106, %104 ]
  %94 = load ptr, ptr %68, align 8, !tbaa !23
  %95 = getelementptr inbounds %struct.cgltf_node, ptr %94, i64 %.06190
  %96 = getelementptr inbounds i8, ptr %95, i64 56
  %97 = load ptr, ptr %96, align 8, !tbaa !57
  %.not69 = icmp eq ptr %97, null
  br i1 %.not69, label %98, label %101

98:                                               ; preds = %92
  %99 = getelementptr inbounds i8, ptr %95, i64 48
  %100 = load ptr, ptr %99, align 8, !tbaa !60
  %.not70 = icmp eq ptr %100, null
  br i1 %.not70, label %104, label %101

101:                                              ; preds = %98, %92
  %102 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06190) #1
  %103 = getelementptr inbounds i8, ptr %102, i64 4
  store i8 1, ptr %103, align 4, !tbaa !24
  %.pre103 = load i64, ptr %66, align 8, !tbaa !53
  br label %104

104:                                              ; preds = %101, %98
  %105 = phi i64 [ %.pre103, %101 ], [ %93, %98 ]
  %106 = add nuw i64 %.06190, 1
  %107 = icmp ult i64 %106, %105
  br i1 %107, label %92, label %._crit_edge92, !llvm.loop !61

108:                                              ; preds = %.lr.ph94, %118
  %109 = phi i64 [ %105, %.lr.ph94 ], [ %119, %118 ]
  %.06093 = phi i64 [ 0, %.lr.ph94 ], [ %120, %118 ]
  %110 = load ptr, ptr %91, align 8, !tbaa !23
  %111 = getelementptr inbounds %struct.cgltf_node, ptr %110, i64 %.06093
  %112 = load ptr, ptr %111, align 8, !tbaa !62
  %.not = icmp eq ptr %112, null
  br i1 %.not, label %118, label %113

113:                                              ; preds = %108
  %114 = load i8, ptr %112, align 1, !tbaa !63
  %.not68 = icmp eq i8 %114, 0
  br i1 %.not68, label %118, label %115

115:                                              ; preds = %113
  %116 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06093) #1
  %117 = getelementptr inbounds i8, ptr %116, i64 4
  store i8 1, ptr %117, align 4, !tbaa !24
  %.pre104 = load i64, ptr %66, align 8, !tbaa !53
  br label %118

118:                                              ; preds = %115, %113, %108
  %119 = phi i64 [ %.pre104, %115 ], [ %109, %113 ], [ %109, %108 ]
  %120 = add nuw i64 %.06093, 1
  %121 = icmp ult i64 %120, %119
  br i1 %121, label %108, label %.loopexit, !llvm.loop !64

.loopexit:                                        ; preds = %118, %.preheader71, %._crit_edge92
  ret void
}

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

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

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

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

attributes #0 = { 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 = { 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, !13, i64 224}
!6 = !{!"_ZTS10cgltf_data", !7, i64 0, !10, i64 8, !11, i64 16, !10, i64 88, !13, i64 96, !10, i64 104, !13, i64 112, !10, i64 120, !13, i64 128, !10, i64 136, !13, i64 144, !10, i64 152, !13, i64 160, !10, i64 168, !13, i64 176, !10, i64 184, !13, i64 192, !10, i64 200, !13, i64 208, !10, i64 216, !13, i64 224, !10, i64 232, !13, i64 240, !10, i64 248, !13, i64 256, !10, i64 264, !13, i64 272, !10, i64 280, !13, i64 288, !10, i64 296, !10, i64 304, !13, i64 312, !10, i64 320, !13, i64 328, !12, i64 336, !13, i64 360, !10, i64 368, !10, i64 376, !13, i64 384, !10, i64 392, !13, i64 400, !10, i64 408, !13, i64 416, !10, i64 424, !13, i64 432, !14, i64 440, !15, i64 464}
!7 = !{!"_ZTS15cgltf_file_type", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS11cgltf_asset", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !13, i64 56, !10, i64 64}
!12 = !{!"_ZTS12cgltf_extras", !13, i64 0, !13, i64 8, !10, i64 16}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTS20cgltf_memory_options", !10, i64 0, !10, i64 8, !10, i64 16}
!15 = !{!"_ZTS18cgltf_file_options", !10, i64 0, !10, i64 8, !10, i64 16}
!16 = !{!6, !10, i64 216}
!17 = !{!18, !13, i64 16}
!18 = !{!"_ZTS10cgltf_skin", !10, i64 0, !10, i64 8, !13, i64 16, !10, i64 24, !10, i64 32, !12, i64 40, !13, i64 64, !10, i64 72}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!18, !10, i64 8}
!22 = !{!10, !10, i64 0}
!23 = !{!6, !10, i64 264}
!24 = !{!25, !27, i64 4}
!25 = !{!"_ZTS8NodeInfo", !26, i64 0, !27, i64 4, !27, i64 5, !26, i64 8, !26, i64 12, !28, i64 16, !27, i64 40, !13, i64 48, !10, i64 56}
!26 = !{!"int", !8, i64 0}
!27 = !{!"bool", !8, i64 0}
!28 = !{!"_ZTSSt6vectorImSaImEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseImSaImEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!32 = distinct !{!32, !20}
!33 = distinct !{!33, !20}
!34 = !{!35, !27, i64 36}
!35 = !{!"_ZTS8Settings", !26, i64 0, !26, i64 4, !26, i64 8, !26, i64 12, !27, i64 16, !27, i64 17, !27, i64 18, !27, i64 19, !26, i64 20, !26, i64 24, !26, i64 28, !26, i64 32, !27, i64 36, !27, i64 37, !27, i64 38, !27, i64 39, !27, i64 40, !27, i64 41, !27, i64 42, !27, i64 43, !36, i64 44, !36, i64 48, !27, i64 52, !27, i64 53, !27, i64 54, !36, i64 56, !26, i64 60, !27, i64 64, !27, i64 65, !27, i64 66, !27, i64 67, !27, i64 68, !8, i64 72, !8, i64 88, !8, i64 104, !8, i64 120, !26, i64 136, !27, i64 140, !27, i64 141, !27, i64 142, !27, i64 143, !26, i64 144}
!36 = !{!"float", !8, i64 0}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!40, !27, i64 13}
!40 = !{!"_ZTS5Track", !10, i64 0, !41, i64 8, !27, i64 12, !27, i64 13, !13, i64 16, !42, i64 24, !43, i64 32, !47, i64 56}
!41 = !{!"_ZTS25cgltf_animation_path_type", !8, i64 0}
!42 = !{!"_ZTS24cgltf_interpolation_type", !8, i64 0}
!43 = !{!"_ZTSSt6vectorIfSaIfEE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!47 = !{!"_ZTSSt6vectorI4AttrSaIS0_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseI4AttrSaIS0_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!51 = !{!40, !10, i64 0}
!52 = distinct !{!52, !20}
!53 = !{!6, !13, i64 272}
!54 = distinct !{!54, !20}
!55 = distinct !{!55, !20}
!56 = !{!35, !27, i64 37}
!57 = !{!58, !10, i64 56}
!58 = !{!"_ZTS10cgltf_node", !10, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !13, i64 72, !26, i64 80, !26, i64 84, !26, i64 88, !26, i64 92, !8, i64 96, !8, i64 108, !8, i64 124, !8, i64 136, !12, i64 200, !26, i64 224, !59, i64 232, !13, i64 248, !10, i64 256}
!59 = !{!"_ZTS25cgltf_mesh_gpu_instancing", !10, i64 0, !13, i64 8}
!60 = !{!58, !10, i64 48}
!61 = distinct !{!61, !20}
!62 = !{!58, !10, i64 0}
!63 = !{!8, !8, i64 0}
!64 = distinct !{!64, !20}


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