; 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::AlertWindow" = type <{ %"class.juce::TopLevelWindow", %"class.juce::Button::Listener", %"class.juce::String", %"class.juce::TextLayout", i32, [4 x i8], %"class.juce::ComponentBoundsConstrainer", %"class.juce::ComponentDragger", %"class.juce::Rectangle", %"class.juce::OwnedArray.302", %"class.juce::OwnedArray.307", %"class.juce::OwnedArray.312", %"class.juce::OwnedArray.317", %"class.juce::Array", %"class.juce::OwnedArray.322", %"class.juce::Array", %"class.juce::StringArray", %"class.juce::StringArray", ptr, i8, [7 x i8] }>
%"class.juce::TopLevelWindow" = type { %"class.juce::Component.base", i8, i8, i8, %"class.juce::ScopedPointer.293" }
%"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::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = 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::ScopedPointer.293" = type { ptr }
%"class.juce::Button::Listener" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::TextLayout" = type { %"class.juce::OwnedArray.296", float, float, %"class.juce::Justification", [4 x i8] }
%"class.juce::OwnedArray.296" = type { %"class.juce::ArrayAllocationBase.297", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.297" = type <{ %"class.juce::HeapBlock.298", i32, [4 x i8] }>
%"class.juce::HeapBlock.298" = type { ptr }
%"class.juce::Justification" = type { i32 }
%"class.juce::ComponentBoundsConstrainer" = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, double }
%"class.juce::ComponentDragger" = type { ptr, %"class.juce::Point" }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::OwnedArray.302" = type { %"class.juce::ArrayAllocationBase.303", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.303" = type <{ %"class.juce::HeapBlock.304", i32, [4 x i8] }>
%"class.juce::HeapBlock.304" = type { ptr }
%"class.juce::OwnedArray.307" = type { %"class.juce::ArrayAllocationBase.308", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.308" = type <{ %"class.juce::HeapBlock.309", i32, [4 x i8] }>
%"class.juce::HeapBlock.309" = type { ptr }
%"class.juce::OwnedArray.312" = type { %"class.juce::ArrayAllocationBase.313", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.313" = type <{ %"class.juce::HeapBlock.314", i32, [4 x i8] }>
%"class.juce::HeapBlock.314" = type { ptr }
%"class.juce::OwnedArray.317" = type { %"class.juce::ArrayAllocationBase.318", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.318" = type <{ %"class.juce::HeapBlock.319", i32, [4 x i8] }>
%"class.juce::HeapBlock.319" = type { ptr }
%"class.juce::OwnedArray.322" = 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::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::StringArray" = type { %"class.juce::Array.150" }
%"class.juce::Array.150" = type { %"class.juce::ArrayAllocationBase.151", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.151" = type <{ %"class.juce::HeapBlock.152", i32, [4 x i8] }>
%"class.juce::HeapBlock.152" = type { 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: mustprogress uwtable
declare dso_local void @_ZN4juce9Component14exitModalStateEi(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce6Button23isRegisteredForShortcutERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(375), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce11AlertWindow10keyPressedERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(577) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %9 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %10 = getelementptr inbounds %"class.juce::AlertWindow", ptr %9, i32 0, i32 9
  %11 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %10) #4
  store i32 %11, ptr %6, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %32, %2
  %13 = load i32, ptr %6, align 4, !tbaa !9
  %14 = add nsw i32 %13, -1
  store i32 %14, ptr %6, align 4, !tbaa !9
  %15 = icmp sge i32 %14, 0
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  store i32 2, ptr %7, align 4
  br label %33

17:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %18 = getelementptr inbounds %"class.juce::AlertWindow", ptr %9, i32 0, i32 9
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %18, i32 noundef %19) #4
  store ptr %20, ptr %8, align 8, !tbaa !5
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call noundef zeroext i1 @_ZNK4juce6Button23isRegisteredForShortcutERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(375) %21, ptr noundef nonnull align 4 dereferenceable(12) %22)
  br i1 %23, label %24, label %29

24:                                               ; preds = %17
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds ptr, ptr %26, i64 45
  %28 = load ptr, ptr %27, align 8
  call void %28(ptr noundef nonnull align 8 dereferenceable(375) %25)
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %30

29:                                               ; preds = %17
  store i32 0, ptr %7, align 4
  br label %30

30:                                               ; preds = %29, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %31 = load i32, ptr %7, align 4
  switch i32 %31, label %33 [
    i32 0, label %32
  ]

32:                                               ; preds = %30
  br label %12, !llvm.loop !13

33:                                               ; preds = %30, %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %34 = load i32, ptr %7, align 4
  switch i32 %34, label %63 [
    i32 2, label %35
    i32 1, label %61
  ]

35:                                               ; preds = %33
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %36, i32 noundef 27) #4
  br i1 %37, label %38, label %47

38:                                               ; preds = %35
  %39 = getelementptr inbounds %"class.juce::AlertWindow", ptr %9, i32 0, i32 19
  %40 = load i8, ptr %39, align 8, !tbaa !15, !range !73, !noundef !74
  %41 = trunc i8 %40 to i1
  br i1 %41, label %42, label %47

42:                                               ; preds = %38
  %43 = getelementptr inbounds %"class.juce::AlertWindow", ptr %9, i32 0, i32 9
  %44 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %43) #4
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %42
  call void @_ZN4juce9Component14exitModalStateEi(ptr noundef nonnull align 8 dereferenceable(197) %9, i32 noundef 0)
  store i1 true, ptr %3, align 1
  br label %61

47:                                               ; preds = %42, %38, %35
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %48, i32 noundef 13) #4
  br i1 %49, label %50, label %60

50:                                               ; preds = %47
  %51 = getelementptr inbounds %"class.juce::AlertWindow", ptr %9, i32 0, i32 9
  %52 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %51) #4
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %60

54:                                               ; preds = %50
  %55 = getelementptr inbounds %"class.juce::AlertWindow", ptr %9, i32 0, i32 9
  %56 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %55, i32 noundef 0) #4
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = getelementptr inbounds ptr, ptr %57, i64 45
  %59 = load ptr, ptr %58, align 8
  call void %59(ptr noundef nonnull align 8 dereferenceable(375) %56)
  store i1 true, ptr %3, align 1
  br label %61

60:                                               ; preds = %50, %47
  store i1 false, ptr %3, align 1
  br label %61

61:                                               ; preds = %60, %54, %46, %33
  %62 = load i1, ptr %3, align 1
  ret i1 %62

63:                                               ; preds = %33
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 #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, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !43, i64 576}
!16 = !{!"_ZTSN4juce11AlertWindowE", !17, i64 0, !45, i64 208, !20, i64 216, !46, i64 224, !52, i64 264, !53, i64 272, !55, i64 320, !22, i64 336, !56, i64 352, !59, i64 376, !62, i64 400, !65, i64 424, !26, i64 448, !68, i64 472, !26, i64 496, !69, i64 520, !69, i64 544, !6, i64 568, !43, i64 576}
!17 = !{!"_ZTSN4juce14TopLevelWindowE", !18, i64 0, !43, i64 197, !43, i64 198, !43, i64 199, !44, i64 200}
!18 = !{!"_ZTSN4juce9ComponentE", !19, i64 0, !20, i64 8, !20, i64 16, !6, i64 24, !22, i64 32, !24, i64 48, !25, i64 56, !26, i64 64, !6, i64 88, !29, i64 96, !6, i64 104, !30, i64 112, !31, i64 120, !32, i64 128, !33, i64 136, !37, i64 160, !41, i64 184, !7, i64 192, !7, i64 196}
!19 = !{!"_ZTSN4juce13MouseListenerE"}
!20 = !{!"_ZTSN4juce6StringE", !21, i64 0}
!21 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!22 = !{!"_ZTSN4juce9RectangleIiEE", !23, i64 0, !10, i64 8, !10, i64 12}
!23 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !27, i64 0, !10, i64 16}
!27 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !28, i64 0, !10, i64 8}
!28 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!29 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!30 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!31 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!32 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!33 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !34, i64 0}
!34 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !35, i64 0, !10, i64 16}
!35 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !36, i64 0, !10, i64 8}
!36 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!37 = !{!"_ZTSN4juce13NamedValueSetE", !38, i64 0}
!38 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !39, i64 0, !10, i64 16}
!39 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !40, i64 0, !10, i64 8}
!40 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!41 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !42, i64 0}
!42 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!43 = !{!"bool", !7, i64 0}
!44 = !{!"_ZTSN4juce13ScopedPointerINS_12DropShadowerEEE", !6, i64 0}
!45 = !{!"_ZTSN4juce6Button8ListenerE"}
!46 = !{!"_ZTSN4juce10TextLayoutE", !47, i64 0, !50, i64 24, !50, i64 28, !51, i64 32}
!47 = !{!"_ZTSN4juce10OwnedArrayINS_10TextLayout4LineENS_20DummyCriticalSectionEEE", !48, i64 0, !10, i64 16}
!48 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextLayout4LineENS_20DummyCriticalSectionEEE", !49, i64 0, !10, i64 8}
!49 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextLayout4LineELb0EEE", !6, i64 0}
!50 = !{!"float", !7, i64 0}
!51 = !{!"_ZTSN4juce13JustificationE", !10, i64 0}
!52 = !{!"_ZTSN4juce11AlertWindow13AlertIconTypeE", !7, i64 0}
!53 = !{!"_ZTSN4juce26ComponentBoundsConstrainerE", !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !54, i64 40}
!54 = !{!"double", !7, i64 0}
!55 = !{!"_ZTSN4juce16ComponentDraggerE", !23, i64 8}
!56 = !{!"_ZTSN4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEEE", !57, i64 0, !10, i64 16}
!57 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextButtonENS_20DummyCriticalSectionEEE", !58, i64 0, !10, i64 8}
!58 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextButtonELb0EEE", !6, i64 0}
!59 = !{!"_ZTSN4juce10OwnedArrayINS_10TextEditorENS_20DummyCriticalSectionEEE", !60, i64 0, !10, i64 16}
!60 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextEditorENS_20DummyCriticalSectionEEE", !61, i64 0, !10, i64 8}
!61 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextEditorELb0EEE", !6, i64 0}
!62 = !{!"_ZTSN4juce10OwnedArrayINS_8ComboBoxENS_20DummyCriticalSectionEEE", !63, i64 0, !10, i64 16}
!63 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_8ComboBoxENS_20DummyCriticalSectionEEE", !64, i64 0, !10, i64 8}
!64 = !{!"_ZTSN4juce9HeapBlockIPNS_8ComboBoxELb0EEE", !6, i64 0}
!65 = !{!"_ZTSN4juce10OwnedArrayINS_11ProgressBarENS_20DummyCriticalSectionEEE", !66, i64 0, !10, i64 16}
!66 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_11ProgressBarENS_20DummyCriticalSectionEEE", !67, i64 0, !10, i64 8}
!67 = !{!"_ZTSN4juce9HeapBlockIPNS_11ProgressBarELb0EEE", !6, i64 0}
!68 = !{!"_ZTSN4juce10OwnedArrayINS_9ComponentENS_20DummyCriticalSectionEEE", !27, i64 0, !10, i64 16}
!69 = !{!"_ZTSN4juce11StringArrayE", !70, i64 0}
!70 = !{!"_ZTSN4juce5ArrayINS_6StringENS_20DummyCriticalSectionELi0EEE", !71, i64 0, !10, i64 16}
!71 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_6StringENS_20DummyCriticalSectionEEE", !72, i64 0, !10, i64 8}
!72 = !{!"_ZTSN4juce9HeapBlockINS_6StringELb0EEE", !6, i64 0}
!73 = !{i8 0, i8 2}
!74 = !{}


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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce6Button23isRegisteredForShortcutERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(375), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10OwnedArrayINS_10TextButtonENS_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 @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce11AlertWindow10keyPressedERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(577) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 352
  %4 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %3) #3
  br label %.critedge

.critedge:                                        ; preds = %6, %2
  %.012 = phi i32 [ %4, %2 ], [ %7, %6 ]
  %5 = icmp sgt i32 %.012, 0
  br i1 %5, label %6, label %14

6:                                                ; preds = %.critedge
  %7 = add nsw i32 %.012, -1
  %8 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %3, i32 noundef %7) #3
  %9 = tail call noundef zeroext i1 @_ZNK4juce6Button23isRegisteredForShortcutERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(375) %8, ptr noundef nonnull align 4 dereferenceable(12) %1)
  br i1 %9, label %10, label %.critedge

10:                                               ; preds = %6
  %11 = load ptr, ptr %8, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 360
  %13 = load ptr, ptr %12, align 8
  tail call void %13(ptr noundef nonnull align 8 dereferenceable(375) %8)
  br label %34

14:                                               ; preds = %.critedge
  %15 = tail call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 27) #3
  br i1 %15, label %16, label %24

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 576
  %18 = load i8, ptr %17, align 8, !tbaa !8, !range !69, !noundef !70
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %20, label %24

20:                                               ; preds = %16
  %21 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %3) #3
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  tail call void @_ZN4juce9Component14exitModalStateEi(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef 0)
  br label %34

24:                                               ; preds = %20, %16, %14
  %25 = tail call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 13) #3
  br i1 %25, label %26, label %34

26:                                               ; preds = %24
  %27 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %3) #3
  %28 = icmp eq i32 %27, 1
  br i1 %28, label %29, label %34

29:                                               ; preds = %26
  %30 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %3, i32 noundef 0) #3
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 360
  %33 = load ptr, ptr %32, align 8
  tail call void %33(ptr noundef nonnull align 8 dereferenceable(375) %30)
  br label %34

34:                                               ; preds = %10, %24, %26, %29, %23
  %.3 = phi i1 [ true, %10 ], [ true, %23 ], [ true, %29 ], [ false, %26 ], [ false, %24 ]
  ret i1 %.3
}

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !39, i64 576}
!9 = !{!"_ZTSN4juce11AlertWindowE", !10, i64 0, !41, i64 208, !13, i64 216, !42, i64 224, !48, i64 264, !49, i64 272, !51, i64 320, !17, i64 336, !52, i64 352, !55, i64 376, !58, i64 400, !61, i64 424, !22, i64 448, !64, i64 472, !22, i64 496, !65, i64 520, !65, i64 544, !15, i64 568, !39, i64 576}
!10 = !{!"_ZTSN4juce14TopLevelWindowE", !11, i64 0, !39, i64 197, !39, i64 198, !39, i64 199, !40, i64 200}
!11 = !{!"_ZTSN4juce9ComponentE", !12, i64 0, !13, i64 8, !13, i64 16, !15, i64 24, !17, i64 32, !20, i64 48, !21, i64 56, !22, i64 64, !15, i64 88, !25, i64 96, !15, i64 104, !26, i64 112, !27, i64 120, !28, i64 128, !29, i64 136, !33, i64 160, !37, i64 184, !16, i64 192, !16, i64 196}
!12 = !{!"_ZTSN4juce13MouseListenerE"}
!13 = !{!"_ZTSN4juce6StringE", !14, i64 0}
!14 = !{!"_ZTSN4juce16CharPointer_UTF8E", !15, i64 0}
!15 = !{!"any pointer", !16, i64 0}
!16 = !{!"omnipotent char", !7, i64 0}
!17 = !{!"_ZTSN4juce9RectangleIiEE", !18, i64 0, !19, i64 8, !19, i64 12}
!18 = !{!"_ZTSN4juce5PointIiEE", !19, i64 0, !19, i64 4}
!19 = !{!"int", !16, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !15, i64 0}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !15, i64 0}
!22 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !23, i64 0, !19, i64 16}
!23 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !24, i64 0, !19, i64 8}
!24 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !15, i64 0}
!25 = !{!"_ZTSN4juce11MouseCursorE", !15, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !15, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !15, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !15, i64 0}
!29 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !30, i64 0}
!30 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !31, i64 0, !19, i64 16}
!31 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !32, i64 0, !19, i64 8}
!32 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !15, i64 0}
!33 = !{!"_ZTSN4juce13NamedValueSetE", !34, i64 0}
!34 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !35, i64 0, !19, i64 16}
!35 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !36, i64 0, !19, i64 8}
!36 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !15, i64 0}
!37 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !38, i64 0}
!38 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !15, i64 0}
!39 = !{!"bool", !16, i64 0}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_12DropShadowerEEE", !15, i64 0}
!41 = !{!"_ZTSN4juce6Button8ListenerE"}
!42 = !{!"_ZTSN4juce10TextLayoutE", !43, i64 0, !46, i64 24, !46, i64 28, !47, i64 32}
!43 = !{!"_ZTSN4juce10OwnedArrayINS_10TextLayout4LineENS_20DummyCriticalSectionEEE", !44, i64 0, !19, i64 16}
!44 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextLayout4LineENS_20DummyCriticalSectionEEE", !45, i64 0, !19, i64 8}
!45 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextLayout4LineELb0EEE", !15, i64 0}
!46 = !{!"float", !16, i64 0}
!47 = !{!"_ZTSN4juce13JustificationE", !19, i64 0}
!48 = !{!"_ZTSN4juce11AlertWindow13AlertIconTypeE", !16, i64 0}
!49 = !{!"_ZTSN4juce26ComponentBoundsConstrainerE", !19, i64 8, !19, i64 12, !19, i64 16, !19, i64 20, !19, i64 24, !19, i64 28, !19, i64 32, !19, i64 36, !50, i64 40}
!50 = !{!"double", !16, i64 0}
!51 = !{!"_ZTSN4juce16ComponentDraggerE", !18, i64 8}
!52 = !{!"_ZTSN4juce10OwnedArrayINS_10TextButtonENS_20DummyCriticalSectionEEE", !53, i64 0, !19, i64 16}
!53 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextButtonENS_20DummyCriticalSectionEEE", !54, i64 0, !19, i64 8}
!54 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextButtonELb0EEE", !15, i64 0}
!55 = !{!"_ZTSN4juce10OwnedArrayINS_10TextEditorENS_20DummyCriticalSectionEEE", !56, i64 0, !19, i64 16}
!56 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextEditorENS_20DummyCriticalSectionEEE", !57, i64 0, !19, i64 8}
!57 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextEditorELb0EEE", !15, i64 0}
!58 = !{!"_ZTSN4juce10OwnedArrayINS_8ComboBoxENS_20DummyCriticalSectionEEE", !59, i64 0, !19, i64 16}
!59 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_8ComboBoxENS_20DummyCriticalSectionEEE", !60, i64 0, !19, i64 8}
!60 = !{!"_ZTSN4juce9HeapBlockIPNS_8ComboBoxELb0EEE", !15, i64 0}
!61 = !{!"_ZTSN4juce10OwnedArrayINS_11ProgressBarENS_20DummyCriticalSectionEEE", !62, i64 0, !19, i64 16}
!62 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_11ProgressBarENS_20DummyCriticalSectionEEE", !63, i64 0, !19, i64 8}
!63 = !{!"_ZTSN4juce9HeapBlockIPNS_11ProgressBarELb0EEE", !15, i64 0}
!64 = !{!"_ZTSN4juce10OwnedArrayINS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !19, i64 16}
!65 = !{!"_ZTSN4juce11StringArrayE", !66, i64 0}
!66 = !{!"_ZTSN4juce5ArrayINS_6StringENS_20DummyCriticalSectionELi0EEE", !67, i64 0, !19, i64 16}
!67 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_6StringENS_20DummyCriticalSectionEEE", !68, i64 0, !19, i64 8}
!68 = !{!"_ZTSN4juce9HeapBlockINS_6StringELb0EEE", !15, i64 0}
!69 = !{i8 0, i8 2}
!70 = !{}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass