; 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"

%"struct.juce::ApplicationCommandInfo" = type <{ i32, [4 x i8], %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::Array.104", i32, [4 x i8] }>
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Array.104" = type { %"class.juce::ArrayAllocationBase.105", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.105" = type <{ %"class.juce::HeapBlock.106", i32, [4 x i8] }>
%"class.juce::HeapBlock.106" = type { ptr }
%"struct.juce::PopupMenu::Item" = type { %"class.juce::String", i32, %"class.juce::ScopedPointer.433", %"class.juce::ScopedPointer.89", %"class.juce::ReferenceCountedObjectPtr.434", %"class.juce::ReferenceCountedObjectPtr.435", ptr, %"class.juce::String", %"class.juce::Colour", i8, i8, i8, i8 }
%"class.juce::ScopedPointer.433" = type { ptr }
%"class.juce::ScopedPointer.89" = type { ptr }
%"class.juce::ReferenceCountedObjectPtr.434" = type { ptr }
%"class.juce::ReferenceCountedObjectPtr.435" = 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: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4juce25ApplicationCommandManager19getTargetForCommandEiRNS_22ApplicationCommandInfoE(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, ptr noundef nonnull align 8 dereferenceable(60)) #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9PopupMenu14addCommandItemEPNS_25ApplicationCommandManagerEiRKNS_6StringEPNS_8DrawableE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.juce::ApplicationCommandInfo", align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.juce::PopupMenu::Item", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8
  br label %18

18:                                               ; preds = %5
  br label %19

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = load i32, ptr %8, align 4, !tbaa !9
  %22 = call noundef ptr @_ZNK4juce25ApplicationCommandManager15getCommandForIDEi(ptr noundef nonnull align 8 dereferenceable(88) %20, i32 noundef %21) #6
  store ptr %22, ptr %11, align 8, !tbaa !5
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %76

25:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #6
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4juce22ApplicationCommandInfoC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(60) %12, ptr noundef nonnull align 8 dereferenceable(60) %26)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = invoke noundef ptr @_ZN4juce25ApplicationCommandManager19getTargetForCommandEiRNS_22ApplicationCommandInfoE(ptr noundef nonnull align 8 dereferenceable(88) %27, i32 noundef %28, ptr noundef nonnull align 8 dereferenceable(60) %12)
          to label %30 unwind label %67

30:                                               ; preds = %25
  store ptr %29, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr %16) #6
  call void @_ZN4juce9PopupMenu4ItemC1Ev(ptr noundef nonnull align 8 dereferenceable(72) %16) #6
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  br label %37

35:                                               ; preds = %30
  %36 = getelementptr inbounds %"struct.juce::ApplicationCommandInfo", ptr %12, i32 0, i32 2
  br label %37

37:                                               ; preds = %35, %33
  %38 = phi ptr [ %34, %33 ], [ %36, %35 ]
  %39 = getelementptr inbounds %"struct.juce::PopupMenu::Item", ptr %16, i32 0, i32 0
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %38) #6
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = getelementptr inbounds %"struct.juce::PopupMenu::Item", ptr %16, i32 0, i32 1
  store i32 %41, ptr %42, align 8, !tbaa !11
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.juce::PopupMenu::Item", ptr %16, i32 0, i32 6
  store ptr %43, ptr %44, align 8, !tbaa !22
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %52

47:                                               ; preds = %37
  %48 = getelementptr inbounds %"struct.juce::ApplicationCommandInfo", ptr %12, i32 0, i32 6
  %49 = load i32, ptr %48, align 8, !tbaa !23
  %50 = and i32 %49, 1
  %51 = icmp eq i32 %50, 0
  br label %52

52:                                               ; preds = %47, %37
  %53 = phi i1 [ false, %37 ], [ %51, %47 ]
  %54 = getelementptr inbounds %"struct.juce::PopupMenu::Item", ptr %16, i32 0, i32 9
  %55 = zext i1 %53 to i8
  store i8 %55, ptr %54, align 4, !tbaa !28
  %56 = getelementptr inbounds %"struct.juce::ApplicationCommandInfo", ptr %12, i32 0, i32 6
  %57 = load i32, ptr %56, align 8, !tbaa !23
  %58 = and i32 %57, 2
  %59 = icmp ne i32 %58, 0
  %60 = getelementptr inbounds %"struct.juce::PopupMenu::Item", ptr %16, i32 0, i32 10
  %61 = zext i1 %59 to i8
  store i8 %61, ptr %60, align 1, !tbaa !29
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.juce::PopupMenu::Item", ptr %16, i32 0, i32 3
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_8DrawableEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef %62)
          to label %65 unwind label %71

65:                                               ; preds = %52
  invoke void @_ZN4juce9PopupMenu7addItemERKNS0_4ItemE(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(72) %16)
          to label %66 unwind label %71

66:                                               ; preds = %65
  call void @_ZN4juce9PopupMenu4ItemD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %16) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  br label %76

67:                                               ; preds = %25
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %14, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %15, align 4
  br label %75

71:                                               ; preds = %65, %52
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %14, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %15, align 4
  call void @_ZN4juce9PopupMenu4ItemD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %16) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #6
  br label %75

75:                                               ; preds = %71, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %77

76:                                               ; preds = %66, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  ret void

77:                                               ; preds = %75
  %78 = load ptr, ptr %14, align 8
  %79 = load i32, ptr %15, align 4
  %80 = insertvalue { ptr, i32 } poison, ptr %78, 0
  %81 = insertvalue { ptr, i32 } %80, i32 %79, 1
  resume { ptr, i32 } %81
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce25ApplicationCommandManager15getCommandForIDEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4juce22ApplicationCommandInfoC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #5 align 2

declare void @_ZN4juce9PopupMenu4ItemC1Ev(ptr)

attributes #0 = { 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 = { 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 = { 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 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN4juce9PopupMenu4ItemE", !13, i64 0, !10, i64 8, !15, i64 16, !16, i64 24, !17, i64 32, !18, i64 40, !6, i64 48, !13, i64 56, !19, i64 64, !21, i64 68, !21, i64 69, !21, i64 70, !21, i64 71}
!13 = !{!"_ZTSN4juce6StringE", !14, i64 0}
!14 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!15 = !{!"_ZTSN4juce13ScopedPointerINS_9PopupMenuEEE", !6, i64 0}
!16 = !{!"_ZTSN4juce13ScopedPointerINS_8DrawableEEE", !6, i64 0}
!17 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_9PopupMenu15CustomComponentEEE", !6, i64 0}
!18 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_9PopupMenu14CustomCallbackEEE", !6, i64 0}
!19 = !{!"_ZTSN4juce6ColourE", !20, i64 0}
!20 = !{!"_ZTSN4juce9PixelARGBE", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!12, !6, i64 48}
!23 = !{!24, !10, i64 56}
!24 = !{!"_ZTSN4juce22ApplicationCommandInfoE", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !25, i64 32, !10, i64 56}
!25 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !26, i64 0, !10, i64 16}
!26 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !27, i64 0, !10, i64 8}
!27 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !6, i64 0}
!28 = !{!12, !21, i64 68}
!29 = !{!12, !21, i64 69}


; 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.juce::ApplicationCommandInfo" = type <{ i32, [4 x i8], %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::Array.104", i32, [4 x i8] }>
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Array.104" = type { %"class.juce::ArrayAllocationBase.105", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.105" = type <{ %"class.juce::HeapBlock.106", i32, [4 x i8] }>
%"class.juce::HeapBlock.106" = type { ptr }
%"struct.juce::PopupMenu::Item" = type { %"class.juce::String", i32, %"class.juce::ScopedPointer.433", %"class.juce::ScopedPointer.89", %"class.juce::ReferenceCountedObjectPtr.434", %"class.juce::ReferenceCountedObjectPtr.435", ptr, %"class.juce::String", %"class.juce::Colour", i8, i8, i8, i8 }
%"class.juce::ScopedPointer.433" = type { ptr }
%"class.juce::ScopedPointer.89" = type { ptr }
%"class.juce::ReferenceCountedObjectPtr.434" = type { ptr }
%"class.juce::ReferenceCountedObjectPtr.435" = 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: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4juce25ApplicationCommandManager19getTargetForCommandEiRNS_22ApplicationCommandInfoE(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9PopupMenu14addCommandItemEPNS_25ApplicationCommandManagerEiRKNS_6StringEPNS_8DrawableE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.juce::ApplicationCommandInfo", align 8
  %7 = alloca %"struct.juce::PopupMenu::Item", align 8
  %8 = tail call noundef ptr @_ZNK4juce25ApplicationCommandManager15getCommandForIDEi(ptr noundef nonnull align 8 dereferenceable(88) %1, i32 noundef %2) #6
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %38, label %9

9:                                                ; preds = %5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  call void @_ZN4juce22ApplicationCommandInfoC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(60) %6, ptr noundef nonnull align 8 dereferenceable(60) %8)
  %10 = invoke noundef ptr @_ZN4juce25ApplicationCommandManager19getTargetForCommandEiRNS_22ApplicationCommandInfoE(ptr noundef nonnull align 8 dereferenceable(88) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(60) %6)
          to label %11 unwind label %33

11:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %7) #6
  call void @_ZN4juce9PopupMenu4ItemC1Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #6
  %12 = call noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %13 = getelementptr inbounds i8, ptr %6, i64 8
  %14 = select i1 %12, ptr %3, ptr %13
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %16 = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %2, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %7, i64 48
  store ptr %1, ptr %17, align 8, !tbaa !20
  %18 = icmp ne ptr %10, null
  %19 = getelementptr inbounds i8, ptr %6, i64 56
  %20 = load i32, ptr %19, align 8
  %21 = and i32 %20, 1
  %22 = icmp eq i32 %21, 0
  %23 = select i1 %18, i1 %22, i1 false
  %24 = getelementptr inbounds i8, ptr %7, i64 68
  %25 = zext i1 %23 to i8
  store i8 %25, ptr %24, align 4, !tbaa !21
  %26 = getelementptr inbounds i8, ptr %7, i64 69
  %27 = trunc i32 %20 to i8
  %28 = lshr i8 %27, 1
  %29 = and i8 %28, 1
  store i8 %29, ptr %26, align 1, !tbaa !22
  %30 = getelementptr inbounds i8, ptr %7, i64 24
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_8DrawableEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef %4)
  invoke void @_ZN4juce9PopupMenu7addItemERKNS0_4ItemE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(72) %7)
          to label %32 unwind label %35

32:                                               ; preds = %11
  call void @_ZN4juce9PopupMenu4ItemD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #6
  call void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  br label %38

33:                                               ; preds = %9
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %37

35:                                               ; preds = %11
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9PopupMenu4ItemD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #6
  br label %37

37:                                               ; preds = %35, %33
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn

38:                                               ; preds = %32, %5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce25ApplicationCommandManager15getCommandForIDEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4juce22ApplicationCommandInfoC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #5 align 2

declare void @_ZN4juce9PopupMenu4ItemC1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 = { 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 = { 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 = { 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 #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, !12, i64 8}
!6 = !{!"_ZTSN4juce9PopupMenu4ItemE", !7, i64 0, !12, i64 8, !13, i64 16, !14, i64 24, !15, i64 32, !16, i64 40, !9, i64 48, !7, i64 56, !17, i64 64, !19, i64 68, !19, i64 69, !19, i64 70, !19, i64 71}
!7 = !{!"_ZTSN4juce6StringE", !8, i64 0}
!8 = !{!"_ZTSN4juce16CharPointer_UTF8E", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"_ZTSN4juce13ScopedPointerINS_9PopupMenuEEE", !9, i64 0}
!14 = !{!"_ZTSN4juce13ScopedPointerINS_8DrawableEEE", !9, i64 0}
!15 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_9PopupMenu15CustomComponentEEE", !9, i64 0}
!16 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_9PopupMenu14CustomCallbackEEE", !9, i64 0}
!17 = !{!"_ZTSN4juce6ColourE", !18, i64 0}
!18 = !{!"_ZTSN4juce9PixelARGBE", !10, i64 0}
!19 = !{!"bool", !10, i64 0}
!20 = !{!6, !9, i64 48}
!21 = !{!6, !19, i64 68}
!22 = !{!6, !19, i64 69}


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