; 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::TreeView" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::SettableTooltipClient", %"class.juce::FileDragAndDropTarget", %"class.juce::DragAndDropTarget", %"class.juce::ScopedPointer.283", %"class.juce::CriticalSection", ptr, %"class.juce::ScopedPointer.284", %"class.juce::ScopedPointer.285", i32, i8, i8, i8, i8, i8, [7 x i8] }>
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.0", %"class.juce::Array", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.1", %"class.juce::ScopedPointer.2", %"class.juce::ScopedPointer.3", %"class.juce::ListenerList", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::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 }
%"class.juce::SettableTooltipClient" = type { %"class.juce::TooltipClient", %"class.juce::String" }
%"class.juce::TooltipClient" = type { ptr }
%"class.juce::FileDragAndDropTarget" = type { ptr }
%"class.juce::DragAndDropTarget" = type { ptr }
%"class.juce::ScopedPointer.283" = type { ptr }
%"class.juce::CriticalSection" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.juce::ScopedPointer.284" = type { ptr }
%"class.juce::ScopedPointer.285" = type { ptr }
%"class.juce::TreeViewItem" = type <{ ptr, ptr, ptr, %"class.juce::OwnedArray.338", i32, i32, i32, i32, i32, i32, i8, [7 x i8] }>
%"class.juce::OwnedArray.338" = type { %"class.juce::ArrayAllocationBase.339", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.339" = type <{ %"class.juce::HeapBlock.340", i32, [4 x i8] }>
%"class.juce::HeapBlock.340" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE(ptr noundef nonnull align 8 dereferenceable(313) %0, ptr noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %5 = load ptr, ptr %3, align 8
  %6 = getelementptr inbounds %"class.juce::TreeView", ptr %5, i32 0, i32 7
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = icmp ne ptr %7, %8
  br i1 %9, label %10, label %58

10:                                               ; preds = %2
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = icmp ne ptr %11, null
  br i1 %12, label %13, label %25

13:                                               ; preds = %10
  br label %14

14:                                               ; preds = %13
  br label %15

15:                                               ; preds = %14
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.juce::TreeViewItem", ptr %16, i32 0, i32 1
  %18 = load ptr, ptr %17, align 8, !tbaa !46
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %24

20:                                               ; preds = %15
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.juce::TreeViewItem", ptr %21, i32 0, i32 1
  %23 = load ptr, ptr %22, align 8, !tbaa !46
  call void @_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE(ptr noundef nonnull align 8 dereferenceable(313) %23, ptr noundef null)
  br label %24

24:                                               ; preds = %20, %15
  br label %25

25:                                               ; preds = %24, %10
  %26 = getelementptr inbounds %"class.juce::TreeView", ptr %5, i32 0, i32 7
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %32

29:                                               ; preds = %25
  %30 = getelementptr inbounds %"class.juce::TreeView", ptr %5, i32 0, i32 7
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  call void @_ZN4juce12TreeViewItem12setOwnerViewEPNS_8TreeViewE(ptr noundef nonnull align 8 dereferenceable(73) %31, ptr noundef null) #2
  br label %32

32:                                               ; preds = %29, %25
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %"class.juce::TreeView", ptr %5, i32 0, i32 7
  store ptr %33, ptr %34, align 8, !tbaa !9
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %39

37:                                               ; preds = %32
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4juce12TreeViewItem12setOwnerViewEPNS_8TreeViewE(ptr noundef nonnull align 8 dereferenceable(73) %38, ptr noundef %5) #2
  br label %39

39:                                               ; preds = %37, %32
  %40 = getelementptr inbounds %"class.juce::TreeView", ptr %5, i32 0, i32 12
  store i8 1, ptr %40, align 1, !tbaa !51
  call void @_ZN4juce8TreeView19recalculateIfNeededEv(ptr noundef nonnull align 8 dereferenceable(313) %5)
  %41 = getelementptr inbounds %"class.juce::TreeView", ptr %5, i32 0, i32 7
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %57

44:                                               ; preds = %39
  %45 = getelementptr inbounds %"class.juce::TreeView", ptr %5, i32 0, i32 11
  %46 = load i8, ptr %45, align 4, !tbaa !52, !range !53, !noundef !54
  %47 = trunc i8 %46 to i1
  br i1 %47, label %52, label %48

48:                                               ; preds = %44
  %49 = getelementptr inbounds %"class.juce::TreeView", ptr %5, i32 0, i32 13
  %50 = load i8, ptr %49, align 2, !tbaa !55, !range !53, !noundef !54
  %51 = trunc i8 %50 to i1
  br i1 %51, label %57, label %52

52:                                               ; preds = %48, %44
  %53 = getelementptr inbounds %"class.juce::TreeView", ptr %5, i32 0, i32 7
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  call void @_ZN4juce12TreeViewItem7setOpenEb(ptr noundef nonnull align 8 dereferenceable(73) %54, i1 noundef zeroext false)
  %55 = getelementptr inbounds %"class.juce::TreeView", ptr %5, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  call void @_ZN4juce12TreeViewItem7setOpenEb(ptr noundef nonnull align 8 dereferenceable(73) %56, i1 noundef zeroext true)
  br label %57

57:                                               ; preds = %52, %48, %39
  br label %58

58:                                               ; preds = %57, %2
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce12TreeViewItem7setOpenEb(ptr noundef nonnull align 8 dereferenceable(73), i1 noundef zeroext) #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 = { 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, !6, i64 280}
!10 = !{!"_ZTSN4juce8TreeViewE", !11, i64 0, !37, i64 200, !39, i64 216, !40, i64 224, !41, i64 232, !42, i64 240, !6, i64 280, !43, i64 288, !44, i64 296, !17, i64 304, !45, i64 308, !45, i64 309, !45, i64 310, !45, i64 311, !45, i64 312}
!11 = !{!"_ZTSN4juce9ComponentE", !12, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !15, i64 32, !18, i64 48, !19, i64 56, !20, i64 64, !6, i64 88, !23, i64 96, !6, i64 104, !24, i64 112, !25, i64 120, !26, i64 128, !27, i64 136, !31, i64 160, !35, i64 184, !7, i64 192, !7, i64 196}
!12 = !{!"_ZTSN4juce13MouseListenerE"}
!13 = !{!"_ZTSN4juce6StringE", !14, i64 0}
!14 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!15 = !{!"_ZTSN4juce9RectangleIiEE", !16, i64 0, !17, i64 8, !17, i64 12}
!16 = !{!"_ZTSN4juce5PointIiEE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !21, i64 0, !17, i64 16}
!21 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !22, i64 0, !17, i64 8}
!22 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!23 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !28, i64 0}
!28 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !29, i64 0, !17, i64 16}
!29 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !30, i64 0, !17, i64 8}
!30 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!31 = !{!"_ZTSN4juce13NamedValueSetE", !32, i64 0}
!32 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !33, i64 0, !17, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !34, i64 0, !17, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !36, i64 0}
!36 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!37 = !{!"_ZTSN4juce21SettableTooltipClientE", !38, i64 0, !13, i64 8}
!38 = !{!"_ZTSN4juce13TooltipClientE"}
!39 = !{!"_ZTSN4juce21FileDragAndDropTargetE"}
!40 = !{!"_ZTSN4juce17DragAndDropTargetE"}
!41 = !{!"_ZTSN4juce13ScopedPointerINS_8TreeView12TreeViewportEEE", !6, i64 0}
!42 = !{!"_ZTSN4juce15CriticalSectionE", !7, i64 0}
!43 = !{!"_ZTSN4juce13ScopedPointerINS_8TreeView20InsertPointHighlightEEE", !6, i64 0}
!44 = !{!"_ZTSN4juce13ScopedPointerINS_8TreeView20TargetGroupHighlightEEE", !6, i64 0}
!45 = !{!"bool", !7, i64 0}
!46 = !{!47, !6, i64 8}
!47 = !{!"_ZTSN4juce12TreeViewItemE", !6, i64 8, !6, i64 16, !48, i64 24, !17, i64 48, !17, i64 52, !17, i64 56, !17, i64 60, !17, i64 64, !17, i64 68, !45, i64 72, !45, i64 72, !45, i64 72, !45, i64 72, !45, i64 72, !45, i64 72, !17, i64 72}
!48 = !{!"_ZTSN4juce10OwnedArrayINS_12TreeViewItemENS_20DummyCriticalSectionEEE", !49, i64 0, !17, i64 16}
!49 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_12TreeViewItemENS_20DummyCriticalSectionEEE", !50, i64 0, !17, i64 8}
!50 = !{!"_ZTSN4juce9HeapBlockIPNS_12TreeViewItemELb0EEE", !6, i64 0}
!51 = !{!10, !45, i64 309}
!52 = !{!10, !45, i64 308}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!10, !45, i64 310}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE(ptr noundef nonnull align 8 dereferenceable(313) %0, ptr noundef %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 280
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %4, %1
  br i1 %.not, label %42, label %5

5:                                                ; preds = %2
  %.not10 = icmp eq ptr %1, null
  br i1 %.not10, label %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exit, label %6

6:                                                ; preds = %5
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !45
  %.not11 = icmp eq ptr %8, null
  br i1 %.not11, label %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exitthread-pre-split, label %9

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %8, i64 280
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %.not.i = icmp eq ptr %11, null
  br i1 %.not.i, label %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exitthread-pre-split, label %12

12:                                               ; preds = %9
  tail call void @_ZN4juce12TreeViewItem12setOwnerViewEPNS_8TreeViewE(ptr noundef nonnull align 8 dereferenceable(73) %11, ptr noundef null) #2
  store ptr null, ptr %10, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %8, i64 309
  store i8 1, ptr %13, align 1, !tbaa !50
  tail call void @_ZN4juce8TreeView19recalculateIfNeededEv(ptr noundef nonnull align 8 dereferenceable(313) %8)
  %14 = load ptr, ptr %10, align 8, !tbaa !5
  %.not13.i = icmp eq ptr %14, null
  br i1 %.not13.i, label %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exitthread-pre-split, label %15

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %8, i64 308
  %17 = load i8, ptr %16, align 4, !tbaa !51, !range !52, !noundef !53
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %23, label %19

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %8, i64 310
  %21 = load i8, ptr %20, align 2, !tbaa !54, !range !52, !noundef !53
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exitthread-pre-split, label %23

23:                                               ; preds = %19, %15
  tail call void @_ZN4juce12TreeViewItem7setOpenEb(ptr noundef nonnull align 8 dereferenceable(73) %14, i1 noundef zeroext false)
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  tail call void @_ZN4juce12TreeViewItem7setOpenEb(ptr noundef nonnull align 8 dereferenceable(73) %24, i1 noundef zeroext true)
  br label %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exitthread-pre-split

_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exitthread-pre-split: ; preds = %6, %9, %12, %19, %23
  %.pr = load ptr, ptr %3, align 8, !tbaa !5
  br label %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exit

_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exit: ; preds = %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exitthread-pre-split, %5
  %25 = phi ptr [ %.pr, %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exitthread-pre-split ], [ %4, %5 ]
  %.not12 = icmp eq ptr %25, null
  br i1 %.not12, label %27, label %26

26:                                               ; preds = %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exit
  tail call void @_ZN4juce12TreeViewItem12setOwnerViewEPNS_8TreeViewE(ptr noundef nonnull align 8 dereferenceable(73) %25, ptr noundef null) #2
  br label %27

27:                                               ; preds = %26, %_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE.exit
  store ptr %1, ptr %3, align 8, !tbaa !5
  br i1 %.not10, label %29, label %28

28:                                               ; preds = %27
  tail call void @_ZN4juce12TreeViewItem12setOwnerViewEPNS_8TreeViewE(ptr noundef nonnull align 8 dereferenceable(73) %1, ptr noundef nonnull %0) #2
  br label %29

29:                                               ; preds = %28, %27
  %30 = getelementptr inbounds i8, ptr %0, i64 309
  store i8 1, ptr %30, align 1, !tbaa !50
  tail call void @_ZN4juce8TreeView19recalculateIfNeededEv(ptr noundef nonnull align 8 dereferenceable(313) %0)
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %.not13 = icmp eq ptr %31, null
  br i1 %.not13, label %42, label %32

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %0, i64 308
  %34 = load i8, ptr %33, align 4, !tbaa !51, !range !52, !noundef !53
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %40, label %36

36:                                               ; preds = %32
  %37 = getelementptr inbounds i8, ptr %0, i64 310
  %38 = load i8, ptr %37, align 2, !tbaa !54, !range !52, !noundef !53
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %42, label %40

40:                                               ; preds = %36, %32
  tail call void @_ZN4juce12TreeViewItem7setOpenEb(ptr noundef nonnull align 8 dereferenceable(73) %31, i1 noundef zeroext false)
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  tail call void @_ZN4juce12TreeViewItem7setOpenEb(ptr noundef nonnull align 8 dereferenceable(73) %41, i1 noundef zeroext true)
  br label %42

42:                                               ; preds = %29, %36, %40, %2
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce12TreeViewItem7setOpenEb(ptr noundef nonnull align 8 dereferenceable(73), i1 noundef zeroext) 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 = { 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, !11, i64 280}
!6 = !{!"_ZTSN4juce8TreeViewE", !7, i64 0, !36, i64 200, !38, i64 216, !39, i64 224, !40, i64 232, !41, i64 240, !11, i64 280, !42, i64 288, !43, i64 296, !16, i64 304, !44, i64 308, !44, i64 309, !44, i64 310, !44, i64 311, !44, i64 312}
!7 = !{!"_ZTSN4juce9ComponentE", !8, i64 0, !9, i64 8, !9, i64 16, !11, i64 24, !14, i64 32, !17, i64 48, !18, i64 56, !19, i64 64, !11, i64 88, !22, i64 96, !11, i64 104, !23, i64 112, !24, i64 120, !25, i64 128, !26, i64 136, !30, i64 160, !34, i64 184, !12, i64 192, !12, i64 196}
!8 = !{!"_ZTSN4juce13MouseListenerE"}
!9 = !{!"_ZTSN4juce6StringE", !10, i64 0}
!10 = !{!"_ZTSN4juce16CharPointer_UTF8E", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN4juce9RectangleIiEE", !15, i64 0, !16, i64 8, !16, i64 12}
!15 = !{!"_ZTSN4juce5PointIiEE", !16, i64 0, !16, i64 4}
!16 = !{!"int", !12, i64 0}
!17 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !11, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !11, i64 0}
!19 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !20, i64 0, !16, i64 16}
!20 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !21, i64 0, !16, i64 8}
!21 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !11, i64 0}
!22 = !{!"_ZTSN4juce11MouseCursorE", !11, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !11, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !11, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !11, i64 0}
!26 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !27, i64 0}
!27 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !28, i64 0, !16, i64 16}
!28 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !29, i64 0, !16, i64 8}
!29 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !11, i64 0}
!30 = !{!"_ZTSN4juce13NamedValueSetE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !16, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !33, i64 0, !16, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !11, i64 0}
!34 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !35, i64 0}
!35 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !11, i64 0}
!36 = !{!"_ZTSN4juce21SettableTooltipClientE", !37, i64 0, !9, i64 8}
!37 = !{!"_ZTSN4juce13TooltipClientE"}
!38 = !{!"_ZTSN4juce21FileDragAndDropTargetE"}
!39 = !{!"_ZTSN4juce17DragAndDropTargetE"}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_8TreeView12TreeViewportEEE", !11, i64 0}
!41 = !{!"_ZTSN4juce15CriticalSectionE", !12, i64 0}
!42 = !{!"_ZTSN4juce13ScopedPointerINS_8TreeView20InsertPointHighlightEEE", !11, i64 0}
!43 = !{!"_ZTSN4juce13ScopedPointerINS_8TreeView20TargetGroupHighlightEEE", !11, i64 0}
!44 = !{!"bool", !12, i64 0}
!45 = !{!46, !11, i64 8}
!46 = !{!"_ZTSN4juce12TreeViewItemE", !11, i64 8, !11, i64 16, !47, i64 24, !16, i64 48, !16, i64 52, !16, i64 56, !16, i64 60, !16, i64 64, !16, i64 68, !44, i64 72, !44, i64 72, !44, i64 72, !44, i64 72, !44, i64 72, !44, i64 72, !16, i64 72}
!47 = !{!"_ZTSN4juce10OwnedArrayINS_12TreeViewItemENS_20DummyCriticalSectionEEE", !48, i64 0, !16, i64 16}
!48 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_12TreeViewItemENS_20DummyCriticalSectionEEE", !49, i64 0, !16, i64 8}
!49 = !{!"_ZTSN4juce9HeapBlockIPNS_12TreeViewItemELb0EEE", !11, i64 0}
!50 = !{!6, !44, i64 309}
!51 = !{!6, !44, i64 308}
!52 = !{i8 0, i8 2}
!53 = !{}
!54 = !{!6, !44, i64 310}


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