; 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 }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress 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) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4juce18LookAndFeelHelpersL16createBaseColourENS_6ColourEbbb(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce14LookAndFeel_V220drawShinyButtonShapeERNS_8GraphicsEfffffRKNS_6ColourEfbbbb(ptr noundef nonnull align 8 dereferenceable(304), ptr noundef nonnull align 8 dereferenceable(17), float noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef nonnull align 1 dereferenceable(4), float noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V216drawLinearSliderERNS_8GraphicsEiiiifffNS_6Slider11SliderStyleERS3_(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, float noundef %6, float noundef %7, float noundef %8, i32 noundef %9, ptr noundef nonnull align 8 dereferenceable(224) %10) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.juce::Colour", align 1
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i8, align 1
  %27 = alloca %"class.juce::Colour", align 1
  %28 = alloca %"class.juce::Colour", align 1
  %29 = alloca %"class.juce::Colour", align 1
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store i32 %2, ptr %14, align 4, !tbaa !9
  store i32 %3, ptr %15, align 4, !tbaa !9
  store i32 %4, ptr %16, align 4, !tbaa !9
  store i32 %5, ptr %17, align 4, !tbaa !9
  store float %6, ptr %18, align 4, !tbaa !11
  store float %7, ptr %19, align 4, !tbaa !11
  store float %8, ptr %20, align 4, !tbaa !11
  store i32 %9, ptr %21, align 4, !tbaa !13
  store ptr %10, ptr %22, align 8, !tbaa !5
  %30 = load ptr, ptr %12, align 8
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %23, ptr noundef nonnull align 8 dereferenceable(197) %32, i32 noundef 16781824, i1 noundef zeroext false)
  invoke void @_ZNK4juce8Graphics7fillAllENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %31, ptr noundef %23)
          to label %33 unwind label %103

33:                                               ; preds = %11
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #5
  %34 = load i32, ptr %21, align 4, !tbaa !13
  %35 = icmp eq i32 %34, 2
  br i1 %35, label %39, label %36

36:                                               ; preds = %33
  %37 = load i32, ptr %21, align 4, !tbaa !13
  %38 = icmp eq i32 %37, 3
  br i1 %38, label %39, label %111

39:                                               ; preds = %36, %33
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  %40 = load ptr, ptr %22, align 8, !tbaa !5
  %41 = call noundef zeroext i1 @_ZNK4juce9Component21isMouseOverOrDraggingEb(ptr noundef nonnull align 8 dereferenceable(197) %40, i1 noundef zeroext false)
  br i1 %41, label %42, label %45

42:                                               ; preds = %39
  %43 = load ptr, ptr %22, align 8, !tbaa !5
  %44 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %43) #5
  br label %45

45:                                               ; preds = %42, %39
  %46 = phi i1 [ false, %39 ], [ %44, %42 ]
  %47 = zext i1 %46 to i8
  store i8 %47, ptr %26, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %48 = load ptr, ptr %22, 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 16782080, i1 noundef zeroext false)
  %49 = load ptr, ptr %22, align 8, !tbaa !5
  %50 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %49) #5
  %51 = zext i1 %50 to i64
  %52 = select i1 %50, float 1.000000e+00, float 5.000000e-01
  call void @_ZNK4juce6Colour24withMultipliedSaturationEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %28, ptr noundef nonnull align 1 dereferenceable(4) %29, float noundef %52) #5
  %53 = load i8, ptr %26, align 1, !tbaa !15, !range !17, !noundef !18
  %54 = trunc i8 %53 to i1
  %55 = load i8, ptr %26, align 1, !tbaa !15, !range !17, !noundef !18
  %56 = trunc i8 %55 to i1
  br i1 %56, label %61, label %57

57:                                               ; preds = %45
  %58 = load ptr, ptr %22, align 8, !tbaa !5
  %59 = invoke noundef zeroext i1 @_ZNK4juce9Component17isMouseButtonDownEv(ptr noundef nonnull align 8 dereferenceable(197) %58)
          to label %60 unwind label %107

60:                                               ; preds = %57
  br label %61

61:                                               ; preds = %60, %45
  %62 = phi i1 [ true, %45 ], [ %59, %60 ]
  call void @_ZN4juce18LookAndFeelHelpersL16createBaseColourENS_6ColourEbbb(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %27, ptr noundef %28, i1 noundef zeroext false, i1 noundef zeroext %54, i1 noundef zeroext %62) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %28) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = load i32, ptr %14, align 4, !tbaa !9
  %65 = sitofp i32 %64 to float
  %66 = load i32, ptr %21, align 4, !tbaa !13
  %67 = icmp eq i32 %66, 3
  br i1 %67, label %68, label %70

68:                                               ; preds = %61
  %69 = load float, ptr %18, align 4, !tbaa !11
  br label %73

70:                                               ; preds = %61
  %71 = load i32, ptr %15, align 4, !tbaa !9
  %72 = sitofp i32 %71 to float
  br label %73

73:                                               ; preds = %70, %68
  %74 = phi float [ %69, %68 ], [ %72, %70 ]
  %75 = load i32, ptr %21, align 4, !tbaa !13
  %76 = icmp eq i32 %75, 3
  br i1 %76, label %77, label %80

77:                                               ; preds = %73
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = sitofp i32 %78 to float
  br label %85

80:                                               ; preds = %73
  %81 = load float, ptr %18, align 4, !tbaa !11
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = sitofp i32 %82 to float
  %84 = fsub float %81, %83
  br label %85

85:                                               ; preds = %80, %77
  %86 = phi float [ %79, %77 ], [ %84, %80 ]
  %87 = load i32, ptr %21, align 4, !tbaa !13
  %88 = icmp eq i32 %87, 3
  br i1 %88, label %89, label %94

89:                                               ; preds = %85
  %90 = load i32, ptr %17, align 4, !tbaa !9
  %91 = sitofp i32 %90 to float
  %92 = load float, ptr %18, align 4, !tbaa !11
  %93 = fsub float %91, %92
  br label %97

94:                                               ; preds = %85
  %95 = load i32, ptr %17, align 4, !tbaa !9
  %96 = sitofp i32 %95 to float
  br label %97

97:                                               ; preds = %94, %89
  %98 = phi float [ %93, %89 ], [ %96, %94 ]
  %99 = load ptr, ptr %22, align 8, !tbaa !5
  %100 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %99) #5
  %101 = zext i1 %100 to i64
  %102 = select i1 %100, float 0x3FECCCCCC0000000, float 0x3FD3333340000000
  call void @_ZN4juce14LookAndFeel_V220drawShinyButtonShapeERNS_8GraphicsEfffffRKNS_6ColourEfbbbb(ptr noundef nonnull align 8 dereferenceable(304) %30, ptr noundef nonnull align 8 dereferenceable(17) %63, float noundef %65, float noundef %74, float noundef %86, float noundef %98, float noundef 0.000000e+00, ptr noundef nonnull align 1 dereferenceable(4) %27, float noundef %102, i1 noundef zeroext true, i1 noundef zeroext true, i1 noundef zeroext true, i1 noundef zeroext true) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  br label %138

103:                                              ; preds = %11
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %24, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %25, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #5
  br label %139

107:                                              ; preds = %57
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %24, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %25, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %28) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  br label %139

111:                                              ; preds = %36
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = load i32, ptr %16, align 4, !tbaa !9
  %116 = load i32, ptr %17, align 4, !tbaa !9
  %117 = load float, ptr %18, align 4, !tbaa !11
  %118 = load float, ptr %19, align 4, !tbaa !11
  %119 = load float, ptr %20, align 4, !tbaa !11
  %120 = load i32, ptr %21, align 4, !tbaa !13
  %121 = load ptr, ptr %22, align 8, !tbaa !5
  %122 = load ptr, ptr %30, align 8, !tbaa !19
  %123 = getelementptr inbounds ptr, ptr %122, i64 69
  %124 = load ptr, ptr %123, align 8
  call void %124(ptr noundef nonnull align 8 dereferenceable(304) %30, ptr noundef nonnull align 8 dereferenceable(17) %112, i32 noundef %113, i32 noundef %114, i32 noundef %115, i32 noundef %116, float noundef %117, float noundef %118, float noundef %119, i32 noundef %120, ptr noundef nonnull align 8 dereferenceable(224) %121)
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = load i32, ptr %15, align 4, !tbaa !9
  %128 = load i32, ptr %16, align 4, !tbaa !9
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = load float, ptr %18, align 4, !tbaa !11
  %131 = load float, ptr %19, align 4, !tbaa !11
  %132 = load float, ptr %20, align 4, !tbaa !11
  %133 = load i32, ptr %21, align 4, !tbaa !13
  %134 = load ptr, ptr %22, align 8, !tbaa !5
  %135 = load ptr, ptr %30, align 8, !tbaa !19
  %136 = getelementptr inbounds ptr, ptr %135, i64 70
  %137 = load ptr, ptr %136, align 8
  call void %137(ptr noundef nonnull align 8 dereferenceable(304) %30, ptr noundef nonnull align 8 dereferenceable(17) %125, i32 noundef %126, i32 noundef %127, i32 noundef %128, i32 noundef %129, float noundef %130, float noundef %131, float noundef %132, i32 noundef %133, ptr noundef nonnull align 8 dereferenceable(224) %134)
  br label %138

138:                                              ; preds = %111, %97
  ret void

139:                                              ; preds = %107, %103
  %140 = load ptr, ptr %24, align 8
  %141 = load i32, ptr %25, align 4
  %142 = insertvalue { ptr, i32 } poison, ptr %140, 0
  %143 = insertvalue { ptr, i32 } %142, i32 %141, 1
  resume { ptr, i32 } %143
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN4juce6Slider11SliderStyleE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !8, i64 0}


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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress 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 #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4juce18LookAndFeelHelpersL16createBaseColourENS_6ColourEbbb(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce14LookAndFeel_V220drawShinyButtonShapeERNS_8GraphicsEfffffRKNS_6ColourEfbbbb(ptr noundef nonnull align 8 dereferenceable(304), ptr noundef nonnull align 8 dereferenceable(17), float noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef nonnull align 1 dereferenceable(4), float noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V216drawLinearSliderERNS_8GraphicsEiiiifffNS_6Slider11SliderStyleERS3_(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, float noundef %6, float noundef %7, float noundef %8, i32 noundef %9, ptr noundef nonnull align 8 dereferenceable(224) %10) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %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::Colour", align 1
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %12, ptr noundef nonnull align 8 dereferenceable(197) %10, i32 noundef 16781824, i1 noundef zeroext false)
  invoke void @_ZNK4juce8Graphics7fillAllENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %12)
          to label %16 unwind label %42

16:                                               ; preds = %11
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %12) #5
  %17 = icmp eq i32 %9, 3
  %18 = and i32 %9, -2
  %or.cond = icmp eq i32 %18, 2
  br i1 %or.cond, label %19, label %46

19:                                               ; preds = %16
  %20 = call noundef zeroext i1 @_ZNK4juce9Component21isMouseOverOrDraggingEb(ptr noundef nonnull align 8 dereferenceable(197) %10, i1 noundef zeroext false)
  br i1 %20, label %21, label %23

21:                                               ; preds = %19
  %22 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #5
  br label %23

23:                                               ; preds = %21, %19
  %24 = phi i1 [ false, %19 ], [ %22, %21 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %15, ptr noundef nonnull align 8 dereferenceable(197) %10, i32 noundef 16782080, i1 noundef zeroext false)
  %25 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #5
  %26 = select i1 %25, float 1.000000e+00, float 5.000000e-01
  call void @_ZNK4juce6Colour24withMultipliedSaturationEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %14, ptr noundef nonnull align 1 dereferenceable(4) %15, float noundef %26) #5
  br i1 %24, label %29, label %27

27:                                               ; preds = %23
  %28 = invoke noundef zeroext i1 @_ZNK4juce9Component17isMouseButtonDownEv(ptr noundef nonnull align 8 dereferenceable(197) %10)
          to label %29 unwind label %44

29:                                               ; preds = %27, %23
  %30 = phi i1 [ true, %23 ], [ %28, %27 ]
  call void @_ZN4juce18LookAndFeelHelpersL16createBaseColourENS_6ColourEbbb(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %13, ptr noundef nonnull %14, i1 noundef zeroext false, i1 noundef zeroext %24, i1 noundef zeroext %30) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  %31 = sitofp i32 %2 to float
  %32 = sitofp i32 %3 to float
  %33 = select i1 %17, float %6, float %32
  %34 = sitofp i32 %4 to float
  %35 = fsub float %6, %31
  %36 = select i1 %17, float %34, float %35
  %37 = sitofp i32 %5 to float
  %38 = select i1 %17, float %6, float 0.000000e+00
  %39 = fsub float %37, %38
  %40 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #5
  %41 = select i1 %40, float 0x3FECCCCCC0000000, float 0x3FD3333340000000
  call void @_ZN4juce14LookAndFeel_V220drawShinyButtonShapeERNS_8GraphicsEfffffRKNS_6ColourEfbbbb(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %31, float noundef %33, float noundef %36, float noundef %39, float noundef 0.000000e+00, ptr noundef nonnull align 1 dereferenceable(4) %13, float noundef %41, i1 noundef zeroext true, i1 noundef zeroext true, i1 noundef zeroext true, i1 noundef zeroext true) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  br label %53

42:                                               ; preds = %11
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %12) #5
  br label %54

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

46:                                               ; preds = %16
  %47 = load ptr, ptr %0, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 552
  %49 = load ptr, ptr %48, align 8
  call void %49(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, float noundef %6, float noundef %7, float noundef %8, i32 noundef %9, ptr noundef nonnull align 8 dereferenceable(224) %10)
  %50 = load ptr, ptr %0, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 560
  %52 = load ptr, ptr %51, align 8
  call void %52(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, float noundef %6, float noundef %7, float noundef %8, i32 noundef %9, ptr noundef nonnull align 8 dereferenceable(224) %10)
  br label %53

53:                                               ; preds = %46, %29
  ret void

54:                                               ; preds = %44, %42
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  resume { ptr, i32 } %.pn
}

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

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


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