; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode (juce_audio_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"

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325load1Ef(float noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4juce18FloatVectorHelpers10BasicOps326storeAEPfDv4_f(ptr noundef, <4 x float> noundef) #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4juce18FloatVectorHelpers10BasicOps326storeUEPfDv4_f(ptr noundef, <4 x float> noundef) #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadAEPKf(ptr noundef) #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadUEPKf(ptr noundef) #1 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323minEDv4_fS2_(<4 x float> noundef, <4 x float> noundef) #1 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323maxEDv4_fS2_(<4 x float> noundef, <4 x float> noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce21FloatVectorOperations4clipEPfPKfffi(ptr noundef %0, ptr noundef %1, float noundef %2, float noundef %3, i32 noundef %4) #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca <4 x float>, align 16
  %13 = alloca <4 x float>, align 16
  %14 = alloca i32, align 4
  %15 = alloca <4 x float>, align 16
  %16 = alloca i32, align 4
  %17 = alloca <4 x float>, align 16
  %18 = alloca i32, align 4
  %19 = alloca <4 x float>, align 16
  %20 = alloca i32, align 4
  %21 = alloca <4 x float>, align 16
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store float %2, ptr %8, align 4, !tbaa !9
  store float %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !11
  br label %24

24:                                               ; preds = %5
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %27 = load i32, ptr %10, align 4, !tbaa !11
  %28 = sdiv i32 %27, 4
  store i32 %28, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %29 = load float, ptr %8, align 4, !tbaa !9
  %30 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325load1Ef(float noundef %29) #6
  store <4 x float> %30, ptr %12, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %31 = load float, ptr %9, align 4, !tbaa !9
  %32 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325load1Ef(float noundef %31) #6
  store <4 x float> %32, ptr %13, align 16, !tbaa !13
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef %33) #6
  br i1 %34, label %35, label %85

35:                                               ; preds = %26
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef %36) #6
  br i1 %37, label %38, label %61

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %57, %38
  %40 = load i32, ptr %14, align 4, !tbaa !11
  %41 = load i32, ptr %11, align 4, !tbaa !11
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %60

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadAEPKf(ptr noundef %45) #6
  store <4 x float> %46, ptr %15, align 16, !tbaa !13
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = load <4 x float>, ptr %15, align 16, !tbaa !13
  %49 = load <4 x float>, ptr %13, align 16, !tbaa !13
  %50 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323minEDv4_fS2_(<4 x float> noundef %48, <4 x float> noundef %49) #6
  %51 = load <4 x float>, ptr %12, align 16, !tbaa !13
  %52 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323maxEDv4_fS2_(<4 x float> noundef %50, <4 x float> noundef %51) #6
  call void @_ZN4juce18FloatVectorHelpers10BasicOps326storeAEPfDv4_f(ptr noundef %47, <4 x float> noundef %52) #6
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds float, ptr %53, i64 4
  store ptr %54, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds float, ptr %55, i64 4
  store ptr %56, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %57

57:                                               ; preds = %44
  %58 = load i32, ptr %14, align 4, !tbaa !11
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %14, align 4, !tbaa !11
  br label %39, !llvm.loop !14

60:                                               ; preds = %43
  br label %84

61:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %62

62:                                               ; preds = %80, %61
  %63 = load i32, ptr %16, align 4, !tbaa !11
  %64 = load i32, ptr %11, align 4, !tbaa !11
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %83

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadUEPKf(ptr noundef %68) #6
  store <4 x float> %69, ptr %17, align 16, !tbaa !13
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load <4 x float>, ptr %17, align 16, !tbaa !13
  %72 = load <4 x float>, ptr %13, align 16, !tbaa !13
  %73 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323minEDv4_fS2_(<4 x float> noundef %71, <4 x float> noundef %72) #6
  %74 = load <4 x float>, ptr %12, align 16, !tbaa !13
  %75 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323maxEDv4_fS2_(<4 x float> noundef %73, <4 x float> noundef %74) #6
  call void @_ZN4juce18FloatVectorHelpers10BasicOps326storeAEPfDv4_f(ptr noundef %70, <4 x float> noundef %75) #6
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds float, ptr %76, i64 4
  store ptr %77, ptr %6, align 8, !tbaa !5
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds float, ptr %78, i64 4
  store ptr %79, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %80

80:                                               ; preds = %67
  %81 = load i32, ptr %16, align 4, !tbaa !11
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %16, align 4, !tbaa !11
  br label %62, !llvm.loop !16

83:                                               ; preds = %66
  br label %84

84:                                               ; preds = %83, %60
  br label %135

85:                                               ; preds = %26
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = call noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef %86) #6
  br i1 %87, label %88, label %111

88:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %89

89:                                               ; preds = %107, %88
  %90 = load i32, ptr %18, align 4, !tbaa !11
  %91 = load i32, ptr %11, align 4, !tbaa !11
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %110

94:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadAEPKf(ptr noundef %95) #6
  store <4 x float> %96, ptr %19, align 16, !tbaa !13
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load <4 x float>, ptr %19, align 16, !tbaa !13
  %99 = load <4 x float>, ptr %13, align 16, !tbaa !13
  %100 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323minEDv4_fS2_(<4 x float> noundef %98, <4 x float> noundef %99) #6
  %101 = load <4 x float>, ptr %12, align 16, !tbaa !13
  %102 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323maxEDv4_fS2_(<4 x float> noundef %100, <4 x float> noundef %101) #6
  call void @_ZN4juce18FloatVectorHelpers10BasicOps326storeUEPfDv4_f(ptr noundef %97, <4 x float> noundef %102) #6
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds float, ptr %103, i64 4
  store ptr %104, ptr %6, align 8, !tbaa !5
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds float, ptr %105, i64 4
  store ptr %106, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %107

107:                                              ; preds = %94
  %108 = load i32, ptr %18, align 4, !tbaa !11
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %18, align 4, !tbaa !11
  br label %89, !llvm.loop !17

110:                                              ; preds = %93
  br label %134

111:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %112

112:                                              ; preds = %130, %111
  %113 = load i32, ptr %20, align 4, !tbaa !11
  %114 = load i32, ptr %11, align 4, !tbaa !11
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %133

117:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadUEPKf(ptr noundef %118) #6
  store <4 x float> %119, ptr %21, align 16, !tbaa !13
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = load <4 x float>, ptr %21, align 16, !tbaa !13
  %122 = load <4 x float>, ptr %13, align 16, !tbaa !13
  %123 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323minEDv4_fS2_(<4 x float> noundef %121, <4 x float> noundef %122) #6
  %124 = load <4 x float>, ptr %12, align 16, !tbaa !13
  %125 = call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323maxEDv4_fS2_(<4 x float> noundef %123, <4 x float> noundef %124) #6
  call void @_ZN4juce18FloatVectorHelpers10BasicOps326storeUEPfDv4_f(ptr noundef %120, <4 x float> noundef %125) #6
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds float, ptr %126, i64 4
  store ptr %127, ptr %6, align 8, !tbaa !5
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds float, ptr %128, i64 4
  store ptr %129, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %130

130:                                              ; preds = %117
  %131 = load i32, ptr %20, align 4, !tbaa !11
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %20, align 4, !tbaa !11
  br label %112, !llvm.loop !18

133:                                              ; preds = %116
  br label %134

134:                                              ; preds = %133, %110
  br label %135

135:                                              ; preds = %134, %84
  %136 = load i32, ptr %10, align 4, !tbaa !11
  %137 = and i32 %136, 3
  store i32 %137, ptr %10, align 4, !tbaa !11
  %138 = load i32, ptr %10, align 4, !tbaa !11
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %135
  store i32 1, ptr %22, align 4
  br label %142

141:                                              ; preds = %135
  store i32 0, ptr %22, align 4
  br label %142

142:                                              ; preds = %141, %140
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %143 = load i32, ptr %22, align 4
  switch i32 %143, label %173 [
    i32 0, label %144
    i32 1, label %169
  ]

144:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %145

145:                                              ; preds = %166, %144
  %146 = load i32, ptr %23, align 4, !tbaa !11
  %147 = load i32, ptr %10, align 4, !tbaa !11
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %145
  store i32 16, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %169

150:                                              ; preds = %145
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = load i32, ptr %23, align 4, !tbaa !11
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds float, ptr %151, i64 %153
  %155 = load float, ptr %154, align 4, !tbaa !9
  %156 = load float, ptr %9, align 4, !tbaa !9
  %157 = invoke noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef %155, float noundef %156)
          to label %158 unwind label %170

158:                                              ; preds = %150
  %159 = load float, ptr %8, align 4, !tbaa !9
  %160 = invoke noundef float @_ZN4juce4jmaxIfEET_S1_S1_(float noundef %157, float noundef %159)
          to label %161 unwind label %170

161:                                              ; preds = %158
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = load i32, ptr %23, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds float, ptr %162, i64 %164
  store float %160, ptr %165, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %161
  %167 = load i32, ptr %23, align 4, !tbaa !11
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %23, align 4, !tbaa !11
  br label %145, !llvm.loop !19

169:                                              ; preds = %149, %142
  ret void

170:                                              ; preds = %158, %150
  %171 = landingpad { ptr, i32 }
          catch ptr null
  %172 = extractvalue { ptr, i32 } %171, 0
  call void @__clang_call_terminate(ptr %172) #7
  unreachable

173:                                              ; preds = %142
  unreachable
}

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}


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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325load1Ef(float noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4juce18FloatVectorHelpers10BasicOps326storeAEPfDv4_f(ptr noundef, <4 x float> noundef) local_unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4juce18FloatVectorHelpers10BasicOps326storeUEPfDv4_f(ptr noundef, <4 x float> noundef) local_unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadAEPKf(ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadUEPKf(ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323minEDv4_fS2_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323maxEDv4_fS2_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce21FloatVectorOperations4clipEPfPKfffi(ptr noundef %0, ptr noundef %1, float noundef %2, float noundef %3, i32 noundef %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = sdiv i32 %4, 4
  %7 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325load1Ef(float noundef %2) #4
  %8 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325load1Ef(float noundef %3) #4
  %9 = tail call noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef %0) #4
  %10 = tail call noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef %1) #4
  %11 = icmp sgt i32 %4, 3
  br i1 %9, label %12, label %25

12:                                               ; preds = %5
  br i1 %10, label %.preheader68, label %.preheader70

.preheader70:                                     ; preds = %12
  br i1 %11, label %.lr.ph89, label %.loopexit69

.preheader68:                                     ; preds = %12
  br i1 %11, label %.lr.ph95, label %.loopexit69

.lr.ph95:                                         ; preds = %.preheader68, %.lr.ph95
  %.05894 = phi ptr [ %16, %.lr.ph95 ], [ %0, %.preheader68 ]
  %.06093 = phi ptr [ %17, %.lr.ph95 ], [ %1, %.preheader68 ]
  %.06792 = phi i32 [ %18, %.lr.ph95 ], [ 0, %.preheader68 ]
  %13 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadAEPKf(ptr noundef %.06093) #4
  %14 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323minEDv4_fS2_(<4 x float> noundef %13, <4 x float> noundef %8) #4
  %15 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323maxEDv4_fS2_(<4 x float> noundef %14, <4 x float> noundef %7) #4
  tail call void @_ZN4juce18FloatVectorHelpers10BasicOps326storeAEPfDv4_f(ptr noundef %.05894, <4 x float> noundef %15) #4
  %16 = getelementptr inbounds i8, ptr %.05894, i64 16
  %17 = getelementptr inbounds i8, ptr %.06093, i64 16
  %18 = add nuw nsw i32 %.06792, 1
  %exitcond111.not = icmp eq i32 %18, %6
  br i1 %exitcond111.not, label %.loopexit69, label %.lr.ph95, !llvm.loop !5

.lr.ph89:                                         ; preds = %.preheader70, %.lr.ph89
  %.188 = phi ptr [ %22, %.lr.ph89 ], [ %0, %.preheader70 ]
  %.16187 = phi ptr [ %23, %.lr.ph89 ], [ %1, %.preheader70 ]
  %.06686 = phi i32 [ %24, %.lr.ph89 ], [ 0, %.preheader70 ]
  %19 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadUEPKf(ptr noundef %.16187) #4
  %20 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323minEDv4_fS2_(<4 x float> noundef %19, <4 x float> noundef %8) #4
  %21 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323maxEDv4_fS2_(<4 x float> noundef %20, <4 x float> noundef %7) #4
  tail call void @_ZN4juce18FloatVectorHelpers10BasicOps326storeAEPfDv4_f(ptr noundef %.188, <4 x float> noundef %21) #4
  %22 = getelementptr inbounds i8, ptr %.188, i64 16
  %23 = getelementptr inbounds i8, ptr %.16187, i64 16
  %24 = add nuw nsw i32 %.06686, 1
  %exitcond110.not = icmp eq i32 %24, %6
  br i1 %exitcond110.not, label %.loopexit69, label %.lr.ph89, !llvm.loop !7

25:                                               ; preds = %5
  br i1 %10, label %.preheader72, label %.preheader74

.preheader74:                                     ; preds = %25
  br i1 %11, label %.lr.ph, label %.loopexit69

.preheader72:                                     ; preds = %25
  br i1 %11, label %.lr.ph83, label %.loopexit69

.lr.ph83:                                         ; preds = %.preheader72, %.lr.ph83
  %.282 = phi ptr [ %29, %.lr.ph83 ], [ %0, %.preheader72 ]
  %.26281 = phi ptr [ %30, %.lr.ph83 ], [ %1, %.preheader72 ]
  %.06580 = phi i32 [ %31, %.lr.ph83 ], [ 0, %.preheader72 ]
  %26 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadAEPKf(ptr noundef %.26281) #4
  %27 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323minEDv4_fS2_(<4 x float> noundef %26, <4 x float> noundef %8) #4
  %28 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323maxEDv4_fS2_(<4 x float> noundef %27, <4 x float> noundef %7) #4
  tail call void @_ZN4juce18FloatVectorHelpers10BasicOps326storeUEPfDv4_f(ptr noundef %.282, <4 x float> noundef %28) #4
  %29 = getelementptr inbounds i8, ptr %.282, i64 16
  %30 = getelementptr inbounds i8, ptr %.26281, i64 16
  %31 = add nuw nsw i32 %.06580, 1
  %exitcond109.not = icmp eq i32 %31, %6
  br i1 %exitcond109.not, label %.loopexit69, label %.lr.ph83, !llvm.loop !8

.lr.ph:                                           ; preds = %.preheader74, %.lr.ph
  %.378 = phi ptr [ %35, %.lr.ph ], [ %0, %.preheader74 ]
  %.05977 = phi i32 [ %37, %.lr.ph ], [ 0, %.preheader74 ]
  %.36376 = phi ptr [ %36, %.lr.ph ], [ %1, %.preheader74 ]
  %32 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps325loadUEPKf(ptr noundef %.36376) #4
  %33 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323minEDv4_fS2_(<4 x float> noundef %32, <4 x float> noundef %8) #4
  %34 = tail call noundef <4 x float> @_ZN4juce18FloatVectorHelpers10BasicOps323maxEDv4_fS2_(<4 x float> noundef %33, <4 x float> noundef %7) #4
  tail call void @_ZN4juce18FloatVectorHelpers10BasicOps326storeUEPfDv4_f(ptr noundef %.378, <4 x float> noundef %34) #4
  %35 = getelementptr inbounds i8, ptr %.378, i64 16
  %36 = getelementptr inbounds i8, ptr %.36376, i64 16
  %37 = add nuw nsw i32 %.05977, 1
  %exitcond.not = icmp eq i32 %37, %6
  br i1 %exitcond.not, label %.loopexit69, label %.lr.ph, !llvm.loop !9

.loopexit69:                                      ; preds = %.lr.ph, %.lr.ph83, %.lr.ph89, %.lr.ph95, %.preheader74, %.preheader72, %.preheader70, %.preheader68
  %.464 = phi ptr [ %1, %.preheader68 ], [ %1, %.preheader70 ], [ %1, %.preheader72 ], [ %1, %.preheader74 ], [ %17, %.lr.ph95 ], [ %23, %.lr.ph89 ], [ %30, %.lr.ph83 ], [ %36, %.lr.ph ]
  %.4 = phi ptr [ %0, %.preheader68 ], [ %0, %.preheader70 ], [ %0, %.preheader72 ], [ %0, %.preheader74 ], [ %16, %.lr.ph95 ], [ %22, %.lr.ph89 ], [ %29, %.lr.ph83 ], [ %35, %.lr.ph ]
  %38 = and i32 %4, 3
  %.not = icmp eq i32 %38, 0
  br i1 %.not, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.loopexit69
  %wide.trip.count = zext nneg i32 %38 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %.preheader ]
  %39 = getelementptr inbounds float, ptr %.464, i64 %indvars.iv
  %40 = load float, ptr %39, align 4, !tbaa !10
  %41 = tail call noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef %40, float noundef %3)
  %42 = tail call noundef float @_ZN4juce4jmaxIfEET_S1_S1_(float noundef %41, float noundef %2)
  %43 = getelementptr inbounds float, ptr %.4, i64 %indvars.iv
  store float %42, ptr %43, align 4, !tbaa !10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond113.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond113.not, label %.loopexit, label %.preheader, !llvm.loop !14

.loopexit:                                        ; preds = %.preheader, %.loopexit69
  ret void
}

attributes #0 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { inlinehint 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = distinct !{!14, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass