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

@_ZN4juce9Component25currentlyFocusedComponentE = external dso_local global ptr, align 8

declare i32 @__gxx_personality_v0(...)

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

18:                                               ; preds = %4
  br label %19

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %20 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 7
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = call noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEixEi(ptr noundef nonnull align 8 dereferenceable(20) %20, i32 noundef %21)
  store ptr %22, ptr %10, align 8, !tbaa !5
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %100

25:                                               ; preds = %19
  %26 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %31

28:                                               ; preds = %25
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = call noundef zeroext i1 @_ZNK4juce9Component9isShowingEv(ptr noundef nonnull align 8 dereferenceable(197) %29)
  br label %31

31:                                               ; preds = %28, %25
  %32 = phi i1 [ false, %25 ], [ %30, %28 ]
  %33 = zext i1 %32 to i8
  store i8 %33, ptr %8, align 1, !tbaa !11
  %34 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %42

36:                                               ; preds = %31
  call void @_ZNK4juce9Component17sendFakeMouseMoveEv(ptr noundef nonnull align 8 dereferenceable(197) %17)
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %37) #4
  br i1 %38, label %39, label %41

39:                                               ; preds = %36
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4juce9Component13repaintParentEv(ptr noundef nonnull align 8 dereferenceable(197) %40)
  br label %41

41:                                               ; preds = %39, %36
  br label %42

42:                                               ; preds = %41, %31
  %43 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 7
  %44 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE6removeEi(ptr noundef nonnull align 8 dereferenceable(20) %43, i32 noundef %44)
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.juce::Component", ptr %45, i32 0, i32 3
  store ptr null, ptr %46, align 8, !tbaa !15
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4juce9Component16ComponentHelpers30releaseAllCachedImageResourcesERS0_(ptr noundef nonnull align 8 dereferenceable(197) %47)
  %48 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8, !tbaa !5
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = icmp eq ptr %48, %49
  br i1 %50, label %55, label %51

51:                                               ; preds = %42
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8, !tbaa !5
  %54 = call noundef zeroext i1 @_ZNK4juce9Component10isParentOfEPKS0_(ptr noundef nonnull align 8 dereferenceable(197) %52, ptr noundef %53) #4
  br i1 %54, label %55, label %90

55:                                               ; preds = %51, %42
  %56 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %57 = trunc i8 %56 to i1
  br i1 %57, label %58, label %80

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %17)
  %59 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %60 = trunc i8 %59 to i1
  br i1 %60, label %65, label %61

61:                                               ; preds = %58
  %62 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8, !tbaa !5
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = icmp ne ptr %62, %63
  br label %65

65:                                               ; preds = %61, %58
  %66 = phi i1 [ true, %58 ], [ %64, %61 ]
  invoke void @_ZN4juce9Component13giveAwayFocusEb(i1 noundef zeroext %66)
          to label %67 unwind label %71

67:                                               ; preds = %65
  %68 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef null) #4
  br i1 %68, label %69, label %75

69:                                               ; preds = %67
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %70, ptr %5, align 8
  store i32 1, ptr %14, align 4
  br label %77

71:                                               ; preds = %75, %65
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %12, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %13, align 4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %104

75:                                               ; preds = %67
  invoke void @_ZN4juce9Component17grabKeyboardFocusEv(ptr noundef nonnull align 8 dereferenceable(197) %17)
          to label %76 unwind label %71

76:                                               ; preds = %75
  store i32 0, ptr %14, align 4
  br label %77

77:                                               ; preds = %76, %69
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %78 = load i32, ptr %14, align 4
  switch i32 %78, label %102 [
    i32 0, label %79
  ]

79:                                               ; preds = %77
  br label %89

80:                                               ; preds = %55
  %81 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %82 = trunc i8 %81 to i1
  br i1 %82, label %87, label %83

83:                                               ; preds = %80
  %84 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8, !tbaa !5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = icmp ne ptr %84, %85
  br label %87

87:                                               ; preds = %83, %80
  %88 = phi i1 [ true, %80 ], [ %86, %83 ]
  call void @_ZN4juce9Component13giveAwayFocusEb(i1 noundef zeroext %88)
  br label %89

89:                                               ; preds = %87, %79
  br label %90

90:                                               ; preds = %89, %51
  %91 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %95

93:                                               ; preds = %90
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4juce9Component24internalHierarchyChangedEv(ptr noundef nonnull align 8 dereferenceable(197) %94)
  br label %95

95:                                               ; preds = %93, %90
  %96 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %99

98:                                               ; preds = %95
  call void @_ZN4juce9Component23internalChildrenChangedEv(ptr noundef nonnull align 8 dereferenceable(197) %17)
  br label %99

99:                                               ; preds = %98, %95
  br label %100

100:                                              ; preds = %99, %19
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %101, ptr %5, align 8
  store i32 1, ptr %14, align 4
  br label %102

102:                                              ; preds = %100, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %103 = load ptr, ptr %5, align 8
  ret ptr %103

104:                                              ; preds = %71
  %105 = load ptr, ptr %12, align 8
  %106 = load i32, ptr %13, align 4
  %107 = insertvalue { ptr, i32 } poison, ptr %105, 0
  %108 = insertvalue { ptr, i32 } %107, i32 %106, 1
  resume { ptr, i32 } %108
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component13giveAwayFocusEb(i1 noundef zeroext) #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !6, i64 24}
!16 = !{!"_ZTSN4juce9ComponentE", !17, i64 0, !18, i64 8, !18, i64 16, !6, i64 24, !20, i64 32, !22, i64 48, !23, i64 56, !24, i64 64, !6, i64 88, !27, i64 96, !6, i64 104, !28, i64 112, !29, i64 120, !30, i64 128, !31, i64 136, !35, i64 160, !39, i64 184, !7, i64 192, !7, i64 196}
!17 = !{!"_ZTSN4juce13MouseListenerE"}
!18 = !{!"_ZTSN4juce6StringE", !19, i64 0}
!19 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!20 = !{!"_ZTSN4juce9RectangleIiEE", !21, i64 0, !10, i64 8, !10, i64 12}
!21 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!24 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !25, i64 0, !10, i64 16}
!25 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !26, i64 0, !10, i64 8}
!26 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!27 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!29 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!30 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!31 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !32, i64 0}
!32 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !33, i64 0, !10, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !34, i64 0, !10, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce13NamedValueSetE", !36, i64 0}
!36 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !37, i64 0, !10, i64 16}
!37 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !38, i64 0, !10, i64 8}
!38 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!39 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !40, i64 0}
!40 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}


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

@_ZN4juce9Component25currentlyFocusedComponentE = external dso_local local_unnamed_addr global ptr, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4juce9Component20removeChildComponentEibb(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %1, i1 noundef zeroext %2, i1 noundef zeroext %3) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.juce::WeakReference", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = tail call noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEixEi(ptr noundef nonnull align 8 dereferenceable(20) %6, i32 noundef %1)
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %39, label %8

8:                                                ; preds = %4
  br i1 %2, label %9, label %.thread

9:                                                ; preds = %8
  %10 = tail call noundef zeroext i1 @_ZNK4juce9Component9isShowingEv(ptr noundef nonnull align 8 dereferenceable(197) %7)
  br i1 %10, label %11, label %.thread

11:                                               ; preds = %9
  tail call void @_ZNK4juce9Component17sendFakeMouseMoveEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
  %12 = tail call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %7) #4
  br i1 %12, label %13, label %.thread

13:                                               ; preds = %11
  tail call void @_ZN4juce9Component13repaintParentEv(ptr noundef nonnull align 8 dereferenceable(197) %7)
  br label %.thread

.thread:                                          ; preds = %8, %11, %13, %9
  %14 = phi i1 [ true, %11 ], [ true, %13 ], [ false, %9 ], [ false, %8 ]
  tail call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE6removeEi(ptr noundef nonnull align 8 dereferenceable(20) %6, i32 noundef %1)
  %15 = getelementptr inbounds i8, ptr %7, i64 24
  store ptr null, ptr %15, align 8, !tbaa !5
  tail call void @_ZN4juce9Component16ComponentHelpers30releaseAllCachedImageResourcesERS0_(ptr noundef nonnull align 8 dereferenceable(197) %7)
  %16 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8, !tbaa !35
  %17 = icmp eq ptr %16, %7
  br i1 %17, label %20, label %18

18:                                               ; preds = %.thread
  %19 = tail call noundef zeroext i1 @_ZNK4juce9Component10isParentOfEPKS0_(ptr noundef nonnull align 8 dereferenceable(197) %7, ptr noundef %16) #4
  br i1 %19, label %20, label %35

20:                                               ; preds = %18, %.thread
  br i1 %14, label %21, label %31

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull %0)
  %22 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8
  %23 = icmp ne ptr %22, %7
  %24 = select i1 %3, i1 true, i1 %23
  invoke void @_ZN4juce9Component13giveAwayFocusEb(i1 noundef zeroext %24)
          to label %25 unwind label %27

25:                                               ; preds = %21
  %26 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef null) #4
  br i1 %26, label %.critedge, label %29

27:                                               ; preds = %29, %21
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  resume { ptr, i32 } %28

29:                                               ; preds = %25
  invoke void @_ZN4juce9Component17grabKeyboardFocusEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %30 unwind label %27

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

31:                                               ; preds = %20
  %32 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8
  %33 = icmp ne ptr %32, %7
  %34 = select i1 %3, i1 true, i1 %33
  tail call void @_ZN4juce9Component13giveAwayFocusEb(i1 noundef zeroext %34)
  br label %35

35:                                               ; preds = %30, %31, %18
  br i1 %3, label %36, label %37

36:                                               ; preds = %35
  call void @_ZN4juce9Component24internalHierarchyChangedEv(ptr noundef nonnull align 8 dereferenceable(197) %7)
  br label %37

37:                                               ; preds = %36, %35
  br i1 %14, label %38, label %39

38:                                               ; preds = %37
  call void @_ZN4juce9Component23internalChildrenChangedEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
  br label %39

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

39:                                               ; preds = %4, %38, %37, %.critedge
  ret ptr %7
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component13giveAwayFocusEb(i1 noundef zeroext) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

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

; 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: mustprogress uwtable
declare dso_local void @_ZN4juce9Component23internalChildrenChangedEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #0 align 2

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

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !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 = !{!10, !10, i64 0}


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