; LLVM IR from lichen-community-systems/signaletic :: libsignaletic/src (libsignaletic)

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

%struct.sig_dsp_List = type { %struct.sig_dsp_Signal, %struct.sig_dsp_List_Inputs, %struct.sig_dsp_List_Parameters, %struct.sig_dsp_List_Outputs, ptr }
%struct.sig_dsp_Signal = type { ptr, ptr }
%struct.sig_dsp_List_Inputs = type { ptr }
%struct.sig_dsp_List_Parameters = type { float, float, float }
%struct.sig_dsp_List_Outputs = type { ptr, ptr, ptr }
%struct.sig_AudioSettings = type { float, i64, i64 }
%struct.sig_Buffer = type { i64, ptr }

; 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: nounwind uwtable
declare dso_local float @sig_interpolate_linear(float noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.round.f32(float) #2

; Function Attrs: nounwind uwtable
define dso_local void @sig_dsp_List_generate(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca float, align 4
  %8 = alloca i64, align 8
  %9 = alloca float, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %17, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.sig_dsp_List, ptr %18, i32 0, i32 4
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  store ptr %20, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.sig_dsp_List, ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %struct.sig_dsp_Signal, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  %25 = getelementptr inbounds %struct.sig_AudioSettings, ptr %24, i32 0, i32 2
  %26 = load i64, ptr %25, align 8, !tbaa !17
  store i64 %26, ptr %5, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.sig_dsp_List, ptr %27, i32 0, i32 4
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %35

31:                                               ; preds = %1
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.sig_Buffer, ptr %32, i32 0, i32 0
  %34 = load i64, ptr %33, align 8, !tbaa !21
  br label %36

35:                                               ; preds = %1
  br label %36

36:                                               ; preds = %35, %31
  %37 = phi i64 [ %34, %31 ], [ 0, %35 ]
  store i64 %37, ptr %6, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %38 = load i64, ptr %6, align 8, !tbaa !20
  %39 = uitofp i64 %38 to float
  store float %39, ptr %7, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %40 = load i64, ptr %6, align 8, !tbaa !20
  %41 = sub i64 %40, 1
  store i64 %41, ptr %8, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %42 = load i64, ptr %8, align 8, !tbaa !20
  %43 = uitofp i64 %42 to float
  store float %43, ptr %9, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.sig_dsp_List, ptr %44, i32 0, i32 2
  %46 = getelementptr inbounds %struct.sig_dsp_List_Parameters, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 8, !tbaa !24
  %48 = fcmp ogt float %47, 0.000000e+00
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %10, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.sig_dsp_List, ptr %50, i32 0, i32 2
  %52 = getelementptr inbounds %struct.sig_dsp_List_Parameters, ptr %51, i32 0, i32 2
  %53 = load float, ptr %52, align 8, !tbaa !27
  %54 = fcmp ogt float %53, 0.000000e+00
  %55 = zext i1 %54 to i8
  store i8 %55, ptr %11, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.sig_dsp_List, ptr %56, i32 0, i32 2
  %58 = getelementptr inbounds %struct.sig_dsp_List_Parameters, ptr %57, i32 0, i32 1
  %59 = load float, ptr %58, align 4, !tbaa !28
  %60 = fcmp ogt float %59, 0.000000e+00
  %61 = zext i1 %60 to i8
  store i8 %61, ptr %12, align 1, !tbaa !25
  %62 = load i64, ptr %6, align 8, !tbaa !20
  %63 = icmp ult i64 %62, 1
  br i1 %63, label %64, label %94

64:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !20
  br label %65

65:                                               ; preds = %90, %64
  %66 = load i64, ptr %13, align 8, !tbaa !20
  %67 = load i64, ptr %5, align 8, !tbaa !20
  %68 = icmp ult i64 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %93

70:                                               ; preds = %65
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.sig_dsp_List, ptr %71, i32 0, i32 3
  %73 = getelementptr inbounds %struct.sig_dsp_List_Outputs, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !29
  %75 = load i64, ptr %13, align 8, !tbaa !20
  %76 = getelementptr inbounds float, ptr %74, i64 %75
  store float 0.000000e+00, ptr %76, align 4, !tbaa !23
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.sig_dsp_List, ptr %77, i32 0, i32 3
  %79 = getelementptr inbounds %struct.sig_dsp_List_Outputs, ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !30
  %81 = load i64, ptr %13, align 8, !tbaa !20
  %82 = getelementptr inbounds float, ptr %80, i64 %81
  store float -1.000000e+00, ptr %82, align 4, !tbaa !23
  %83 = load float, ptr %7, align 4, !tbaa !23
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.sig_dsp_List, ptr %84, i32 0, i32 3
  %86 = getelementptr inbounds %struct.sig_dsp_List_Outputs, ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !31
  %88 = load i64, ptr %13, align 8, !tbaa !20
  %89 = getelementptr inbounds float, ptr %87, i64 %88
  store float %83, ptr %89, align 4, !tbaa !23
  br label %90

90:                                               ; preds = %70
  %91 = load i64, ptr %13, align 8, !tbaa !20
  %92 = add i64 %91, 1
  store i64 %92, ptr %13, align 8, !tbaa !20
  br label %65, !llvm.loop !32

93:                                               ; preds = %69
  br label %172

94:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !20
  br label %95

95:                                               ; preds = %168, %94
  %96 = load i64, ptr %14, align 8, !tbaa !20
  %97 = load i64, ptr %5, align 8, !tbaa !20
  %98 = icmp ult i64 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %171

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.sig_dsp_List, ptr %101, i32 0, i32 1
  %103 = getelementptr inbounds %struct.sig_dsp_List_Inputs, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !34
  %105 = load i64, ptr %14, align 8, !tbaa !20
  %106 = getelementptr inbounds float, ptr %104, i64 %105
  %107 = load float, ptr %106, align 4, !tbaa !23
  store float %107, ptr %15, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store float 0.000000e+00, ptr %16, align 4, !tbaa !23
  %108 = load i8, ptr %12, align 1, !tbaa !25, !range !35, !noundef !36
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %114

110:                                              ; preds = %100
  %111 = load float, ptr %15, align 4, !tbaa !23
  %112 = load float, ptr %9, align 4, !tbaa !23
  %113 = fmul float %111, %112
  store float %113, ptr %15, align 4, !tbaa !23
  br label %114

114:                                              ; preds = %110, %100
  %115 = load i8, ptr %11, align 1, !tbaa !25, !range !35, !noundef !36
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %130

117:                                              ; preds = %114
  %118 = load i8, ptr %10, align 1, !tbaa !25, !range !35, !noundef !36
  %119 = trunc i8 %118 to i1
  %120 = load float, ptr %15, align 4, !tbaa !23
  %121 = load float, ptr %9, align 4, !tbaa !23
  %122 = load float, ptr %7, align 4, !tbaa !23
  %123 = call float @sig_dsp_List_constrain(i1 noundef zeroext %119, float noundef %120, float noundef %121, float noundef %122)
  store float %123, ptr %15, align 4, !tbaa !23
  %124 = load float, ptr %15, align 4, !tbaa !23
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.sig_Buffer, ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !37
  %128 = load i64, ptr %6, align 8, !tbaa !20
  %129 = call float @sig_interpolate_linear(float noundef %124, ptr noundef %127, i64 noundef %128)
  store float %129, ptr %16, align 4, !tbaa !23
  br label %146

130:                                              ; preds = %114
  %131 = load float, ptr %15, align 4, !tbaa !23
  %132 = call float @llvm.round.f32(float %131)
  store float %132, ptr %15, align 4, !tbaa !23
  %133 = load i8, ptr %10, align 1, !tbaa !25, !range !35, !noundef !36
  %134 = trunc i8 %133 to i1
  %135 = load float, ptr %15, align 4, !tbaa !23
  %136 = load float, ptr %9, align 4, !tbaa !23
  %137 = load float, ptr %7, align 4, !tbaa !23
  %138 = call float @sig_dsp_List_constrain(i1 noundef zeroext %134, float noundef %135, float noundef %136, float noundef %137)
  store float %138, ptr %15, align 4, !tbaa !23
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.sig_Buffer, ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !37
  %142 = load float, ptr %15, align 4, !tbaa !23
  %143 = fptoui float %142 to i64
  %144 = getelementptr inbounds float, ptr %141, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !23
  store float %145, ptr %16, align 4, !tbaa !23
  br label %146

146:                                              ; preds = %130, %117
  %147 = load float, ptr %16, align 4, !tbaa !23
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.sig_dsp_List, ptr %148, i32 0, i32 3
  %150 = getelementptr inbounds %struct.sig_dsp_List_Outputs, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !29
  %152 = load i64, ptr %14, align 8, !tbaa !20
  %153 = getelementptr inbounds float, ptr %151, i64 %152
  store float %147, ptr %153, align 4, !tbaa !23
  %154 = load float, ptr %15, align 4, !tbaa !23
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.sig_dsp_List, ptr %155, i32 0, i32 3
  %157 = getelementptr inbounds %struct.sig_dsp_List_Outputs, ptr %156, i32 0, i32 1
  %158 = load ptr, ptr %157, align 8, !tbaa !30
  %159 = load i64, ptr %14, align 8, !tbaa !20
  %160 = getelementptr inbounds float, ptr %158, i64 %159
  store float %154, ptr %160, align 4, !tbaa !23
  %161 = load float, ptr %7, align 4, !tbaa !23
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.sig_dsp_List, ptr %162, i32 0, i32 3
  %164 = getelementptr inbounds %struct.sig_dsp_List_Outputs, ptr %163, i32 0, i32 2
  %165 = load ptr, ptr %164, align 8, !tbaa !31
  %166 = load i64, ptr %14, align 8, !tbaa !20
  %167 = getelementptr inbounds float, ptr %165, i64 %166
  store float %161, ptr %167, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %168

168:                                              ; preds = %146
  %169 = load i64, ptr %14, align 8, !tbaa !20
  %170 = add i64 %169, 1
  store i64 %170, ptr %14, align 8, !tbaa !20
  br label %95, !llvm.loop !38

171:                                              ; preds = %99
  br label %172

172:                                              ; preds = %171, %93
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare dso_local float @sig_dsp_List_constrain(i1 noundef zeroext, float noundef, float noundef, float noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint 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 #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/C++ TBAA"}
!9 = !{!10, !6, i64 64}
!10 = !{!"sig_dsp_List", !11, i64 0, !12, i64 16, !13, i64 24, !15, i64 40, !6, i64 64}
!11 = !{!"sig_dsp_Signal", !6, i64 0, !6, i64 8}
!12 = !{!"sig_dsp_List_Inputs", !6, i64 0}
!13 = !{!"sig_dsp_List_Parameters", !14, i64 0, !14, i64 4, !14, i64 8}
!14 = !{!"float", !7, i64 0}
!15 = !{!"sig_dsp_List_Outputs", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!10, !6, i64 0}
!17 = !{!18, !19, i64 16}
!18 = !{!"sig_AudioSettings", !14, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"long", !7, i64 0}
!20 = !{!19, !19, i64 0}
!21 = !{!22, !19, i64 0}
!22 = !{!"sig_Buffer", !19, i64 0, !6, i64 8}
!23 = !{!14, !14, i64 0}
!24 = !{!10, !14, i64 24}
!25 = !{!26, !26, i64 0}
!26 = !{!"_Bool", !7, i64 0}
!27 = !{!10, !14, i64 32}
!28 = !{!10, !14, i64 28}
!29 = !{!10, !6, i64 40}
!30 = !{!10, !6, i64 48}
!31 = !{!10, !6, i64 56}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!10, !6, i64 16}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!22, !6, i64 8}
!38 = distinct !{!38, !33}


; 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: nounwind uwtable
declare dso_local float @sig_interpolate_linear(float noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.round.f32(float) #1

; Function Attrs: nounwind uwtable
define dso_local void @sig_dsp_List_generate(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 64
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %0, align 8, !tbaa !15
  %5 = getelementptr inbounds i8, ptr %4, i64 16
  %6 = load i64, ptr %5, align 8, !tbaa !16
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %9, label %7

7:                                                ; preds = %1
  %8 = load i64, ptr %3, align 8, !tbaa !19
  br label %9

9:                                                ; preds = %1, %7
  %10 = phi i64 [ %8, %7 ], [ 0, %1 ]
  %11 = uitofp i64 %10 to float
  %12 = add i64 %10, -1
  %13 = uitofp i64 %12 to float
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load float, ptr %14, align 8, !tbaa !21
  %16 = fcmp ogt float %15, 0.000000e+00
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = load float, ptr %17, align 8, !tbaa !22
  %19 = fcmp ogt float %18, 0.000000e+00
  %20 = getelementptr inbounds i8, ptr %0, i64 28
  %21 = load float, ptr %20, align 4, !tbaa !23
  %.fr65 = freeze float %21
  %22 = fcmp ogt float %.fr65, 0.000000e+00
  %23 = icmp eq i64 %10, 0
  %.not66 = icmp eq i64 %6, 0
  br i1 %23, label %.preheader, label %.preheader58

.preheader58:                                     ; preds = %9
  br i1 %.not66, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader58
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = getelementptr inbounds i8, ptr %3, i64 8
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  %27 = getelementptr inbounds i8, ptr %0, i64 48
  %28 = getelementptr inbounds i8, ptr %0, i64 56
  br i1 %19, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %.05460.us = phi i64 [ %42, %.lr.ph.split.us ], [ 0, %.lr.ph ]
  %29 = load ptr, ptr %24, align 8, !tbaa !24
  %30 = getelementptr inbounds float, ptr %29, i64 %.05460.us
  %31 = load float, ptr %30, align 4, !tbaa !25
  %32 = fmul float %31, %13
  %.053.us = select i1 %22, float %32, float %31
  %33 = tail call float @sig_dsp_List_constrain(i1 noundef zeroext %16, float noundef %.053.us, float noundef %13, float noundef %11)
  %34 = load ptr, ptr %25, align 8, !tbaa !26
  %35 = tail call float @sig_interpolate_linear(float noundef %33, ptr noundef %34, i64 noundef %10)
  %36 = load ptr, ptr %26, align 8, !tbaa !27
  %37 = getelementptr inbounds float, ptr %36, i64 %.05460.us
  store float %35, ptr %37, align 4, !tbaa !25
  %38 = load ptr, ptr %27, align 8, !tbaa !28
  %39 = getelementptr inbounds float, ptr %38, i64 %.05460.us
  store float %33, ptr %39, align 4, !tbaa !25
  %40 = load ptr, ptr %28, align 8, !tbaa !29
  %41 = getelementptr inbounds float, ptr %40, i64 %.05460.us
  store float %11, ptr %41, align 4, !tbaa !25
  %42 = add nuw i64 %.05460.us, 1
  %exitcond71.not = icmp eq i64 %42, %6
  br i1 %exitcond71.not, label %.loopexit, label %.lr.ph.split.us, !llvm.loop !30

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %22, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %.lr.ph.split.split.us
  %.05460.us61 = phi i64 [ %59, %.lr.ph.split.split.us ], [ 0, %.lr.ph.split ]
  %43 = load ptr, ptr %24, align 8, !tbaa !24
  %44 = getelementptr inbounds float, ptr %43, i64 %.05460.us61
  %45 = load float, ptr %44, align 4, !tbaa !25
  %46 = fmul float %45, %13
  %47 = tail call float @llvm.round.f32(float %46)
  %48 = tail call float @sig_dsp_List_constrain(i1 noundef zeroext %16, float noundef %47, float noundef %13, float noundef %11)
  %49 = load ptr, ptr %25, align 8, !tbaa !26
  %50 = fptoui float %48 to i64
  %51 = getelementptr inbounds float, ptr %49, i64 %50
  %52 = load float, ptr %51, align 4, !tbaa !25
  %53 = load ptr, ptr %26, align 8, !tbaa !27
  %54 = getelementptr inbounds float, ptr %53, i64 %.05460.us61
  store float %52, ptr %54, align 4, !tbaa !25
  %55 = load ptr, ptr %27, align 8, !tbaa !28
  %56 = getelementptr inbounds float, ptr %55, i64 %.05460.us61
  store float %48, ptr %56, align 4, !tbaa !25
  %57 = load ptr, ptr %28, align 8, !tbaa !29
  %58 = getelementptr inbounds float, ptr %57, i64 %.05460.us61
  store float %11, ptr %58, align 4, !tbaa !25
  %59 = add nuw i64 %.05460.us61, 1
  %exitcond70.not = icmp eq i64 %59, %6
  br i1 %exitcond70.not, label %.loopexit, label %.lr.ph.split.split.us, !llvm.loop !30

.preheader:                                       ; preds = %9
  br i1 %.not66, label %.loopexit, label %.lr.ph63

.lr.ph63:                                         ; preds = %.preheader
  %60 = getelementptr inbounds i8, ptr %0, i64 40
  %61 = load ptr, ptr %60, align 8, !tbaa !27
  %62 = getelementptr inbounds i8, ptr %0, i64 48
  %63 = load ptr, ptr %62, align 8, !tbaa !28
  %64 = getelementptr inbounds i8, ptr %0, i64 56
  %65 = load ptr, ptr %64, align 8, !tbaa !29
  %min.iters.check = icmp ult i64 %6, 12
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph63
  %66 = ptrtoint ptr %65 to i64
  %67 = ptrtoint ptr %63 to i64
  %68 = ptrtoint ptr %61 to i64
  %69 = sub i64 %67, %68
  %diff.check = icmp ult i64 %69, 32
  %70 = sub i64 %66, %68
  %diff.check79 = icmp ult i64 %70, 32
  %conflict.rdx = or i1 %diff.check, %diff.check79
  %71 = sub i64 %66, %67
  %diff.check80 = icmp ult i64 %71, 32
  %conflict.rdx81 = or i1 %conflict.rdx, %diff.check80
  br i1 %conflict.rdx81, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %6, -8
  %broadcast.splatinsert = insertelement <4 x float> poison, float %11, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %72 = getelementptr inbounds float, ptr %61, i64 %index
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  store <4 x float> zeroinitializer, ptr %72, align 4, !tbaa !25
  store <4 x float> zeroinitializer, ptr %73, align 4, !tbaa !25
  %74 = getelementptr inbounds float, ptr %63, i64 %index
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %74, align 4, !tbaa !25
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %75, align 4, !tbaa !25
  %76 = getelementptr inbounds float, ptr %65, i64 %index
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  store <4 x float> %broadcast.splat, ptr %76, align 4, !tbaa !25
  store <4 x float> %broadcast.splat, ptr %77, align 4, !tbaa !25
  %index.next = add nuw i64 %index, 8
  %78 = icmp eq i64 %index.next, %n.vec
  br i1 %78, label %middle.block, label %vector.body, !llvm.loop !32

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %6, %n.vec
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph63
  %.05562.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph63 ], [ %n.vec, %middle.block ]
  %.neg = or disjoint i64 %.05562.ph, 1
  %xtraiter = and i64 %6, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %79 = getelementptr inbounds float, ptr %61, i64 %.05562.ph
  store float 0.000000e+00, ptr %79, align 4, !tbaa !25
  %80 = getelementptr inbounds float, ptr %63, i64 %.05562.ph
  store float -1.000000e+00, ptr %80, align 4, !tbaa !25
  %81 = getelementptr inbounds float, ptr %65, i64 %.05562.ph
  store float %11, ptr %81, align 4, !tbaa !25
  %82 = or disjoint i64 %.05562.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.05562.unr = phi i64 [ %.05562.ph, %scalar.ph.preheader ], [ %82, %scalar.ph.prol ]
  %83 = icmp eq i64 %6, %.neg
  br i1 %83, label %.loopexit, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.05562 = phi i64 [ %91, %scalar.ph ], [ %.05562.unr, %scalar.ph.prol.loopexit ]
  %84 = getelementptr inbounds float, ptr %61, i64 %.05562
  store float 0.000000e+00, ptr %84, align 4, !tbaa !25
  %85 = getelementptr inbounds float, ptr %63, i64 %.05562
  store float -1.000000e+00, ptr %85, align 4, !tbaa !25
  %86 = getelementptr inbounds float, ptr %65, i64 %.05562
  store float %11, ptr %86, align 4, !tbaa !25
  %87 = add nuw i64 %.05562, 1
  %88 = getelementptr inbounds float, ptr %61, i64 %87
  store float 0.000000e+00, ptr %88, align 4, !tbaa !25
  %89 = getelementptr inbounds float, ptr %63, i64 %87
  store float -1.000000e+00, ptr %89, align 4, !tbaa !25
  %90 = getelementptr inbounds float, ptr %65, i64 %87
  store float %11, ptr %90, align 4, !tbaa !25
  %91 = add nuw i64 %.05562, 2
  %exitcond72.not.1 = icmp eq i64 %91, %6
  br i1 %exitcond72.not.1, label %.loopexit, label %scalar.ph, !llvm.loop !35

.lr.ph.split.split:                               ; preds = %.lr.ph.split, %.lr.ph.split.split
  %.05460 = phi i64 [ %107, %.lr.ph.split.split ], [ 0, %.lr.ph.split ]
  %92 = load ptr, ptr %24, align 8, !tbaa !24
  %93 = getelementptr inbounds float, ptr %92, i64 %.05460
  %94 = load float, ptr %93, align 4, !tbaa !25
  %95 = tail call float @llvm.round.f32(float %94)
  %96 = tail call float @sig_dsp_List_constrain(i1 noundef zeroext %16, float noundef %95, float noundef %13, float noundef %11)
  %97 = load ptr, ptr %25, align 8, !tbaa !26
  %98 = fptoui float %96 to i64
  %99 = getelementptr inbounds float, ptr %97, i64 %98
  %100 = load float, ptr %99, align 4, !tbaa !25
  %101 = load ptr, ptr %26, align 8, !tbaa !27
  %102 = getelementptr inbounds float, ptr %101, i64 %.05460
  store float %100, ptr %102, align 4, !tbaa !25
  %103 = load ptr, ptr %27, align 8, !tbaa !28
  %104 = getelementptr inbounds float, ptr %103, i64 %.05460
  store float %96, ptr %104, align 4, !tbaa !25
  %105 = load ptr, ptr %28, align 8, !tbaa !29
  %106 = getelementptr inbounds float, ptr %105, i64 %.05460
  store float %11, ptr %106, align 4, !tbaa !25
  %107 = add nuw i64 %.05460, 1
  %exitcond.not = icmp eq i64 %107, %6
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph.split.split, !llvm.loop !30

.loopexit:                                        ; preds = %.lr.ph.split.split, %.lr.ph.split.split.us, %.lr.ph.split.us, %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %.preheader58, %.preheader
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare dso_local float @sig_dsp_List_constrain(i1 noundef zeroext, float noundef, float noundef, float noundef) local_unnamed_addr #2

attributes #0 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint 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" }

!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, !8, i64 64}
!6 = !{!"sig_dsp_List", !7, i64 0, !11, i64 16, !12, i64 24, !14, i64 40, !8, i64 64}
!7 = !{!"sig_dsp_Signal", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"sig_dsp_List_Inputs", !8, i64 0}
!12 = !{!"sig_dsp_List_Parameters", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !9, i64 0}
!14 = !{!"sig_dsp_List_Outputs", !8, i64 0, !8, i64 8, !8, i64 16}
!15 = !{!6, !8, i64 0}
!16 = !{!17, !18, i64 16}
!17 = !{!"sig_AudioSettings", !13, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"long", !9, i64 0}
!19 = !{!20, !18, i64 0}
!20 = !{!"sig_Buffer", !18, i64 0, !8, i64 8}
!21 = !{!6, !13, i64 24}
!22 = !{!6, !13, i64 32}
!23 = !{!6, !13, i64 28}
!24 = !{!6, !8, i64 16}
!25 = !{!13, !13, i64 0}
!26 = !{!20, !8, i64 8}
!27 = !{!6, !8, i64 40}
!28 = !{!6, !8, i64 48}
!29 = !{!6, !8, i64 56}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31, !33, !34}
!33 = !{!"llvm.loop.isvectorized", i32 1}
!34 = !{!"llvm.loop.unroll.runtime.disable"}
!35 = distinct !{!35, !31, !33}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass