; 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::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"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 }
%"class.juce::Font" = type { %"class.juce::ReferenceCountedObjectPtr.158" }
%"class.juce::ReferenceCountedObjectPtr.158" = type { ptr }
%"class.juce::RectanglePlacement" = type { i32 }
%"class.juce::Justification" = type { i32 }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce11LookAndFeel17isColourSpecifiedEi(ptr noundef nonnull align 8 dereferenceable(281), i32 noundef) #1 align 2

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

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce5Image9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce5Image8getWidthEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce18RectanglePlacementC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #5 align 2

declare void @_ZN4juce4FontC1Efi(ptr noundef nonnull align 8 dereferenceable(8), float noundef, i32 noundef) unnamed_addr #4

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

declare noundef i32 @_ZNK4juce4Font14getStringWidthERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

; Function Attrs: nounwind
declare void @_ZN4juce14ColourGradientD1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

; Function Attrs: nounwind
declare noundef float @_ZNK4juce4Font9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce14TopLevelWindow14isActiveWindowEv(ptr noundef nonnull align 8 dereferenceable(208)) #1 align 2

; Function Attrs: nounwind
declare void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 1 dereferenceable(4), float noundef) #3

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

declare void @_ZN4juce14ColourGradientC1ENS_6ColourEffS1_ffb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, float noundef, float noundef, ptr noundef, float noundef, float noundef, i1 noundef zeroext) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce15ResizableWindow19getBackgroundColourEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(328)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V226drawDocumentWindowTitleBarERNS_14DocumentWindowERNS_8GraphicsEiiiiPKNS_5ImageEb(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(400) %1, ptr noundef nonnull align 8 dereferenceable(17) %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7, i1 noundef zeroext %8) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca %"class.juce::ColourGradient", align 8
  %21 = alloca %"class.juce::Colour", align 1
  %22 = alloca %"class.juce::Colour", align 1
  %23 = alloca %"class.juce::Colour", align 1
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.juce::Font", align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"class.juce::RectanglePlacement", align 4
  %32 = alloca %"class.juce::Colour", align 1
  %33 = alloca %"class.juce::Colour", align 1
  %34 = alloca %"class.juce::Colour", align 1
  %35 = alloca %"class.juce::Justification", align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !9
  store ptr %7, ptr %17, align 8, !tbaa !5
  %36 = zext i1 %8 to i8
  store i8 %36, ptr %18, align 1, !tbaa !11
  %37 = load ptr, ptr %10, align 8
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = mul nsw i32 %38, %39
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %9
  br label %201

43:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = call noundef zeroext i1 @_ZNK4juce14TopLevelWindow14isActiveWindowEv(ptr noundef nonnull align 8 dereferenceable(208) %44) #6
  %46 = zext i1 %45 to i8
  store i8 %46, ptr %19, align 1, !tbaa !11
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #6
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK4juce15ResizableWindow19getBackgroundColourEv(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %21, ptr noundef nonnull align 8 dereferenceable(328) %48) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK4juce15ResizableWindow19getBackgroundColourEv(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %23, ptr noundef nonnull align 8 dereferenceable(328) %49) #6
  %50 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %51 = trunc i8 %50 to i1
  %52 = zext i1 %51 to i64
  %53 = select i1 %51, float 0x3FC3333340000000, float 0x3FA99999A0000000
  call void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %22, ptr noundef nonnull align 1 dereferenceable(4) %23, float noundef %53) #6
  %54 = load i32, ptr %14, align 4, !tbaa !9
  %55 = sitofp i32 %54 to float
  invoke void @_ZN4juce14ColourGradientC1ENS_6ColourEffS1_ffb(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef %21, float noundef 0.000000e+00, float noundef 0.000000e+00, ptr noundef %22, float noundef 0.000000e+00, float noundef %55, i1 noundef zeroext false)
          to label %56 unwind label %81

56:                                               ; preds = %43
  invoke void @_ZN4juce8Graphics15setGradientFillERKNS_14ColourGradientE(ptr noundef nonnull align 8 dereferenceable(17) %47, ptr noundef nonnull align 8 dereferenceable(48) %20)
          to label %57 unwind label %85

57:                                               ; preds = %56
  call void @_ZN4juce14ColourGradientD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #6
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZNK4juce8Graphics7fillAllEv(ptr noundef nonnull align 8 dereferenceable(17) %58)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = sitofp i32 %59 to float
  %61 = fmul float %60, 0x3FE4CCCCC0000000
  call void @_ZN4juce4FontC1Efi(ptr noundef nonnull align 8 dereferenceable(8) %26, float noundef %61, i32 noundef 1)
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics7setFontERKNS_4FontE(ptr noundef nonnull align 8 dereferenceable(17) %62, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %63 unwind label %90

63:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce9Component7getNameEv(ptr noundef nonnull align 8 dereferenceable(197) %64) #6
  %66 = invoke noundef i32 @_ZNK4juce4Font14getStringWidthERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %65)
          to label %67 unwind label %94

67:                                               ; preds = %63
  store i32 %66, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 0, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !9
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %98

70:                                               ; preds = %67
  %71 = call noundef float @_ZNK4juce4Font9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  %72 = fptosi float %71 to i32
  store i32 %72, ptr %29, align 4, !tbaa !9
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  %74 = call noundef i32 @_ZNK4juce5Image8getWidthEv(ptr noundef nonnull align 8 dereferenceable(8) %73) #6
  %75 = load i32, ptr %29, align 4, !tbaa !9
  %76 = mul nsw i32 %74, %75
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = call noundef i32 @_ZNK4juce5Image9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8) %77) #6
  %79 = sdiv i32 %76, %78
  %80 = add nsw i32 %79, 4
  store i32 %80, ptr %28, align 4, !tbaa !9
  br label %98

81:                                               ; preds = %43
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %24, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %25, align 4
  br label %89

85:                                               ; preds = %56
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %24, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %25, align 4
  call void @_ZN4juce14ColourGradientD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #6
  br label %89

89:                                               ; preds = %85, %81
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #6
  br label %206

90:                                               ; preds = %57
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %24, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %25, align 4
  br label %205

94:                                               ; preds = %63
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %24, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %25, align 4
  br label %204

98:                                               ; preds = %70, %67
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = load i32, ptr %27, align 4, !tbaa !9
  %101 = load i32, ptr %28, align 4, !tbaa !9
  %102 = add nsw i32 %100, %101
  %103 = invoke noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %99, i32 noundef %102)
          to label %104 unwind label %132

104:                                              ; preds = %98
  store i32 %103, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %105 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %109

107:                                              ; preds = %104
  %108 = load i32, ptr %15, align 4, !tbaa !9
  br label %117

109:                                              ; preds = %104
  %110 = load i32, ptr %15, align 4, !tbaa !9
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = load i32, ptr %27, align 4, !tbaa !9
  %113 = sub nsw i32 %111, %112
  %114 = sdiv i32 %113, 2
  %115 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %110, i32 noundef %114)
          to label %116 unwind label %136

116:                                              ; preds = %109
  br label %117

117:                                              ; preds = %116, %107
  %118 = phi i32 [ %108, %107 ], [ %115, %116 ]
  store i32 %118, ptr %30, align 4, !tbaa !9
  %119 = load i32, ptr %30, align 4, !tbaa !9
  %120 = load i32, ptr %27, align 4, !tbaa !9
  %121 = add nsw i32 %119, %120
  %122 = load i32, ptr %15, align 4, !tbaa !9
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = add nsw i32 %122, %123
  %125 = icmp sgt i32 %121, %124
  br i1 %125, label %126, label %140

126:                                              ; preds = %117
  %127 = load i32, ptr %15, align 4, !tbaa !9
  %128 = load i32, ptr %16, align 4, !tbaa !9
  %129 = add nsw i32 %127, %128
  %130 = load i32, ptr %27, align 4, !tbaa !9
  %131 = sub nsw i32 %129, %130
  store i32 %131, ptr %30, align 4, !tbaa !9
  br label %140

132:                                              ; preds = %98
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %24, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %25, align 4
  br label %203

136:                                              ; preds = %193, %172, %166, %149, %143, %109
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %24, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %25, align 4
  br label %202

140:                                              ; preds = %126, %117
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %166

143:                                              ; preds = %140
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %146 = trunc i8 %145 to i1
  %147 = zext i1 %146 to i64
  %148 = select i1 %146, float 1.000000e+00, float 0x3FE3333340000000
  invoke void @_ZN4juce8Graphics10setOpacityEf(ptr noundef nonnull align 8 dereferenceable(17) %144, float noundef %148)
          to label %149 unwind label %136

149:                                              ; preds = %143
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = load i32, ptr %30, align 4, !tbaa !9
  %153 = load i32, ptr %14, align 4, !tbaa !9
  %154 = load i32, ptr %29, align 4, !tbaa !9
  %155 = sub nsw i32 %153, %154
  %156 = sdiv i32 %155, 2
  %157 = load i32, ptr %28, align 4, !tbaa !9
  %158 = load i32, ptr %29, align 4, !tbaa !9
  call void @_ZN4juce18RectanglePlacementC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 noundef 36) #6
  invoke void @_ZNK4juce8Graphics15drawImageWithinERKNS_5ImageEiiiiNS_18RectanglePlacementEb(ptr noundef nonnull align 8 dereferenceable(17) %150, ptr noundef nonnull align 8 dereferenceable(8) %151, i32 noundef %152, i32 noundef %156, i32 noundef %157, i32 noundef %158, ptr noundef %31, i1 noundef zeroext false)
          to label %159 unwind label %136

159:                                              ; preds = %149
  %160 = load i32, ptr %28, align 4, !tbaa !9
  %161 = load i32, ptr %30, align 4, !tbaa !9
  %162 = add nsw i32 %161, %160
  store i32 %162, ptr %30, align 4, !tbaa !9
  %163 = load i32, ptr %28, align 4, !tbaa !9
  %164 = load i32, ptr %27, align 4, !tbaa !9
  %165 = sub nsw i32 %164, %163
  store i32 %165, ptr %27, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %159, %140
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = invoke noundef zeroext i1 @_ZNK4juce9Component17isColourSpecifiedEi(ptr noundef nonnull align 8 dereferenceable(197) %167, i32 noundef 16799489)
          to label %169 unwind label %136

169:                                              ; preds = %166
  br i1 %168, label %172, label %170

170:                                              ; preds = %169
  %171 = call noundef zeroext i1 @_ZNK4juce11LookAndFeel17isColourSpecifiedEi(ptr noundef nonnull align 8 dereferenceable(281) %37, i32 noundef 16799489) #6
  br i1 %171, label %172, label %181

172:                                              ; preds = %170, %169
  %173 = load ptr, ptr %12, align 8, !tbaa !5
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %32, ptr noundef nonnull align 8 dereferenceable(197) %174, i32 noundef 16799489, i1 noundef zeroext false)
          to label %175 unwind label %136

175:                                              ; preds = %172
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %173, ptr noundef %32)
          to label %176 unwind label %177

176:                                              ; preds = %175
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %32) #6
  br label %193

177:                                              ; preds = %175
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %24, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %25, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %32) #6
  br label %202

181:                                              ; preds = %170
  %182 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK4juce15ResizableWindow19getBackgroundColourEv(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %34, ptr noundef nonnull align 8 dereferenceable(328) %183) #6
  %184 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %185 = trunc i8 %184 to i1
  %186 = zext i1 %185 to i64
  %187 = select i1 %185, float 0x3FE6666660000000, float 0x3FD99999A0000000
  call void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %33, ptr noundef nonnull align 1 dereferenceable(4) %34, float noundef %187) #6
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %182, ptr noundef %33)
          to label %188 unwind label %189

188:                                              ; preds = %181
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %33) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %193

189:                                              ; preds = %181
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %24, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %25, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %33) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %202

193:                                              ; preds = %188, %176
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce9Component7getNameEv(ptr noundef nonnull align 8 dereferenceable(197) %195) #6
  %197 = load i32, ptr %30, align 4, !tbaa !9
  %198 = load i32, ptr %27, align 4, !tbaa !9
  %199 = load i32, ptr %14, align 4, !tbaa !9
  call void @_ZN4juce13JustificationC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %35, i32 noundef 33) #6
  invoke void @_ZNK4juce8Graphics8drawTextERKNS_6StringEiiiiNS_13JustificationEb(ptr noundef nonnull align 8 dereferenceable(17) %194, ptr noundef nonnull align 8 dereferenceable(8) %196, i32 noundef %197, i32 noundef 0, i32 noundef %198, i32 noundef %199, ptr noundef %35, i1 noundef zeroext true)
          to label %200 unwind label %136

200:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @_ZN4juce4FontD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %201

201:                                              ; preds = %200, %42
  ret void

202:                                              ; preds = %189, %177, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %203

203:                                              ; preds = %202, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %204

204:                                              ; preds = %203, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %205

205:                                              ; preds = %204, %90
  call void @_ZN4juce4FontD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %206

206:                                              ; preds = %205, %89
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %207

207:                                              ; preds = %206
  %208 = load ptr, ptr %24, align 8
  %209 = load i32, ptr %25, align 4
  %210 = insertvalue { ptr, i32 } poison, ptr %208, 0
  %211 = insertvalue { ptr, i32 } %210, i32 %209, 1
  resume { ptr, i32 } %211
}

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

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


; 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.77 }
%union.anon.77 = type { i32 }
%"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 }
%"class.juce::Font" = type { %"class.juce::ReferenceCountedObjectPtr.158" }
%"class.juce::ReferenceCountedObjectPtr.158" = type { ptr }
%"class.juce::RectanglePlacement" = type { i32 }
%"class.juce::Justification" = type { i32 }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce11LookAndFeel17isColourSpecifiedEi(ptr noundef nonnull align 8 dereferenceable(281), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce5Image9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce5Image8getWidthEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce18RectanglePlacementC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #5 align 2

declare void @_ZN4juce4FontC1Efi(ptr noundef nonnull align 8 dereferenceable(8), float noundef, i32 noundef) unnamed_addr #4

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

declare noundef i32 @_ZNK4juce4Font14getStringWidthERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

; Function Attrs: nounwind
declare void @_ZN4juce14ColourGradientD1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

; Function Attrs: nounwind
declare noundef float @_ZNK4juce4Font9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce14TopLevelWindow14isActiveWindowEv(ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #1 align 2

; Function Attrs: nounwind
declare void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 1 dereferenceable(4), float noundef) local_unnamed_addr #3

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

declare void @_ZN4juce14ColourGradientC1ENS_6ColourEffS1_ffb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, float noundef, float noundef, ptr noundef, float noundef, float noundef, i1 noundef zeroext) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce15ResizableWindow19getBackgroundColourEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(328)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V226drawDocumentWindowTitleBarERNS_14DocumentWindowERNS_8GraphicsEiiiiPKNS_5ImageEb(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(400) %1, ptr noundef nonnull align 8 dereferenceable(17) %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7, i1 noundef zeroext %8) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.juce::ColourGradient", align 8
  %11 = alloca %"class.juce::Colour", align 1
  %12 = alloca %"class.juce::Colour", align 1
  %13 = alloca %"class.juce::Colour", align 1
  %14 = alloca %"class.juce::Font", align 8
  %15 = alloca %"class.juce::RectanglePlacement", align 4
  %16 = alloca %"class.juce::Colour", align 1
  %17 = alloca %"class.juce::Colour", align 1
  %18 = alloca %"class.juce::Colour", align 1
  %19 = alloca %"class.juce::Justification", align 4
  %20 = mul nsw i32 %4, %3
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %91, label %22

22:                                               ; preds = %9
  %23 = tail call noundef zeroext i1 @_ZNK4juce14TopLevelWindow14isActiveWindowEv(ptr noundef nonnull align 8 dereferenceable(208) %1) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #6
  call void @_ZNK4juce15ResizableWindow19getBackgroundColourEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %11, ptr noundef nonnull align 8 dereferenceable(328) %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  call void @_ZNK4juce15ResizableWindow19getBackgroundColourEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %13, ptr noundef nonnull align 8 dereferenceable(328) %1) #6
  %24 = select i1 %23, float 0x3FC3333340000000, float 0x3FA99999A0000000
  call void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %12, ptr noundef nonnull align 1 dereferenceable(4) %13, float noundef %24) #6
  %25 = sitofp i32 %4 to float
  invoke void @_ZN4juce14ColourGradientC1ENS_6ColourEffS1_ffb(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull %11, float noundef 0.000000e+00, float noundef 0.000000e+00, ptr noundef nonnull %12, float noundef 0.000000e+00, float noundef %25, i1 noundef zeroext false)
          to label %26 unwind label %41

26:                                               ; preds = %22
  invoke void @_ZN4juce8Graphics15setGradientFillERKNS_14ColourGradientE(ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %27 unwind label %43

27:                                               ; preds = %26
  call void @_ZN4juce14ColourGradientD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %12) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #6
  call void @_ZNK4juce8Graphics7fillAllEv(ptr noundef nonnull align 8 dereferenceable(17) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %28 = fmul float %25, 0x3FE4CCCCC0000000
  call void @_ZN4juce4FontC1Efi(ptr noundef nonnull align 8 dereferenceable(8) %14, float noundef %28, i32 noundef 1)
  invoke void @_ZN4juce8Graphics7setFontERKNS_4FontE(ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %29 unwind label %46

29:                                               ; preds = %27
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce9Component7getNameEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #6
  %31 = invoke noundef i32 @_ZNK4juce4Font14getStringWidthERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %32 unwind label %48

32:                                               ; preds = %29
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %50, label %33

33:                                               ; preds = %32
  %34 = call noundef float @_ZNK4juce4Font9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %35 = fptosi float %34 to i32
  %36 = call noundef i32 @_ZNK4juce5Image8getWidthEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %37 = mul nsw i32 %36, %35
  %38 = call noundef i32 @_ZNK4juce5Image9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %39 = sdiv i32 %37, %38
  %40 = add nsw i32 %39, 4
  br label %50

41:                                               ; preds = %22
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %26
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce14ColourGradientD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  br label %45

45:                                               ; preds = %43, %41
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %12) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #6
  br label %93

46:                                               ; preds = %27
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %92

48:                                               ; preds = %29
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %92

50:                                               ; preds = %33, %32
  %.059 = phi i32 [ %40, %33 ], [ 0, %32 ]
  %.058 = phi i32 [ %35, %33 ], [ 0, %32 ]
  %51 = add nsw i32 %.059, %31
  %52 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %6, i32 noundef %51)
  br i1 %8, label %57, label %53

53:                                               ; preds = %50
  %54 = sub nsw i32 %3, %52
  %55 = sdiv i32 %54, 2
  %56 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %5, i32 noundef %55)
  br label %57

57:                                               ; preds = %50, %53
  %58 = phi i32 [ %56, %53 ], [ %5, %50 ]
  %59 = add nsw i32 %58, %52
  %60 = add nsw i32 %6, %5
  %61 = icmp sgt i32 %59, %60
  %62 = sub nsw i32 %60, %52
  %spec.select = select i1 %61, i32 %62, i32 %58
  br i1 %.not, label %73, label %65

63:                                               ; preds = %88, %78, %73, %67, %65
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %92

65:                                               ; preds = %57
  %66 = select i1 %23, float 1.000000e+00, float 0x3FE3333340000000
  invoke void @_ZN4juce8Graphics10setOpacityEf(ptr noundef nonnull align 8 dereferenceable(17) %2, float noundef %66)
          to label %67 unwind label %63

67:                                               ; preds = %65
  %68 = sub nsw i32 %4, %.058
  %69 = sdiv i32 %68, 2
  call void @_ZN4juce18RectanglePlacementC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 36) #6
  invoke void @_ZNK4juce8Graphics15drawImageWithinERKNS_5ImageEiiiiNS_18RectanglePlacementEb(ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef %spec.select, i32 noundef %69, i32 noundef %.059, i32 noundef %.058, ptr noundef nonnull %15, i1 noundef zeroext false)
          to label %70 unwind label %63

70:                                               ; preds = %67
  %71 = add nsw i32 %spec.select, %.059
  %72 = sub nsw i32 %52, %.059
  br label %73

73:                                               ; preds = %70, %57
  %.060 = phi i32 [ %72, %70 ], [ %52, %57 ]
  %.1 = phi i32 [ %71, %70 ], [ %spec.select, %57 ]
  %74 = invoke noundef zeroext i1 @_ZNK4juce9Component17isColourSpecifiedEi(ptr noundef nonnull align 8 dereferenceable(197) %1, i32 noundef 16799489)
          to label %75 unwind label %63

75:                                               ; preds = %73
  br i1 %74, label %78, label %76

76:                                               ; preds = %75
  %77 = call noundef zeroext i1 @_ZNK4juce11LookAndFeel17isColourSpecifiedEi(ptr noundef nonnull align 8 dereferenceable(281) %0, i32 noundef 16799489) #6
  br i1 %77, label %78, label %83

78:                                               ; preds = %76, %75
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %16, ptr noundef nonnull align 8 dereferenceable(197) %1, i32 noundef 16799489, i1 noundef zeroext false)
          to label %79 unwind label %63

79:                                               ; preds = %78
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef nonnull %16)
          to label %80 unwind label %81

80:                                               ; preds = %79
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #6
  br label %88

81:                                               ; preds = %79
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #6
  br label %92

83:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  call void @_ZNK4juce15ResizableWindow19getBackgroundColourEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %18, ptr noundef nonnull align 8 dereferenceable(328) %1) #6
  %84 = select i1 %23, float 0x3FE6666660000000, float 0x3FD99999A0000000
  call void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %17, ptr noundef nonnull align 1 dereferenceable(4) %18, float noundef %84) #6
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef nonnull %17)
          to label %85 unwind label %86

85:                                               ; preds = %83
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %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
  br label %88

86:                                               ; preds = %83
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %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
  br label %92

88:                                               ; preds = %85, %80
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce9Component7getNameEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #6
  call void @_ZN4juce13JustificationC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef 33) #6
  invoke void @_ZNK4juce8Graphics8drawTextERKNS_6StringEiiiiNS_13JustificationEb(ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef nonnull align 8 dereferenceable(8) %89, i32 noundef %.1, i32 noundef 0, i32 noundef %.060, i32 noundef %4, ptr noundef nonnull %19, i1 noundef zeroext true)
          to label %90 unwind label %63

90:                                               ; preds = %88
  call void @_ZN4juce4FontD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %91

91:                                               ; preds = %9, %90
  ret void

92:                                               ; preds = %48, %86, %81, %63, %46
  %.pn72.pn.pn = phi { ptr, i32 } [ %47, %46 ], [ %49, %48 ], [ %64, %63 ], [ %82, %81 ], [ %87, %86 ]
  call void @_ZN4juce4FontD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %93

93:                                               ; preds = %92, %45
  %.pn72.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn, %92 ], [ %.pn, %45 ]
  resume { ptr, i32 } %.pn72.pn.pn.pn
}

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

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


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