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

@_ZN4juce7Colours5blackE = external global %"class.juce::Colour", align 1
@_ZN4juce7Colours5whiteE = external global %"class.juce::Colour", align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiE9setBoundsEiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; 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) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

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

declare void @_ZNK4juce8Graphics8fillRectENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) #5

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

declare void @_ZNK4juce8Graphics7fillAllENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) #5

declare void @_ZNK4juce8Graphics8drawRectEiiiii(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #5

declare void @_ZNK4juce8Graphics8fillRectEiiii(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V113drawScrollbarERNS_8GraphicsERNS_9ScrollBarEiiiibiibb(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(376) %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i1 noundef zeroext %7, i32 noundef %8, i32 noundef %9, i1 noundef zeroext %10, i1 noundef zeroext %11) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca %"class.juce::Colour", align 1
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.juce::Colour", align 1
  %29 = alloca %"class.juce::Colour", align 1
  %30 = alloca %"class.juce::Rectangle", align 4
  %31 = alloca %"class.juce::Colour", align 1
  %32 = alloca %"class.juce::Colour", align 1
  %33 = alloca %"class.juce::Rectangle", align 4
  %34 = alloca %"class.juce::Colour", align 1
  %35 = alloca i32, align 4
  %36 = alloca float, align 4
  %37 = alloca %"class.juce::Colour", align 1
  %38 = alloca %"class.juce::Colour", align 1
  %39 = alloca %"class.juce::Colour", align 1
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store i32 %3, ptr %16, align 4, !tbaa !9
  store i32 %4, ptr %17, align 4, !tbaa !9
  store i32 %5, ptr %18, align 4, !tbaa !9
  store i32 %6, ptr %19, align 4, !tbaa !9
  %40 = zext i1 %7 to i8
  store i8 %40, ptr %20, align 1, !tbaa !11
  store i32 %8, ptr %21, align 4, !tbaa !9
  store i32 %9, ptr %22, align 4, !tbaa !9
  %41 = zext i1 %10 to i8
  store i8 %41, ptr %23, align 1, !tbaa !11
  %42 = zext i1 %11 to i8
  store i8 %42, ptr %24, align 1, !tbaa !11
  %43 = load ptr, ptr %13, align 8
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %25, ptr noundef nonnull align 8 dereferenceable(197) %45, i32 noundef 16777984, i1 noundef zeroext false)
  invoke void @_ZNK4juce8Graphics7fillAllENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %44, ptr noundef %25)
          to label %46 unwind label %88

46:                                               ; preds = %12
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %25) #7
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %48 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %29, ptr noundef nonnull align 8 dereferenceable(197) %48, i32 noundef 16778240, i1 noundef zeroext false)
  %49 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %50 = trunc i8 %49 to i1
  br i1 %50, label %54, label %51

51:                                               ; preds = %46
  %52 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %53 = trunc i8 %52 to i1
  br label %54

54:                                               ; preds = %51, %46
  %55 = phi i1 [ true, %46 ], [ %53, %51 ]
  %56 = zext i1 %55 to i64
  %57 = select i1 %55, float 0x3FD99999A0000000, float 0x3FC3333340000000
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %28, ptr noundef nonnull align 1 dereferenceable(4) %29, float noundef %57) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %47, ptr noundef %28)
          to label %58 unwind label %92

58:                                               ; preds = %54
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %28) #7
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  %59 = load i32, ptr %22, align 4, !tbaa !9
  %60 = sitofp i32 %59 to float
  %61 = fcmp ogt float %60, 0.000000e+00
  br i1 %61, label %62, label %268

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %30) #7
  %63 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %100

65:                                               ; preds = %62
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = sub nsw i32 %66, 2
  store i32 %67, ptr %18, align 4, !tbaa !9
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = load i32, ptr %16, align 4, !tbaa !9
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = sitofp i32 %70 to float
  %72 = fmul float %71, 0x3FD6666660000000
  %73 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %72) #7
  %74 = add nsw i32 %69, %73
  %75 = load i32, ptr %17, align 4, !tbaa !9
  %76 = load i32, ptr %18, align 4, !tbaa !9
  %77 = sitofp i32 %76 to float
  %78 = fmul float %77, 0x3FD3333340000000
  %79 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %78) #7
  %80 = load i32, ptr %19, align 4, !tbaa !9
  invoke void @_ZNK4juce8Graphics8fillRectEiiii(ptr noundef nonnull align 8 dereferenceable(17) %68, i32 noundef %74, i32 noundef %75, i32 noundef %79, i32 noundef %80)
          to label %81 unwind label %96

81:                                               ; preds = %65
  %82 = load i32, ptr %16, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  %84 = load i32, ptr %21, align 4, !tbaa !9
  %85 = load i32, ptr %18, align 4, !tbaa !9
  %86 = sub nsw i32 %85, 2
  %87 = load i32, ptr %22, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiE9setBoundsEiiii(ptr noundef nonnull align 4 dereferenceable(16) %30, i32 noundef %83, i32 noundef %84, i32 noundef %86, i32 noundef %87) #7
  br label %123

88:                                               ; preds = %12
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %26, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %27, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %25) #7
  br label %269

92:                                               ; preds = %54
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %26, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %27, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %28) #7
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %269

96:                                               ; preds = %149, %100, %65
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %26, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %27, align 4
  br label %267

100:                                              ; preds = %62
  %101 = load i32, ptr %19, align 4, !tbaa !9
  %102 = sub nsw i32 %101, 2
  store i32 %102, ptr %19, align 4, !tbaa !9
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = load i32, ptr %16, align 4, !tbaa !9
  %105 = load i32, ptr %17, align 4, !tbaa !9
  %106 = load i32, ptr %19, align 4, !tbaa !9
  %107 = sitofp i32 %106 to float
  %108 = fmul float %107, 0x3FD6666660000000
  %109 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %108) #7
  %110 = add nsw i32 %105, %109
  %111 = load i32, ptr %18, align 4, !tbaa !9
  %112 = load i32, ptr %19, align 4, !tbaa !9
  %113 = sitofp i32 %112 to float
  %114 = fmul float %113, 0x3FD3333340000000
  %115 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %114) #7
  invoke void @_ZNK4juce8Graphics8fillRectEiiii(ptr noundef nonnull align 8 dereferenceable(17) %103, i32 noundef %104, i32 noundef %110, i32 noundef %111, i32 noundef %115)
          to label %116 unwind label %96

116:                                              ; preds = %100
  %117 = load i32, ptr %21, align 4, !tbaa !9
  %118 = load i32, ptr %17, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  %120 = load i32, ptr %22, align 4, !tbaa !9
  %121 = load i32, ptr %19, align 4, !tbaa !9
  %122 = sub nsw i32 %121, 2
  call void @_ZN4juce9RectangleIiE9setBoundsEiiii(ptr noundef nonnull align 4 dereferenceable(16) %30, i32 noundef %117, i32 noundef %119, i32 noundef %120, i32 noundef %122) #7
  br label %123

123:                                              ; preds = %116, %81
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %125 = load ptr, ptr %15, 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) %125, i32 noundef 16778240, i1 noundef zeroext false)
          to label %126 unwind label %164

126:                                              ; preds = %123
  %127 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %128 = trunc i8 %127 to i1
  br i1 %128, label %132, label %129

129:                                              ; preds = %126
  %130 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %131 = trunc i8 %130 to i1
  br label %132

132:                                              ; preds = %129, %126
  %133 = phi i1 [ true, %126 ], [ %131, %129 ]
  %134 = zext i1 %133 to i64
  %135 = select i1 %133, float 0x3FEE666660000000, float 0x3FE6666660000000
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %31, ptr noundef nonnull align 1 dereferenceable(4) %32, float noundef %135) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %124, ptr noundef %31)
          to label %136 unwind label %168

136:                                              ; preds = %132
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %31) #7
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(16) %30) #7
  invoke void @_ZNK4juce8Graphics8fillRectENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17) %137, ptr noundef %33)
          to label %138 unwind label %173

138:                                              ; preds = %136
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %33) #7
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %141 = trunc i8 %140 to i1
  br i1 %141, label %145, label %142

142:                                              ; preds = %138
  %143 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %144 = trunc i8 %143 to i1
  br label %145

145:                                              ; preds = %142, %138
  %146 = phi i1 [ true, %138 ], [ %144, %142 ]
  %147 = zext i1 %146 to i64
  %148 = select i1 %146, float 0x3FD99999A0000000, float 2.500000e-01
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %34, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef %148) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %139, ptr noundef %34)
          to label %149 unwind label %177

149:                                              ; preds = %145
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %34) #7
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %30) #7
  %152 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %30) #7
  %153 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %30) #7
  %154 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %30) #7
  invoke void @_ZNK4juce8Graphics8drawRectEiiiii(ptr noundef nonnull align 8 dereferenceable(17) %150, i32 noundef %151, i32 noundef %152, i32 noundef %153, i32 noundef %154, i32 noundef 1)
          to label %155 unwind label %96

155:                                              ; preds = %149
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = icmp sgt i32 %156, 16
  br i1 %157, label %158, label %266

158:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 3, ptr %35, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %263, %158
  %160 = load i32, ptr %35, align 4, !tbaa !9
  %161 = add nsw i32 %160, -1
  store i32 %161, ptr %35, align 4, !tbaa !9
  %162 = icmp sge i32 %161, 0
  br i1 %162, label %181, label %163

163:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %265

164:                                              ; preds = %123
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %26, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %27, align 4
  br label %172

168:                                              ; preds = %132
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %26, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %27, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %31) #7
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %32) #7
  br label %172

172:                                              ; preds = %168, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %267

173:                                              ; preds = %136
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %26, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %27, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %33) #7
  br label %267

177:                                              ; preds = %145
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %26, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %27, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %34) #7
  br label %267

181:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %182 = load i32, ptr %21, align 4, !tbaa !9
  %183 = load i32, ptr %22, align 4, !tbaa !9
  %184 = sdiv i32 %183, 2
  %185 = add nsw i32 %182, %184
  %186 = sitofp i32 %185 to float
  %187 = load i32, ptr %35, align 4, !tbaa !9
  %188 = sub nsw i32 %187, 1
  %189 = sitofp i32 %188 to float
  %190 = call float @llvm.fmuladd.f32(float %189, float 4.000000e+00, float %186)
  store float %190, ptr %36, align 4, !tbaa !15
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %37, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %191, ptr noundef %37)
          to label %192 unwind label %222

192:                                              ; preds = %181
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %37) #7
  %193 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %194 = trunc i8 %193 to i1
  br i1 %194, label %195, label %234

195:                                              ; preds = %192
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = load i32, ptr %16, align 4, !tbaa !9
  %198 = sitofp i32 %197 to float
  %199 = load i32, ptr %18, align 4, !tbaa !9
  %200 = sitofp i32 %199 to float
  %201 = call float @llvm.fmuladd.f32(float %200, float 0x3FC99999A0000000, float %198)
  %202 = load float, ptr %36, align 4, !tbaa !15
  %203 = load i32, ptr %18, align 4, !tbaa !9
  %204 = sitofp i32 %203 to float
  %205 = fmul float %204, 0x3FE99999A0000000
  %206 = load float, ptr %36, align 4, !tbaa !15
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %196, float noundef %201, float noundef %202, float noundef %205, float noundef %206)
          to label %207 unwind label %226

207:                                              ; preds = %195
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %38, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %208, ptr noundef %38)
          to label %209 unwind label %230

209:                                              ; preds = %207
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %38) #7
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  %211 = load i32, ptr %18, align 4, !tbaa !9
  %212 = sitofp i32 %211 to float
  %213 = fmul float %212, 0x3FC99999A0000000
  %214 = load float, ptr %36, align 4, !tbaa !15
  %215 = fsub float %214, 1.000000e+00
  %216 = load i32, ptr %18, align 4, !tbaa !9
  %217 = sitofp i32 %216 to float
  %218 = fmul float %217, 0x3FE99999A0000000
  %219 = load float, ptr %36, align 4, !tbaa !15
  %220 = fsub float %219, 1.000000e+00
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %210, float noundef %213, float noundef %215, float noundef %218, float noundef %220)
          to label %221 unwind label %226

221:                                              ; preds = %209
  br label %263

222:                                              ; preds = %181
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %26, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %27, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %37) #7
  br label %264

226:                                              ; preds = %246, %234, %209, %195
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %26, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %27, align 4
  br label %264

230:                                              ; preds = %207
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %26, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %27, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %38) #7
  br label %264

234:                                              ; preds = %192
  %235 = load ptr, ptr %14, align 8, !tbaa !5
  %236 = load float, ptr %36, align 4, !tbaa !15
  %237 = load i32, ptr %19, align 4, !tbaa !9
  %238 = sitofp i32 %237 to float
  %239 = fmul float %238, 0x3FC99999A0000000
  %240 = load float, ptr %36, align 4, !tbaa !15
  %241 = load i32, ptr %19, align 4, !tbaa !9
  %242 = sitofp i32 %241 to float
  %243 = fmul float %242, 0x3FE99999A0000000
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %235, float noundef %236, float noundef %239, float noundef %240, float noundef %243)
          to label %244 unwind label %226

244:                                              ; preds = %234
  %245 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %39, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %245, ptr noundef %39)
          to label %246 unwind label %259

246:                                              ; preds = %244
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %39) #7
  %247 = load ptr, ptr %14, align 8, !tbaa !5
  %248 = load float, ptr %36, align 4, !tbaa !15
  %249 = fsub float %248, 1.000000e+00
  %250 = load i32, ptr %19, align 4, !tbaa !9
  %251 = sitofp i32 %250 to float
  %252 = fmul float %251, 0x3FC99999A0000000
  %253 = load float, ptr %36, align 4, !tbaa !15
  %254 = fsub float %253, 1.000000e+00
  %255 = load i32, ptr %19, align 4, !tbaa !9
  %256 = sitofp i32 %255 to float
  %257 = fmul float %256, 0x3FE99999A0000000
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %247, float noundef %249, float noundef %252, float noundef %254, float noundef %257)
          to label %258 unwind label %226

258:                                              ; preds = %246
  br label %263

259:                                              ; preds = %244
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %26, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %27, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %39) #7
  br label %264

263:                                              ; preds = %258, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %159, !llvm.loop !17

264:                                              ; preds = %259, %230, %226, %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %267

265:                                              ; preds = %163
  br label %266

266:                                              ; preds = %265, %155
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  br label %268

267:                                              ; preds = %264, %177, %173, %172, %96
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  br label %269

268:                                              ; preds = %266, %58
  ret void

269:                                              ; preds = %267, %92, %88
  %270 = load ptr, ptr %26, align 8
  %271 = load i32, ptr %27, align 4
  %272 = insertvalue { ptr, i32 } poison, ptr %270, 0
  %273 = insertvalue { ptr, i32 } %272, i32 %271, 1
  resume { ptr, i32 } %273
}

declare void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17), float noundef, float noundef, float noundef, float noundef) #5

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }

@_ZN4juce7Colours5blackE = external global %"class.juce::Colour", align 1
@_ZN4juce7Colours5whiteE = external global %"class.juce::Colour", align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; 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 #3 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

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

declare void @_ZNK4juce8Graphics8fillRectENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) local_unnamed_addr #5

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

declare void @_ZNK4juce8Graphics7fillAllENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) local_unnamed_addr #5

declare void @_ZNK4juce8Graphics8drawRectEiiiii(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @_ZNK4juce8Graphics8fillRectEiiii(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V113drawScrollbarERNS_8GraphicsERNS_9ScrollBarEiiiibiibb(ptr nocapture noundef nonnull readnone align 8 dereferenceable(328) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(376) %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i1 noundef zeroext %7, i32 noundef %8, i32 noundef %9, i1 noundef zeroext %10, i1 noundef zeroext %11) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %13 = alloca %"class.juce::Colour", align 1
  %14 = alloca %"class.juce::Colour", align 1
  %15 = alloca %"class.juce::Colour", align 1
  %16 = alloca %"class.juce::Rectangle", align 4
  %17 = alloca %"class.juce::Colour", align 1
  %18 = alloca %"class.juce::Colour", align 1
  %19 = alloca %"class.juce::Rectangle", align 4
  %20 = alloca %"class.juce::Colour", align 1
  %21 = alloca %"class.juce::Colour", align 1
  %22 = alloca %"class.juce::Colour", align 1
  %23 = alloca %"class.juce::Colour", align 1
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %13, ptr noundef nonnull align 8 dereferenceable(197) %2, i32 noundef 16777984, i1 noundef zeroext false)
  invoke void @_ZNK4juce8Graphics7fillAllENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %13)
          to label %24 unwind label %41

24:                                               ; preds = %12
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %15, ptr noundef nonnull align 8 dereferenceable(197) %2, i32 noundef 16778240, i1 noundef zeroext false)
  %25 = or i1 %10, %11
  %26 = select i1 %25, float 0x3FD99999A0000000, float 0x3FC3333340000000
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %14, ptr noundef nonnull align 1 dereferenceable(4) %15, float noundef %26) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %14)
          to label %27 unwind label %43

27:                                               ; preds = %24
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #7
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  %28 = icmp sgt i32 %9, 0
  br i1 %28, label %29, label %127

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16) #7
  br i1 %7, label %30, label %47

30:                                               ; preds = %29
  %31 = add nsw i32 %5, -2
  %32 = sitofp i32 %31 to float
  %33 = fmul float %32, 0x3FD6666660000000
  %34 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %33) #7
  %35 = add nsw i32 %34, %3
  %36 = fmul float %32, 0x3FD3333340000000
  %37 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %36) #7
  invoke void @_ZNK4juce8Graphics8fillRectEiiii(ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %35, i32 noundef %4, i32 noundef %37, i32 noundef %6)
          to label %38 unwind label %45

38:                                               ; preds = %30
  %39 = add nsw i32 %3, 1
  %40 = add nsw i32 %5, -4
  call void @_ZN4juce9RectangleIiE9setBoundsEiiii(ptr noundef nonnull align 4 dereferenceable(16) %16, i32 noundef %39, i32 noundef %8, i32 noundef %40, i32 noundef %9) #7
  br label %58

41:                                               ; preds = %12
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #7
  br label %128

43:                                               ; preds = %24
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #7
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %128

45:                                               ; preds = %64, %47, %30
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %126

47:                                               ; preds = %29
  %48 = add nsw i32 %6, -2
  %49 = sitofp i32 %48 to float
  %50 = fmul float %49, 0x3FD6666660000000
  %51 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %50) #7
  %52 = add nsw i32 %51, %4
  %53 = fmul float %49, 0x3FD3333340000000
  %54 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %53) #7
  invoke void @_ZNK4juce8Graphics8fillRectEiiii(ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %3, i32 noundef %52, i32 noundef %5, i32 noundef %54)
          to label %55 unwind label %45

55:                                               ; preds = %47
  %56 = add nsw i32 %4, 1
  %57 = add nsw i32 %6, -4
  call void @_ZN4juce9RectangleIiE9setBoundsEiiii(ptr noundef nonnull align 4 dereferenceable(16) %16, i32 noundef %8, i32 noundef %56, i32 noundef %9, i32 noundef %57) #7
  br label %58

58:                                               ; preds = %55, %38
  %.077 = phi i32 [ %6, %38 ], [ %48, %55 ]
  %.0 = phi i32 [ %31, %38 ], [ %5, %55 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %18, ptr noundef nonnull align 8 dereferenceable(197) %2, i32 noundef 16778240, i1 noundef zeroext false)
          to label %59 unwind label %99

59:                                               ; preds = %58
  %60 = select i1 %25, float 0x3FEE666660000000, float 0x3FE6666660000000
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %17, ptr noundef nonnull align 1 dereferenceable(4) %18, float noundef %60) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %17)
          to label %61 unwind label %101

61:                                               ; preds = %59
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %17) #7
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(16) %16) #7
  invoke void @_ZNK4juce8Graphics8fillRectENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %19)
          to label %62 unwind label %104

62:                                               ; preds = %61
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19) #7
  %63 = select i1 %25, float 0x3FD99999A0000000, float 2.500000e-01
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %20, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef %63) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %20)
          to label %64 unwind label %106

64:                                               ; preds = %62
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %20) #7
  %65 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %16) #7
  %66 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %16) #7
  %67 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %16) #7
  %68 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %16) #7
  invoke void @_ZNK4juce8Graphics8drawRectEiiiii(ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68, i32 noundef 1)
          to label %69 unwind label %45

69:                                               ; preds = %64
  %70 = icmp ugt i32 %9, 16
  br i1 %70, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %69
  %71 = lshr i32 %9, 1
  %72 = add nsw i32 %71, %8
  %73 = sitofp i32 %72 to float
  %74 = sitofp i32 %.077 to float
  %75 = fmul float %74, 0x3FC99999A0000000
  %76 = fmul float %74, 0x3FE99999A0000000
  %77 = sitofp i32 %3 to float
  %78 = sitofp i32 %.0 to float
  %79 = call float @llvm.fmuladd.f32(float %78, float 0x3FC99999A0000000, float %77)
  %80 = fmul float %78, 0x3FE99999A0000000
  %81 = fmul float %78, 0x3FC99999A0000000
  %82 = fadd float %73, 4.000000e+00
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %21, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef 0x3FC3333340000000) #7
  br i1 %7, label %.preheader.split.us.preheader, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %21)
          to label %108 unwind label %.split

.preheader.split.us.preheader:                    ; preds = %.preheader
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %21)
          to label %83 unwind label %.split.us

83:                                               ; preds = %.preheader.split.us.preheader
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #7
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %79, float noundef %82, float noundef %80, float noundef %82)
          to label %84 unwind label %.split87.us

84:                                               ; preds = %83
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %22, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %22)
          to label %85 unwind label %.split90.us

85:                                               ; preds = %84
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #7
  %86 = fadd float %82, -1.000000e+00
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %81, float noundef %86, float noundef %80, float noundef %86)
          to label %.preheader.split.us.1 unwind label %.split87.us

.preheader.split.us.1:                            ; preds = %85
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %21, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %21)
          to label %87 unwind label %.split.us

87:                                               ; preds = %.preheader.split.us.1
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #7
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %79, float noundef %73, float noundef %80, float noundef %73)
          to label %88 unwind label %.split87.us

88:                                               ; preds = %87
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %22, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %22)
          to label %89 unwind label %.split90.us

89:                                               ; preds = %88
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #7
  %90 = fadd float %73, -1.000000e+00
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %81, float noundef %90, float noundef %80, float noundef %90)
          to label %.preheader.split.us.2 unwind label %.split87.us

.preheader.split.us.2:                            ; preds = %89
  %91 = fadd float %73, -4.000000e+00
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %21, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %21)
          to label %92 unwind label %.split.us

92:                                               ; preds = %.preheader.split.us.2
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #7
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %79, float noundef %91, float noundef %80, float noundef %91)
          to label %93 unwind label %.split87.us

93:                                               ; preds = %92
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %22, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %22)
          to label %94 unwind label %.split90.us

94:                                               ; preds = %93
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #7
  %95 = fadd float %91, -1.000000e+00
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %81, float noundef %95, float noundef %80, float noundef %95)
          to label %.loopexit unwind label %.split87.us

.split.us:                                        ; preds = %.preheader.split.us.2, %.preheader.split.us.1, %.preheader.split.us.preheader
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %110

.split87.us:                                      ; preds = %94, %92, %89, %87, %85, %83
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %126

.split90.us:                                      ; preds = %93, %88, %84
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #7
  br label %126

99:                                               ; preds = %58
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %59
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %17) #7
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %18) #7
  br label %103

103:                                              ; preds = %101, %99
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %126

104:                                              ; preds = %61
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19) #7
  br label %126

106:                                              ; preds = %62
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %20) #7
  br label %126

108:                                              ; preds = %.preheader.split.preheader
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #7
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %82, float noundef %75, float noundef %82, float noundef %76)
          to label %112 unwind label %.split87

.split:                                           ; preds = %.preheader.split.2, %.preheader.split.1, %.preheader.split.preheader
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %110

110:                                              ; preds = %.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %109, %.split ], [ %96, %.split.us ]
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #7
  br label %126

.split87:                                         ; preds = %124, %122, %119, %117, %113, %108
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %126

112:                                              ; preds = %108
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %23, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %23)
          to label %113 unwind label %115

113:                                              ; preds = %112
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #7
  %114 = fadd float %82, -1.000000e+00
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %114, float noundef %75, float noundef %114, float noundef %76)
          to label %.preheader.split.1 unwind label %.split87

115:                                              ; preds = %123, %118, %112
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #7
  br label %126

.preheader.split.1:                               ; preds = %113
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %21, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %21)
          to label %117 unwind label %.split

117:                                              ; preds = %.preheader.split.1
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #7
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %73, float noundef %75, float noundef %73, float noundef %76)
          to label %118 unwind label %.split87

118:                                              ; preds = %117
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %23, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %23)
          to label %119 unwind label %115

119:                                              ; preds = %118
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #7
  %120 = fadd float %73, -1.000000e+00
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %120, float noundef %75, float noundef %120, float noundef %76)
          to label %.preheader.split.2 unwind label %.split87

.preheader.split.2:                               ; preds = %119
  %121 = fadd float %73, -4.000000e+00
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %21, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %21)
          to label %122 unwind label %.split

122:                                              ; preds = %.preheader.split.2
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #7
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %121, float noundef %75, float noundef %121, float noundef %76)
          to label %123 unwind label %.split87

123:                                              ; preds = %122
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %23, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE, float noundef 0x3FC3333340000000) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %23)
          to label %124 unwind label %115

124:                                              ; preds = %123
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #7
  %125 = fadd float %121, -1.000000e+00
  invoke void @_ZNK4juce8Graphics8drawLineEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %125, float noundef %75, float noundef %125, float noundef %76)
          to label %.loopexit unwind label %.split87

.loopexit:                                        ; preds = %124, %94, %69
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br label %127

126:                                              ; preds = %.split87, %.split87.us, %110, %.split90.us, %115, %106, %104, %103, %45
  %.pn81.pn = phi { ptr, i32 } [ %46, %45 ], [ %107, %106 ], [ %105, %104 ], [ %.pn, %103 ], [ %98, %.split90.us ], [ %116, %115 ], [ %.us-phi, %110 ], [ %111, %.split87 ], [ %97, %.split87.us ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br label %128

127:                                              ; preds = %.loopexit, %27
  ret void

128:                                              ; preds = %126, %43, %41
  %.pn81.pn.pn = phi { ptr, i32 } [ %.pn81.pn, %126 ], [ %44, %43 ], [ %42, %41 ]
  resume { ptr, i32 } %.pn81.pn.pn
}

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass