; 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::Font" = type { %"class.juce::ReferenceCountedObjectPtr.158" }
%"class.juce::ReferenceCountedObjectPtr.158" = type { ptr }
%"class.juce::Justification" = 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 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 i32 @_ZN4juce10roundToIntIfEEiT_(float noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13JustificationC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce6Button13getButtonTextEv(ptr noundef nonnull align 8 dereferenceable(375)) #1 align 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) #4

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

; Function Attrs: nounwind
declare noundef float @_ZNK4juce4Font9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @_ZNK4juce8Graphics14drawFittedTextERKNS_6StringEiiiiNS_13JustificationEif(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, float noundef) #3

; 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 uwtable
define dso_local void @_ZN4juce14LookAndFeel_V214drawButtonTextERNS_8GraphicsERNS_10TextButtonEbb(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(375) %2, i1 noundef zeroext %3, i1 noundef zeroext %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca %"class.juce::Font", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.juce::Colour", align 1
  %15 = alloca %"class.juce::Colour", align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.juce::Justification", align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  %23 = zext i1 %3 to i8
  store i8 %23, ptr %9, align 1, !tbaa !9
  %24 = zext i1 %4 to i8
  store i8 %24, ptr %10, align 1, !tbaa !9
  %25 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %27) #5
  %29 = load ptr, ptr %25, align 8, !tbaa !11
  %30 = getelementptr inbounds ptr, ptr %29, i64 18
  %31 = load ptr, ptr %30, align 8
  call void %31(ptr dead_on_unwind writable sret(%"class.juce::Font") align 8 %11, ptr noundef nonnull align 8 dereferenceable(304) %25, ptr noundef nonnull align 8 dereferenceable(375) %26, i32 noundef %28)
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN4juce8Graphics7setFontERKNS_4FontE(ptr noundef nonnull align 8 dereferenceable(17) %32, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %33 unwind label %102

33:                                               ; preds = %5
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZNK4juce6Button14getToggleStateEv(ptr noundef nonnull align 8 dereferenceable(375) %36) #5
  %38 = zext i1 %37 to i64
  %39 = select i1 %37, i32 16777475, i32 16777474
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %15, ptr noundef nonnull align 8 dereferenceable(197) %35, i32 noundef %39, i1 noundef zeroext false)
          to label %40 unwind label %106

40:                                               ; preds = %33
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %41) #5
  %43 = zext i1 %42 to i64
  %44 = select i1 %42, float 1.000000e+00, float 5.000000e-01
  call void @_ZNK4juce6Colour19withMultipliedAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %14, ptr noundef nonnull align 1 dereferenceable(4) %15, float noundef %44) #5
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %34, ptr noundef %14)
          to label %45 unwind label %110

45:                                               ; preds = %40
  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 %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = call noundef i32 @_ZNK4juce9Component18proportionOfHeightEf(ptr noundef nonnull align 8 dereferenceable(197) %46, float noundef 0x3FD3333340000000) #5
  %48 = invoke noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef 4, i32 noundef %47)
          to label %49 unwind label %115

49:                                               ; preds = %45
  store i32 %48, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %50) #5
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %52) #5
  %54 = invoke noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %51, i32 noundef %53)
          to label %55 unwind label %119

55:                                               ; preds = %49
  %56 = sdiv i32 %54, 2
  store i32 %56, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %57 = call noundef float @_ZNK4juce4Font9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %58 = fmul float %57, 0x3FE3333340000000
  %59 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %58) #5
  store i32 %59, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %60 = load i32, ptr %18, align 4, !tbaa !13
  %61 = load i32, ptr %17, align 4, !tbaa !13
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZNK4juce6Button17isConnectedOnLeftEv(ptr noundef nonnull align 8 dereferenceable(375) %62) #5
  %64 = zext i1 %63 to i64
  %65 = select i1 %63, i32 4, i32 2
  %66 = sdiv i32 %61, %65
  %67 = add nsw i32 2, %66
  %68 = invoke noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %60, i32 noundef %67)
          to label %69 unwind label %123

69:                                               ; preds = %55
  store i32 %68, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %70 = load i32, ptr %18, align 4, !tbaa !13
  %71 = load i32, ptr %17, align 4, !tbaa !13
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = call noundef zeroext i1 @_ZNK4juce6Button18isConnectedOnRightEv(ptr noundef nonnull align 8 dereferenceable(375) %72) #5
  %74 = zext i1 %73 to i64
  %75 = select i1 %73, i32 4, i32 2
  %76 = sdiv i32 %71, %75
  %77 = add nsw i32 2, %76
  %78 = invoke noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %70, i32 noundef %77)
          to label %79 unwind label %127

79:                                               ; preds = %69
  store i32 %78, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %80) #5
  %82 = load i32, ptr %19, align 4, !tbaa !13
  %83 = sub nsw i32 %81, %82
  %84 = load i32, ptr %20, align 4, !tbaa !13
  %85 = sub nsw i32 %83, %84
  store i32 %85, ptr %21, align 4, !tbaa !13
  %86 = load i32, ptr %21, align 4, !tbaa !13
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %88, label %135

88:                                               ; preds = %79
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce6Button13getButtonTextEv(ptr noundef nonnull align 8 dereferenceable(375) %90)
          to label %92 unwind label %131

92:                                               ; preds = %88
  %93 = load i32, ptr %19, align 4, !tbaa !13
  %94 = load i32, ptr %16, align 4, !tbaa !13
  %95 = load i32, ptr %21, align 4, !tbaa !13
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %96) #5
  %98 = load i32, ptr %16, align 4, !tbaa !13
  %99 = mul nsw i32 %98, 2
  %100 = sub nsw i32 %97, %99
  call void @_ZN4juce13JustificationC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 noundef 36) #5
  invoke void @_ZNK4juce8Graphics14drawFittedTextERKNS_6StringEiiiiNS_13JustificationEif(ptr noundef nonnull align 8 dereferenceable(17) %89, ptr noundef nonnull align 8 dereferenceable(8) %91, i32 noundef %93, i32 noundef %94, i32 noundef %95, i32 noundef %100, ptr noundef %22, i32 noundef 2, float noundef 0.000000e+00)
          to label %101 unwind label %131

101:                                              ; preds = %92
  br label %135

102:                                              ; preds = %5
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %12, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %13, align 4
  br label %140

106:                                              ; preds = %33
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %12, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %13, align 4
  br label %114

110:                                              ; preds = %40
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %12, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %13, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #5
  br label %114

114:                                              ; preds = %110, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %140

115:                                              ; preds = %45
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %12, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %13, align 4
  br label %139

119:                                              ; preds = %49
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %12, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %13, align 4
  br label %138

123:                                              ; preds = %55
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %12, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %13, align 4
  br label %137

127:                                              ; preds = %69
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %12, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %13, align 4
  br label %136

131:                                              ; preds = %92, %88
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %12, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %136

135:                                              ; preds = %101, %79
  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 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @_ZN4juce4FontD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  ret void

136:                                              ; preds = %131, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %137

137:                                              ; preds = %136, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %138

138:                                              ; preds = %137, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %139

139:                                              ; preds = %138, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %140

140:                                              ; preds = %139, %114, %102
  call void @_ZN4juce4FontD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr %12, align 8
  %143 = load i32, ptr %13, align 4
  %144 = insertvalue { ptr, i32 } poison, ptr %142, 0
  %145 = insertvalue { ptr, i32 } %144, i32 %143, 1
  resume { ptr, i32 } %145
}

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 = { 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 "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 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !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::Font" = type { %"class.juce::ReferenceCountedObjectPtr.158" }
%"class.juce::ReferenceCountedObjectPtr.158" = type { ptr }
%"class.juce::Justification" = 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 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 i32 @_ZN4juce10roundToIntIfEEiT_(float noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13JustificationC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce6Button13getButtonTextEv(ptr noundef nonnull align 8 dereferenceable(375)) local_unnamed_addr #1 align 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 #4

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

; Function Attrs: nounwind
declare noundef float @_ZNK4juce4Font9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; 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 uwtable
define dso_local void @_ZN4juce14LookAndFeel_V214drawButtonTextERNS_8GraphicsERNS_10TextButtonEbb(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(375) %2, i1 noundef zeroext %3, i1 noundef zeroext %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.juce::Font", align 8
  %7 = alloca %"class.juce::Colour", align 1
  %8 = alloca %"class.juce::Colour", align 1
  %9 = alloca %"class.juce::Justification", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %10 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %2) #5
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 144
  %13 = load ptr, ptr %12, align 8
  call void %13(ptr dead_on_unwind nonnull writable sret(%"class.juce::Font") align 8 %6, ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(375) %2, i32 noundef %10)
  invoke void @_ZN4juce8Graphics7setFontERKNS_4FontE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %14 unwind label %49

14:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %15 = call noundef zeroext i1 @_ZNK4juce6Button14getToggleStateEv(ptr noundef nonnull align 8 dereferenceable(375) %2) #5
  %16 = select i1 %15, i32 16777475, i32 16777474
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %8, ptr noundef nonnull align 8 dereferenceable(197) %2, i32 noundef %16, i1 noundef zeroext false)
          to label %17 unwind label %51

17:                                               ; preds = %14
  %18 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %2) #5
  %19 = select i1 %18, float 1.000000e+00, 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 %19) #5
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %7)
          to label %20 unwind label %53

20:                                               ; preds = %17
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %7) #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
  %21 = call noundef i32 @_ZNK4juce9Component18proportionOfHeightEf(ptr noundef nonnull align 8 dereferenceable(197) %2, float noundef 0x3FD3333340000000) #5
  %22 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef 4, i32 noundef %21)
  %23 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %2) #5
  %24 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %2) #5
  %25 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %23, i32 noundef %24)
  %26 = sdiv i32 %25, 2
  %27 = call noundef float @_ZNK4juce4Font9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %28 = fmul float %27, 0x3FE3333340000000
  %29 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %28) #5
  %30 = call noundef zeroext i1 @_ZNK4juce6Button17isConnectedOnLeftEv(ptr noundef nonnull align 8 dereferenceable(375) %2) #5
  %31 = select i1 %30, i32 4, i32 2
  %32 = sdiv i32 %26, %31
  %33 = add nsw i32 %32, 2
  %34 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %29, i32 noundef %33)
  %35 = call noundef zeroext i1 @_ZNK4juce6Button18isConnectedOnRightEv(ptr noundef nonnull align 8 dereferenceable(375) %2) #5
  %36 = select i1 %35, i32 4, i32 2
  %37 = sdiv i32 %26, %36
  %38 = add nsw i32 %37, 2
  %39 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %29, i32 noundef %38)
  %40 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %2) #5
  %41 = add i32 %39, %34
  %42 = sub i32 %40, %41
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %44, label %58

44:                                               ; preds = %20
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce6Button13getButtonTextEv(ptr noundef nonnull align 8 dereferenceable(375) %2)
  %46 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %2) #5
  %47 = shl nsw i32 %22, 1
  %48 = sub nsw i32 %46, %47
  call void @_ZN4juce13JustificationC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 36) #5
  invoke void @_ZNK4juce8Graphics14drawFittedTextERKNS_6StringEiiiiNS_13JustificationEif(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(8) %45, i32 noundef %34, i32 noundef %22, i32 noundef %42, i32 noundef %48, ptr noundef nonnull %9, i32 noundef 2, float noundef 0.000000e+00)
          to label %58 unwind label %56

49:                                               ; preds = %5
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %59

51:                                               ; preds = %14
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %17
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %7) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %8) #5
  br label %55

55:                                               ; preds = %53, %51
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %59

56:                                               ; preds = %44
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %59

58:                                               ; preds = %44, %20
  call void @_ZN4juce4FontD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  ret void

59:                                               ; preds = %56, %55, %49
  %.pn33 = phi { ptr, i32 } [ %57, %56 ], [ %.pn, %55 ], [ %50, %49 ]
  call void @_ZN4juce4FontD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  resume { ptr, i32 } %.pn33
}

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 = { 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 "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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass