; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/juce_gui_basics.ll (ZN4juce9ComponentD2Ev)

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

@_ZN4juce9Component25currentlyFocusedComponentE = external dso_local global ptr, align 8
@_ZTVN4juce9ComponentE = external dso_local unnamed_addr constant { [47 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #0

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN4juce13NamedValueSetD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(197) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %2, align 8
  store ptr getelementptr inbounds inrange(-16, 360) ({ [47 x ptr] }, ptr @_ZTVN4juce9ComponentE, i32 0, i32 0, i32 2), ptr %4, align 8, !tbaa !9
  %5 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 14
  store { i64, i64 } { i64 65, i64 0 }, ptr %3, align 8, !tbaa !11
  %6 = getelementptr inbounds { i64, i64 }, ptr %3, i32 0, i32 0
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds { i64, i64 }, ptr %3, i32 0, i32 1
  %9 = load i64, ptr %8, align 8
  invoke void @_ZN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE4callIRNS_9ComponentEEEvMS1_FvT_ENS_11TypeHelpers13ParameterTypeISA_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 %7, i64 %9, ptr noundef nonnull align 8 dereferenceable(197) %4)
          to label %10 unwind label %71

10:                                               ; preds = %1
  %11 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 16
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6Master5clearEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %12

12:                                               ; preds = %21, %10
  %13 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 7
  %14 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %13) #5
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %16, label %22

16:                                               ; preds = %12
  %17 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 7
  %18 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %17) #5
  %19 = sub nsw i32 %18, 1
  %20 = invoke noundef ptr @_ZN4juce9Component20removeChildComponentEibb(ptr noundef nonnull align 8 dereferenceable(197) %4, i32 noundef %19, i1 noundef zeroext false, i1 noundef zeroext true)
          to label %21 unwind label %71

21:                                               ; preds = %16
  br label %12, !llvm.loop !12

22:                                               ; preds = %12
  %23 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 3
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %36

26:                                               ; preds = %22
  %27 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 3
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %29 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  %31 = getelementptr inbounds %"class.juce::Component", ptr %30, i32 0, i32 7
  %32 = invoke noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE7indexOfES2_(ptr noundef nonnull align 8 dereferenceable(20) %31, ptr noundef %4)
          to label %33 unwind label %71

33:                                               ; preds = %26
  %34 = invoke noundef ptr @_ZN4juce9Component20removeChildComponentEibb(ptr noundef nonnull align 8 dereferenceable(197) %28, i32 noundef %32, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %35 unwind label %71

35:                                               ; preds = %33
  br label %47

36:                                               ; preds = %22
  %37 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8, !tbaa !5
  %38 = icmp eq ptr %37, %4
  br i1 %38, label %42, label %39

39:                                               ; preds = %36
  %40 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8, !tbaa !5
  %41 = call noundef zeroext i1 @_ZNK4juce9Component10isParentOfEPKS0_(ptr noundef nonnull align 8 dereferenceable(197) %4, ptr noundef %40) #5
  br i1 %41, label %42, label %46

42:                                               ; preds = %39, %36
  %43 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8, !tbaa !5
  %44 = icmp ne ptr %43, %4
  invoke void @_ZN4juce9Component13giveAwayFocusEb(i1 noundef zeroext %44)
          to label %45 unwind label %71

45:                                               ; preds = %42
  br label %46

46:                                               ; preds = %45, %39
  br label %47

47:                                               ; preds = %46, %35
  %48 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 17
  %49 = load i16, ptr %48, align 8
  %50 = and i16 %49, 1
  %51 = trunc i16 %50 to i1
  br i1 %51, label %52, label %54

52:                                               ; preds = %47
  invoke void @_ZN4juce9Component17removeFromDesktopEv(ptr noundef nonnull align 8 dereferenceable(197) %4)
          to label %53 unwind label %71

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53, %47
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 16
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #5
  %59 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 15
  call void @_ZN4juce13NamedValueSetD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %59) #5
  %60 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 14
  call void @_ZN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %60) #5
  %61 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 13
  call void @_ZN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #5
  %62 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 12
  call void @_ZN4juce13ScopedPointerINS_9Component17MouseListenerListEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %62) #5
  %63 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 11
  call void @_ZN4juce13ScopedPointerINS_20CachedComponentImageEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %63) #5
  %64 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 9
  call void @_ZN4juce11MouseCursorD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %64) #5
  %65 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 7
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %65) #5
  %66 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 6
  call void @_ZN4juce13ScopedPointerINS_15AffineTransformEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %66) #5
  %67 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 5
  call void @_ZN4juce13ScopedPointerINS_9Component10PositionerEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %67) #5
  %68 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %68) #5
  %69 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 2
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %69) #5
  %70 = getelementptr inbounds %"class.juce::Component", ptr %4, i32 0, i32 1
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %70) #5
  call void @_ZN4juce13MouseListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  ret void

71:                                               ; preds = %52, %42, %33, %26, %16, %1
  %72 = landingpad { ptr, i32 }
          catch ptr null
  %73 = extractvalue { ptr, i32 } %72, 0
  call void @__clang_call_terminate(ptr %73) #6
  unreachable
}

declare void @_ZN4juce11MouseCursorD1Ev(ptr)

attributes #0 = { noinline noreturn nounwind uwtable "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 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !6, i64 24}
!15 = !{!"_ZTSN4juce9ComponentE", !16, i64 0, !17, i64 8, !17, i64 16, !6, i64 24, !19, 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}
!16 = !{!"_ZTSN4juce13MouseListenerE"}
!17 = !{!"_ZTSN4juce6StringE", !18, i64 0}
!18 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!19 = !{!"_ZTSN4juce9RectangleIiEE", !20, i64 0, !21, i64 8, !21, i64 12}
!20 = !{!"_ZTSN4juce5PointIiEE", !21, i64 0, !21, i64 4}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!24 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !25, i64 0, !21, i64 16}
!25 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !26, i64 0, !21, 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, !21, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !34, i64 0, !21, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce13NamedValueSetE", !36, i64 0}
!36 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !37, i64 0, !21, i64 16}
!37 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !38, i64 0, !21, 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"

@_ZN4juce9Component25currentlyFocusedComponentE = external dso_local local_unnamed_addr global ptr, align 8
@_ZTVN4juce9ComponentE = external dso_local unnamed_addr constant { [47 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN4juce13NamedValueSetD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(197) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  store ptr getelementptr inbounds inrange(-16, 360) (i8, ptr @_ZTVN4juce9ComponentE, i64 16), ptr %0, align 8, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %0, i64 136
  invoke void @_ZN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE4callIRNS_9ComponentEEEvMS1_FvT_ENS_11TypeHelpers13ParameterTypeISA_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 65, i64 0, ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %3 unwind label %.loopexit.split-lp

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6Master5clearEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  br label %6

6:                                                ; preds = %9, %3
  %7 = tail call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %9, label %13

9:                                                ; preds = %6
  %10 = tail call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  %11 = add nsw i32 %10, -1
  %12 = invoke noundef ptr @_ZN4juce9Component20removeChildComponentEibb(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %11, i1 noundef zeroext false, i1 noundef zeroext true)
          to label %6 unwind label %.loopexit, !llvm.loop !8

13:                                               ; preds = %6
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !10
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %20, label %16

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %15, i64 64
  %18 = tail call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE7indexOfES2_(ptr noundef nonnull align 8 dereferenceable(20) %17, ptr noundef nonnull %0)
  %19 = invoke noundef ptr @_ZN4juce9Component20removeChildComponentEibb(ptr noundef nonnull align 8 dereferenceable(197) %15, i32 noundef %18, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %28 unwind label %.loopexit.split-lp

20:                                               ; preds = %13
  %21 = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8, !tbaa !39
  %22 = icmp eq ptr %21, %0
  br i1 %22, label %25, label %23

23:                                               ; preds = %20
  %24 = tail call noundef zeroext i1 @_ZNK4juce9Component10isParentOfEPKS0_(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %21) #5
  br i1 %24, label %._crit_edge, label %28

._crit_edge:                                      ; preds = %23
  %.pre = load ptr, ptr @_ZN4juce9Component25currentlyFocusedComponentE, align 8, !tbaa !39
  br label %25

25:                                               ; preds = %._crit_edge, %20
  %26 = phi ptr [ %.pre, %._crit_edge ], [ %0, %20 ]
  %27 = icmp ne ptr %26, %0
  invoke void @_ZN4juce9Component13giveAwayFocusEb(i1 noundef zeroext %27)
          to label %28 unwind label %.loopexit.split-lp

28:                                               ; preds = %23, %25, %16
  %29 = getelementptr inbounds i8, ptr %0, i64 192
  %30 = load i16, ptr %29, align 8
  %31 = trunc i16 %30 to i1
  br i1 %31, label %32, label %33

32:                                               ; preds = %28
  invoke void @_ZN4juce9Component17removeFromDesktopEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %33 unwind label %.loopexit.split-lp

33:                                               ; preds = %28, %32
  tail call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %34 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZN4juce13NamedValueSetD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
  tail call void @_ZN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %35 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #5
  %36 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZN4juce13ScopedPointerINS_9Component17MouseListenerListEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #5
  %37 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZN4juce13ScopedPointerINS_20CachedComponentImageEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #5
  %38 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZN4juce11MouseCursorD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #5
  tail call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  %39 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZN4juce13ScopedPointerINS_15AffineTransformEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %39) #5
  %40 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZN4juce13ScopedPointerINS_9Component10PositionerEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #5
  %41 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %41) #5
  %42 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #5
  %43 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %43) #5
  tail call void @_ZN4juce13MouseListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  ret void

.loopexit:                                        ; preds = %9
  %lpad.loopexit = landingpad { ptr, i32 }
          catch ptr null
  br label %44

.loopexit.split-lp:                               ; preds = %1, %16, %25, %32
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          catch ptr null
  br label %44

44:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  %45 = extractvalue { ptr, i32 } %lpad.phi, 0
  tail call void @__clang_call_terminate(ptr %45) #6
  unreachable
}

declare void @_ZN4juce11MouseCursorD1Ev(ptr) local_unnamed_addr

attributes #0 = { noinline noreturn nounwind uwtable "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 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !15, i64 24}
!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 = !{!15, !15, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InstCombinePass,LCSSAPass,LICMPass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass