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

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

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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #1

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

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

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 4 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, i32 noundef) #4 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)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9ScrollBar19updateThumbPositionEv(ptr noundef nonnull align 8 dereferenceable(376)) #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9ScrollBar7resizedEv(ptr noundef nonnull align 8 dereferenceable(376) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, 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::Rectangle", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %15 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 16
  %16 = load i8, ptr %15, align 4, !tbaa !9, !range !48, !noundef !49
  %17 = trunc i8 %16 to i1
  br i1 %17, label %18, label %20

18:                                               ; preds = %1
  %19 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %14) #6
  br label %22

20:                                               ; preds = %1
  %21 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %14) #6
  br label %22

22:                                               ; preds = %20, %18
  %23 = phi i32 [ %19, %18 ], [ %21, %20 ]
  store i32 %23, ptr %3, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %24 = call noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197) %14) #6
  store ptr %24, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %25, align 8, !tbaa !51
  %27 = getelementptr inbounds ptr, ptr %26, i64 2
  %28 = load ptr, ptr %27, align 8
  %29 = call noundef zeroext i1 %28(ptr noundef nonnull align 8 dereferenceable(8) %25)
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %5, align 1, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !50
  %31 = load i8, ptr %5, align 1, !tbaa !53, !range !48, !noundef !49
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %81

33:                                               ; preds = %22
  %34 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 19
  %35 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #6
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %72

37:                                               ; preds = %33
  %38 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 392) #7
  %39 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 16
  %40 = load i8, ptr %39, align 4, !tbaa !9, !range !48, !noundef !49
  %41 = trunc i8 %40 to i1
  %42 = zext i1 %41 to i64
  %43 = select i1 %41, i32 0, i32 3
  invoke void @_ZN4juce9ScrollBar15ScrollbarButtonC2EiRS0_(ptr noundef nonnull align 8 dereferenceable(392) %38, i32 noundef %43, ptr noundef nonnull align 8 dereferenceable(376) %14)
          to label %44 unwind label %64

44:                                               ; preds = %37
  %45 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 19
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef %38)
  %47 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #6
  call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %14, ptr noundef %47, i32 noundef -1)
  %48 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 392) #7
  %49 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 16
  %50 = load i8, ptr %49, align 4, !tbaa !9, !range !48, !noundef !49
  %51 = trunc i8 %50 to i1
  %52 = zext i1 %51 to i64
  %53 = select i1 %51, i32 2, i32 1
  invoke void @_ZN4juce9ScrollBar15ScrollbarButtonC2EiRS0_(ptr noundef nonnull align 8 dereferenceable(392) %48, i32 noundef %53, ptr noundef nonnull align 8 dereferenceable(376) %14)
          to label %54 unwind label %68

54:                                               ; preds = %44
  %55 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 20
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef %48)
  %57 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #6
  call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %14, ptr noundef %57, i32 noundef -1)
  %58 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 13
  %59 = load i32, ptr %58, align 8, !tbaa !54
  %60 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 14
  %61 = load i32, ptr %60, align 4, !tbaa !55
  %62 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 15
  %63 = load i32, ptr %62, align 8, !tbaa !56
  call void @_ZN4juce9ScrollBar20setButtonRepeatSpeedEiii(ptr noundef nonnull align 8 dereferenceable(376) %14, i32 noundef %59, i32 noundef %61, i32 noundef %63)
  br label %72

64:                                               ; preds = %37
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %38, i64 noundef 392) #8
  br label %153

68:                                               ; preds = %44
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %7, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %48, i64 noundef 392) #8
  br label %153

72:                                               ; preds = %54, %33
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = load ptr, ptr %73, align 8, !tbaa !51
  %75 = getelementptr inbounds ptr, ptr %74, i64 8
  %76 = load ptr, ptr %75, align 8
  %77 = call noundef i32 %76(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(376) %14)
  %78 = load i32, ptr %3, align 4, !tbaa !50
  %79 = sdiv i32 %78, 2
  %80 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %77, i32 noundef %79)
  store i32 %80, ptr %6, align 4, !tbaa !50
  br label %86

81:                                               ; preds = %22
  %82 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 19
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef null)
  %84 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 20
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef null)
  br label %86

86:                                               ; preds = %81, %72
  %87 = load i32, ptr %3, align 4, !tbaa !50
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load ptr, ptr %88, align 8, !tbaa !51
  %90 = getelementptr inbounds ptr, ptr %89, i64 6
  %91 = load ptr, ptr %90, align 8
  %92 = call noundef i32 %91(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(376) %14)
  %93 = add nsw i32 32, %92
  %94 = icmp slt i32 %87, %93
  br i1 %94, label %95, label %100

95:                                               ; preds = %86
  %96 = load i32, ptr %3, align 4, !tbaa !50
  %97 = sdiv i32 %96, 2
  %98 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 7
  store i32 %97, ptr %98, align 8, !tbaa !57
  %99 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 8
  store i32 0, ptr %99, align 4, !tbaa !58
  br label %108

100:                                              ; preds = %86
  %101 = load i32, ptr %6, align 4, !tbaa !50
  %102 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 7
  store i32 %101, ptr %102, align 8, !tbaa !57
  %103 = load i32, ptr %3, align 4, !tbaa !50
  %104 = load i32, ptr %6, align 4, !tbaa !50
  %105 = mul nsw i32 2, %104
  %106 = sub nsw i32 %103, %105
  %107 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 8
  store i32 %106, ptr %107, align 4, !tbaa !58
  br label %108

108:                                              ; preds = %100, %95
  %109 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 19
  %110 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %109) #6
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %152

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %9, ptr noundef nonnull align 8 dereferenceable(197) %14) #6
  %113 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 16
  %114 = load i8, ptr %113, align 4, !tbaa !9, !range !48, !noundef !49
  %115 = trunc i8 %114 to i1
  br i1 %115, label %116, label %133

116:                                              ; preds = %112
  %117 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 19
  %118 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %117) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %119 = load i32, ptr %6, align 4, !tbaa !50
  call void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %10, ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef %119) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %118, ptr noundef nonnull align 4 dereferenceable(16) %10)
          to label %120 unwind label %125

120:                                              ; preds = %116
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  %121 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 20
  %122 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %121) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %123 = load i32, ptr %6, align 4, !tbaa !50
  call void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef %123) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %122, ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %124 unwind label %129

124:                                              ; preds = %120
  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 %150

125:                                              ; preds = %116
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %7, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %8, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br label %151

129:                                              ; preds = %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %7, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %8, align 4
  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 %151

133:                                              ; preds = %112
  %134 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 19
  %135 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %134) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %136 = load i32, ptr %6, align 4, !tbaa !50
  call void @_ZN4juce9RectangleIiE14removeFromLeftEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %12, ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef %136) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %135, ptr noundef nonnull align 4 dereferenceable(16) %12)
          to label %137 unwind label %142

137:                                              ; preds = %133
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  %138 = getelementptr inbounds %"class.juce::ScrollBar", ptr %14, i32 0, i32 20
  %139 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %138) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %140 = load i32, ptr %6, align 4, !tbaa !50
  call void @_ZN4juce9RectangleIiE15removeFromRightEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %13, ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef %140) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %139, ptr noundef nonnull align 4 dereferenceable(16) %13)
          to label %141 unwind label %146

141:                                              ; preds = %137
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %150

142:                                              ; preds = %133
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %7, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %8, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %151

146:                                              ; preds = %137
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %7, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %8, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %151

150:                                              ; preds = %141, %124
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %152

151:                                              ; preds = %146, %142, %129, %125
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %153

152:                                              ; preds = %150, %108
  call void @_ZN4juce9ScrollBar19updateThumbPositionEv(ptr noundef nonnull align 8 dereferenceable(376) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void

153:                                              ; preds = %151, %68, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %154

154:                                              ; preds = %153
  %155 = load ptr, ptr %7, align 8
  %156 = load i32, ptr %8, align 4
  %157 = insertvalue { ptr, i32 } poison, ptr %155, 0
  %158 = insertvalue { ptr, i32 } %157, i32 %156, 1
  resume { ptr, i32 } %158
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiE15removeFromRightEi(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #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 = { nobuiltin 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !42, i64 332}
!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 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!17, !17, i64 0}
!51 = !{!52, !52, i64 0}
!52 = !{!"vtable pointer", !8, i64 0}
!53 = !{!42, !42, i64 0}
!54 = !{!10, !17, i64 320}
!55 = !{!10, !17, i64 324}
!56 = !{!10, !17, i64 328}
!57 = !{!10, !17, i64 296}
!58 = !{!10, !17, i64 300}


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

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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, i32 noundef) local_unnamed_addr #4 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9ScrollBar19updateThumbPositionEv(ptr noundef nonnull align 8 dereferenceable(376)) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9ScrollBar7resizedEv(ptr noundef nonnull align 8 dereferenceable(376) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::Rectangle", align 4
  %3 = alloca %"class.juce::Rectangle", align 4
  %4 = alloca %"class.juce::Rectangle", align 4
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = getelementptr inbounds i8, ptr %0, i64 332
  %8 = load i8, ptr %7, align 4, !tbaa !5, !range !47, !noundef !48
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %10, label %12

10:                                               ; preds = %1
  %11 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #6
  br label %14

12:                                               ; preds = %1
  %13 = tail call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #6
  br label %14

14:                                               ; preds = %12, %10
  %15 = phi i32 [ %11, %10 ], [ %13, %12 ]
  %16 = tail call noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #6
  %17 = load ptr, ptr %16, align 8, !tbaa !49
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %19 = load ptr, ptr %18, align 8
  %20 = tail call noundef zeroext i1 %19(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %21 = getelementptr inbounds i8, ptr %0, i64 336
  br i1 %20, label %22, label %58

22:                                               ; preds = %14
  %23 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %51

25:                                               ; preds = %22
  %26 = tail call noalias noundef nonnull dereferenceable(392) ptr @_Znwm(i64 noundef 392) #7
  %27 = load i8, ptr %7, align 4, !tbaa !5, !range !47, !noundef !48
  %28 = trunc nuw i8 %27 to i1
  %29 = select i1 %28, i32 0, i32 3
  invoke void @_ZN4juce9ScrollBar15ScrollbarButtonC2EiRS0_(ptr noundef nonnull align 8 dereferenceable(392) %26, i32 noundef %29, ptr noundef nonnull align 8 dereferenceable(376) %0)
          to label %30 unwind label %47

30:                                               ; preds = %25
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull %26)
  %32 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  tail call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %32, i32 noundef -1)
  %33 = tail call noalias noundef nonnull dereferenceable(392) ptr @_Znwm(i64 noundef 392) #7
  %34 = load i8, ptr %7, align 4, !tbaa !5, !range !47, !noundef !48
  %35 = trunc nuw i8 %34 to i1
  %36 = select i1 %35, i32 2, i32 1
  invoke void @_ZN4juce9ScrollBar15ScrollbarButtonC2EiRS0_(ptr noundef nonnull align 8 dereferenceable(392) %33, i32 noundef %36, ptr noundef nonnull align 8 dereferenceable(376) %0)
          to label %37 unwind label %49

37:                                               ; preds = %30
  %38 = getelementptr inbounds i8, ptr %0, i64 344
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull %33)
  %40 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %39) #6
  tail call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %40, i32 noundef -1)
  %41 = getelementptr inbounds i8, ptr %0, i64 320
  %42 = load i32, ptr %41, align 8, !tbaa !51
  %43 = getelementptr inbounds i8, ptr %0, i64 324
  %44 = load i32, ptr %43, align 4, !tbaa !52
  %45 = getelementptr inbounds i8, ptr %0, i64 328
  %46 = load i32, ptr %45, align 8, !tbaa !53
  tail call void @_ZN4juce9ScrollBar20setButtonRepeatSpeedEiii(ptr noundef nonnull align 8 dereferenceable(376) %0, i32 noundef %42, i32 noundef %44, i32 noundef %46)
  br label %51

47:                                               ; preds = %25
  %48 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %26, i64 noundef 392) #8
  br label %104

49:                                               ; preds = %30
  %50 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %33, i64 noundef 392) #8
  br label %104

51:                                               ; preds = %37, %22
  %52 = load ptr, ptr %16, align 8, !tbaa !49
  %53 = getelementptr inbounds i8, ptr %52, i64 64
  %54 = load ptr, ptr %53, align 8
  %55 = tail call noundef i32 %54(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(376) %0)
  %56 = sdiv i32 %15, 2
  %57 = tail call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %55, i32 noundef %56)
  br label %62

58:                                               ; preds = %14
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef null)
  %60 = getelementptr inbounds i8, ptr %0, i64 344
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef null)
  br label %62

62:                                               ; preds = %58, %51
  %.018 = phi i32 [ %57, %51 ], [ 0, %58 ]
  %63 = load ptr, ptr %16, align 8, !tbaa !49
  %64 = getelementptr inbounds i8, ptr %63, i64 48
  %65 = load ptr, ptr %64, align 8
  %66 = tail call noundef i32 %65(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(376) %0)
  %67 = add nsw i32 %66, 32
  %68 = icmp slt i32 %15, %67
  br i1 %68, label %69, label %71

69:                                               ; preds = %62
  %70 = sdiv i32 %15, 2
  br label %74

71:                                               ; preds = %62
  %72 = shl nsw i32 %.018, 1
  %73 = sub nsw i32 %15, %72
  br label %74

74:                                               ; preds = %71, %69
  %.018.sink = phi i32 [ %70, %69 ], [ %.018, %71 ]
  %.sink = phi i32 [ 0, %69 ], [ %73, %71 ]
  %75 = getelementptr inbounds i8, ptr %0, i64 296
  store i32 %.018.sink, ptr %75, align 8
  %76 = getelementptr inbounds i8, ptr %0, i64 300
  store i32 %.sink, ptr %76, align 4
  %77 = getelementptr inbounds i8, ptr %0, i64 336
  %78 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %77) #6
  %.not = icmp eq ptr %78, null
  br i1 %.not, label %103, label %79

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %2, ptr noundef nonnull align 8 dereferenceable(197) %0) #6
  %80 = load i8, ptr %7, align 4, !tbaa !5, !range !47, !noundef !48
  %81 = trunc nuw i8 %80 to i1
  %82 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %77) #6
  br i1 %81, label %83, label %92

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %3, ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef %.018) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %82, ptr noundef nonnull align 4 dereferenceable(16) %3)
          to label %84 unwind label %88

84:                                               ; preds = %83
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  %85 = getelementptr inbounds i8, ptr %0, i64 344
  %86 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %85) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %4, ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef %.018) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %86, ptr noundef nonnull align 4 dereferenceable(16) %4)
          to label %87 unwind label %90

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

88:                                               ; preds = %83
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %102

90:                                               ; preds = %84
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %102

92:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN4juce9RectangleIiE14removeFromLeftEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef %.018) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %82, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %93 unwind label %97

93:                                               ; preds = %92
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  %94 = getelementptr inbounds i8, ptr %0, i64 344
  %95 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %94) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN4juce9RectangleIiE15removeFromRightEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %6, ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef %.018) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %95, ptr noundef nonnull align 4 dereferenceable(16) %6)
          to label %96 unwind label %99

96:                                               ; preds = %93
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %101

97:                                               ; preds = %92
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %102

99:                                               ; preds = %93
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %102

101:                                              ; preds = %96, %87
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %103

102:                                              ; preds = %99, %97, %90, %88
  %.pn = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ], [ %100, %99 ], [ %98, %97 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %104

103:                                              ; preds = %101, %74
  call void @_ZN4juce9ScrollBar19updateThumbPositionEv(ptr noundef nonnull align 8 dereferenceable(376) %0)
  ret void

104:                                              ; preds = %102, %49, %47
  %.pn.pn = phi { ptr, i32 } [ %.pn, %102 ], [ %50, %49 ], [ %48, %47 ]
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiE15removeFromRightEi(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_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 = { nobuiltin 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !41, i64 332}
!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 = !{i8 0, i8 2}
!48 = !{}
!49 = !{!50, !50, i64 0}
!50 = !{!"vtable pointer", !13, i64 0}
!51 = !{!6, !16, i64 320}
!52 = !{!6, !16, i64 324}
!53 = !{!6, !16, i64 328}


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