; 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::ScopedPointer.78" = type { ptr }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::Component" = 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, [3 x i8] }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"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" }
%union.anon = 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 uwtable
declare dso_local void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component25internalModalInputAttemptEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component17grabFocusInternalENS0_15FocusChangeTypeEb(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component26moveKeyboardFocusToSiblingEb(ptr noundef nonnull align 8 dereferenceable(197) %0, i1 noundef zeroext %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca %"class.juce::ScopedPointer.78", align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.juce::WeakReference", align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %11 = zext i1 %1 to i8
  store i8 %11, ptr %4, align 1, !tbaa !9
  %12 = load ptr, ptr %3, align 8
  br label %13

13:                                               ; preds = %2
  br label %14

14:                                               ; preds = %13
  %15 = getelementptr inbounds %"class.juce::Component", ptr %12, i32 0, i32 3
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %101

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %19 = load ptr, ptr %12, align 8, !tbaa !38
  %20 = getelementptr inbounds ptr, ptr %19, i64 21
  %21 = load ptr, ptr %20, align 8
  %22 = call noundef ptr %21(ptr noundef nonnull align 8 dereferenceable(197) %12)
  call void @_ZN4juce13ScopedPointerINS_22KeyboardFocusTraverserEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %22) #4
  %23 = call noundef ptr @_ZNK4juce13ScopedPointerINS_22KeyboardFocusTraverserEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %87

25:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %26 = load i8, ptr %4, align 1, !tbaa !9, !range !40, !noundef !41
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %35

28:                                               ; preds = %25
  %29 = call noundef ptr @_ZNK4juce13ScopedPointerINS_22KeyboardFocusTraverserEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %30 = load ptr, ptr %29, align 8, !tbaa !38
  %31 = getelementptr inbounds ptr, ptr %30, i64 2
  %32 = load ptr, ptr %31, align 8
  %33 = invoke noundef ptr %32(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef %12)
          to label %34 unwind label %62

34:                                               ; preds = %28
  br label %42

35:                                               ; preds = %25
  %36 = call noundef ptr @_ZNK4juce13ScopedPointerINS_22KeyboardFocusTraverserEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %37 = load ptr, ptr %36, align 8, !tbaa !38
  %38 = getelementptr inbounds ptr, ptr %37, i64 3
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef ptr %39(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef %12)
          to label %41 unwind label %62

41:                                               ; preds = %35
  br label %42

42:                                               ; preds = %41, %34
  %43 = phi ptr [ %33, %34 ], [ %40, %41 ]
  store ptr %43, ptr %6, align 8, !tbaa !5
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_22KeyboardFocusTraverserEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef null)
          to label %45 unwind label %62

45:                                               ; preds = %42
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %82

48:                                               ; preds = %45
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = invoke noundef zeroext i1 @_ZNK4juce9Component41isCurrentlyBlockedByAnotherModalComponentEv(ptr noundef nonnull align 8 dereferenceable(197) %49)
          to label %51 unwind label %62

51:                                               ; preds = %48
  br i1 %50, label %52, label %79

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %53)
          to label %54 unwind label %66

54:                                               ; preds = %52
  invoke void @_ZN4juce9Component25internalModalInputAttemptEv(ptr noundef nonnull align 8 dereferenceable(197) %12)
          to label %55 unwind label %70

55:                                               ; preds = %54
  %56 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef null) #4
  br i1 %56, label %61, label %57

57:                                               ; preds = %55
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = invoke noundef zeroext i1 @_ZNK4juce9Component41isCurrentlyBlockedByAnotherModalComponentEv(ptr noundef nonnull align 8 dereferenceable(197) %58)
          to label %60 unwind label %70

60:                                               ; preds = %57
  br i1 %59, label %61, label %74

61:                                               ; preds = %60, %55
  store i32 1, ptr %10, align 4
  br label %75

62:                                               ; preds = %79, %48, %42, %35, %28
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %7, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %8, align 4
  br label %86

66:                                               ; preds = %52
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %7, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %8, align 4
  br label %78

70:                                               ; preds = %57, %54
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br label %78

74:                                               ; preds = %60
  store i32 0, ptr %10, align 4
  br label %75

75:                                               ; preds = %74, %61
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %76 = load i32, ptr %10, align 4
  switch i32 %76, label %83 [
    i32 0, label %77
  ]

77:                                               ; preds = %75
  br label %79

78:                                               ; preds = %70, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %86

79:                                               ; preds = %77, %51
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4juce9Component17grabFocusInternalENS0_15FocusChangeTypeEb(ptr noundef nonnull align 8 dereferenceable(197) %80, i32 noundef 1, i1 noundef zeroext true)
          to label %81 unwind label %62

81:                                               ; preds = %79
  store i32 1, ptr %10, align 4
  br label %83

82:                                               ; preds = %45
  store i32 0, ptr %10, align 4
  br label %83

83:                                               ; preds = %82, %81, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %84 = load i32, ptr %10, align 4
  switch i32 %84, label %93 [
    i32 0, label %85
  ]

85:                                               ; preds = %83
  br label %87

86:                                               ; preds = %78, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %100

87:                                               ; preds = %85, %18
  %88 = getelementptr inbounds %"class.juce::Component", ptr %12, i32 0, i32 3
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  %90 = load i8, ptr %4, align 1, !tbaa !9, !range !40, !noundef !41
  %91 = trunc i8 %90 to i1
  invoke void @_ZN4juce9Component26moveKeyboardFocusToSiblingEb(ptr noundef nonnull align 8 dereferenceable(197) %89, i1 noundef zeroext %91)
          to label %92 unwind label %96

92:                                               ; preds = %87
  store i32 0, ptr %10, align 4
  br label %93

93:                                               ; preds = %92, %83
  call void @_ZN4juce13ScopedPointerINS_22KeyboardFocusTraverserEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %94 = load i32, ptr %10, align 4
  switch i32 %94, label %107 [
    i32 0, label %95
    i32 1, label %101
  ]

95:                                               ; preds = %93
  br label %101

96:                                               ; preds = %87
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %7, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %8, align 4
  br label %100

100:                                              ; preds = %96, %86
  call void @_ZN4juce13ScopedPointerINS_22KeyboardFocusTraverserEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %102

101:                                              ; preds = %95, %93, %14
  ret void

102:                                              ; preds = %100
  %103 = load ptr, ptr %7, align 8
  %104 = load i32, ptr %8, align 4
  %105 = insertvalue { ptr, i32 } poison, ptr %103, 0
  %106 = insertvalue { ptr, i32 } %105, i32 %104, 1
  resume { ptr, i32 } %106

107:                                              ; preds = %93
  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 = { 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 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"_ZTSN4juce9ComponentE", !13, i64 0, !14, i64 8, !14, i64 16, !6, i64 24, !16, 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}
!13 = !{!"_ZTSN4juce13MouseListenerE"}
!14 = !{!"_ZTSN4juce6StringE", !15, i64 0}
!15 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!16 = !{!"_ZTSN4juce9RectangleIiEE", !17, i64 0, !18, i64 8, !18, i64 12}
!17 = !{!"_ZTSN4juce5PointIiEE", !18, i64 0, !18, i64 4}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !18, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !18, 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, !18, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !18, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!32 = !{!"_ZTSN4juce13NamedValueSetE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !18, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !35, i64 0, !18, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!38 = !{!39, !39, i64 0}
!39 = !{!"vtable pointer", !8, i64 0}
!40 = !{i8 0, i8 2}
!41 = !{}


; 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::ScopedPointer.78" = type { ptr }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }

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 uwtable
declare dso_local void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component25internalModalInputAttemptEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component26moveKeyboardFocusToSiblingEb(ptr noundef nonnull align 8 dereferenceable(197) %0, i1 noundef zeroext %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::ScopedPointer.78", align 8
  %4 = alloca %"class.juce::WeakReference", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %44, label %7

7:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %8 = load ptr, ptr %0, align 8, !tbaa !35
  %9 = getelementptr inbounds i8, ptr %8, i64 168
  %10 = load ptr, ptr %9, align 8
  %11 = tail call noundef ptr %10(ptr noundef nonnull align 8 dereferenceable(197) %0)
  call void @_ZN4juce13ScopedPointerINS_22KeyboardFocusTraverserEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %11) #4
  %12 = call noundef ptr @_ZNK4juce13ScopedPointerINS_22KeyboardFocusTraverserEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %.not18 = icmp eq ptr %12, null
  br i1 %.not18, label %.critedge26, label %.invoke

.invoke:                                          ; preds = %7
  %13 = call noundef ptr @_ZNK4juce13ScopedPointerINS_22KeyboardFocusTraverserEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %14 = load ptr, ptr %13, align 8, !tbaa !35
  %. = select i1 %1, i64 16, i64 24
  %15 = getelementptr inbounds i8, ptr %14, i64 %.
  %16 = load ptr, ptr %15, align 8
  %17 = invoke noundef ptr %16(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull %0)
          to label %18 unwind label %30

18:                                               ; preds = %.invoke
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_22KeyboardFocusTraverserEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef null)
  %.not19 = icmp eq ptr %17, null
  br i1 %.not19, label %.critedge26, label %20

20:                                               ; preds = %18
  %21 = invoke noundef zeroext i1 @_ZNK4juce9Component41isCurrentlyBlockedByAnotherModalComponentEv(ptr noundef nonnull align 8 dereferenceable(197) %17)
          to label %22 unwind label %30

22:                                               ; preds = %20
  br i1 %21, label %23, label %38

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  invoke void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %17)
          to label %24 unwind label %32

24:                                               ; preds = %23
  invoke void @_ZN4juce9Component25internalModalInputAttemptEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %25 unwind label %34

25:                                               ; preds = %24
  %26 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef null) #4
  br i1 %26, label %36, label %27

27:                                               ; preds = %25
  %28 = invoke noundef zeroext i1 @_ZNK4juce9Component41isCurrentlyBlockedByAnotherModalComponentEv(ptr noundef nonnull align 8 dereferenceable(197) %17)
          to label %29 unwind label %34

29:                                               ; preds = %27
  br i1 %28, label %36, label %.critedge

30:                                               ; preds = %.invoke, %38, %20
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %43

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

34:                                               ; preds = %27, %24
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br label %37

.critedge:                                        ; preds = %29
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %38

36:                                               ; preds = %25, %29
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %40

37:                                               ; preds = %34, %32
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %43

38:                                               ; preds = %.critedge, %22
  invoke void @_ZN4juce9Component17grabFocusInternalENS0_15FocusChangeTypeEb(ptr noundef nonnull align 8 dereferenceable(197) %17, i32 noundef 1, i1 noundef zeroext true)
          to label %40 unwind label %30

.critedge26:                                      ; preds = %18, %7
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4juce9Component26moveKeyboardFocusToSiblingEb(ptr noundef nonnull align 8 dereferenceable(197) %39, i1 noundef zeroext %1)
          to label %40 unwind label %41

40:                                               ; preds = %36, %38, %.critedge26
  call void @_ZN4juce13ScopedPointerINS_22KeyboardFocusTraverserEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %44

41:                                               ; preds = %.critedge26
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %43

43:                                               ; preds = %30, %37, %41
  %.pn23 = phi { ptr, i32 } [ %42, %41 ], [ %31, %30 ], [ %.pn, %37 ]
  call void @_ZN4juce13ScopedPointerINS_22KeyboardFocusTraverserEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn23

44:                                               ; preds = %40, %2
  ret void
}

attributes #0 = { mustprogress 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 = { 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 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, !10, i64 24}
!6 = !{!"_ZTSN4juce9ComponentE", !7, i64 0, !8, i64 8, !8, i64 16, !10, i64 24, !13, i64 32, !16, i64 48, !17, i64 56, !18, i64 64, !10, i64 88, !21, i64 96, !10, i64 104, !22, i64 112, !23, i64 120, !24, i64 128, !25, i64 136, !29, i64 160, !33, i64 184, !11, i64 192, !11, i64 196}
!7 = !{!"_ZTSN4juce13MouseListenerE"}
!8 = !{!"_ZTSN4juce6StringE", !9, i64 0}
!9 = !{!"_ZTSN4juce16CharPointer_UTF8E", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN4juce9RectangleIiEE", !14, i64 0, !15, i64 8, !15, i64 12}
!14 = !{!"_ZTSN4juce5PointIiEE", !15, i64 0, !15, i64 4}
!15 = !{!"int", !11, i64 0}
!16 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !10, i64 0}
!17 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !10, i64 0}
!18 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !19, i64 0, !15, i64 16}
!19 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !20, i64 0, !15, i64 8}
!20 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !10, i64 0}
!21 = !{!"_ZTSN4juce11MouseCursorE", !10, i64 0}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !10, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !10, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !10, i64 0}
!25 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !26, i64 0}
!26 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !27, i64 0, !15, i64 16}
!27 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !28, i64 0, !15, i64 8}
!28 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !10, i64 0}
!29 = !{!"_ZTSN4juce13NamedValueSetE", !30, i64 0}
!30 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !31, i64 0, !15, i64 16}
!31 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !32, i64 0, !15, i64 8}
!32 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !10, i64 0}
!33 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !34, i64 0}
!34 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !10, i64 0}
!35 = !{!36, !36, i64 0}
!36 = !{!"vtable pointer", !12, i64 0}


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