; 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

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

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

declare void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41)) 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)) #3

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

; Function Attrs: nounwind
declare noundef nonnull align 1 dereferenceable(4) ptr @_ZN4juce6ColouraSERKS0_(ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4)) #1

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

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V313drawScrollbarERNS_8GraphicsERNS_9ScrollBarEiiiibiibb(ptr noundef nonnull align 8 dereferenceable(316) %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 #2 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::Path", align 8
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.juce::Colour", align 1
  %31 = alloca %"class.juce::Colour", align 1
  %32 = alloca %"class.juce::Colour", align 1
  %33 = alloca %"class.juce::Colour", align 1
  %34 = alloca %"class.juce::PathStrokeType", align 4
  %35 = alloca %"class.juce::AffineTransform", align 4
  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
  %36 = zext i1 %7 to i8
  store i8 %36, ptr %20, align 1, !tbaa !11
  store i32 %8, ptr %21, align 4, !tbaa !9
  store i32 %9, ptr %22, align 4, !tbaa !9
  %37 = zext i1 %10 to i8
  store i8 %37, ptr %23, align 1, !tbaa !11
  %38 = zext i1 %11 to i8
  store i8 %38, ptr %24, align 1, !tbaa !11
  %39 = load ptr, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %25) #4
  call void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %25)
  %40 = load i32, ptr %22, align 4, !tbaa !9
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %42, label %108

42:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %43 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %44 = trunc i8 %43 to i1
  br i1 %44, label %45, label %47

45:                                               ; preds = %42
  %46 = load i32, ptr %18, align 4, !tbaa !9
  br label %49

47:                                               ; preds = %42
  %48 = load i32, ptr %19, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %47, %45
  %50 = phi i32 [ %46, %45 ], [ %48, %47 ]
  %51 = sitofp i32 %50 to float
  %52 = fmul float %51, 2.500000e-01
  store float %52, ptr %26, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %53 = load float, ptr %26, align 4, !tbaa !15
  %54 = fmul float %53, 2.000000e+00
  store float %54, ptr %27, align 4, !tbaa !15
  %55 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %56 = trunc i8 %55 to i1
  br i1 %56, label %57, label %84

57:                                               ; preds = %49
  %58 = load i32, ptr %16, align 4, !tbaa !9
  %59 = sitofp i32 %58 to float
  %60 = load float, ptr %26, align 4, !tbaa !15
  %61 = fadd float %59, %60
  %62 = load i32, ptr %21, align 4, !tbaa !9
  %63 = sitofp i32 %62 to float
  %64 = load float, ptr %26, align 4, !tbaa !15
  %65 = fadd float %63, %64
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = sitofp i32 %66 to float
  %68 = load float, ptr %27, align 4, !tbaa !15
  %69 = fsub float %67, %68
  %70 = load i32, ptr %22, align 4, !tbaa !9
  %71 = sitofp i32 %70 to float
  %72 = load float, ptr %27, align 4, !tbaa !15
  %73 = fsub float %71, %72
  %74 = load i32, ptr %18, align 4, !tbaa !9
  %75 = sitofp i32 %74 to float
  %76 = load float, ptr %27, align 4, !tbaa !15
  %77 = fsub float %75, %76
  %78 = fmul float %77, 5.000000e-01
  invoke void @_ZN4juce4Path19addRoundedRectangleEfffff(ptr noundef nonnull align 8 dereferenceable(41) %25, float noundef %61, float noundef %65, float noundef %69, float noundef %73, float noundef %78)
          to label %79 unwind label %80

79:                                               ; preds = %57
  br label %107

80:                                               ; preds = %84, %57
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %28, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %158

84:                                               ; preds = %49
  %85 = load i32, ptr %21, align 4, !tbaa !9
  %86 = sitofp i32 %85 to float
  %87 = load float, ptr %26, align 4, !tbaa !15
  %88 = fadd float %86, %87
  %89 = load i32, ptr %17, align 4, !tbaa !9
  %90 = sitofp i32 %89 to float
  %91 = load float, ptr %26, align 4, !tbaa !15
  %92 = fadd float %90, %91
  %93 = load i32, ptr %22, align 4, !tbaa !9
  %94 = sitofp i32 %93 to float
  %95 = load float, ptr %27, align 4, !tbaa !15
  %96 = fsub float %94, %95
  %97 = load i32, ptr %19, align 4, !tbaa !9
  %98 = sitofp i32 %97 to float
  %99 = load float, ptr %27, align 4, !tbaa !15
  %100 = fsub float %98, %99
  %101 = load i32, ptr %19, align 4, !tbaa !9
  %102 = sitofp i32 %101 to float
  %103 = load float, ptr %27, align 4, !tbaa !15
  %104 = fsub float %102, %103
  %105 = fmul float %104, 5.000000e-01
  invoke void @_ZN4juce4Path19addRoundedRectangleEfffff(ptr noundef nonnull align 8 dereferenceable(41) %25, float noundef %88, float noundef %92, float noundef %96, float noundef %100, float noundef %105)
          to label %106 unwind label %80

106:                                              ; preds = %84
  br label %107

107:                                              ; preds = %106, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %108

108:                                              ; preds = %107, %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %30, ptr noundef nonnull align 8 dereferenceable(197) %109, i32 noundef 16778240, i1 noundef zeroext true)
          to label %110 unwind label %118

110:                                              ; preds = %108
  %111 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %112 = trunc i8 %111 to i1
  br i1 %112, label %116, label %113

113:                                              ; preds = %110
  %114 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %115 = trunc i8 %114 to i1
  br i1 %115, label %116, label %122

116:                                              ; preds = %113, %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  call void @_ZNK4juce6Colour19withMultipliedAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %31, ptr noundef nonnull align 1 dereferenceable(4) %30, float noundef 2.000000e+00) #4
  %117 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN4juce6ColouraSERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %30, ptr noundef nonnull align 1 dereferenceable(4) %31) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  br label %122

118:                                              ; preds = %108
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %28, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %29, align 4
  br label %157

122:                                              ; preds = %116, %113
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %32, ptr noundef nonnull align 1 dereferenceable(4) %30) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %123, ptr noundef %32)
          to label %124 unwind label %140

124:                                              ; preds = %122
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %32) #4
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17) %125, ptr noundef nonnull align 8 dereferenceable(41) %25)
          to label %126 unwind label %144

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

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

133:                                              ; preds = %130, %126
  %134 = phi i1 [ true, %126 ], [ %132, %130 ]
  %135 = zext i1 %134 to i64
  %136 = select i1 %134, float 0x3FC99999A0000000, float 0x3FB99999A0000000
  call void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %33, ptr noundef nonnull align 1 dereferenceable(4) %30, float noundef %136) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %127, ptr noundef %33)
          to label %137 unwind label %148

137:                                              ; preds = %133
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %33) #4
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #4
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %34, float noundef 1.000000e+00) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #4
  call void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24) %35) #4
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %138, ptr noundef nonnull align 8 dereferenceable(41) %25, ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(24) %35)
          to label %139 unwind label %152

139:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %34) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %25) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %25) #4
  ret void

140:                                              ; preds = %122
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %28, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %29, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %32) #4
  br label %156

144:                                              ; preds = %124
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %28, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %29, align 4
  br label %156

148:                                              ; preds = %133
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %28, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %29, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %33) #4
  br label %156

152:                                              ; preds = %137
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %28, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %34) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #4
  br label %156

156:                                              ; preds = %152, %148, %144, %140
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %30) #4
  br label %157

157:                                              ; preds = %156, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  br label %158

158:                                              ; preds = %157, %80
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %25) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %25) #4
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %28, align 8
  %161 = load i32, ptr %29, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163
}

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 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}


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

%"class.juce::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

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

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

declare void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41)) 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

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

; Function Attrs: nounwind
declare noundef nonnull align 1 dereferenceable(4) ptr @_ZN4juce6ColouraSERKS0_(ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #1

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

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V313drawScrollbarERNS_8GraphicsERNS_9ScrollBarEiiiibiibb(ptr nocapture noundef nonnull readnone align 8 dereferenceable(316) %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 #2 align 2 personality ptr @__gxx_personality_v0 {
  %13 = alloca %"class.juce::Path", align 8
  %14 = alloca %"class.juce::Colour", align 1
  %15 = alloca %"class.juce::Colour", align 1
  %16 = alloca %"class.juce::Colour", align 1
  %17 = alloca %"class.juce::Colour", align 1
  %18 = alloca %"class.juce::PathStrokeType", align 4
  %19 = alloca %"class.juce::AffineTransform", align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #4
  call void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %13)
  %20 = icmp sgt i32 %9, 0
  br i1 %20, label %21, label %43

21:                                               ; preds = %12
  %22 = select i1 %7, i32 %5, i32 %6
  %23 = sitofp i32 %22 to float
  %24 = fmul float %23, 2.500000e-01
  %25 = fmul float %24, 2.000000e+00
  br i1 %7, label %26, label %33

26:                                               ; preds = %21
  %27 = sitofp i32 %5 to float
  %28 = fsub float %27, %25
  %29 = uitofp nneg i32 %9 to float
  %30 = fsub float %29, %25
  br label %.invoke

31:                                               ; preds = %.invoke
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %65

33:                                               ; preds = %21
  %34 = uitofp nneg i32 %9 to float
  %35 = fsub float %34, %25
  %36 = sitofp i32 %6 to float
  %37 = fsub float %36, %25
  br label %.invoke

.invoke:                                          ; preds = %26, %33
  %.sink = phi float [ %28, %26 ], [ %37, %33 ]
  %.pn44.in = phi i32 [ %3, %26 ], [ %8, %33 ]
  %.pn45.in = phi i32 [ %8, %26 ], [ %4, %33 ]
  %38 = phi float [ %28, %26 ], [ %35, %33 ]
  %39 = phi float [ %30, %26 ], [ %37, %33 ]
  %.pn45 = sitofp i32 %.pn45.in to float
  %40 = fadd float %24, %.pn45
  %.pn44 = sitofp i32 %.pn44.in to float
  %41 = fadd float %24, %.pn44
  %42 = fmul float %.sink, 5.000000e-01
  invoke void @_ZN4juce4Path19addRoundedRectangleEfffff(ptr noundef nonnull align 8 dereferenceable(41) %13, float noundef %41, float noundef %40, float noundef %38, float noundef %39, float noundef %42)
          to label %43 unwind label %31

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

44:                                               ; preds = %43
  %brmerge = or i1 %10, %11
  br i1 %brmerge, label %45, label %49

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  call void @_ZNK4juce6Colour19withMultipliedAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %15, ptr noundef nonnull align 1 dereferenceable(4) %14, float noundef 2.000000e+00) #4
  %46 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN4juce6ColouraSERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %14, ptr noundef nonnull align 1 dereferenceable(4) %15) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  br label %49

47:                                               ; preds = %43
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %64

49:                                               ; preds = %44, %45
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %16, ptr noundef nonnull align 1 dereferenceable(4) %14) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %16)
          to label %50 unwind label %55

50:                                               ; preds = %49
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #4
  invoke void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %13)
          to label %51 unwind label %57

51:                                               ; preds = %50
  %52 = select i1 %brmerge, float 0x3FC99999A0000000, float 0x3FB99999A0000000
  call void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %17, ptr noundef nonnull align 1 dereferenceable(4) %14, float noundef %52) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %17)
          to label %53 unwind label %59

53:                                               ; preds = %51
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %17) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #4
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef 1.000000e+00) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #4
  call void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24) %19) #4
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %13, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(24) %19)
          to label %54 unwind label %61

54:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %13) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #4
  ret void

55:                                               ; preds = %49
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #4
  br label %63

57:                                               ; preds = %50
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %63

59:                                               ; preds = %51
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %17) #4
  br label %63

61:                                               ; preds = %53
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #4
  br label %63

63:                                               ; preds = %61, %59, %57, %55
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ], [ %58, %57 ], [ %56, %55 ]
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #4
  br label %64

64:                                               ; preds = %63, %47
  %.pn.pn = phi { ptr, i32 } [ %.pn, %63 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  br label %65

65:                                               ; preds = %64, %31
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %64 ], [ %32, %31 ]
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %13) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #4
  resume { ptr, i32 } %.pn.pn.pn
}

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,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass