; LLVM IR from zeux/meshoptimizer :: gltf/animation.ll (Z16processAnimationR9AnimationRK8Settings)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.Animation = type { ptr, float, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0", %"class.std::vector.5" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%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.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 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@__PRETTY_FUNCTION__._Z16processAnimationR9AnimationRK8Settings = external hidden unnamed_addr constant [53 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16processAnimationR9AnimationRK8Settings(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 4 dereferenceable(148) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.5", align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::vector.5", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store float 0x47EFFFFFE0000000, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store float 0.000000e+00, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %20

20:                                               ; preds = %50, %2
  %21 = load i64, ptr %7, align 8, !tbaa !11
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.Animation, ptr %22, i32 0, i32 3
  %24 = call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %25 = icmp ult i64 %21, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %53

27:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.Animation, ptr %28, i32 0, i32 3
  %30 = load i64, ptr %7, align 8, !tbaa !11
  %31 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorI5TrackSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %30) #7
  store ptr %31, ptr %8, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.Track, ptr %32, i32 0, i32 6
  %34 = call noundef zeroext i1 @_ZNKSt6vectorIfSaIfEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
  %35 = xor i1 %34, true
  br i1 %35, label %36, label %37

36:                                               ; preds = %27
  br label %39

37:                                               ; preds = %27
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 284, ptr noundef @__PRETTY_FUNCTION__._Z16processAnimationR9AnimationRK8Settings) #8
  unreachable

38:                                               ; No predecessors!
  br label %39

39:                                               ; preds = %38, %36
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.Track, ptr %40, i32 0, i32 6
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #7
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %42)
  %44 = load float, ptr %43, align 4, !tbaa !9
  store float %44, ptr %5, align 4, !tbaa !9
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.Track, ptr %45, i32 0, i32 6
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %47)
  %49 = load float, ptr %48, align 4, !tbaa !9
  store float %49, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %50

50:                                               ; preds = %39
  %51 = load i64, ptr %7, align 8, !tbaa !11
  %52 = add i64 %51, 1
  store i64 %52, ptr %7, align 8, !tbaa !11
  br label %20, !llvm.loop !13

53:                                               ; preds = %26
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %55 = load float, ptr %54, align 4, !tbaa !9
  store float %55, ptr %5, align 4, !tbaa !9
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.Animation, ptr %56, i32 0, i32 1
  store float %55, ptr %57, align 8, !tbaa !15
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.Settings, ptr %58, i32 0, i32 11
  %60 = load i32, ptr %59, align 4, !tbaa !22
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %76

62:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %63 = load float, ptr %6, align 4, !tbaa !9
  %64 = load float, ptr %5, align 4, !tbaa !9
  %65 = fsub float %63, %64
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.Settings, ptr %66, i32 0, i32 11
  %68 = load i32, ptr %67, align 4, !tbaa !22
  %69 = sitofp i32 %68 to float
  %70 = call float @llvm.fmuladd.f32(float %65, float %69, float 0x3FE99999A0000000)
  %71 = fptosi float %70 to i32
  %72 = add nsw i32 1, %71
  store i32 %72, ptr %9, align 4, !tbaa !25
  %73 = load i32, ptr %9, align 4, !tbaa !25
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Animation, ptr %74, i32 0, i32 2
  store i32 %73, ptr %75, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %76

76:                                               ; preds = %62, %53
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  call void @_ZNSt6vectorI4AttrSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %77

77:                                               ; preds = %258, %76
  %78 = load i64, ptr %11, align 8, !tbaa !11
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.Animation, ptr %79, i32 0, i32 3
  %81 = call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #7
  %82 = icmp ult i64 %78, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %77
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %263

84:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.Animation, ptr %85, i32 0, i32 3
  %87 = load i64, ptr %11, align 8, !tbaa !11
  %88 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorI5TrackSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %87) #7
  store ptr %88, ptr %13, align 8, !tbaa !5
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Settings, ptr %89, i32 0, i32 11
  %91 = load i32, ptr %90, align 4, !tbaa !22
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %138

93:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @_ZNSt6vectorI4AttrSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.Track, ptr %94, i32 0, i32 6
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Track, ptr %96, i32 0, i32 7
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Track, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !27
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.Track, ptr %101, i32 0, i32 5
  %103 = load i32, ptr %102, align 8, !tbaa !39
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.Track, ptr %104, i32 0, i32 4
  %106 = load i64, ptr %105, align 8, !tbaa !40
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.Animation, ptr %107, i32 0, i32 2
  %109 = load i32, ptr %108, align 4, !tbaa !26
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.Animation, ptr %110, i32 0, i32 1
  %112 = load float, ptr %111, align 8, !tbaa !15
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.Settings, ptr %113, i32 0, i32 11
  %115 = load i32, ptr %114, align 4, !tbaa !22
  invoke void @_ZL17resampleKeyframesRSt6vectorI4AttrSaIS0_EERKS_IfSaIfEERKS2_25cgltf_animation_path_type24cgltf_interpolation_typemifi(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 8 dereferenceable(24) %97, i32 noundef %100, i32 noundef %103, i64 noundef %106, i32 noundef %109, float noundef %112, i32 noundef %115)
          to label %116 unwind label %134

116:                                              ; preds = %93
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.Track, ptr %117, i32 0, i32 6
  call void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #7
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.Track, ptr %119, i32 0, i32 7
  call void @_ZNSt6vectorI4AttrSaIS0_EE4swapERS2_(ptr noundef nonnull align 8 dereferenceable(24) %120, ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.Track, ptr %121, i32 0, i32 5
  %123 = load i32, ptr %122, align 8, !tbaa !39
  %124 = icmp eq i32 %123, 2
  br i1 %124, label %125, label %126

125:                                              ; preds = %116
  br label %130

126:                                              ; preds = %116
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.Track, ptr %127, i32 0, i32 5
  %129 = load i32, ptr %128, align 8, !tbaa !39
  br label %130

130:                                              ; preds = %126, %125
  %131 = phi i32 [ 0, %125 ], [ %129, %126 ]
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.Track, ptr %132, i32 0, i32 5
  store i32 %131, ptr %133, align 8, !tbaa !39
  call void @_ZNSt6vectorI4AttrSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %138

134:                                              ; preds = %93
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %15, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %16, align 4
  call void @_ZNSt6vectorI4AttrSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %262

138:                                              ; preds = %130, %84
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.Track, ptr %139, i32 0, i32 5
  %141 = load i32, ptr %140, align 8, !tbaa !39
  %142 = icmp eq i32 %141, 2
  br i1 %142, label %143, label %144

143:                                              ; preds = %138
  store i32 7, ptr %12, align 4
  br label %255

144:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.Track, ptr %145, i32 0, i32 1
  %147 = load i32, ptr %146, align 8, !tbaa !27
  %148 = invoke noundef float @_ZL17getDeltaTolerance25cgltf_animation_path_type(i32 noundef %147)
          to label %149 unwind label %183

149:                                              ; preds = %144
  store float %148, ptr %17, align 4, !tbaa !9
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.Track, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !41
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %191

154:                                              ; preds = %149
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.Track, ptr %155, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8, !tbaa !41
  %158 = getelementptr inbounds %struct.cgltf_node, ptr %157, i32 0, i32 1
  %159 = load ptr, ptr %158, align 8, !tbaa !42
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %191

161:                                              ; preds = %154
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.Track, ptr %162, i32 0, i32 1
  %164 = load i32, ptr %163, align 8, !tbaa !27
  %165 = icmp eq i32 %164, 1
  br i1 %165, label %166, label %191

166:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.Track, ptr %167, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8, !tbaa !41
  %170 = getelementptr inbounds %struct.cgltf_node, ptr %169, i32 0, i32 1
  %171 = load ptr, ptr %170, align 8, !tbaa !42
  %172 = invoke noundef float @_ZL13getWorldScaleP10cgltf_node(ptr noundef %171)
          to label %173 unwind label %187

173:                                              ; preds = %166
  store float %172, ptr %18, align 4, !tbaa !9
  %174 = load float, ptr %18, align 4, !tbaa !9
  %175 = fcmp oeq float %174, 0.000000e+00
  br i1 %175, label %176, label %177

176:                                              ; preds = %173
  br label %179

177:                                              ; preds = %173
  %178 = load float, ptr %18, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %177, %176
  %180 = phi float [ 1.000000e+00, %176 ], [ %178, %177 ]
  %181 = load float, ptr %17, align 4, !tbaa !9
  %182 = fdiv float %181, %180
  store float %182, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %191

183:                                              ; preds = %144
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %15, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %16, align 4
  br label %261

187:                                              ; preds = %166
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %15, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %261

191:                                              ; preds = %179, %161, %154, %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.Track, ptr %192, i32 0, i32 7
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.Track, ptr %194, i32 0, i32 1
  %196 = load i32, ptr %195, align 8, !tbaa !27
  %197 = load ptr, ptr %13, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.Track, ptr %197, i32 0, i32 7
  %199 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %198, i64 noundef 0) #7
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.Track, ptr %200, i32 0, i32 4
  %202 = load i64, ptr %201, align 8, !tbaa !40
  %203 = invoke noundef float @_ZL11getMaxDeltaRKSt6vectorI4AttrSaIS0_EE25cgltf_animation_path_typePKS0_m(ptr noundef nonnull align 8 dereferenceable(24) %193, i32 noundef %196, ptr noundef %199, i64 noundef %202)
          to label %204 unwind label %250

204:                                              ; preds = %191
  store float %203, ptr %19, align 4, !tbaa !9
  %205 = load float, ptr %19, align 4, !tbaa !9
  %206 = load float, ptr %17, align 4, !tbaa !9
  %207 = fcmp ole float %205, %206
  br i1 %207, label %208, label %254

208:                                              ; preds = %204
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.Track, ptr %209, i32 0, i32 2
  store i8 1, ptr %210, align 4, !tbaa !46
  %211 = load ptr, ptr %13, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.Track, ptr %211, i32 0, i32 6
  call void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %212) #7
  %213 = load ptr, ptr %13, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.Track, ptr %213, i32 0, i32 7
  %215 = load ptr, ptr %13, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.Track, ptr %215, i32 0, i32 4
  %217 = load i64, ptr %216, align 8, !tbaa !40
  invoke void @_ZNSt6vectorI4AttrSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %217)
          to label %218 unwind label %250

218:                                              ; preds = %208
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.Track, ptr %219, i32 0, i32 4
  %221 = load i64, ptr %220, align 8, !tbaa !40
  invoke void @_ZNSt6vectorI4AttrSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %221)
          to label %222 unwind label %250

222:                                              ; preds = %218
  %223 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #7
  %224 = load ptr, ptr %13, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.Track, ptr %224, i32 0, i32 4
  %226 = load i64, ptr %225, align 8, !tbaa !40
  %227 = load ptr, ptr %13, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.Track, ptr %227, i32 0, i32 1
  %229 = load i32, ptr %228, align 8, !tbaa !27
  %230 = load ptr, ptr %13, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.Track, ptr %230, i32 0, i32 0
  %232 = load ptr, ptr %231, align 8, !tbaa !41
  invoke void @_ZL16getBaseTransformP4Attrm25cgltf_animation_path_typeP10cgltf_node(ptr noundef %223, i64 noundef %226, i32 noundef %229, ptr noundef %232)
          to label %233 unwind label %250

233:                                              ; preds = %222
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.Track, ptr %234, i32 0, i32 7
  %236 = load ptr, ptr %13, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.Track, ptr %236, i32 0, i32 1
  %238 = load i32, ptr %237, align 8, !tbaa !27
  %239 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #7
  %240 = load ptr, ptr %13, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.Track, ptr %240, i32 0, i32 4
  %242 = load i64, ptr %241, align 8, !tbaa !40
  %243 = invoke noundef float @_ZL11getMaxDeltaRKSt6vectorI4AttrSaIS0_EE25cgltf_animation_path_typePKS0_m(ptr noundef nonnull align 8 dereferenceable(24) %235, i32 noundef %238, ptr noundef %239, i64 noundef %242)
          to label %244 unwind label %250

244:                                              ; preds = %233
  %245 = load float, ptr %17, align 4, !tbaa !9
  %246 = fcmp ole float %243, %245
  %247 = load ptr, ptr %13, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.Track, ptr %247, i32 0, i32 3
  %249 = zext i1 %246 to i8
  store i8 %249, ptr %248, align 1, !tbaa !47
  br label %254

250:                                              ; preds = %233, %222, %218, %208, %191
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %15, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %261

254:                                              ; preds = %244, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  store i32 0, ptr %12, align 4
  br label %255

255:                                              ; preds = %254, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %256 = load i32, ptr %12, align 4
  switch i32 %256, label %269 [
    i32 0, label %257
    i32 7, label %258
  ]

257:                                              ; preds = %255
  br label %258

258:                                              ; preds = %257, %255
  %259 = load i64, ptr %11, align 8, !tbaa !11
  %260 = add i64 %259, 1
  store i64 %260, ptr %11, align 8, !tbaa !11
  br label %77, !llvm.loop !48

261:                                              ; preds = %250, %187, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %262

262:                                              ; preds = %261, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZNSt6vectorI4AttrSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %264

263:                                              ; preds = %83
  call void @_ZNSt6vectorI4AttrSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void

264:                                              ; preds = %262
  %265 = load ptr, ptr %15, align 8
  %266 = load i32, ptr %16, align 4
  %267 = insertvalue { ptr, i32 } poison, ptr %265, 0
  %268 = insertvalue { ptr, i32 } %267, i32 %266, 1
  resume { ptr, i32 } %268

269:                                              ; preds = %255
  unreachable
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL17resampleKeyframesRSt6vectorI4AttrSaIS0_EERKS_IfSaIfEERKS2_25cgltf_animation_path_type24cgltf_interpolation_typemifi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i64 noundef, i32 noundef, float noundef, i32 noundef) #6

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL17getDeltaTolerance25cgltf_animation_path_type(i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL13getWorldScaleP10cgltf_node(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL11getMaxDeltaRKSt6vectorI4AttrSaIS0_EE25cgltf_animation_path_typePKS0_m(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, i64 noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL16getBaseTransformP4Attrm25cgltf_animation_path_typeP10cgltf_node(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTS9Animation", !6, i64 0, !10, i64 8, !17, i64 12, !18, i64 16}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSSt6vectorI5TrackSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI5TrackSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI5TrackSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI5TrackSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!23, !17, i64 32}
!23 = !{!"_ZTS8Settings", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !24, i64 16, !24, i64 17, !24, i64 18, !24, i64 19, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !24, i64 36, !24, i64 37, !24, i64 38, !24, i64 39, !24, i64 40, !24, i64 41, !24, i64 42, !24, i64 43, !10, i64 44, !10, i64 48, !24, i64 52, !24, i64 53, !24, i64 54, !10, i64 56, !17, i64 60, !24, i64 64, !24, i64 65, !24, i64 66, !24, i64 67, !24, i64 68, !7, i64 72, !7, i64 88, !7, i64 104, !7, i64 120, !17, i64 136, !24, i64 140, !24, i64 141, !24, i64 142, !24, i64 143, !17, i64 144}
!24 = !{!"bool", !7, i64 0}
!25 = !{!17, !17, i64 0}
!26 = !{!16, !17, i64 12}
!27 = !{!28, !29, i64 8}
!28 = !{!"_ZTS5Track", !6, i64 0, !29, i64 8, !24, i64 12, !24, i64 13, !12, i64 16, !30, i64 24, !31, i64 32, !35, i64 56}
!29 = !{!"_ZTS25cgltf_animation_path_type", !7, i64 0}
!30 = !{!"_ZTS24cgltf_interpolation_type", !7, i64 0}
!31 = !{!"_ZTSSt6vectorIfSaIfEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt6vectorI4AttrSaIS0_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseI4AttrSaIS0_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!28, !30, i64 24}
!40 = !{!28, !12, i64 16}
!41 = !{!28, !6, i64 0}
!42 = !{!43, !6, i64 8}
!43 = !{!"_ZTS10cgltf_node", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !17, i64 80, !17, i64 84, !17, i64 88, !17, i64 92, !7, i64 96, !7, i64 108, !7, i64 124, !7, i64 136, !44, i64 200, !17, i64 224, !45, i64 232, !12, i64 248, !6, i64 256}
!44 = !{!"_ZTS12cgltf_extras", !12, i64 0, !12, i64 8, !6, i64 16}
!45 = !{!"_ZTS25cgltf_mesh_gpu_instancing", !6, i64 0, !12, i64 8}
!46 = !{!28, !24, i64 12}
!47 = !{!28, !24, i64 13}
!48 = distinct !{!48, !14}


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

%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@__PRETTY_FUNCTION__._Z16processAnimationR9AnimationRK8Settings = external hidden unnamed_addr constant [53 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16processAnimationR9AnimationRK8Settings(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(148) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca %"class.std::vector.5", align 8
  %6 = alloca %"class.std::vector.5", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store float 0x47EFFFFFE0000000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store float 0.000000e+00, ptr %4, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = tail call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %.not82 = icmp eq i64 %8, 0
  br i1 %.not82, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %18, %2
  %9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %10 = load float, ptr %9, align 4, !tbaa !5
  store float %10, ptr %3, align 4, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  store float %10, ptr %11, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %1, i64 32
  %13 = load i32, ptr %12, align 4, !tbaa !17
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %36, label %28

.lr.ph:                                           ; preds = %2, %18
  %.077 = phi i64 [ %25, %18 ], [ 0, %2 ]
  %14 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorI5TrackSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.077) #7
  %15 = getelementptr inbounds i8, ptr %14, i64 32
  %16 = call noundef zeroext i1 @_ZNKSt6vectorIfSaIfEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  br i1 %16, label %17, label %18

17:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 284, ptr noundef nonnull @__PRETTY_FUNCTION__._Z16processAnimationR9AnimationRK8Settings) #8
  unreachable

18:                                               ; preds = %.lr.ph
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %21 = load float, ptr %20, align 4, !tbaa !5
  store float %21, ptr %3, align 4, !tbaa !5
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %24 = load float, ptr %23, align 4, !tbaa !5
  store float %24, ptr %4, align 4, !tbaa !5
  %25 = add nuw i64 %.077, 1
  %26 = call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %27 = icmp ult i64 %25, %26
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !20

28:                                               ; preds = %._crit_edge
  %29 = load float, ptr %4, align 4, !tbaa !5
  %30 = fsub float %29, %10
  %31 = sitofp i32 %13 to float
  %32 = call float @llvm.fmuladd.f32(float %30, float %31, float 0x3FE99999A0000000)
  %33 = fptosi float %32 to i32
  %34 = add nsw i32 %33, 1
  %35 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %34, ptr %35, align 4, !tbaa !22
  br label %36

36:                                               ; preds = %28, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorI4AttrSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %37 = call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %.not83 = icmp eq i64 %37, 0
  br i1 %.not83, label %._crit_edge81, label %.lr.ph80

.lr.ph80:                                         ; preds = %36
  %38 = getelementptr inbounds i8, ptr %0, i64 12
  br label %39

._crit_edge81:                                    ; preds = %110, %36
  call void @_ZNSt6vectorI4AttrSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  ret void

39:                                               ; preds = %.lr.ph80, %110
  %.06178 = phi i64 [ 0, %.lr.ph80 ], [ %111, %110 ]
  %40 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorI5TrackSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.06178) #7
  %41 = load i32, ptr %12, align 4, !tbaa !17
  %.not70 = icmp eq i32 %41, 0
  br i1 %.not70, label %59, label %42

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @_ZNSt6vectorI4AttrSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %43 = getelementptr inbounds i8, ptr %40, i64 32
  %44 = getelementptr inbounds i8, ptr %40, i64 56
  %45 = getelementptr inbounds i8, ptr %40, i64 8
  %46 = load i32, ptr %45, align 8, !tbaa !23
  %47 = getelementptr inbounds i8, ptr %40, i64 24
  %48 = load i32, ptr %47, align 8, !tbaa !36
  %49 = getelementptr inbounds i8, ptr %40, i64 16
  %50 = load i64, ptr %49, align 8, !tbaa !37
  %51 = load i32, ptr %38, align 4, !tbaa !22
  %52 = load float, ptr %11, align 8, !tbaa !9
  %53 = load i32, ptr %12, align 4, !tbaa !17
  invoke void @_ZL17resampleKeyframesRSt6vectorI4AttrSaIS0_EERKS_IfSaIfEERKS2_25cgltf_animation_path_type24cgltf_interpolation_typemifi(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %44, i32 noundef %46, i32 noundef %48, i64 noundef %50, i32 noundef %51, float noundef %52, i32 noundef %53)
          to label %54 unwind label %57

54:                                               ; preds = %42
  call void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  call void @_ZNSt6vectorI4AttrSaIS0_EE4swapERS2_(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %55 = load i32, ptr %47, align 8, !tbaa !36
  %56 = icmp eq i32 %55, 2
  %spec.select = select i1 %56, i32 0, i32 %55
  store i32 %spec.select, ptr %47, align 8, !tbaa !36
  call void @_ZNSt6vectorI4AttrSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %59

57:                                               ; preds = %42
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI4AttrSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %114

59:                                               ; preds = %54, %39
  %60 = getelementptr inbounds i8, ptr %40, i64 24
  %61 = load i32, ptr %60, align 8, !tbaa !36
  %62 = icmp eq i32 %61, 2
  br i1 %62, label %110, label %63

63:                                               ; preds = %59
  %64 = getelementptr inbounds i8, ptr %40, i64 8
  %65 = load i32, ptr %64, align 8, !tbaa !23
  %66 = call noundef float @_ZL17getDeltaTolerance25cgltf_animation_path_type(i32 noundef %65)
  %67 = load ptr, ptr %40, align 8, !tbaa !38
  %.not71 = icmp eq ptr %67, null
  %.pre84 = load i32, ptr %64, align 8
  br i1 %.not71, label %80, label %68

68:                                               ; preds = %63
  %69 = getelementptr inbounds i8, ptr %67, i64 8
  %70 = load ptr, ptr %69, align 8, !tbaa !39
  %.not72 = icmp ne ptr %70, null
  %71 = icmp eq i32 %.pre84, 1
  %or.cond = select i1 %.not72, i1 %71, i1 false
  br i1 %or.cond, label %72, label %80

72:                                               ; preds = %68
  %73 = invoke noundef float @_ZL13getWorldScaleP10cgltf_node(ptr noundef nonnull %70)
          to label %74 unwind label %78

74:                                               ; preds = %72
  %75 = fcmp oeq float %73, 0.000000e+00
  %76 = select i1 %75, float 1.000000e+00, float %73
  %77 = fdiv float %66, %76
  %.pre = load i32, ptr %64, align 8, !tbaa !23
  br label %80

78:                                               ; preds = %72
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %114

80:                                               ; preds = %74, %68, %63
  %81 = phi i32 [ %.pre, %74 ], [ %.pre84, %68 ], [ %.pre84, %63 ]
  %.062 = phi float [ %77, %74 ], [ %66, %68 ], [ %66, %63 ]
  %82 = getelementptr inbounds i8, ptr %40, i64 56
  %83 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef 0) #7
  %84 = getelementptr inbounds i8, ptr %40, i64 16
  %85 = load i64, ptr %84, align 8, !tbaa !37
  %86 = invoke noundef float @_ZL11getMaxDeltaRKSt6vectorI4AttrSaIS0_EE25cgltf_animation_path_typePKS0_m(ptr noundef nonnull align 8 dereferenceable(24) %82, i32 noundef %81, ptr noundef nonnull %83, i64 noundef %85)
          to label %87 unwind label %108

87:                                               ; preds = %80
  %88 = fcmp ugt float %86, %.062
  br i1 %88, label %110, label %89

89:                                               ; preds = %87
  %90 = getelementptr inbounds i8, ptr %40, i64 12
  store i8 1, ptr %90, align 4, !tbaa !43
  %91 = getelementptr inbounds i8, ptr %40, i64 32
  call void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #7
  %92 = load i64, ptr %84, align 8, !tbaa !37
  invoke void @_ZNSt6vectorI4AttrSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %92)
          to label %93 unwind label %108

93:                                               ; preds = %89
  %94 = load i64, ptr %84, align 8, !tbaa !37
  invoke void @_ZNSt6vectorI4AttrSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %94)
          to label %95 unwind label %108

95:                                               ; preds = %93
  %96 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #7
  %97 = load i64, ptr %84, align 8, !tbaa !37
  %98 = load i32, ptr %64, align 8, !tbaa !23
  %99 = load ptr, ptr %40, align 8, !tbaa !38
  call void @_ZL16getBaseTransformP4Attrm25cgltf_animation_path_typeP10cgltf_node(ptr noundef nonnull %96, i64 noundef %97, i32 noundef %98, ptr noundef %99)
  %100 = load i32, ptr %64, align 8, !tbaa !23
  %101 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #7
  %102 = load i64, ptr %84, align 8, !tbaa !37
  %103 = invoke noundef float @_ZL11getMaxDeltaRKSt6vectorI4AttrSaIS0_EE25cgltf_animation_path_typePKS0_m(ptr noundef nonnull align 8 dereferenceable(24) %82, i32 noundef %100, ptr noundef nonnull %101, i64 noundef %102)
          to label %104 unwind label %108

104:                                              ; preds = %95
  %105 = fcmp ole float %103, %.062
  %106 = getelementptr inbounds i8, ptr %40, i64 13
  %107 = zext i1 %105 to i8
  store i8 %107, ptr %106, align 1, !tbaa !44
  br label %110

108:                                              ; preds = %95, %93, %89, %80
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %114

110:                                              ; preds = %87, %104, %59
  %111 = add nuw i64 %.06178, 1
  %112 = call noundef i64 @_ZNKSt6vectorI5TrackSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %113 = icmp ult i64 %111, %112
  br i1 %113, label %39, label %._crit_edge81, !llvm.loop !45

114:                                              ; preds = %78, %108, %57
  %.pn.pn = phi { ptr, i32 } [ %58, %57 ], [ %109, %108 ], [ %79, %78 ]
  call void @_ZNSt6vectorI4AttrSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI5TrackSaIS0_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 8 dereferenceable(80) ptr @_ZNSt6vectorI5TrackSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL17resampleKeyframesRSt6vectorI4AttrSaIS0_EERKS_IfSaIfEERKS2_25cgltf_animation_path_type24cgltf_interpolation_typemifi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i64 noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #6

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL17getDeltaTolerance25cgltf_animation_path_type(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL13getWorldScaleP10cgltf_node(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL11getMaxDeltaRKSt6vectorI4AttrSaIS0_EE25cgltf_animation_path_typePKS0_m(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL16getBaseTransformP4Attrm25cgltf_animation_path_typeP10cgltf_node(ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS9Animation", !11, i64 0, !6, i64 8, !12, i64 12, !13, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorI5TrackSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI5TrackSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI5TrackSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI5TrackSaIS0_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!17 = !{!18, !12, i64 32}
!18 = !{!"_ZTS8Settings", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !19, i64 16, !19, i64 17, !19, i64 18, !19, i64 19, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !19, i64 36, !19, i64 37, !19, i64 38, !19, i64 39, !19, i64 40, !19, i64 41, !19, i64 42, !19, i64 43, !6, i64 44, !6, i64 48, !19, i64 52, !19, i64 53, !19, i64 54, !6, i64 56, !12, i64 60, !19, i64 64, !19, i64 65, !19, i64 66, !19, i64 67, !19, i64 68, !7, i64 72, !7, i64 88, !7, i64 104, !7, i64 120, !12, i64 136, !19, i64 140, !19, i64 141, !19, i64 142, !19, i64 143, !12, i64 144}
!19 = !{!"bool", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !12, i64 12}
!23 = !{!24, !25, i64 8}
!24 = !{!"_ZTS5Track", !11, i64 0, !25, i64 8, !19, i64 12, !19, i64 13, !26, i64 16, !27, i64 24, !28, i64 32, !32, i64 56}
!25 = !{!"_ZTS25cgltf_animation_path_type", !7, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTS24cgltf_interpolation_type", !7, i64 0}
!28 = !{!"_ZTSSt6vectorIfSaIfEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!32 = !{!"_ZTSSt6vectorI4AttrSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseI4AttrSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!36 = !{!24, !27, i64 24}
!37 = !{!24, !26, i64 16}
!38 = !{!24, !11, i64 0}
!39 = !{!40, !11, i64 8}
!40 = !{!"_ZTS10cgltf_node", !11, i64 0, !11, i64 8, !11, i64 16, !26, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !26, i64 72, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !7, i64 96, !7, i64 108, !7, i64 124, !7, i64 136, !41, i64 200, !12, i64 224, !42, i64 232, !26, i64 248, !11, i64 256}
!41 = !{!"_ZTS12cgltf_extras", !26, i64 0, !26, i64 8, !11, i64 16}
!42 = !{!"_ZTS25cgltf_mesh_gpu_instancing", !11, i64 0, !26, i64 8}
!43 = !{!24, !19, i64 12}
!44 = !{!24, !19, i64 13}
!45 = distinct !{!45, !21}


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