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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3vox10NodeEditor6Detail17ContextMenuAction6AcceptERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(132) %1) unnamed_addr #4 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %13 = alloca { i64, i32 }, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  %17 = call noundef zeroext i1 @_ZN5ImGui14IsMouseClickedEib(i32 noundef 1, i1 noundef zeroext false)
  %18 = zext i1 %17 to i8
  store i8 %18, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  %19 = call noundef zeroext i1 @_ZN5ImGui15IsMouseReleasedEi(i32 noundef 1)
  %20 = zext i1 %19 to i8
  store i8 %20, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  %21 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 1, float noundef -1.000000e+00)
  %22 = zext i1 %21 to i8
  store i8 %22, ptr %8, align 1, !tbaa !9
  %23 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %24 = trunc i8 %23 to i1
  br i1 %24, label %31, label %25

25:                                               ; preds = %2
  %26 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %27 = trunc i8 %26 to i1
  br i1 %27, label %31, label %28

28:                                               ; preds = %25
  %29 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %108

31:                                               ; preds = %28, %25, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  store ptr %34, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %73

37:                                               ; preds = %31
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = getelementptr inbounds ptr, ptr %39, i64 14
  %41 = load ptr, ptr %40, align 8
  %42 = call noundef ptr %41(ptr noundef nonnull align 8 dereferenceable(17) %38)
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %45

44:                                               ; preds = %37
  store i32 1, ptr %9, align 4, !tbaa !13
  br label %63

45:                                               ; preds = %37
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = load ptr, ptr %46, align 8, !tbaa !17
  %48 = getelementptr inbounds ptr, ptr %47, i64 15
  %49 = load ptr, ptr %48, align 8
  %50 = call noundef ptr %49(ptr noundef nonnull align 8 dereferenceable(17) %46)
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %45
  store i32 2, ptr %9, align 4, !tbaa !13
  br label %62

53:                                               ; preds = %45
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load ptr, ptr %54, align 8, !tbaa !17
  %56 = getelementptr inbounds ptr, ptr %55, i64 16
  %57 = load ptr, ptr %56, align 8
  %58 = call noundef ptr %57(ptr noundef nonnull align 8 dereferenceable(17) %54)
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %61

60:                                               ; preds = %53
  store i32 3, ptr %9, align 4, !tbaa !13
  br label %61

61:                                               ; preds = %60, %53
  br label %62

62:                                               ; preds = %61, %52
  br label %63

63:                                               ; preds = %62, %44
  %64 = load i32, ptr %9, align 4, !tbaa !13
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %72

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %69 = getelementptr inbounds ptr, ptr %68, i64 2
  %70 = load ptr, ptr %69, align 8
  %71 = call { i64, i32 } %70(ptr noundef nonnull align 8 dereferenceable(17) %67)
  store { i64, i32 } %71, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %13, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %12, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %72

72:                                               ; preds = %66, %63
  br label %80

73:                                               ; preds = %31
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %74, i32 0, i32 16
  %76 = load i8, ptr %75, align 8, !tbaa !19, !range !11, !noundef !12
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  store i32 4, ptr %9, align 4, !tbaa !13
  br label %79

79:                                               ; preds = %78, %73
  br label %80

80:                                               ; preds = %79, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %81 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %82 = trunc i8 %81 to i1
  br i1 %82, label %83, label %87

83:                                               ; preds = %80
  %84 = load i32, ptr %9, align 4, !tbaa !13
  %85 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ContextMenuAction", ptr %16, i32 0, i32 1
  store i32 %84, ptr %85, align 8, !tbaa !20
  %86 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ContextMenuAction", ptr %16, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %86, ptr align 8 %10, i64 12, i1 false)
  store i32 2, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %107

87:                                               ; preds = %80
  %88 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %103

90:                                               ; preds = %87
  %91 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ContextMenuAction", ptr %16, i32 0, i32 1
  %92 = load i32, ptr %91, align 8, !tbaa !20
  %93 = load i32, ptr %9, align 4, !tbaa !13
  %94 = icmp eq i32 %92, %93
  br i1 %94, label %95, label %103

95:                                               ; preds = %90
  %96 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ContextMenuAction", ptr %16, i32 0, i32 3
  %97 = call noundef zeroext i1 @_ZN3vox10NodeEditor7DetailseqINS0_6Detail8ObjectIdEEEbRKNS1_15SafePointerTypeIT_EES9_(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull align 8 dereferenceable(8) %10)
  br i1 %97, label %98, label %103

98:                                               ; preds = %95
  %99 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ContextMenuAction", ptr %16, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !20
  %101 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ContextMenuAction", ptr %16, i32 0, i32 2
  store i32 %100, ptr %101, align 4, !tbaa !28
  %102 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ContextMenuAction", ptr %16, i32 0, i32 1
  store i32 0, ptr %102, align 8, !tbaa !20
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %107

103:                                              ; preds = %95, %90, %87
  %104 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ContextMenuAction", ptr %16, i32 0, i32 1
  store i32 0, ptr %104, align 8, !tbaa !20
  %105 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ContextMenuAction", ptr %16, i32 0, i32 2
  store i32 0, ptr %105, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15)
  %106 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ContextMenuAction", ptr %16, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %106, ptr align 8 %15, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %107

107:                                              ; preds = %103, %98, %83
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %109

108:                                              ; preds = %28
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %109

109:                                              ; preds = %108, %107
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  %110 = load i32, ptr %3, align 4
  ret i32 %110
}

declare noundef zeroext i1 @_ZN5ImGui14IsMouseClickedEib(i32 noundef, i1 noundef zeroext) #2

declare noundef zeroext i1 @_ZN5ImGui15IsMouseReleasedEi(i32 noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN3vox10NodeEditor6Detail17ContextMenuAction4MenuE", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_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, !10, i64 128, !10, i64 129, !10, i64 130, !10, i64 131}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = !{!16, !10, i64 128}
!20 = !{!21, !14, i64 16}
!21 = !{!"_ZTSN3vox10NodeEditor6Detail17ContextMenuActionE", !22, i64 0, !14, i64 16, !14, i64 20, !23, i64 24}
!22 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !6, i64 8}
!23 = !{!"_ZTSN3vox10NodeEditor6Detail8ObjectIdE", !24, i64 0, !27, i64 8}
!24 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6Detail8ObjectIdEEE", !25, i64 0}
!25 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6Detail8ObjectIdEEE", !26, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSN3vox10NodeEditor6Detail10ObjectTypeE", !7, i64 0}
!28 = !{!21, !14, i64 20}


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

%"struct.vox::NodeEditor::Detail::ObjectId" = type <{ %"struct.vox::NodeEditor::Details::SafePointerType.38", i32, [4 x i8] }>
%"struct.vox::NodeEditor::Details::SafePointerType.38" = type { %"struct.vox::NodeEditor::Details::SafeType.39" }
%"struct.vox::NodeEditor::Details::SafeType.39" = type { i64 }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 3) i32 @_ZN3vox10NodeEditor6Detail17ContextMenuAction6AcceptERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(132) %1) unnamed_addr #4 align 2 {
  %3 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %4 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %5 = tail call noundef zeroext i1 @_ZN5ImGui14IsMouseClickedEib(i32 noundef 1, i1 noundef zeroext false)
  %6 = tail call noundef zeroext i1 @_ZN5ImGui15IsMouseReleasedEi(i32 noundef 1)
  %7 = tail call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 1, float noundef -1.000000e+00)
  %8 = or i1 %6, %7
  %brmerge24 = or i1 %5, %8
  br i1 %brmerge24, label %9, label %54

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %30, label %11

11:                                               ; preds = %9
  %12 = load ptr, ptr %10, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %12, i64 112
  %14 = load ptr, ptr %13, align 8
  %15 = call noundef ptr %14(ptr noundef nonnull align 8 dereferenceable(17) %10)
  %.not20 = icmp eq ptr %15, null
  br i1 %.not20, label %16, label %.thread

16:                                               ; preds = %11
  %17 = load ptr, ptr %10, align 8, !tbaa !11
  %18 = getelementptr inbounds i8, ptr %17, i64 120
  %19 = load ptr, ptr %18, align 8
  %20 = call noundef ptr %19(ptr noundef nonnull align 8 dereferenceable(17) %10)
  %.not21 = icmp eq ptr %20, null
  br i1 %.not21, label %21, label %.thread

21:                                               ; preds = %16
  %22 = load ptr, ptr %10, align 8, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %22, i64 128
  %24 = load ptr, ptr %23, align 8
  %25 = call noundef ptr %24(ptr noundef nonnull align 8 dereferenceable(17) %10)
  %.not22 = icmp eq ptr %25, null
  br i1 %.not22, label %34, label %.thread

.thread:                                          ; preds = %16, %11, %21
  %.01729 = phi i32 [ 3, %21 ], [ 2, %16 ], [ 1, %11 ]
  %26 = load ptr, ptr %10, align 8, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load ptr, ptr %27, align 8
  %29 = call { i64, i32 } %28(ptr noundef nonnull align 8 dereferenceable(17) %10)
  %.fca.0.extract = extractvalue { i64, i32 } %29, 0
  %.fca.1.extract = extractvalue { i64, i32 } %29, 1
  store i64 %.fca.0.extract, ptr %3, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 8
  br label %34

30:                                               ; preds = %9
  %31 = getelementptr inbounds i8, ptr %1, i64 128
  %32 = load i8, ptr %31, align 8, !tbaa !13, !range !14, !noundef !15
  %33 = trunc nuw i8 %32 to i1
  %spec.select26 = select i1 %33, i32 4, i32 0
  br label %34

34:                                               ; preds = %30, %21, %.thread
  %.118 = phi i32 [ %.01729, %.thread ], [ 0, %21 ], [ %spec.select26, %30 ]
  br i1 %5, label %35, label %38

35:                                               ; preds = %34
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %.118, ptr %36, align 8, !tbaa !16
  %37 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %37, ptr noundef nonnull align 8 dereferenceable(12) %3, i64 12, i1 false)
  br label %53

38:                                               ; preds = %34
  br i1 %6, label %39, label %49

39:                                               ; preds = %38
  %40 = getelementptr inbounds i8, ptr %0, i64 16
  %41 = load i32, ptr %40, align 8, !tbaa !16
  %42 = icmp eq i32 %41, %.118
  br i1 %42, label %43, label %49

43:                                               ; preds = %39
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  %45 = call noundef zeroext i1 @_ZN3vox10NodeEditor7DetailseqINS0_6Detail8ObjectIdEEEbRKNS1_15SafePointerTypeIT_EES9_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %3)
  br i1 %45, label %46, label %49

46:                                               ; preds = %43
  %47 = load i32, ptr %40, align 8, !tbaa !16
  %48 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %47, ptr %48, align 4, !tbaa !25
  store i32 0, ptr %40, align 8, !tbaa !16
  br label %53

49:                                               ; preds = %43, %39, %38
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 0, ptr %50, align 8, !tbaa !16
  %51 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 0, ptr %51, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %52 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %52, ptr noundef nonnull align 8 dereferenceable(12) %4, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %53

53:                                               ; preds = %49, %46, %35
  %.0 = phi i32 [ 2, %35 ], [ 1, %46 ], [ 0, %49 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %54

54:                                               ; preds = %2, %53
  %.1 = phi i32 [ %.0, %53 ], [ 0, %2 ]
  ret i32 %.1
}

declare noundef zeroext i1 @_ZN5ImGui14IsMouseClickedEib(i32 noundef, i1 noundef zeroext) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN5ImGui15IsMouseReleasedEi(i32 noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail7ControlE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !10, i64 128, !10, i64 129, !10, i64 130, !10, i64 131}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !9, i64 0}
!13 = !{!6, !10, i64 128}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !19, i64 16}
!17 = !{!"_ZTSN3vox10NodeEditor6Detail17ContextMenuActionE", !18, i64 0, !19, i64 16, !19, i64 20, !20, i64 24}
!18 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !7, i64 8}
!19 = !{!"_ZTSN3vox10NodeEditor6Detail17ContextMenuAction4MenuE", !8, i64 0}
!20 = !{!"_ZTSN3vox10NodeEditor6Detail8ObjectIdE", !21, i64 0, !24, i64 8}
!21 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6Detail8ObjectIdEEE", !22, i64 0}
!22 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6Detail8ObjectIdEEE", !23, i64 0}
!23 = !{!"long", !8, i64 0}
!24 = !{!"_ZTSN3vox10NodeEditor6Detail10ObjectTypeE", !8, i64 0}
!25 = !{!17, !19, i64 20}


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