; 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.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.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.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.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.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
define dso_local void @_Z12markAnimatedP10cgltf_dataRSt6vectorI8NodeInfoSaIS2_EERKS1_I9AnimationSaIS6_EE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %16

16:                                               ; preds = %68, %3
  %17 = load i64, ptr %7, align 8, !tbaa !9
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = call noundef i64 @_ZNKSt6vectorI9AnimationSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #2
  %20 = icmp ult i64 %17, %19
  br i1 %20, label %22, label %21

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

22:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load i64, ptr %7, align 8, !tbaa !9
  %25 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI9AnimationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %24) #2
  store ptr %25, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %26

26:                                               ; preds = %64, %22
  %27 = load i64, ptr %10, align 8, !tbaa !9
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.Animation, ptr %28, i32 0, i32 3
  %30 = call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #2
  %31 = icmp ult i64 %27, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %26
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  br label %67

33:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.Animation, ptr %34, i32 0, i32 3
  %36 = load i64, ptr %10, align 8, !tbaa !9
  %37 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt6vectorI5TrackSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %36) #2
  store ptr %37, ptr %11, align 8, !tbaa !5
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.Track, ptr %38, i32 0, i32 3
  %40 = load i8, ptr %39, align 1, !tbaa !11, !range !24, !noundef !25
  %41 = trunc i8 %40 to i1
  br i1 %41, label %63, label %42

42:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.Track, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !26
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.cgltf_data, ptr %47, i32 0, i32 25
  %49 = load ptr, ptr %48, align 8, !tbaa !27
  %50 = ptrtoint ptr %46 to i64
  %51 = ptrtoint ptr %49 to i64
  %52 = sub i64 %50, %51
  %53 = sdiv exact i64 %52, 264
  %54 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %53) #2
  store ptr %54, ptr %12, align 8, !tbaa !5
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Track, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 8, !tbaa !34
  %58 = shl i32 1, %57
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.NodeInfo, ptr %59, i32 0, i32 3
  %61 = load i32, ptr %60, align 8, !tbaa !35
  %62 = or i32 %61, %58
  store i32 %62, ptr %60, align 8, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  br label %63

63:                                               ; preds = %42, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  br label %64

64:                                               ; preds = %63
  %65 = load i64, ptr %10, align 8, !tbaa !9
  %66 = add i64 %65, 1
  store i64 %66, ptr %10, align 8, !tbaa !9
  br label %26, !llvm.loop !42

67:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  br label %68

68:                                               ; preds = %67
  %69 = load i64, ptr %7, align 8, !tbaa !9
  %70 = add i64 %69, 1
  store i64 %70, ptr %7, align 8, !tbaa !9
  br label %16, !llvm.loop !44

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

72:                                               ; preds = %120, %71
  %73 = load i64, ptr %13, align 8, !tbaa !9
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.cgltf_data, ptr %74, i32 0, i32 26
  %76 = load i64, ptr %75, align 8, !tbaa !45
  %77 = icmp ult i64 %73, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %72
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  br label %123

79:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = load i64, ptr %13, align 8, !tbaa !9
  %82 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %81) #2
  store ptr %82, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.cgltf_data, ptr %83, i32 0, i32 25
  %85 = load ptr, ptr %84, align 8, !tbaa !27
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.cgltf_node, ptr %85, i64 %86
  store ptr %87, ptr %15, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %115, %79
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %92, label %91

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

92:                                               ; preds = %88
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.cgltf_data, ptr %95, i32 0, i32 25
  %97 = load ptr, ptr %96, align 8, !tbaa !27
  %98 = ptrtoint ptr %94 to i64
  %99 = ptrtoint ptr %97 to i64
  %100 = sub i64 %98, %99
  %101 = sdiv exact i64 %100, 264
  %102 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %101) #2
  %103 = getelementptr inbounds %struct.NodeInfo, ptr %102, i32 0, i32 3
  %104 = load i32, ptr %103, align 8, !tbaa !35
  %105 = icmp ne i32 %104, 0
  %106 = zext i1 %105 to i32
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.NodeInfo, ptr %107, i32 0, i32 2
  %109 = load i8, ptr %108, align 1, !tbaa !46, !range !24, !noundef !25
  %110 = trunc i8 %109 to i1
  %111 = zext i1 %110 to i32
  %112 = or i32 %111, %106
  %113 = icmp ne i32 %112, 0
  %114 = zext i1 %113 to i8
  store i8 %114, ptr %108, align 1, !tbaa !46
  br label %115

115:                                              ; preds = %92
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.cgltf_node, ptr %116, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !47
  store ptr %118, ptr %15, align 8, !tbaa !5
  br label %88, !llvm.loop !50

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

120:                                              ; preds = %119
  %121 = load i64, ptr %13, align 8, !tbaa !9
  %122 = add i64 %121, 1
  store i64 %122, ptr %13, align 8, !tbaa !9
  br label %72, !llvm.loop !51

123:                                              ; preds = %78
  ret void
}

; 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

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, !14, i64 13}
!12 = !{!"_ZTS5Track", !6, i64 0, !13, i64 8, !14, i64 12, !14, i64 13, !10, i64 16, !15, i64 24, !16, i64 32, !20, i64 56}
!13 = !{!"_ZTS25cgltf_animation_path_type", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS24cgltf_interpolation_type", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIfSaIfEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorI4AttrSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseI4AttrSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!12, !6, i64 0}
!27 = !{!28, !6, i64 264}
!28 = !{!"_ZTS10cgltf_data", !29, i64 0, !6, i64 8, !30, 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, !31, 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, !32, i64 440, !33, i64 464}
!29 = !{!"_ZTS15cgltf_file_type", !7, i64 0}
!30 = !{!"_ZTS11cgltf_asset", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !31, i64 32, !10, i64 56, !6, i64 64}
!31 = !{!"_ZTS12cgltf_extras", !10, i64 0, !10, i64 8, !6, i64 16}
!32 = !{!"_ZTS20cgltf_memory_options", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTS18cgltf_file_options", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!12, !13, i64 8}
!35 = !{!36, !37, i64 8}
!36 = !{!"_ZTS8NodeInfo", !37, i64 0, !14, i64 4, !14, i64 5, !37, i64 8, !37, i64 12, !38, i64 16, !14, i64 40, !10, i64 48, !6, i64 56}
!37 = !{!"int", !7, i64 0}
!38 = !{!"_ZTSSt6vectorImSaImEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseImSaImEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}
!45 = !{!28, !10, i64 272}
!46 = !{!36, !14, i64 5}
!47 = !{!48, !6, i64 8}
!48 = !{!"_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, !37, i64 80, !37, i64 84, !37, i64 88, !37, i64 92, !7, i64 96, !7, i64 108, !7, i64 124, !7, i64 136, !31, i64 200, !37, i64 224, !49, i64 232, !10, i64 248, !6, i64 256}
!49 = !{!"_ZTS25cgltf_mesh_gpu_instancing", !6, i64 0, !10, i64 8}
!50 = distinct !{!50, !43}
!51 = distinct !{!51, !43}


; 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_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_extras = type { i64, 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
define dso_local void @_Z12markAnimatedP10cgltf_dataRSt6vectorI8NodeInfoSaIS2_EERKS1_I9AnimationSaIS6_EE(ptr nocapture noundef readonly %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 {
  %4 = tail call noundef i64 @_ZNKSt6vectorI9AnimationSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %.not43 = icmp eq i64 %4, 0
  br i1 %.not43, label %.preheader, label %.lr.ph34

.lr.ph34:                                         ; preds = %3
  %5 = getelementptr inbounds i8, ptr %0, i64 264
  br label %9

.preheader:                                       ; preds = %._crit_edge, %3
  %6 = getelementptr inbounds i8, ptr %0, i64 272
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %.not45 = icmp eq i64 %7, 0
  br i1 %.not45, label %._crit_edge42, label %.lr.ph41

.lr.ph41:                                         ; preds = %.preheader
  %8 = getelementptr inbounds i8, ptr %0, i64 264
  br label %38

9:                                                ; preds = %.lr.ph34, %._crit_edge
  %.02832 = phi i64 [ 0, %.lr.ph34 ], [ %13, %._crit_edge ]
  %10 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI9AnimationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.02832) #1
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  %12 = tail call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #1
  %.not44 = icmp eq i64 %12, 0
  br i1 %.not44, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %34, %9
  %13 = add nuw i64 %.02832, 1
  %14 = tail call noundef i64 @_ZNKSt6vectorI9AnimationSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %15 = icmp ult i64 %13, %14
  br i1 %15, label %9, label %.preheader, !llvm.loop !16

.lr.ph:                                           ; preds = %9, %34
  %.03031 = phi i64 [ %35, %34 ], [ 0, %9 ]
  %16 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt6vectorI5TrackSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.03031) #1
  %17 = getelementptr inbounds i8, ptr %16, i64 13
  %18 = load i8, ptr %17, align 1, !tbaa !18, !range !31, !noundef !32
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %34, label %20

20:                                               ; preds = %.lr.ph
  %21 = load ptr, ptr %16, align 8, !tbaa !33
  %22 = load ptr, ptr %5, align 8, !tbaa !34
  %23 = ptrtoint ptr %21 to i64
  %24 = ptrtoint ptr %22 to i64
  %25 = sub i64 %23, %24
  %26 = sdiv exact i64 %25, 264
  %27 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %26) #1
  %28 = getelementptr inbounds i8, ptr %16, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !35
  %30 = shl nuw i32 1, %29
  %31 = getelementptr inbounds i8, ptr %27, i64 8
  %32 = load i32, ptr %31, align 8, !tbaa !36
  %33 = or i32 %32, %30
  store i32 %33, ptr %31, align 8, !tbaa !36
  br label %34

34:                                               ; preds = %20, %.lr.ph
  %35 = add nuw i64 %.03031, 1
  %36 = tail call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #1
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !43

._crit_edge42:                                    ; preds = %._crit_edge39, %.preheader
  ret void

38:                                               ; preds = %.lr.ph41, %._crit_edge39
  %.02940 = phi i64 [ 0, %.lr.ph41 ], [ %43, %._crit_edge39 ]
  %39 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.02940) #1
  %40 = load ptr, ptr %8, align 8, !tbaa !34
  %.not35 = icmp eq ptr %40, null
  br i1 %.not35, label %._crit_edge39, label %.lr.ph38

.lr.ph38:                                         ; preds = %38
  %41 = getelementptr inbounds %struct.cgltf_node, ptr %40, i64 %.02940
  %42 = getelementptr inbounds i8, ptr %39, i64 5
  br label %46

._crit_edge39:                                    ; preds = %46, %38
  %43 = add nuw i64 %.02940, 1
  %44 = load i64, ptr %6, align 8, !tbaa !5
  %45 = icmp ult i64 %43, %44
  br i1 %45, label %38, label %._crit_edge42, !llvm.loop !44

46:                                               ; preds = %.lr.ph38, %46
  %.036 = phi ptr [ %41, %.lr.ph38 ], [ %60, %46 ]
  %47 = load ptr, ptr %8, align 8, !tbaa !34
  %48 = ptrtoint ptr %.036 to i64
  %49 = ptrtoint ptr %47 to i64
  %50 = sub i64 %48, %49
  %51 = sdiv exact i64 %50, 264
  %52 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %51) #1
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = load i32, ptr %53, align 8, !tbaa !36
  %55 = icmp ne i32 %54, 0
  %56 = load i8, ptr %42, align 1, !tbaa !45, !range !31, !noundef !32
  %57 = zext i1 %55 to i8
  %58 = or i8 %56, %57
  store i8 %58, ptr %42, align 1, !tbaa !45
  %59 = getelementptr inbounds i8, ptr %.036, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !46
  %.not = icmp eq ptr %60, null
  br i1 %.not, label %._crit_edge39, label %46, !llvm.loop !49
}

; 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

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 272}
!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 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !21, i64 13}
!19 = !{!"_ZTS5Track", !10, i64 0, !20, i64 8, !21, i64 12, !21, i64 13, !13, i64 16, !22, i64 24, !23, i64 32, !27, i64 56}
!20 = !{!"_ZTS25cgltf_animation_path_type", !8, i64 0}
!21 = !{!"bool", !8, i64 0}
!22 = !{!"_ZTS24cgltf_interpolation_type", !8, i64 0}
!23 = !{!"_ZTSSt6vectorIfSaIfEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!27 = !{!"_ZTSSt6vectorI4AttrSaIS0_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseI4AttrSaIS0_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!19, !10, i64 0}
!34 = !{!6, !10, i64 264}
!35 = !{!19, !20, i64 8}
!36 = !{!37, !38, i64 8}
!37 = !{!"_ZTS8NodeInfo", !38, i64 0, !21, i64 4, !21, i64 5, !38, i64 8, !38, i64 12, !39, i64 16, !21, i64 40, !13, i64 48, !10, i64 56}
!38 = !{!"int", !8, i64 0}
!39 = !{!"_ZTSSt6vectorImSaImEE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseImSaImEE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!43 = distinct !{!43, !17}
!44 = distinct !{!44, !17}
!45 = !{!37, !21, i64 5}
!46 = !{!47, !10, i64 8}
!47 = !{!"_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, !38, i64 80, !38, i64 84, !38, i64 88, !38, i64 92, !8, i64 96, !8, i64 108, !8, i64 124, !8, i64 136, !12, i64 200, !38, i64 224, !48, i64 232, !13, i64 248, !10, i64 256}
!48 = !{!"_ZTS25cgltf_mesh_gpu_instancing", !10, i64 0, !13, i64 8}
!49 = distinct !{!49, !17}


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