; LLVM IR from ThePhysicsGuys/Physics3D :: application (extendedPart)

; 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.P3D::Application::Screen" = type { %"class.P3D::Engine::Registry", ptr, ptr, %"struct.P3D::Vector.11", %"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", %"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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.11" = type { %union.anon.12 }
%union.anon.12 = 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.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", ptr }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"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.14" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.15", i32, [4 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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.23 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.23 = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.24" }
%"class.std::_Rb_tree.24" = 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::intrusive_ptr.30" = type { ptr }
%"class.P3D::intrusive_ptr.31" = type { ptr }
%"class.P3D::intrusive_ptr.32" = type { ptr }
%"class.P3D::intrusive_ptr.29" = type { ptr }
%"struct.P3D::Graphics::Comp::Mesh" = type <{ %"struct.P3D::RC", i64, i32, i8, [3 x i8] }>
%"struct.P3D::RC" = type { ptr, i64 }
%"struct.P3D::Application::ExtendedPart" = type <{ %"class.P3D::Part", i32, [4 x i8] }>
%"class.P3D::Part" = type { %"class.P3D::GlobalCFrame", ptr, ptr, %"class.P3D::Shape", double, %"struct.P3D::PartProperties" }
%"class.P3D::Shape" = type { %"class.P3D::intrusive_ptr", %"class.P3D::DiagonalMatrix" }
%"class.P3D::intrusive_ptr" = type { ptr }
%"class.P3D::DiagonalMatrix" = type { [3 x double] }
%"struct.P3D::PartProperties" = type { double, double, double, %"struct.P3D::Vector" }

@_ZN3P3D6Engine8RegistryImE11null_entityE = external dso_local global i32, align 4
@_ZN3P3D11Application6screenE = external global %"class.P3D::Application::Screen", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3P3D6Engine8RegistryImE6createERKj(ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D6Engine8RegistryImE9setParentERKjS4_(ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

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

; 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 void @_ZN3P3D13intrusive_ptrINS_11Application4Comp6HitboxEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 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: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp9TransformEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr.31") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

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

declare void @_ZN3P3D8Graphics12MeshRegistry7getMeshEPKNS_10ShapeClassE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Comp::Mesh") align 8, ptr noundef) #2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3P3D4PartD2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D11Application12ExtendedPartC2ERKNS_5ShapeEPS1_RKNS_14CFrameTemplateIdEERKNS_14PartPropertiesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKj(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(96) %3, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.P3D::intrusive_ptr.29", align 8
  %16 = alloca %"struct.P3D::Graphics::Comp::Mesh", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.P3D::intrusive_ptr.30", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.P3D::intrusive_ptr.31", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.P3D::intrusive_ptr.32", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN3P3D4PartC2ERKNS_5ShapeERS0_RKNS_14CFrameTemplateIdEERKNS_14PartPropertiesE(ptr noundef nonnull align 8 dereferenceable(200) %24, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(200) %26, ptr noundef nonnull align 8 dereferenceable(96) %27, ptr noundef nonnull align 8 dereferenceable(48) %28)
  %29 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %24, i32 0, i32 1
  store i32 0, ptr %29, align 8, !tbaa !9
  %30 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %24, i32 0, i32 1
  %31 = load i32, ptr %30, align 8, !tbaa !9
  %32 = load i32, ptr @_ZN3P3D6Engine8RegistryImE11null_entityE, align 4, !tbaa !25
  %33 = icmp eq i32 %31, %32
  br i1 %33, label %34, label %37

34:                                               ; preds = %7
  %35 = call noundef i32 @_ZN3P3D6Engine8RegistryImE6createERKj(ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) @_ZN3P3D6Engine8RegistryImE11null_entityE) #5
  %36 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %24, i32 0, i32 1
  store i32 %35, ptr %36, align 8, !tbaa !9
  br label %37

37:                                               ; preds = %34, %7
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = load i32, ptr %38, align 4, !tbaa !25
  %40 = load i32, ptr @_ZN3P3D6Engine8RegistryImE11null_entityE, align 4, !tbaa !25
  %41 = icmp ne i32 %39, %40
  br i1 %41, label %42, label %46

42:                                               ; preds = %37
  %43 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %24, i32 0, i32 1
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = call noundef zeroext i1 @_ZN3P3D6Engine8RegistryImE9setParentERKjS4_(ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44) #5
  br label %46

46:                                               ; preds = %42, %37
  %47 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %24, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.P3D::Shape", ptr %48, i32 0, i32 0
  %50 = call noundef ptr @_ZNK3P3D13intrusive_ptrIKNS_10ShapeClassEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #5
  invoke void @_ZN3P3D8Graphics12MeshRegistry7getMeshEPKNS_10ShapeClassE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Comp::Mesh") align 8 %16, ptr noundef %50)
          to label %51 unwind label %59

51:                                               ; preds = %46
  call void @_ZN3P3D6Engine8RegistryImE3addINS_8Graphics4Comp4MeshEJS6_EEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind writable sret(%"class.P3D::intrusive_ptr.29") align 8 %15, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 8 dereferenceable(29) %16) #5
  call void @_ZN3P3D13intrusive_ptrINS_8Graphics4Comp4MeshEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @_ZN3P3D2RCD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  %52 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %24, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store ptr %24, ptr %20, align 8, !tbaa !5
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp6HitboxEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind writable sret(%"class.P3D::intrusive_ptr.30") align 8 %19, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp6HitboxEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %53 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %24, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store ptr %24, ptr %22, align 8, !tbaa !5
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp9TransformEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind writable sret(%"class.P3D::intrusive_ptr.31") align 8 %21, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %53, ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp9TransformEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %54) #5
  br i1 %55, label %63, label %56

56:                                               ; preds = %51
  %57 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %24, i32 0, i32 1
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp4NameEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind writable sret(%"class.P3D::intrusive_ptr.32") align 8 %23, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %57, ptr noundef nonnull align 8 dereferenceable(32) %58) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp4NameEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  br label %63

59:                                               ; preds = %46
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %17, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  call void @_ZN3P3D4PartD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %24) #5
  br label %64

63:                                               ; preds = %56, %51
  ret void

64:                                               ; preds = %59
  %65 = load ptr, ptr %17, align 8
  %66 = load i32, ptr %18, align 4
  %67 = insertvalue { ptr, i32 } poison, ptr %65, 0
  %68 = insertvalue { ptr, i32 } %67, i32 %66, 1
  resume { ptr, i32 } %68
}

declare void @_ZN3P3D4PartC2ERKNS_5ShapeERS0_RKNS_14CFrameTemplateIdEERKNS_14PartPropertiesE(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !24, i64 200}
!10 = !{!"_ZTSN3P3D11Application12ExtendedPartE", !11, i64 0, !24, i64 200}
!11 = !{!"_ZTSN3P3D4PartE", !12, i64 0, !6, i64 96, !6, i64 104, !18, i64 112, !21, i64 144, !22, i64 152}
!12 = !{!"_ZTSN3P3D12GlobalCFrameE", !13, i64 0, !16, i64 24}
!13 = !{!"_ZTSN3P3D16PositionTemplateINS_3FixILl32EEEEE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"_ZTSN3P3D3FixILl32EEE", !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN3P3D22MatrixRotationTemplateIdEE", !17, i64 0}
!17 = !{!"_ZTSN3P3D6MatrixIdLm3ELm3EEE", !7, i64 0}
!18 = !{!"_ZTSN3P3D5ShapeE", !19, i64 0, !20, i64 8}
!19 = !{!"_ZTSN3P3D13intrusive_ptrIKNS_10ShapeClassEEE", !6, i64 0}
!20 = !{!"_ZTSN3P3D14DiagonalMatrixIdLm3EEE", !7, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = !{!"_ZTSN3P3D14PartPropertiesE", !21, i64 0, !21, i64 8, !21, i64 16, !23, i64 24}
!23 = !{!"_ZTSN3P3D6VectorIdLm3EEE", !7, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!24, !24, 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"

%"class.P3D::Application::Screen" = type { %"class.P3D::Engine::Registry", ptr, ptr, %"struct.P3D::Vector.11", %"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", %"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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.11" = type { %union.anon.12 }
%union.anon.12 = 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.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", ptr }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"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.14" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.15", i32, [4 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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.23 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.23 = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.24" }
%"class.std::_Rb_tree.24" = 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::intrusive_ptr.30" = type { ptr }
%"class.P3D::intrusive_ptr.31" = type { ptr }
%"class.P3D::intrusive_ptr.32" = type { ptr }
%"class.P3D::intrusive_ptr.29" = type { ptr }
%"struct.P3D::Graphics::Comp::Mesh" = type <{ %"struct.P3D::RC", i64, i32, i8, [3 x i8] }>
%"struct.P3D::RC" = type { ptr, i64 }

@_ZN3P3D6Engine8RegistryImE11null_entityE = external dso_local global i32, align 4
@_ZN3P3D11Application6screenE = external global %"class.P3D::Application::Screen", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3P3D6Engine8RegistryImE6createERKj(ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

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

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

; 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 void @_ZN3P3D13intrusive_ptrINS_11Application4Comp6HitboxEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 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 nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp9TransformEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr.31") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

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

declare void @_ZN3P3D8Graphics12MeshRegistry7getMeshEPKNS_10ShapeClassE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Comp::Mesh") align 8, ptr noundef) local_unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3P3D4PartD2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D11Application12ExtendedPartC2ERKNS_5ShapeEPS1_RKNS_14CFrameTemplateIdEERKNS_14PartPropertiesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKj(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %2, ptr noundef nonnull align 8 dereferenceable(96) %3, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.P3D::intrusive_ptr.29", align 8
  %9 = alloca %"struct.P3D::Graphics::Comp::Mesh", align 8
  %10 = alloca %"class.P3D::intrusive_ptr.30", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.P3D::intrusive_ptr.31", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.P3D::intrusive_ptr.32", align 8
  tail call void @_ZN3P3D4PartC2ERKNS_5ShapeERS0_RKNS_14CFrameTemplateIdEERKNS_14PartPropertiesE(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(200) %2, ptr noundef nonnull align 8 dereferenceable(96) %3, ptr noundef nonnull align 8 dereferenceable(48) %4)
  %15 = getelementptr inbounds i8, ptr %0, i64 200
  store i32 0, ptr %15, align 8, !tbaa !5
  %16 = load i32, ptr @_ZN3P3D6Engine8RegistryImE11null_entityE, align 4, !tbaa !24
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %20

18:                                               ; preds = %7
  %19 = tail call noundef i32 @_ZN3P3D6Engine8RegistryImE6createERKj(ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) @_ZN3P3D6Engine8RegistryImE11null_entityE) #5
  store i32 %19, ptr %15, align 8, !tbaa !5
  %.pre = load i32, ptr @_ZN3P3D6Engine8RegistryImE11null_entityE, align 4, !tbaa !24
  br label %20

20:                                               ; preds = %18, %7
  %21 = phi i32 [ %.pre, %18 ], [ %16, %7 ]
  %22 = load i32, ptr %6, align 4, !tbaa !24
  %.not = icmp eq i32 %22, %21
  br i1 %.not, label %25, label %23

23:                                               ; preds = %20
  %24 = tail call noundef zeroext i1 @_ZN3P3D6Engine8RegistryImE9setParentERKjS4_(ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %6) #5
  br label %25

25:                                               ; preds = %23, %20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %26 = tail call noundef ptr @_ZNK3P3D13intrusive_ptrIKNS_10ShapeClassEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  invoke void @_ZN3P3D8Graphics12MeshRegistry7getMeshEPKNS_10ShapeClassE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Comp::Mesh") align 8 %9, ptr noundef %26)
          to label %27 unwind label %30

27:                                               ; preds = %25
  call void @_ZN3P3D6Engine8RegistryImE3addINS_8Graphics4Comp4MeshEJS6_EEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::intrusive_ptr.29") align 8 %8, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 8 dereferenceable(29) %9) #5
  call void @_ZN3P3D13intrusive_ptrINS_8Graphics4Comp4MeshEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @_ZN3P3D2RCD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  store ptr %0, ptr %11, align 8, !tbaa !25
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp6HitboxEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::intrusive_ptr.30") align 8 %10, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp6HitboxEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  store ptr %0, ptr %13, align 8, !tbaa !25
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp9TransformEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::intrusive_ptr.31") align 8 %12, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp9TransformEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  %28 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br i1 %28, label %32, label %29

29:                                               ; preds = %27
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp4NameEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::intrusive_ptr.32") align 8 %14, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp4NameEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br label %32

30:                                               ; preds = %25
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @_ZN3P3D4PartD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %0) #5
  resume { ptr, i32 } %31

32:                                               ; preds = %29, %27
  ret void
}

declare void @_ZN3P3D4PartC2ERKNS_5ShapeERS0_RKNS_14CFrameTemplateIdEERKNS_14PartPropertiesE(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !23, i64 200}
!6 = !{!"_ZTSN3P3D11Application12ExtendedPartE", !7, i64 0, !23, i64 200}
!7 = !{!"_ZTSN3P3D4PartE", !8, i64 0, !16, i64 96, !16, i64 104, !17, i64 112, !20, i64 144, !21, i64 152}
!8 = !{!"_ZTSN3P3D12GlobalCFrameE", !9, i64 0, !14, i64 24}
!9 = !{!"_ZTSN3P3D16PositionTemplateINS_3FixILl32EEEEE", !10, i64 0, !10, i64 8, !10, i64 16}
!10 = !{!"_ZTSN3P3D3FixILl32EEE", !11, i64 0}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN3P3D22MatrixRotationTemplateIdEE", !15, i64 0}
!15 = !{!"_ZTSN3P3D6MatrixIdLm3ELm3EEE", !12, i64 0}
!16 = !{!"any pointer", !12, i64 0}
!17 = !{!"_ZTSN3P3D5ShapeE", !18, i64 0, !19, i64 8}
!18 = !{!"_ZTSN3P3D13intrusive_ptrIKNS_10ShapeClassEEE", !16, i64 0}
!19 = !{!"_ZTSN3P3D14DiagonalMatrixIdLm3EEE", !12, i64 0}
!20 = !{!"double", !12, i64 0}
!21 = !{!"_ZTSN3P3D14PartPropertiesE", !20, i64 0, !20, i64 8, !20, i64 16, !22, i64 24}
!22 = !{!"_ZTSN3P3D6VectorIdLm3EEE", !12, i64 0}
!23 = !{!"int", !12, i64 0}
!24 = !{!23, !23, i64 0}
!25 = !{!16, !16, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass