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

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 nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component16hasKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197), 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)) #1 align 2

; 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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V320drawButtonBackgroundERNS_8GraphicsERNS_6ButtonERKNS_6ColourEbb(ptr noundef nonnull align 8 dereferenceable(316) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(375) %2, ptr noundef nonnull align 1 dereferenceable(4) %3, i1 noundef zeroext %4, i1 noundef zeroext %5) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca %"class.juce::Colour", align 1
  %14 = alloca %"class.juce::Colour", align 1
  %15 = alloca %"class.juce::Colour", align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %"class.juce::Path", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.juce::Colour", align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  %27 = zext i1 %4 to i8
  store i8 %27, ptr %11, align 1, !tbaa !9
  %28 = zext i1 %5 to i8
  store i8 %28, ptr %12, align 1, !tbaa !9
  %29 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZNK4juce9Component16hasKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197) %31, i1 noundef zeroext true)
  %33 = zext i1 %32 to i64
  %34 = select i1 %32, float 0x3FF4CCCCC0000000, float 0x3FECCCCCC0000000
  call void @_ZNK4juce6Colour24withMultipliedSaturationEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %14, ptr noundef nonnull align 1 dereferenceable(4) %30, float noundef %34) #5
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %35) #5
  %37 = zext i1 %36 to i64
  %38 = select i1 %36, float 0x3FECCCCCC0000000, float 5.000000e-01
  call void @_ZNK4juce6Colour19withMultipliedAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %13, ptr noundef nonnull align 1 dereferenceable(4) %14, float noundef %38) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %39 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %40 = trunc i8 %39 to i1
  br i1 %40, label %44, label %41

41:                                               ; preds = %6
  %42 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %50

44:                                               ; preds = %41, %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %45 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %46 = trunc i8 %45 to i1
  %47 = zext i1 %46 to i64
  %48 = select i1 %46, float 0x3FC99999A0000000, float 0x3FB99999A0000000
  call void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %15, ptr noundef nonnull align 1 dereferenceable(4) %13, float noundef %48) #5
  %49 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN4juce6ColouraSERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %13, ptr noundef nonnull align 1 dereferenceable(4) %15) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %50

50:                                               ; preds = %44, %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZNK4juce6Button17isConnectedOnLeftEv(ptr noundef nonnull align 8 dereferenceable(375) %51) #5
  %53 = zext i1 %52 to i8
  store i8 %53, ptr %16, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = call noundef zeroext i1 @_ZNK4juce6Button18isConnectedOnRightEv(ptr noundef nonnull align 8 dereferenceable(375) %54) #5
  %56 = zext i1 %55 to i8
  store i8 %56, ptr %17, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZNK4juce6Button16isConnectedOnTopEv(ptr noundef nonnull align 8 dereferenceable(375) %57) #5
  %59 = zext i1 %58 to i8
  store i8 %59, ptr %18, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = call noundef zeroext i1 @_ZNK4juce6Button19isConnectedOnBottomEv(ptr noundef nonnull align 8 dereferenceable(375) %60) #5
  %62 = zext i1 %61 to i8
  store i8 %62, ptr %19, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %63) #5
  %65 = sitofp i32 %64 to float
  %66 = fsub float %65, 1.000000e+00
  store float %66, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %67) #5
  %69 = sitofp i32 %68 to float
  %70 = fsub float %69, 1.000000e+00
  store float %70, ptr %21, align 4, !tbaa !13
  %71 = load float, ptr %20, align 4, !tbaa !13
  %72 = fcmp ogt float %71, 0.000000e+00
  br i1 %72, label %73, label %130

73:                                               ; preds = %50
  %74 = load float, ptr %21, align 4, !tbaa !13
  %75 = fcmp ogt float %74, 0.000000e+00
  br i1 %75, label %76, label %130

76:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store float 4.000000e+00, ptr %22, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 48, ptr %23) #5
  invoke void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %23)
          to label %77 unwind label %116

77:                                               ; preds = %76
  %78 = load float, ptr %20, align 4, !tbaa !13
  %79 = load float, ptr %21, align 4, !tbaa !13
  %80 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %81 = trunc i8 %80 to i1
  br i1 %81, label %85, label %82

82:                                               ; preds = %77
  %83 = load i8, ptr %18, align 1, !tbaa !9, !range !11, !noundef !12
  %84 = trunc i8 %83 to i1
  br label %85

85:                                               ; preds = %82, %77
  %86 = phi i1 [ true, %77 ], [ %84, %82 ]
  %87 = xor i1 %86, true
  %88 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %89 = trunc i8 %88 to i1
  br i1 %89, label %93, label %90

90:                                               ; preds = %85
  %91 = load i8, ptr %18, align 1, !tbaa !9, !range !11, !noundef !12
  %92 = trunc i8 %91 to i1
  br label %93

93:                                               ; preds = %90, %85
  %94 = phi i1 [ true, %85 ], [ %92, %90 ]
  %95 = xor i1 %94, true
  %96 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %97 = trunc i8 %96 to i1
  br i1 %97, label %101, label %98

98:                                               ; preds = %93
  %99 = load i8, ptr %19, align 1, !tbaa !9, !range !11, !noundef !12
  %100 = trunc i8 %99 to i1
  br label %101

101:                                              ; preds = %98, %93
  %102 = phi i1 [ true, %93 ], [ %100, %98 ]
  %103 = xor i1 %102, true
  %104 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %105 = trunc i8 %104 to i1
  br i1 %105, label %109, label %106

106:                                              ; preds = %101
  %107 = load i8, ptr %19, align 1, !tbaa !9, !range !11, !noundef !12
  %108 = trunc i8 %107 to i1
  br label %109

109:                                              ; preds = %106, %101
  %110 = phi i1 [ true, %101 ], [ %108, %106 ]
  %111 = xor i1 %110, true
  invoke void @_ZN4juce4Path19addRoundedRectangleEffffffbbbb(ptr noundef nonnull align 8 dereferenceable(41) %23, float noundef 5.000000e-01, float noundef 5.000000e-01, float noundef %78, float noundef %79, float noundef 4.000000e+00, float noundef 4.000000e+00, i1 noundef zeroext %87, i1 noundef zeroext %95, i1 noundef zeroext %103, i1 noundef zeroext %111)
          to label %112 unwind label %120

112:                                              ; preds = %109
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %26, ptr noundef nonnull align 1 dereferenceable(4) %13) #5
  %114 = load float, ptr %21, align 4, !tbaa !13
  invoke void @_ZN4juceL15drawButtonShapeERNS_8GraphicsERKNS_4PathENS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17) %113, ptr noundef nonnull align 8 dereferenceable(41) %23, ptr noundef %26, float noundef %114)
          to label %115 unwind label %124

115:                                              ; preds = %112
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %26) #5
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %23) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %130

116:                                              ; preds = %76
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %24, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %25, align 4
  br label %129

120:                                              ; preds = %109
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %24, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %25, align 4
  br label %128

124:                                              ; preds = %112
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %24, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %25, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %26) #5
  br label %128

128:                                              ; preds = %124, %120
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %23) #5
  br label %129

129:                                              ; preds = %128, %116
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %131

130:                                              ; preds = %115, %73, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void

131:                                              ; preds = %129
  %132 = load ptr, ptr %24, align 8
  %133 = load i32, ptr %25, align 4
  %134 = insertvalue { ptr, i32 } poison, ptr %132, 0
  %135 = insertvalue { ptr, i32 } %134, i32 %133, 1
  resume { ptr, i32 } %135
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juceL15drawButtonShapeERNS_8GraphicsERKNS_4PathENS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41), ptr noundef, float noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 }

!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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"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 }

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 nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component16hasKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197), 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 #1 align 2

; 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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V320drawButtonBackgroundERNS_8GraphicsERNS_6ButtonERKNS_6ColourEbb(ptr nocapture noundef nonnull readnone align 8 dereferenceable(316) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(375) %2, ptr noundef nonnull align 1 dereferenceable(4) %3, i1 noundef zeroext %4, i1 noundef zeroext %5) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.juce::Colour", align 1
  %8 = alloca %"class.juce::Colour", align 1
  %9 = alloca %"class.juce::Colour", align 1
  %10 = alloca %"class.juce::Path", align 8
  %11 = alloca %"class.juce::Colour", align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %12 = tail call noundef zeroext i1 @_ZNK4juce9Component16hasKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197) %2, i1 noundef zeroext true)
  %13 = select i1 %12, float 0x3FF4CCCCC0000000, float 0x3FECCCCCC0000000
  call void @_ZNK4juce6Colour24withMultipliedSaturationEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %8, ptr noundef nonnull align 1 dereferenceable(4) %3, float noundef %13) #5
  %14 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %2) #5
  %15 = select i1 %14, float 0x3FECCCCCC0000000, float 5.000000e-01
  call void @_ZNK4juce6Colour19withMultipliedAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %7, ptr noundef nonnull align 1 dereferenceable(4) %8, float noundef %15) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %brmerge = or i1 %4, %5
  br i1 %brmerge, label %16, label %18

16:                                               ; preds = %6
  %.mux = select i1 %5, float 0x3FC99999A0000000, float 0x3FB99999A0000000
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @_ZNK4juce6Colour11contrastingEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %9, ptr noundef nonnull align 1 dereferenceable(4) %7, float noundef %.mux) #5
  %17 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN4juce6ColouraSERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(4) %9) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %18

18:                                               ; preds = %6, %16
  %19 = call noundef zeroext i1 @_ZNK4juce6Button17isConnectedOnLeftEv(ptr noundef nonnull align 8 dereferenceable(375) %2) #5
  %20 = call noundef zeroext i1 @_ZNK4juce6Button18isConnectedOnRightEv(ptr noundef nonnull align 8 dereferenceable(375) %2) #5
  %21 = call noundef zeroext i1 @_ZNK4juce6Button16isConnectedOnTopEv(ptr noundef nonnull align 8 dereferenceable(375) %2) #5
  %22 = call noundef zeroext i1 @_ZNK4juce6Button19isConnectedOnBottomEv(ptr noundef nonnull align 8 dereferenceable(375) %2) #5
  %23 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %2) #5
  %24 = sitofp i32 %23 to float
  %25 = fadd float %24, -1.000000e+00
  %26 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %2) #5
  %27 = sitofp i32 %26 to float
  %28 = fadd float %27, -1.000000e+00
  %29 = fcmp ogt float %25, 0.000000e+00
  %30 = fcmp ogt float %28, 0.000000e+00
  %or.cond = and i1 %29, %30
  br i1 %or.cond, label %31, label %51

31:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #5
  invoke void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10)
          to label %32 unwind label %43

32:                                               ; preds = %31
  %33 = or i1 %19, %21
  %34 = xor i1 %33, true
  %35 = or i1 %20, %21
  %36 = xor i1 %35, true
  %37 = or i1 %19, %22
  %38 = xor i1 %37, true
  %39 = or i1 %20, %22
  %40 = xor i1 %39, true
  invoke void @_ZN4juce4Path19addRoundedRectangleEffffffbbbb(ptr noundef nonnull align 8 dereferenceable(41) %10, float noundef 5.000000e-01, float noundef 5.000000e-01, float noundef %25, float noundef %28, float noundef 4.000000e+00, float noundef 4.000000e+00, i1 noundef zeroext %34, i1 noundef zeroext %36, i1 noundef zeroext %38, i1 noundef zeroext %40)
          to label %41 unwind label %45

41:                                               ; preds = %32
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(4) %7) #5
  invoke void @_ZN4juceL15drawButtonShapeERNS_8GraphicsERKNS_4PathENS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %10, ptr noundef nonnull %11, float noundef %28)
          to label %42 unwind label %47

42:                                               ; preds = %41
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #5
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #5
  br label %51

43:                                               ; preds = %31
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %50

45:                                               ; preds = %32
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %49

47:                                               ; preds = %41
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #5
  br label %49

49:                                               ; preds = %47, %45
  %.pn = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #5
  br label %50

50:                                               ; preds = %49, %43
  %.pn.pn = phi { ptr, i32 } [ %.pn, %49 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  resume { ptr, i32 } %.pn.pn

51:                                               ; preds = %42, %18
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juceL15drawButtonShapeERNS_8GraphicsERKNS_4PathENS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41), ptr noundef, float noundef) local_unnamed_addr #4

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

!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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass