; 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" = 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::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::TabbedButtonBar" = type { %"class.juce::Component.base", %"class.juce::ChangeBroadcaster", i32, [4 x i8], %"class.juce::OwnedArray.379", double, i32, %"class.juce::ScopedPointer.384", %"class.juce::ScopedPointer.282" }
%"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::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.39" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.15" }
%"class.juce::ReferenceCountedObjectPtr.15" = type { ptr }
%"class.juce::ListenerList.39" = type { %"class.juce::Array.40" }
%"class.juce::Array.40" = type { %"class.juce::ArrayAllocationBase.41", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.41" = type <{ %"class.juce::HeapBlock.42", i32, [4 x i8] }>
%"class.juce::HeapBlock.42" = type { ptr }
%"class.juce::OwnedArray.379" = type { %"class.juce::ArrayAllocationBase.380", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.380" = type <{ %"class.juce::HeapBlock.381", i32, [4 x i8] }>
%"class.juce::HeapBlock.381" = type { ptr }
%"class.juce::ScopedPointer.384" = type { ptr }
%"class.juce::ScopedPointer.282" = type { ptr }
%"struct.juce::TabbedButtonBar::TabInfo" = type <{ %"class.juce::ScopedPointer.385", %"class.juce::String", %"class.juce::Colour", [4 x i8] }>
%"class.juce::ScopedPointer.385" = type { ptr }
%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce15TabbedButtonBar22extraItemsMenuCallbackEiPS0_(i32 noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce15TabbedButtonBar18showExtraItemsMenuEv(ptr noundef nonnull align 8 dereferenceable(320) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.juce::PopupMenu", align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, 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 %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #4
  call void @_ZN4juce9PopupMenuC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %40, %1
  %12 = load i32, ptr %4, align 4, !tbaa !9
  %13 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %10, i32 0, i32 4
  %14 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %13) #4
  %15 = icmp slt i32 %12, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %43

17:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %18 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %10, i32 0, i32 4
  %19 = load i32, ptr %4, align 4, !tbaa !9
  %20 = call noundef ptr @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %18, i32 noundef %19) #4
  store ptr %20, ptr %5, align 8, !tbaa !5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.juce::TabbedButtonBar::TabInfo", ptr %21, i32 0, i32 0
  %23 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12TabBarButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  %24 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %23) #4
  br i1 %24, label %39, label %25

25:                                               ; preds = %17
  %26 = load i32, ptr %4, align 4, !tbaa !9
  %27 = add nsw i32 %26, 1
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.juce::TabbedButtonBar::TabInfo", ptr %28, i32 0, i32 1
  %30 = load i32, ptr %4, align 4, !tbaa !9
  %31 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %10, i32 0, i32 6
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = icmp eq i32 %30, %32
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %27, ptr noundef nonnull align 8 dereferenceable(8) %29, i1 noundef zeroext true, i1 noundef zeroext %33)
          to label %34 unwind label %35

34:                                               ; preds = %25
  br label %39

35:                                               ; preds = %25
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %6, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %59

39:                                               ; preds = %34, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %4, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %4, align 4, !tbaa !9
  br label %11, !llvm.loop !53

43:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #4
  invoke void @_ZN4juce9PopupMenu7OptionsC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %44 unwind label %50

44:                                               ; preds = %43
  %45 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %10, i32 0, i32 8
  %46 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #4
  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 %46) #4
  %47 = invoke noundef ptr @_ZN4juce21ModalCallbackFunction12forComponentINS_15TabbedButtonBarEEEPNS_21ModalComponentManager8CallbackEPFviPT_ES7_(ptr noundef @_ZN4juce15TabbedButtonBar22extraItemsMenuCallbackEiPS0_, ptr noundef %10)
          to label %48 unwind label %54

48:                                               ; preds = %44
  invoke void @_ZN4juce9PopupMenu13showMenuAsyncERKNS0_7OptionsEPNS_21ModalComponentManager8CallbackE(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef %47)
          to label %49 unwind label %54

49:                                               ; preds = %48
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #4
  call void @_ZN4juce9PopupMenuD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  ret void

50:                                               ; preds = %43
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %6, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %7, align 4
  br label %58

54:                                               ; preds = %48, %44
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %6, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %7, align 4
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #4
  br label %58

58:                                               ; preds = %54, %50
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #4
  br label %59

59:                                               ; preds = %58, %35
  call void @_ZN4juce9PopupMenuD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  br label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr %6, align 8
  %62 = load i32, ptr %7, align 4
  %63 = insertvalue { ptr, i32 } poison, ptr %61, 0
  %64 = insertvalue { ptr, i32 } %63, i32 %62, 1
  resume { ptr, i32 } %64
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext) #3 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) #3 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) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4juce21ModalCallbackFunction12forComponentINS_15TabbedButtonBarEEEPNS_21ModalComponentManager8CallbackEPFviPT_ES7_(ptr noundef, ptr noundef) #3 align 2

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

declare void @_ZN4juce9PopupMenuC1Ev(ptr)

declare void @_ZN4juce9PopupMenuD1Ev(ptr)

declare void @_ZN4juce9PopupMenu7OptionsC1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 296}
!12 = !{!"_ZTSN4juce15TabbedButtonBarE", !13, i64 0, !38, i64 200, !46, i64 256, !47, i64 264, !50, i64 288, !10, i64 296, !51, i64 304, !52, i64 312}
!13 = !{!"_ZTSN4juce9ComponentE", !14, i64 0, !15, i64 8, !15, i64 16, !6, i64 24, !17, i64 32, !19, i64 48, !20, i64 56, !21, i64 64, !6, i64 88, !24, i64 96, !6, i64 104, !25, i64 112, !26, i64 120, !27, i64 128, !28, i64 136, !32, i64 160, !36, i64 184, !7, i64 192, !7, i64 196}
!14 = !{!"_ZTSN4juce13MouseListenerE"}
!15 = !{!"_ZTSN4juce6StringE", !16, i64 0}
!16 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!17 = !{!"_ZTSN4juce9RectangleIiEE", !18, i64 0, !10, i64 8, !10, i64 12}
!18 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !10, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !10, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!24 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !10, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !10, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!32 = !{!"_ZTSN4juce13NamedValueSetE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !10, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !35, i64 0, !10, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!38 = !{!"_ZTSN4juce17ChangeBroadcasterE", !39, i64 8, !42, i64 32}
!39 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !40, i64 0, !6, i64 16}
!40 = !{!"_ZTSN4juce12AsyncUpdaterE", !41, i64 8}
!41 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!42 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !43, i64 0}
!43 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !44, i64 0, !10, i64 16}
!44 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !45, i64 0, !10, i64 8}
!45 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !6, i64 0}
!46 = !{!"_ZTSN4juce15TabbedButtonBar11OrientationE", !7, i64 0}
!47 = !{!"_ZTSN4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEEE", !48, i64 0, !10, i64 16}
!48 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEEE", !49, i64 0, !10, i64 8}
!49 = !{!"_ZTSN4juce9HeapBlockIPNS_15TabbedButtonBar7TabInfoELb0EEE", !6, i64 0}
!50 = !{!"double", !7, i64 0}
!51 = !{!"_ZTSN4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEE", !6, i64 0}
!52 = !{!"_ZTSN4juce13ScopedPointerINS_6ButtonEEE", !6, i64 0}
!53 = distinct !{!53, !54}
!54 = !{!"llvm.loop.mustprogress"}


; 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" = 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::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 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce15TabbedButtonBar22extraItemsMenuCallbackEiPS0_(i32 noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce15TabbedButtonBar18showExtraItemsMenuEv(ptr noundef nonnull align 8 dereferenceable(320) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::PopupMenu", align 8
  %3 = alloca %"class.juce::PopupMenu::Options", align 8
  %4 = alloca %"class.juce::PopupMenu::Options", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @_ZN4juce9PopupMenuC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %5 = getelementptr inbounds i8, ptr %0, i64 264
  %6 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %5) #4
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 296
  br label %9

._crit_edge:                                      ; preds = %._crit_edge16, %1
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
  invoke void @_ZN4juce9PopupMenu7OptionsC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %21 unwind label %27

9:                                                ; preds = %.lr.ph, %._crit_edge16
  %.01115 = phi i32 [ 0, %.lr.ph ], [ %.pre, %._crit_edge16 ]
  %10 = call noundef ptr @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %.01115) #4
  %11 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12TabBarButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %12 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %11) #4
  %.pre = add nuw nsw i32 %.01115, 1
  br i1 %12, label %._crit_edge16, label %13

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %10, i64 8
  %15 = load i32, ptr %8, align 8, !tbaa !5
  %16 = icmp eq i32 %.01115, %15
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %.pre, ptr noundef nonnull align 8 dereferenceable(8) %14, i1 noundef zeroext true, i1 noundef zeroext %16)
          to label %._crit_edge16 unwind label %17

17:                                               ; preds = %13
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %32

._crit_edge16:                                    ; preds = %9, %13
  %19 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %5) #4
  %20 = icmp slt i32 %.pre, %19
  br i1 %20, label %9, label %._crit_edge, !llvm.loop !51

21:                                               ; preds = %._crit_edge
  %22 = getelementptr inbounds i8, ptr %0, i64 312
  %23 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  call void @_ZNK4juce9PopupMenu7Options19withTargetComponentEPNS_9ComponentE(ptr dead_on_unwind nonnull writable sret(%"class.juce::PopupMenu::Options") align 8 %3, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef %23) #4
  %24 = invoke noundef ptr @_ZN4juce21ModalCallbackFunction12forComponentINS_15TabbedButtonBarEEEPNS_21ModalComponentManager8CallbackEPFviPT_ES7_(ptr noundef nonnull @_ZN4juce15TabbedButtonBar22extraItemsMenuCallbackEiPS0_, ptr noundef nonnull %0)
          to label %25 unwind label %29

25:                                               ; preds = %21
  invoke void @_ZN4juce9PopupMenu13showMenuAsyncERKNS0_7OptionsEPNS_21ModalComponentManager8CallbackE(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef %24)
          to label %26 unwind label %29

26:                                               ; preds = %25
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  call void @_ZN4juce9PopupMenuD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  ret void

27:                                               ; preds = %._crit_edge
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %31

29:                                               ; preds = %25, %21
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  br label %31

31:                                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  br label %32

32:                                               ; preds = %31, %17
  %.pn13 = phi { ptr, i32 } [ %18, %17 ], [ %.pn, %31 ]
  call void @_ZN4juce9PopupMenuD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn13
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #3 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 #3 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 #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4juce21ModalCallbackFunction12forComponentINS_15TabbedButtonBarEEEPNS_21ModalComponentManager8CallbackEPFviPT_ES7_(ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9PopupMenu7OptionsD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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, !16, i64 296}
!6 = !{!"_ZTSN4juce15TabbedButtonBarE", !7, i64 0, !36, i64 200, !44, i64 256, !45, i64 264, !48, i64 288, !16, i64 296, !49, i64 304, !50, i64 312}
!7 = !{!"_ZTSN4juce9ComponentE", !8, i64 0, !9, i64 8, !9, i64 16, !11, i64 24, !14, i64 32, !17, i64 48, !18, i64 56, !19, i64 64, !11, i64 88, !22, i64 96, !11, i64 104, !23, i64 112, !24, i64 120, !25, i64 128, !26, i64 136, !30, i64 160, !34, i64 184, !12, i64 192, !12, i64 196}
!8 = !{!"_ZTSN4juce13MouseListenerE"}
!9 = !{!"_ZTSN4juce6StringE", !10, i64 0}
!10 = !{!"_ZTSN4juce16CharPointer_UTF8E", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN4juce9RectangleIiEE", !15, i64 0, !16, i64 8, !16, i64 12}
!15 = !{!"_ZTSN4juce5PointIiEE", !16, i64 0, !16, i64 4}
!16 = !{!"int", !12, i64 0}
!17 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !11, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !11, i64 0}
!19 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !20, i64 0, !16, i64 16}
!20 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !21, i64 0, !16, i64 8}
!21 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !11, i64 0}
!22 = !{!"_ZTSN4juce11MouseCursorE", !11, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !11, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !11, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !11, i64 0}
!26 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !27, i64 0}
!27 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !28, i64 0, !16, i64 16}
!28 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !29, i64 0, !16, i64 8}
!29 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !11, i64 0}
!30 = !{!"_ZTSN4juce13NamedValueSetE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !16, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !33, i64 0, !16, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !11, i64 0}
!34 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !35, i64 0}
!35 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !11, i64 0}
!36 = !{!"_ZTSN4juce17ChangeBroadcasterE", !37, i64 8, !40, i64 32}
!37 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !38, i64 0, !11, i64 16}
!38 = !{!"_ZTSN4juce12AsyncUpdaterE", !39, i64 8}
!39 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !11, i64 0}
!40 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !41, i64 0}
!41 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !42, i64 0, !16, i64 16}
!42 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !43, i64 0, !16, i64 8}
!43 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !11, i64 0}
!44 = !{!"_ZTSN4juce15TabbedButtonBar11OrientationE", !12, i64 0}
!45 = !{!"_ZTSN4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEEE", !46, i64 0, !16, i64 16}
!46 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEEE", !47, i64 0, !16, i64 8}
!47 = !{!"_ZTSN4juce9HeapBlockIPNS_15TabbedButtonBar7TabInfoELb0EEE", !11, i64 0}
!48 = !{!"double", !12, i64 0}
!49 = !{!"_ZTSN4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEE", !11, i64 0}
!50 = !{!"_ZTSN4juce13ScopedPointerINS_6ButtonEEE", !11, i64 0}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass