; LLVM IR from ThePhysicsGuys/Physics3D :: application/picker/tools (alignmentLinkTool)

; 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.P3D::Application::Selection" = type { %"class.std::optional", %"class.std::vector" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [7 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<P3D::BoundingBoxTemplate<double>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<P3D::BoundingBoxTemplate<double>>::_Storage" = type { %"struct.P3D::BoundingBoxTemplate" }
%"struct.P3D::BoundingBoxTemplate" = type { %"struct.P3D::Vector", %"struct.P3D::Vector" }
%"struct.P3D::Vector" = type { %union.anon.0 }
%union.anon.0 = type { [3 x double] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.P3D::Application::Screen" = type { %"class.P3D::Engine::Registry", ptr, ptr, %"struct.P3D::Vector.17", %"struct.P3D::Application::Camera", %"class.P3D::Engine::LayerStack", %"class.P3D::Application::EventHandler", %"class.Util::Properties", %"class.std::shared_ptr", ptr, ptr }
%"class.P3D::Engine::Registry" = type <{ %"class.std::set", %"class.std::vector.7", %"class.std::unordered_map", %"class.std::queue", i32, [4 x i8] }>
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.P3D::Vector.17" = type { %union.anon.18 }
%union.anon.18 = type { [2 x i32] }
%"struct.P3D::Application::Camera" = type { i8, double, double, %"struct.P3D::Vector", i8, double, double, %"struct.P3D::Vector", i8, i8, %"class.P3D::GlobalCFrame", double, double, i8, double, float, float, float, float, %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", ptr }
%"class.P3D::GlobalCFrame" = type { %"struct.P3D::PositionTemplate", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::PositionTemplate" = type { %"struct.P3D::Fix", %"struct.P3D::Fix", %"struct.P3D::Fix" }
%"struct.P3D::Fix" = type { i64 }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%"class.P3D::Matrix.20" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.21", i32, [4 x i8] }>
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.P3D::Application::EventHandler" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.Util::Properties" = type { %"class.std::__cxx11::basic_string", %"class.std::map" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.26" }
%"class.std::_Rb_tree.26" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.P3D::Application::PlayerWorld" = type { %"class.P3D::World" }
%"class.P3D::World" = type { %"class.P3D::WorldPrototype" }
%"class.P3D::WorldPrototype" = type { ptr, %"class.std::vector.32", %"class.std::vector.37", %"class.std::vector.42", %"class.std::vector.47", %"class.std::vector.52", %"class.std::vector.57", %"struct.P3D::ColissionBuffer", i64, i64, double }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.57" = type { %"struct.std::_Vector_base.58" }
%"struct.std::_Vector_base.58" = type { %"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.P3D::ColissionBuffer" = type { %"class.std::vector.62", %"class.std::vector.62" }
%"class.std::vector.62" = type { %"struct.std::_Vector_base.63" }
%"struct.std::_Vector_base.63" = type { %"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.P3D::intrusive_ptr" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.P3D::CFrameTemplate" = type { %"struct.P3D::Vector", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::AttachedPart" = type { %"struct.P3D::CFrameTemplate", ptr }
%"class.std::allocator" = type { i8 }
%"struct.P3D::Application::Comp::Collider" = type { %"struct.P3D::RC", ptr }
%"struct.P3D::RC" = type { ptr, i64 }

@_ZN3P3D11Application13SelectionTool9selectionE = external global %"struct.P3D::Application::Selection", align 8
@_ZN3P3D11Application6screenE = external global %"class.P3D::Application::Screen", align 8
@_ZTISt16invalid_argument = external constant ptr
@_ZN3P3D11Application5worldE = external global %"class.P3D::Application::PlayerWorld", align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #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 uwtable
define dso_local void @_ZN3P3D11Application17AlignmentLinkTool13linkSelectionEv() #2 align 2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::intrusive_ptr", align 8
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.P3D::intrusive_ptr", align 8
  %10 = alloca %"struct.P3D::CFrameTemplate", align 8
  %11 = alloca %"struct.P3D::AttachedPart", align 8
  %12 = alloca %"struct.P3D::AttachedPart", align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = call noundef i64 @_ZNK3P3D11Application9Selection4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN3P3D11Application13SelectionTool9selectionE)
  %18 = icmp ult i64 %17, 2
  br i1 %18, label %19, label %20

19:                                               ; preds = %0
  br label %155

20:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #11
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3P3D11Application9SelectionixEi(ptr noundef nonnull align 8 dereferenceable(80) @_ZN3P3D11Application13SelectionTool9selectionE, i32 noundef 0)
  call void @_ZN3P3D6Engine8RegistryImE3getINS_11Application4Comp8ColliderEEENS_13intrusive_ptrIT_EERKj(ptr dead_on_unwind writable sret(%"class.P3D::intrusive_ptr") align 8 %1, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %21) #11
  %22 = call noundef zeroext i1 @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEE7invalidEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  store i32 1, ptr %2, align 4
  br label %153

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #11
  store ptr @_ZN3P3D11Application13SelectionTool9selectionE, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #11
  %25 = invoke ptr @_ZN3P3D11Application9Selection5beginEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN3P3D11Application13SelectionTool9selectionE)
          to label %26 unwind label %34

26:                                               ; preds = %24
  %27 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %25, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #11
  %28 = invoke ptr @_ZN3P3D11Application9Selection3endEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN3P3D11Application13SelectionTool9selectionE)
          to label %29 unwind label %38

29:                                               ; preds = %26
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %28, ptr %30, align 8
  br label %31

31:                                               ; preds = %130, %29
  %32 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %7) #11
  br i1 %32, label %42, label %33

33:                                               ; preds = %31
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #11
  br label %152

34:                                               ; preds = %24
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %5, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %6, align 4
  br label %151

38:                                               ; preds = %26
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %5, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %6, align 4
  br label %150

42:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #11
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  store ptr %43, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #11
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN3P3D6Engine8RegistryImE3getINS_11Application4Comp8ColliderEEENS_13intrusive_ptrIT_EERKj(ptr dead_on_unwind writable sret(%"class.P3D::intrusive_ptr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %44) #11
  %45 = call noundef zeroext i1 @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEE7invalidEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  br i1 %45, label %46, label %47

46:                                               ; preds = %42
  store i32 3, ptr %2, align 4
  br label %124

47:                                               ; preds = %42
  %48 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  %49 = getelementptr inbounds %"struct.P3D::Application::Comp::Collider", ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  %52 = getelementptr inbounds %"struct.P3D::Application::Comp::Collider", ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = icmp eq ptr %50, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %47
  store i32 3, ptr %2, align 4
  br label %124

56:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 96, ptr %10) #11
  %57 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  %58 = getelementptr inbounds %"struct.P3D::Application::Comp::Collider", ptr %57, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3P3D4Part9getCFrameEv(ptr noundef nonnull align 8 dereferenceable(200) %59)
          to label %61 unwind label %86

61:                                               ; preds = %56
  %62 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  %63 = getelementptr inbounds %"struct.P3D::Application::Comp::Collider", ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3P3D4Part9getCFrameEv(ptr noundef nonnull align 8 dereferenceable(200) %64)
          to label %66 unwind label %86

66:                                               ; preds = %61
  invoke void @_ZNK3P3D12GlobalCFrame13globalToLocalERKS0_(ptr dead_on_unwind writable sret(%"struct.P3D::CFrameTemplate") align 8 %10, ptr noundef nonnull align 8 dereferenceable(96) %60, ptr noundef nonnull align 8 dereferenceable(96) %65)
          to label %67 unwind label %86

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 104, ptr %11) #11
  %68 = getelementptr inbounds %"struct.P3D::AttachedPart", ptr %11, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %68, ptr align 8 %10, i64 96, i1 false), !tbaa.struct !13
  %69 = getelementptr inbounds %"struct.P3D::AttachedPart", ptr %11, i32 0, i32 1
  %70 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  %71 = getelementptr inbounds %"struct.P3D::Application::Comp::Collider", ptr %70, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  store ptr %72, ptr %69, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 104, ptr %12) #11
  %73 = getelementptr inbounds %"struct.P3D::AttachedPart", ptr %12, i32 0, i32 0
  invoke void @_ZN3P3D14CFrameTemplateIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %73)
          to label %74 unwind label %90

74:                                               ; preds = %67
  %75 = getelementptr inbounds %"struct.P3D::AttachedPart", ptr %12, i32 0, i32 1
  %76 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  %77 = getelementptr inbounds %"struct.P3D::Application::Comp::Collider", ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  store ptr %78, ptr %75, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #11
  %79 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 288) #12
          to label %80 unwind label %94

80:                                               ; preds = %74
  invoke void @_ZN3P3D13AlignmentLinkC1ERKNS_12AttachedPartES3_(ptr noundef nonnull align 8 dereferenceable(288) %79, ptr noundef nonnull align 8 dereferenceable(104) %11, ptr noundef nonnull align 8 dereferenceable(104) %12)
          to label %81 unwind label %98

81:                                               ; preds = %80
  store ptr %79, ptr %13, align 8, !tbaa !5
  %82 = load ptr, ptr getelementptr inbounds (%"class.P3D::Application::Screen", ptr @_ZN3P3D11Application6screenE, i32 0, i32 2), align 8, !tbaa !21
  invoke void @_ZN3P3D16UpgradeableMutex4lockEv(ptr noundef nonnull align 8 dereferenceable(96) %82)
          to label %83 unwind label %94

83:                                               ; preds = %81
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN3P3D14WorldPrototype7addLinkEPNS_8SoftLinkE(ptr noundef nonnull align 8 dereferenceable(224) @_ZN3P3D11Application5worldE, ptr noundef %84)
          to label %85 unwind label %102

85:                                               ; preds = %83
  br label %121

86:                                               ; preds = %66, %61, %56
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %5, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %6, align 4
  br label %149

90:                                               ; preds = %67
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %5, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %6, align 4
  br label %148

94:                                               ; preds = %121, %81, %74
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %5, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %6, align 4
  br label %147

98:                                               ; preds = %80
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %5, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %79, i64 noundef 288) #13
  br label %147

102:                                              ; preds = %83
  %103 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt16invalid_argument
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %5, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %6, align 4
  br label %106

106:                                              ; preds = %102
  %107 = load i32, ptr %6, align 4
  %108 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt16invalid_argument) #11
  %109 = icmp eq i32 %107, %108
  br i1 %109, label %110, label %147

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #11
  %111 = load ptr, ptr %5, align 8
  %112 = call ptr @__cxa_begin_catch(ptr %111) #11
  store ptr %112, ptr %14, align 8
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = load ptr, ptr %113, align 8, !tbaa !73
  %115 = getelementptr inbounds ptr, ptr %114, i64 2
  %116 = load ptr, ptr %115, align 8
  %117 = call noundef ptr %116(ptr noundef nonnull align 8 dereferenceable(16) %113) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %117, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %118 unwind label %132

118:                                              ; preds = %110
  invoke void (ptr, ...) @_ZN3Log5debugENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEz(ptr noundef %15)
          to label %119 unwind label %136

119:                                              ; preds = %118
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #11
  invoke void @__cxa_end_catch()
          to label %120 unwind label %141

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

121:                                              ; preds = %120, %85
  %122 = load ptr, ptr getelementptr inbounds (%"class.P3D::Application::Screen", ptr @_ZN3P3D11Application6screenE, i32 0, i32 2), align 8, !tbaa !21
  invoke void @_ZN3P3D16UpgradeableMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(96) %122)
          to label %123 unwind label %94

123:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 104, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 104, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 96, ptr %10) #11
  store i32 0, ptr %2, align 4
  br label %124

124:                                              ; preds = %123, %55, %46
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp8ColliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  %125 = load i32, ptr %2, align 4
  switch i32 %125, label %127 [
    i32 0, label %126
  ]

126:                                              ; preds = %124
  store i32 0, ptr %2, align 4
  br label %127

127:                                              ; preds = %126, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #11
  %128 = load i32, ptr %2, align 4
  switch i32 %128, label %164 [
    i32 0, label %129
    i32 3, label %130
  ]

129:                                              ; preds = %127
  br label %130

130:                                              ; preds = %129, %127
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  br label %31

132:                                              ; preds = %110
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %5, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %6, align 4
  br label %140

136:                                              ; preds = %118
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %5, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  br label %140

140:                                              ; preds = %136, %132
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #11
  invoke void @__cxa_end_catch()
          to label %145 unwind label %161

141:                                              ; preds = %119
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %5, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %6, align 4
  br label %146

145:                                              ; preds = %140
  br label %146

146:                                              ; preds = %145, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  br label %147

147:                                              ; preds = %146, %106, %98, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  br label %148

148:                                              ; preds = %147, %90
  call void @llvm.lifetime.end.p0(i64 104, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 104, ptr %11) #11
  br label %149

149:                                              ; preds = %148, %86
  call void @llvm.lifetime.end.p0(i64 96, ptr %10) #11
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp8ColliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #11
  br label %150

150:                                              ; preds = %149, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #11
  br label %151

151:                                              ; preds = %150, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #11
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp8ColliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #11
  br label %156

152:                                              ; preds = %33
  store i32 0, ptr %2, align 4
  br label %153

153:                                              ; preds = %152, %23
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp8ColliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #11
  %154 = load i32, ptr %2, align 4
  switch i32 %154, label %164 [
    i32 0, label %155
    i32 1, label %155
  ]

155:                                              ; preds = %153, %153, %19
  ret void

156:                                              ; preds = %151
  %157 = load ptr, ptr %5, align 8
  %158 = load i32, ptr %6, align 4
  %159 = insertvalue { ptr, i32 } poison, ptr %157, 0
  %160 = insertvalue { ptr, i32 } %159, i32 %158, 1
  resume { ptr, i32 } %160

161:                                              ; preds = %140
  %162 = landingpad { ptr, i32 }
          catch ptr null
  %163 = extractvalue { ptr, i32 } %162, 0
  call void @__clang_call_terminate(ptr %163) #14
  unreachable

164:                                              ; preds = %153, %127
  unreachable
}

declare noundef i64 @_ZNK3P3D11Application9Selection4sizeEv(ptr noundef nonnull align 8 dereferenceable(80)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3getINS_11Application4Comp8ColliderEEENS_13intrusive_ptrIT_EERKj(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN3P3D11Application9SelectionixEi(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef) #3

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

declare ptr @_ZN3P3D11Application9Selection5beginEv(ptr noundef nonnull align 8 dereferenceable(80)) #3

declare ptr @_ZN3P3D11Application9Selection3endEv(ptr noundef nonnull align 8 dereferenceable(80)) #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3P3D4Part9getCFrameEv(ptr noundef nonnull align 8 dereferenceable(200)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3P3D12GlobalCFrame13globalToLocalERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::CFrameTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(96)) #5 align 2

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #7

declare void @_ZN3P3D13AlignmentLinkC1ERKNS_12AttachedPartES3_(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #8

declare void @_ZN3P3D16UpgradeableMutex4lockEv(ptr noundef nonnull align 8 dereferenceable(96)) #3

declare void @_ZN3P3D14WorldPrototype7addLinkEPNS_8SoftLinkE(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef) #3

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #9

declare ptr @__cxa_begin_catch(ptr)

declare void @_ZN3Log5debugENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEz(ptr noundef, ...) #3

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #10

declare void @_ZN3P3D16UpgradeableMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(96)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nobuiltin allocsize(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 #8 = { nobuiltin 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 #9 = { nounwind memory(none) }
attributes #10 = { noinline noreturn nounwind uwtable "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 #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin nounwind }
attributes #14 = { 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, !6, i64 16}
!10 = !{!"_ZTSN3P3D11Application4Comp8ColliderE", !11, i64 0, !6, i64 16}
!11 = !{!"_ZTSN3P3D2RCE", !12, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{i64 0, i64 24, !14, i64 24, i64 72, !14}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !6, i64 96}
!16 = !{!"_ZTSN3P3D12AttachedPartE", !17, i64 0, !6, i64 96}
!17 = !{!"_ZTSN3P3D14CFrameTemplateIdEE", !18, i64 0, !19, i64 24}
!18 = !{!"_ZTSN3P3D6VectorIdLm3EEE", !7, i64 0}
!19 = !{!"_ZTSN3P3D22MatrixRotationTemplateIdEE", !20, i64 0}
!20 = !{!"_ZTSN3P3D6MatrixIdLm3ELm3EEE", !7, i64 0}
!21 = !{!22, !6, i64 224}
!22 = !{!"_ZTSN3P3D11Application6ScreenE", !23, i64 0, !6, i64 216, !6, i64 224, !48, i64 232, !49, i64 240, !56, i64 816, !61, i64 848, !62, i64 912, !70, i64 992, !6, i64 1008, !6, i64 1016}
!23 = !{!"_ZTSN3P3D6Engine8RegistryImEE", !24, i64 0, !32, i64 48, !36, i64 72, !41, i64 128, !47, i64 208}
!24 = !{!"_ZTSSt3setImN3P3D6Engine8RegistryImE14entity_compareESaImEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeImmSt9_IdentityImEN3P3D6Engine8RegistryImE14entity_compareESaImEE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeImmSt9_IdentityImEN3P3D6Engine8RegistryImE14entity_compareESaImEE13_Rb_tree_implIS6_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareIN3P3D6Engine8RegistryImE14entity_compareEE", !28, i64 0}
!28 = !{!"_ZTSN3P3D6Engine8RegistryImE14entity_compareE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !12, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{!"_ZTSSt6vectorIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt13unordered_mapItNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashItESt8equal_toItESaISt4pairIKtS5_EEE", !37, i64 0}
!37 = !{!"_ZTSSt10_HashtableItSt4pairIKtNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS8_ENSt8__detail10_Select1stESt8equal_toItESt4hashItENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !12, i64 8, !38, i64 16, !12, i64 24, !39, i64 32, !6, i64 48}
!38 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!39 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !40, i64 0, !12, i64 8}
!40 = !{!"float", !7, i64 0}
!41 = !{!"_ZTSSt5queueIjSt5dequeIjSaIjEEE", !42, i64 0}
!42 = !{!"_ZTSSt5dequeIjSaIjEE", !43, i64 0}
!43 = !{!"_ZTSSt11_Deque_baseIjSaIjEE", !44, i64 0}
!44 = !{!"_ZTSNSt11_Deque_baseIjSaIjEE11_Deque_implE", !45, i64 0}
!45 = !{!"_ZTSNSt11_Deque_baseIjSaIjEE16_Deque_impl_dataE", !6, i64 0, !12, i64 8, !46, i64 16, !46, i64 48}
!46 = !{!"_ZTSSt15_Deque_iteratorIjRjPjE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!47 = !{!"int", !7, i64 0}
!48 = !{!"_ZTSN3P3D6VectorIiLm2EEE", !7, i64 0}
!49 = !{!"_ZTSN3P3D11Application6CameraE", !7, i64 0, !50, i64 8, !50, i64 16, !18, i64 24, !51, i64 48, !50, i64 56, !50, i64 64, !18, i64 72, !51, i64 96, !51, i64 97, !52, i64 104, !50, i64 200, !50, i64 208, !51, i64 216, !50, i64 224, !40, i64 232, !40, i64 236, !40, i64 240, !40, i64 244, !55, i64 248, !55, i64 312, !55, i64 376, !55, i64 440, !55, i64 504, !6, i64 568}
!50 = !{!"double", !7, i64 0}
!51 = !{!"bool", !7, i64 0}
!52 = !{!"_ZTSN3P3D12GlobalCFrameE", !53, i64 0, !19, i64 24}
!53 = !{!"_ZTSN3P3D16PositionTemplateINS_3FixILl32EEEEE", !54, i64 0, !54, i64 8, !54, i64 16}
!54 = !{!"_ZTSN3P3D3FixILl32EEE", !12, i64 0}
!55 = !{!"_ZTSN3P3D6MatrixIfLm4ELm4EEE", !7, i64 0}
!56 = !{!"_ZTSN3P3D6Engine10LayerStackE", !57, i64 0, !47, i64 24}
!57 = !{!"_ZTSSt6vectorIPN3P3D6Engine5LayerESaIS3_EE", !58, i64 0}
!58 = !{!"_ZTSSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE12_Vector_implE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!61 = !{!"_ZTSN3P3D11Application12EventHandlerE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!62 = !{!"_ZTSN4Util10PropertiesE", !63, i64 0, !65, i64 32}
!63 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !64, i64 0, !12, i64 8, !7, i64 16}
!64 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!65 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !66, i64 0}
!66 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !67, i64 0}
!67 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !68, i64 0, !29, i64 8}
!68 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !69, i64 0}
!69 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!70 = !{!"_ZTSSt10shared_ptrIN3P3D8Graphics11FrameBufferEE", !71, i64 0}
!71 = !{!"_ZTSSt12__shared_ptrIN3P3D8Graphics11FrameBufferELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !72, i64 8}
!72 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!73 = !{!74, !74, i64 0}
!74 = !{!"vtable pointer", !8, i64 0}


; 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.P3D::Application::Selection" = type { %"class.std::optional", %"class.std::vector" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [7 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<P3D::BoundingBoxTemplate<double>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<P3D::BoundingBoxTemplate<double>>::_Storage" = type { %"struct.P3D::BoundingBoxTemplate" }
%"struct.P3D::BoundingBoxTemplate" = type { %"struct.P3D::Vector", %"struct.P3D::Vector" }
%"struct.P3D::Vector" = type { %union.anon.0 }
%union.anon.0 = type { [3 x double] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.P3D::Application::Screen" = type { %"class.P3D::Engine::Registry", ptr, ptr, %"struct.P3D::Vector.17", %"struct.P3D::Application::Camera", %"class.P3D::Engine::LayerStack", %"class.P3D::Application::EventHandler", %"class.Util::Properties", %"class.std::shared_ptr", ptr, ptr }
%"class.P3D::Engine::Registry" = type <{ %"class.std::set", %"class.std::vector.7", %"class.std::unordered_map", %"class.std::queue", i32, [4 x i8] }>
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.P3D::Vector.17" = type { %union.anon.18 }
%union.anon.18 = type { [2 x i32] }
%"struct.P3D::Application::Camera" = type { i8, double, double, %"struct.P3D::Vector", i8, double, double, %"struct.P3D::Vector", i8, i8, %"class.P3D::GlobalCFrame", double, double, i8, double, float, float, float, float, %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", ptr }
%"class.P3D::GlobalCFrame" = type { %"struct.P3D::PositionTemplate", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::PositionTemplate" = type { %"struct.P3D::Fix", %"struct.P3D::Fix", %"struct.P3D::Fix" }
%"struct.P3D::Fix" = type { i64 }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%"class.P3D::Matrix.20" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.21", i32, [4 x i8] }>
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.P3D::Application::EventHandler" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.Util::Properties" = type { %"class.std::__cxx11::basic_string", %"class.std::map" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.26" }
%"class.std::_Rb_tree.26" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.P3D::Application::PlayerWorld" = type { %"class.P3D::World" }
%"class.P3D::World" = type { %"class.P3D::WorldPrototype" }
%"class.P3D::WorldPrototype" = type { ptr, %"class.std::vector.32", %"class.std::vector.37", %"class.std::vector.42", %"class.std::vector.47", %"class.std::vector.52", %"class.std::vector.57", %"struct.P3D::ColissionBuffer", i64, i64, double }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.57" = type { %"struct.std::_Vector_base.58" }
%"struct.std::_Vector_base.58" = type { %"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.P3D::ColissionBuffer" = type { %"class.std::vector.62", %"class.std::vector.62" }
%"class.std::vector.62" = type { %"struct.std::_Vector_base.63" }
%"struct.std::_Vector_base.63" = type { %"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.P3D::intrusive_ptr" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.P3D::CFrameTemplate" = type { %"struct.P3D::Vector", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::AttachedPart" = type { %"struct.P3D::CFrameTemplate", ptr }
%"class.std::allocator" = type { i8 }

@_ZN3P3D11Application13SelectionTool9selectionE = external global %"struct.P3D::Application::Selection", align 8
@_ZN3P3D11Application6screenE = external global %"class.P3D::Application::Screen", align 8
@_ZTISt16invalid_argument = external constant ptr
@_ZN3P3D11Application5worldE = external global %"class.P3D::Application::PlayerWorld", align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D11Application17AlignmentLinkTool13linkSelectionEv() local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::intrusive_ptr", align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.P3D::intrusive_ptr", align 8
  %5 = alloca %"struct.P3D::CFrameTemplate", align 8
  %6 = alloca %"struct.P3D::AttachedPart", align 8
  %7 = alloca %"struct.P3D::AttachedPart", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = tail call noundef i64 @_ZNK3P3D11Application9Selection4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN3P3D11Application13SelectionTool9selectionE)
  %11 = icmp ult i64 %10, 2
  br i1 %11, label %114, label %12

12:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #11
  %13 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3P3D11Application9SelectionixEi(ptr noundef nonnull align 8 dereferenceable(80) @_ZN3P3D11Application13SelectionTool9selectionE, i32 noundef 0)
  call void @_ZN3P3D6Engine8RegistryImE3getINS_11Application4Comp8ColliderEEENS_13intrusive_ptrIT_EERKj(ptr dead_on_unwind nonnull writable sret(%"class.P3D::intrusive_ptr") align 8 %1, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %13) #11
  %14 = call noundef zeroext i1 @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEE7invalidEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  br i1 %14, label %113, label %15

15:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #11
  %16 = invoke ptr @_ZN3P3D11Application9Selection5beginEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN3P3D11Application13SelectionTool9selectionE)
          to label %17 unwind label %23

17:                                               ; preds = %15
  store ptr %16, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #11
  %18 = invoke ptr @_ZN3P3D11Application9Selection3endEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN3P3D11Application13SelectionTool9selectionE)
          to label %19 unwind label %27

19:                                               ; preds = %17
  store ptr %18, ptr %3, align 8
  %20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  br i1 %20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19
  %21 = getelementptr inbounds i8, ptr %6, i64 96
  %22 = getelementptr inbounds i8, ptr %7, i64 96
  br label %31

._crit_edge:                                      ; preds = %97, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #11
  br label %113

23:                                               ; preds = %15
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  %26 = extractvalue { ptr, i32 } %24, 1
  br label %110

27:                                               ; preds = %17
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  %30 = extractvalue { ptr, i32 } %28, 1
  br label %109

31:                                               ; preds = %.lr.ph, %97
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  call void @_ZN3P3D6Engine8RegistryImE3getINS_11Application4Comp8ColliderEEENS_13intrusive_ptrIT_EERKj(ptr dead_on_unwind nonnull writable sret(%"class.P3D::intrusive_ptr") align 8 %4, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %32) #11
  %33 = call noundef zeroext i1 @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEE7invalidEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  br i1 %33, label %97, label %34

34:                                               ; preds = %31
  %35 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = icmp eq ptr %37, %40
  br i1 %41, label %97, label %42

42:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %5) #11
  %43 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3P3D4Part9getCFrameEv(ptr noundef nonnull align 8 dereferenceable(200) %45)
  %47 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3P3D4Part9getCFrameEv(ptr noundef nonnull align 8 dereferenceable(200) %49)
  invoke void @_ZNK3P3D12GlobalCFrame13globalToLocalERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::CFrameTemplate") align 8 %5, ptr noundef nonnull align 8 dereferenceable(96) %46, ptr noundef nonnull align 8 dereferenceable(96) %50)
          to label %51 unwind label %64

51:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %6) #11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %6, ptr noundef nonnull align 8 dereferenceable(96) %5, i64 96, i1 false), !tbaa.struct !12
  %52 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  store ptr %54, ptr %21, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %7) #11
  invoke void @_ZN3P3D14CFrameTemplateIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %7)
          to label %55 unwind label %68

55:                                               ; preds = %51
  %56 = call noundef ptr @_ZNK3P3D13intrusive_ptrINS_11Application4Comp8ColliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  store ptr %58, ptr %22, align 8, !tbaa !14
  %59 = invoke noalias noundef nonnull dereferenceable(288) ptr @_Znwm(i64 noundef 288) #12
          to label %60 unwind label %72

60:                                               ; preds = %55
  invoke void @_ZN3P3D13AlignmentLinkC1ERKNS_12AttachedPartES3_(ptr noundef nonnull align 8 dereferenceable(288) %59, ptr noundef nonnull align 8 dereferenceable(104) %6, ptr noundef nonnull align 8 dereferenceable(104) %7)
          to label %61 unwind label %76

61:                                               ; preds = %60
  %62 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN3P3D11Application6screenE, i64 224), align 8, !tbaa !20
  invoke void @_ZN3P3D16UpgradeableMutex4lockEv(ptr noundef nonnull align 8 dereferenceable(96) %62)
          to label %63 unwind label %72

63:                                               ; preds = %61
  invoke void @_ZN3P3D14WorldPrototype7addLinkEPNS_8SoftLinkE(ptr noundef nonnull align 8 dereferenceable(224) @_ZN3P3D11Application5worldE, ptr noundef nonnull %59)
          to label %94 unwind label %80

64:                                               ; preds = %42
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  %67 = extractvalue { ptr, i32 } %65, 1
  br label %108

68:                                               ; preds = %51
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  %71 = extractvalue { ptr, i32 } %69, 1
  br label %.loopexit

72:                                               ; preds = %94, %61, %55
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  %75 = extractvalue { ptr, i32 } %73, 1
  br label %.loopexit

76:                                               ; preds = %60
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  %79 = extractvalue { ptr, i32 } %77, 1
  call void @_ZdlPvm(ptr noundef nonnull %59, i64 noundef 288) #13
  br label %.loopexit

80:                                               ; preds = %63
  %81 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt16invalid_argument
  %82 = extractvalue { ptr, i32 } %81, 0
  %83 = extractvalue { ptr, i32 } %81, 1
  %84 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt16invalid_argument) #11
  %85 = icmp eq i32 %83, %84
  br i1 %85, label %86, label %.loopexit

86:                                               ; preds = %80
  %87 = call ptr @__cxa_begin_catch(ptr %82) #11
  %88 = load ptr, ptr %87, align 8, !tbaa !72
  %89 = getelementptr inbounds i8, ptr %88, i64 16
  %90 = load ptr, ptr %89, align 8
  %91 = call noundef ptr %90(ptr noundef nonnull align 8 dereferenceable(16) %87) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef %91, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %92 unwind label %100

92:                                               ; preds = %86
  invoke void (ptr, ...) @_ZN3Log5debugENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEz(ptr noundef nonnull %8)
          to label %93 unwind label %102

93:                                               ; preds = %92
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #11
  invoke void @__cxa_end_catch()
          to label %94 unwind label %105

94:                                               ; preds = %93, %63
  %95 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN3P3D11Application6screenE, i64 224), align 8, !tbaa !20
  invoke void @_ZN3P3D16UpgradeableMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(96) %95)
          to label %96 unwind label %72

96:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #11
  br label %97

97:                                               ; preds = %34, %31, %96
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp8ColliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #11
  %99 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  br i1 %99, label %31, label %._crit_edge

100:                                              ; preds = %86
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %104

102:                                              ; preds = %92
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  br label %104

104:                                              ; preds = %102, %100
  %.pn = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #11
  invoke void @__cxa_end_catch()
          to label %107 unwind label %115

105:                                              ; preds = %93
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %107

107:                                              ; preds = %104, %105
  %.pn17 = phi { ptr, i32 } [ %106, %105 ], [ %.pn, %104 ]
  %.1 = extractvalue { ptr, i32 } %.pn17, 0
  %.19 = extractvalue { ptr, i32 } %.pn17, 1
  br label %.loopexit

.loopexit:                                        ; preds = %80, %72, %76, %107, %68
  %.311 = phi i32 [ %71, %68 ], [ %75, %72 ], [ %.19, %107 ], [ %79, %76 ], [ %83, %80 ]
  %.3 = phi ptr [ %70, %68 ], [ %74, %72 ], [ %.1, %107 ], [ %78, %76 ], [ %82, %80 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %6) #11
  br label %108

108:                                              ; preds = %.loopexit, %64
  %.412 = phi i32 [ %.311, %.loopexit ], [ %67, %64 ]
  %.4 = phi ptr [ %.3, %.loopexit ], [ %66, %64 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #11
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp8ColliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  br label %109

109:                                              ; preds = %108, %27
  %.513 = phi i32 [ %.412, %108 ], [ %30, %27 ]
  %.5 = phi ptr [ %.4, %108 ], [ %29, %27 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #11
  br label %110

110:                                              ; preds = %109, %23
  %.614 = phi i32 [ %.513, %109 ], [ %26, %23 ]
  %.6 = phi ptr [ %.5, %109 ], [ %25, %23 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #11
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp8ColliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #11
  %111 = insertvalue { ptr, i32 } poison, ptr %.6, 0
  %112 = insertvalue { ptr, i32 } %111, i32 %.614, 1
  resume { ptr, i32 } %112

113:                                              ; preds = %12, %._crit_edge
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp8ColliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #11
  br label %114

114:                                              ; preds = %0, %113
  ret void

115:                                              ; preds = %104
  %116 = landingpad { ptr, i32 }
          catch ptr null
  %117 = extractvalue { ptr, i32 } %116, 0
  call void @__clang_call_terminate(ptr %117) #14
  unreachable
}

declare noundef i64 @_ZNK3P3D11Application9Selection4sizeEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3getINS_11Application4Comp8ColliderEEENS_13intrusive_ptrIT_EERKj(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN3P3D11Application9SelectionixEi(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef) local_unnamed_addr #3

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

declare ptr @_ZN3P3D11Application9Selection5beginEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3

declare ptr @_ZN3P3D11Application9Selection3endEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3P3D4Part9getCFrameEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3P3D12GlobalCFrame13globalToLocalERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::CFrameTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #7

declare void @_ZN3P3D13AlignmentLinkC1ERKNS_12AttachedPartES3_(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #8

declare void @_ZN3P3D16UpgradeableMutex4lockEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3

declare void @_ZN3P3D14WorldPrototype7addLinkEPNS_8SoftLinkE(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #9

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @_ZN3Log5debugENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEz(ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #10

declare void @_ZN3P3D16UpgradeableMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3

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

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

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

attributes #0 = { mustprogress 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nobuiltin allocsize(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 #8 = { nobuiltin 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 #9 = { nofree nosync nounwind memory(none) }
attributes #10 = { noinline noreturn nounwind uwtable "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 #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin nounwind }
attributes #14 = { 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, !11, i64 16}
!6 = !{!"_ZTSN3P3D11Application4Comp8ColliderE", !7, i64 0, !11, i64 16}
!7 = !{!"_ZTSN3P3D2RCE", !8, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{i64 0, i64 24, !13, i64 24, i64 72, !13}
!13 = !{!9, !9, i64 0}
!14 = !{!15, !11, i64 96}
!15 = !{!"_ZTSN3P3D12AttachedPartE", !16, i64 0, !11, i64 96}
!16 = !{!"_ZTSN3P3D14CFrameTemplateIdEE", !17, i64 0, !18, i64 24}
!17 = !{!"_ZTSN3P3D6VectorIdLm3EEE", !9, i64 0}
!18 = !{!"_ZTSN3P3D22MatrixRotationTemplateIdEE", !19, i64 0}
!19 = !{!"_ZTSN3P3D6MatrixIdLm3ELm3EEE", !9, i64 0}
!20 = !{!21, !11, i64 224}
!21 = !{!"_ZTSN3P3D11Application6ScreenE", !22, i64 0, !11, i64 216, !11, i64 224, !47, i64 232, !48, i64 240, !55, i64 816, !60, i64 848, !61, i64 912, !69, i64 992, !11, i64 1008, !11, i64 1016}
!22 = !{!"_ZTSN3P3D6Engine8RegistryImEE", !23, i64 0, !31, i64 48, !35, i64 72, !40, i64 128, !46, i64 208}
!23 = !{!"_ZTSSt3setImN3P3D6Engine8RegistryImE14entity_compareESaImEE", !24, i64 0}
!24 = !{!"_ZTSSt8_Rb_treeImmSt9_IdentityImEN3P3D6Engine8RegistryImE14entity_compareESaImEE", !25, i64 0}
!25 = !{!"_ZTSNSt8_Rb_treeImmSt9_IdentityImEN3P3D6Engine8RegistryImE14entity_compareESaImEE13_Rb_tree_implIS6_Lb1EEE", !26, i64 0, !28, i64 8}
!26 = !{!"_ZTSSt20_Rb_tree_key_compareIN3P3D6Engine8RegistryImE14entity_compareEE", !27, i64 0}
!27 = !{!"_ZTSN3P3D6Engine8RegistryImE14entity_compareE"}
!28 = !{!"_ZTSSt15_Rb_tree_header", !29, i64 0, !8, i64 32}
!29 = !{!"_ZTSSt18_Rb_tree_node_base", !30, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!30 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}
!31 = !{!"_ZTSSt6vectorIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!35 = !{!"_ZTSSt13unordered_mapItNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashItESt8equal_toItESaISt4pairIKtS5_EEE", !36, i64 0}
!36 = !{!"_ZTSSt10_HashtableItSt4pairIKtNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS8_ENSt8__detail10_Select1stESt8equal_toItESt4hashItENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !8, i64 8, !37, i64 16, !8, i64 24, !38, i64 32, !11, i64 48}
!37 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!38 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !39, i64 0, !8, i64 8}
!39 = !{!"float", !9, i64 0}
!40 = !{!"_ZTSSt5queueIjSt5dequeIjSaIjEEE", !41, i64 0}
!41 = !{!"_ZTSSt5dequeIjSaIjEE", !42, i64 0}
!42 = !{!"_ZTSSt11_Deque_baseIjSaIjEE", !43, i64 0}
!43 = !{!"_ZTSNSt11_Deque_baseIjSaIjEE11_Deque_implE", !44, i64 0}
!44 = !{!"_ZTSNSt11_Deque_baseIjSaIjEE16_Deque_impl_dataE", !11, i64 0, !8, i64 8, !45, i64 16, !45, i64 48}
!45 = !{!"_ZTSSt15_Deque_iteratorIjRjPjE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!46 = !{!"int", !9, i64 0}
!47 = !{!"_ZTSN3P3D6VectorIiLm2EEE", !9, i64 0}
!48 = !{!"_ZTSN3P3D11Application6CameraE", !9, i64 0, !49, i64 8, !49, i64 16, !17, i64 24, !50, i64 48, !49, i64 56, !49, i64 64, !17, i64 72, !50, i64 96, !50, i64 97, !51, i64 104, !49, i64 200, !49, i64 208, !50, i64 216, !49, i64 224, !39, i64 232, !39, i64 236, !39, i64 240, !39, i64 244, !54, i64 248, !54, i64 312, !54, i64 376, !54, i64 440, !54, i64 504, !11, i64 568}
!49 = !{!"double", !9, i64 0}
!50 = !{!"bool", !9, i64 0}
!51 = !{!"_ZTSN3P3D12GlobalCFrameE", !52, i64 0, !18, i64 24}
!52 = !{!"_ZTSN3P3D16PositionTemplateINS_3FixILl32EEEEE", !53, i64 0, !53, i64 8, !53, i64 16}
!53 = !{!"_ZTSN3P3D3FixILl32EEE", !8, i64 0}
!54 = !{!"_ZTSN3P3D6MatrixIfLm4ELm4EEE", !9, i64 0}
!55 = !{!"_ZTSN3P3D6Engine10LayerStackE", !56, i64 0, !46, i64 24}
!56 = !{!"_ZTSSt6vectorIPN3P3D6Engine5LayerESaIS3_EE", !57, i64 0}
!57 = !{!"_ZTSSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE12_Vector_implE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!60 = !{!"_ZTSN3P3D11Application12EventHandlerE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56}
!61 = !{!"_ZTSN4Util10PropertiesE", !62, i64 0, !64, i64 32}
!62 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !63, i64 0, !8, i64 8, !9, i64 16}
!63 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!64 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !65, i64 0}
!65 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !66, i64 0}
!66 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !67, i64 0, !28, i64 8}
!67 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !68, i64 0}
!68 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!69 = !{!"_ZTSSt10shared_ptrIN3P3D8Graphics11FrameBufferEE", !70, i64 0}
!70 = !{!"_ZTSSt12__shared_ptrIN3P3D8Graphics11FrameBufferELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !71, i64 8}
!71 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0}
!72 = !{!73, !73, i64 0}
!73 = !{!"vtable pointer", !10, i64 0}


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