; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode (juce_gui_basics)

; 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.juce::PopupMenu::Options" = type { %"class.juce::Rectangle", ptr, ptr, i32, i32, i32, i32 }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::PopupMenu" = type { %"class.juce::OwnedArray.239", %"class.juce::WeakReference.37" }
%"class.juce::OwnedArray.239" = type { %"class.juce::ArrayAllocationBase.240", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.240" = type <{ %"class.juce::HeapBlock.241", i32, [4 x i8] }>
%"class.juce::HeapBlock.241" = type { ptr }
%"class.juce::WeakReference.37" = type { %"class.juce::ReferenceCountedObjectPtr.38" }
%"class.juce::ReferenceCountedObjectPtr.38" = type { ptr }
%"class.juce::Toolbar" = type { %"class.juce::Component.base", %"class.juce::DragAndDropContainer", %"class.juce::DragAndDropTarget", %"class.juce::Button::Listener", %"class.juce::ScopedPointer.282", i8, i8, i32, %"class.juce::OwnedArray.417" }
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.0", %"class.juce::Array", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.1", %"class.juce::ScopedPointer.2", %"class.juce::ScopedPointer.3", %"class.juce::ListenerList", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = type { ptr }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.1" = type { ptr }
%"class.juce::ScopedPointer.2" = type { ptr }
%"class.juce::ScopedPointer.3" = type { ptr }
%"class.juce::ListenerList" = type { %"class.juce::Array.4" }
%"class.juce::Array.4" = type { %"class.juce::ArrayAllocationBase.5", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.5" = type <{ %"class.juce::HeapBlock.6", i32, [4 x i8] }>
%"class.juce::HeapBlock.6" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.9" }
%"class.juce::Array.9" = type { %"class.juce::ArrayAllocationBase.10", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.10" = type <{ %"class.juce::HeapBlock.11", i32, [4 x i8] }>
%"class.juce::HeapBlock.11" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%union.anon = type { i32 }
%"class.juce::DragAndDropContainer" = type { ptr, %"class.juce::ScopedPointer.97" }
%"class.juce::ScopedPointer.97" = type { ptr }
%"class.juce::DragAndDropTarget" = type { ptr }
%"class.juce::Button::Listener" = type { ptr }
%"class.juce::ScopedPointer.282" = type { ptr }
%"class.juce::OwnedArray.417" = type { %"class.juce::ArrayAllocationBase.418", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.418" = type <{ %"class.juce::HeapBlock.419", i32, [4 x i8] }>
%"class.juce::HeapBlock.419" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component9isShowingEv(ptr noundef nonnull align 8 dereferenceable(197)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9PopupMenu13showMenuAsyncERKNS0_7OptionsEPNS_21ModalComponentManager8CallbackE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9PopupMenu7Options19withTargetComponentEPNS_9ComponentE(ptr dead_on_unwind noalias writable sret(%"class.juce::PopupMenu::Options") align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7Toolbar13buttonClickedEPNS_6ButtonE(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.juce::PopupMenu", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::PopupMenu::Options", align 8
  %9 = alloca %"class.juce::PopupMenu::Options", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  br label %11

11:                                               ; preds = %2
  br label %12

12:                                               ; preds = %11
  %13 = getelementptr inbounds %"class.juce::Toolbar", ptr %10, i32 0, i32 4
  %14 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %15 = call noundef zeroext i1 @_ZNK4juce9Component9isShowingEv(ptr noundef nonnull align 8 dereferenceable(197) %14)
  br i1 %15, label %16, label %44

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @_ZN4juce9PopupMenuC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %17 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 256) #7
          to label %18 unwind label %26

18:                                               ; preds = %16
  %19 = call noundef i32 @_ZNK4juce7Toolbar12getThicknessEv(ptr noundef nonnull align 8 dereferenceable(272) %10) #6
  invoke void @_ZN4juce7Toolbar21MissingItemsComponentC2ERS0_i(ptr noundef nonnull align 8 dereferenceable(256) %17, ptr noundef nonnull align 8 dereferenceable(272) %10, i32 noundef %19)
          to label %20 unwind label %30

20:                                               ; preds = %18
  invoke void @_ZN4juce9PopupMenu13addCustomItemEiPNS0_15CustomComponentEPKS0_(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 1, ptr noundef %17, ptr noundef null)
          to label %21 unwind label %26

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #6
  invoke void @_ZN4juce9PopupMenu7OptionsC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %22 unwind label %34

22:                                               ; preds = %21
  %23 = getelementptr inbounds %"class.juce::Toolbar", ptr %10, i32 0, i32 4
  %24 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @_ZNK4juce9PopupMenu7Options19withTargetComponentEPNS_9ComponentE(ptr dead_on_unwind writable sret(%"class.juce::PopupMenu::Options") align 8 %8, ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef %24) #6
  invoke void @_ZN4juce9PopupMenu13showMenuAsyncERKNS0_7OptionsEPNS_21ModalComponentManager8CallbackE(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef null)
          to label %25 unwind label %38

25:                                               ; preds = %22
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #6
  call void @_ZN4juce9PopupMenuD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %44

26:                                               ; preds = %20, %16
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %6, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %7, align 4
  br label %43

30:                                               ; preds = %18
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %6, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %17, i64 noundef 256) #8
  br label %43

34:                                               ; preds = %21
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %6, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %7, align 4
  br label %42

38:                                               ; preds = %22
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %6, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %7, align 4
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  br label %42

42:                                               ; preds = %38, %34
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #6
  br label %43

43:                                               ; preds = %42, %30, %26
  call void @_ZN4juce9PopupMenuD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %45

44:                                               ; preds = %25, %12
  ret void

45:                                               ; preds = %43
  %46 = load ptr, ptr %6, align 8
  %47 = load i32, ptr %7, align 4
  %48 = insertvalue { ptr, i32 } poison, ptr %46, 0
  %49 = insertvalue { ptr, i32 } %48, i32 %47, 1
  resume { ptr, i32 } %49
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce7Toolbar21MissingItemsComponentC2ERS0_i(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(272), i32 noundef) unnamed_addr #2 align 2

declare void @_ZN4juce9PopupMenuC1Ev(ptr)

declare void @_ZN4juce9PopupMenuD1Ev(ptr)

declare void @_ZN4juce9PopupMenu7OptionsC1Ev(ptr)

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; 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.juce::PopupMenu::Options" = type { %"class.juce::Rectangle", ptr, ptr, i32, i32, i32, i32 }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::PopupMenu" = type { %"class.juce::OwnedArray.239", %"class.juce::WeakReference.37" }
%"class.juce::OwnedArray.239" = type { %"class.juce::ArrayAllocationBase.240", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.240" = type <{ %"class.juce::HeapBlock.241", i32, [4 x i8] }>
%"class.juce::HeapBlock.241" = type { ptr }
%"class.juce::WeakReference.37" = type { %"class.juce::ReferenceCountedObjectPtr.38" }
%"class.juce::ReferenceCountedObjectPtr.38" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; 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 uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component9isShowingEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9PopupMenu13showMenuAsyncERKNS0_7OptionsEPNS_21ModalComponentManager8CallbackE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9PopupMenu7Options19withTargetComponentEPNS_9ComponentE(ptr dead_on_unwind noalias writable sret(%"class.juce::PopupMenu::Options") align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7Toolbar13buttonClickedEPNS_6ButtonE(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr nocapture noundef readnone %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::PopupMenu", align 8
  %4 = alloca %"class.juce::PopupMenu::Options", align 8
  %5 = alloca %"class.juce::PopupMenu::Options", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 232
  %7 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %8 = tail call noundef zeroext i1 @_ZNK4juce9Component9isShowingEv(ptr noundef nonnull align 8 dereferenceable(197) %7)
  br i1 %8, label %9, label %28

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_ZN4juce9PopupMenuC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %10 = invoke noalias noundef nonnull dereferenceable(256) ptr @_Znwm(i64 noundef 256) #7
          to label %11 unwind label %18

11:                                               ; preds = %9
  %12 = call noundef i32 @_ZNK4juce7Toolbar12getThicknessEv(ptr noundef nonnull align 8 dereferenceable(272) %0) #6
  invoke void @_ZN4juce7Toolbar21MissingItemsComponentC2ERS0_i(ptr noundef nonnull align 8 dereferenceable(256) %10, ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef %12)
          to label %13 unwind label %20

13:                                               ; preds = %11
  invoke void @_ZN4juce9PopupMenu13addCustomItemEiPNS0_15CustomComponentEPKS0_(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 1, ptr noundef nonnull %10, ptr noundef null)
          to label %14 unwind label %18

14:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #6
  invoke void @_ZN4juce9PopupMenu7OptionsC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %15 unwind label %22

15:                                               ; preds = %14
  %16 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @_ZNK4juce9PopupMenu7Options19withTargetComponentEPNS_9ComponentE(ptr dead_on_unwind nonnull writable sret(%"class.juce::PopupMenu::Options") align 8 %4, ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef %16) #6
  invoke void @_ZN4juce9PopupMenu13showMenuAsyncERKNS0_7OptionsEPNS_21ModalComponentManager8CallbackE(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef null)
          to label %17 unwind label %24

17:                                               ; preds = %15
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  call void @_ZN4juce9PopupMenuD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %28

18:                                               ; preds = %13, %9
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %27

20:                                               ; preds = %11
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 256) #8
  br label %27

22:                                               ; preds = %14
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %26

24:                                               ; preds = %15
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  br label %26

26:                                               ; preds = %24, %22
  %.pn = phi { ptr, i32 } [ %25, %24 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  br label %27

27:                                               ; preds = %26, %20, %18
  %.pn.pn = phi { ptr, i32 } [ %.pn, %26 ], [ %19, %18 ], [ %21, %20 ]
  call void @_ZN4juce9PopupMenuD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn.pn

28:                                               ; preds = %17, %2
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce7Toolbar21MissingItemsComponentC2ERS0_i(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(272), i32 noundef) unnamed_addr #2 align 2

declare void @_ZN4juce9PopupMenuC1Ev(ptr) local_unnamed_addr

declare void @_ZN4juce9PopupMenuD1Ev(ptr) local_unnamed_addr

declare void @_ZN4juce9PopupMenu7OptionsC1Ev(ptr) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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