; 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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645load1Ed(double noundef) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4juce18FloatVectorHelpers10BasicOps646storeAEPdDv2_d(ptr noundef, <2 x double> noundef) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4juce18FloatVectorHelpers10BasicOps646storeUEPdDv2_d(ptr noundef, <2 x double> noundef) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadAEPKd(ptr noundef) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadUEPKd(ptr noundef) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps643addEDv2_dS2_(<2 x double> noundef, <2 x double> noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce21FloatVectorOperations3addEPdPKddi(ptr noundef %0, ptr noundef %1, double noundef %2, i32 noundef %3) #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca <2 x double>, align 16
  %11 = alloca i32, align 4
  %12 = alloca <2 x double>, align 16
  %13 = alloca i32, align 4
  %14 = alloca <2 x double>, align 16
  %15 = alloca i32, align 4
  %16 = alloca <2 x double>, align 16
  %17 = alloca i32, align 4
  %18 = alloca <2 x double>, align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store double %2, ptr %7, align 8, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %21 = load i32, ptr %8, align 4, !tbaa !11
  %22 = sdiv i32 %21, 2
  store i32 %22, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  %23 = load double, ptr %7, align 8, !tbaa !9
  %24 = call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645load1Ed(double noundef %23) #4
  store <2 x double> %24, ptr %10, align 16, !tbaa !13
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef %25) #4
  br i1 %26, label %27, label %73

27:                                               ; preds = %4
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = call noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef %28) #4
  br i1 %29, label %30, label %51

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %31

31:                                               ; preds = %47, %30
  %32 = load i32, ptr %11, align 4, !tbaa !11
  %33 = load i32, ptr %9, align 4, !tbaa !11
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %50

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadAEPKd(ptr noundef %37) #4
  store <2 x double> %38, ptr %12, align 16, !tbaa !13
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = load <2 x double>, ptr %10, align 16, !tbaa !13
  %41 = load <2 x double>, ptr %12, align 16, !tbaa !13
  %42 = call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps643addEDv2_dS2_(<2 x double> noundef %40, <2 x double> noundef %41) #4
  call void @_ZN4juce18FloatVectorHelpers10BasicOps646storeAEPdDv2_d(ptr noundef %39, <2 x double> noundef %42) #4
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 2
  store ptr %44, ptr %5, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds double, ptr %45, i64 2
  store ptr %46, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  br label %47

47:                                               ; preds = %36
  %48 = load i32, ptr %11, align 4, !tbaa !11
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %11, align 4, !tbaa !11
  br label %31, !llvm.loop !14

50:                                               ; preds = %35
  br label %72

51:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %52

52:                                               ; preds = %68, %51
  %53 = load i32, ptr %13, align 4, !tbaa !11
  %54 = load i32, ptr %9, align 4, !tbaa !11
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %71

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadUEPKd(ptr noundef %58) #4
  store <2 x double> %59, ptr %14, align 16, !tbaa !13
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = load <2 x double>, ptr %10, align 16, !tbaa !13
  %62 = load <2 x double>, ptr %14, align 16, !tbaa !13
  %63 = call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps643addEDv2_dS2_(<2 x double> noundef %61, <2 x double> noundef %62) #4
  call void @_ZN4juce18FloatVectorHelpers10BasicOps646storeAEPdDv2_d(ptr noundef %60, <2 x double> noundef %63) #4
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %64, i64 2
  store ptr %65, ptr %5, align 8, !tbaa !5
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %66, i64 2
  store ptr %67, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  br label %68

68:                                               ; preds = %57
  %69 = load i32, ptr %13, align 4, !tbaa !11
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %13, align 4, !tbaa !11
  br label %52, !llvm.loop !16

71:                                               ; preds = %56
  br label %72

72:                                               ; preds = %71, %50
  br label %119

73:                                               ; preds = %4
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = call noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef %74) #4
  br i1 %75, label %76, label %97

76:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %77

77:                                               ; preds = %93, %76
  %78 = load i32, ptr %15, align 4, !tbaa !11
  %79 = load i32, ptr %9, align 4, !tbaa !11
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %96

82:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadAEPKd(ptr noundef %83) #4
  store <2 x double> %84, ptr %16, align 16, !tbaa !13
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = load <2 x double>, ptr %10, align 16, !tbaa !13
  %87 = load <2 x double>, ptr %16, align 16, !tbaa !13
  %88 = call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps643addEDv2_dS2_(<2 x double> noundef %86, <2 x double> noundef %87) #4
  call void @_ZN4juce18FloatVectorHelpers10BasicOps646storeUEPdDv2_d(ptr noundef %85, <2 x double> noundef %88) #4
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds double, ptr %89, i64 2
  store ptr %90, ptr %5, align 8, !tbaa !5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds double, ptr %91, i64 2
  store ptr %92, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  br label %93

93:                                               ; preds = %82
  %94 = load i32, ptr %15, align 4, !tbaa !11
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %15, align 4, !tbaa !11
  br label %77, !llvm.loop !17

96:                                               ; preds = %81
  br label %118

97:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %98

98:                                               ; preds = %114, %97
  %99 = load i32, ptr %17, align 4, !tbaa !11
  %100 = load i32, ptr %9, align 4, !tbaa !11
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %117

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadUEPKd(ptr noundef %104) #4
  store <2 x double> %105, ptr %18, align 16, !tbaa !13
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load <2 x double>, ptr %10, align 16, !tbaa !13
  %108 = load <2 x double>, ptr %18, align 16, !tbaa !13
  %109 = call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps643addEDv2_dS2_(<2 x double> noundef %107, <2 x double> noundef %108) #4
  call void @_ZN4juce18FloatVectorHelpers10BasicOps646storeUEPdDv2_d(ptr noundef %106, <2 x double> noundef %109) #4
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds double, ptr %110, i64 2
  store ptr %111, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds double, ptr %112, i64 2
  store ptr %113, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  br label %114

114:                                              ; preds = %103
  %115 = load i32, ptr %17, align 4, !tbaa !11
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %17, align 4, !tbaa !11
  br label %98, !llvm.loop !18

117:                                              ; preds = %102
  br label %118

118:                                              ; preds = %117, %96
  br label %119

119:                                              ; preds = %118, %72
  %120 = load i32, ptr %8, align 4, !tbaa !11
  %121 = and i32 %120, 1
  store i32 %121, ptr %8, align 4, !tbaa !11
  %122 = load i32, ptr %8, align 4, !tbaa !11
  %123 = icmp eq i32 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %119
  store i32 1, ptr %19, align 4
  br label %126

125:                                              ; preds = %119
  store i32 0, ptr %19, align 4
  br label %126

126:                                              ; preds = %125, %124
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %127 = load i32, ptr %19, align 4
  switch i32 %127, label %150 [
    i32 0, label %128
    i32 1, label %149
  ]

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

129:                                              ; preds = %146, %128
  %130 = load i32, ptr %20, align 4, !tbaa !11
  %131 = load i32, ptr %8, align 4, !tbaa !11
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  store i32 14, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %149

134:                                              ; preds = %129
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = load i32, ptr %20, align 4, !tbaa !11
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds double, ptr %135, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !9
  %140 = load double, ptr %7, align 8, !tbaa !9
  %141 = fadd double %139, %140
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = load i32, ptr %20, align 4, !tbaa !11
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds double, ptr %142, i64 %144
  store double %141, ptr %145, align 8, !tbaa !9
  br label %146

146:                                              ; preds = %134
  %147 = load i32, ptr %20, align 4, !tbaa !11
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %20, align 4, !tbaa !11
  br label %129, !llvm.loop !19

149:                                              ; preds = %133, %126
  ret void

150:                                              ; preds = %126
  unreachable
}

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645load1Ed(double noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadAEPKd(ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadUEPKd(ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps643addEDv2_dS2_(<2 x double> noundef, <2 x double> noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce21FloatVectorOperations3addEPdPKddi(ptr noundef %0, ptr noundef %1, double noundef %2, i32 noundef %3) local_unnamed_addr #2 align 2 {
  %5 = sdiv i32 %3, 2
  %6 = tail call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645load1Ed(double noundef %2) #3
  %7 = tail call noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef %0) #3
  %8 = tail call noundef zeroext i1 @_ZN4juce18FloatVectorHelpersL9isAlignedEPKv(ptr noundef %1) #3
  %9 = icmp sgt i32 %3, 1
  br i1 %7, label %10, label %21

10:                                               ; preds = %4
  br i1 %8, label %.preheader62, label %.preheader64

.preheader64:                                     ; preds = %10
  br i1 %9, label %.lr.ph83, label %.loopexit63

.preheader62:                                     ; preds = %10
  br i1 %9, label %.lr.ph89, label %.loopexit63

.lr.ph89:                                         ; preds = %.preheader62, %.lr.ph89
  %.05288 = phi ptr [ %13, %.lr.ph89 ], [ %0, %.preheader62 ]
  %.05487 = phi ptr [ %14, %.lr.ph89 ], [ %1, %.preheader62 ]
  %.06186 = phi i32 [ %15, %.lr.ph89 ], [ 0, %.preheader62 ]
  %11 = tail call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadAEPKd(ptr noundef %.05487) #3
  %12 = tail call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps643addEDv2_dS2_(<2 x double> noundef %6, <2 x double> noundef %11) #3
  tail call void @_ZN4juce18FloatVectorHelpers10BasicOps646storeAEPdDv2_d(ptr noundef %.05288, <2 x double> noundef %12) #3
  %13 = getelementptr inbounds i8, ptr %.05288, i64 16
  %14 = getelementptr inbounds i8, ptr %.05487, i64 16
  %15 = add nuw nsw i32 %.06186, 1
  %exitcond104.not = icmp eq i32 %15, %5
  br i1 %exitcond104.not, label %.loopexit63, label %.lr.ph89, !llvm.loop !5

.lr.ph83:                                         ; preds = %.preheader64, %.lr.ph83
  %.182 = phi ptr [ %18, %.lr.ph83 ], [ %0, %.preheader64 ]
  %.15581 = phi ptr [ %19, %.lr.ph83 ], [ %1, %.preheader64 ]
  %.06080 = phi i32 [ %20, %.lr.ph83 ], [ 0, %.preheader64 ]
  %16 = tail call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadUEPKd(ptr noundef %.15581) #3
  %17 = tail call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps643addEDv2_dS2_(<2 x double> noundef %6, <2 x double> noundef %16) #3
  tail call void @_ZN4juce18FloatVectorHelpers10BasicOps646storeAEPdDv2_d(ptr noundef %.182, <2 x double> noundef %17) #3
  %18 = getelementptr inbounds i8, ptr %.182, i64 16
  %19 = getelementptr inbounds i8, ptr %.15581, i64 16
  %20 = add nuw nsw i32 %.06080, 1
  %exitcond103.not = icmp eq i32 %20, %5
  br i1 %exitcond103.not, label %.loopexit63, label %.lr.ph83, !llvm.loop !7

21:                                               ; preds = %4
  br i1 %8, label %.preheader66, label %.preheader68

.preheader68:                                     ; preds = %21
  br i1 %9, label %.lr.ph, label %.loopexit63

.preheader66:                                     ; preds = %21
  br i1 %9, label %.lr.ph77, label %.loopexit63

.lr.ph77:                                         ; preds = %.preheader66, %.lr.ph77
  %.276 = phi ptr [ %24, %.lr.ph77 ], [ %0, %.preheader66 ]
  %.25675 = phi ptr [ %25, %.lr.ph77 ], [ %1, %.preheader66 ]
  %.05974 = phi i32 [ %26, %.lr.ph77 ], [ 0, %.preheader66 ]
  %22 = tail call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadAEPKd(ptr noundef %.25675) #3
  %23 = tail call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps643addEDv2_dS2_(<2 x double> noundef %6, <2 x double> noundef %22) #3
  tail call void @_ZN4juce18FloatVectorHelpers10BasicOps646storeUEPdDv2_d(ptr noundef %.276, <2 x double> noundef %23) #3
  %24 = getelementptr inbounds i8, ptr %.276, i64 16
  %25 = getelementptr inbounds i8, ptr %.25675, i64 16
  %26 = add nuw nsw i32 %.05974, 1
  %exitcond102.not = icmp eq i32 %26, %5
  br i1 %exitcond102.not, label %.loopexit63, label %.lr.ph77, !llvm.loop !8

.lr.ph:                                           ; preds = %.preheader68, %.lr.ph
  %.372 = phi ptr [ %29, %.lr.ph ], [ %0, %.preheader68 ]
  %.05371 = phi i32 [ %31, %.lr.ph ], [ 0, %.preheader68 ]
  %.35770 = phi ptr [ %30, %.lr.ph ], [ %1, %.preheader68 ]
  %27 = tail call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps645loadUEPKd(ptr noundef %.35770) #3
  %28 = tail call noundef <2 x double> @_ZN4juce18FloatVectorHelpers10BasicOps643addEDv2_dS2_(<2 x double> noundef %6, <2 x double> noundef %27) #3
  tail call void @_ZN4juce18FloatVectorHelpers10BasicOps646storeUEPdDv2_d(ptr noundef %.372, <2 x double> noundef %28) #3
  %29 = getelementptr inbounds i8, ptr %.372, i64 16
  %30 = getelementptr inbounds i8, ptr %.35770, i64 16
  %31 = add nuw nsw i32 %.05371, 1
  %exitcond.not = icmp eq i32 %31, %5
  br i1 %exitcond.not, label %.loopexit63, label %.lr.ph, !llvm.loop !9

.loopexit63:                                      ; preds = %.lr.ph, %.lr.ph77, %.lr.ph83, %.lr.ph89, %.preheader68, %.preheader66, %.preheader64, %.preheader62
  %.458 = phi ptr [ %1, %.preheader62 ], [ %1, %.preheader64 ], [ %1, %.preheader66 ], [ %1, %.preheader68 ], [ %14, %.lr.ph89 ], [ %19, %.lr.ph83 ], [ %25, %.lr.ph77 ], [ %30, %.lr.ph ]
  %.4 = phi ptr [ %0, %.preheader62 ], [ %0, %.preheader64 ], [ %0, %.preheader66 ], [ %0, %.preheader68 ], [ %13, %.lr.ph89 ], [ %18, %.lr.ph83 ], [ %24, %.lr.ph77 ], [ %29, %.lr.ph ]
  %32 = and i32 %3, 1
  %.not = icmp eq i32 %32, 0
  br i1 %.not, label %35, label %.preheader.split

.preheader.split:                                 ; preds = %.loopexit63
  %33 = load double, ptr %.458, align 8, !tbaa !10
  %34 = fadd double %33, %2
  store double %34, ptr %.4, align 8, !tbaa !10
  br label %35

35:                                               ; preds = %.preheader.split, %.loopexit63
  ret void
}

attributes #0 = { 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 #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 = { 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 #3 = { 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 = !{!"double", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}


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