; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/juce_gui_extra.ll (ZN4juce14ColourSelectorC2Eiii)

; 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::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.92 }
%union.anon.92 = type { i32 }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ColourSelector" = type { %"class.juce::Component.base", %"class.juce::ChangeBroadcaster", %"class.juce::Slider::Listener", %"class.juce::Colour", float, float, float, [4 x %"class.juce::ScopedPointer.169"], %"class.juce::ScopedPointer.170", %"class.juce::ScopedPointer.171", %"class.juce::OwnedArray.172", i32, i32, %"class.juce::Rectangle" }
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.37", %"class.juce::Array.38", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.43", %"class.juce::ScopedPointer.44", %"class.juce::ScopedPointer.45", %"class.juce::ListenerList.46", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.37" = type { ptr }
%"class.juce::Array.38" = type { %"class.juce::ArrayAllocationBase.39", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.39" = type <{ %"class.juce::HeapBlock.40", i32, [4 x i8] }>
%"class.juce::HeapBlock.40" = type { ptr }
%"class.juce::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.43" = type { ptr }
%"class.juce::ScopedPointer.44" = type { ptr }
%"class.juce::ScopedPointer.45" = type { ptr }
%"class.juce::ListenerList.46" = type { %"class.juce::Array.47" }
%"class.juce::Array.47" = type { %"class.juce::ArrayAllocationBase.48", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.48" = type <{ %"class.juce::HeapBlock.49", i32, [4 x i8] }>
%"class.juce::HeapBlock.49" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.52" }
%"class.juce::Array.52" = type { %"class.juce::ArrayAllocationBase.53", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.53" = type <{ %"class.juce::HeapBlock.54", i32, [4 x i8] }>
%"class.juce::HeapBlock.54" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr.57" }
%"class.juce::ReferenceCountedObjectPtr.57" = type { ptr }
%union.anon = type { i32 }
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::ListenerList" = type { %"class.juce::Array" }
%"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::Slider::Listener" = type { ptr }
%"class.juce::ScopedPointer.169" = type { ptr }
%"class.juce::ScopedPointer.170" = type { ptr }
%"class.juce::ScopedPointer.171" = type { ptr }
%"class.juce::OwnedArray.172" = type { %"class.juce::ArrayAllocationBase.173", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.173" = type <{ %"class.juce::HeapBlock.174", i32, [4 x i8] }>
%"class.juce::HeapBlock.174" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }

@_ZTVN4juce14ColourSelectorE = external dso_local unnamed_addr constant { [51 x ptr], [4 x ptr], [7 x ptr] }, align 8
@_ZN4juce7Colours5whiteE = external global %"class.juce::Colour", align 1
@.str.46 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind
declare void @_ZN4juce17ChangeBroadcasterC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #0

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

; Function Attrs: nounwind
declare void @_ZN4juce17ChangeBroadcasterD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef) #2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

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

declare void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, i32 noundef) #2

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

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14ColourSelectorC2Eiii(ptr noundef nonnull align 8 dereferenceable(376) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.juce::String", align 8
  %12 = alloca i1, align 1
  %13 = alloca %"class.juce::String", align 8
  %14 = alloca i1, align 1
  %15 = alloca %"class.juce::String", align 8
  %16 = alloca i1, align 1
  %17 = alloca %"class.juce::String", align 8
  %18 = alloca i1, align 1
  %19 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %20 = load ptr, ptr %5, align 8
  call void @_ZN4juce9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(197) %20) #8
  %21 = getelementptr inbounds i8, ptr %20, i64 200
  call void @_ZN4juce17ChangeBroadcasterC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #8
  %22 = getelementptr inbounds i8, ptr %20, i64 256
  call void @_ZN4juce6Slider8ListenerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  store ptr getelementptr inbounds inrange(-16, 392) ({ [51 x ptr], [4 x ptr], [7 x ptr] }, ptr @_ZTVN4juce14ColourSelectorE, i32 0, i32 0, i32 2), ptr %20, align 8, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %20, i64 200
  store ptr getelementptr inbounds inrange(-16, 16) ({ [51 x ptr], [4 x ptr], [7 x ptr] }, ptr @_ZTVN4juce14ColourSelectorE, i32 0, i32 1, i32 2), ptr %23, align 8, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %20, i64 256
  store ptr getelementptr inbounds inrange(-16, 40) ({ [51 x ptr], [4 x ptr], [7 x ptr] }, ptr @_ZTVN4juce14ColourSelectorE, i32 0, i32 2, i32 2), ptr %24, align 8, !tbaa !11
  %25 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 3
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %25, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE) #8
  %26 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 7
  %27 = getelementptr inbounds [4 x %"class.juce::ScopedPointer.169"], ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds %"class.juce::ScopedPointer.169", ptr %27, i64 4
  br label %29

29:                                               ; preds = %29, %4
  %30 = phi ptr [ %27, %4 ], [ %31, %29 ]
  call void @_ZN4juce13ScopedPointerINS_6SliderEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  %31 = getelementptr inbounds %"class.juce::ScopedPointer.169", ptr %30, i64 1
  %32 = icmp eq ptr %31, %28
  br i1 %32, label %33, label %29

33:                                               ; preds = %29
  %34 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 8
  call void @_ZN4juce13ScopedPointerINS_14ColourSelector15ColourSpaceViewEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  %35 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 9
  call void @_ZN4juce13ScopedPointerINS_14ColourSelector15HueSelectorCompEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  %36 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 10
  call void @_ZN4juce10OwnedArrayINS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEEC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %36) #8
  %37 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 11
  %38 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %38, ptr %37, align 8, !tbaa !13
  %39 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 12
  %40 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %40, ptr %39, align 4, !tbaa !57
  %41 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 13
  call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %41) #8
  br label %42

42:                                               ; preds = %33
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  invoke void @_ZN4juce14ColourSelector9updateHSVEv(ptr noundef nonnull align 8 dereferenceable(376) %20)
          to label %45 unwind label %107

45:                                               ; preds = %44
  %46 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 11
  %47 = load i32, ptr %46, align 8, !tbaa !13
  %48 = and i32 %47, 4
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %172

50:                                               ; preds = %45
  %51 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 224) #9
          to label %52 unwind label %107

52:                                               ; preds = %50
  store i1 true, ptr %12, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %11, ptr noundef @.str.46)
          to label %53 unwind label %111

53:                                               ; preds = %52
  invoke void @_ZN4juce14ColourSelector21ColourComponentSliderC2ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(224) %51, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %54 unwind label %115

54:                                               ; preds = %53
  store i1 false, ptr %12, align 1
  %55 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 7
  %56 = getelementptr inbounds [4 x %"class.juce::ScopedPointer.169"], ptr %55, i64 0, i64 0
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6SliderEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef %51)
          to label %58 unwind label %115

58:                                               ; preds = %54
  %59 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %57) #8
  invoke void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %20, ptr noundef %59, i32 noundef -1)
          to label %60 unwind label %115

60:                                               ; preds = %58
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  %61 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 224) #9
          to label %62 unwind label %107

62:                                               ; preds = %60
  store i1 true, ptr %14, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %13, ptr noundef @.str.47)
          to label %63 unwind label %123

63:                                               ; preds = %62
  invoke void @_ZN4juce14ColourSelector21ColourComponentSliderC2ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(224) %61, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %64 unwind label %127

64:                                               ; preds = %63
  store i1 false, ptr %14, align 1
  %65 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 7
  %66 = getelementptr inbounds [4 x %"class.juce::ScopedPointer.169"], ptr %65, i64 0, i64 1
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6SliderEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef %61)
          to label %68 unwind label %127

68:                                               ; preds = %64
  %69 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %67) #8
  invoke void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %20, ptr noundef %69, i32 noundef -1)
          to label %70 unwind label %127

70:                                               ; preds = %68
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %71 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 224) #9
          to label %72 unwind label %107

72:                                               ; preds = %70
  store i1 true, ptr %16, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %15, ptr noundef @.str.48)
          to label %73 unwind label %135

73:                                               ; preds = %72
  invoke void @_ZN4juce14ColourSelector21ColourComponentSliderC2ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(224) %71, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %74 unwind label %139

74:                                               ; preds = %73
  store i1 false, ptr %16, align 1
  %75 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 7
  %76 = getelementptr inbounds [4 x %"class.juce::ScopedPointer.169"], ptr %75, i64 0, i64 2
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6SliderEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef %71)
          to label %78 unwind label %139

78:                                               ; preds = %74
  %79 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %77) #8
  invoke void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %20, ptr noundef %79, i32 noundef -1)
          to label %80 unwind label %139

80:                                               ; preds = %78
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %81 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 224) #9
          to label %82 unwind label %107

82:                                               ; preds = %80
  store i1 true, ptr %18, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %17, ptr noundef @.str.49)
          to label %83 unwind label %147

83:                                               ; preds = %82
  invoke void @_ZN4juce14ColourSelector21ColourComponentSliderC2ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(224) %81, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %84 unwind label %151

84:                                               ; preds = %83
  store i1 false, ptr %18, align 1
  %85 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 7
  %86 = getelementptr inbounds [4 x %"class.juce::ScopedPointer.169"], ptr %85, i64 0, i64 3
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6SliderEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef %81)
          to label %88 unwind label %151

88:                                               ; preds = %84
  %89 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %87) #8
  invoke void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %20, ptr noundef %89, i32 noundef -1)
          to label %90 unwind label %151

90:                                               ; preds = %88
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %91 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 7
  %92 = getelementptr inbounds [4 x %"class.juce::ScopedPointer.169"], ptr %91, i64 0, i64 3
  %93 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %92) #8
  %94 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 11
  %95 = load i32, ptr %94, align 8, !tbaa !13
  %96 = and i32 %95, 1
  %97 = icmp ne i32 %96, 0
  %98 = load ptr, ptr %93, align 8, !tbaa !11
  %99 = getelementptr inbounds ptr, ptr %98, i64 11
  %100 = load ptr, ptr %99, align 8
  invoke void %100(ptr noundef nonnull align 8 dereferenceable(197) %93, i1 noundef zeroext %97)
          to label %101 unwind label %107

101:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 4, ptr %19, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %166, %101
  %103 = load i32, ptr %19, align 4, !tbaa !9
  %104 = add nsw i32 %103, -1
  store i32 %104, ptr %19, align 4, !tbaa !9
  %105 = icmp sge i32 %104, 0
  br i1 %105, label %159, label %106

106:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %171

107:                                              ; preds = %208, %197, %194, %189, %187, %184, %177, %90, %80, %70, %60, %50, %44
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %9, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %10, align 4
  br label %210

111:                                              ; preds = %52
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %9, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %10, align 4
  br label %119

115:                                              ; preds = %58, %54, %53
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %9, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %10, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br label %119

119:                                              ; preds = %115, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  %120 = load i1, ptr %12, align 1
  br i1 %120, label %121, label %122

121:                                              ; preds = %119
  call void @_ZdlPvm(ptr noundef %51, i64 noundef 224) #10
  br label %122

122:                                              ; preds = %121, %119
  br label %210

123:                                              ; preds = %62
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %9, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %10, align 4
  br label %131

127:                                              ; preds = %68, %64, %63
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %9, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %10, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %131

131:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %132 = load i1, ptr %14, align 1
  br i1 %132, label %133, label %134

133:                                              ; preds = %131
  call void @_ZdlPvm(ptr noundef %61, i64 noundef 224) #10
  br label %134

134:                                              ; preds = %133, %131
  br label %210

135:                                              ; preds = %72
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %9, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %10, align 4
  br label %143

139:                                              ; preds = %78, %74, %73
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %9, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %10, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br label %143

143:                                              ; preds = %139, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %144 = load i1, ptr %16, align 1
  br i1 %144, label %145, label %146

145:                                              ; preds = %143
  call void @_ZdlPvm(ptr noundef %71, i64 noundef 224) #10
  br label %146

146:                                              ; preds = %145, %143
  br label %210

147:                                              ; preds = %82
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %9, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %10, align 4
  br label %155

151:                                              ; preds = %88, %84, %83
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %9, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %10, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br label %155

155:                                              ; preds = %151, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %156 = load i1, ptr %18, align 1
  br i1 %156, label %157, label %158

157:                                              ; preds = %155
  call void @_ZdlPvm(ptr noundef %81, i64 noundef 224) #10
  br label %158

158:                                              ; preds = %157, %155
  br label %210

159:                                              ; preds = %102
  %160 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 7
  %161 = load i32, ptr %19, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [4 x %"class.juce::ScopedPointer.169"], ptr %160, i64 0, i64 %162
  %164 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %163) #8
  %165 = getelementptr inbounds i8, ptr %20, i64 256
  invoke void @_ZN4juce6Slider11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(224) %164, ptr noundef %165)
          to label %166 unwind label %167

166:                                              ; preds = %159
  br label %102, !llvm.loop !58

167:                                              ; preds = %159
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %9, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %210

171:                                              ; preds = %106
  br label %172

172:                                              ; preds = %171, %45
  %173 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 11
  %174 = load i32, ptr %173, align 8, !tbaa !13
  %175 = and i32 %174, 8
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %208

177:                                              ; preds = %172
  %178 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 456) #9
          to label %179 unwind label %107

179:                                              ; preds = %177
  %180 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 4
  %181 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 5
  %182 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 6
  %183 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN4juce14ColourSelector15ColourSpaceViewC2ERS0_RfS3_S3_i(ptr noundef nonnull align 8 dereferenceable(456) %178, ptr noundef nonnull align 8 dereferenceable(376) %20, ptr noundef nonnull align 4 dereferenceable(4) %180, ptr noundef nonnull align 4 dereferenceable(4) %181, ptr noundef nonnull align 4 dereferenceable(4) %182, i32 noundef %183)
          to label %184 unwind label %200

184:                                              ; preds = %179
  %185 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 8
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_14ColourSelector15ColourSpaceViewEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %185, ptr noundef %178)
          to label %187 unwind label %107

187:                                              ; preds = %184
  %188 = call noundef ptr @_ZNK4juce13ScopedPointerINS_14ColourSelector15ColourSpaceViewEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %186) #8
  invoke void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %20, ptr noundef %188, i32 noundef -1)
          to label %189 unwind label %107

189:                                              ; preds = %187
  %190 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 424) #9
          to label %191 unwind label %107

191:                                              ; preds = %189
  %192 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 4
  %193 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN4juce14ColourSelector15HueSelectorCompC2ERS0_Rfi(ptr noundef nonnull align 8 dereferenceable(420) %190, ptr noundef nonnull align 8 dereferenceable(376) %20, ptr noundef nonnull align 4 dereferenceable(4) %192, i32 noundef %193)
          to label %194 unwind label %204

194:                                              ; preds = %191
  %195 = getelementptr inbounds %"class.juce::ColourSelector", ptr %20, i32 0, i32 9
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_14ColourSelector15HueSelectorCompEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef %190)
          to label %197 unwind label %107

197:                                              ; preds = %194
  %198 = call noundef ptr @_ZNK4juce13ScopedPointerINS_14ColourSelector15HueSelectorCompEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %196) #8
  invoke void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %20, ptr noundef %198, i32 noundef -1)
          to label %199 unwind label %107

199:                                              ; preds = %197
  br label %208

200:                                              ; preds = %179
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %9, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %178, i64 noundef 456) #10
  br label %210

204:                                              ; preds = %191
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %9, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %190, i64 noundef 424) #10
  br label %210

208:                                              ; preds = %199, %172
  invoke void @_ZN4juce14ColourSelector6updateENS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(376) %20, i32 noundef 0)
          to label %209 unwind label %107

209:                                              ; preds = %208
  ret void

210:                                              ; preds = %204, %200, %167, %158, %146, %134, %122, %107
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %41) #8
  call void @_ZN4juce10OwnedArrayINS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %36) #8
  call void @_ZN4juce13ScopedPointerINS_14ColourSelector15HueSelectorCompEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  call void @_ZN4juce13ScopedPointerINS_14ColourSelector15ColourSpaceViewEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  %211 = getelementptr inbounds [4 x %"class.juce::ScopedPointer.169"], ptr %26, i32 0, i32 0
  %212 = getelementptr inbounds %"class.juce::ScopedPointer.169", ptr %211, i64 4
  br label %213

213:                                              ; preds = %213, %210
  %214 = phi ptr [ %212, %210 ], [ %215, %213 ]
  %215 = getelementptr inbounds %"class.juce::ScopedPointer.169", ptr %214, i64 -1
  call void @_ZN4juce13ScopedPointerINS_6SliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %215) #8
  %216 = icmp eq ptr %215, %211
  br i1 %216, label %217, label %213

217:                                              ; preds = %213
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %25) #8
  %218 = getelementptr inbounds i8, ptr %20, i64 256
  call void @_ZN4juce6Slider8ListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %218) #8
  %219 = getelementptr inbounds i8, ptr %20, i64 200
  call void @_ZN4juce17ChangeBroadcasterD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %219) #8
  call void @_ZN4juce9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(197) %20) #8
  br label %220

220:                                              ; preds = %217
  %221 = load ptr, ptr %9, align 8
  %222 = load i32, ptr %10, align 4
  %223 = insertvalue { ptr, i32 } poison, ptr %221, 0
  %224 = insertvalue { ptr, i32 } %223, i32 %222, 1
  resume { ptr, i32 } %224
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce10OwnedArrayINS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEEC2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce14ColourSelector21ColourComponentSliderC2ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

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

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

declare void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, i32 noundef) #2

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

declare void @_ZN4juce6Slider11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef) #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce10OwnedArrayINS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 #5 = { 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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 352}
!14 = !{!"_ZTSN4juce14ColourSelectorE", !15, i64 0, !40, i64 200, !48, i64 256, !49, i64 264, !51, i64 268, !51, i64 272, !51, i64 276, !7, i64 280, !52, i64 312, !53, i64 320, !54, i64 328, !10, i64 352, !10, i64 356, !19, i64 360}
!15 = !{!"_ZTSN4juce9ComponentE", !16, i64 0, !17, i64 8, !17, i64 16, !6, i64 24, !19, i64 32, !21, i64 48, !22, i64 56, !23, i64 64, !6, i64 88, !26, i64 96, !6, i64 104, !27, i64 112, !28, i64 120, !29, i64 128, !30, i64 136, !34, i64 160, !38, i64 184, !7, i64 192, !7, i64 196}
!16 = !{!"_ZTSN4juce13MouseListenerE"}
!17 = !{!"_ZTSN4juce6StringE", !18, i64 0}
!18 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!19 = !{!"_ZTSN4juce9RectangleIiEE", !20, i64 0, !10, i64 8, !10, i64 12}
!20 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!23 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !24, i64 0, !10, i64 16}
!24 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !25, i64 0, !10, i64 8}
!25 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!26 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!29 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!30 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !10, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !33, i64 0, !10, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!34 = !{!"_ZTSN4juce13NamedValueSetE", !35, i64 0}
!35 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !36, i64 0, !10, i64 16}
!36 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !37, i64 0, !10, i64 8}
!37 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!38 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !39, i64 0}
!39 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!40 = !{!"_ZTSN4juce17ChangeBroadcasterE", !41, i64 8, !44, i64 32}
!41 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !42, i64 0, !6, i64 16}
!42 = !{!"_ZTSN4juce12AsyncUpdaterE", !43, i64 8}
!43 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!44 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !45, i64 0}
!45 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !46, i64 0, !10, i64 16}
!46 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !47, i64 0, !10, i64 8}
!47 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !6, i64 0}
!48 = !{!"_ZTSN4juce6Slider8ListenerE"}
!49 = !{!"_ZTSN4juce6ColourE", !50, i64 0}
!50 = !{!"_ZTSN4juce9PixelARGBE", !7, i64 0}
!51 = !{!"float", !7, i64 0}
!52 = !{!"_ZTSN4juce13ScopedPointerINS_14ColourSelector15ColourSpaceViewEEE", !6, i64 0}
!53 = !{!"_ZTSN4juce13ScopedPointerINS_14ColourSelector15HueSelectorCompEEE", !6, i64 0}
!54 = !{!"_ZTSN4juce10OwnedArrayINS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEEE", !55, i64 0, !10, i64 16}
!55 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEEE", !56, i64 0, !10, i64 8}
!56 = !{!"_ZTSN4juce9HeapBlockIPNS_14ColourSelector15SwatchComponentELb0EEE", !6, i64 0}
!57 = !{!14, !10, i64 356}
!58 = distinct !{!58, !59}
!59 = !{!"llvm.loop.mustprogress"}


; 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::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.92 }
%union.anon.92 = type { i32 }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ScopedPointer.169" = type { ptr }

@_ZTVN4juce14ColourSelectorE = external dso_local unnamed_addr constant { [51 x ptr], [4 x ptr], [7 x ptr] }, align 8
@_ZN4juce7Colours5whiteE = external global %"class.juce::Colour", align 1
@.str.46 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind
declare void @_ZN4juce17ChangeBroadcasterC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #0

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

; Function Attrs: nounwind
declare void @_ZN4juce17ChangeBroadcasterD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

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

declare void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14ColourSelectorC2Eiii(ptr noundef nonnull align 8 dereferenceable(376) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.juce::String", align 8
  %6 = alloca %"class.juce::String", align 8
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca %"class.juce::String", align 8
  tail call void @_ZN4juce9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(197) %0) #8
  %9 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZN4juce17ChangeBroadcasterC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  %10 = getelementptr inbounds i8, ptr %0, i64 256
  tail call void @_ZN4juce6Slider8ListenerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  store ptr getelementptr inbounds inrange(-16, 392) (i8, ptr @_ZTVN4juce14ColourSelectorE, i64 16), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN4juce14ColourSelectorE, i64 424), ptr %9, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN4juce14ColourSelectorE, i64 456), ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 264
  tail call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE) #8
  %.ptr = getelementptr inbounds i8, ptr %0, i64 280
  tail call void @_ZN4juce13ScopedPointerINS_6SliderEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr) #8
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 288
  tail call void @_ZN4juce13ScopedPointerINS_6SliderEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1) #8
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 296
  tail call void @_ZN4juce13ScopedPointerINS_6SliderEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2) #8
  %.ptr.3 = getelementptr inbounds i8, ptr %0, i64 304
  tail call void @_ZN4juce13ScopedPointerINS_6SliderEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.3) #8
  %12 = getelementptr inbounds i8, ptr %0, i64 312
  tail call void @_ZN4juce13ScopedPointerINS_14ColourSelector15ColourSpaceViewEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %13 = getelementptr inbounds i8, ptr %0, i64 320
  tail call void @_ZN4juce13ScopedPointerINS_14ColourSelector15HueSelectorCompEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %14 = getelementptr inbounds i8, ptr %0, i64 328
  tail call void @_ZN4juce10OwnedArrayINS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEEC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %14) #8
  %15 = getelementptr inbounds i8, ptr %0, i64 352
  store i32 %1, ptr %15, align 8, !tbaa !8
  %16 = getelementptr inbounds i8, ptr %0, i64 356
  store i32 %2, ptr %16, align 4, !tbaa !55
  %17 = getelementptr inbounds i8, ptr %0, i64 360
  tail call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %17) #8
  tail call void @_ZN4juce14ColourSelector9updateHSVEv(ptr noundef nonnull align 8 dereferenceable(376) %0)
  %18 = load i32, ptr %15, align 8, !tbaa !8
  %19 = and i32 %18, 4
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %.loopexit, label %20

20:                                               ; preds = %4
  %21 = invoke noalias noundef nonnull dereferenceable(224) ptr @_Znwm(i64 noundef 224) #9
          to label %22 unwind label %60

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %5, ptr noundef nonnull @.str.46)
          to label %23 unwind label %.thread

23:                                               ; preds = %22
  invoke void @_ZN4juce14ColourSelector21ColourComponentSliderC2ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(224) %21, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %25 unwind label %.thread48

.thread48:                                        ; preds = %23
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %65

25:                                               ; preds = %23
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6SliderEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr, ptr noundef nonnull %21)
  %27 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  invoke void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %27, i32 noundef -1)
          to label %28 unwind label %63

28:                                               ; preds = %25
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %29 = invoke noalias noundef nonnull dereferenceable(224) ptr @_Znwm(i64 noundef 224) #9
          to label %30 unwind label %60

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %6, ptr noundef nonnull @.str.47)
          to label %31 unwind label %.thread50

31:                                               ; preds = %30
  invoke void @_ZN4juce14ColourSelector21ColourComponentSliderC2ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(224) %29, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %33 unwind label %.thread54

.thread54:                                        ; preds = %31
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %69

33:                                               ; preds = %31
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6SliderEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1, ptr noundef nonnull %29)
  %35 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  invoke void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %35, i32 noundef -1)
          to label %36 unwind label %67

36:                                               ; preds = %33
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %37 = invoke noalias noundef nonnull dereferenceable(224) ptr @_Znwm(i64 noundef 224) #9
          to label %38 unwind label %60

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.48)
          to label %39 unwind label %.thread56

39:                                               ; preds = %38
  invoke void @_ZN4juce14ColourSelector21ColourComponentSliderC2ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(224) %37, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %41 unwind label %.thread60

.thread60:                                        ; preds = %39
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %73

41:                                               ; preds = %39
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6SliderEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2, ptr noundef nonnull %37)
  %43 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  invoke void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %43, i32 noundef -1)
          to label %44 unwind label %71

44:                                               ; preds = %41
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %45 = invoke noalias noundef nonnull dereferenceable(224) ptr @_Znwm(i64 noundef 224) #9
          to label %46 unwind label %60

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %8, ptr noundef nonnull @.str.49)
          to label %47 unwind label %.thread62

47:                                               ; preds = %46
  invoke void @_ZN4juce14ColourSelector21ColourComponentSliderC2ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(224) %45, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %49 unwind label %.thread66

.thread66:                                        ; preds = %47
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %77

49:                                               ; preds = %47
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6SliderEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.3, ptr noundef nonnull %45)
  %51 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #8
  invoke void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %51, i32 noundef -1)
          to label %52 unwind label %75

52:                                               ; preds = %49
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  %53 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.3) #8
  %54 = load i32, ptr %15, align 8, !tbaa !8
  %55 = and i32 %54, 1
  %56 = icmp ne i32 %55, 0
  %57 = load ptr, ptr %53, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 88
  %59 = load ptr, ptr %58, align 8
  invoke void %59(ptr noundef nonnull align 8 dereferenceable(197) %53, i1 noundef zeroext %56)
          to label %.preheader unwind label %60

.preheader:                                       ; preds = %52, %78
  %indvars.iv = phi i64 [ %indvars.iv.next, %78 ], [ 4, %52 ]
  %.not69 = icmp eq i64 %indvars.iv, 0
  br i1 %.not69, label %.loopexit.loopexit, label %78

60:                                               ; preds = %104, %97, %94, %91, %85, %52, %44, %36, %28, %20
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %106

.thread:                                          ; preds = %22
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %65

63:                                               ; preds = %25
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %106

65:                                               ; preds = %.thread48, %.thread
  %.pn47 = phi { ptr, i32 } [ %62, %.thread ], [ %24, %.thread48 ]
  call void @_ZdlPvm(ptr noundef nonnull %21, i64 noundef 224) #10
  br label %106

.thread50:                                        ; preds = %30
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %69

67:                                               ; preds = %33
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %106

69:                                               ; preds = %.thread54, %.thread50
  %.pn3153 = phi { ptr, i32 } [ %66, %.thread50 ], [ %32, %.thread54 ]
  call void @_ZdlPvm(ptr noundef nonnull %29, i64 noundef 224) #10
  br label %106

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

71:                                               ; preds = %41
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %106

73:                                               ; preds = %.thread60, %.thread56
  %.pn3359 = phi { ptr, i32 } [ %70, %.thread56 ], [ %40, %.thread60 ]
  call void @_ZdlPvm(ptr noundef nonnull %37, i64 noundef 224) #10
  br label %106

.thread62:                                        ; preds = %46
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %77

75:                                               ; preds = %49
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %106

77:                                               ; preds = %.thread66, %.thread62
  %.pn3565 = phi { ptr, i32 } [ %74, %.thread62 ], [ %48, %.thread66 ]
  call void @_ZdlPvm(ptr noundef nonnull %45, i64 noundef 224) #10
  br label %106

78:                                               ; preds = %.preheader
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %79 = getelementptr inbounds [4 x %"class.juce::ScopedPointer.169"], ptr %.ptr, i64 0, i64 %indvars.iv.next
  %80 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6SliderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %79) #8
  invoke void @_ZN4juce6Slider11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(224) %80, ptr noundef nonnull %10)
          to label %.preheader unwind label %81, !llvm.loop !56

81:                                               ; preds = %78
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %106

.loopexit.loopexit:                               ; preds = %.preheader
  %.pre = load i32, ptr %15, align 8, !tbaa !8
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %4
  %83 = phi i32 [ %.pre, %.loopexit.loopexit ], [ %18, %4 ]
  %84 = and i32 %83, 8
  %.not37 = icmp eq i32 %84, 0
  br i1 %.not37, label %104, label %85

85:                                               ; preds = %.loopexit
  %86 = invoke noalias noundef nonnull dereferenceable(456) ptr @_Znwm(i64 noundef 456) #9
          to label %87 unwind label %60

87:                                               ; preds = %85
  %88 = getelementptr inbounds i8, ptr %0, i64 268
  %89 = getelementptr inbounds i8, ptr %0, i64 272
  %90 = getelementptr inbounds i8, ptr %0, i64 276
  invoke void @_ZN4juce14ColourSelector15ColourSpaceViewC2ERS0_RfS3_S3_i(ptr noundef nonnull align 8 dereferenceable(456) %86, ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef nonnull align 4 dereferenceable(4) %88, ptr noundef nonnull align 4 dereferenceable(4) %89, ptr noundef nonnull align 4 dereferenceable(4) %90, i32 noundef %3)
          to label %91 unwind label %100

91:                                               ; preds = %87
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_14ColourSelector15ColourSpaceViewEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %86)
  %93 = call noundef ptr @_ZNK4juce13ScopedPointerINS_14ColourSelector15ColourSpaceViewEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %92) #8
  invoke void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %93, i32 noundef -1)
          to label %94 unwind label %60

94:                                               ; preds = %91
  %95 = invoke noalias noundef nonnull dereferenceable(424) ptr @_Znwm(i64 noundef 424) #9
          to label %96 unwind label %60

96:                                               ; preds = %94
  invoke void @_ZN4juce14ColourSelector15HueSelectorCompC2ERS0_Rfi(ptr noundef nonnull align 8 dereferenceable(420) %95, ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef nonnull align 4 dereferenceable(4) %88, i32 noundef %3)
          to label %97 unwind label %102

97:                                               ; preds = %96
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_14ColourSelector15HueSelectorCompEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull %95)
  %99 = call noundef ptr @_ZNK4juce13ScopedPointerINS_14ColourSelector15HueSelectorCompEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %98) #8
  invoke void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %99, i32 noundef -1)
          to label %104 unwind label %60

100:                                              ; preds = %87
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %86, i64 noundef 456) #10
  br label %106

102:                                              ; preds = %96
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %95, i64 noundef 424) #10
  br label %106

104:                                              ; preds = %97, %.loopexit
  invoke void @_ZN4juce14ColourSelector6updateENS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(376) %0, i32 noundef 0)
          to label %105 unwind label %60

105:                                              ; preds = %104
  ret void

106:                                              ; preds = %75, %71, %67, %63, %77, %73, %69, %65, %102, %100, %81, %60
  %.pn38 = phi { ptr, i32 } [ %82, %81 ], [ %61, %60 ], [ %103, %102 ], [ %101, %100 ], [ %.pn3565, %77 ], [ %76, %75 ], [ %.pn3359, %73 ], [ %72, %71 ], [ %.pn3153, %69 ], [ %68, %67 ], [ %.pn47, %65 ], [ %64, %63 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %17) #8
  call void @_ZN4juce10OwnedArrayINS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %14) #8
  call void @_ZN4juce13ScopedPointerINS_14ColourSelector15HueSelectorCompEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @_ZN4juce13ScopedPointerINS_14ColourSelector15ColourSpaceViewEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @_ZN4juce13ScopedPointerINS_6SliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.3) #8
  call void @_ZN4juce13ScopedPointerINS_6SliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2) #8
  call void @_ZN4juce13ScopedPointerINS_6SliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1) #8
  call void @_ZN4juce13ScopedPointerINS_6SliderEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr) #8
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #8
  call void @_ZN4juce6Slider8ListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @_ZN4juce17ChangeBroadcasterD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  call void @_ZN4juce9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(197) %0) #8
  resume { ptr, i32 } %.pn38
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce10OwnedArrayINS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEEC2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce14ColourSelector21ColourComponentSliderC2ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

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

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

declare void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, i32 noundef) local_unnamed_addr #2

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

declare void @_ZN4juce6Slider11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce10OwnedArrayINS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 #5 = { 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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !18, i64 352}
!9 = !{!"_ZTSN4juce14ColourSelectorE", !10, i64 0, !38, i64 200, !46, i64 256, !47, i64 264, !49, i64 268, !49, i64 272, !49, i64 276, !15, i64 280, !50, i64 312, !51, i64 320, !52, i64 328, !18, i64 352, !18, i64 356, !16, i64 360}
!10 = !{!"_ZTSN4juce9ComponentE", !11, i64 0, !12, i64 8, !12, i64 16, !14, i64 24, !16, i64 32, !19, i64 48, !20, i64 56, !21, i64 64, !14, i64 88, !24, i64 96, !14, i64 104, !25, i64 112, !26, i64 120, !27, i64 128, !28, i64 136, !32, i64 160, !36, i64 184, !15, i64 192, !15, i64 196}
!11 = !{!"_ZTSN4juce13MouseListenerE"}
!12 = !{!"_ZTSN4juce6StringE", !13, i64 0}
!13 = !{!"_ZTSN4juce16CharPointer_UTF8E", !14, i64 0}
!14 = !{!"any pointer", !15, i64 0}
!15 = !{!"omnipotent char", !7, i64 0}
!16 = !{!"_ZTSN4juce9RectangleIiEE", !17, i64 0, !18, i64 8, !18, i64 12}
!17 = !{!"_ZTSN4juce5PointIiEE", !18, i64 0, !18, i64 4}
!18 = !{!"int", !15, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !14, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !14, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !18, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !18, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !14, i64 0}
!24 = !{!"_ZTSN4juce11MouseCursorE", !14, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !14, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !14, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !14, i64 0}
!28 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !18, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !18, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !14, i64 0}
!32 = !{!"_ZTSN4juce13NamedValueSetE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !18, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !35, i64 0, !18, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !14, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !14, i64 0}
!38 = !{!"_ZTSN4juce17ChangeBroadcasterE", !39, i64 8, !42, i64 32}
!39 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !40, i64 0, !14, i64 16}
!40 = !{!"_ZTSN4juce12AsyncUpdaterE", !41, i64 8}
!41 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !14, i64 0}
!42 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !43, i64 0}
!43 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !44, i64 0, !18, i64 16}
!44 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !45, i64 0, !18, i64 8}
!45 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !14, i64 0}
!46 = !{!"_ZTSN4juce6Slider8ListenerE"}
!47 = !{!"_ZTSN4juce6ColourE", !48, i64 0}
!48 = !{!"_ZTSN4juce9PixelARGBE", !15, i64 0}
!49 = !{!"float", !15, i64 0}
!50 = !{!"_ZTSN4juce13ScopedPointerINS_14ColourSelector15ColourSpaceViewEEE", !14, i64 0}
!51 = !{!"_ZTSN4juce13ScopedPointerINS_14ColourSelector15HueSelectorCompEEE", !14, i64 0}
!52 = !{!"_ZTSN4juce10OwnedArrayINS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEEE", !53, i64 0, !18, i64 16}
!53 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ColourSelector15SwatchComponentENS_20DummyCriticalSectionEEE", !54, i64 0, !18, i64 8}
!54 = !{!"_ZTSN4juce9HeapBlockIPNS_14ColourSelector15SwatchComponentELb0EEE", !14, i64 0}
!55 = !{!9, !18, i64 356}
!56 = distinct !{!56, !57}
!57 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass