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

; 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::Range" = type { i32, i32 }
%"class.juce::ListBox" = type { %"class.juce::Component.base", %"class.juce::SettableTooltipClient", ptr, %"class.juce::ScopedPointer.286", %"class.juce::ScopedPointer.159", %"class.juce::ScopedPointer.287", i32, i32, i32, i32, i32, i8, i8, i8, i8, %"class.juce::SparseSet" }
%"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::ScopedPointer.286" = type { ptr }
%"class.juce::ScopedPointer.159" = type { ptr }
%"class.juce::ScopedPointer.287" = type { ptr }
%"class.juce::SparseSet" = type { %"class.juce::Array.288" }
%"class.juce::Array.288" = type { %"class.juce::ArrayAllocationBase.289", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.289" = type <{ %"class.juce::HeapBlock.290", i32, [4 x i8] }>
%"class.juce::HeapBlock.290" = type { ptr }

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

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

; Function Attrs: mustprogress 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 noundef i32 @_ZNK4juce7ListBox14getSelectedRowEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7ListBox13updateContentEv(ptr noundef nonnull align 8 dereferenceable(296) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca %"class.juce::Range", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  %6 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 13
  store i8 1, ptr %6, align 2, !tbaa !9
  %7 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 2
  %8 = load ptr, ptr %7, align 8, !tbaa !47
  %9 = icmp ne ptr %8, null
  br i1 %9, label %10, label %17

10:                                               ; preds = %1
  %11 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 2
  %12 = load ptr, ptr %11, align 8, !tbaa !47
  %13 = load ptr, ptr %12, align 8, !tbaa !48
  %14 = getelementptr inbounds ptr, ptr %13, i64 2
  %15 = load ptr, ptr %14, align 8
  %16 = call noundef i32 %15(ptr noundef nonnull align 8 dereferenceable(8) %12)
  br label %18

17:                                               ; preds = %1
  br label %18

18:                                               ; preds = %17, %10
  %19 = phi i32 [ %16, %10 ], [ 0, %17 ]
  %20 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 6
  store i32 %19, ptr %20, align 8, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #4
  store i8 0, ptr %3, align 1, !tbaa !51
  %21 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 15
  %22 = call noundef i32 @_ZNK4juce9SparseSetIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %24, label %40

24:                                               ; preds = %18
  %25 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 15
  %26 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 15
  %27 = call noundef i32 @_ZNK4juce9SparseSetIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %28 = sub nsw i32 %27, 1
  %29 = call noundef i32 @_ZNK4juce9SparseSetIiEixEi(ptr noundef nonnull align 8 dereferenceable(24) %25, i32 noundef %28)
  %30 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 6
  %31 = load i32, ptr %30, align 8, !tbaa !50
  %32 = icmp sge i32 %29, %31
  br i1 %32, label %33, label %40

33:                                               ; preds = %24
  %34 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 15
  %35 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 6
  %36 = load i32, ptr %35, align 8, !tbaa !50
  %37 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #4
  call void @_ZN4juce5RangeIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %36, i32 noundef %37) #4
  call void @_ZN4juce9SparseSetIiE11removeRangeENS_5RangeIiEE(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef %4)
  %38 = call noundef i32 @_ZNK4juce7ListBox14getSelectedRowEi(ptr noundef nonnull align 8 dereferenceable(296) %5, i32 noundef 0)
  %39 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 10
  store i32 %38, ptr %39, align 8, !tbaa !52
  store i8 1, ptr %3, align 1, !tbaa !51
  br label %40

40:                                               ; preds = %33, %24, %18
  %41 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 3
  %42 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #4
  %43 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %5) #4
  call void @_ZN4juce7ListBox12ListViewport17updateVisibleAreaEb(ptr noundef nonnull align 8 dereferenceable(1269) %42, i1 noundef zeroext %43)
  %44 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 3
  %45 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #4
  %46 = load ptr, ptr %45, align 8, !tbaa !48
  %47 = getelementptr inbounds ptr, ptr %46, i64 34
  %48 = load ptr, ptr %47, align 8
  call void %48(ptr noundef nonnull align 8 dereferenceable(1224) %45)
  %49 = load i8, ptr %3, align 1, !tbaa !51, !range !53, !noundef !54
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %63

51:                                               ; preds = %40
  %52 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !47
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %63

55:                                               ; preds = %51
  %56 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 2
  %57 = load ptr, ptr %56, align 8, !tbaa !47
  %58 = getelementptr inbounds %"class.juce::ListBox", ptr %5, i32 0, i32 10
  %59 = load i32, ptr %58, align 8, !tbaa !52
  %60 = load ptr, ptr %57, align 8, !tbaa !48
  %61 = getelementptr inbounds ptr, ptr %60, i64 8
  %62 = load ptr, ptr %61, align 8
  call void %62(ptr noundef nonnull align 8 dereferenceable(8) %57, i32 noundef %59)
  br label %63

63:                                               ; preds = %55, %51, %40
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5RangeIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce7ListBox12ListViewport17updateVisibleAreaEb(ptr noundef nonnull align 8 dereferenceable(1269), i1 noundef zeroext) #2 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 }

!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, !42, i64 270}
!10 = !{!"_ZTSN4juce7ListBoxE", !11, i64 0, !37, i64 200, !6, i64 216, !39, i64 224, !40, i64 232, !41, i64 240, !17, i64 248, !17, i64 252, !17, i64 256, !17, i64 260, !17, i64 264, !42, i64 268, !42, i64 269, !42, i64 270, !42, i64 271, !43, i64 272}
!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 = !{!"_ZTSN4juce13ScopedPointerINS_7ListBox12ListViewportEEE", !6, i64 0}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !6, i64 0}
!41 = !{!"_ZTSN4juce13ScopedPointerINS_13MouseListenerEEE", !6, i64 0}
!42 = !{!"bool", !7, i64 0}
!43 = !{!"_ZTSN4juce9SparseSetIiEE", !44, i64 0}
!44 = !{!"_ZTSN4juce5ArrayIiNS_20DummyCriticalSectionELi0EEE", !45, i64 0, !17, i64 16}
!45 = !{!"_ZTSN4juce19ArrayAllocationBaseIiNS_20DummyCriticalSectionEEE", !46, i64 0, !17, i64 8}
!46 = !{!"_ZTSN4juce9HeapBlockIiLb0EEE", !6, i64 0}
!47 = !{!10, !6, i64 216}
!48 = !{!49, !49, i64 0}
!49 = !{!"vtable pointer", !8, i64 0}
!50 = !{!10, !17, i64 248}
!51 = !{!42, !42, i64 0}
!52 = !{!10, !17, i64 264}
!53 = !{i8 0, i8 2}
!54 = !{}


; 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::Range" = type { i32, i32 }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7ListBox13updateContentEv(ptr noundef nonnull align 8 dereferenceable(296) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"class.juce::Range", align 4
  %3 = getelementptr inbounds i8, ptr %0, i64 270
  store i8 1, ptr %3, align 2, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 216
  %5 = load ptr, ptr %4, align 8, !tbaa !46
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %11, label %6

6:                                                ; preds = %1
  %7 = load ptr, ptr %5, align 8, !tbaa !47
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  %9 = load ptr, ptr %8, align 8
  %10 = tail call noundef i32 %9(ptr noundef nonnull align 8 dereferenceable(8) %5)
  br label %11

11:                                               ; preds = %1, %6
  %12 = phi i32 [ %10, %6 ], [ 0, %1 ]
  %13 = getelementptr inbounds i8, ptr %0, i64 248
  store i32 %12, ptr %13, align 8, !tbaa !49
  %14 = getelementptr inbounds i8, ptr %0, i64 272
  %15 = tail call noundef i32 @_ZNK4juce9SparseSetIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %17, label %33

17:                                               ; preds = %11
  %18 = tail call noundef i32 @_ZNK4juce9SparseSetIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %19 = add nsw i32 %18, -1
  %20 = tail call noundef i32 @_ZNK4juce9SparseSetIiEixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %19)
  %21 = load i32, ptr %13, align 8, !tbaa !49
  %.not4 = icmp slt i32 %20, %21
  br i1 %.not4, label %33, label %.critedge

.critedge:                                        ; preds = %17
  %22 = tail call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #3
  call void @_ZN4juce5RangeIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %2, i32 noundef %21, i32 noundef %22) #3
  call void @_ZN4juce9SparseSetIiE11removeRangeENS_5RangeIiEE(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull %2)
  %23 = call noundef i32 @_ZNK4juce7ListBox14getSelectedRowEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef 0)
  %24 = getelementptr inbounds i8, ptr %0, i64 264
  store i32 %23, ptr %24, align 8, !tbaa !50
  %25 = getelementptr inbounds i8, ptr %0, i64 224
  %26 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #3
  %27 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #3
  call void @_ZN4juce7ListBox12ListViewport17updateVisibleAreaEb(ptr noundef nonnull align 8 dereferenceable(1269) %26, i1 noundef zeroext %27)
  %28 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #3
  %29 = load ptr, ptr %28, align 8, !tbaa !47
  %30 = getelementptr inbounds i8, ptr %29, i64 272
  %31 = load ptr, ptr %30, align 8
  call void %31(ptr noundef nonnull align 8 dereferenceable(1224) %28)
  %32 = load ptr, ptr %4, align 8, !tbaa !46
  %.not5 = icmp eq ptr %32, null
  br i1 %.not5, label %46, label %41

33:                                               ; preds = %17, %11
  %34 = getelementptr inbounds i8, ptr %0, i64 224
  %35 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #3
  %36 = tail call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #3
  tail call void @_ZN4juce7ListBox12ListViewport17updateVisibleAreaEb(ptr noundef nonnull align 8 dereferenceable(1269) %35, i1 noundef zeroext %36)
  %37 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #3
  %38 = load ptr, ptr %37, align 8, !tbaa !47
  %39 = getelementptr inbounds i8, ptr %38, i64 272
  %40 = load ptr, ptr %39, align 8
  tail call void %40(ptr noundef nonnull align 8 dereferenceable(1224) %37)
  br label %46

41:                                               ; preds = %.critedge
  %42 = load i32, ptr %24, align 8, !tbaa !50
  %43 = load ptr, ptr %32, align 8, !tbaa !47
  %44 = getelementptr inbounds i8, ptr %43, i64 64
  %45 = load ptr, ptr %44, align 8
  call void %45(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef %42)
  br label %46

46:                                               ; preds = %33, %41, %.critedge
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4juce9SparseSetIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !41, i64 270}
!6 = !{!"_ZTSN4juce7ListBoxE", !7, i64 0, !36, i64 200, !11, i64 216, !38, i64 224, !39, i64 232, !40, i64 240, !16, i64 248, !16, i64 252, !16, i64 256, !16, i64 260, !16, i64 264, !41, i64 268, !41, i64 269, !41, i64 270, !41, i64 271, !42, i64 272}
!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 = !{!"_ZTSN4juce13ScopedPointerINS_7ListBox12ListViewportEEE", !11, i64 0}
!39 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !11, i64 0}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_13MouseListenerEEE", !11, i64 0}
!41 = !{!"bool", !12, i64 0}
!42 = !{!"_ZTSN4juce9SparseSetIiEE", !43, i64 0}
!43 = !{!"_ZTSN4juce5ArrayIiNS_20DummyCriticalSectionELi0EEE", !44, i64 0, !16, i64 16}
!44 = !{!"_ZTSN4juce19ArrayAllocationBaseIiNS_20DummyCriticalSectionEEE", !45, i64 0, !16, i64 8}
!45 = !{!"_ZTSN4juce9HeapBlockIiLb0EEE", !11, i64 0}
!46 = !{!6, !11, i64 216}
!47 = !{!48, !48, i64 0}
!48 = !{!"vtable pointer", !13, i64 0}
!49 = !{!6, !16, i64 248}
!50 = !{!6, !16, i64 264}


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