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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.vox::NodeEditor::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::Detail::Object.base" = type <{ ptr, ptr, 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%"struct.vox::NodeEditor::Detail::Link" = type { %"struct.vox::NodeEditor::Detail::Object.base", %"struct.vox::NodeEditor::LinkId", ptr, ptr, i32, float, %struct.ImVec2, %struct.ImVec2 }
%"struct.vox::NodeEditor::LinkId" = type { %"struct.vox::NodeEditor::Details::SafePointerType.50" }
%"struct.vox::NodeEditor::Details::SafePointerType.50" = type { %"struct.vox::NodeEditor::Details::SafeType.51" }
%"struct.vox::NodeEditor::Details::SafeType.51" = type { i64 }
%"struct.vox::NodeEditor::Detail::CreateItemAction" = type <{ %"struct.vox::NodeEditor::Detail::EditorAction", i8, [3 x i8], i32, i32, i32, i32, i32, float, [4 x i8], ptr, ptr, i8, [7 x i8], ptr, i32, i8, [3 x i8] }>
%"struct.vox::NodeEditor::Detail::EditorAction" = type { 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] }>

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [11 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail16CreateItemAction7ProcessERKNS1_7ControlE = external hidden unnamed_addr constant [81 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10ImDrawList18ChannelsSetCurrentEi(ptr noundef nonnull align 8 dereferenceable(196), i32 noundef) #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox10NodeEditor6Detail4Link4DrawEP10ImDrawListjf(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i32 noundef, float noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail4Link15UpdateEndpointsEv(ptr noundef nonnull align 8 dereferenceable(72)) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor5PinIdCI2NS0_7Details8SafeTypeImS1_EEEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6LinkIdCI2NS0_7Details8SafeTypeImS1_EEEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #0 align 2

declare noundef ptr @_ZN5ImGui17GetWindowDrawListEv() #6

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

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

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

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

declare noundef zeroext i1 @_ZN5ImGui15IsWindowHoveredEi(i32 noundef) #6

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox10NodeEditor6Detail16CreateItemAction7ProcessERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(132) %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %"struct.vox::NodeEditor::Detail::Pin", align 8
  %8 = alloca %"struct.vox::NodeEditor::PinId", align 8
  %9 = alloca %struct.ImRect, align 4
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %"struct.vox::NodeEditor::Detail::Link", align 8
  %16 = alloca %"struct.vox::NodeEditor::LinkId", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  %20 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 12
  %21 = load i8, ptr %20, align 8, !tbaa !9, !range !18, !noundef !19
  %22 = trunc i8 %21 to i1
  br i1 %22, label %23, label %24

23:                                               ; preds = %2
  br label %26

24:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.1, i32 noundef 3708, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail16CreateItemAction7ProcessERKNS1_7ControlE) #9
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  %27 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 12
  %28 = load i8, ptr %27, align 8, !tbaa !9, !range !18, !noundef !19
  %29 = trunc i8 %28 to i1
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i1 false, ptr %3, align 1
  br label %205

31:                                               ; preds = %26
  %32 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 14
  %33 = load ptr, ptr %32, align 8, !tbaa !20
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %185

35:                                               ; preds = %31
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %36, i32 0, i32 9
  %38 = load ptr, ptr %37, align 8, !tbaa !21
  %39 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 14
  %40 = load ptr, ptr %39, align 8, !tbaa !20
  %41 = icmp eq ptr %38, %40
  br i1 %41, label %42, label %185

42:                                               ; preds = %35
  %43 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 4
  %44 = load i32, ptr %43, align 8, !tbaa !23
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %185

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #10
  %47 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 14
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %48, i32 0, i32 3
  %50 = load i32, ptr %49, align 8, !tbaa !24
  %51 = icmp eq i32 %50, 1
  %52 = zext i1 %51 to i8
  store i8 %52, ptr %6, align 1, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 136, ptr %7) #10
  %53 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorAction", ptr %19, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !35
  call void @_ZN3vox10NodeEditor5PinIdCI2NS0_7Details8SafeTypeImS1_EEEm(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 0)
  %55 = load i8, ptr %6, align 1, !tbaa !34, !range !18, !noundef !19
  %56 = trunc i8 %55 to i1
  %57 = zext i1 %56 to i64
  %58 = select i1 %56, i32 0, i32 1
  %59 = getelementptr inbounds %"struct.vox::NodeEditor::PinId", ptr %8, i32 0, i32 0
  %60 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType", ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType", ptr %60, i32 0, i32 0
  %62 = load i64, ptr %61, align 8
  call void @_ZN3vox10NodeEditor6Detail3PinC2EPNS1_13EditorContextENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(136) %7, ptr noundef %54, i64 %62, i32 noundef %58)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %63 = invoke <2 x float> @_ZN5ImGui11GetMousePosEv()
          to label %64 unwind label %134

64:                                               ; preds = %46
  store <2 x float> %63, ptr %10, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %65 = invoke <2 x float> @_ZN5ImGui11GetMousePosEv()
          to label %66 unwind label %138

66:                                               ; preds = %64
  store <2 x float> %65, ptr %13, align 4
  invoke void @_ZN6ImRectC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %67 unwind label %138

67:                                               ; preds = %66
  %68 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %7, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %68, ptr align 4 %9, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %69 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 14
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  %71 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %70, i32 0, i32 14
  %72 = invoke <2 x float> @_ZngRK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %71)
          to label %73 unwind label %143

73:                                               ; preds = %67
  store <2 x float> %72, ptr %14, align 4
  %74 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %7, i32 0, i32 14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !38
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  %75 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 14
  %76 = load ptr, ptr %75, align 8, !tbaa !20
  %77 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %76, i32 0, i32 15
  %78 = load float, ptr %77, align 4, !tbaa !39
  %79 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %7, i32 0, i32 15
  store float %78, ptr %79, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 72, ptr %15) #10
  %80 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorAction", ptr %19, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !35
  invoke void @_ZN3vox10NodeEditor6LinkIdCI2NS0_7Details8SafeTypeImS1_EEEm(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef 0)
          to label %82 unwind label %147

82:                                               ; preds = %73
  %83 = getelementptr inbounds %"struct.vox::NodeEditor::LinkId", ptr %16, i32 0, i32 0
  %84 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType.50", ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType.51", ptr %84, i32 0, i32 0
  %86 = load i64, ptr %85, align 8
  invoke void @_ZN3vox10NodeEditor6Detail4LinkC2EPNS1_13EditorContextENS0_6LinkIdE(ptr noundef nonnull align 8 dereferenceable(72) %15, ptr noundef %81, i64 %86)
          to label %87 unwind label %147

87:                                               ; preds = %82
  %88 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 7
  %89 = load i32, ptr %88, align 4, !tbaa !40
  %90 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Link", ptr %15, i32 0, i32 4
  store i32 %89, ptr %90, align 8, !tbaa !41
  %91 = load i8, ptr %6, align 1, !tbaa !34, !range !18, !noundef !19
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %96

93:                                               ; preds = %87
  %94 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 14
  %95 = load ptr, ptr %94, align 8, !tbaa !20
  br label %97

96:                                               ; preds = %87
  br label %97

97:                                               ; preds = %96, %93
  %98 = phi ptr [ %95, %93 ], [ %7, %96 ]
  %99 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Link", ptr %15, i32 0, i32 2
  store ptr %98, ptr %99, align 8, !tbaa !46
  %100 = load i8, ptr %6, align 1, !tbaa !34, !range !18, !noundef !19
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %103

102:                                              ; preds = %97
  br label %106

103:                                              ; preds = %97
  %104 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 14
  %105 = load ptr, ptr %104, align 8, !tbaa !20
  br label %106

106:                                              ; preds = %103, %102
  %107 = phi ptr [ %7, %102 ], [ %105, %103 ]
  %108 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Link", ptr %15, i32 0, i32 3
  store ptr %107, ptr %108, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %109 = load i8, ptr %6, align 1, !tbaa !34, !range !18, !noundef !19
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %113

111:                                              ; preds = %106
  %112 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Link", ptr %15, i32 0, i32 3
  br label %115

113:                                              ; preds = %106
  %114 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Link", ptr %15, i32 0, i32 2
  br label %115

115:                                              ; preds = %113, %111
  %116 = phi ptr [ %112, %111 ], [ %114, %113 ]
  store ptr %116, ptr %17, align 8, !tbaa !5
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %117, i32 0, i32 8
  %119 = load ptr, ptr %118, align 8, !tbaa !48
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %156

121:                                              ; preds = %115
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %122, i32 0, i32 8
  %124 = load ptr, ptr %123, align 8, !tbaa !48
  invoke void @_ZN3vox10NodeEditor6Detail16CreateItemAction7DropPinEPNS1_3PinE(ptr noundef nonnull align 8 dereferenceable(88) %19, ptr noundef %124)
          to label %125 unwind label %151

125:                                              ; preds = %121
  %126 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 6
  %127 = load i32, ptr %126, align 8, !tbaa !49
  %128 = icmp eq i32 %127, 2
  br i1 %128, label %129, label %155

129:                                              ; preds = %125
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %130, i32 0, i32 8
  %132 = load ptr, ptr %131, align 8, !tbaa !48
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %132, ptr %133, align 8, !tbaa !5
  br label %155

134:                                              ; preds = %46
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %11, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %12, align 4
  br label %142

138:                                              ; preds = %66, %64
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %11, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %142

142:                                              ; preds = %138, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  br label %184

143:                                              ; preds = %67
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %11, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  br label %184

147:                                              ; preds = %82, %73
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %11, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %12, align 4
  br label %183

151:                                              ; preds = %163, %161, %121
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %11, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %12, align 4
  br label %182

155:                                              ; preds = %129, %125
  br label %166

156:                                              ; preds = %115
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %157, i32 0, i32 16
  %159 = load i8, ptr %158, align 8, !tbaa !50, !range !18, !noundef !19
  %160 = trunc i8 %159 to i1
  br i1 %160, label %161, label %163

161:                                              ; preds = %156
  invoke void @_ZN3vox10NodeEditor6Detail16CreateItemAction8DropNodeEv(ptr noundef nonnull align 8 dereferenceable(88) %19)
          to label %162 unwind label %151

162:                                              ; preds = %161
  br label %165

163:                                              ; preds = %156
  invoke void @_ZN3vox10NodeEditor6Detail16CreateItemAction11DropNothingEv(ptr noundef nonnull align 8 dereferenceable(88) %19)
          to label %164 unwind label %151

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %162
  br label %166

166:                                              ; preds = %165, %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %167 = invoke noundef ptr @_ZN5ImGui17GetWindowDrawListEv()
          to label %168 unwind label %178

168:                                              ; preds = %166
  store ptr %167, ptr %18, align 8, !tbaa !5
  %169 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN10ImDrawList18ChannelsSetCurrentEi(ptr noundef nonnull align 8 dereferenceable(196) %169, i32 noundef 9)
          to label %170 unwind label %178

170:                                              ; preds = %168
  invoke void @_ZN3vox10NodeEditor6Detail4Link15UpdateEndpointsEv(ptr noundef nonnull align 8 dereferenceable(72) %15)
          to label %171 unwind label %178

171:                                              ; preds = %170
  %172 = load ptr, ptr %18, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 7
  %174 = load i32, ptr %173, align 4, !tbaa !40
  %175 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 8
  %176 = load float, ptr %175, align 8, !tbaa !51
  invoke void @_ZNK3vox10NodeEditor6Detail4Link4DrawEP10ImDrawListjf(ptr noundef nonnull align 8 dereferenceable(72) %15, ptr noundef %172, i32 noundef %174, float noundef %176)
          to label %177 unwind label %178

177:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @_ZN3vox10NodeEditor6Detail6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %15) #10
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #10
  call void @_ZN3vox10NodeEditor6Detail6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %7) #10
  call void @llvm.lifetime.end.p0(i64 136, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #10
  br label %201

178:                                              ; preds = %171, %170, %168, %166
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %11, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  br label %182

182:                                              ; preds = %178, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @_ZN3vox10NodeEditor6Detail6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %15) #10
  br label %183

183:                                              ; preds = %182, %147
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #10
  br label %184

184:                                              ; preds = %183, %143, %142
  call void @_ZN3vox10NodeEditor6Detail6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %7) #10
  call void @llvm.lifetime.end.p0(i64 136, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #10
  br label %207

185:                                              ; preds = %42, %35, %31
  %186 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 4
  %187 = load i32, ptr %186, align 8, !tbaa !23
  %188 = icmp eq i32 %187, 1
  br i1 %188, label %194, label %189

189:                                              ; preds = %185
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %190, i32 0, i32 9
  %192 = load ptr, ptr %191, align 8, !tbaa !21
  %193 = icmp ne ptr %192, null
  br i1 %193, label %200, label %194

194:                                              ; preds = %189, %185
  %195 = call noundef zeroext i1 @_ZN5ImGui15IsWindowHoveredEi(i32 noundef 0)
  br i1 %195, label %198, label %196

196:                                              ; preds = %194
  %197 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 14
  store ptr null, ptr %197, align 8, !tbaa !20
  call void @_ZN3vox10NodeEditor6Detail16CreateItemAction11DropNothingEv(ptr noundef nonnull align 8 dereferenceable(88) %19)
  br label %198

198:                                              ; preds = %196, %194
  call void @_ZN3vox10NodeEditor6Detail16CreateItemAction7DragEndEv(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %199 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 12
  store i8 0, ptr %199, align 8, !tbaa !9
  br label %200

200:                                              ; preds = %198, %189
  br label %201

201:                                              ; preds = %200, %177
  %202 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::CreateItemAction", ptr %19, i32 0, i32 12
  %203 = load i8, ptr %202, align 8, !tbaa !9, !range !18, !noundef !19
  %204 = trunc i8 %203 to i1
  store i1 %204, ptr %3, align 1
  br label %205

205:                                              ; preds = %201, %30
  %206 = load i1, ptr %3, align 1
  ret i1 %206

207:                                              ; preds = %184
  %208 = load ptr, ptr %11, align 8
  %209 = load i32, ptr %12, align 4
  %210 = insertvalue { ptr, i32 } poison, ptr %208, 0
  %211 = insertvalue { ptr, i32 } %210, i32 %209, 1
  resume { ptr, i32 } %211
}

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { noreturn nounwind }
attributes #10 = { 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 64}
!10 = !{!"_ZTSN3vox10NodeEditor6Detail16CreateItemActionE", !11, i64 0, !12, i64 16, !13, i64 20, !13, i64 24, !14, i64 28, !15, i64 32, !16, i64 36, !17, i64 40, !6, i64 48, !6, i64 56, !12, i64 64, !6, i64 72, !16, i64 80, !12, i64 84}
!11 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !6, i64 8}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN3vox10NodeEditor6Detail16CreateItemAction5StageE", !7, i64 0}
!14 = !{!"_ZTSN3vox10NodeEditor6Detail16CreateItemAction4TypeE", !7, i64 0}
!15 = !{!"_ZTSN3vox10NodeEditor6Detail16CreateItemAction6ActionE", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!10, !6, i64 72}
!21 = !{!22, !6, i64 72}
!22 = !{!"_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}
!23 = !{!10, !13, i64 24}
!24 = !{!25, !31, i64 32}
!25 = !{!"_ZTSN3vox10NodeEditor6Detail3PinE", !26, i64 0, !27, i64 24, !31, i64 32, !6, i64 40, !32, i64 48, !32, i64 64, !6, i64 80, !16, i64 88, !16, i64 92, !17, i64 96, !17, i64 100, !16, i64 104, !33, i64 108, !17, i64 116, !17, i64 120, !17, i64 124, !17, i64 128, !12, i64 132, !12, i64 133}
!26 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !6, i64 8, !12, i64 16}
!27 = !{!"_ZTSN3vox10NodeEditor5PinIdE", !28, i64 0}
!28 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_5PinIdEEE", !29, i64 0}
!29 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_5PinIdEEE", !30, i64 0}
!30 = !{!"long", !7, i64 0}
!31 = !{!"_ZTSN3vox10NodeEditor7PinKindE", !7, i64 0}
!32 = !{!"_ZTS6ImRect", !33, i64 0, !33, i64 8}
!33 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!34 = !{!12, !12, i64 0}
!35 = !{!11, !6, i64 8}
!36 = !{i64 0, i64 4, !37, i64 4, i64 4, !37, i64 8, i64 4, !37, i64 12, i64 4, !37}
!37 = !{!17, !17, i64 0}
!38 = !{i64 0, i64 4, !37, i64 4, i64 4, !37}
!39 = !{!25, !17, i64 116}
!40 = !{!10, !16, i64 36}
!41 = !{!42, !16, i64 48}
!42 = !{!"_ZTSN3vox10NodeEditor6Detail4LinkE", !26, i64 0, !43, i64 24, !6, i64 32, !6, i64 40, !16, i64 48, !17, i64 52, !33, i64 56, !33, i64 64}
!43 = !{!"_ZTSN3vox10NodeEditor6LinkIdE", !44, i64 0}
!44 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6LinkIdEEE", !45, i64 0}
!45 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6LinkIdEEE", !30, i64 0}
!46 = !{!42, !6, i64 32}
!47 = !{!42, !6, i64 40}
!48 = !{!22, !6, i64 64}
!49 = !{!10, !15, i64 32}
!50 = !{!22, !12, i64 128}
!51 = !{!10, !17, i64 40}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.vox::NodeEditor::Detail::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::Detail::Object.base" = type <{ ptr, ptr, 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%"struct.vox::NodeEditor::Detail::Link" = type { %"struct.vox::NodeEditor::Detail::Object.base", %"struct.vox::NodeEditor::LinkId", ptr, ptr, i32, float, %struct.ImVec2, %struct.ImVec2 }
%"struct.vox::NodeEditor::LinkId" = type { %"struct.vox::NodeEditor::Details::SafePointerType.50" }
%"struct.vox::NodeEditor::Details::SafePointerType.50" = type { %"struct.vox::NodeEditor::Details::SafeType.51" }
%"struct.vox::NodeEditor::Details::SafeType.51" = type { i64 }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [11 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail16CreateItemAction7ProcessERKNS1_7ControlE = external hidden unnamed_addr constant [81 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10ImDrawList18ChannelsSetCurrentEi(ptr noundef nonnull align 8 dereferenceable(196), i32 noundef) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox10NodeEditor6Detail4Link4DrawEP10ImDrawListjf(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i32 noundef, float noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor5PinIdCI2NS0_7Details8SafeTypeImS1_EEEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6LinkIdCI2NS0_7Details8SafeTypeImS1_EEEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #0 align 2

declare noundef ptr @_ZN5ImGui17GetWindowDrawListEv() local_unnamed_addr #6

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

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

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

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

declare noundef zeroext i1 @_ZN5ImGui15IsWindowHoveredEi(i32 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox10NodeEditor6Detail16CreateItemAction7ProcessERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(132) %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.vox::NodeEditor::Detail::Pin", align 8
  %4 = alloca %"struct.vox::NodeEditor::PinId", align 8
  %5 = alloca %struct.ImRect, align 4
  %6 = alloca %struct.ImVec2, align 8
  %7 = alloca %struct.ImVec2, align 8
  %8 = alloca %"struct.vox::NodeEditor::Detail::Link", align 8
  %9 = alloca %"struct.vox::NodeEditor::LinkId", align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 64
  %11 = load i8, ptr %10, align 8, !tbaa !5, !range !17, !noundef !18
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %14, label %13

13:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.1, i32 noundef 3708, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail16CreateItemAction7ProcessERKNS1_7ControlE) #9
  unreachable

14:                                               ; preds = %2
  %15 = getelementptr inbounds i8, ptr %0, i64 72
  %16 = load ptr, ptr %15, align 8, !tbaa !19
  %.not = icmp ne ptr %16, null
  %17 = getelementptr inbounds i8, ptr %1, i64 72
  %18 = load ptr, ptr %17, align 8
  %19 = icmp eq ptr %18, %16
  %or.cond = select i1 %.not, i1 %19, i1 false
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load i32, ptr %20, align 8
  %22 = icmp eq i32 %21, 1
  %or.cond32 = select i1 %or.cond, i1 %22, i1 false
  br i1 %or.cond32, label %23, label %93

23:                                               ; preds = %14
  %24 = getelementptr inbounds i8, ptr %16, i64 32
  %25 = load i32, ptr %24, align 8, !tbaa !20
  %26 = icmp ne i32 %25, 1
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %3) #10
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !30
  call void @_ZN3vox10NodeEditor5PinIdCI2NS0_7Details8SafeTypeImS1_EEEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef 0)
  %29 = zext i1 %26 to i32
  %30 = load i64, ptr %4, align 8
  call void @_ZN3vox10NodeEditor6Detail3PinC2EPNS1_13EditorContextENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(136) %3, ptr noundef %28, i64 %30, i32 noundef %29)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  %31 = invoke <2 x float> @_ZN5ImGui11GetMousePosEv()
          to label %32 unwind label %65

32:                                               ; preds = %23
  store <2 x float> %31, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
  %33 = invoke <2 x float> @_ZN5ImGui11GetMousePosEv()
          to label %34 unwind label %67

34:                                               ; preds = %32
  store <2 x float> %33, ptr %7, align 8
  call void @_ZN6ImRectC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %35 = getelementptr inbounds i8, ptr %3, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  %36 = load ptr, ptr %15, align 8, !tbaa !19
  %37 = getelementptr inbounds i8, ptr %36, i64 108
  %38 = invoke <2 x float> @_ZngRK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %37)
          to label %39 unwind label %70

39:                                               ; preds = %34
  %40 = getelementptr inbounds i8, ptr %3, i64 108
  store <2 x float> %38, ptr %40, align 4
  %41 = load ptr, ptr %15, align 8, !tbaa !19
  %42 = getelementptr inbounds i8, ptr %41, i64 116
  %43 = load float, ptr %42, align 4, !tbaa !33
  %44 = getelementptr inbounds i8, ptr %3, i64 116
  store float %43, ptr %44, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %8) #10
  %45 = load ptr, ptr %27, align 8, !tbaa !30
  invoke void @_ZN3vox10NodeEditor6LinkIdCI2NS0_7Details8SafeTypeImS1_EEEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 0)
          to label %46 unwind label %72

46:                                               ; preds = %39
  %47 = load i64, ptr %9, align 8
  invoke void @_ZN3vox10NodeEditor6Detail4LinkC2EPNS1_13EditorContextENS0_6LinkIdE(ptr noundef nonnull align 8 dereferenceable(72) %8, ptr noundef %45, i64 %47)
          to label %48 unwind label %72

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %0, i64 36
  %50 = load i32, ptr %49, align 4, !tbaa !34
  %51 = getelementptr inbounds i8, ptr %8, i64 48
  store i32 %50, ptr %51, align 8, !tbaa !35
  %52 = load ptr, ptr %15, align 8
  %spec.select = select i1 %26, ptr %3, ptr %52
  %53 = getelementptr inbounds i8, ptr %8, i64 32
  store ptr %spec.select, ptr %53, align 8, !tbaa !40
  %54 = select i1 %26, ptr %52, ptr %3
  %55 = getelementptr inbounds i8, ptr %8, i64 40
  store ptr %54, ptr %55, align 8, !tbaa !41
  %56 = select i1 %26, ptr %53, ptr %55
  %57 = getelementptr inbounds i8, ptr %1, i64 64
  %58 = load ptr, ptr %57, align 8, !tbaa !42
  %.not24 = icmp eq ptr %58, null
  br i1 %.not24, label %74, label %59

59:                                               ; preds = %48
  call void @_ZN3vox10NodeEditor6Detail16CreateItemAction7DropPinEPNS1_3PinE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull %58)
  %60 = getelementptr inbounds i8, ptr %0, i64 32
  %61 = load i32, ptr %60, align 8, !tbaa !44
  %62 = icmp eq i32 %61, 2
  br i1 %62, label %63, label %80

63:                                               ; preds = %59
  %64 = load ptr, ptr %57, align 8, !tbaa !42
  store ptr %64, ptr %56, align 8, !tbaa !45
  br label %80

65:                                               ; preds = %23
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %32
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  br label %69

69:                                               ; preds = %67, %65
  %.pn = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  br label %92

70:                                               ; preds = %34
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %92

72:                                               ; preds = %46, %39
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %91

74:                                               ; preds = %48
  %75 = getelementptr inbounds i8, ptr %1, i64 128
  %76 = load i8, ptr %75, align 8, !tbaa !46, !range !17, !noundef !18
  %77 = trunc nuw i8 %76 to i1
  br i1 %77, label %78, label %79

78:                                               ; preds = %74
  call void @_ZN3vox10NodeEditor6Detail16CreateItemAction8DropNodeEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %80

79:                                               ; preds = %74
  call void @_ZN3vox10NodeEditor6Detail16CreateItemAction11DropNothingEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %80

80:                                               ; preds = %78, %79, %59, %63
  %81 = invoke noundef ptr @_ZN5ImGui17GetWindowDrawListEv()
          to label %82 unwind label %89

82:                                               ; preds = %80
  invoke void @_ZN10ImDrawList18ChannelsSetCurrentEi(ptr noundef nonnull align 8 dereferenceable(196) %81, i32 noundef 9)
          to label %83 unwind label %89

83:                                               ; preds = %82
  invoke void @_ZN3vox10NodeEditor6Detail4Link15UpdateEndpointsEv(ptr noundef nonnull align 8 dereferenceable(72) %8)
          to label %84 unwind label %89

84:                                               ; preds = %83
  %85 = load i32, ptr %49, align 4, !tbaa !34
  %86 = getelementptr inbounds i8, ptr %0, i64 40
  %87 = load float, ptr %86, align 8, !tbaa !47
  invoke void @_ZNK3vox10NodeEditor6Detail4Link4DrawEP10ImDrawListjf(ptr noundef nonnull align 8 dereferenceable(72) %8, ptr noundef nonnull %81, i32 noundef %85, float noundef %87)
          to label %88 unwind label %89

88:                                               ; preds = %84
  call void @_ZN3vox10NodeEditor6Detail6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #10
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #10
  call void @_ZN3vox10NodeEditor6Detail6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %3) #10
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %3) #10
  %.pre = load i8, ptr %10, align 8, !tbaa !5, !range !17
  br label %98

89:                                               ; preds = %84, %83, %82, %80
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vox10NodeEditor6Detail6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #10
  br label %91

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

92:                                               ; preds = %91, %70, %69
  %.pn25.pn = phi { ptr, i32 } [ %.pn25, %91 ], [ %71, %70 ], [ %.pn, %69 ]
  call void @_ZN3vox10NodeEditor6Detail6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %3) #10
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %3) #10
  resume { ptr, i32 } %.pn25.pn

93:                                               ; preds = %14
  %.not22 = icmp eq ptr %18, null
  %or.cond34 = select i1 %22, i1 true, i1 %.not22
  br i1 %or.cond34, label %94, label %98

94:                                               ; preds = %93
  %95 = tail call noundef zeroext i1 @_ZN5ImGui15IsWindowHoveredEi(i32 noundef 0)
  br i1 %95, label %97, label %96

96:                                               ; preds = %94
  store ptr null, ptr %15, align 8, !tbaa !19
  tail call void @_ZN3vox10NodeEditor6Detail16CreateItemAction11DropNothingEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %97

97:                                               ; preds = %96, %94
  tail call void @_ZN3vox10NodeEditor6Detail16CreateItemAction7DragEndEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  store i8 0, ptr %10, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %88, %97, %93
  %99 = phi i8 [ %.pre, %88 ], [ 0, %97 ], [ %11, %93 ]
  %100 = trunc nuw i8 %99 to i1
  ret i1 %100
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail16CreateItemAction7DropPinEPNS1_3PinE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) local_unnamed_addr #5 align 2

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { noreturn nounwind }
attributes #10 = { 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 64}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail16CreateItemActionE", !7, i64 0, !11, i64 16, !12, i64 20, !12, i64 24, !13, i64 28, !14, i64 32, !15, i64 36, !16, i64 40, !8, i64 48, !8, i64 56, !11, i64 64, !8, i64 72, !15, i64 80, !11, i64 84}
!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 = !{!"_ZTSN3vox10NodeEditor6Detail16CreateItemAction5StageE", !9, i64 0}
!13 = !{!"_ZTSN3vox10NodeEditor6Detail16CreateItemAction4TypeE", !9, i64 0}
!14 = !{!"_ZTSN3vox10NodeEditor6Detail16CreateItemAction6ActionE", !9, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!"float", !9, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !8, i64 72}
!20 = !{!21, !27, i64 32}
!21 = !{!"_ZTSN3vox10NodeEditor6Detail3PinE", !22, i64 0, !23, i64 24, !27, i64 32, !8, i64 40, !28, i64 48, !28, i64 64, !8, i64 80, !15, i64 88, !15, i64 92, !16, i64 96, !16, i64 100, !15, i64 104, !29, i64 108, !16, i64 116, !16, i64 120, !16, i64 124, !16, i64 128, !11, i64 132, !11, i64 133}
!22 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !8, i64 8, !11, i64 16}
!23 = !{!"_ZTSN3vox10NodeEditor5PinIdE", !24, i64 0}
!24 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_5PinIdEEE", !25, i64 0}
!25 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_5PinIdEEE", !26, i64 0}
!26 = !{!"long", !9, i64 0}
!27 = !{!"_ZTSN3vox10NodeEditor7PinKindE", !9, i64 0}
!28 = !{!"_ZTS6ImRect", !29, i64 0, !29, i64 8}
!29 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!30 = !{!7, !8, i64 8}
!31 = !{i64 0, i64 4, !32, i64 4, i64 4, !32, i64 8, i64 4, !32, i64 12, i64 4, !32}
!32 = !{!16, !16, i64 0}
!33 = !{!21, !16, i64 116}
!34 = !{!6, !15, i64 36}
!35 = !{!36, !15, i64 48}
!36 = !{!"_ZTSN3vox10NodeEditor6Detail4LinkE", !22, i64 0, !37, i64 24, !8, i64 32, !8, i64 40, !15, i64 48, !16, i64 52, !29, i64 56, !29, i64 64}
!37 = !{!"_ZTSN3vox10NodeEditor6LinkIdE", !38, i64 0}
!38 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6LinkIdEEE", !39, i64 0}
!39 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6LinkIdEEE", !26, i64 0}
!40 = !{!36, !8, i64 32}
!41 = !{!36, !8, i64 40}
!42 = !{!43, !8, i64 64}
!43 = !{!"_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}
!44 = !{!6, !14, i64 32}
!45 = !{!8, !8, i64 0}
!46 = !{!43, !11, i64 128}
!47 = !{!6, !16, i64 40}


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