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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Component" = 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, [3 x 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 }

declare i32 @__gxx_personality_v0(...)

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

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

; 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 zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 8 dereferenceable(17) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::Rectangle", align 4
  %9 = alloca %"class.juce::Point", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.juce::Rectangle", align 4
  %14 = alloca i1, align 1
  %15 = alloca %"class.juce::Rectangle", align 4
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.juce::Rectangle", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK4juce8Graphics13getClipBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %5, ptr noundef nonnull align 8 dereferenceable(17) %21)
  %22 = getelementptr inbounds %"class.juce::Component", ptr %20, i32 0, i32 17
  %23 = load i16, ptr %22, align 8
  %24 = lshr i16 %23, 14
  %25 = and i16 %24, 1
  %26 = trunc i16 %25 to i1
  br i1 %26, label %27, label %37

27:                                               ; preds = %2
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %20, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 25
  %31 = load ptr, ptr %30, align 8
  invoke void %31(ptr noundef nonnull align 8 dereferenceable(197) %20, ptr noundef nonnull align 8 dereferenceable(17) %28)
          to label %32 unwind label %33

32:                                               ; preds = %27
  br label %63

33:                                               ; preds = %237, %232, %230, %60, %50, %37, %27
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %6, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %7, align 4
  br label %240

37:                                               ; preds = %2
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics9saveStateEv(ptr noundef nonnull align 8 dereferenceable(17) %38)
          to label %39 unwind label %33

39:                                               ; preds = %37
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %5) #5
  call void @_ZN4juce5PointIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9) #5
  %41 = invoke noundef zeroext i1 @_ZN4juce9Component16ComponentHelpers19clipObscuredRegionsERKS0_RNS_8GraphicsENS_9RectangleIiEENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(197) %20, ptr noundef nonnull align 8 dereferenceable(17) %40, ptr noundef %8, ptr noundef %9)
          to label %42 unwind label %56

42:                                               ; preds = %39
  br i1 %41, label %43, label %47

43:                                               ; preds = %42
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = invoke noundef zeroext i1 @_ZNK4juce8Graphics11isClipEmptyEv(ptr noundef nonnull align 8 dereferenceable(17) %44)
          to label %46 unwind label %56

46:                                               ; preds = %43
  br label %47

47:                                               ; preds = %46, %42
  %48 = phi i1 [ false, %42 ], [ %45, %46 ]
  %49 = xor i1 %48, true
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #5
  br i1 %49, label %50, label %60

50:                                               ; preds = %47
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load ptr, ptr %20, align 8, !tbaa !9
  %53 = getelementptr inbounds ptr, ptr %52, i64 25
  %54 = load ptr, ptr %53, align 8
  invoke void %54(ptr noundef nonnull align 8 dereferenceable(197) %20, ptr noundef nonnull align 8 dereferenceable(17) %51)
          to label %55 unwind label %33

55:                                               ; preds = %50
  br label %60

56:                                               ; preds = %43, %39
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %6, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %7, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #5
  br label %240

60:                                               ; preds = %55, %47
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics12restoreStateEv(ptr noundef nonnull align 8 dereferenceable(17) %61)
          to label %62 unwind label %33

62:                                               ; preds = %60
  br label %63

63:                                               ; preds = %62, %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %64

64:                                               ; preds = %226, %63
  %65 = load i32, ptr %10, align 4, !tbaa !11
  %66 = getelementptr inbounds %"class.juce::Component", ptr %20, i32 0, i32 7
  %67 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %66) #5
  %68 = icmp slt i32 %65, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %64
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %230

70:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %71 = getelementptr inbounds %"class.juce::Component", ptr %20, i32 0, i32 7
  %72 = load i32, ptr %10, align 4, !tbaa !11
  %73 = invoke noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %71, i32 noundef %72)
          to label %74 unwind label %115

74:                                               ; preds = %70
  store ptr %73, ptr %12, align 8, !tbaa !5
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %75) #5
  br i1 %76, label %77, label %225

77:                                               ; preds = %74
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = getelementptr inbounds %"class.juce::Component", ptr %78, i32 0, i32 6
  %80 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15AffineTransformEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %79) #5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %129

82:                                               ; preds = %77
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics9saveStateEv(ptr noundef nonnull align 8 dereferenceable(17) %83)
          to label %84 unwind label %115

84:                                               ; preds = %82
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.juce::Component", ptr %86, i32 0, i32 6
  %88 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNK4juce13ScopedPointerINS_15AffineTransformEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %87) #5
  invoke void @_ZN4juce8Graphics12addTransformERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %85, ptr noundef nonnull align 4 dereferenceable(24) %88)
          to label %89 unwind label %115

89:                                               ; preds = %84
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.juce::Component", ptr %90, i32 0, i32 17
  %92 = load i16, ptr %91, align 8
  %93 = lshr i16 %92, 14
  %94 = and i16 %93, 1
  %95 = trunc i16 %94 to i1
  store i1 false, ptr %14, align 1
  br i1 %95, label %96, label %100

96:                                               ; preds = %89
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = invoke noundef zeroext i1 @_ZNK4juce8Graphics11isClipEmptyEv(ptr noundef nonnull align 8 dereferenceable(17) %97)
          to label %99 unwind label %115

99:                                               ; preds = %96
  br i1 %98, label %100, label %106

100:                                              ; preds = %99, %89
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %102) #5
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %103) #5
  store i1 true, ptr %14, align 1
  %104 = invoke noundef zeroext i1 @_ZN4juce8Graphics16reduceClipRegionENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17) %101, ptr noundef %13)
          to label %105 unwind label %119

105:                                              ; preds = %100
  br label %106

106:                                              ; preds = %105, %99
  %107 = phi i1 [ true, %99 ], [ %104, %105 ]
  %108 = load i1, ptr %14, align 1
  br i1 %108, label %109, label %110

109:                                              ; preds = %106
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %13) #5
  br label %110

110:                                              ; preds = %109, %106
  br i1 %107, label %111, label %126

111:                                              ; preds = %110
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce9Component24paintWithinParentContextERNS_8GraphicsE(ptr noundef nonnull align 8 dereferenceable(197) %112, ptr noundef nonnull align 8 dereferenceable(17) %113)
          to label %114 unwind label %115

114:                                              ; preds = %111
  br label %126

115:                                              ; preds = %220, %142, %133, %126, %111, %96, %84, %82, %70
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %6, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %7, align 4
  br label %229

119:                                              ; preds = %100
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %6, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %7, align 4
  %123 = load i1, ptr %14, align 1
  br i1 %123, label %124, label %125

124:                                              ; preds = %119
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %13) #5
  br label %125

125:                                              ; preds = %124, %119
  br label %229

126:                                              ; preds = %114, %110
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics12restoreStateEv(ptr noundef nonnull align 8 dereferenceable(17) %127)
          to label %128 unwind label %115

128:                                              ; preds = %126
  br label %224

129:                                              ; preds = %77
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %130) #5
  %132 = call noundef zeroext i1 @_ZNK4juce9RectangleIiE10intersectsERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %131) #5
  br i1 %132, label %133, label %223

133:                                              ; preds = %129
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics9saveStateEv(ptr noundef nonnull align 8 dereferenceable(17) %134)
          to label %135 unwind label %115

135:                                              ; preds = %133
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = getelementptr inbounds %"class.juce::Component", ptr %136, i32 0, i32 17
  %138 = load i16, ptr %137, align 8
  %139 = lshr i16 %138, 14
  %140 = and i16 %139, 1
  %141 = trunc i16 %140 to i1
  br i1 %141, label %142, label %146

142:                                              ; preds = %135
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce9Component24paintWithinParentContextERNS_8GraphicsE(ptr noundef nonnull align 8 dereferenceable(197) %143, ptr noundef nonnull align 8 dereferenceable(17) %144)
          to label %145 unwind label %115

145:                                              ; preds = %142
  br label %220

146:                                              ; preds = %135
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %148) #5
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %149) #5
  %150 = invoke noundef zeroext i1 @_ZN4juce8Graphics16reduceClipRegionENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17) %147, ptr noundef %15)
          to label %151 unwind label %161

151:                                              ; preds = %146
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15) #5
  br i1 %150, label %152, label %219

152:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  store i8 1, ptr %16, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %153 = load i32, ptr %10, align 4, !tbaa !11
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %17, align 4, !tbaa !11
  br label %155

155:                                              ; preds = %198, %152
  %156 = load i32, ptr %17, align 4, !tbaa !11
  %157 = getelementptr inbounds %"class.juce::Component", ptr %20, i32 0, i32 7
  %158 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %157) #5
  %159 = icmp slt i32 %156, %158
  br i1 %159, label %165, label %160

160:                                              ; preds = %155
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %202

161:                                              ; preds = %146
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %6, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %7, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15) #5
  br label %229

165:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %166 = getelementptr inbounds %"class.juce::Component", ptr %20, i32 0, i32 7
  %167 = load i32, ptr %17, align 4, !tbaa !11
  %168 = invoke noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %166, i32 noundef %167)
          to label %169 unwind label %189

169:                                              ; preds = %165
  store ptr %168, ptr %18, align 8, !tbaa !5
  %170 = load ptr, ptr %18, align 8, !tbaa !5
  %171 = getelementptr inbounds %"class.juce::Component", ptr %170, i32 0, i32 17
  %172 = load i16, ptr %171, align 8
  %173 = lshr i16 %172, 2
  %174 = and i16 %173, 1
  %175 = trunc i16 %174 to i1
  br i1 %175, label %176, label %197

176:                                              ; preds = %169
  %177 = load ptr, ptr %18, align 8, !tbaa !5
  %178 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %177) #5
  br i1 %178, label %179, label %197

179:                                              ; preds = %176
  %180 = load ptr, ptr %18, align 8, !tbaa !5
  %181 = getelementptr inbounds %"class.juce::Component", ptr %180, i32 0, i32 6
  %182 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15AffineTransformEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %181) #5
  %183 = icmp eq ptr %182, null
  br i1 %183, label %184, label %197

184:                                              ; preds = %179
  store i8 0, ptr %16, align 1, !tbaa !13
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = load ptr, ptr %18, align 8, !tbaa !5
  %187 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %186) #5
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(16) %187) #5
  invoke void @_ZN4juce8Graphics17excludeClipRegionENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17) %185, ptr noundef %19)
          to label %188 unwind label %193

188:                                              ; preds = %184
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19) #5
  br label %197

189:                                              ; preds = %165
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %6, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %7, align 4
  br label %201

193:                                              ; preds = %184
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %6, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %7, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19) #5
  br label %201

197:                                              ; preds = %188, %179, %176, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %17, align 4, !tbaa !11
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %17, align 4, !tbaa !11
  br label %155, !llvm.loop !15

201:                                              ; preds = %193, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %218

202:                                              ; preds = %160
  %203 = load i8, ptr %16, align 1, !tbaa !13, !range !17, !noundef !18
  %204 = trunc i8 %203 to i1
  br i1 %204, label %209, label %205

205:                                              ; preds = %202
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = invoke noundef zeroext i1 @_ZNK4juce8Graphics11isClipEmptyEv(ptr noundef nonnull align 8 dereferenceable(17) %206)
          to label %208 unwind label %213

208:                                              ; preds = %205
  br i1 %207, label %217, label %209

209:                                              ; preds = %208, %202
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce9Component24paintWithinParentContextERNS_8GraphicsE(ptr noundef nonnull align 8 dereferenceable(197) %210, ptr noundef nonnull align 8 dereferenceable(17) %211)
          to label %212 unwind label %213

212:                                              ; preds = %209
  br label %217

213:                                              ; preds = %209, %205
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %6, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %7, align 4
  br label %218

217:                                              ; preds = %212, %208
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  br label %219

218:                                              ; preds = %213, %201
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  br label %229

219:                                              ; preds = %217, %151
  br label %220

220:                                              ; preds = %219, %145
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics12restoreStateEv(ptr noundef nonnull align 8 dereferenceable(17) %221)
          to label %222 unwind label %115

222:                                              ; preds = %220
  br label %223

223:                                              ; preds = %222, %129
  br label %224

224:                                              ; preds = %223, %128
  br label %225

225:                                              ; preds = %224, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %10, align 4, !tbaa !11
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %10, align 4, !tbaa !11
  br label %64, !llvm.loop !19

229:                                              ; preds = %218, %161, %125, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %240

230:                                              ; preds = %69
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics9saveStateEv(ptr noundef nonnull align 8 dereferenceable(17) %231)
          to label %232 unwind label %33

232:                                              ; preds = %230
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = load ptr, ptr %20, align 8, !tbaa !9
  %235 = getelementptr inbounds ptr, ptr %234, i64 26
  %236 = load ptr, ptr %235, align 8
  invoke void %236(ptr noundef nonnull align 8 dereferenceable(197) %20, ptr noundef nonnull align 8 dereferenceable(17) %233)
          to label %237 unwind label %33

237:                                              ; preds = %232
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics12restoreStateEv(ptr noundef nonnull align 8 dereferenceable(17) %238)
          to label %239 unwind label %33

239:                                              ; preds = %237
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  ret void

240:                                              ; preds = %229, %56, %33
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  br label %241

241:                                              ; preds = %240
  %242 = load ptr, ptr %6, align 8
  %243 = load i32, ptr %7, align 4
  %244 = insertvalue { ptr, i32 } poison, ptr %242, 0
  %245 = insertvalue { ptr, i32 } %244, i32 %243, 1
  resume { ptr, i32 } %245
}

declare void @_ZNK4juce8Graphics13getClipBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(17)) #4

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9RectangleIiE10intersectsERKS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #1 align 2

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

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !16}


; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #0 align 2

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

; 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 zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 8 dereferenceable(17) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::Rectangle", align 4
  %4 = alloca %"class.juce::Rectangle", align 4
  %5 = alloca %"class.juce::Point", align 4
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca %"class.juce::Rectangle", align 4
  %8 = alloca %"class.juce::Rectangle", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @_ZNK4juce8Graphics13getClipBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %3, ptr noundef nonnull align 8 dereferenceable(17) %1)
  %9 = getelementptr inbounds i8, ptr %0, i64 192
  %10 = load i16, ptr %9, align 8
  %11 = and i16 %10, 16384
  %.not = icmp eq i16 %11, 0
  br i1 %.not, label %18, label %12

12:                                               ; preds = %2
  %13 = load ptr, ptr %0, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 200
  %15 = load ptr, ptr %14, align 8
  invoke void %15(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %32 unwind label %16

16:                                               ; preds = %106, %102, %._crit_edge76, %31, %25, %18, %12
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %108

18:                                               ; preds = %2
  invoke void @_ZN4juce8Graphics9saveStateEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %19 unwind label %16

19:                                               ; preds = %18
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) %3) #5
  call void @_ZN4juce5PointIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5) #5
  %20 = invoke noundef zeroext i1 @_ZN4juce9Component16ComponentHelpers19clipObscuredRegionsERKS0_RNS_8GraphicsENS_9RectangleIiEENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %4, ptr noundef nonnull %5)
          to label %21 unwind label %29

21:                                               ; preds = %19
  br i1 %20, label %22, label %.critedge

22:                                               ; preds = %21
  %23 = invoke noundef zeroext i1 @_ZNK4juce8Graphics11isClipEmptyEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %24 unwind label %29

24:                                               ; preds = %22
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #5
  br i1 %23, label %31, label %25

.critedge:                                        ; preds = %21
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #5
  br label %25

25:                                               ; preds = %.critedge, %24
  %26 = load ptr, ptr %0, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 200
  %28 = load ptr, ptr %27, align 8
  invoke void %28(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %31 unwind label %16

29:                                               ; preds = %22, %19
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #5
  br label %108

31:                                               ; preds = %25, %24
  invoke void @_ZN4juce8Graphics12restoreStateEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %32 unwind label %16

32:                                               ; preds = %31, %12
  %33 = getelementptr inbounds i8, ptr %0, i64 64
  %34 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %33) #5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph75, label %._crit_edge76

._crit_edge76:                                    ; preds = %98, %32
  invoke void @_ZN4juce8Graphics9saveStateEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %102 unwind label %16

.lr.ph75:                                         ; preds = %32, %98
  %.05772 = phi i32 [ %99, %98 ], [ 0, %32 ]
  %36 = call noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %33, i32 noundef %.05772)
  %37 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %36) #5
  br i1 %37, label %38, label %98

38:                                               ; preds = %.lr.ph75
  %39 = getelementptr inbounds i8, ptr %36, i64 56
  %40 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15AffineTransformEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %39) #5
  %.not58 = icmp eq ptr %40, null
  br i1 %.not58, label %59, label %41

41:                                               ; preds = %38
  invoke void @_ZN4juce8Graphics9saveStateEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %42 unwind label %55

42:                                               ; preds = %41
  %43 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNK4juce13ScopedPointerINS_15AffineTransformEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #5
  invoke void @_ZN4juce8Graphics12addTransformERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 4 dereferenceable(24) %43)
          to label %44 unwind label %55

44:                                               ; preds = %42
  %45 = getelementptr inbounds i8, ptr %36, i64 192
  %46 = load i16, ptr %45, align 8
  %47 = and i16 %46, 16384
  %.not62 = icmp eq i16 %47, 0
  br i1 %.not62, label %51, label %48

48:                                               ; preds = %44
  %49 = invoke noundef zeroext i1 @_ZNK4juce8Graphics11isClipEmptyEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %50 unwind label %55

50:                                               ; preds = %48
  br i1 %49, label %51, label %.invoke86

51:                                               ; preds = %50, %44
  %52 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %36) #5
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %52) #5
  %53 = invoke noundef zeroext i1 @_ZN4juce8Graphics16reduceClipRegionENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %6)
          to label %54 unwind label %57

54:                                               ; preds = %51
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #5
  br i1 %53, label %.invoke86, label %.invoke

55:                                               ; preds = %.invoke86, %.invoke, %62, %48, %42, %41
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %108

57:                                               ; preds = %51
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #5
  br label %108

59:                                               ; preds = %38
  %60 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %36) #5
  %61 = call noundef zeroext i1 @_ZNK4juce9RectangleIiE10intersectsERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %60) #5
  br i1 %61, label %62, label %98

62:                                               ; preds = %59
  invoke void @_ZN4juce8Graphics9saveStateEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %63 unwind label %55

63:                                               ; preds = %62
  %64 = getelementptr inbounds i8, ptr %36, i64 192
  %65 = load i16, ptr %64, align 8
  %66 = and i16 %65, 16384
  %.not59 = icmp eq i16 %66, 0
  br i1 %.not59, label %67, label %.invoke86

.invoke86:                                        ; preds = %54, %50, %63
  invoke void @_ZN4juce9Component24paintWithinParentContextERNS_8GraphicsE(ptr noundef nonnull align 8 dereferenceable(197) %36, ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %.invoke unwind label %55

67:                                               ; preds = %63
  %68 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %36) #5
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(16) %68) #5
  %69 = invoke noundef zeroext i1 @_ZN4juce8Graphics16reduceClipRegionENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %7)
          to label %70 unwind label %73

70:                                               ; preds = %67
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #5
  br i1 %69, label %.preheader, label %.invoke

.preheader:                                       ; preds = %70
  %.05069 = add nuw nsw i32 %.05772, 1
  %71 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %33) #5
  %72 = icmp slt i32 %.05069, %71
  br i1 %72, label %.lr.ph.outer, label %.critedge77

.lr.ph.outer:                                     ; preds = %.preheader, %.thread
  %.05071.ph = phi i32 [ %.05079, %.thread ], [ %.05069, %.preheader ]
  %.05170.ph = phi i1 [ false, %.thread ], [ true, %.preheader ]
  br label %.lr.ph

._crit_edge:                                      ; preds = %89
  br i1 %.05170.ph, label %.critedge77, label %._crit_edge.thread

73:                                               ; preds = %67
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #5
  br label %108

.lr.ph:                                           ; preds = %.lr.ph.outer, %89
  %.05071 = phi i32 [ %.050, %89 ], [ %.05071.ph, %.lr.ph.outer ]
  %75 = call noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %33, i32 noundef %.05071)
  %76 = getelementptr inbounds i8, ptr %75, i64 192
  %77 = load i16, ptr %76, align 8
  %78 = and i16 %77, 4
  %.not60 = icmp eq i16 %78, 0
  br i1 %.not60, label %89, label %79

79:                                               ; preds = %.lr.ph
  %80 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %75) #5
  br i1 %80, label %81, label %89

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %75, i64 56
  %83 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15AffineTransformEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #5
  %84 = icmp eq ptr %83, null
  br i1 %84, label %85, label %89

85:                                               ; preds = %81
  %86 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %75) #5
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %86) #5
  invoke void @_ZN4juce8Graphics17excludeClipRegionENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %8)
          to label %.thread unwind label %87

87:                                               ; preds = %85
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #5
  br label %108

89:                                               ; preds = %81, %79, %.lr.ph
  %.050 = add nuw nsw i32 %.05071, 1
  %90 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %33) #5
  %91 = icmp slt i32 %.050, %90
  br i1 %91, label %.lr.ph, label %._crit_edge, !llvm.loop !8

.thread:                                          ; preds = %85
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #5
  %.05079 = add nuw nsw i32 %.05071, 1
  %92 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %33) #5
  %93 = icmp slt i32 %.05079, %92
  br i1 %93, label %.lr.ph.outer, label %._crit_edge.thread, !llvm.loop !8

._crit_edge.thread:                               ; preds = %.thread, %._crit_edge
  %94 = invoke noundef zeroext i1 @_ZNK4juce8Graphics11isClipEmptyEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %95 unwind label %96

95:                                               ; preds = %._crit_edge.thread
  br i1 %94, label %.invoke, label %.critedge77

.critedge77:                                      ; preds = %.preheader, %95, %._crit_edge
  invoke void @_ZN4juce9Component24paintWithinParentContextERNS_8GraphicsE(ptr noundef nonnull align 8 dereferenceable(197) %36, ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %.invoke unwind label %96

96:                                               ; preds = %.critedge77, %._crit_edge.thread
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %108

.invoke:                                          ; preds = %.invoke86, %70, %.critedge77, %95, %54
  invoke void @_ZN4juce8Graphics12restoreStateEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %98 unwind label %55

98:                                               ; preds = %.invoke, %59, %.lr.ph75
  %99 = add nuw nsw i32 %.05772, 1
  %100 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %33) #5
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %.lr.ph75, label %._crit_edge76, !llvm.loop !10

102:                                              ; preds = %._crit_edge76
  %103 = load ptr, ptr %0, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 208
  %105 = load ptr, ptr %104, align 8
  invoke void %105(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %106 unwind label %16

106:                                              ; preds = %102
  invoke void @_ZN4juce8Graphics12restoreStateEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %107 unwind label %16

107:                                              ; preds = %106
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  ret void

108:                                              ; preds = %55, %73, %57, %96, %87, %29, %16
  %.pn63.pn = phi { ptr, i32 } [ %17, %16 ], [ %30, %29 ], [ %56, %55 ], [ %58, %57 ], [ %74, %73 ], [ %88, %87 ], [ %97, %96 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn63.pn
}

declare void @_ZNK4juce8Graphics13getClipBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #4

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9RectangleIiE10intersectsERKS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

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

attributes #0 = { 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 #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass