; 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::ColourGradient" = type { %"class.juce::Point.35", %"class.juce::Point.35", i8, [7 x i8], %"class.juce::Array.207" }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Array.207" = type { %"class.juce::ArrayAllocationBase.208", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.208" = type <{ %"class.juce::HeapBlock.209", i32, [4 x i8] }>
%"class.juce::HeapBlock.209" = type { ptr }
%"class.juce::PathStrokeType" = type { float, i32, i32 }
%"class.juce::AffineTransform" = type { float, float, float, float, float, float }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #0

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

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

; Function Attrs: nounwind
declare void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24)) unnamed_addr #2

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

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

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 #2

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 #2

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

declare noundef i32 @_ZN4juce14ColourGradient9addColourEdNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(48), double noundef, ptr noundef) #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4juce4jminIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) #4

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce14LookAndFeel_V220drawShinyButtonShapeERNS_8GraphicsEfffffRKNS_6ColourEfbbbb(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, ptr noundef nonnull align 1 dereferenceable(4) %7, float noundef %8, i1 noundef zeroext %9, i1 noundef zeroext %10, i1 noundef zeroext %11, i1 noundef zeroext %12) #4 align 2 personality ptr @__gxx_personality_v0 {
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca ptr, align 8
  %22 = alloca float, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = alloca float, align 4
  %28 = alloca %"class.juce::Path", align 8
  %29 = alloca %"class.juce::ColourGradient", align 8
  %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::Colour", align 1
  %35 = alloca %"class.juce::Colour", align 1
  %36 = alloca %"class.juce::Colour", align 1
  %37 = alloca %"class.juce::Colour", align 1
  %38 = alloca %"class.juce::PathStrokeType", align 4
  %39 = alloca %"class.juce::AffineTransform", align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store float %2, ptr %16, align 4, !tbaa !9
  store float %3, ptr %17, align 4, !tbaa !9
  store float %4, ptr %18, align 4, !tbaa !9
  store float %5, ptr %19, align 4, !tbaa !9
  store float %6, ptr %20, align 4, !tbaa !9
  store ptr %7, ptr %21, align 8, !tbaa !5
  store float %8, ptr %22, align 4, !tbaa !9
  %40 = zext i1 %9 to i8
  store i8 %40, ptr %23, align 1, !tbaa !11
  %41 = zext i1 %10 to i8
  store i8 %41, ptr %24, align 1, !tbaa !11
  %42 = zext i1 %11 to i8
  store i8 %42, ptr %25, align 1, !tbaa !11
  %43 = zext i1 %12 to i8
  store i8 %43, ptr %26, align 1, !tbaa !11
  %44 = load ptr, ptr %14, align 8
  %45 = load float, ptr %18, align 4, !tbaa !9
  %46 = load float, ptr %22, align 4, !tbaa !9
  %47 = fmul float %46, 0x3FF19999A0000000
  %48 = fcmp ole float %45, %47
  br i1 %48, label %54, label %49

49:                                               ; preds = %13
  %50 = load float, ptr %19, align 4, !tbaa !9
  %51 = load float, ptr %22, align 4, !tbaa !9
  %52 = fmul float %51, 0x3FF19999A0000000
  %53 = fcmp ole float %50, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %49, %13
  br label %125

55:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %56 = load float, ptr %20, align 4, !tbaa !9
  %57 = load float, ptr %18, align 4, !tbaa !9
  %58 = fmul float %57, 5.000000e-01
  %59 = load float, ptr %19, align 4, !tbaa !9
  %60 = fmul float %59, 5.000000e-01
  %61 = invoke noundef float @_ZN4juce4jminIfEET_S1_S1_S1_(float noundef %56, float noundef %58, float noundef %60)
          to label %62 unwind label %126

62:                                               ; preds = %55
  store float %61, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %28) #5
  invoke void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %28)
          to label %63 unwind label %126

63:                                               ; preds = %62
  %64 = load float, ptr %16, align 4, !tbaa !9
  %65 = load float, ptr %17, align 4, !tbaa !9
  %66 = load float, ptr %18, align 4, !tbaa !9
  %67 = load float, ptr %19, align 4, !tbaa !9
  %68 = load float, ptr %27, align 4, !tbaa !9
  %69 = load float, ptr %27, align 4, !tbaa !9
  %70 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %71 = trunc i8 %70 to i1
  br i1 %71, label %75, label %72

72:                                               ; preds = %63
  %73 = load i8, ptr %25, align 1, !tbaa !11, !range !13, !noundef !14
  %74 = trunc i8 %73 to i1
  br label %75

75:                                               ; preds = %72, %63
  %76 = phi i1 [ true, %63 ], [ %74, %72 ]
  %77 = xor i1 %76, true
  %78 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %79 = trunc i8 %78 to i1
  br i1 %79, label %83, label %80

80:                                               ; preds = %75
  %81 = load i8, ptr %25, align 1, !tbaa !11, !range !13, !noundef !14
  %82 = trunc i8 %81 to i1
  br label %83

83:                                               ; preds = %80, %75
  %84 = phi i1 [ true, %75 ], [ %82, %80 ]
  %85 = xor i1 %84, true
  %86 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %87 = trunc i8 %86 to i1
  br i1 %87, label %91, label %88

88:                                               ; preds = %83
  %89 = load i8, ptr %26, align 1, !tbaa !11, !range !13, !noundef !14
  %90 = trunc i8 %89 to i1
  br label %91

91:                                               ; preds = %88, %83
  %92 = phi i1 [ true, %83 ], [ %90, %88 ]
  %93 = xor i1 %92, true
  %94 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %95 = trunc i8 %94 to i1
  br i1 %95, label %99, label %96

96:                                               ; preds = %91
  %97 = load i8, ptr %26, align 1, !tbaa !11, !range !13, !noundef !14
  %98 = trunc i8 %97 to i1
  br label %99

99:                                               ; preds = %96, %91
  %100 = phi i1 [ true, %91 ], [ %98, %96 ]
  %101 = xor i1 %100, true
  invoke void @_ZN4juce4Path19addRoundedRectangleEffffffbbbb(ptr noundef nonnull align 8 dereferenceable(41) %28, float noundef %64, float noundef %65, float noundef %66, float noundef %67, float noundef %68, float noundef %69, i1 noundef zeroext %77, i1 noundef zeroext %85, i1 noundef zeroext %93, i1 noundef zeroext %101)
          to label %102 unwind label %126

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 48, ptr %29) #5
  %103 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %30, ptr noundef nonnull align 1 dereferenceable(4) %103) #5
  %104 = load float, ptr %17, align 4, !tbaa !9
  %105 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %32, i32 noundef 117440767) #5
  call void @_ZNK4juce6Colour12overlaidWithES0_(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %31, ptr noundef nonnull align 1 dereferenceable(4) %105, ptr noundef %32) #5
  %106 = load float, ptr %17, align 4, !tbaa !9
  %107 = load float, ptr %19, align 4, !tbaa !9
  %108 = fadd float %106, %107
  invoke void @_ZN4juce14ColourGradientC1ENS_6ColourEffS1_ffb(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef %30, float noundef 0.000000e+00, float noundef %104, ptr noundef %31, float noundef 0.000000e+00, float noundef %108, i1 noundef zeroext false)
          to label %109 unwind label %126

109:                                              ; preds = %102
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %31) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %32) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %30) #5
  %110 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %34, i32 noundef 872415231) #5
  call void @_ZNK4juce6Colour12overlaidWithES0_(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %33, ptr noundef nonnull align 1 dereferenceable(4) %110, ptr noundef %34) #5
  %111 = invoke noundef i32 @_ZN4juce14ColourGradient9addColourEdNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(48) %29, double noundef 5.000000e-01, ptr noundef %33)
          to label %112 unwind label %126

112:                                              ; preds = %109
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %33) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %34) #5
  %113 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %36, i32 noundef 285212927) #5
  call void @_ZNK4juce6Colour12overlaidWithES0_(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %35, ptr noundef nonnull align 1 dereferenceable(4) %113, ptr noundef %36) #5
  %114 = invoke noundef i32 @_ZN4juce14ColourGradient9addColourEdNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(48) %29, double noundef 5.100000e-01, ptr noundef %35)
          to label %115 unwind label %126

115:                                              ; preds = %112
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %35) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %36) #5
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics15setGradientFillERKNS_14ColourGradientE(ptr noundef nonnull align 8 dereferenceable(17) %116, ptr noundef nonnull align 8 dereferenceable(48) %29)
          to label %117 unwind label %126

117:                                              ; preds = %115
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17) %118, ptr noundef nonnull align 8 dereferenceable(41) %28)
          to label %119 unwind label %126

119:                                              ; preds = %117
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %37, i32 noundef -2147483648) #5
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %120, ptr noundef %37)
          to label %121 unwind label %126

121:                                              ; preds = %119
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %37) #5
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #5
  %123 = load float, ptr %22, align 4, !tbaa !9
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %38, float noundef %123) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #5
  call void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24) %39) #5
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %122, ptr noundef nonnull align 8 dereferenceable(41) %28, ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(24) %39)
          to label %124 unwind label %126

124:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #5
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %38) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #5
  call void @_ZN4juce14ColourGradientD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %29) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #5
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %28) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %125

125:                                              ; preds = %124, %54
  ret void

126:                                              ; preds = %121, %119, %117, %115, %112, %109, %102, %99, %62, %55
  %127 = landingpad { ptr, i32 }
          catch ptr null
  %128 = extractvalue { ptr, i32 } %127, 0
  call void @__clang_call_terminate(ptr %128) #6
  unreachable
}

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

attributes #0 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"float", !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::ColourGradient" = type { %"class.juce::Point.35", %"class.juce::Point.35", i8, [7 x i8], %"class.juce::Array.207" }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Array.207" = type { %"class.juce::ArrayAllocationBase.208", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.208" = type <{ %"class.juce::HeapBlock.209", i32, [4 x i8] }>
%"class.juce::HeapBlock.209" = type { ptr }
%"class.juce::PathStrokeType" = type { float, i32, i32 }
%"class.juce::AffineTransform" = type { float, float, float, float, float, float }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind
declare void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24)) unnamed_addr #2

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

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

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 #2

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 #2

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

declare noundef i32 @_ZN4juce14ColourGradient9addColourEdNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(48), double noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4juce4jminIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce14LookAndFeel_V220drawShinyButtonShapeERNS_8GraphicsEfffffRKNS_6ColourEfbbbb(ptr nocapture noundef nonnull readnone align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, ptr noundef nonnull align 1 dereferenceable(4) %7, float noundef %8, i1 noundef zeroext %9, i1 noundef zeroext %10, i1 noundef zeroext %11, i1 noundef zeroext %12) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %14 = alloca %"class.juce::Path", align 8
  %15 = alloca %"class.juce::ColourGradient", align 8
  %16 = alloca %"class.juce::Colour", align 1
  %17 = alloca %"class.juce::Colour", align 1
  %18 = alloca %"class.juce::Colour", align 1
  %19 = alloca %"class.juce::Colour", align 1
  %20 = alloca %"class.juce::Colour", align 1
  %21 = alloca %"class.juce::Colour", align 1
  %22 = alloca %"class.juce::Colour", align 1
  %23 = alloca %"class.juce::Colour", align 1
  %24 = alloca %"class.juce::PathStrokeType", align 4
  %25 = alloca %"class.juce::AffineTransform", align 4
  %26 = fmul float %8, 0x3FF19999A0000000
  %27 = fcmp ult float %26, %4
  %28 = fcmp ult float %26, %5
  %or.cond = and i1 %27, %28
  br i1 %or.cond, label %29, label %53

29:                                               ; preds = %13
  %30 = fmul float %4, 5.000000e-01
  %31 = fmul float %5, 5.000000e-01
  %32 = tail call noundef float @_ZN4juce4jminIfEET_S1_S1_S1_(float noundef %6, float noundef %30, float noundef %31)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #5
  invoke void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %14)
          to label %33 unwind label %54

33:                                               ; preds = %29
  %34 = or i1 %9, %11
  %35 = xor i1 %34, true
  %36 = or i1 %10, %11
  %37 = xor i1 %36, true
  %38 = or i1 %9, %12
  %39 = xor i1 %38, true
  %40 = or i1 %10, %12
  %41 = xor i1 %40, true
  invoke void @_ZN4juce4Path19addRoundedRectangleEffffffbbbb(ptr noundef nonnull align 8 dereferenceable(41) %14, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %32, float noundef %32, i1 noundef zeroext %35, i1 noundef zeroext %37, i1 noundef zeroext %39, i1 noundef zeroext %41)
          to label %42 unwind label %54

42:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %15) #5
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %16, ptr noundef nonnull align 1 dereferenceable(4) %7) #5
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %18, i32 noundef 117440767) #5
  call void @_ZNK4juce6Colour12overlaidWithES0_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %17, ptr noundef nonnull align 1 dereferenceable(4) %7, ptr noundef nonnull %18) #5
  %43 = fadd float %3, %5
  invoke void @_ZN4juce14ColourGradientC1ENS_6ColourEffS1_ffb(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull %16, float noundef 0.000000e+00, float noundef %3, ptr noundef nonnull %17, float noundef 0.000000e+00, float noundef %43, i1 noundef zeroext false)
          to label %44 unwind label %54

44:                                               ; preds = %42
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %17) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %18) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #5
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %20, i32 noundef 872415231) #5
  call void @_ZNK4juce6Colour12overlaidWithES0_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %19, ptr noundef nonnull align 1 dereferenceable(4) %7, ptr noundef nonnull %20) #5
  %45 = invoke noundef i32 @_ZN4juce14ColourGradient9addColourEdNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(48) %15, double noundef 5.000000e-01, ptr noundef nonnull %19)
          to label %46 unwind label %54

46:                                               ; preds = %44
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %19) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %20) #5
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %22, i32 noundef 285212927) #5
  call void @_ZNK4juce6Colour12overlaidWithES0_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %21, ptr noundef nonnull align 1 dereferenceable(4) %7, ptr noundef nonnull %22) #5
  %47 = invoke noundef i32 @_ZN4juce14ColourGradient9addColourEdNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(48) %15, double noundef 5.100000e-01, ptr noundef nonnull %21)
          to label %48 unwind label %54

48:                                               ; preds = %46
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #5
  invoke void @_ZN4juce8Graphics15setGradientFillERKNS_14ColourGradientE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %49 unwind label %54

49:                                               ; preds = %48
  invoke void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %14)
          to label %50 unwind label %54

50:                                               ; preds = %49
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %23, i32 noundef -2147483648) #5
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %23)
          to label %51 unwind label %54

51:                                               ; preds = %50
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #5
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %24, float noundef %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #5
  call void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24) %25) #5
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %14, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(24) %25)
          to label %52 unwind label %54

52:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #5
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %24) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #5
  call void @_ZN4juce14ColourGradientD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #5
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %14) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #5
  br label %53

53:                                               ; preds = %13, %52
  ret void

54:                                               ; preds = %51, %50, %49, %48, %46, %44, %42, %33, %29
  %55 = landingpad { ptr, i32 }
          catch ptr null
  %56 = extractvalue { ptr, i32 } %55, 0
  call void @__clang_call_terminate(ptr %56) #6
  unreachable
}

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

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