; 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::Justification" = type { i32 }

@_ZN4juce7Colours16transparentBlackE = external global %"class.juce::Colour", align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, ptr noundef) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4juce14LookAndFeel_V219createSliderTextBoxERNS_6SliderE(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(224) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::Justification", align 4
  %9 = alloca %"class.juce::Colour", align 1
  %10 = alloca %"class.juce::Colour", align 1
  %11 = alloca i1, align 1
  %12 = alloca i1, 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 %"class.juce::Colour", align 1
  %17 = alloca %"class.juce::Colour", align 1
  %18 = alloca %"class.juce::Colour", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %20 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 368) #7
  invoke void @_ZN4juce14LookAndFeel_V215SliderLabelCompC2Ev(ptr noundef nonnull align 8 dereferenceable(364) %20)
          to label %21 unwind label %74

21:                                               ; preds = %2
  store ptr %20, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4juce13JustificationC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 36) #6
  call void @_ZN4juce5Label20setJustificationTypeENS_13JustificationE(ptr noundef nonnull align 8 dereferenceable(364) %22, ptr noundef %8)
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4juce5Label15setKeyboardTypeENS_15TextInputTarget19VirtualKeyboardTypeE(ptr noundef nonnull align 8 dereferenceable(364) %23, i32 noundef 2) #6
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %9, ptr noundef nonnull align 8 dereferenceable(197) %25, i32 noundef 16782336, i1 noundef zeroext false)
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %24, i32 noundef 16777857, ptr noundef %9)
          to label %26 unwind label %78

26:                                               ; preds = %21
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %9) #6
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call noundef i32 @_ZNK4juce6Slider14getSliderStyleEv(ptr noundef nonnull align 8 dereferenceable(224) %28) #6
  %30 = icmp eq i32 %29, 2
  store i1 false, ptr %11, align 1
  store i1 false, ptr %12, align 1
  br i1 %30, label %35, label %31

31:                                               ; preds = %26
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = call noundef i32 @_ZNK4juce6Slider14getSliderStyleEv(ptr noundef nonnull align 8 dereferenceable(224) %32) #6
  %34 = icmp eq i32 %33, 3
  br i1 %34, label %35, label %36

35:                                               ; preds = %31, %26
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %10, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours16transparentBlackE) #6
  store i1 true, ptr %11, align 1
  br label %39

36:                                               ; preds = %31
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %10, ptr noundef nonnull align 8 dereferenceable(197) %37, i32 noundef 16782592, i1 noundef zeroext false)
          to label %38 unwind label %82

38:                                               ; preds = %36
  store i1 true, ptr %12, align 1
  br label %39

39:                                               ; preds = %38, %35
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %27, i32 noundef 16777856, ptr noundef %10)
          to label %40 unwind label %86

40:                                               ; preds = %39
  %41 = load i1, ptr %12, align 1
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %10) #6
  br label %43

43:                                               ; preds = %42, %40
  %44 = load i1, ptr %11, align 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %43
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %10) #6
  br label %46

46:                                               ; preds = %45, %43
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %13, ptr noundef nonnull align 8 dereferenceable(197) %48, i32 noundef 16783104, i1 noundef zeroext false)
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %47, i32 noundef 16777858, ptr noundef %13)
          to label %49 unwind label %97

49:                                               ; preds = %46
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #6
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %14, ptr noundef nonnull align 8 dereferenceable(197) %51, i32 noundef 16782336, i1 noundef zeroext false)
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %50, i32 noundef 16777729, ptr noundef %14)
          to label %52 unwind label %101

52:                                               ; preds = %49
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #6
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %16, ptr noundef nonnull align 8 dereferenceable(197) %54, i32 noundef 16782592, i1 noundef zeroext false)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = call noundef i32 @_ZNK4juce6Slider14getSliderStyleEv(ptr noundef nonnull align 8 dereferenceable(224) %55) #6
  %57 = icmp eq i32 %56, 2
  br i1 %57, label %62, label %58

58:                                               ; preds = %52
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call noundef i32 @_ZNK4juce6Slider14getSliderStyleEv(ptr noundef nonnull align 8 dereferenceable(224) %59) #6
  %61 = icmp eq i32 %60, 3
  br label %62

62:                                               ; preds = %58, %52
  %63 = phi i1 [ true, %52 ], [ %61, %58 ]
  %64 = zext i1 %63 to i64
  %65 = select i1 %63, float 0x3FE6666660000000, float 1.000000e+00
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %15, ptr noundef nonnull align 1 dereferenceable(4) %16, float noundef %65) #6
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %53, i32 noundef 16777728, ptr noundef %15)
          to label %66 unwind label %105

66:                                               ; preds = %62
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %17, ptr noundef nonnull align 8 dereferenceable(197) %68, i32 noundef 16783104, i1 noundef zeroext false)
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %67, i32 noundef 16777733, ptr noundef %17)
          to label %69 unwind label %109

69:                                               ; preds = %66
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %17) #6
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %18, ptr noundef nonnull align 8 dereferenceable(197) %71, i32 noundef 16782848, i1 noundef zeroext false)
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %70, i32 noundef 16777730, ptr noundef %18)
          to label %72 unwind label %113

72:                                               ; preds = %69
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %18) #6
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret ptr %73

74:                                               ; preds = %2
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %6, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %20, i64 noundef 368) #8
  br label %117

78:                                               ; preds = %21
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %9) #6
  br label %117

82:                                               ; preds = %36
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %6, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %7, align 4
  br label %93

86:                                               ; preds = %39
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %6, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %7, align 4
  %90 = load i1, ptr %12, align 1
  br i1 %90, label %91, label %92

91:                                               ; preds = %86
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %10) #6
  br label %92

92:                                               ; preds = %91, %86
  br label %93

93:                                               ; preds = %92, %82
  %94 = load i1, ptr %11, align 1
  br i1 %94, label %95, label %96

95:                                               ; preds = %93
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %10) #6
  br label %96

96:                                               ; preds = %95, %93
  br label %117

97:                                               ; preds = %46
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %6, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %7, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #6
  br label %117

101:                                              ; preds = %49
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %6, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %7, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #6
  br label %117

105:                                              ; preds = %62
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %6, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %7, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %117

109:                                              ; preds = %66
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %6, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %7, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %17) #6
  br label %117

113:                                              ; preds = %69
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %6, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %7, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %18) #6
  br label %117

117:                                              ; preds = %113, %109, %105, %101, %97, %96, %78, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %118

118:                                              ; preds = %117
  %119 = load ptr, ptr %6, align 8
  %120 = load i32, ptr %7, align 4
  %121 = insertvalue { ptr, i32 } poison, ptr %119, 0
  %122 = insertvalue { ptr, i32 } %121, i32 %120, 1
  resume { ptr, i32 } %122
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce14LookAndFeel_V215SliderLabelCompC2Ev(ptr noundef nonnull align 8 dereferenceable(364)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce5Label20setJustificationTypeENS_13JustificationE(ptr noundef nonnull align 8 dereferenceable(364), ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5Label15setKeyboardTypeENS_15TextInputTarget19VirtualKeyboardTypeE(ptr noundef nonnull align 8 dereferenceable(364), i32 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce6Slider14getSliderStyleEv(ptr noundef nonnull align 8 dereferenceable(224)) #5 align 2

attributes #0 = { nobuiltin 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(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 = { 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 #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 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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"}


; 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::Justification" = type { i32 }

@_ZN4juce7Colours16transparentBlackE = external global %"class.juce::Colour", align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, ptr noundef) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN4juce14LookAndFeel_V219createSliderTextBoxERNS_6SliderE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(224) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::Justification", align 4
  %4 = alloca %"class.juce::Colour", align 1
  %5 = alloca %"class.juce::Colour", align 1
  %6 = alloca %"class.juce::Colour", align 1
  %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::Colour", align 1
  %11 = alloca %"class.juce::Colour", align 1
  %12 = tail call noalias noundef nonnull dereferenceable(368) ptr @_Znwm(i64 noundef 368) #6
  invoke void @_ZN4juce14LookAndFeel_V215SliderLabelCompC2Ev(ptr noundef nonnull align 8 dereferenceable(364) %12)
          to label %13 unwind label %41

13:                                               ; preds = %2
  call void @_ZN4juce13JustificationC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 36) #7
  call void @_ZN4juce5Label20setJustificationTypeENS_13JustificationE(ptr noundef nonnull align 8 dereferenceable(364) %12, ptr noundef nonnull %3)
  call void @_ZN4juce5Label15setKeyboardTypeENS_15TextInputTarget19VirtualKeyboardTypeE(ptr noundef nonnull align 8 dereferenceable(364) %12, i32 noundef 2) #7
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %4, ptr noundef nonnull align 8 dereferenceable(197) %1, i32 noundef 16782336, i1 noundef zeroext false)
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %12, i32 noundef 16777857, ptr noundef nonnull %4)
          to label %14 unwind label %43

14:                                               ; preds = %13
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %4) #7
  %15 = call noundef i32 @_ZNK4juce6Slider14getSliderStyleEv(ptr noundef nonnull align 8 dereferenceable(224) %1) #7
  %16 = icmp eq i32 %15, 2
  br i1 %16, label %20, label %17

17:                                               ; preds = %14
  %18 = call noundef i32 @_ZNK4juce6Slider14getSliderStyleEv(ptr noundef nonnull align 8 dereferenceable(224) %1) #7
  %19 = icmp eq i32 %18, 3
  br i1 %19, label %20, label %21

20:                                               ; preds = %17, %14
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours16transparentBlackE) #7
  br label %22

21:                                               ; preds = %17
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %5, ptr noundef nonnull align 8 dereferenceable(197) %1, i32 noundef 16782592, i1 noundef zeroext false)
  br label %22

22:                                               ; preds = %21, %20
  %.027 = phi i1 [ true, %20 ], [ false, %21 ]
  %.0 = phi i1 [ false, %20 ], [ true, %21 ]
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %12, i32 noundef 16777856, ptr noundef nonnull %5)
          to label %23 unwind label %45

23:                                               ; preds = %22
  br i1 %.0, label %24, label %25

24:                                               ; preds = %23
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %5) #7
  br label %25

25:                                               ; preds = %24, %23
  br i1 %.027, label %26, label %27

26:                                               ; preds = %25
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %5) #7
  br label %27

27:                                               ; preds = %26, %25
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %6, ptr noundef nonnull align 8 dereferenceable(197) %1, i32 noundef 16783104, i1 noundef zeroext false)
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %12, i32 noundef 16777858, ptr noundef nonnull %6)
          to label %28 unwind label %50

28:                                               ; preds = %27
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %6) #7
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %7, ptr noundef nonnull align 8 dereferenceable(197) %1, i32 noundef 16782336, i1 noundef zeroext false)
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %12, i32 noundef 16777729, ptr noundef nonnull %7)
          to label %29 unwind label %52

29:                                               ; preds = %28
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %9, ptr noundef nonnull align 8 dereferenceable(197) %1, i32 noundef 16782592, i1 noundef zeroext false)
  %30 = call noundef i32 @_ZNK4juce6Slider14getSliderStyleEv(ptr noundef nonnull align 8 dereferenceable(224) %1) #7
  %31 = icmp eq i32 %30, 2
  br i1 %31, label %36, label %32

32:                                               ; preds = %29
  %33 = call noundef i32 @_ZNK4juce6Slider14getSliderStyleEv(ptr noundef nonnull align 8 dereferenceable(224) %1) #7
  %34 = icmp eq i32 %33, 3
  %35 = select i1 %34, float 0x3FE6666660000000, float 1.000000e+00
  br label %36

36:                                               ; preds = %32, %29
  %37 = phi float [ 0x3FE6666660000000, %29 ], [ %35, %32 ]
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %8, ptr noundef nonnull align 1 dereferenceable(4) %9, float noundef %37) #7
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %12, i32 noundef 16777728, ptr noundef nonnull %8)
          to label %38 unwind label %54

38:                                               ; preds = %36
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %8) #7
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %10, ptr noundef nonnull align 8 dereferenceable(197) %1, i32 noundef 16783104, i1 noundef zeroext false)
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %12, i32 noundef 16777733, ptr noundef nonnull %10)
          to label %39 unwind label %56

39:                                               ; preds = %38
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %10) #7
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %11, ptr noundef nonnull align 8 dereferenceable(197) %1, i32 noundef 16782848, i1 noundef zeroext false)
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %12, i32 noundef 16777730, ptr noundef nonnull %11)
          to label %40 unwind label %58

40:                                               ; preds = %39
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #7
  ret ptr %12

41:                                               ; preds = %2
  %42 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %12, i64 noundef 368) #8
  br label %60

43:                                               ; preds = %13
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %4) #7
  br label %60

45:                                               ; preds = %22
  %46 = landingpad { ptr, i32 }
          cleanup
  br i1 %.0, label %47, label %48

47:                                               ; preds = %45
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %5) #7
  br i1 %.027, label %49, label %60

48:                                               ; preds = %45
  br i1 %.027, label %49, label %60

49:                                               ; preds = %47, %48
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %5) #7
  br label %60

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

52:                                               ; preds = %28
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %7) #7
  br label %60

54:                                               ; preds = %36
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %8) #7
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  br label %60

56:                                               ; preds = %38
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %10) #7
  br label %60

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

60:                                               ; preds = %47, %48, %49, %58, %56, %54, %52, %50, %43, %41
  %.pn33 = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ], [ %55, %54 ], [ %53, %52 ], [ %51, %50 ], [ %46, %49 ], [ %46, %48 ], [ %44, %43 ], [ %42, %41 ], [ %46, %47 ]
  resume { ptr, i32 } %.pn33
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce14LookAndFeel_V215SliderLabelCompC2Ev(ptr noundef nonnull align 8 dereferenceable(364)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce5Label20setJustificationTypeENS_13JustificationE(ptr noundef nonnull align 8 dereferenceable(364), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5Label15setKeyboardTypeENS_15TextInputTarget19VirtualKeyboardTypeE(ptr noundef nonnull align 8 dereferenceable(364), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce6Slider14getSliderStyleEv(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #5 align 2

attributes #0 = { nobuiltin 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(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 = { 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 #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 = { 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 #6 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { builtin 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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass