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

; 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 }

@_ZTVN4juce9ScrollBarE = external dso_local unnamed_addr constant { [49 x ptr], [5 x ptr], [5 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare void @_ZN4juce5TimerC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

declare void @_ZN4juce12AsyncUpdaterC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN4juce12AsyncUpdaterD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN4juce5TimerD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9ScrollBarC2Eb(ptr noundef nonnull align 8 dereferenceable(376) %0, i1 noundef zeroext %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %7 = zext i1 %1 to i8
  store i8 %7, ptr %4, align 1, !tbaa !9
  %8 = load ptr, ptr %3, align 8
  call void @_ZN4juce9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(197) %8) #5
  %9 = getelementptr inbounds i8, ptr %8, i64 200
  invoke void @_ZN4juce12AsyncUpdaterC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %10 unwind label %34

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %8, i64 216
  call void @_ZN4juce5TimerC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  store ptr getelementptr inbounds inrange(-16, 376) ({ [49 x ptr], [5 x ptr], [5 x ptr] }, ptr @_ZTVN4juce9ScrollBarE, i32 0, i32 0, i32 2), ptr %8, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %8, i64 200
  store ptr getelementptr inbounds inrange(-16, 24) ({ [49 x ptr], [5 x ptr], [5 x ptr] }, ptr @_ZTVN4juce9ScrollBarE, i32 0, i32 1, i32 2), ptr %12, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %8, i64 216
  store ptr getelementptr inbounds inrange(-16, 24) ({ [49 x ptr], [5 x ptr], [5 x ptr] }, ptr @_ZTVN4juce9ScrollBarE, i32 0, i32 2, i32 2), ptr %13, align 8, !tbaa !11
  %14 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 3
  call void @_ZN4juce5RangeIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef 0.000000e+00, double noundef 1.000000e+00) #5
  %15 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 4
  call void @_ZN4juce5RangeIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef 0.000000e+00, double noundef 1.000000e-01) #5
  %16 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 5
  store double 1.000000e-01, ptr %16, align 8, !tbaa !13
  %17 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 7
  store i32 0, ptr %17, align 8, !tbaa !51
  %18 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 8
  store i32 0, ptr %18, align 4, !tbaa !52
  %19 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 9
  store i32 0, ptr %19, align 8, !tbaa !53
  %20 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 10
  store i32 0, ptr %20, align 4, !tbaa !54
  %21 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 13
  store i32 100, ptr %21, align 8, !tbaa !55
  %22 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 14
  store i32 50, ptr %22, align 4, !tbaa !56
  %23 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 15
  store i32 10, ptr %23, align 8, !tbaa !57
  %24 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 16
  %25 = load i8, ptr %4, align 1, !tbaa !9, !range !58, !noundef !59
  %26 = trunc i8 %25 to i1
  %27 = zext i1 %26 to i8
  store i8 %27, ptr %24, align 4, !tbaa !60
  %28 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 17
  store i8 0, ptr %28, align 1, !tbaa !61
  %29 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 18
  store i8 1, ptr %29, align 2, !tbaa !62
  %30 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 19
  call void @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #5
  %31 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 20
  call void @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  %32 = getelementptr inbounds %"class.juce::ScrollBar", ptr %8, i32 0, i32 21
  invoke void @_ZN4juce12ListenerListINS_9ScrollBar8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %33 unwind label %38

33:                                               ; preds = %10
  call void @_ZN4juce9Component26setRepaintsOnMouseActivityEb(ptr noundef nonnull align 8 dereferenceable(197) %8, i1 noundef zeroext true) #5
  call void @_ZN4juce9Component17setFocusContainerEb(ptr noundef nonnull align 8 dereferenceable(197) %8, i1 noundef zeroext true) #5
  ret void

34:                                               ; preds = %2
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %5, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %6, align 4
  br label %44

38:                                               ; preds = %10
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %5, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %6, align 4
  call void @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  call void @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #5
  %42 = getelementptr inbounds i8, ptr %8, i64 216
  call void @_ZN4juce5TimerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #5
  %43 = getelementptr inbounds i8, ptr %8, i64 200
  call void @_ZN4juce12AsyncUpdaterD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #5
  br label %44

44:                                               ; preds = %38, %34
  call void @_ZN4juce9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(197) %8) #5
  br label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %5, align 8
  %47 = load i32, ptr %6, align 4
  %48 = insertvalue { ptr, i32 } poison, ptr %46, 0
  %49 = insertvalue { ptr, i32 } %48, i32 %47, 1
  resume { ptr, i32 } %49
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(197)) unnamed_addr #0 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 = { 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 #2 = { "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 = { 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 #5 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !45, i64 280}
!14 = !{!"_ZTSN4juce9ScrollBarE", !15, i64 0, !41, i64 200, !43, i64 216, !44, i64 248, !44, i64 264, !45, i64 280, !45, i64 288, !21, i64 296, !21, i64 300, !21, i64 304, !21, i64 308, !21, i64 312, !21, i64 316, !21, i64 320, !21, i64 324, !21, i64 328, !10, i64 332, !10, i64 333, !10, i64 334, !46, i64 336, !46, i64 344, !47, i64 352}
!15 = !{!"_ZTSN4juce9ComponentE", !16, i64 0, !17, i64 8, !17, i64 16, !6, i64 24, !19, i64 32, !22, i64 48, !23, i64 56, !24, i64 64, !6, i64 88, !27, i64 96, !6, i64 104, !28, i64 112, !29, i64 120, !30, i64 128, !31, i64 136, !35, i64 160, !39, i64 184, !7, i64 192, !7, i64 196}
!16 = !{!"_ZTSN4juce13MouseListenerE"}
!17 = !{!"_ZTSN4juce6StringE", !18, i64 0}
!18 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!19 = !{!"_ZTSN4juce9RectangleIiEE", !20, i64 0, !21, i64 8, !21, i64 12}
!20 = !{!"_ZTSN4juce5PointIiEE", !21, i64 0, !21, i64 4}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!24 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !25, i64 0, !21, i64 16}
!25 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !26, i64 0, !21, i64 8}
!26 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!27 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!29 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!30 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!31 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !32, i64 0}
!32 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !33, i64 0, !21, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !34, i64 0, !21, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce13NamedValueSetE", !36, i64 0}
!36 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !37, i64 0, !21, i64 16}
!37 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !38, i64 0, !21, i64 8}
!38 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!39 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !40, i64 0}
!40 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!41 = !{!"_ZTSN4juce12AsyncUpdaterE", !42, i64 8}
!42 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!43 = !{!"_ZTSN4juce5TimerE", !21, i64 8, !21, i64 12, !6, i64 16, !6, i64 24}
!44 = !{!"_ZTSN4juce5RangeIdEE", !45, i64 0, !45, i64 8}
!45 = !{!"double", !7, i64 0}
!46 = !{!"_ZTSN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEE", !6, i64 0}
!47 = !{!"_ZTSN4juce12ListenerListINS_9ScrollBar8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !48, i64 0}
!48 = !{!"_ZTSN4juce5ArrayIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionELi0EEE", !49, i64 0, !21, i64 16}
!49 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionEEE", !50, i64 0, !21, i64 8}
!50 = !{!"_ZTSN4juce9HeapBlockIPNS_9ScrollBar8ListenerELb0EEE", !6, i64 0}
!51 = !{!14, !21, i64 296}
!52 = !{!14, !21, i64 300}
!53 = !{!14, !21, i64 304}
!54 = !{!14, !21, i64 308}
!55 = !{!14, !21, i64 320}
!56 = !{!14, !21, i64 324}
!57 = !{!14, !21, i64 328}
!58 = !{i8 0, i8 2}
!59 = !{}
!60 = !{!14, !10, i64 332}
!61 = !{!14, !10, i64 333}
!62 = !{!14, !10, i64 334}


; 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"

@_ZTVN4juce9ScrollBarE = external dso_local unnamed_addr constant { [49 x ptr], [5 x ptr], [5 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare void @_ZN4juce5TimerC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

declare void @_ZN4juce12AsyncUpdaterC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9ScrollBarC2Eb(ptr noundef nonnull align 8 dereferenceable(376) %0, i1 noundef zeroext %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN4juce9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(197) %0) #6
  %3 = getelementptr inbounds i8, ptr %0, i64 200
  invoke void @_ZN4juce12AsyncUpdaterC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %4 unwind label %20

4:                                                ; preds = %2
  %5 = zext i1 %1 to i8
  %6 = getelementptr inbounds i8, ptr %0, i64 216
  tail call void @_ZN4juce5TimerC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  store ptr getelementptr inbounds inrange(-16, 376) (i8, ptr @_ZTVN4juce9ScrollBarE, i64 16), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTVN4juce9ScrollBarE, i64 408), ptr %3, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTVN4juce9ScrollBarE, i64 448), ptr %6, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 248
  tail call void @_ZN4juce5RangeIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef 0.000000e+00, double noundef 1.000000e+00) #6
  %8 = getelementptr inbounds i8, ptr %0, i64 264
  tail call void @_ZN4juce5RangeIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef 0.000000e+00, double noundef 1.000000e-01) #6
  %9 = getelementptr inbounds i8, ptr %0, i64 280
  store double 1.000000e-01, ptr %9, align 8, !tbaa !8
  %10 = getelementptr inbounds i8, ptr %0, i64 296
  %11 = getelementptr inbounds i8, ptr %0, i64 320
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, i8 0, i64 16, i1 false)
  store i32 100, ptr %11, align 8, !tbaa !49
  %12 = getelementptr inbounds i8, ptr %0, i64 324
  store i32 50, ptr %12, align 4, !tbaa !50
  %13 = getelementptr inbounds i8, ptr %0, i64 328
  store i32 10, ptr %13, align 8, !tbaa !51
  %14 = getelementptr inbounds i8, ptr %0, i64 332
  store i8 %5, ptr %14, align 4, !tbaa !52
  %15 = getelementptr inbounds i8, ptr %0, i64 333
  store i8 0, ptr %15, align 1, !tbaa !53
  %16 = getelementptr inbounds i8, ptr %0, i64 334
  store i8 1, ptr %16, align 2, !tbaa !54
  %17 = getelementptr inbounds i8, ptr %0, i64 336
  tail call void @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %18 = getelementptr inbounds i8, ptr %0, i64 344
  tail call void @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  %19 = getelementptr inbounds i8, ptr %0, i64 352
  tail call void @_ZN4juce12ListenerListINS_9ScrollBar8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19)
  tail call void @_ZN4juce9Component26setRepaintsOnMouseActivityEb(ptr noundef nonnull align 8 dereferenceable(197) %0, i1 noundef zeroext true) #6
  tail call void @_ZN4juce9Component17setFocusContainerEb(ptr noundef nonnull align 8 dereferenceable(197) %0, i1 noundef zeroext true) #6
  ret void

20:                                               ; preds = %2
  %21 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN4juce9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(197) %0) #6
  resume { ptr, i32 } %21
}

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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 = { 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 #2 = { "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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !42, i64 280}
!9 = !{!"_ZTSN4juce9ScrollBarE", !10, i64 0, !38, i64 200, !40, i64 216, !41, i64 248, !41, i64 264, !42, i64 280, !42, i64 288, !18, i64 296, !18, i64 300, !18, i64 304, !18, i64 308, !18, i64 312, !18, i64 316, !18, i64 320, !18, i64 324, !18, i64 328, !43, i64 332, !43, i64 333, !43, i64 334, !44, i64 336, !44, i64 344, !45, i64 352}
!10 = !{!"_ZTSN4juce9ComponentE", !11, i64 0, !12, i64 8, !12, i64 16, !14, i64 24, !16, i64 32, !19, i64 48, !20, i64 56, !21, i64 64, !14, i64 88, !24, i64 96, !14, i64 104, !25, i64 112, !26, i64 120, !27, i64 128, !28, i64 136, !32, i64 160, !36, i64 184, !15, i64 192, !15, i64 196}
!11 = !{!"_ZTSN4juce13MouseListenerE"}
!12 = !{!"_ZTSN4juce6StringE", !13, i64 0}
!13 = !{!"_ZTSN4juce16CharPointer_UTF8E", !14, i64 0}
!14 = !{!"any pointer", !15, i64 0}
!15 = !{!"omnipotent char", !7, i64 0}
!16 = !{!"_ZTSN4juce9RectangleIiEE", !17, i64 0, !18, i64 8, !18, i64 12}
!17 = !{!"_ZTSN4juce5PointIiEE", !18, i64 0, !18, i64 4}
!18 = !{!"int", !15, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !14, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !14, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !18, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !18, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !14, i64 0}
!24 = !{!"_ZTSN4juce11MouseCursorE", !14, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !14, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !14, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !14, i64 0}
!28 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !18, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !18, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !14, i64 0}
!32 = !{!"_ZTSN4juce13NamedValueSetE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !18, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !35, i64 0, !18, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !14, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !14, i64 0}
!38 = !{!"_ZTSN4juce12AsyncUpdaterE", !39, i64 8}
!39 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !14, i64 0}
!40 = !{!"_ZTSN4juce5TimerE", !18, i64 8, !18, i64 12, !14, i64 16, !14, i64 24}
!41 = !{!"_ZTSN4juce5RangeIdEE", !42, i64 0, !42, i64 8}
!42 = !{!"double", !15, i64 0}
!43 = !{!"bool", !15, i64 0}
!44 = !{!"_ZTSN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEE", !14, i64 0}
!45 = !{!"_ZTSN4juce12ListenerListINS_9ScrollBar8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !46, i64 0}
!46 = !{!"_ZTSN4juce5ArrayIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionELi0EEE", !47, i64 0, !18, i64 16}
!47 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionEEE", !48, i64 0, !18, i64 8}
!48 = !{!"_ZTSN4juce9HeapBlockIPNS_9ScrollBar8ListenerELb0EEE", !14, i64 0}
!49 = !{!9, !18, i64 320}
!50 = !{!9, !18, i64 324}
!51 = !{!9, !18, i64 328}
!52 = !{!9, !43, i64 332}
!53 = !{!9, !43, i64 333}
!54 = !{!9, !43, i64 334}


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