; 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::Path" = type <{ %"class.juce::ArrayAllocationBase.123", i64, %"struct.juce::Path::PathBounds", i8, [7 x i8] }>
%"class.juce::ArrayAllocationBase.123" = type <{ %"class.juce::HeapBlock.124", i32, [4 x i8] }>
%"class.juce::HeapBlock.124" = type { ptr }
%"struct.juce::Path::PathBounds" = type { float, float, float, float }
%"class.juce::PathStrokeType" = type { float, i32, i32 }
%"class.juce::AffineTransform" = type { float, float, float, float, float, float }

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: nounwind
declare void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24)) 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) #2 align 2

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

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

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

declare void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #3

declare void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #3

; Function Attrs: nounwind
declare void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #1

declare void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41)) #3

declare void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(24)) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V219drawScrollbarButtonERNS_8GraphicsERNS_9ScrollBarEiiibbb(ptr noundef nonnull align 8 dereferenceable(304) %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, i1 noundef zeroext %6, i1 noundef zeroext %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 i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca %"class.juce::Path", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.juce::Colour", align 1
  %23 = alloca %"class.juce::Colour", align 1
  %24 = alloca %"class.juce::Colour", align 1
  %25 = alloca %"class.juce::Colour", align 1
  %26 = alloca %"class.juce::PathStrokeType", align 4
  %27 = alloca %"class.juce::AffineTransform", 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
  %28 = zext i1 %6 to i8
  store i8 %28, ptr %16, align 1, !tbaa !11
  %29 = zext i1 %7 to i8
  store i8 %29, ptr %17, align 1, !tbaa !11
  %30 = zext i1 %8 to i8
  store i8 %30, ptr %18, align 1, !tbaa !11
  %31 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #4
  call void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %19)
  %32 = load i32, ptr %15, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %58

34:                                               ; preds = %9
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = sitofp i32 %35 to float
  %37 = fmul float %36, 5.000000e-01
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = sitofp i32 %38 to float
  %40 = fmul float %39, 0x3FC99999A0000000
  %41 = load i32, ptr %13, align 4, !tbaa !9
  %42 = sitofp i32 %41 to float
  %43 = fmul float %42, 0x3FB99999A0000000
  %44 = load i32, ptr %14, align 4, !tbaa !9
  %45 = sitofp i32 %44 to float
  %46 = fmul float %45, 0x3FE6666660000000
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = sitofp i32 %47 to float
  %49 = fmul float %48, 0x3FECCCCCC0000000
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = sitofp i32 %50 to float
  %52 = fmul float %51, 0x3FE6666660000000
  invoke void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %19, float noundef %37, float noundef %40, float noundef %43, float noundef %46, float noundef %49, float noundef %52)
          to label %53 unwind label %54

53:                                               ; preds = %34
  br label %130

54:                                               ; preds = %156, %147, %107, %84, %61, %34
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %20, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %21, align 4
  br label %171

58:                                               ; preds = %9
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %81

61:                                               ; preds = %58
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = sitofp i32 %62 to float
  %64 = fmul float %63, 0x3FE99999A0000000
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = sitofp i32 %65 to float
  %67 = fmul float %66, 5.000000e-01
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = sitofp i32 %68 to float
  %70 = fmul float %69, 0x3FD3333340000000
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = sitofp i32 %71 to float
  %73 = fmul float %72, 0x3FB99999A0000000
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = sitofp i32 %74 to float
  %76 = fmul float %75, 0x3FD3333340000000
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = sitofp i32 %77 to float
  %79 = fmul float %78, 0x3FECCCCCC0000000
  invoke void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %19, float noundef %64, float noundef %67, float noundef %70, float noundef %73, float noundef %76, float noundef %79)
          to label %80 unwind label %54

80:                                               ; preds = %61
  br label %129

81:                                               ; preds = %58
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 2
  br i1 %83, label %84, label %104

84:                                               ; preds = %81
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = sitofp i32 %85 to float
  %87 = fmul float %86, 5.000000e-01
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = sitofp i32 %88 to float
  %90 = fmul float %89, 0x3FE99999A0000000
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = sitofp i32 %91 to float
  %93 = fmul float %92, 0x3FB99999A0000000
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = sitofp i32 %94 to float
  %96 = fmul float %95, 0x3FD3333340000000
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = sitofp i32 %97 to float
  %99 = fmul float %98, 0x3FECCCCCC0000000
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = sitofp i32 %100 to float
  %102 = fmul float %101, 0x3FD3333340000000
  invoke void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %19, float noundef %87, float noundef %90, float noundef %93, float noundef %96, float noundef %99, float noundef %102)
          to label %103 unwind label %54

103:                                              ; preds = %84
  br label %128

104:                                              ; preds = %81
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = icmp eq i32 %105, 3
  br i1 %106, label %107, label %127

107:                                              ; preds = %104
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = sitofp i32 %108 to float
  %110 = fmul float %109, 0x3FC99999A0000000
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = sitofp i32 %111 to float
  %113 = fmul float %112, 5.000000e-01
  %114 = load i32, ptr %13, align 4, !tbaa !9
  %115 = sitofp i32 %114 to float
  %116 = fmul float %115, 0x3FE6666660000000
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = sitofp i32 %117 to float
  %119 = fmul float %118, 0x3FB99999A0000000
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = sitofp i32 %120 to float
  %122 = fmul float %121, 0x3FE6666660000000
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = sitofp i32 %123 to float
  %125 = fmul float %124, 0x3FECCCCCC0000000
  invoke void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %19, float noundef %110, float noundef %113, float noundef %116, float noundef %119, float noundef %122, float noundef %125)
          to label %126 unwind label %54

126:                                              ; preds = %107
  br label %127

127:                                              ; preds = %126, %104
  br label %128

128:                                              ; preds = %127, %103
  br label %129

129:                                              ; preds = %128, %80
  br label %130

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

133:                                              ; preds = %130
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %23, ptr noundef nonnull align 8 dereferenceable(197) %135, i32 noundef 16778240, i1 noundef zeroext false)
          to label %136 unwind label %138

136:                                              ; preds = %133
  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 0x3FC99999A0000000) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %134, ptr noundef %22)
          to label %137 unwind label %142

137:                                              ; preds = %136
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %156

138:                                              ; preds = %133
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %20, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %21, align 4
  br label %146

142:                                              ; preds = %136
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %20, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %21, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #4
  br label %146

146:                                              ; preds = %142, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %171

147:                                              ; preds = %130
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %24, ptr noundef nonnull align 8 dereferenceable(197) %149, i32 noundef 16778240, i1 noundef zeroext false)
          to label %150 unwind label %54

150:                                              ; preds = %147
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %148, ptr noundef %24)
          to label %151 unwind label %152

151:                                              ; preds = %150
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %24) #4
  br label %156

152:                                              ; preds = %150
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %20, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %21, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %24) #4
  br label %171

156:                                              ; preds = %151, %137
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17) %157, ptr noundef nonnull align 8 dereferenceable(41) %19)
          to label %158 unwind label %54

158:                                              ; preds = %156
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %25, i32 noundef -2147483648) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %159, ptr noundef %25)
          to label %160 unwind label %163

160:                                              ; preds = %158
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %25) #4
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #4
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %26, float noundef 5.000000e-01) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #4
  call void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24) %27) #4
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %161, ptr noundef nonnull align 8 dereferenceable(41) %19, ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(24) %27)
          to label %162 unwind label %167

162:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %26) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %19) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #4
  ret void

163:                                              ; preds = %158
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %20, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %21, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %25) #4
  br label %171

167:                                              ; preds = %160
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %20, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %26) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #4
  br label %171

171:                                              ; preds = %167, %163, %152, %146, %54
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %19) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #4
  br label %172

172:                                              ; preds = %171
  %173 = load ptr, ptr %20, align 8
  %174 = load i32, ptr %21, align 4
  %175 = insertvalue { ptr, i32 } poison, ptr %173, 0
  %176 = insertvalue { ptr, i32 } %175, i32 %174, 1
  resume { ptr, i32 } %176
}

; 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) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { 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::Path" = type <{ %"class.juce::ArrayAllocationBase.123", i64, %"struct.juce::Path::PathBounds", i8, [7 x i8] }>
%"class.juce::ArrayAllocationBase.123" = type <{ %"class.juce::HeapBlock.124", i32, [4 x i8] }>
%"class.juce::HeapBlock.124" = type { ptr }
%"struct.juce::Path::PathBounds" = type { float, float, float, float }
%"class.juce::PathStrokeType" = type { float, i32, i32 }
%"class.juce::AffineTransform" = type { float, float, float, float, float, float }

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: nounwind
declare void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24)) 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: nounwind
declare void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) unnamed_addr #1

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

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

declare void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #3

declare void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #1

declare void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #3

declare void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V219drawScrollbarButtonERNS_8GraphicsERNS_9ScrollBarEiiibbb(ptr nocapture noundef nonnull readnone align 8 dereferenceable(304) %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, i1 noundef zeroext %6, i1 noundef zeroext %7, i1 noundef zeroext %8) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.juce::Path", 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::Colour", align 1
  %15 = alloca %"class.juce::PathStrokeType", align 4
  %16 = alloca %"class.juce::AffineTransform", align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #4
  call void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10)
  switch i32 %5, label %62 [
    i32 0, label %17
    i32 1, label %28
    i32 2, label %37
    i32 3, label %46
  ]

17:                                               ; preds = %9
  %18 = insertelement <2 x i32> poison, i32 %3, i64 0
  %19 = insertelement <2 x i32> %18, i32 %4, i64 1
  %20 = sitofp <2 x i32> %19 to <2 x float>
  %21 = shufflevector <2 x float> %20, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %22 = fmul <4 x float> %21, <float 5.000000e-01, float 0x3FC99999A0000000, float 0x3FB99999A0000000, float 0x3FE6666660000000>
  %23 = extractelement <2 x float> %20, i64 0
  %24 = fmul float %23, 0x3FECCCCCC0000000
  %25 = extractelement <4 x float> %22, i64 3
  br label %.invoke

26:                                               ; preds = %.invoke, %76, %71
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %84

28:                                               ; preds = %9
  %29 = insertelement <2 x i32> poison, i32 %3, i64 0
  %30 = insertelement <2 x i32> %29, i32 %4, i64 1
  %31 = sitofp <2 x i32> %30 to <2 x float>
  %32 = shufflevector <2 x float> %31, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %33 = fmul <4 x float> %32, <float 0x3FE99999A0000000, float 5.000000e-01, float 0x3FD3333340000000, float 0x3FB99999A0000000>
  %34 = extractelement <2 x float> %31, i64 1
  %35 = fmul float %34, 0x3FECCCCCC0000000
  %36 = extractelement <4 x float> %33, i64 2
  br label %.invoke

37:                                               ; preds = %9
  %38 = insertelement <2 x i32> poison, i32 %3, i64 0
  %39 = insertelement <2 x i32> %38, i32 %4, i64 1
  %40 = sitofp <2 x i32> %39 to <2 x float>
  %41 = shufflevector <2 x float> %40, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %42 = fmul <4 x float> %41, <float 5.000000e-01, float 0x3FE99999A0000000, float 0x3FB99999A0000000, float 0x3FD3333340000000>
  %43 = extractelement <2 x float> %40, i64 0
  %44 = fmul float %43, 0x3FECCCCCC0000000
  %45 = extractelement <4 x float> %42, i64 3
  br label %.invoke

46:                                               ; preds = %9
  %47 = insertelement <2 x i32> poison, i32 %3, i64 0
  %48 = insertelement <2 x i32> %47, i32 %4, i64 1
  %49 = sitofp <2 x i32> %48 to <2 x float>
  %50 = shufflevector <2 x float> %49, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %51 = fmul <4 x float> %50, <float 0x3FC99999A0000000, float 5.000000e-01, float 0x3FE6666660000000, float 0x3FB99999A0000000>
  %52 = extractelement <2 x float> %49, i64 1
  %53 = fmul float %52, 0x3FECCCCCC0000000
  %54 = extractelement <4 x float> %51, i64 2
  br label %.invoke

.invoke:                                          ; preds = %17, %28, %37, %46
  %55 = phi float [ %54, %46 ], [ %44, %37 ], [ %36, %28 ], [ %24, %17 ]
  %56 = phi float [ %53, %46 ], [ %45, %37 ], [ %35, %28 ], [ %25, %17 ]
  %57 = phi <4 x float> [ %51, %46 ], [ %42, %37 ], [ %33, %28 ], [ %22, %17 ]
  %58 = extractelement <4 x float> %57, i64 0
  %59 = extractelement <4 x float> %57, i64 1
  %60 = extractelement <4 x float> %57, i64 2
  %61 = extractelement <4 x float> %57, i64 3
  invoke void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %10, float noundef %58, float noundef %59, float noundef %60, float noundef %61, float noundef %55, float noundef %56)
          to label %62 unwind label %26

62:                                               ; preds = %.invoke, %9
  br i1 %8, label %63, label %71

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %12, ptr noundef nonnull align 8 dereferenceable(197) %2, i32 noundef 16778240, i1 noundef zeroext false)
          to label %64 unwind label %66

64:                                               ; preds = %63
  call void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %11, ptr noundef nonnull align 1 dereferenceable(4) %12, float noundef 0x3FC99999A0000000) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %11)
          to label %65 unwind label %68

65:                                               ; preds = %64
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %76

66:                                               ; preds = %63
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %70

68:                                               ; preds = %64
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %12) #4
  br label %70

70:                                               ; preds = %68, %66
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %84

71:                                               ; preds = %62
  invoke 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 16778240, i1 noundef zeroext false)
          to label %72 unwind label %26

72:                                               ; preds = %71
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %13)
          to label %73 unwind label %74

73:                                               ; preds = %72
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #4
  br label %76

74:                                               ; preds = %72
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #4
  br label %84

76:                                               ; preds = %73, %65
  invoke void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %10)
          to label %77 unwind label %26

77:                                               ; preds = %76
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %14, i32 noundef -2147483648) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %14)
          to label %78 unwind label %80

78:                                               ; preds = %77
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #4
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef 5.000000e-01) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #4
  call void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24) %16) #4
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %10, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(24) %16)
          to label %79 unwind label %82

79:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #4
  ret void

80:                                               ; preds = %77
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #4
  br label %84

82:                                               ; preds = %78
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #4
  br label %84

84:                                               ; preds = %82, %80, %74, %70, %26
  %.pn42 = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ], [ %27, %26 ], [ %.pn, %70 ], [ %75, %74 ]
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #4
  resume { ptr, i32 } %.pn42
}

; 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 #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { 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,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass