; LLVM IR from yangfengzzz/DigitalVox4 :: editor (imgui_node_editor)

; 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.vox::NodeEditor::NodeId" = type { %"struct.vox::NodeEditor::Details::SafePointerType.6" }
%"struct.vox::NodeEditor::Details::SafePointerType.6" = type { %"struct.vox::NodeEditor::Details::SafeType.7" }
%"struct.vox::NodeEditor::Details::SafeType.7" = type { i64 }
%"struct.vox::NodeEditor::Detail::ObjectId" = type <{ %"struct.vox::NodeEditor::Details::SafePointerType.38", i32, [4 x i8] }>
%"struct.vox::NodeEditor::Details::SafePointerType.38" = type { %"struct.vox::NodeEditor::Details::SafeType.39" }
%"struct.vox::NodeEditor::Details::SafeType.39" = type { i64 }
%"struct.vox::NodeEditor::Detail::ObjectWrapper.70" = type { %"struct.vox::NodeEditor::NodeId", ptr }
%struct.ImVec2 = type { float, float }
%"struct.vox::NodeEditor::Detail::EditorContext" = type { i8, i8, i8, %"struct.vox::NodeEditor::Detail::Style", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.23", %"class.std::vector.28", %"class.std::vector.28", i64, ptr, %"class.std::vector.33", %"class.std::vector.33", %"struct.ImGuiEx::Canvas", i8, %"struct.vox::NodeEditor::Detail::NodeBuilder", %"struct.vox::NodeEditor::Detail::HintBuilder", ptr, %"struct.vox::NodeEditor::Detail::NavigateAction", %"struct.vox::NodeEditor::Detail::SizeAction", %"struct.vox::NodeEditor::Detail::DragAction", %"struct.vox::NodeEditor::Detail::SelectAction", %"struct.vox::NodeEditor::Detail::ContextMenuAction", %"struct.vox::NodeEditor::Detail::ShortcutAction", %"struct.vox::NodeEditor::Detail::CreateItemAction", %"struct.vox::NodeEditor::Detail::DeleteItemsAction", %"class.std::vector.40", %"struct.vox::NodeEditor::Detail::FlowAnimationController", %"struct.vox::NodeEditor::NodeId", %"struct.vox::NodeEditor::PinId", %"struct.vox::NodeEditor::LinkId", i8, i8, i8, [5 x i8], %"struct.vox::NodeEditor::Detail::Settings", %"struct.vox::NodeEditor::Detail::Config", i32, %struct.ImDrawListSplitter }
%"struct.vox::NodeEditor::Detail::Style" = type { %"struct.vox::NodeEditor::Style", %"class.std::vector", %"class.std::vector.8" }
%"struct.vox::NodeEditor::Style" = type { %struct.ImVec4, float, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, [18 x %struct.ImVec4] }
%struct.ImVec4 = type { float, float, float, float }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::ColorModifier, std::allocator<vox::NodeEditor::Detail::Style::ColorModifier>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::ColorModifier, std::allocator<vox::NodeEditor::Detail::Style::ColorModifier>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::ColorModifier, std::allocator<vox::NodeEditor::Detail::Style::ColorModifier>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::ColorModifier, std::allocator<vox::NodeEditor::Detail::Style::ColorModifier>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::VarModifier, std::allocator<vox::NodeEditor::Detail::Style::VarModifier>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::VarModifier, std::allocator<vox::NodeEditor::Detail::Style::VarModifier>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::VarModifier, std::allocator<vox::NodeEditor::Detail::Style::VarModifier>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::VarModifier, std::allocator<vox::NodeEditor::Detail::Style::VarModifier>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Object *, std::allocator<vox::NodeEditor::Detail::Object *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Object *, std::allocator<vox::NodeEditor::Detail::Object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Object *, std::allocator<vox::NodeEditor::Detail::Object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Object *, std::allocator<vox::NodeEditor::Detail::Object *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Animation *, std::allocator<vox::NodeEditor::Detail::Animation *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Animation *, std::allocator<vox::NodeEditor::Detail::Animation *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Animation *, std::allocator<vox::NodeEditor::Detail::Animation *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Animation *, std::allocator<vox::NodeEditor::Detail::Animation *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ImGuiEx::Canvas" = type <{ i8, [3 x i8], %struct.ImVec2, %struct.ImVec2, %struct.ImRect, [4 x i8], ptr, i32, i32, i32, %"struct.ImGuiEx::CanvasView", %struct.ImRect, %struct.ImVec2, i32, float, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], %struct.ImVec2, [4 x i8] }>
%"struct.ImGuiEx::CanvasView" = type { %struct.ImVec2, float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%"struct.vox::NodeEditor::Detail::NodeBuilder" = type { ptr, ptr, ptr, %struct.ImRect, %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, %struct.ImRect, i8, %struct.ImDrawListSplitter, %struct.ImDrawListSplitter }
%"struct.vox::NodeEditor::Detail::HintBuilder" = type { ptr, i8, ptr, float, i32 }
%"struct.vox::NodeEditor::Detail::NavigateAction" = type <{ %"struct.vox::NodeEditor::Detail::EditorAction", i8, [3 x i8], float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, ptr, %struct.ImVec2, %struct.ImVec2, %"struct.vox::NodeEditor::Detail::NavigateAnimation", i32, [4 x i8], i64, ptr, i8, [3 x i8], %struct.ImVec2, [4 x i8] }>
%"struct.vox::NodeEditor::Detail::EditorAction" = type { ptr, ptr }
%"struct.vox::NodeEditor::Detail::NavigateAnimation" = type { %"struct.vox::NodeEditor::Detail::Animation.base", ptr, %struct.ImRect, %struct.ImRect }
%"struct.vox::NodeEditor::Detail::Animation.base" = type <{ ptr, ptr, i32, float, float }>
%"struct.vox::NodeEditor::Detail::SizeAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, ptr, %struct.ImRect, %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i32 }
%"struct.vox::NodeEditor::Detail::DragAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, ptr, %"class.std::vector.28" }
%"struct.vox::NodeEditor::Detail::SelectAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, i8, i8, %struct.ImVec2, %struct.ImVec2, %"class.std::vector.28", %"class.std::vector.28", %"struct.vox::NodeEditor::Detail::Animation" }
%"struct.vox::NodeEditor::Detail::Animation" = type <{ ptr, ptr, i32, float, float, [4 x i8] }>
%"struct.vox::NodeEditor::Detail::ContextMenuAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i32, i32, %"struct.vox::NodeEditor::Detail::ObjectId" }
%"struct.vox::NodeEditor::Detail::ShortcutAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, i32, %"class.std::vector.28" }
%"struct.vox::NodeEditor::Detail::CreateItemAction" = type <{ %"struct.vox::NodeEditor::Detail::EditorAction", i8, [3 x i8], i32, i32, i32, i32, i32, float, [4 x i8], ptr, ptr, i8, [7 x i8], ptr, i32, i8, [3 x i8] }>
%"struct.vox::NodeEditor::Detail::DeleteItemsAction" = type <{ %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, [6 x i8], %"class.std::vector.28", i32, i32, %"class.std::vector.28", i32, [4 x i8] }>
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::AnimationController *, std::allocator<vox::NodeEditor::Detail::AnimationController *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::AnimationController *, std::allocator<vox::NodeEditor::Detail::AnimationController *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::AnimationController *, std::allocator<vox::NodeEditor::Detail::AnimationController *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::AnimationController *, std::allocator<vox::NodeEditor::Detail::AnimationController *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vox::NodeEditor::Detail::FlowAnimationController" = type { %"struct.vox::NodeEditor::Detail::AnimationController", %"class.std::vector.45", %"class.std::vector.45" }
%"struct.vox::NodeEditor::Detail::AnimationController" = type { ptr, ptr }
%"class.std::vector.45" = type { %"struct.std::_Vector_base.46" }
%"struct.std::_Vector_base.46" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation *, std::allocator<vox::NodeEditor::Detail::FlowAnimation *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation *, std::allocator<vox::NodeEditor::Detail::FlowAnimation *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation *, std::allocator<vox::NodeEditor::Detail::FlowAnimation *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation *, std::allocator<vox::NodeEditor::Detail::FlowAnimation *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vox::NodeEditor::PinId" = type { %"struct.vox::NodeEditor::Details::SafePointerType" }
%"struct.vox::NodeEditor::Details::SafePointerType" = type { %"struct.vox::NodeEditor::Details::SafeType" }
%"struct.vox::NodeEditor::Details::SafeType" = type { i64 }
%"struct.vox::NodeEditor::LinkId" = type { %"struct.vox::NodeEditor::Details::SafePointerType.50" }
%"struct.vox::NodeEditor::Details::SafePointerType.50" = type { %"struct.vox::NodeEditor::Details::SafeType.51" }
%"struct.vox::NodeEditor::Details::SafeType.51" = type { i64 }
%"struct.vox::NodeEditor::Detail::Settings" = type <{ i8, [3 x i8], i32, %"class.std::vector.52", %"class.std::vector.57", %struct.ImVec2, float, [4 x i8] }>
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::NodeSettings, std::allocator<vox::NodeEditor::Detail::NodeSettings>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::NodeSettings, std::allocator<vox::NodeEditor::Detail::NodeSettings>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::NodeSettings, std::allocator<vox::NodeEditor::Detail::NodeSettings>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::NodeSettings, std::allocator<vox::NodeEditor::Detail::NodeSettings>>::_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<vox::NodeEditor::Detail::ObjectId, std::allocator<vox::NodeEditor::Detail::ObjectId>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectId, std::allocator<vox::NodeEditor::Detail::ObjectId>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectId, std::allocator<vox::NodeEditor::Detail::ObjectId>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectId, std::allocator<vox::NodeEditor::Detail::ObjectId>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vox::NodeEditor::Detail::Config" = type { %"struct.vox::NodeEditor::Config" }
%"struct.vox::NodeEditor::Config" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%"struct.vox::NodeEditor::Detail::NodeSettings" = type { %"struct.vox::NodeEditor::NodeId", %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i32 }
%"struct.vox::NodeEditor::Detail::Node" = type <{ %"struct.vox::NodeEditor::Detail::Object.base", [7 x i8], %"struct.vox::NodeEditor::NodeId", i32, %struct.ImRect, i32, ptr, %struct.ImVec2, i32, i32, float, float, i32, i32, float, float, %struct.ImRect, i8, i8, [6 x i8] }>
%"struct.vox::NodeEditor::Detail::Object.base" = type <{ ptr, ptr, i8 }>
%"struct.vox::NodeEditor::Detail::Object" = type <{ ptr, ptr, i8, [7 x i8] }>

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail13EditorContext10CreateNodeENS0_6NodeIdE = external hidden unnamed_addr constant [69 x i8], align 1

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; 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) #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10FindObjectENS1_8ObjectIdE(ptr noundef nonnull align 8 dereferenceable(2040), i64, i32) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10CreateNodeENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(2040) %0, i64 %1) #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.vox::NodeEditor::NodeId", align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %6 = alloca %"struct.vox::NodeEditor::NodeId", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.vox::NodeEditor::NodeId", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.vox::NodeEditor::Detail::ObjectWrapper.70", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.vox::NodeEditor::NodeId", align 8
  %14 = alloca %"struct.vox::NodeEditor::NodeId", align 8
  %15 = alloca %struct.ImVec2, align 4
  %16 = getelementptr inbounds %"struct.vox::NodeEditor::NodeId", ptr %3, i32 0, i32 0
  %17 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType.6", ptr %16, i32 0, i32 0
  %18 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType.7", ptr %17, i32 0, i32 0
  store i64 %1, ptr %18, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %3, i64 8, i1 false)
  %20 = getelementptr inbounds %"struct.vox::NodeEditor::NodeId", ptr %6, i32 0, i32 0
  %21 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType.6", ptr %20, i32 0, i32 0
  %22 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType.7", ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 %23)
  %24 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 0
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 1
  %27 = load i32, ptr %26, align 8
  %28 = call noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10FindObjectENS1_8ObjectIdE(ptr noundef nonnull align 8 dereferenceable(2040) %19, i64 %25, i32 %27)
  %29 = icmp eq ptr null, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %2
  br label %33

31:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1567, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail13EditorContext10CreateNodeENS0_6NodeIdE) #9
  unreachable

32:                                               ; No predecessors!
  br label %33

33:                                               ; preds = %32, %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %34 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 128) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %3, i64 8, i1 false)
  %35 = getelementptr inbounds %"struct.vox::NodeEditor::NodeId", ptr %8, i32 0, i32 0
  %36 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType.6", ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType.7", ptr %36, i32 0, i32 0
  %38 = load i64, ptr %37, align 8
  invoke void @_ZN3vox10NodeEditor6Detail4NodeC2EPNS1_13EditorContextENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(128) %34, ptr noundef %19, i64 %38)
          to label %39 unwind label %59

39:                                               ; preds = %33
  store ptr %34, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorContext", ptr %19, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #10
  %41 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ObjectWrapper.70", ptr %11, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %3, i64 8, i1 false)
  %42 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ObjectWrapper.70", ptr %11, i32 0, i32 1
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %43, ptr %42, align 8, !tbaa !9
  call void @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_4NodeENS1_6NodeIdEEESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %44 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorContext", ptr %19, i32 0, i32 35
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %3, i64 8, i1 false)
  %45 = getelementptr inbounds %"struct.vox::NodeEditor::NodeId", ptr %13, i32 0, i32 0
  %46 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType.6", ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType.7", ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8
  %49 = call noundef ptr @_ZN3vox10NodeEditor6Detail8Settings8FindNodeENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(68) %44, i64 %48)
  store ptr %49, ptr %12, align 8, !tbaa !5
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %63, label %52

52:                                               ; preds = %39
  %53 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorContext", ptr %19, i32 0, i32 35
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %3, i64 8, i1 false)
  %54 = getelementptr inbounds %"struct.vox::NodeEditor::NodeId", ptr %14, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType.6", ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType.7", ptr %55, i32 0, i32 0
  %57 = load i64, ptr %56, align 8
  %58 = call noundef ptr @_ZN3vox10NodeEditor6Detail8Settings7AddNodeENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(68) %53, i64 %57)
  store ptr %58, ptr %12, align 8, !tbaa !5
  br label %63

59:                                               ; preds = %33
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %9, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %34, i64 noundef 128) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  br label %120

63:                                               ; preds = %52, %39
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeSettings", ptr %64, i32 0, i32 4
  %66 = load i8, ptr %65, align 8, !tbaa !15, !range !21, !noundef !22
  %67 = trunc i8 %66 to i1
  br i1 %67, label %72, label %68

68:                                               ; preds = %63
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeSettings", ptr %69, i32 0, i32 4
  store i8 1, ptr %70, align 8, !tbaa !15
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3vox10NodeEditor6Detail13EditorContext16RestoreNodeStateEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(2040) %19, ptr noundef %71)
  br label %72

72:                                               ; preds = %68, %63
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeSettings", ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %75, i32 0, i32 4
  %77 = getelementptr inbounds %struct.ImRect, ptr %76, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 8 %74, i64 8, i1 false), !tbaa.struct !23
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %78, i32 0, i32 4
  %80 = getelementptr inbounds %struct.ImRect, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %81, i32 0, i32 4
  %83 = getelementptr inbounds %struct.ImRect, ptr %82, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %83, ptr align 4 %80, i64 8, i1 false), !tbaa.struct !23
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %84, i32 0, i32 4
  call void @_ZN6ImRect5FloorEv(ptr noundef nonnull align 4 dereferenceable(16) %85)
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeSettings", ptr %86, i32 0, i32 3
  %88 = getelementptr inbounds %struct.ImVec2, ptr %87, i32 0, i32 0
  %89 = load float, ptr %88, align 8, !tbaa !25
  %90 = fcmp ogt float %89, 0.000000e+00
  br i1 %90, label %97, label %91

91:                                               ; preds = %72
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeSettings", ptr %92, i32 0, i32 3
  %94 = getelementptr inbounds %struct.ImVec2, ptr %93, i32 0, i32 1
  %95 = load float, ptr %94, align 4, !tbaa !26
  %96 = fcmp ogt float %95, 0.000000e+00
  br i1 %96, label %97, label %116

97:                                               ; preds = %91, %72
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %98, i32 0, i32 3
  store i32 1, ptr %99, align 8, !tbaa !27
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeSettings", ptr %100, i32 0, i32 1
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %102, i32 0, i32 16
  %104 = getelementptr inbounds %struct.ImRect, ptr %103, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %104, ptr align 8 %101, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %105, i32 0, i32 16
  %107 = getelementptr inbounds %struct.ImRect, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeSettings", ptr %108, i32 0, i32 3
  %110 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %107, ptr noundef nonnull align 4 dereferenceable(8) %109)
  store <2 x float> %110, ptr %15, align 4
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %111, i32 0, i32 16
  %113 = getelementptr inbounds %struct.ImRect, ptr %112, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %113, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %114, i32 0, i32 16
  call void @_ZN6ImRect5FloorEv(ptr noundef nonnull align 4 dereferenceable(16) %115)
  br label %116

116:                                              ; preds = %97, %91
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Object", ptr %117, i32 0, i32 2
  store i8 0, ptr %118, align 8, !tbaa !33
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  ret ptr %119

120:                                              ; preds = %59
  %121 = load ptr, ptr %9, align 8
  %122 = load i32, ptr %10, align 4
  %123 = insertvalue { ptr, i32 } poison, ptr %121, 0
  %124 = insertvalue { ptr, i32 } %123, i32 %122, 1
  resume { ptr, i32 } %124
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImRect5FloorEv(ptr noundef nonnull align 4 dereferenceable(16)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail13EditorContext16RestoreNodeStateEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(2040), ptr noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail8Settings8FindNodeENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(68), i64) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(16), i64) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail4NodeC2EPNS1_13EditorContextENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i64) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail8Settings7AddNodeENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(68), i64) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { noreturn nounwind }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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 8}
!10 = !{!"_ZTSN3vox10NodeEditor6Detail13ObjectWrapperINS1_4NodeENS0_6NodeIdEEE", !11, i64 0, !6, i64 8}
!11 = !{!"_ZTSN3vox10NodeEditor6NodeIdE", !12, i64 0}
!12 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6NodeIdEEE", !13, i64 0}
!13 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6NodeIdEEE", !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !19, i64 32}
!16 = !{!"_ZTSN3vox10NodeEditor6Detail12NodeSettingsE", !11, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !19, i64 32, !19, i64 33, !19, i64 34, !20, i64 36}
!17 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN3vox10NodeEditor15SaveReasonFlagsE", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{i64 0, i64 4, !24, i64 4, i64 4, !24}
!24 = !{!18, !18, i64 0}
!25 = !{!16, !18, i64 24}
!26 = !{!16, !18, i64 28}
!27 = !{!28, !30, i64 32}
!28 = !{!"_ZTSN3vox10NodeEditor6Detail4NodeE", !29, i64 0, !11, i64 24, !30, i64 32, !31, i64 36, !32, i64 52, !6, i64 56, !17, i64 64, !32, i64 72, !32, i64 76, !18, i64 80, !18, i64 84, !32, i64 88, !32, i64 92, !18, i64 96, !18, i64 100, !31, i64 104, !19, i64 120, !19, i64 121}
!29 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !6, i64 8, !19, i64 16}
!30 = !{!"_ZTSN3vox10NodeEditor6Detail8NodeTypeE", !7, i64 0}
!31 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!32 = !{!"int", !7, i64 0}
!33 = !{!29, !19, i64 16}


; 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.vox::NodeEditor::Detail::ObjectId" = type <{ %"struct.vox::NodeEditor::Details::SafePointerType.38", i32, [4 x i8] }>
%"struct.vox::NodeEditor::Details::SafePointerType.38" = type { %"struct.vox::NodeEditor::Details::SafeType.39" }
%"struct.vox::NodeEditor::Details::SafeType.39" = type { i64 }
%"struct.vox::NodeEditor::Detail::ObjectWrapper.70" = type { %"struct.vox::NodeEditor::NodeId", ptr }
%"struct.vox::NodeEditor::NodeId" = type { %"struct.vox::NodeEditor::Details::SafePointerType.6" }
%"struct.vox::NodeEditor::Details::SafePointerType.6" = type { %"struct.vox::NodeEditor::Details::SafeType.7" }
%"struct.vox::NodeEditor::Details::SafeType.7" = type { i64 }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail13EditorContext10CreateNodeENS0_6NodeIdE = external hidden unnamed_addr constant [69 x i8], align 1

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10FindObjectENS1_8ObjectIdE(ptr noundef nonnull align 8 dereferenceable(2040), i64, i32) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN3vox10NodeEditor6Detail13EditorContext10CreateNodeENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(2040) %0, i64 %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %4 = alloca %"struct.vox::NodeEditor::Detail::ObjectWrapper.70", align 8
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 %1)
  %5 = load i64, ptr %3, align 8
  %6 = getelementptr inbounds i8, ptr %3, i64 8
  %7 = load i32, ptr %6, align 8
  %8 = call noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10FindObjectENS1_8ObjectIdE(ptr noundef nonnull align 8 dereferenceable(2040) %0, i64 %5, i32 %7)
  %9 = icmp eq ptr %8, null
  br i1 %9, label %11, label %10

10:                                               ; preds = %2
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1567, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail13EditorContext10CreateNodeENS0_6NodeIdE) #8
  unreachable

11:                                               ; preds = %2
  %12 = call noalias noundef nonnull dereferenceable(128) ptr @_Znwm(i64 noundef 128) #9
  invoke void @_ZN3vox10NodeEditor6Detail4NodeC2EPNS1_13EditorContextENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(128) %12, ptr noundef nonnull %0, i64 %1)
          to label %13 unwind label %20

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 472
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  store i64 %1, ptr %4, align 8
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %12, ptr %15, align 8, !tbaa !5
  call void @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_4NodeENS1_6NodeIdEEESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  %16 = getelementptr inbounds i8, ptr %0, i64 1872
  %17 = call noundef ptr @_ZN3vox10NodeEditor6Detail8Settings8FindNodeENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(68) %16, i64 %1)
  %.not = icmp eq ptr %17, null
  br i1 %.not, label %18, label %22

18:                                               ; preds = %13
  %19 = call noundef ptr @_ZN3vox10NodeEditor6Detail8Settings7AddNodeENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(68) %16, i64 %1)
  br label %22

20:                                               ; preds = %11
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %12, i64 noundef 128) #11
  resume { ptr, i32 } %21

22:                                               ; preds = %18, %13
  %.0 = phi ptr [ %17, %13 ], [ %19, %18 ]
  %23 = getelementptr inbounds i8, ptr %.0, i64 32
  %24 = load i8, ptr %23, align 8, !tbaa !14, !range !20, !noundef !21
  %25 = trunc nuw i8 %24 to i1
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i8 1, ptr %23, align 8, !tbaa !14
  call void @_ZN3vox10NodeEditor6Detail13EditorContext16RestoreNodeStateEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(2040) %0, ptr noundef nonnull %12)
  br label %27

27:                                               ; preds = %26, %22
  %28 = getelementptr inbounds i8, ptr %.0, i64 8
  %29 = getelementptr inbounds i8, ptr %12, i64 36
  %30 = load i64, ptr %28, align 8
  store i64 %30, ptr %29, align 4
  %31 = getelementptr inbounds i8, ptr %12, i64 44
  store i64 %30, ptr %31, align 4
  call void @_ZN6ImRect5FloorEv(ptr noundef nonnull align 4 dereferenceable(16) %29)
  %32 = getelementptr inbounds i8, ptr %.0, i64 24
  %33 = load float, ptr %32, align 8, !tbaa !22
  %34 = fcmp ogt float %33, 0.000000e+00
  br i1 %34, label %39, label %35

35:                                               ; preds = %27
  %36 = getelementptr inbounds i8, ptr %.0, i64 28
  %37 = load float, ptr %36, align 4, !tbaa !23
  %38 = fcmp ogt float %37, 0.000000e+00
  br i1 %38, label %39, label %45

39:                                               ; preds = %35, %27
  %40 = getelementptr inbounds i8, ptr %12, i64 32
  store i32 1, ptr %40, align 8, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %12, i64 104
  %42 = load i64, ptr %28, align 8
  store i64 %42, ptr %41, align 8
  %43 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %41, ptr noundef nonnull align 4 dereferenceable(8) %32)
  %44 = getelementptr inbounds i8, ptr %12, i64 112
  store <2 x float> %43, ptr %44, align 8
  call void @_ZN6ImRect5FloorEv(ptr noundef nonnull align 4 dereferenceable(16) %41)
  br label %45

45:                                               ; preds = %39, %35
  %46 = getelementptr inbounds i8, ptr %12, i64 16
  store i8 0, ptr %46, align 8, !tbaa !30
  ret ptr %12
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImRect5FloorEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail13EditorContext16RestoreNodeStateEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(2040), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail8Settings8FindNodeENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(68), i64) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(16), i64) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail4NodeC2EPNS1_13EditorContextENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i64) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail8Settings7AddNodeENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(68), i64) local_unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !13, i64 8}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail13ObjectWrapperINS1_4NodeENS0_6NodeIdEEE", !7, i64 0, !13, i64 8}
!7 = !{!"_ZTSN3vox10NodeEditor6NodeIdE", !8, i64 0}
!8 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6NodeIdEEE", !9, i64 0}
!9 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6NodeIdEEE", !10, i64 0}
!10 = !{!"long", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!15, !18, i64 32}
!15 = !{!"_ZTSN3vox10NodeEditor6Detail12NodeSettingsE", !7, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !18, i64 32, !18, i64 33, !18, i64 34, !19, i64 36}
!16 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!17 = !{!"float", !11, i64 0}
!18 = !{!"bool", !11, i64 0}
!19 = !{!"_ZTSN3vox10NodeEditor15SaveReasonFlagsE", !11, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!15, !17, i64 24}
!23 = !{!15, !17, i64 28}
!24 = !{!25, !27, i64 32}
!25 = !{!"_ZTSN3vox10NodeEditor6Detail4NodeE", !26, i64 0, !7, i64 24, !27, i64 32, !28, i64 36, !29, i64 52, !13, i64 56, !16, i64 64, !29, i64 72, !29, i64 76, !17, i64 80, !17, i64 84, !29, i64 88, !29, i64 92, !17, i64 96, !17, i64 100, !28, i64 104, !18, i64 120, !18, i64 121}
!26 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !13, i64 8, !18, i64 16}
!27 = !{!"_ZTSN3vox10NodeEditor6Detail8NodeTypeE", !11, i64 0}
!28 = !{!"_ZTS6ImRect", !16, i64 0, !16, i64 8}
!29 = !{!"int", !11, i64 0}
!30 = !{!26, !18, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass