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

; 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.__gnu_cxx::__normal_iterator.71" = type { ptr }
%struct.ImVec2 = type { float, float }
%class.anon.140 = type { ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.vox::NodeEditor::Detail::DragAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, ptr, %"class.std::vector.28" }
%"struct.vox::NodeEditor::Detail::EditorAction" = type { 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 }
%"struct.vox::NodeEditor::Detail::Control" = type <{ ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, [4 x i8] }>
%"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::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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%"struct.vox::NodeEditor::Detail::Pin" = type <{ %"struct.vox::NodeEditor::Detail::Object.base", [7 x i8], %"struct.vox::NodeEditor::PinId", i32, [4 x i8], ptr, %struct.ImRect, %struct.ImRect, ptr, i32, i32, float, float, i32, %struct.ImVec2, float, float, float, float, i8, i8, [2 x i8] }>
%"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.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [641 x i32], [512 x i8], %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [20 x float], i32, i32, [641 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x float], [20 x float], [20 x float], float, i8, i8, i8, i16, %struct.ImVector.0 }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector.0 = type { i32, i32, ptr }

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

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #3 align 2

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

declare noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv() #4

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3vox10NodeEditororENS0_15SaveReasonFlagsES1_(i32 noundef, i32 noundef) #5

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

declare <2 x float> @_ZN5ImGui17GetMouseDragDeltaEif(i32 noundef, float noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6ImRect9GetCenterEv(ptr noundef nonnull align 4 dereferenceable(16)) #7 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox10NodeEditor6Detail10DragAction7ProcessERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(132) %1) unnamed_addr #7 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.71", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.71", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca %class.anon.140, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImVec2, align 4
  %21 = alloca %struct.ImVec2, align 4
  %22 = alloca %struct.ImVec2, align 4
  %23 = alloca %struct.ImVec2, align 4
  %24 = alloca %struct.ImVec2, align 4
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.71", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.71", align 8
  %28 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8
  %30 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 2
  %31 = load i8, ptr %30, align 1, !tbaa !9, !range !17, !noundef !18
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %68

33:                                               ; preds = %2
  %34 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 2
  store i8 0, ptr %34, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %35 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 4
  store ptr %35, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  %38 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.71", ptr %7, i32 0, i32 0
  store ptr %37, ptr %38, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #8
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.71", ptr %8, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  br label %42

42:                                               ; preds = %63, %33
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  br i1 %43, label %45, label %44

44:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %65

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %47, ptr %9, align 8, !tbaa !5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = load ptr, ptr %48, align 8, !tbaa !19
  %50 = getelementptr inbounds ptr, ptr %49, i64 7
  %51 = load ptr, ptr %50, align 8
  %52 = call noundef zeroext i1 %51(ptr noundef nonnull align 8 dereferenceable(17) %48)
  br i1 %52, label %53, label %62

53:                                               ; preds = %45
  %54 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorAction", ptr %29, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !21
  %56 = call noundef i32 @_ZN3vox10NodeEditororENS0_15SaveReasonFlagsES1_(i32 noundef 2, i32 noundef 16)
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !19
  %59 = getelementptr inbounds ptr, ptr %58, i64 14
  %60 = load ptr, ptr %59, align 8
  %61 = call noundef ptr %60(ptr noundef nonnull align 8 dereferenceable(17) %57)
  call void @_ZN3vox10NodeEditor6Detail13EditorContext9MakeDirtyENS0_15SaveReasonFlagsEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(2040) %55, i32 noundef %56, ptr noundef %61)
  br label %62

62:                                               ; preds = %53, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %63

63:                                               ; preds = %62
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br label %42

65:                                               ; preds = %44
  %66 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 4
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef 0)
  %67 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 3
  store ptr null, ptr %67, align 8, !tbaa !22
  br label %68

68:                                               ; preds = %65, %2
  %69 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 1
  %70 = load i8, ptr %69, align 8, !tbaa !23, !range !17, !noundef !18
  %71 = trunc i8 %70 to i1
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i1 false, ptr %3, align 1
  br label %170

73:                                               ; preds = %68
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !24
  %77 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 3
  %78 = load ptr, ptr %77, align 8, !tbaa !22
  %79 = icmp eq ptr %76, %78
  br i1 %79, label %80, label %157

80:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %81 = call <2 x float> @_ZN5ImGui17GetMouseDragDeltaEif(i32 noundef 0, float noundef 0.000000e+00)
  store <2 x float> %81, ptr %10, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %82 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !22
  %84 = load ptr, ptr %83, align 8, !tbaa !19
  %85 = getelementptr inbounds ptr, ptr %84, i64 8
  %86 = load ptr, ptr %85, align 8
  %87 = call <2 x float> %86(ptr noundef nonnull align 8 dereferenceable(17) %83)
  store <2 x float> %87, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %88 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 3
  %89 = load ptr, ptr %88, align 8, !tbaa !22
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = getelementptr inbounds ptr, ptr %90, i64 14
  %92 = load ptr, ptr %91, align 8
  %93 = call noundef ptr %92(ptr noundef nonnull align 8 dereferenceable(17) %89)
  store ptr %93, ptr %13, align 8, !tbaa !5
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %123

96:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store float 0x47EFFFFFE0000000, ptr %14, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store float 0x47EFFFFFE0000000, ptr %15, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #8
  %97 = getelementptr inbounds %class.anon.140, ptr %16, i32 0, i32 0
  store ptr %29, ptr %97, align 8, !tbaa !28
  %98 = getelementptr inbounds %class.anon.140, ptr %16, i32 0, i32 1
  store ptr %14, ptr %98, align 8, !tbaa !5
  %99 = getelementptr inbounds %class.anon.140, ptr %16, i32 0, i32 2
  store ptr %15, ptr %99, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.anon.140, ptr %16, i32 0, i32 3
  store ptr %11, ptr %100, align 8, !tbaa !5
  %101 = getelementptr inbounds %class.anon.140, ptr %16, i32 0, i32 4
  store ptr %10, ptr %101, align 8, !tbaa !5
  %102 = getelementptr inbounds %class.anon.140, ptr %16, i32 0, i32 5
  store ptr %12, ptr %102, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %103, i32 0, i32 6
  %105 = load ptr, ptr %104, align 8, !tbaa !30
  store ptr %105, ptr %17, align 8, !tbaa !5
  br label %106

106:                                              ; preds = %118, %96
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = icmp ne ptr %107, null
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %122

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %111 = load ptr, ptr %17, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %111, i32 0, i32 7
  %113 = call <2 x float> @_ZNK6ImRect9GetCenterEv(ptr noundef nonnull align 4 dereferenceable(16) %112)
  store <2 x float> %113, ptr %19, align 4
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %114, i32 0, i32 4
  %116 = getelementptr inbounds %struct.ImRect, ptr %115, i32 0, i32 0
  %117 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %116)
  store <2 x float> %117, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @"_ZZN3vox10NodeEditor6Detail10DragAction7ProcessERKNS1_7ControlEENK3$_0clERK6ImVec2"(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %118

118:                                              ; preds = %110
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %119, i32 0, i32 8
  %121 = load ptr, ptr %120, align 8, !tbaa !41
  store ptr %121, ptr %17, align 8, !tbaa !5
  br label %106, !llvm.loop !47

122:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %123

123:                                              ; preds = %122, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %124 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorAction", ptr %29, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %126 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %126, ptr %24, align 4
  %127 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %127, ptr %23, align 4
  %128 = call <2 x float> @_ZNK3vox10NodeEditor6Detail13EditorContext16AlignPointToGridERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(2040) %125, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %128, ptr %22, align 4
  %129 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %129, ptr %21, align 4
  %130 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %130, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  %131 = call noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv()
  %132 = getelementptr inbounds %struct.ImGuiIO, ptr %131, i32 0, i32 58
  %133 = load i8, ptr %132, align 2, !tbaa !49, !range !17, !noundef !18
  %134 = trunc i8 %133 to i1
  br i1 %134, label %136, label %135

135:                                              ; preds = %123
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !53
  br label %136

136:                                              ; preds = %135, %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %137 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 4
  store ptr %137, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %138 = load ptr, ptr %25, align 8, !tbaa !5
  %139 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #8
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.71", ptr %26, i32 0, i32 0
  store ptr %139, ptr %140, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %141 = load ptr, ptr %25, align 8, !tbaa !5
  %142 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %141) #8
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.71", ptr %27, i32 0, i32 0
  store ptr %142, ptr %143, align 8
  br label %144

144:                                              ; preds = %154, %136
  %145 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br i1 %145, label %147, label %146

146:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %156

147:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  store ptr %149, ptr %28, align 8, !tbaa !5
  %150 = load ptr, ptr %28, align 8, !tbaa !5
  %151 = load ptr, ptr %150, align 8, !tbaa !19
  %152 = getelementptr inbounds ptr, ptr %151, i64 6
  %153 = load ptr, ptr %152, align 8
  call void %153(ptr noundef nonnull align 8 dereferenceable(17) %150, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %154

154:                                              ; preds = %147
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br label %144

156:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %166

157:                                              ; preds = %73
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %158, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !24
  %161 = icmp ne ptr %160, null
  br i1 %161, label %165, label %162

162:                                              ; preds = %157
  %163 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 2
  store i8 1, ptr %163, align 1, !tbaa !9
  %164 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 1
  store i8 0, ptr %164, align 8, !tbaa !23
  store i1 true, ptr %3, align 1
  br label %170

165:                                              ; preds = %157
  br label %166

166:                                              ; preds = %165, %156
  %167 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %29, i32 0, i32 1
  %168 = load i8, ptr %167, align 8, !tbaa !23, !range !17, !noundef !18
  %169 = trunc i8 %168 to i1
  store i1 %169, ptr %3, align 1
  br label %170

170:                                              ; preds = %166, %162, %72
  %171 = load i1, ptr %3, align 1
  ret i1 %171
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3vox10NodeEditor6Detail10DragAction7ProcessERKNS1_7ControlEENK3$_0clERK6ImVec2"(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK3vox10NodeEditor6Detail13EditorContext16AlignPointToGridERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(2040), ptr noundef nonnull align 4 dereferenceable(8)) #7 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 = { 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 #4 = { "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 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 = { 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 #7 = { 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 #8 = { 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, !12, i64 17}
!10 = !{!"_ZTSN3vox10NodeEditor6Detail10DragActionE", !11, i64 0, !12, i64 16, !12, i64 17, !6, i64 24, !13, i64 32}
!11 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !6, i64 8}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !8, i64 0}
!21 = !{!11, !6, i64 8}
!22 = !{!10, !6, i64 24}
!23 = !{!10, !12, i64 16}
!24 = !{!25, !6, i64 8}
!25 = !{!"_ZTSN3vox10NodeEditor6Detail7ControlE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !12, i64 128, !12, i64 129, !12, i64 130, !12, i64 131}
!26 = !{!27, !27, i64 0}
!27 = !{!"float", !7, i64 0}
!28 = !{!29, !6, i64 0}
!29 = !{!"_ZTSZN3vox10NodeEditor6Detail10DragAction7ProcessERKNS1_7ControlEE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!30 = !{!31, !6, i64 56}
!31 = !{!"_ZTSN3vox10NodeEditor6Detail4NodeE", !32, i64 0, !33, i64 24, !37, i64 32, !38, i64 36, !40, i64 52, !6, i64 56, !39, i64 64, !40, i64 72, !40, i64 76, !27, i64 80, !27, i64 84, !40, i64 88, !40, i64 92, !27, i64 96, !27, i64 100, !38, i64 104, !12, i64 120, !12, i64 121}
!32 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !6, i64 8, !12, i64 16}
!33 = !{!"_ZTSN3vox10NodeEditor6NodeIdE", !34, i64 0}
!34 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6NodeIdEEE", !35, i64 0}
!35 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6NodeIdEEE", !36, i64 0}
!36 = !{!"long", !7, i64 0}
!37 = !{!"_ZTSN3vox10NodeEditor6Detail8NodeTypeE", !7, i64 0}
!38 = !{!"_ZTS6ImRect", !39, i64 0, !39, i64 8}
!39 = !{!"_ZTS6ImVec2", !27, i64 0, !27, i64 4}
!40 = !{!"int", !7, i64 0}
!41 = !{!42, !6, i64 80}
!42 = !{!"_ZTSN3vox10NodeEditor6Detail3PinE", !32, i64 0, !43, i64 24, !46, i64 32, !6, i64 40, !38, i64 48, !38, i64 64, !6, i64 80, !40, i64 88, !40, i64 92, !27, i64 96, !27, i64 100, !40, i64 104, !39, i64 108, !27, i64 116, !27, i64 120, !27, i64 124, !27, i64 128, !12, i64 132, !12, i64 133}
!43 = !{!"_ZTSN3vox10NodeEditor5PinIdE", !44, i64 0}
!44 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_5PinIdEEE", !45, i64 0}
!45 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_5PinIdEEE", !36, i64 0}
!46 = !{!"_ZTSN3vox10NodeEditor7PinKindE", !7, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}
!49 = !{!50, !12, i64 3342}
!50 = !{!"_ZTS7ImGuiIO", !40, i64 0, !40, i64 4, !39, i64 8, !27, i64 16, !27, i64 20, !6, i64 24, !6, i64 32, !27, i64 40, !27, i64 44, !27, i64 48, !27, i64 52, !27, i64 56, !6, i64 64, !6, i64 72, !27, i64 80, !12, i64 84, !6, i64 88, !39, i64 96, !12, i64 104, !12, i64 105, !12, i64 106, !12, i64 107, !12, i64 108, !12, i64 109, !12, i64 110, !27, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !12, i64 200, !12, i64 201, !12, i64 202, !12, i64 203, !12, i64 204, !12, i64 205, !12, i64 206, !27, i64 208, !40, i64 212, !40, i64 216, !40, i64 220, !40, i64 224, !40, i64 228, !39, i64 232, !7, i64 240, !7, i64 2804, !39, i64 3316, !7, i64 3324, !27, i64 3332, !27, i64 3336, !12, i64 3340, !12, i64 3341, !12, i64 3342, !12, i64 3343, !7, i64 3344, !40, i64 3424, !40, i64 3428, !7, i64 3432, !12, i64 13688, !39, i64 13692, !7, i64 13700, !7, i64 13744, !7, i64 13784, !7, i64 13789, !7, i64 13794, !7, i64 13804, !7, i64 13814, !7, i64 13819, !7, i64 13824, !7, i64 13832, !7, i64 13852, !7, i64 13872, !7, i64 13892, !7, i64 13972, !27, i64 14052, !12, i64 14056, !7, i64 14057, !12, i64 14058, !51, i64 14060, !52, i64 14064}
!51 = !{!"short", !7, i64 0}
!52 = !{!"_ZTS8ImVectorItE", !40, i64 0, !40, i64 4, !6, i64 8}
!53 = !{i64 0, i64 4, !26, i64 4, i64 4, !26}


; 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.__gnu_cxx::__normal_iterator.71" = type { ptr }
%struct.ImVec2 = type { float, float }
%class.anon.140 = type { ptr, ptr, ptr, ptr, ptr, ptr }

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

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

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

declare noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(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 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3vox10NodeEditororENS0_15SaveReasonFlagsES1_(i32 noundef, i32 noundef) local_unnamed_addr #4

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

declare <2 x float> @_ZN5ImGui17GetMouseDragDeltaEif(i32 noundef, float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6ImRect9GetCenterEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox10NodeEditor6Detail10DragAction7ProcessERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(132) %1) unnamed_addr #6 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.71", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.71", align 8
  %5 = alloca %struct.ImVec2, align 8
  %6 = alloca %struct.ImVec2, align 8
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca %class.anon.140, align 8
  %11 = alloca %struct.ImVec2, align 8
  %12 = alloca %struct.ImVec2, align 8
  %13 = alloca %struct.ImVec2, align 8
  %14 = alloca %struct.ImVec2, align 8
  %15 = alloca %struct.ImVec2, align 8
  %16 = alloca %struct.ImVec2, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.71", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.71", align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 17
  %20 = load i8, ptr %19, align 1, !tbaa !5, !range !16, !noundef !17
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %22, label %46

22:                                               ; preds = %2
  store i8 0, ptr %19, align 1, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %24 = tail call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  store ptr %24, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %25 = tail call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  store ptr %25, ptr %4, align 8
  %26 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %26, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  br label %29

._crit_edge:                                      ; preds = %43, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0)
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr null, ptr %28, align 8, !tbaa !18
  br label %46

29:                                               ; preds = %.lr.ph, %43
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %33 = getelementptr inbounds i8, ptr %32, i64 56
  %34 = load ptr, ptr %33, align 8
  %35 = call noundef zeroext i1 %34(ptr noundef nonnull align 8 dereferenceable(17) %31)
  br i1 %35, label %36, label %43

36:                                               ; preds = %29
  %37 = load ptr, ptr %27, align 8, !tbaa !22
  %38 = call noundef i32 @_ZN3vox10NodeEditororENS0_15SaveReasonFlagsES1_(i32 noundef 2, i32 noundef 16)
  %39 = load ptr, ptr %31, align 8, !tbaa !20
  %40 = getelementptr inbounds i8, ptr %39, i64 112
  %41 = load ptr, ptr %40, align 8
  %42 = call noundef ptr %41(ptr noundef nonnull align 8 dereferenceable(17) %31)
  call void @_ZN3vox10NodeEditor6Detail13EditorContext9MakeDirtyENS0_15SaveReasonFlagsEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(2040) %37, i32 noundef %38, ptr noundef %42)
  br label %43

43:                                               ; preds = %36, %29
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %45 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %45, label %29, label %._crit_edge

46:                                               ; preds = %._crit_edge, %2
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  %48 = load i8, ptr %47, align 8, !tbaa !23, !range !16, !noundef !17
  %49 = trunc nuw i8 %48 to i1
  br i1 %49, label %50, label %108

50:                                               ; preds = %46
  %51 = getelementptr inbounds i8, ptr %1, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !24
  %53 = getelementptr inbounds i8, ptr %0, i64 24
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %55 = icmp eq ptr %52, %54
  br i1 %55, label %56, label %106

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %57 = call <2 x float> @_ZN5ImGui17GetMouseDragDeltaEif(i32 noundef 0, float noundef 0.000000e+00)
  store <2 x float> %57, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %58 = load ptr, ptr %53, align 8, !tbaa !18
  %59 = load ptr, ptr %58, align 8, !tbaa !20
  %60 = getelementptr inbounds i8, ptr %59, i64 64
  %61 = load ptr, ptr %60, align 8
  %62 = call <2 x float> %61(ptr noundef nonnull align 8 dereferenceable(17) %58)
  store <2 x float> %62, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %63 = load ptr, ptr %53, align 8, !tbaa !18
  %64 = load ptr, ptr %63, align 8, !tbaa !20
  %65 = getelementptr inbounds i8, ptr %64, i64 112
  %66 = load ptr, ptr %65, align 8
  %67 = call noundef ptr %66(ptr noundef nonnull align 8 dereferenceable(17) %63)
  %.not20 = icmp eq ptr %67, null
  br i1 %.not20, label %81, label %68

68:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store float 0x47EFFFFFE0000000, ptr %8, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  store float 0x47EFFFFFE0000000, ptr %9, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #7
  store ptr %0, ptr %10, align 8, !tbaa !28
  %69 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %8, ptr %69, align 8, !tbaa !19
  %70 = getelementptr inbounds i8, ptr %10, i64 16
  store ptr %9, ptr %70, align 8, !tbaa !19
  %71 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %6, ptr %71, align 8, !tbaa !19
  %72 = getelementptr inbounds i8, ptr %10, i64 32
  store ptr %5, ptr %72, align 8, !tbaa !19
  %73 = getelementptr inbounds i8, ptr %10, i64 40
  store ptr %7, ptr %73, align 8, !tbaa !19
  %74 = getelementptr inbounds i8, ptr %67, i64 56
  %.01722 = load ptr, ptr %74, align 8, !tbaa !19
  %.not2123 = icmp eq ptr %.01722, null
  br i1 %.not2123, label %._crit_edge27, label %.lr.ph26

.lr.ph26:                                         ; preds = %68
  %75 = getelementptr inbounds i8, ptr %67, i64 36
  br label %76

._crit_edge27:                                    ; preds = %76, %68
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %81

76:                                               ; preds = %.lr.ph26, %76
  %.01724 = phi ptr [ %.01722, %.lr.ph26 ], [ %.017, %76 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %77 = getelementptr inbounds i8, ptr %.01724, i64 64
  %78 = call <2 x float> @_ZNK6ImRect9GetCenterEv(ptr noundef nonnull align 4 dereferenceable(16) %77)
  store <2 x float> %78, ptr %12, align 8
  %79 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %75)
  store <2 x float> %79, ptr %11, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @"_ZZN3vox10NodeEditor6Detail10DragAction7ProcessERKNS1_7ControlEENK3$_0clERK6ImVec2"(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %80 = getelementptr inbounds i8, ptr %.01724, i64 80
  %.017 = load ptr, ptr %80, align 8, !tbaa !19
  %.not21 = icmp eq ptr %.017, null
  br i1 %.not21, label %._crit_edge27, label %76, !llvm.loop !30

81:                                               ; preds = %._crit_edge27, %56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %82 = getelementptr inbounds i8, ptr %0, i64 8
  %83 = load ptr, ptr %82, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %84 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %84, ptr %16, align 8
  %85 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %85, ptr %15, align 8
  %86 = call <2 x float> @_ZNK3vox10NodeEditor6Detail13EditorContext16AlignPointToGridERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(2040) %83, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %86, ptr %14, align 8
  %87 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %87, ptr %13, align 8
  %88 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %89 = call noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv()
  %90 = getelementptr inbounds i8, ptr %89, i64 3342
  %91 = load i8, ptr %90, align 2, !tbaa !32, !range !16, !noundef !17
  %92 = trunc nuw i8 %91 to i1
  br i1 %92, label %94, label %93

93:                                               ; preds = %81
  store <2 x float> %88, ptr %5, align 8
  br label %94

94:                                               ; preds = %93, %81
  %95 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %96 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #7
  store ptr %96, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %97 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #7
  store ptr %97, ptr %18, align 8
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br i1 %98, label %.lr.ph29, label %._crit_edge30

._crit_edge30:                                    ; preds = %.lr.ph29, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %.pre = load i8, ptr %47, align 8, !tbaa !23, !range !16
  %.pre31 = trunc nuw i8 %.pre to i1
  br label %108

.lr.ph29:                                         ; preds = %94, %.lr.ph29
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  %101 = load ptr, ptr %100, align 8, !tbaa !20
  %102 = getelementptr inbounds i8, ptr %101, i64 48
  %103 = load ptr, ptr %102, align 8
  call void %103(ptr noundef nonnull align 8 dereferenceable(17) %100, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %105 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br i1 %105, label %.lr.ph29, label %._crit_edge30

106:                                              ; preds = %50
  %.not = icmp eq ptr %52, null
  br i1 %.not, label %107, label %108

107:                                              ; preds = %106
  store i8 1, ptr %19, align 1, !tbaa !5
  store i8 0, ptr %47, align 8, !tbaa !23
  br label %108

108:                                              ; preds = %._crit_edge30, %106, %46, %107
  %.0 = phi i1 [ true, %107 ], [ false, %46 ], [ true, %106 ], [ %.pre31, %._crit_edge30 ]
  ret i1 %.0
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3vox10NodeEditor6Detail10DragAction7ProcessERKNS1_7ControlEENK3$_0clERK6ImVec2"(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK3vox10NodeEditor6Detail13EditorContext16AlignPointToGridERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(2040), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!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 17}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail10DragActionE", !7, i64 0, !11, i64 16, !11, i64 17, !8, i64 24, !12, i64 32}
!7 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!6, !8, i64 24}
!19 = !{!8, !8, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !10, i64 0}
!22 = !{!7, !8, i64 8}
!23 = !{!6, !11, i64 16}
!24 = !{!25, !8, i64 8}
!25 = !{!"_ZTSN3vox10NodeEditor6Detail7ControlE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112, !8, i64 120, !11, i64 128, !11, i64 129, !11, i64 130, !11, i64 131}
!26 = !{!27, !27, i64 0}
!27 = !{!"float", !9, i64 0}
!28 = !{!29, !8, i64 0}
!29 = !{!"_ZTSZN3vox10NodeEditor6Detail10DragAction7ProcessERKNS1_7ControlEE3$_0", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!33, !11, i64 3342}
!33 = !{!"_ZTS7ImGuiIO", !34, i64 0, !34, i64 4, !35, i64 8, !27, i64 16, !27, i64 20, !8, i64 24, !8, i64 32, !27, i64 40, !27, i64 44, !27, i64 48, !27, i64 52, !27, i64 56, !8, i64 64, !8, i64 72, !27, i64 80, !11, i64 84, !8, i64 88, !35, i64 96, !11, i64 104, !11, i64 105, !11, i64 106, !11, i64 107, !11, i64 108, !11, i64 109, !11, i64 110, !27, i64 112, !8, i64 120, !8, i64 128, !8, i64 136, !8, i64 144, !8, i64 152, !8, i64 160, !8, i64 168, !8, i64 176, !8, i64 184, !8, i64 192, !11, i64 200, !11, i64 201, !11, i64 202, !11, i64 203, !11, i64 204, !11, i64 205, !11, i64 206, !27, i64 208, !34, i64 212, !34, i64 216, !34, i64 220, !34, i64 224, !34, i64 228, !35, i64 232, !9, i64 240, !9, i64 2804, !35, i64 3316, !9, i64 3324, !27, i64 3332, !27, i64 3336, !11, i64 3340, !11, i64 3341, !11, i64 3342, !11, i64 3343, !9, i64 3344, !34, i64 3424, !34, i64 3428, !9, i64 3432, !11, i64 13688, !35, i64 13692, !9, i64 13700, !9, i64 13744, !9, i64 13784, !9, i64 13789, !9, i64 13794, !9, i64 13804, !9, i64 13814, !9, i64 13819, !9, i64 13824, !9, i64 13832, !9, i64 13852, !9, i64 13872, !9, i64 13892, !9, i64 13972, !27, i64 14052, !11, i64 14056, !9, i64 14057, !11, i64 14058, !36, i64 14060, !37, i64 14064}
!34 = !{!"int", !9, i64 0}
!35 = !{!"_ZTS6ImVec2", !27, i64 0, !27, i64 4}
!36 = !{!"short", !9, i64 0}
!37 = !{!"_ZTS8ImVectorItE", !34, i64 0, !34, i64 4, !8, i64 8}


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