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

; 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::ScrollBar" = type { %"class.juce::Component.base", %"class.juce::AsyncUpdater", %"class.juce::Timer", %"class.juce::Range.324", %"class.juce::Range.324", double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, %"class.juce::ScopedPointer.325", %"class.juce::ScopedPointer.325", %"class.juce::ListenerList.326" }
%"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::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.15" }
%"class.juce::ReferenceCountedObjectPtr.15" = type { ptr }
%"class.juce::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::Range.324" = type { double, double }
%"class.juce::ScopedPointer.325" = type { ptr }
%"class.juce::ListenerList.326" = type { %"class.juce::Array.327" }
%"class.juce::Array.327" = type { %"class.juce::ArrayAllocationBase.328", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.328" = type <{ %"class.juce::HeapBlock.329", i32, [4 x i8] }>
%"class.juce::HeapBlock.329" = 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 i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9ScrollBar5paintERNS_8GraphicsE(ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef nonnull align 8 dereferenceable(17) %1) unnamed_addr #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  %8 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 8
  %9 = load i32, ptr %8, align 4, !tbaa !9
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %11, label %69

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %12 = call noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197) %7) #3
  store ptr %12, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %13 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 8
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !48
  %17 = getelementptr inbounds ptr, ptr %16, i64 6
  %18 = load ptr, ptr %17, align 8
  %19 = call noundef i32 %18(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(376) %7)
  %20 = icmp sgt i32 %14, %19
  br i1 %20, label %21, label %24

21:                                               ; preds = %11
  %22 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 10
  %23 = load i32, ptr %22, align 4, !tbaa !50
  br label %25

24:                                               ; preds = %11
  br label %25

25:                                               ; preds = %24, %21
  %26 = phi i32 [ %23, %21 ], [ 0, %24 ]
  store i32 %26, ptr %6, align 4, !tbaa !51
  %27 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 16
  %28 = load i8, ptr %27, align 4, !tbaa !52, !range !53, !noundef !54
  %29 = trunc i8 %28 to i1
  br i1 %29, label %30, label %49

30:                                               ; preds = %25
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 7
  %34 = load i32, ptr %33, align 8, !tbaa !55
  %35 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %7) #3
  %36 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 8
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 16
  %39 = load i8, ptr %38, align 4, !tbaa !52, !range !53, !noundef !54
  %40 = trunc i8 %39 to i1
  %41 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 9
  %42 = load i32, ptr %41, align 8, !tbaa !56
  %43 = load i32, ptr %6, align 4, !tbaa !51
  %44 = call noundef zeroext i1 @_ZNK4juce9Component11isMouseOverEb(ptr noundef nonnull align 8 dereferenceable(197) %7, i1 noundef zeroext false)
  %45 = call noundef zeroext i1 @_ZNK4juce9Component17isMouseButtonDownEv(ptr noundef nonnull align 8 dereferenceable(197) %7)
  %46 = load ptr, ptr %31, align 8, !tbaa !48
  %47 = getelementptr inbounds ptr, ptr %46, i64 4
  %48 = load ptr, ptr %47, align 8
  call void %48(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(17) %32, ptr noundef nonnull align 8 dereferenceable(376) %7, i32 noundef 0, i32 noundef %34, i32 noundef %35, i32 noundef %37, i1 noundef zeroext %40, i32 noundef %42, i32 noundef %43, i1 noundef zeroext %44, i1 noundef zeroext %45)
  br label %68

49:                                               ; preds = %25
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 7
  %53 = load i32, ptr %52, align 8, !tbaa !55
  %54 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 8
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %7) #3
  %57 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 16
  %58 = load i8, ptr %57, align 4, !tbaa !52, !range !53, !noundef !54
  %59 = trunc i8 %58 to i1
  %60 = getelementptr inbounds %"class.juce::ScrollBar", ptr %7, i32 0, i32 9
  %61 = load i32, ptr %60, align 8, !tbaa !56
  %62 = load i32, ptr %6, align 4, !tbaa !51
  %63 = call noundef zeroext i1 @_ZNK4juce9Component11isMouseOverEb(ptr noundef nonnull align 8 dereferenceable(197) %7, i1 noundef zeroext false)
  %64 = call noundef zeroext i1 @_ZNK4juce9Component17isMouseButtonDownEv(ptr noundef nonnull align 8 dereferenceable(197) %7)
  %65 = load ptr, ptr %50, align 8, !tbaa !48
  %66 = getelementptr inbounds ptr, ptr %65, i64 4
  %67 = load ptr, ptr %66, align 8
  call void %67(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(17) %51, ptr noundef nonnull align 8 dereferenceable(376) %7, i32 noundef %53, i32 noundef 0, i32 noundef %55, i32 noundef %56, i1 noundef zeroext %59, i32 noundef %61, i32 noundef %62, i1 noundef zeroext %63, i1 noundef zeroext %64)
  br label %68

68:                                               ; preds = %49, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %69

69:                                               ; preds = %68, %2
  ret void
}

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 = { 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, !17, i64 300}
!10 = !{!"_ZTSN4juce9ScrollBarE", !11, i64 0, !37, i64 200, !39, i64 216, !40, i64 248, !40, i64 264, !41, i64 280, !41, i64 288, !17, i64 296, !17, i64 300, !17, i64 304, !17, i64 308, !17, i64 312, !17, i64 316, !17, i64 320, !17, i64 324, !17, i64 328, !42, i64 332, !42, i64 333, !42, i64 334, !43, i64 336, !43, i64 344, !44, i64 352}
!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 = !{!"_ZTSN4juce12AsyncUpdaterE", !38, i64 8}
!38 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!39 = !{!"_ZTSN4juce5TimerE", !17, i64 8, !17, i64 12, !6, i64 16, !6, i64 24}
!40 = !{!"_ZTSN4juce5RangeIdEE", !41, i64 0, !41, i64 8}
!41 = !{!"double", !7, i64 0}
!42 = !{!"bool", !7, i64 0}
!43 = !{!"_ZTSN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEE", !6, i64 0}
!44 = !{!"_ZTSN4juce12ListenerListINS_9ScrollBar8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !45, i64 0}
!45 = !{!"_ZTSN4juce5ArrayIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionELi0EEE", !46, i64 0, !17, i64 16}
!46 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionEEE", !47, i64 0, !17, i64 8}
!47 = !{!"_ZTSN4juce9HeapBlockIPNS_9ScrollBar8ListenerELb0EEE", !6, i64 0}
!48 = !{!49, !49, i64 0}
!49 = !{!"vtable pointer", !8, i64 0}
!50 = !{!10, !17, i64 308}
!51 = !{!17, !17, i64 0}
!52 = !{!10, !42, i64 332}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!10, !17, i64 296}
!56 = !{!10, !17, i64 304}


; 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 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 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9ScrollBar5paintERNS_8GraphicsE(ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef nonnull align 8 dereferenceable(17) %1) unnamed_addr #1 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 300
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %6, label %45

6:                                                ; preds = %2
  %7 = tail call noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #2
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = load ptr, ptr %7, align 8, !tbaa !47
  %10 = getelementptr inbounds i8, ptr %9, i64 48
  %11 = load ptr, ptr %10, align 8
  %12 = tail call noundef i32 %11(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(376) %0)
  %13 = icmp sgt i32 %8, %12
  %14 = getelementptr inbounds i8, ptr %0, i64 308
  %15 = load i32, ptr %14, align 4
  %16 = select i1 %13, i32 %15, i32 0
  %17 = getelementptr inbounds i8, ptr %0, i64 332
  %18 = load i8, ptr %17, align 4, !tbaa !49, !range !50, !noundef !51
  %19 = trunc nuw i8 %18 to i1
  %20 = getelementptr inbounds i8, ptr %0, i64 296
  %21 = load i32, ptr %20, align 8, !tbaa !52
  %22 = getelementptr inbounds i8, ptr %0, i64 304
  br i1 %19, label %23, label %34

23:                                               ; preds = %6
  %24 = tail call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #2
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = load i8, ptr %17, align 4, !tbaa !49, !range !50, !noundef !51
  %27 = trunc nuw i8 %26 to i1
  %28 = load i32, ptr %22, align 8, !tbaa !53
  %29 = tail call noundef zeroext i1 @_ZNK4juce9Component11isMouseOverEb(ptr noundef nonnull align 8 dereferenceable(197) %0, i1 noundef zeroext false)
  %30 = tail call noundef zeroext i1 @_ZNK4juce9Component17isMouseButtonDownEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
  %31 = load ptr, ptr %7, align 8, !tbaa !47
  %32 = getelementptr inbounds i8, ptr %31, i64 32
  %33 = load ptr, ptr %32, align 8
  tail call void %33(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(376) %0, i32 noundef 0, i32 noundef %21, i32 noundef %24, i32 noundef %25, i1 noundef zeroext %27, i32 noundef %28, i32 noundef %16, i1 noundef zeroext %29, i1 noundef zeroext %30)
  br label %45

34:                                               ; preds = %6
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #2
  %37 = load i8, ptr %17, align 4, !tbaa !49, !range !50, !noundef !51
  %38 = trunc nuw i8 %37 to i1
  %39 = load i32, ptr %22, align 8, !tbaa !53
  %40 = tail call noundef zeroext i1 @_ZNK4juce9Component11isMouseOverEb(ptr noundef nonnull align 8 dereferenceable(197) %0, i1 noundef zeroext false)
  %41 = tail call noundef zeroext i1 @_ZNK4juce9Component17isMouseButtonDownEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
  %42 = load ptr, ptr %7, align 8, !tbaa !47
  %43 = getelementptr inbounds i8, ptr %42, i64 32
  %44 = load ptr, ptr %43, align 8
  tail call void %44(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(376) %0, i32 noundef %21, i32 noundef 0, i32 noundef %35, i32 noundef %36, i1 noundef zeroext %38, i32 noundef %39, i32 noundef %16, i1 noundef zeroext %40, i1 noundef zeroext %41)
  br label %45

45:                                               ; preds = %23, %34, %2
  ret void
}

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 = { 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, !16, i64 300}
!6 = !{!"_ZTSN4juce9ScrollBarE", !7, i64 0, !36, i64 200, !38, i64 216, !39, i64 248, !39, i64 264, !40, i64 280, !40, i64 288, !16, i64 296, !16, i64 300, !16, i64 304, !16, i64 308, !16, i64 312, !16, i64 316, !16, i64 320, !16, i64 324, !16, i64 328, !41, i64 332, !41, i64 333, !41, i64 334, !42, i64 336, !42, i64 344, !43, i64 352}
!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 = !{!"_ZTSN4juce12AsyncUpdaterE", !37, i64 8}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !11, i64 0}
!38 = !{!"_ZTSN4juce5TimerE", !16, i64 8, !16, i64 12, !11, i64 16, !11, i64 24}
!39 = !{!"_ZTSN4juce5RangeIdEE", !40, i64 0, !40, i64 8}
!40 = !{!"double", !12, i64 0}
!41 = !{!"bool", !12, i64 0}
!42 = !{!"_ZTSN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEE", !11, i64 0}
!43 = !{!"_ZTSN4juce12ListenerListINS_9ScrollBar8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !44, i64 0}
!44 = !{!"_ZTSN4juce5ArrayIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionELi0EEE", !45, i64 0, !16, i64 16}
!45 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionEEE", !46, i64 0, !16, i64 8}
!46 = !{!"_ZTSN4juce9HeapBlockIPNS_9ScrollBar8ListenerELb0EEE", !11, i64 0}
!47 = !{!48, !48, i64 0}
!48 = !{!"vtable pointer", !13, i64 0}
!49 = !{!6, !41, i64 332}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = !{!6, !16, i64 296}
!53 = !{!6, !16, i64 304}


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