; 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::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }
%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::DrawableShape::RelativeFillType" = type { %"class.juce::FillType", %"class.juce::RelativePoint", %"class.juce::RelativePoint", %"class.juce::RelativePoint" }
%"class.juce::FillType" = type { %"class.juce::Colour", %"class.juce::ScopedPointer.198", %"class.juce::Image", %"class.juce::AffineTransform" }
%"class.juce::ScopedPointer.198" = type { ptr }
%"class.juce::Image" = type { %"class.juce::ReferenceCountedObjectPtr.48" }
%"class.juce::ReferenceCountedObjectPtr.48" = type { ptr }
%"class.juce::AffineTransform" = type { float, float, float, float, float, float }
%"class.juce::RelativePoint" = type { %"class.juce::RelativeCoordinate", %"class.juce::RelativeCoordinate" }
%"class.juce::RelativeCoordinate" = type { %"class.juce::Expression" }
%"class.juce::Expression" = type { %"class.juce::ReferenceCountedObjectPtr.59" }
%"class.juce::ReferenceCountedObjectPtr.59" = type { ptr }
%"class.juce::ColourGradient" = type { %"class.juce::Point.35", %"class.juce::Point.35", i8, [7 x i8], %"class.juce::Array.207" }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Array.207" = type { %"class.juce::ArrayAllocationBase.208", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.208" = type <{ %"class.juce::HeapBlock.209", i32, [4 x i8] }>
%"class.juce::HeapBlock.209" = type { ptr }

@.str.48 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZN4juce13DrawableShape18FillAndStrokeState4typeE = external dso_local global %"class.juce::Identifier", align 8
@.str.84 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZN4juce13DrawableShape18FillAndStrokeState6colourE = external dso_local global %"class.juce::Identifier", align 8
@.str.85 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint1E = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint2E = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint3E = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState6radialE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState7coloursE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState7imageIdE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState12imageOpacityE = external dso_local global %"class.juce::Identifier", align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce6Colour7getARGBEv(ptr noundef nonnull align 1 dereferenceable(4)) #0

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringEc(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: nounwind
declare void @_ZN4juce3varC1Eb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) unnamed_addr #0

declare void @_ZN4juce9ValueTree14removePropertyERKNS_10IdentifierEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce13RelativePoint8toStringEv(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: nounwind
declare void @_ZN4juce3varC1Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8FillType10isGradientEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce13DrawableShape16RelativeFillType7writeToERNS_9ValueTreeEPNS_16ComponentBuilder13ImageProviderEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, ptr noundef %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.juce::var", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.juce::var", align 8
  %13 = alloca %"class.juce::String", align 8
  %14 = alloca %"class.juce::var", align 8
  %15 = alloca %"class.juce::var", align 8
  %16 = alloca %"class.juce::String", align 8
  %17 = alloca %"class.juce::var", align 8
  %18 = alloca %"class.juce::String", align 8
  %19 = alloca %"class.juce::var", align 8
  %20 = alloca %"class.juce::String", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.juce::var", align 8
  %23 = alloca %"class.juce::String", align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.juce::String", align 8
  %26 = alloca %"class.juce::Colour", align 1
  %27 = alloca %"class.juce::var", align 8
  %28 = alloca %"class.juce::String", align 8
  %29 = alloca %"class.juce::var", align 8
  %30 = alloca %"class.juce::var", align 8
  %31 = alloca %"class.juce::var", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8
  %33 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 0
  %34 = call noundef zeroext i1 @_ZNK4juce8FillType8isColourEv(ptr noundef nonnull align 8 dereferenceable(48) %33) #6
  br i1 %34, label %35, label %61

35:                                               ; preds = %4
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @_ZN4juce3varC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @.str.84)
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState4typeE, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %37)
          to label %39 unwind label %48

39:                                               ; preds = %35
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %41 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 0
  %42 = getelementptr inbounds %"class.juce::FillType", ptr %41, i32 0, i32 0
  %43 = call noundef i32 @_ZNK4juce6Colour7getARGBEv(ptr noundef nonnull align 1 dereferenceable(4) %42) #6
  call void @_ZN4juce6String11toHexStringEi(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %13, i32 noundef %43)
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %44 unwind label %52

44:                                               ; preds = %39
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState6colourE, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %45)
          to label %47 unwind label %56

47:                                               ; preds = %44
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %249

48:                                               ; preds = %35
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %10, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %250

52:                                               ; preds = %39
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %10, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %11, align 4
  br label %60

56:                                               ; preds = %44
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %10, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %60

60:                                               ; preds = %56, %52
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %250

61:                                               ; preds = %4
  %62 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 0
  %63 = call noundef zeroext i1 @_ZNK4juce8FillType10isGradientEv(ptr noundef nonnull align 8 dereferenceable(48) %62) #6
  br i1 %63, label %64, label %195

64:                                               ; preds = %61
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  call void @_ZN4juce3varC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef @.str.85)
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState4typeE, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %66)
          to label %68 unwind label %104

68:                                               ; preds = %64
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %70 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 1
  call void @_ZNK4juce13RelativePoint8toStringEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %70)
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %71 unwind label %108

71:                                               ; preds = %68
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint1E, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %72)
          to label %74 unwind label %112

74:                                               ; preds = %71
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %76 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 2
  call void @_ZNK4juce13RelativePoint8toStringEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %76)
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %77 unwind label %117

77:                                               ; preds = %74
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %75, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint2E, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef %78)
          to label %80 unwind label %121

80:                                               ; preds = %77
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %82 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 3
  call void @_ZNK4juce13RelativePoint8toStringEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %82)
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %83 unwind label %126

83:                                               ; preds = %80
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %81, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint3E, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef %84)
          to label %86 unwind label %130

86:                                               ; preds = %83
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %87 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 0
  %88 = getelementptr inbounds %"class.juce::FillType", ptr %87, i32 0, i32 1
  %89 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK4juce13ScopedPointerINS_14ColourGradientEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %88) #6
  store ptr %89, ptr %21, align 8, !tbaa !5
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %91 = load ptr, ptr %21, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.juce::ColourGradient", ptr %91, i32 0, i32 2
  %93 = load i8, ptr %92, align 8, !tbaa !9, !range !18, !noundef !19
  %94 = trunc i8 %93 to i1
  call void @_ZN4juce3varC1Eb(ptr noundef nonnull align 8 dereferenceable(16) %22, i1 noundef zeroext %94) #6
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %90, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState6radialE, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef %95)
          to label %97 unwind label %135

97:                                               ; preds = %86
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !20
  br label %98

98:                                               ; preds = %155, %97
  %99 = load i32, ptr %24, align 4, !tbaa !20
  %100 = load ptr, ptr %21, align 8, !tbaa !5
  %101 = call noundef i32 @_ZNK4juce14ColourGradient13getNumColoursEv(ptr noundef nonnull align 8 dereferenceable(48) %100) #6
  %102 = icmp slt i32 %99, %101
  br i1 %102, label %139, label %103

103:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %172

104:                                              ; preds = %64
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %10, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  br label %250

108:                                              ; preds = %68
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %10, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %11, align 4
  br label %116

112:                                              ; preds = %71
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %10, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %116

116:                                              ; preds = %112, %108
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %250

117:                                              ; preds = %74
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %10, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %11, align 4
  br label %125

121:                                              ; preds = %77
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %10, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br label %125

125:                                              ; preds = %121, %117
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %250

126:                                              ; preds = %80
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %10, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %11, align 4
  br label %134

130:                                              ; preds = %83
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %10, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  br label %134

134:                                              ; preds = %130, %126
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %250

135:                                              ; preds = %86
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %10, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %194

139:                                              ; preds = %98
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringEc(ptr noundef nonnull align 8 dereferenceable(8) %23, i8 noundef signext 32)
          to label %141 unwind label %158

141:                                              ; preds = %139
  %142 = load ptr, ptr %21, align 8, !tbaa !5
  %143 = load i32, ptr %24, align 4, !tbaa !20
  %144 = call noundef double @_ZNK4juce14ColourGradient17getColourPositionEi(ptr noundef nonnull align 8 dereferenceable(48) %142, i32 noundef %143) #6
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringEd(ptr noundef nonnull align 8 dereferenceable(8) %140, double noundef %144)
          to label %146 unwind label %158

146:                                              ; preds = %141
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringEc(ptr noundef nonnull align 8 dereferenceable(8) %145, i8 noundef signext 32)
          to label %148 unwind label %158

148:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %149 = load ptr, ptr %21, align 8, !tbaa !5
  %150 = load i32, ptr %24, align 4, !tbaa !20
  call void @_ZNK4juce14ColourGradient9getColourEi(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %26, ptr noundef nonnull align 8 dereferenceable(48) %149, i32 noundef %150) #6
  %151 = call noundef i32 @_ZNK4juce6Colour7getARGBEv(ptr noundef nonnull align 1 dereferenceable(4) %26) #6
  invoke void @_ZN4juce6String11toHexStringEi(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %25, i32 noundef %151)
          to label %152 unwind label %162

152:                                              ; preds = %148
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %154 unwind label %166

154:                                              ; preds = %152
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %24, align 4, !tbaa !20
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %24, align 4, !tbaa !20
  br label %98, !llvm.loop !21

158:                                              ; preds = %146, %141, %139
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %10, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %11, align 4
  br label %171

162:                                              ; preds = %148
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %10, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %11, align 4
  br label %170

166:                                              ; preds = %152
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %10, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %11, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  br label %170

170:                                              ; preds = %166, %162
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %171

171:                                              ; preds = %170, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %193

172:                                              ; preds = %103
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  invoke void @_ZNK4juce6String9trimStartEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %28, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %174 unwind label %179

174:                                              ; preds = %172
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %175 unwind label %183

175:                                              ; preds = %174
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %173, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState7coloursE, ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef %176)
          to label %178 unwind label %187

178:                                              ; preds = %175
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %248

179:                                              ; preds = %172
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %10, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %11, align 4
  br label %192

183:                                              ; preds = %174
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %10, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %11, align 4
  br label %191

187:                                              ; preds = %175
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %10, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  br label %191

191:                                              ; preds = %187, %183
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  br label %192

192:                                              ; preds = %191, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %193

193:                                              ; preds = %192, %171
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %194

194:                                              ; preds = %193, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %250

195:                                              ; preds = %61
  %196 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 0
  %197 = call noundef zeroext i1 @_ZNK4juce8FillType12isTiledImageEv(ptr noundef nonnull align 8 dereferenceable(48) %196) #6
  br i1 %197, label %198, label %244

198:                                              ; preds = %195
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  call void @_ZN4juce3varC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef @.str.48)
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %199, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState4typeE, ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %200)
          to label %202 unwind label %216

202:                                              ; preds = %198
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %224

205:                                              ; preds = %202
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 0
  %209 = getelementptr inbounds %"class.juce::FillType", ptr %208, i32 0, i32 2
  %210 = load ptr, ptr %207, align 8, !tbaa !23
  %211 = getelementptr inbounds ptr, ptr %210, i64 3
  %212 = load ptr, ptr %211, align 8
  call void %212(ptr dead_on_unwind writable sret(%"class.juce::var") align 8 %30, ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef nonnull align 8 dereferenceable(8) %209)
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %206, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState7imageIdE, ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %213)
          to label %215 unwind label %220

215:                                              ; preds = %205
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %224

216:                                              ; preds = %198
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %10, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  br label %250

220:                                              ; preds = %205
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %10, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %250

224:                                              ; preds = %215, %202
  %225 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 0
  %226 = call noundef float @_ZNK4juce8FillType10getOpacityEv(ptr noundef nonnull align 8 dereferenceable(48) %225) #6
  %227 = fcmp olt float %226, 1.000000e+00
  br i1 %227, label %228, label %240

228:                                              ; preds = %224
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  %230 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %32, i32 0, i32 0
  %231 = call noundef float @_ZNK4juce8FillType10getOpacityEv(ptr noundef nonnull align 8 dereferenceable(48) %230) #6
  %232 = fpext float %231 to double
  call void @_ZN4juce3varC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %31, double noundef %232) #6
  %233 = load ptr, ptr %8, align 8, !tbaa !5
  %234 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %229, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState12imageOpacityE, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %233)
          to label %235 unwind label %236

235:                                              ; preds = %228
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %243

236:                                              ; preds = %228
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %10, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %11, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %250

240:                                              ; preds = %224
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4juce9ValueTree14removePropertyERKNS_10IdentifierEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %241, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState12imageOpacityE, ptr noundef %242)
  br label %243

243:                                              ; preds = %240, %235
  br label %247

244:                                              ; preds = %195
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246, %243
  br label %248

248:                                              ; preds = %247, %178
  br label %249

249:                                              ; preds = %248, %47
  ret void

250:                                              ; preds = %236, %220, %216, %194, %134, %125, %116, %104, %60, %48
  %251 = load ptr, ptr %10, align 8
  %252 = load i32, ptr %11, align 4
  %253 = insertvalue { ptr, i32 } poison, ptr %251, 0
  %254 = insertvalue { ptr, i32 } %253, i32 %252, 1
  resume { ptr, i32 } %254
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8FillType8isColourEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce14ColourGradient13getNumColoursEv(ptr noundef nonnull align 8 dereferenceable(48)) #0

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #2

; Function Attrs: nounwind
declare noundef double @_ZNK4juce14ColourGradient17getColourPositionEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #0

; Function Attrs: nounwind
declare void @_ZNK4juce14ColourGradient9getColourEi(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8FillType12isTiledImageEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4juce8FillType10getOpacityEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

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 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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, !13, i64 16}
!10 = !{!"_ZTSN4juce14ColourGradientE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 24}
!11 = !{!"_ZTSN4juce5PointIfEE", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN4juce5ArrayINS_14ColourGradient11ColourPointENS_20DummyCriticalSectionELi0EEE", !15, i64 0, !17, i64 16}
!15 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_14ColourGradient11ColourPointENS_20DummyCriticalSectionEEE", !16, i64 0, !17, i64 8}
!16 = !{!"_ZTSN4juce9HeapBlockINS_14ColourGradient11ColourPointELb0EEE", !6, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!17, !17, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}


; 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::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }
%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }

@.str.48 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZN4juce13DrawableShape18FillAndStrokeState4typeE = external dso_local global %"class.juce::Identifier", align 8
@.str.84 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZN4juce13DrawableShape18FillAndStrokeState6colourE = external dso_local global %"class.juce::Identifier", align 8
@.str.85 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint1E = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint2E = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint3E = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState6radialE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState7coloursE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState7imageIdE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce13DrawableShape18FillAndStrokeState12imageOpacityE = external dso_local global %"class.juce::Identifier", align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) 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

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

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce6Colour7getARGBEv(ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #0

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringEc(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare void @_ZN4juce3varC1Eb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) unnamed_addr #0

declare void @_ZN4juce9ValueTree14removePropertyERKNS_10IdentifierEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce13RelativePoint8toStringEv(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: nounwind
declare void @_ZN4juce3varC1Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8FillType10isGradientEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce13DrawableShape16RelativeFillType7writeToERNS_9ValueTreeEPNS_16ComponentBuilder13ImageProviderEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.juce::var", align 8
  %6 = alloca %"class.juce::var", align 8
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca %"class.juce::var", align 8
  %9 = alloca %"class.juce::var", align 8
  %10 = alloca %"class.juce::String", align 8
  %11 = alloca %"class.juce::var", align 8
  %12 = alloca %"class.juce::String", align 8
  %13 = alloca %"class.juce::var", align 8
  %14 = alloca %"class.juce::String", align 8
  %15 = alloca %"class.juce::var", align 8
  %16 = alloca %"class.juce::String", align 8
  %17 = alloca %"class.juce::String", align 8
  %18 = alloca %"class.juce::Colour", align 1
  %19 = alloca %"class.juce::var", align 8
  %20 = alloca %"class.juce::String", align 8
  %21 = alloca %"class.juce::var", align 8
  %22 = alloca %"class.juce::var", align 8
  %23 = alloca %"class.juce::var", align 8
  %24 = tail call noundef zeroext i1 @_ZNK4juce8FillType8isColourEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br i1 %24, label %25, label %39

25:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN4juce3varC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull @.str.84)
  %26 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState4typeE, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %3)
          to label %27 unwind label %32

27:                                               ; preds = %25
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %28 = call noundef i32 @_ZNK4juce6Colour7getARGBEv(ptr noundef nonnull align 1 dereferenceable(4) %0) #6
  call void @_ZN4juce6String11toHexStringEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, i32 noundef %28)
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %29 unwind label %34

29:                                               ; preds = %27
  %30 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState6colourE, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %3)
          to label %31 unwind label %36

31:                                               ; preds = %29
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %145

32:                                               ; preds = %25
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %146

34:                                               ; preds = %27
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %38

36:                                               ; preds = %29
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %38

38:                                               ; preds = %36, %34
  %.pn62 = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %146

39:                                               ; preds = %4
  %40 = tail call noundef zeroext i1 @_ZNK4juce8FillType10isGradientEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br i1 %40, label %41, label %118

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @_ZN4juce3varC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull @.str.85)
  %42 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState4typeE, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %3)
          to label %43 unwind label %65

43:                                               ; preds = %41
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %44 = getelementptr inbounds i8, ptr %0, i64 48
  call void @_ZNK4juce13RelativePoint8toStringEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %44)
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %45 unwind label %67

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint1E, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %3)
          to label %47 unwind label %69

47:                                               ; preds = %45
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %48 = getelementptr inbounds i8, ptr %0, i64 64
  call void @_ZNK4juce13RelativePoint8toStringEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %48)
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %49 unwind label %72

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint2E, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %3)
          to label %51 unwind label %74

51:                                               ; preds = %49
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %52 = getelementptr inbounds i8, ptr %0, i64 80
  call void @_ZNK4juce13RelativePoint8toStringEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %52)
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %53 unwind label %77

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState14gradientPoint3E, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef %3)
          to label %55 unwind label %79

55:                                               ; preds = %53
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %56 = getelementptr inbounds i8, ptr %0, i64 8
  %57 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK4juce13ScopedPointerINS_14ColourGradientEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %56) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %59 = load i8, ptr %58, align 8, !tbaa !5, !range !17, !noundef !18
  %60 = trunc nuw i8 %59 to i1
  call void @_ZN4juce3varC1Eb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext %60) #6
  %61 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState6radialE, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %3)
          to label %62 unwind label %82

62:                                               ; preds = %55
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  %63 = call noundef i32 @_ZNK4juce14ColourGradient13getNumColoursEv(ptr noundef nonnull align 8 dereferenceable(48) %57) #6
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %94, %62
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  invoke void @_ZNK4juce6String9trimStartEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %105 unwind label %109

65:                                               ; preds = %41
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %146

67:                                               ; preds = %43
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %71

69:                                               ; preds = %45
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %71

71:                                               ; preds = %69, %67
  %.pn = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %146

72:                                               ; preds = %47
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %49
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %76

76:                                               ; preds = %74, %72
  %.pn50 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %146

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

79:                                               ; preds = %53
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %81

81:                                               ; preds = %79, %77
  %.pn52 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %146

82:                                               ; preds = %55
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %146

.lr.ph:                                           ; preds = %62, %94
  %.065 = phi i32 [ %95, %94 ], [ 0, %62 ]
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringEc(ptr noundef nonnull align 8 dereferenceable(8) %16, i8 noundef signext 32)
          to label %85 unwind label %98

85:                                               ; preds = %.lr.ph
  %86 = call noundef double @_ZNK4juce14ColourGradient17getColourPositionEi(ptr noundef nonnull align 8 dereferenceable(48) %57, i32 noundef %.065) #6
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringEd(ptr noundef nonnull align 8 dereferenceable(8) %84, double noundef %86)
          to label %88 unwind label %98

88:                                               ; preds = %85
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringEc(ptr noundef nonnull align 8 dereferenceable(8) %87, i8 noundef signext 32)
          to label %90 unwind label %98

90:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  call void @_ZNK4juce14ColourGradient9getColourEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %18, ptr noundef nonnull align 8 dereferenceable(48) %57, i32 noundef %.065) #6
  %91 = call noundef i32 @_ZNK4juce6Colour7getARGBEv(ptr noundef nonnull align 1 dereferenceable(4) %18) #6
  invoke void @_ZN4juce6String11toHexStringEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %17, i32 noundef %91)
          to label %92 unwind label %100

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %94 unwind label %102

94:                                               ; preds = %92
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  %95 = add nuw nsw i32 %.065, 1
  %96 = call noundef i32 @_ZNK4juce14ColourGradient13getNumColoursEv(ptr noundef nonnull align 8 dereferenceable(48) %57) #6
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %.lr.ph, label %._crit_edge, !llvm.loop !19

98:                                               ; preds = %88, %85, %.lr.ph
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %117

100:                                              ; preds = %90
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %104

102:                                              ; preds = %92
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %104

104:                                              ; preds = %102, %100
  %.pn57 = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %117

105:                                              ; preds = %._crit_edge
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %106 unwind label %111

106:                                              ; preds = %105
  %107 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState7coloursE, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef %3)
          to label %108 unwind label %113

108:                                              ; preds = %106
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %145

109:                                              ; preds = %._crit_edge
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %116

111:                                              ; preds = %105
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %115

113:                                              ; preds = %106
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  br label %115

115:                                              ; preds = %113, %111
  %.pn54 = phi { ptr, i32 } [ %114, %113 ], [ %112, %111 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br label %116

116:                                              ; preds = %115, %109
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %115 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %117

117:                                              ; preds = %98, %104, %116
  %.pn57.pn.pn = phi { ptr, i32 } [ %.pn54.pn, %116 ], [ %.pn57, %104 ], [ %99, %98 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %146

118:                                              ; preds = %39
  %119 = tail call noundef zeroext i1 @_ZNK4juce8FillType12isTiledImageEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br i1 %119, label %120, label %145

120:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  call void @_ZN4juce3varC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull @.str.48)
  %121 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState4typeE, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef %3)
          to label %122 unwind label %130

122:                                              ; preds = %120
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %134, label %123

123:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  %124 = getelementptr inbounds i8, ptr %0, i64 16
  %125 = load ptr, ptr %2, align 8, !tbaa !21
  %126 = getelementptr inbounds i8, ptr %125, i64 24
  %127 = load ptr, ptr %126, align 8
  call void %127(ptr dead_on_unwind nonnull writable sret(%"class.juce::var") align 8 %22, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %124)
  %128 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState7imageIdE, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef %3)
          to label %129 unwind label %132

129:                                              ; preds = %123
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  br label %134

130:                                              ; preds = %120
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %146

132:                                              ; preds = %123
  %133 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  br label %146

134:                                              ; preds = %129, %122
  %135 = call noundef float @_ZNK4juce8FillType10getOpacityEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  %136 = fcmp olt float %135, 1.000000e+00
  br i1 %136, label %137, label %144

137:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #6
  %138 = call noundef float @_ZNK4juce8FillType10getOpacityEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  %139 = fpext float %138 to double
  call void @_ZN4juce3varC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef %139) #6
  %140 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState12imageOpacityE, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef %3)
          to label %141 unwind label %142

141:                                              ; preds = %137
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  br label %145

142:                                              ; preds = %137
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  br label %146

144:                                              ; preds = %134
  call void @_ZN4juce9ValueTree14removePropertyERKNS_10IdentifierEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState12imageOpacityE, ptr noundef %3)
  br label %145

145:                                              ; preds = %108, %118, %141, %144, %31
  ret void

146:                                              ; preds = %82, %117, %142, %132, %130, %81, %76, %71, %65, %38, %32
  %.pn62.pn = phi { ptr, i32 } [ %.pn62, %38 ], [ %33, %32 ], [ %.pn52, %81 ], [ %.pn50, %76 ], [ %.pn, %71 ], [ %66, %65 ], [ %143, %142 ], [ %133, %132 ], [ %131, %130 ], [ %.pn57.pn.pn, %117 ], [ %83, %82 ]
  resume { ptr, i32 } %.pn62.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8FillType8isColourEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce14ColourGradient13getNumColoursEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jucelsERNS_6StringEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare noundef double @_ZNK4juce14ColourGradient17getColourPositionEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZNK4juce14ColourGradient9getColourEi(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8FillType12isTiledImageEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4juce8FillType10getOpacityEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

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 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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, !11, i64 16}
!6 = !{!"_ZTSN4juce14ColourGradientE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24}
!7 = !{!"_ZTSN4juce5PointIfEE", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSN4juce5ArrayINS_14ColourGradient11ColourPointENS_20DummyCriticalSectionELi0EEE", !13, i64 0, !16, i64 16}
!13 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_14ColourGradient11ColourPointENS_20DummyCriticalSectionEEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSN4juce9HeapBlockINS_14ColourGradient11ColourPointELb0EEE", !15, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !10, i64 0}


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