; 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::ScopedValueSetter" = type <{ ptr, i8, [7 x i8] }>
%"class.juce::ComponentMovementWatcher" = type <{ %"class.juce::ComponentListener", %"class.juce::WeakReference", i32, [4 x i8], %"class.juce::Array", i8, i8, [2 x i8], %"class.juce::Rectangle", [4 x i8] }>
%"class.juce::ComponentListener" = type { ptr }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, 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: mustprogress uwtable
declare dso_local noundef ptr @_ZNK4juce9Component7getPeerEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce24ComponentMovementWatcher31componentParentHierarchyChangedERNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 8 dereferenceable(197) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.juce::ScopedValueSetter", align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  %12 = getelementptr inbounds %"class.juce::ComponentMovementWatcher", ptr %11, i32 0, i32 1
  %13 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEneEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef null) #3
  br i1 %13, label %14, label %78

14:                                               ; preds = %2
  %15 = getelementptr inbounds %"class.juce::ComponentMovementWatcher", ptr %11, i32 0, i32 5
  %16 = load i8, ptr %15, align 8, !tbaa !9, !range !21, !noundef !22
  %17 = trunc i8 %16 to i1
  br i1 %17, label %78, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #3
  %19 = getelementptr inbounds %"class.juce::ComponentMovementWatcher", ptr %11, i32 0, i32 5
  call void @_ZN4juce17ScopedValueSetterIbEC2ERbb(ptr noundef nonnull align 8 dereferenceable(9) %5, ptr noundef nonnull align 1 dereferenceable(1) %19, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %20 = getelementptr inbounds %"class.juce::ComponentMovementWatcher", ptr %11, i32 0, i32 1
  %21 = call noundef ptr @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #3
  %22 = invoke noundef ptr @_ZNK4juce9Component7getPeerEv(ptr noundef nonnull align 8 dereferenceable(197) %21)
          to label %23 unwind label %44

23:                                               ; preds = %18
  store ptr %22, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %29

26:                                               ; preds = %23
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call noundef i32 @_ZNK4juce13ComponentPeer11getUniqueIDEv(ptr noundef nonnull align 8 dereferenceable(77) %27) #3
  br label %30

29:                                               ; preds = %23
  br label %30

30:                                               ; preds = %29, %26
  %31 = phi i32 [ %28, %26 ], [ 0, %29 ]
  store i32 %31, ptr %9, align 4, !tbaa !23
  %32 = load i32, ptr %9, align 4, !tbaa !23
  %33 = getelementptr inbounds %"class.juce::ComponentMovementWatcher", ptr %11, i32 0, i32 2
  %34 = load i32, ptr %33, align 8, !tbaa !24
  %35 = icmp ne i32 %32, %34
  br i1 %35, label %36, label %55

36:                                               ; preds = %30
  %37 = load ptr, ptr %11, align 8, !tbaa !25
  %38 = getelementptr inbounds ptr, ptr %37, i64 10
  %39 = load ptr, ptr %38, align 8
  invoke void %39(ptr noundef nonnull align 8 dereferenceable(68) %11)
          to label %40 unwind label %48

40:                                               ; preds = %36
  %41 = getelementptr inbounds %"class.juce::ComponentMovementWatcher", ptr %11, i32 0, i32 1
  %42 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef null) #3
  br i1 %42, label %43, label %52

43:                                               ; preds = %40
  store i32 1, ptr %10, align 4
  br label %74

44:                                               ; preds = %18
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %7, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %8, align 4
  br label %77

48:                                               ; preds = %66, %57, %56, %55, %36
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %7, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %77

52:                                               ; preds = %40
  %53 = load i32, ptr %9, align 4, !tbaa !23
  %54 = getelementptr inbounds %"class.juce::ComponentMovementWatcher", ptr %11, i32 0, i32 2
  store i32 %53, ptr %54, align 8, !tbaa !24
  br label %55

55:                                               ; preds = %52, %30
  invoke void @_ZN4juce24ComponentMovementWatcher10unregisterEv(ptr noundef nonnull align 8 dereferenceable(68) %11)
          to label %56 unwind label %48

56:                                               ; preds = %55
  invoke void @_ZN4juce24ComponentMovementWatcher23registerWithParentCompsEv(ptr noundef nonnull align 8 dereferenceable(68) %11)
          to label %57 unwind label %48

57:                                               ; preds = %56
  %58 = getelementptr inbounds %"class.juce::ComponentMovementWatcher", ptr %11, i32 0, i32 1
  %59 = call noundef ptr @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #3
  %60 = load ptr, ptr %11, align 8, !tbaa !25
  %61 = getelementptr inbounds ptr, ptr %60, i64 2
  %62 = load ptr, ptr %61, align 8
  invoke void %62(ptr noundef nonnull align 8 dereferenceable(68) %11, ptr noundef nonnull align 8 dereferenceable(197) %59, i1 noundef zeroext true, i1 noundef zeroext true)
          to label %63 unwind label %48

63:                                               ; preds = %57
  %64 = getelementptr inbounds %"class.juce::ComponentMovementWatcher", ptr %11, i32 0, i32 1
  %65 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEneEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef null) #3
  br i1 %65, label %66, label %73

66:                                               ; preds = %63
  %67 = getelementptr inbounds %"class.juce::ComponentMovementWatcher", ptr %11, i32 0, i32 1
  %68 = call noundef ptr @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %67) #3
  %69 = load ptr, ptr %11, align 8, !tbaa !25
  %70 = getelementptr inbounds ptr, ptr %69, i64 4
  %71 = load ptr, ptr %70, align 8
  invoke void %71(ptr noundef nonnull align 8 dereferenceable(68) %11, ptr noundef nonnull align 8 dereferenceable(197) %68)
          to label %72 unwind label %48

72:                                               ; preds = %66
  br label %73

73:                                               ; preds = %72, %63
  store i32 0, ptr %10, align 4
  br label %74

74:                                               ; preds = %73, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @_ZN4juce17ScopedValueSetterIbED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #3
  %75 = load i32, ptr %10, align 4
  switch i32 %75, label %84 [
    i32 0, label %76
    i32 1, label %78
  ]

76:                                               ; preds = %74
  br label %78

77:                                               ; preds = %48, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @_ZN4juce17ScopedValueSetterIbED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #3
  br label %79

78:                                               ; preds = %76, %74, %14, %2
  ret void

79:                                               ; preds = %77
  %80 = load ptr, ptr %7, align 8
  %81 = load i32, ptr %8, align 4
  %82 = insertvalue { ptr, i32 } poison, ptr %80, 0
  %83 = insertvalue { ptr, i32 } %82, i32 %81, 1
  resume { ptr, i32 } %83

84:                                               ; preds = %74
  unreachable
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !18, i64 48}
!10 = !{!"_ZTSN4juce24ComponentMovementWatcherE", !11, i64 0, !12, i64 8, !14, i64 16, !15, i64 24, !18, i64 48, !18, i64 49, !19, i64 52}
!11 = !{!"_ZTSN4juce17ComponentListenerE"}
!12 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !13, i64 0}
!13 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !16, i64 0, !14, i64 16}
!16 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !17, i64 0, !14, i64 8}
!17 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN4juce9RectangleIiEE", !20, i64 0, !14, i64 8, !14, i64 12}
!20 = !{!"_ZTSN4juce5PointIiEE", !14, i64 0, !14, i64 4}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!14, !14, i64 0}
!24 = !{!10, !14, i64 16}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !8, 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::ScopedValueSetter" = type <{ ptr, i8, [7 x i8] }>

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 uwtable
declare dso_local noundef ptr @_ZNK4juce9Component7getPeerEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEneEPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_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 #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce24ComponentMovementWatcher31componentParentHierarchyChangedERNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(197) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::ScopedValueSetter", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = tail call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEneEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef null) #3
  br i1 %5, label %6, label %47

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = load i8, ptr %7, align 8, !tbaa !5, !range !20, !noundef !21
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %47, label %10

10:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  call void @_ZN4juce17ScopedValueSetterIbEC2ERbb(ptr noundef nonnull align 8 dereferenceable(9) %3, ptr noundef nonnull align 1 dereferenceable(1) %7, i1 noundef zeroext true)
  %11 = call noundef ptr @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %12 = invoke noundef ptr @_ZNK4juce9Component7getPeerEv(ptr noundef nonnull align 8 dereferenceable(197) %11)
          to label %13 unwind label %26

13:                                               ; preds = %10
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %16, label %14

14:                                               ; preds = %13
  %15 = call noundef i32 @_ZNK4juce13ComponentPeer11getUniqueIDEv(ptr noundef nonnull align 8 dereferenceable(77) %12) #3
  br label %16

16:                                               ; preds = %13, %14
  %17 = phi i32 [ %15, %14 ], [ 0, %13 ]
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = load i32, ptr %18, align 8, !tbaa !22
  %.not9 = icmp eq i32 %17, %19
  br i1 %.not9, label %31, label %20

20:                                               ; preds = %16
  %21 = load ptr, ptr %0, align 8, !tbaa !23
  %22 = getelementptr inbounds i8, ptr %21, i64 80
  %23 = load ptr, ptr %22, align 8
  invoke void %23(ptr noundef nonnull align 8 dereferenceable(68) %0)
          to label %24 unwind label %28

24:                                               ; preds = %20
  %25 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef null) #3
  br i1 %25, label %45, label %30

26:                                               ; preds = %10
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %46

28:                                               ; preds = %40, %33, %32, %31, %20
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %46

30:                                               ; preds = %24
  store i32 %17, ptr %18, align 8, !tbaa !22
  br label %31

31:                                               ; preds = %30, %16
  invoke void @_ZN4juce24ComponentMovementWatcher10unregisterEv(ptr noundef nonnull align 8 dereferenceable(68) %0)
          to label %32 unwind label %28

32:                                               ; preds = %31
  invoke void @_ZN4juce24ComponentMovementWatcher23registerWithParentCompsEv(ptr noundef nonnull align 8 dereferenceable(68) %0)
          to label %33 unwind label %28

33:                                               ; preds = %32
  %34 = call noundef ptr @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %35 = load ptr, ptr %0, align 8, !tbaa !23
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %37 = load ptr, ptr %36, align 8
  invoke void %37(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 8 dereferenceable(197) %34, i1 noundef zeroext true, i1 noundef zeroext true)
          to label %38 unwind label %28

38:                                               ; preds = %33
  %39 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEneEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef null) #3
  br i1 %39, label %40, label %45

40:                                               ; preds = %38
  %41 = call noundef ptr @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %42 = load ptr, ptr %0, align 8, !tbaa !23
  %43 = getelementptr inbounds i8, ptr %42, i64 32
  %44 = load ptr, ptr %43, align 8
  invoke void %44(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 8 dereferenceable(197) %41)
          to label %45 unwind label %28

45:                                               ; preds = %38, %40, %24
  call void @_ZN4juce17ScopedValueSetterIbED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %3) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  br label %47

46:                                               ; preds = %28, %26
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @_ZN4juce17ScopedValueSetterIbED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %3) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  resume { ptr, i32 } %.pn

47:                                               ; preds = %45, %6, %2
  ret void
}

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

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

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !17, i64 48}
!6 = !{!"_ZTSN4juce24ComponentMovementWatcherE", !7, i64 0, !8, i64 8, !13, i64 16, !14, i64 24, !17, i64 48, !17, i64 49, !18, i64 52}
!7 = !{!"_ZTSN4juce17ComponentListenerE"}
!8 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !9, i64 0}
!9 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"int", !11, i64 0}
!14 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !15, i64 0, !13, i64 16}
!15 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !16, i64 0, !13, i64 8}
!16 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !10, i64 0}
!17 = !{!"bool", !11, i64 0}
!18 = !{!"_ZTSN4juce9RectangleIiEE", !19, i64 0, !13, i64 8, !13, i64 12}
!19 = !{!"_ZTSN4juce5PointIiEE", !13, i64 0, !13, i64 4}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!6, !13, i64 16}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !12, i64 0}


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