; LLVM IR from yangfengzzz/DigitalVox4 :: editor/imgui_node_editor.ll (ZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_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.86" = type { ptr }
%"class.std::vector.62" = type { %"struct.std::_Vector_base.63" }
%"struct.std::_Vector_base.63" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Node *, std::allocator<vox::NodeEditor::Detail::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Node *, std::allocator<vox::NodeEditor::Detail::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Node *, std::allocator<vox::NodeEditor::Detail::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Node *, std::allocator<vox::NodeEditor::Detail::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.71" = type { ptr }
%class.anon.138 = type { ptr }
%"class.__gnu_cxx::__normal_iterator.139" = type { ptr }
%struct.ImVec2 = type { float, float }
%"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.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 }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlE = external hidden unnamed_addr constant [100 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3vox10NodeEditor6Detail13EditorContext10IsSelectedEPNS1_6ObjectE(ptr noundef nonnull align 8 dereferenceable(2040), ptr noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL7IsGroupPKN3vox10NodeEditor6Detail4NodeE(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail4Node15GetGroupedNodesERSt6vectorIPS2_SaIS4_EEb(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 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)) #2 align 2

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

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

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

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

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

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

declare <2 x float> @_ZN5ImGui11GetMousePosEv() #4

declare noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef, float noundef) #4

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

33:                                               ; preds = %2
  br label %36

34:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.1, i32 noundef 3055, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlE) #8
  unreachable

35:                                               ; No predecessors!
  br label %36

36:                                               ; preds = %35, %33
  %37 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 1
  %38 = load i8, ptr %37, align 8, !tbaa !9, !range !17, !noundef !18
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  store i32 0, ptr %3, align 4
  br label %214

41:                                               ; preds = %36
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !19
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %187

46:                                               ; preds = %41
  %47 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %47, label %48, label %187

48:                                               ; preds = %46
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %49, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %52 = load ptr, ptr %51, align 8, !tbaa !21
  %53 = getelementptr inbounds ptr, ptr %52, i64 5
  %54 = load ptr, ptr %53, align 8
  %55 = call noundef zeroext i1 %54(ptr noundef nonnull align 8 dereferenceable(17) %51)
  br i1 %55, label %57, label %56

56:                                               ; preds = %48
  store i32 0, ptr %3, align 4
  br label %214

57:                                               ; preds = %48
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  %61 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 3
  store ptr %60, ptr %61, align 8, !tbaa !23
  %62 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 4
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef 0)
  %63 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 4
  %64 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 3
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 8 dereferenceable(8) %64)
  %65 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorAction", ptr %28, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !24
  %67 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = call noundef zeroext i1 @_ZN3vox10NodeEditor6Detail13EditorContext10IsSelectedEPNS1_6ObjectE(ptr noundef nonnull align 8 dereferenceable(2040) %66, ptr noundef %68)
  br i1 %69, label %70, label %109

70:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %71 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorAction", ptr %28, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !24
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vox10NodeEditor6Detail13EditorContext18GetSelectedObjectsEv(ptr noundef nonnull align 8 dereferenceable(2040) %72)
  store ptr %73, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = call ptr @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #9
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.86", ptr %7, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = call ptr @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #9
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.86", ptr %8, i32 0, i32 0
  store ptr %78, ptr %79, align 8
  br label %80

80:                                               ; preds = %106, %70
  %81 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %81, label %83, label %82

82:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %108

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  store ptr %85, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load ptr, ptr %86, align 8, !tbaa !21
  %88 = getelementptr inbounds ptr, ptr %87, i64 14
  %89 = load ptr, ptr %88, align 8
  %90 = call noundef ptr %89(ptr noundef nonnull align 8 dereferenceable(17) %86)
  store ptr %90, ptr %10, align 8, !tbaa !5
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %105

93:                                               ; preds = %83
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 3
  %96 = load ptr, ptr %95, align 8, !tbaa !23
  %97 = icmp ne ptr %94, %96
  br i1 %97, label %98, label %104

98:                                               ; preds = %93
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = call noundef zeroext i1 @_ZN3vox10NodeEditor6Detail4Node10AcceptDragEv(ptr noundef nonnull align 8 dereferenceable(128) %99)
  br i1 %100, label %101, label %104

101:                                              ; preds = %98
  %102 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %103, ptr %11, align 8, !tbaa !5
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %104

104:                                              ; preds = %101, %98, %93
  br label %105

105:                                              ; preds = %104, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %106

106:                                              ; preds = %105
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br label %80

108:                                              ; preds = %82
  br label %109

109:                                              ; preds = %108, %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %110 = call noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv()
  store ptr %110, ptr %12, align 8, !tbaa !5
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ImGuiIO, ptr %111, i32 0, i32 57
  %113 = load i8, ptr %112, align 1, !tbaa !25, !range !17, !noundef !18
  %114 = trunc i8 %113 to i1
  br i1 %114, label %185, label %115

115:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #9
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %116 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 4
  store ptr %116, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %117) #9
  %119 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.71", ptr %15, i32 0, i32 0
  store ptr %118, ptr %119, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #9
  %122 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.71", ptr %16, i32 0, i32 0
  store ptr %121, ptr %122, align 8
  br label %123

123:                                              ; preds = %145, %115
  %124 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  br i1 %124, label %126, label %125

125:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %147

126:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  store ptr %128, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = load ptr, ptr %129, align 8, !tbaa !21
  %131 = getelementptr inbounds ptr, ptr %130, i64 14
  %132 = load ptr, ptr %131, align 8
  %133 = invoke noundef ptr %132(ptr noundef nonnull align 8 dereferenceable(17) %129)
          to label %134 unwind label %140

134:                                              ; preds = %126
  store ptr %133, ptr %18, align 8, !tbaa !5
  %135 = load ptr, ptr %18, align 8, !tbaa !5
  %136 = icmp ne ptr %135, null
  br i1 %136, label %137, label %144

137:                                              ; preds = %134
  %138 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN3vox10NodeEditor6Detail4Node15GetGroupedNodesERSt6vectorIPS2_SaIS4_EEb(ptr noundef nonnull align 8 dereferenceable(128) %138, ptr noundef nonnull align 8 dereferenceable(24) %13, i1 noundef zeroext true)
          to label %139 unwind label %140

139:                                              ; preds = %137
  br label %144

140:                                              ; preds = %137, %126
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %19, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %184

144:                                              ; preds = %139, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %145

145:                                              ; preds = %144
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  br label %123

147:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %148 = getelementptr inbounds %class.anon.138, ptr %21, i32 0, i32 0
  store ptr %28, ptr %148, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  store ptr %13, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %149 = load ptr, ptr %22, align 8, !tbaa !5
  %150 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %149) #9
  %151 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.139", ptr %23, i32 0, i32 0
  store ptr %150, ptr %151, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %152 = load ptr, ptr %22, align 8, !tbaa !5
  %153 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %152) #9
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.139", ptr %24, i32 0, i32 0
  store ptr %153, ptr %154, align 8
  br label %155

155:                                              ; preds = %180, %147
  %156 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail4NodeESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  br i1 %156, label %158, label %157

157:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %183

158:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail4NodeESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  store ptr %160, ptr %25, align 8, !tbaa !5
  %161 = load ptr, ptr %25, align 8, !tbaa !5
  %162 = invoke noundef zeroext i1 @"_ZZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlEENK3$_0clEPNS1_4NodeE"(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef %161)
          to label %163 unwind label %171

163:                                              ; preds = %158
  br i1 %162, label %179, label %164

164:                                              ; preds = %163
  %165 = load ptr, ptr %25, align 8, !tbaa !5
  %166 = call noundef zeroext i1 @_ZN3vox10NodeEditor6Detail4Node10AcceptDragEv(ptr noundef nonnull align 8 dereferenceable(128) %165)
  br i1 %166, label %167, label %179

167:                                              ; preds = %164
  %168 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %169 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %169, ptr %26, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %168, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %170 unwind label %175

170:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %179

171:                                              ; preds = %158
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %19, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %20, align 4
  br label %182

175:                                              ; preds = %167
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %19, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %182

179:                                              ; preds = %170, %164, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %180

180:                                              ; preds = %179
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail4NodeESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br label %155

182:                                              ; preds = %175, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %184

183:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #9
  br label %185

184:                                              ; preds = %182, %140
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %216

185:                                              ; preds = %183, %109
  %186 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 1
  store i8 1, ptr %186, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %208

187:                                              ; preds = %46, %41
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %188, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !34
  %191 = icmp ne ptr %190, null
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  br i1 %191, label %192, label %204

192:                                              ; preds = %187
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %193, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !34
  %196 = call noundef zeroext i1 @_ZL7IsGroupPKN3vox10NodeEditor6Detail4NodeE(ptr noundef %195)
  br i1 %196, label %197, label %204

197:                                              ; preds = %192
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %198, i32 0, i32 4
  %200 = load ptr, ptr %199, align 8, !tbaa !34
  %201 = call <2 x float> @_ZN5ImGui11GetMousePosEv()
  store <2 x float> %201, ptr %27, align 4
  %202 = call noundef zeroext i8 @_ZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(128) %200, ptr noundef nonnull align 4 dereferenceable(8) %27)
  %203 = icmp eq i8 %202, 32
  br label %204

204:                                              ; preds = %197, %192, %187
  %205 = phi i1 [ false, %192 ], [ false, %187 ], [ %203, %197 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br i1 %205, label %206, label %207

206:                                              ; preds = %204
  store i32 2, ptr %3, align 4
  br label %214

207:                                              ; preds = %204
  br label %208

208:                                              ; preds = %207, %185
  %209 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DragAction", ptr %28, i32 0, i32 1
  %210 = load i8, ptr %209, align 8, !tbaa !9, !range !17, !noundef !18
  %211 = trunc i8 %210 to i1
  %212 = zext i1 %211 to i64
  %213 = select i1 %211, i32 1, i32 0
  store i32 %213, ptr %3, align 4
  br label %214

214:                                              ; preds = %208, %206, %56, %40
  %215 = load i32, ptr %3, align 4
  ret i32 %215

216:                                              ; preds = %184
  %217 = load ptr, ptr %19, align 8
  %218 = load i32, ptr %20, align 4
  %219 = insertvalue { ptr, i32 } poison, ptr %217, 0
  %220 = insertvalue { ptr, i32 } %219, i32 %218, 1
  resume { ptr, i32 } %220
}

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlEENK3$_0clEPNS1_4NodeE"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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 16}
!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, !6, i64 8}
!20 = !{!"_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}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !8, i64 0}
!23 = !{!10, !6, i64 24}
!24 = !{!11, !6, i64 8}
!25 = !{!26, !12, i64 3341}
!26 = !{!"_ZTS7ImGuiIO", !27, i64 0, !27, i64 4, !28, i64 8, !29, i64 16, !29, i64 20, !6, i64 24, !6, i64 32, !29, i64 40, !29, i64 44, !29, i64 48, !29, i64 52, !29, i64 56, !6, i64 64, !6, i64 72, !29, i64 80, !12, i64 84, !6, i64 88, !28, i64 96, !12, i64 104, !12, i64 105, !12, i64 106, !12, i64 107, !12, i64 108, !12, i64 109, !12, i64 110, !29, 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, !29, i64 208, !27, i64 212, !27, i64 216, !27, i64 220, !27, i64 224, !27, i64 228, !28, i64 232, !7, i64 240, !7, i64 2804, !28, i64 3316, !7, i64 3324, !29, i64 3332, !29, i64 3336, !12, i64 3340, !12, i64 3341, !12, i64 3342, !12, i64 3343, !7, i64 3344, !27, i64 3424, !27, i64 3428, !7, i64 3432, !12, i64 13688, !28, 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, !29, i64 14052, !12, i64 14056, !7, i64 14057, !12, i64 14058, !30, i64 14060, !31, i64 14064}
!27 = !{!"int", !7, i64 0}
!28 = !{!"_ZTS6ImVec2", !29, i64 0, !29, i64 4}
!29 = !{!"float", !7, i64 0}
!30 = !{!"short", !7, i64 0}
!31 = !{!"_ZTS8ImVectorItE", !27, i64 0, !27, i64 4, !6, i64 8}
!32 = !{!33, !6, i64 0}
!33 = !{!"_ZTSZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlEE3$_0", !6, i64 0}
!34 = !{!20, !6, i64 32}


; 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.86" = type { ptr }
%"class.std::vector.62" = type { %"struct.std::_Vector_base.63" }
%"struct.std::_Vector_base.63" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Node *, std::allocator<vox::NodeEditor::Detail::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Node *, std::allocator<vox::NodeEditor::Detail::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Node *, std::allocator<vox::NodeEditor::Detail::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Node *, std::allocator<vox::NodeEditor::Detail::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.71" = type { ptr }
%class.anon.138 = type { ptr }
%"class.__gnu_cxx::__normal_iterator.139" = type { ptr }
%struct.ImVec2 = type { float, float }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlE = external hidden unnamed_addr constant [100 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3vox10NodeEditor6Detail13EditorContext10IsSelectedEPNS1_6ObjectE(ptr noundef nonnull align 8 dereferenceable(2040), ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL7IsGroupPKN3vox10NodeEditor6Detail4NodeE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail4Node15GetGroupedNodesERSt6vectorIPS2_SaIS4_EEb(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

declare <2 x float> @_ZN5ImGui11GetMousePosEv() local_unnamed_addr #4

declare noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef, float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 3) i32 @_ZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(132) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.86", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.86", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::vector.62", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.71", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.71", align 8
  %9 = alloca %class.anon.138, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.139", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.139", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.ImVec2, align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i8, ptr %14, align 8, !tbaa !5, !range !16, !noundef !17
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.1, i32 noundef 3055, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlE) #8
  unreachable

18:                                               ; preds = %2
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !18
  %.not = icmp eq ptr %20, null
  br i1 %.not, label %99, label %21

21:                                               ; preds = %18
  %22 = tail call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %22, label %23, label %99

23:                                               ; preds = %21
  %24 = load ptr, ptr %19, align 8, !tbaa !18
  %25 = load ptr, ptr %24, align 8, !tbaa !20
  %26 = getelementptr inbounds i8, ptr %25, i64 40
  %27 = load ptr, ptr %26, align 8
  %28 = tail call noundef zeroext i1 %27(ptr noundef nonnull align 8 dereferenceable(17) %24)
  br i1 %28, label %29, label %112

29:                                               ; preds = %23
  %30 = load ptr, ptr %19, align 8, !tbaa !18
  %31 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %30, ptr %31, align 8, !tbaa !22
  %32 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef 0)
  tail call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !23
  %35 = load ptr, ptr %31, align 8, !tbaa !22
  %36 = tail call noundef zeroext i1 @_ZN3vox10NodeEditor6Detail13EditorContext10IsSelectedEPNS1_6ObjectE(ptr noundef nonnull align 8 dereferenceable(2040) %34, ptr noundef %35)
  br i1 %36, label %37, label %56

37:                                               ; preds = %29
  %38 = load ptr, ptr %33, align 8, !tbaa !23
  %39 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vox10NodeEditor6Detail13EditorContext18GetSelectedObjectsEv(ptr noundef nonnull align 8 dereferenceable(2040) %38)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %40 = tail call ptr @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  store ptr %40, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %41 = tail call ptr @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  store ptr %41, ptr %4, align 8
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  br i1 %42, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %53, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  br label %56

.lr.ph:                                           ; preds = %37, %53
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  %44 = load ptr, ptr %43, align 8, !tbaa !24
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  %46 = getelementptr inbounds i8, ptr %45, i64 112
  %47 = load ptr, ptr %46, align 8
  %48 = call noundef ptr %47(ptr noundef nonnull align 8 dereferenceable(17) %44)
  %.not37 = icmp eq ptr %48, null
  %49 = load ptr, ptr %31, align 8
  %.not38 = icmp eq ptr %48, %49
  %or.cond = select i1 %.not37, i1 true, i1 %.not38
  br i1 %or.cond, label %53, label %50

50:                                               ; preds = %.lr.ph
  %51 = call noundef zeroext i1 @_ZN3vox10NodeEditor6Detail4Node10AcceptDragEv(ptr noundef nonnull align 8 dereferenceable(128) %48)
  br i1 %51, label %52, label %53

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store ptr %48, ptr %5, align 8, !tbaa !24
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %53

53:                                               ; preds = %50, %52, %.lr.ph
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  br i1 %55, label %.lr.ph, label %._crit_edge

56:                                               ; preds = %._crit_edge, %29
  %57 = call noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv()
  %58 = getelementptr inbounds i8, ptr %57, i64 3341
  %59 = load i8, ptr %58, align 1, !tbaa !25, !range !16, !noundef !17
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %98, label %61

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #9
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %62 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #9
  store ptr %62, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %63 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #9
  store ptr %63, ptr %8, align 8
  %64 = 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) #9
  br i1 %64, label %.lr.ph40, label %._crit_edge41

._crit_edge41:                                    ; preds = %78, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  store ptr %0, ptr %9, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %65 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  store ptr %65, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %66 = call ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  store ptr %66, ptr %11, align 8
  %67 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail4NodeESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br i1 %67, label %.lr.ph43, label %._crit_edge44

.lr.ph40:                                         ; preds = %61, %78
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %69 = load ptr, ptr %68, align 8, !tbaa !24
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  %71 = getelementptr inbounds i8, ptr %70, i64 112
  %72 = load ptr, ptr %71, align 8
  %73 = invoke noundef ptr %72(ptr noundef nonnull align 8 dereferenceable(17) %69)
          to label %74 unwind label %76

74:                                               ; preds = %.lr.ph40
  %.not34 = icmp eq ptr %73, null
  br i1 %.not34, label %78, label %75

75:                                               ; preds = %74
  invoke void @_ZN3vox10NodeEditor6Detail4Node15GetGroupedNodesERSt6vectorIPS2_SaIS4_EEb(ptr noundef nonnull align 8 dereferenceable(128) %73, ptr noundef nonnull align 8 dereferenceable(24) %6, i1 noundef zeroext true)
          to label %78 unwind label %76

76:                                               ; preds = %75, %.lr.ph40
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %97

78:                                               ; preds = %75, %74
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %80 = 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) #9
  br i1 %80, label %.lr.ph40, label %._crit_edge41

._crit_edge44:                                    ; preds = %93, %._crit_edge41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  br label %98

.lr.ph43:                                         ; preds = %._crit_edge41, %93
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail4NodeESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %82 = load ptr, ptr %81, align 8, !tbaa !24
  %83 = invoke noundef zeroext i1 @"_ZZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlEENK3$_0clEPNS1_4NodeE"(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %82)
          to label %84 unwind label %89

84:                                               ; preds = %.lr.ph43
  br i1 %83, label %93, label %85

85:                                               ; preds = %84
  %86 = call noundef zeroext i1 @_ZN3vox10NodeEditor6Detail4Node10AcceptDragEv(ptr noundef nonnull align 8 dereferenceable(128) %82)
  br i1 %86, label %87, label %93

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  store ptr %82, ptr %12, align 8, !tbaa !24
  invoke void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %88 unwind label %91

88:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %93

89:                                               ; preds = %.lr.ph43
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %96

91:                                               ; preds = %87
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %96

93:                                               ; preds = %88, %85, %84
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3vox10NodeEditor6Detail4NodeESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %95 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3vox10NodeEditor6Detail4NodeESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br i1 %95, label %.lr.ph43, label %._crit_edge44

96:                                               ; preds = %91, %89
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br label %97

97:                                               ; preds = %96, %76
  %.pn35 = phi { ptr, i32 } [ %77, %76 ], [ %.pn, %96 ]
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  resume { ptr, i32 } %.pn35

98:                                               ; preds = %._crit_edge44, %56
  store i8 1, ptr %14, align 8, !tbaa !5
  br label %109

99:                                               ; preds = %21, %18
  %100 = getelementptr inbounds i8, ptr %1, i64 32
  %101 = load ptr, ptr %100, align 8, !tbaa !34
  %.not32 = icmp eq ptr %101, null
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  br i1 %.not32, label %.critedge, label %102

102:                                              ; preds = %99
  %103 = tail call noundef zeroext i1 @_ZL7IsGroupPKN3vox10NodeEditor6Detail4NodeE(ptr noundef nonnull %101)
  br i1 %103, label %104, label %.critedge

104:                                              ; preds = %102
  %105 = load ptr, ptr %100, align 8, !tbaa !34
  %106 = tail call <2 x float> @_ZN5ImGui11GetMousePosEv()
  store <2 x float> %106, ptr %13, align 8
  %107 = call noundef zeroext i8 @_ZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(128) %105, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %108 = icmp eq i8 %107, 32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br i1 %108, label %112, label %109

.critedge:                                        ; preds = %99, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %109

109:                                              ; preds = %104, %.critedge, %98
  %110 = load i8, ptr %14, align 8, !tbaa !5, !range !16, !noundef !17
  %111 = zext nneg i8 %110 to i32
  br label %112

112:                                              ; preds = %104, %23, %109
  %.0 = phi i32 [ %111, %109 ], [ 0, %23 ], [ 2, %104 ]
  ret i32 %.0
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_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_cxxneIPKPN3vox10NodeEditor6Detail6ObjectESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail4NodeESaIS4_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_cxxneIPPN3vox10NodeEditor6Detail4NodeESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlEENK3$_0clEPNS1_4NodeE"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #7 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"_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 = !{!19, !8, i64 8}
!19 = !{!"_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}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !10, i64 0}
!22 = !{!6, !8, i64 24}
!23 = !{!7, !8, i64 8}
!24 = !{!8, !8, i64 0}
!25 = !{!26, !11, i64 3341}
!26 = !{!"_ZTS7ImGuiIO", !27, i64 0, !27, i64 4, !28, i64 8, !29, i64 16, !29, i64 20, !8, i64 24, !8, i64 32, !29, i64 40, !29, i64 44, !29, i64 48, !29, i64 52, !29, i64 56, !8, i64 64, !8, i64 72, !29, i64 80, !11, i64 84, !8, i64 88, !28, i64 96, !11, i64 104, !11, i64 105, !11, i64 106, !11, i64 107, !11, i64 108, !11, i64 109, !11, i64 110, !29, 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, !29, i64 208, !27, i64 212, !27, i64 216, !27, i64 220, !27, i64 224, !27, i64 228, !28, i64 232, !9, i64 240, !9, i64 2804, !28, i64 3316, !9, i64 3324, !29, i64 3332, !29, i64 3336, !11, i64 3340, !11, i64 3341, !11, i64 3342, !11, i64 3343, !9, i64 3344, !27, i64 3424, !27, i64 3428, !9, i64 3432, !11, i64 13688, !28, 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, !29, i64 14052, !11, i64 14056, !9, i64 14057, !11, i64 14058, !30, i64 14060, !31, i64 14064}
!27 = !{!"int", !9, i64 0}
!28 = !{!"_ZTS6ImVec2", !29, i64 0, !29, i64 4}
!29 = !{!"float", !9, i64 0}
!30 = !{!"short", !9, i64 0}
!31 = !{!"_ZTS8ImVectorItE", !27, i64 0, !27, i64 4, !8, i64 8}
!32 = !{!33, !8, i64 0}
!33 = !{!"_ZTSZN3vox10NodeEditor6Detail10DragAction6AcceptERKNS1_7ControlEE3$_0", !8, i64 0}
!34 = !{!19, !8, i64 32}


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