; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Image" = type { %"class.juce::ReferenceCountedObjectPtr.48" }
%"class.juce::ReferenceCountedObjectPtr.48" = type { ptr }
%"class.juce::Graphics" = type <{ ptr, %"class.juce::ScopedPointer.71", i8, [7 x i8] }>
%"class.juce::ScopedPointer.71" = type { ptr }
%"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::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: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(197)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, ptr noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE15getIntersectionERKS1_(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

declare void @_ZN4juce8Graphics9setOriginENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 8 dereferenceable(17), i1 noundef zeroext) #3 align 2

declare noundef zeroext i1 @_ZN4juce8Graphics16reduceClipRegionENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) #4

declare void @_ZN4juce5ImageC1ENS0_11PixelFormatEiib(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #4

declare void @_ZN4juce8GraphicsC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #5

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

declare void @_ZN4juce8Graphics22beginTransparencyLayerEf(ptr noundef nonnull align 8 dereferenceable(17), float noundef) #4

declare void @_ZN4juce8Graphics20endTransparencyLayerEv(ptr noundef nonnull align 8 dereferenceable(17)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5PointIiEmiES1_(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE8getUnionERKS1_(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7ListBox20createSnapshotOfRowsERKNS_9SparseSetIiEERiS5_(ptr dead_on_unwind noalias writable sret(%"class.juce::Image") align 8 %0, ptr noundef nonnull align 8 dereferenceable(296) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.juce::Rectangle", align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.juce::Point", align 4
  %18 = alloca %"class.juce::Point", align 4
  %19 = alloca %"class.juce::Rectangle", align 4
  %20 = alloca %"class.juce::Rectangle", align 4
  %21 = alloca %"class.juce::Rectangle", align 4
  %22 = alloca %"class.juce::Rectangle", align 4
  %23 = alloca i1, align 1
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca %"class.juce::Graphics", align 8
  %27 = alloca %"class.juce::Point", align 4
  %28 = alloca %"class.juce::Point", align 4
  %29 = alloca %"class.juce::Point", align 4
  %30 = alloca %"class.juce::Point", align 4
  %31 = alloca %"class.juce::Rectangle", align 4
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %32 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %33 = getelementptr inbounds %"class.juce::ListBox", ptr %32, i32 0, i32 3
  %34 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #6
  %35 = call noundef i32 @_ZNK4juce9Component4getYEv(ptr noundef nonnull align 8 dereferenceable(197) %34) #6
  %36 = call noundef i32 @_ZNK4juce7ListBox24getRowContainingPositionEii(ptr noundef nonnull align 8 dereferenceable(296) %32, i32 noundef 0, i32 noundef %35) #6
  store i32 %36, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %37 = call noundef i32 @_ZNK4juce7ListBox18getNumRowsOnScreenEv(ptr noundef nonnull align 8 dereferenceable(296) %32) #6
  %38 = add nsw i32 %37, 2
  store i32 %38, ptr %13, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %78, %5
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = add nsw i32 %40, -1
  store i32 %41, ptr %13, align 4, !tbaa !9
  %42 = icmp sge i32 %41, 0
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %80

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %45 = getelementptr inbounds %"class.juce::ListBox", ptr %32, i32 0, i32 3
  %46 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #6
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = add nsw i32 %47, %48
  %50 = call noundef ptr @_ZNK4juce7ListBox12ListViewport28getComponentForRowIfOnscreenEi(ptr noundef nonnull align 8 dereferenceable(1269) %46, i32 noundef %49) #6
  store ptr %50, ptr %14, align 8, !tbaa !5
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %78

53:                                               ; preds = %44
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = add nsw i32 %55, %56
  %58 = invoke noundef zeroext i1 @_ZNK4juce9SparseSetIiE8containsEi(ptr noundef nonnull align 8 dereferenceable(24) %54, i32 noundef %57)
          to label %59 unwind label %70

59:                                               ; preds = %53
  br i1 %58, label %60, label %78

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN4juce5PointIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18) #6
  invoke void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIiEE(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %17, ptr noundef nonnull align 8 dereferenceable(197) %32, ptr noundef %61, ptr noundef %18)
          to label %62 unwind label %74

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %63 = call noundef i32 @_ZNK4juce5PointIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %17) #6
  %64 = call noundef i32 @_ZNK4juce5PointIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %17) #6
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %65) #6
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %67) #6
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %19, i32 noundef %63, i32 noundef %64, i32 noundef %66, i32 noundef %68) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @_ZNK4juce9RectangleIiE8getUnionERKS1_(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %20, ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %19) #6
  %69 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %20) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %78

70:                                               ; preds = %53
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %15, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %16, align 4
  br label %79

74:                                               ; preds = %60
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %15, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %79

78:                                               ; preds = %62, %59, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %39, !llvm.loop !11

79:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %158

80:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %22, ptr noundef nonnull align 8 dereferenceable(197) %32) #6
  call void @_ZNK4juce9RectangleIiE15getIntersectionERKS1_(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %21, ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %22) #6
  %81 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %21) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %21) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  %82 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %82, ptr %83, align 4, !tbaa !9
  %84 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %84, ptr %85, align 4, !tbaa !9
  store i1 false, ptr %23, align 1
  %86 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  %87 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  invoke void @_ZN4juce5ImageC1ENS0_11PixelFormatEiib(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef 2, i32 noundef %86, i32 noundef %87, i1 noundef zeroext true)
          to label %88 unwind label %96

88:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %89 = call noundef i32 @_ZNK4juce7ListBox18getNumRowsOnScreenEv(ptr noundef nonnull align 8 dereferenceable(296) %32) #6
  %90 = add nsw i32 %89, 2
  store i32 %90, ptr %24, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %152, %88
  %92 = load i32, ptr %24, align 4, !tbaa !9
  %93 = add nsw i32 %92, -1
  store i32 %93, ptr %24, align 4, !tbaa !9
  %94 = icmp sge i32 %93, 0
  br i1 %94, label %100, label %95

95:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %154

96:                                               ; preds = %80
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %15, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %16, align 4
  br label %158

100:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %101 = getelementptr inbounds %"class.juce::ListBox", ptr %32, i32 0, i32 3
  %102 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %101) #6
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = load i32, ptr %24, align 4, !tbaa !9
  %105 = add nsw i32 %103, %104
  %106 = call noundef ptr @_ZNK4juce7ListBox12ListViewport28getComponentForRowIfOnscreenEi(ptr noundef nonnull align 8 dereferenceable(1269) %102, i32 noundef %105) #6
  store ptr %106, ptr %25, align 8, !tbaa !5
  %107 = load ptr, ptr %25, align 8, !tbaa !5
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %152

109:                                              ; preds = %100
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = load i32, ptr %24, align 4, !tbaa !9
  %113 = add nsw i32 %111, %112
  %114 = invoke noundef zeroext i1 @_ZNK4juce9SparseSetIiE8containsEi(ptr noundef nonnull align 8 dereferenceable(24) %110, i32 noundef %113)
          to label %115 unwind label %129

115:                                              ; preds = %109
  br i1 %114, label %116, label %152

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  invoke void @_ZN4juce8GraphicsC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(17) %26, ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %117 unwind label %133

117:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %118 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZN4juce5PointIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %29) #6
  invoke void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIiEE(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %28, ptr noundef nonnull align 8 dereferenceable(197) %32, ptr noundef %118, ptr noundef %29)
          to label %119 unwind label %137

119:                                              ; preds = %117
  call void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %30, ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @_ZNK4juce5PointIiEmiES1_(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %27, ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef %30) #6
  invoke void @_ZN4juce8Graphics9setOriginENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(17) %26, ptr noundef %27)
          to label %120 unwind label %137

120:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  %121 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %31, ptr noundef nonnull align 8 dereferenceable(197) %121) #6
  %122 = invoke noundef zeroext i1 @_ZN4juce8Graphics16reduceClipRegionENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17) %26, ptr noundef %31)
          to label %123 unwind label %141

123:                                              ; preds = %120
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %31) #6
  br i1 %122, label %124, label %149

124:                                              ; preds = %123
  invoke void @_ZN4juce8Graphics22beginTransparencyLayerEf(ptr noundef nonnull align 8 dereferenceable(17) %26, float noundef 0x3FE3333340000000)
          to label %125 unwind label %145

125:                                              ; preds = %124
  %126 = load ptr, ptr %25, align 8, !tbaa !5
  invoke void @_ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb(ptr noundef nonnull align 8 dereferenceable(197) %126, ptr noundef nonnull align 8 dereferenceable(17) %26, i1 noundef zeroext false)
          to label %127 unwind label %145

127:                                              ; preds = %125
  invoke void @_ZN4juce8Graphics20endTransparencyLayerEv(ptr noundef nonnull align 8 dereferenceable(17) %26)
          to label %128 unwind label %145

128:                                              ; preds = %127
  br label %149

129:                                              ; preds = %109
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %15, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %16, align 4
  br label %153

133:                                              ; preds = %116
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %15, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %16, align 4
  br label %151

137:                                              ; preds = %119, %117
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %15, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %150

141:                                              ; preds = %120
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %15, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %16, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %31) #6
  br label %150

145:                                              ; preds = %127, %125, %124
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %15, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %16, align 4
  br label %150

149:                                              ; preds = %128, %123
  call void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  br label %152

150:                                              ; preds = %145, %141, %137
  call void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %26) #6
  br label %151

151:                                              ; preds = %150, %133
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  br label %153

152:                                              ; preds = %149, %115, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %91, !llvm.loop !13

153:                                              ; preds = %151, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %158

154:                                              ; preds = %95
  store i1 true, ptr %23, align 1
  %155 = load i1, ptr %23, align 1
  br i1 %155, label %157, label %156

156:                                              ; preds = %154
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %157

157:                                              ; preds = %156, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  ret void

158:                                              ; preds = %153, %96, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %15, align 8
  %161 = load i32, ptr %16, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Image" = type { %"class.juce::ReferenceCountedObjectPtr.48" }
%"class.juce::ReferenceCountedObjectPtr.48" = type { ptr }
%"class.juce::Graphics" = type <{ ptr, %"class.juce::ScopedPointer.71", i8, [7 x i8] }>
%"class.juce::ScopedPointer.71" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE15getIntersectionERKS1_(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

declare void @_ZN4juce8Graphics9setOriginENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) local_unnamed_addr #4

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

declare noundef zeroext i1 @_ZN4juce8Graphics16reduceClipRegionENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) local_unnamed_addr #4

declare void @_ZN4juce5ImageC1ENS0_11PixelFormatEiib(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #4

declare void @_ZN4juce8GraphicsC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #5

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

declare void @_ZN4juce8Graphics22beginTransparencyLayerEf(ptr noundef nonnull align 8 dereferenceable(17), float noundef) local_unnamed_addr #4

declare void @_ZN4juce8Graphics20endTransparencyLayerEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5PointIiEmiES1_(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE8getUnionERKS1_(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce7ListBox24getRowContainingPositionEii(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef, i32 noundef) local_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 noundef zeroext i1 @_ZNK4juce9SparseSetIiE8containsEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7ListBox20createSnapshotOfRowsERKNS_9SparseSetIiEERiS5_(ptr dead_on_unwind noalias writable sret(%"class.juce::Image") align 8 %0, ptr noundef nonnull align 8 dereferenceable(296) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %3, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca %"class.juce::Point", align 4
  %8 = alloca %"class.juce::Point", align 4
  %9 = alloca %"class.juce::Rectangle", align 4
  %10 = alloca %"class.juce::Rectangle", align 4
  %11 = alloca %"class.juce::Rectangle", align 4
  %12 = alloca %"class.juce::Rectangle", align 4
  %13 = alloca %"class.juce::Graphics", align 8
  %14 = alloca %"class.juce::Point", align 4
  %15 = alloca %"class.juce::Point", align 4
  %16 = alloca %"class.juce::Point", align 4
  %17 = alloca %"class.juce::Point", align 4
  %18 = alloca %"class.juce::Rectangle", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  %19 = getelementptr inbounds i8, ptr %1, i64 224
  %20 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %21 = call noundef i32 @_ZNK4juce9Component4getYEv(ptr noundef nonnull align 8 dereferenceable(197) %20) #6
  %22 = call noundef i32 @_ZNK4juce7ListBox24getRowContainingPositionEii(ptr noundef nonnull align 8 dereferenceable(296) %1, i32 noundef 0, i32 noundef %21) #6
  %23 = call noundef i32 @_ZNK4juce7ListBox18getNumRowsOnScreenEv(ptr noundef nonnull align 8 dereferenceable(296) %1) #6
  %24 = icmp sgt i32 %23, -2
  br i1 %24, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %5
  %25 = add nsw i32 %23, 1
  br label %.lr.ph

._crit_edge:                                      ; preds = %49, %5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %12, ptr noundef nonnull align 8 dereferenceable(197) %1) #6
  call void @_ZNK4juce9RectangleIiE15getIntersectionERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %12) #6
  %26 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %27 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  store i32 %27, ptr %3, align 4, !tbaa !5
  %28 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  store i32 %28, ptr %4, align 4, !tbaa !5
  %29 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  %30 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  invoke void @_ZN4juce5ImageC1ENS0_11PixelFormatEiib(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef 2, i32 noundef %29, i32 noundef %30, i1 noundef zeroext true)
          to label %52 unwind label %56

.lr.ph:                                           ; preds = %.lr.ph.preheader, %49
  %31 = phi i32 [ %50, %49 ], [ %25, %.lr.ph.preheader ]
  %32 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %33 = add nsw i32 %31, %22
  %34 = call noundef ptr @_ZNK4juce7ListBox12ListViewport28getComponentForRowIfOnscreenEi(ptr noundef nonnull align 8 dereferenceable(1269) %32, i32 noundef %33) #6
  %.not39 = icmp eq ptr %34, null
  br i1 %.not39, label %49, label %35

35:                                               ; preds = %.lr.ph
  %36 = invoke noundef zeroext i1 @_ZNK4juce9SparseSetIiE8containsEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %33)
          to label %37 unwind label %45

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

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN4juce5PointIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %8) #6
  invoke void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %7, ptr noundef nonnull align 8 dereferenceable(197) %1, ptr noundef nonnull %34, ptr noundef nonnull %8)
          to label %39 unwind label %47

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %40 = call noundef i32 @_ZNK4juce5PointIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %7) #6
  %41 = call noundef i32 @_ZNK4juce5PointIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %7) #6
  %42 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %34) #6
  %43 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %34) #6
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef %40, i32 noundef %41, i32 noundef %42, i32 noundef %43) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @_ZNK4juce9RectangleIiE8getUnionERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %10, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %9) #6
  %44 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %10) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %49

45:                                               ; preds = %35
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %91

47:                                               ; preds = %38
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %91

49:                                               ; preds = %39, %37, %.lr.ph
  %50 = add nsw i32 %31, -1
  %51 = icmp sgt i32 %31, 0
  br i1 %51, label %.lr.ph, label %._crit_edge, !llvm.loop !9

52:                                               ; preds = %._crit_edge
  %53 = call noundef i32 @_ZNK4juce7ListBox18getNumRowsOnScreenEv(ptr noundef nonnull align 8 dereferenceable(296) %1) #6
  %54 = icmp sgt i32 %53, -2
  br i1 %54, label %.lr.ph44.preheader, label %._crit_edge45

.lr.ph44.preheader:                               ; preds = %52
  %55 = add nsw i32 %53, 1
  br label %.lr.ph44

56:                                               ; preds = %._crit_edge
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %91

.lr.ph44:                                         ; preds = %.lr.ph44.preheader, %87
  %58 = phi i32 [ %88, %87 ], [ %55, %.lr.ph44.preheader ]
  %59 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %60 = add nsw i32 %58, %22
  %61 = call noundef ptr @_ZNK4juce7ListBox12ListViewport28getComponentForRowIfOnscreenEi(ptr noundef nonnull align 8 dereferenceable(1269) %59, i32 noundef %60) #6
  %.not = icmp eq ptr %61, null
  br i1 %.not, label %87, label %62

62:                                               ; preds = %.lr.ph44
  %63 = invoke noundef zeroext i1 @_ZNK4juce9SparseSetIiE8containsEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %60)
          to label %64 unwind label %74

64:                                               ; preds = %62
  br i1 %63, label %65, label %87

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  invoke void @_ZN4juce8GraphicsC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(17) %13, ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %66 unwind label %76

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  call void @_ZN4juce5PointIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16) #6
  invoke void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %15, ptr noundef nonnull align 8 dereferenceable(197) %1, ptr noundef nonnull %61, ptr noundef nonnull %16)
          to label %67 unwind label %78

67:                                               ; preds = %66
  call void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %17, ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  call void @_ZNK4juce5PointIiEmiES1_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %14, ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull %17) #6
  invoke void @_ZN4juce8Graphics9setOriginENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(17) %13, ptr noundef nonnull %14)
          to label %68 unwind label %78

68:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %18, ptr noundef nonnull align 8 dereferenceable(197) %61) #6
  %69 = invoke noundef zeroext i1 @_ZN4juce8Graphics16reduceClipRegionENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17) %13, ptr noundef nonnull %18)
          to label %70 unwind label %80

70:                                               ; preds = %68
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %18) #6
  br i1 %69, label %71, label %84

71:                                               ; preds = %70
  invoke void @_ZN4juce8Graphics22beginTransparencyLayerEf(ptr noundef nonnull align 8 dereferenceable(17) %13, float noundef 0x3FE3333340000000)
          to label %72 unwind label %82

72:                                               ; preds = %71
  invoke void @_ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb(ptr noundef nonnull align 8 dereferenceable(197) %61, ptr noundef nonnull align 8 dereferenceable(17) %13, i1 noundef zeroext false)
          to label %73 unwind label %82

73:                                               ; preds = %72
  invoke void @_ZN4juce8Graphics20endTransparencyLayerEv(ptr noundef nonnull align 8 dereferenceable(17) %13)
          to label %84 unwind label %82

74:                                               ; preds = %62
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %90

76:                                               ; preds = %65
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %86

78:                                               ; preds = %67, %66
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %85

80:                                               ; preds = %68
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %18) #6
  br label %85

82:                                               ; preds = %73, %72, %71
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %85

84:                                               ; preds = %73, %70
  call void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  br label %87

85:                                               ; preds = %82, %80, %78
  %.pn = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ], [ %79, %78 ]
  call void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %13) #6
  br label %86

86:                                               ; preds = %85, %76
  %.pn.pn = phi { ptr, i32 } [ %.pn, %85 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  br label %90

87:                                               ; preds = %84, %64, %.lr.ph44
  %88 = add nsw i32 %58, -1
  %89 = icmp sgt i32 %58, 0
  br i1 %89, label %.lr.ph44, label %._crit_edge45, !llvm.loop !11

90:                                               ; preds = %86, %74
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %86 ], [ %75, %74 ]
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %91

._crit_edge45:                                    ; preds = %87, %52
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  ret void

91:                                               ; preds = %45, %47, %90, %56
  %.pn40.pn = phi { ptr, i32 } [ %.pn.pn.pn, %90 ], [ %57, %56 ], [ %48, %47 ], [ %46, %45 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn40.pn
}

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { "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 "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 #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass