; 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_Ladder = type { %struct.sig_dsp_Signal, %struct.sig_dsp_FourPoleFilter_Inputs, %struct.sig_dsp_Ladder_Parameters, %struct.sig_dsp_FourPoleFilter_Outputs, i8, float, float, [4 x float], [4 x float], [4 x float], float, float, float, float, float }
%struct.sig_dsp_Signal = type { ptr, ptr }
%struct.sig_dsp_FourPoleFilter_Inputs = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sig_dsp_Ladder_Parameters = type { float }
%struct.sig_dsp_FourPoleFilter_Outputs = type { ptr, ptr, ptr }
%struct.sig_AudioSettings = type { float, i64, i64 }

; 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 nounwind uwtable
declare dso_local float @sig_fastTanhf(float noundef) #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
define dso_local void @sig_dsp_Ladder_generate(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca [5 x float], align 16
  %11 = alloca float, align 4
  %12 = alloca i64, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %19, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %20, i32 0, i32 5
  %22 = load float, ptr %21, align 4, !tbaa !9
  store float %22, ptr %4, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !17
  br label %23

23:                                               ; preds = %228, %1
  %24 = load i64, ptr %5, align 8, !tbaa !17
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds %struct.sig_dsp_Signal, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !19
  %29 = getelementptr inbounds %struct.sig_AudioSettings, ptr %28, i32 0, i32 2
  %30 = load i64, ptr %29, align 8, !tbaa !20
  %31 = icmp ult i64 %24, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %23
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %231

33:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %34, i32 0, i32 1
  %36 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Inputs, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !22
  %38 = load i64, ptr %5, align 8, !tbaa !17
  %39 = getelementptr inbounds float, ptr %37, i64 %38
  %40 = load float, ptr %39, align 4, !tbaa !16
  store float %40, ptr %7, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %41, i32 0, i32 1
  %43 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Inputs, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !23
  %45 = load i64, ptr %5, align 8, !tbaa !17
  %46 = getelementptr inbounds float, ptr %44, i64 %45
  %47 = load float, ptr %46, align 4, !tbaa !16
  store float %47, ptr %8, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %48, i32 0, i32 1
  %50 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Inputs, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !24
  %52 = load i64, ptr %5, align 8, !tbaa !17
  %53 = getelementptr inbounds float, ptr %51, i64 %52
  %54 = load float, ptr %53, align 4, !tbaa !16
  store float %54, ptr %9, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 20, ptr %10) #5
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store float 0.000000e+00, ptr %11, align 4, !tbaa !16
  %55 = load float, ptr %8, align 4, !tbaa !16
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %56, i32 0, i32 13
  %58 = load float, ptr %57, align 8, !tbaa !25
  %59 = fcmp une float %55, %58
  br i1 %59, label %60, label %66

60:                                               ; preds = %33
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = load float, ptr %8, align 4, !tbaa !16
  call void @sig_dsp_Ladder_calcCoefficients(ptr noundef %61, float noundef %62)
  %63 = load float, ptr %8, align 4, !tbaa !16
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %64, i32 0, i32 13
  store float %63, ptr %65, align 8, !tbaa !25
  br label %66

66:                                               ; preds = %60, %33
  %67 = load float, ptr %9, align 4, !tbaa !16
  %68 = fmul float 4.000000e+00, %67
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %69, i32 0, i32 10
  store float %68, ptr %70, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !17
  br label %71

71:                                               ; preds = %149, %66
  %72 = load i64, ptr %12, align 8, !tbaa !17
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %73, i32 0, i32 4
  %75 = load i8, ptr %74, align 8, !tbaa !27
  %76 = zext i8 %75 to i64
  %77 = icmp ult i64 %72, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %71
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %152

79:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %80 = load float, ptr %11, align 4, !tbaa !16
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %81, i32 0, i32 14
  %83 = load float, ptr %82, align 4, !tbaa !28
  %84 = load float, ptr %11, align 4, !tbaa !16
  %85 = fsub float 1.000000e+00, %84
  %86 = load float, ptr %7, align 4, !tbaa !16
  %87 = fmul float %85, %86
  %88 = call float @llvm.fmuladd.f32(float %80, float %83, float %87)
  store float %88, ptr %13, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %89 = load float, ptr %13, align 4, !tbaa !16
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %90, i32 0, i32 9
  %92 = getelementptr inbounds [4 x float], ptr %91, i64 0, i64 3
  %93 = load float, ptr %92, align 4, !tbaa !16
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %94, i32 0, i32 2
  %96 = getelementptr inbounds %struct.sig_dsp_Ladder_Parameters, ptr %95, i32 0, i32 0
  %97 = load float, ptr %96, align 8, !tbaa !29
  %98 = load float, ptr %13, align 4, !tbaa !16
  %99 = fneg float %97
  %100 = call float @llvm.fmuladd.f32(float %99, float %98, float %93)
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %101, i32 0, i32 10
  %103 = load float, ptr %102, align 4, !tbaa !26
  %104 = fmul float %100, %103
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %105, i32 0, i32 12
  %107 = load float, ptr %106, align 4, !tbaa !30
  %108 = fneg float %104
  %109 = call float @llvm.fmuladd.f32(float %108, float %107, float %89)
  store float %109, ptr %14, align 4, !tbaa !16
  %110 = load float, ptr %14, align 4, !tbaa !16
  %111 = call float @sig_fastTanhf(float noundef %110)
  store float %111, ptr %14, align 4, !tbaa !16
  %112 = load float, ptr %14, align 4, !tbaa !16
  %113 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 0
  store float %112, ptr %113, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = load float, ptr %14, align 4, !tbaa !16
  %116 = call float @sig_dsp_Ladder_calcStage(ptr noundef %114, float noundef %115, i8 noundef zeroext 0)
  store float %116, ptr %15, align 4, !tbaa !16
  %117 = load float, ptr %15, align 4, !tbaa !16
  %118 = load float, ptr %4, align 4, !tbaa !16
  %119 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 1
  %120 = load float, ptr %119, align 4, !tbaa !16
  %121 = call float @llvm.fmuladd.f32(float %117, float %118, float %120)
  store float %121, ptr %119, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = load float, ptr %15, align 4, !tbaa !16
  %124 = call float @sig_dsp_Ladder_calcStage(ptr noundef %122, float noundef %123, i8 noundef zeroext 1)
  store float %124, ptr %16, align 4, !tbaa !16
  %125 = load float, ptr %16, align 4, !tbaa !16
  %126 = load float, ptr %4, align 4, !tbaa !16
  %127 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 2
  %128 = load float, ptr %127, align 8, !tbaa !16
  %129 = call float @llvm.fmuladd.f32(float %125, float %126, float %128)
  store float %129, ptr %127, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = load float, ptr %16, align 4, !tbaa !16
  %132 = call float @sig_dsp_Ladder_calcStage(ptr noundef %130, float noundef %131, i8 noundef zeroext 2)
  store float %132, ptr %17, align 4, !tbaa !16
  %133 = load float, ptr %17, align 4, !tbaa !16
  %134 = load float, ptr %4, align 4, !tbaa !16
  %135 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 3
  %136 = load float, ptr %135, align 4, !tbaa !16
  %137 = call float @llvm.fmuladd.f32(float %133, float %134, float %136)
  store float %137, ptr %135, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = load float, ptr %17, align 4, !tbaa !16
  %140 = call float @sig_dsp_Ladder_calcStage(ptr noundef %138, float noundef %139, i8 noundef zeroext 3)
  store float %140, ptr %18, align 4, !tbaa !16
  %141 = load float, ptr %18, align 4, !tbaa !16
  %142 = load float, ptr %4, align 4, !tbaa !16
  %143 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 4
  %144 = load float, ptr %143, align 16, !tbaa !16
  %145 = call float @llvm.fmuladd.f32(float %141, float %142, float %144)
  store float %145, ptr %143, align 16, !tbaa !16
  %146 = load float, ptr %4, align 4, !tbaa !16
  %147 = load float, ptr %11, align 4, !tbaa !16
  %148 = fadd float %147, %146
  store float %148, ptr %11, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %149

149:                                              ; preds = %79
  %150 = load i64, ptr %12, align 8, !tbaa !17
  %151 = add i64 %150, 1
  store i64 %151, ptr %12, align 8, !tbaa !17
  br label %71, !llvm.loop !31

152:                                              ; preds = %78
  %153 = load float, ptr %7, align 4, !tbaa !16
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %154, i32 0, i32 14
  store float %153, ptr %155, align 4, !tbaa !28
  %156 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 0
  %157 = load float, ptr %156, align 16, !tbaa !16
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %158, i32 0, i32 1
  %160 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Inputs, ptr %159, i32 0, i32 3
  %161 = load ptr, ptr %160, align 8, !tbaa !33
  %162 = load i64, ptr %5, align 8, !tbaa !17
  %163 = getelementptr inbounds float, ptr %161, i64 %162
  %164 = load float, ptr %163, align 4, !tbaa !16
  %165 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 1
  %166 = load float, ptr %165, align 4, !tbaa !16
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %167, i32 0, i32 1
  %169 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Inputs, ptr %168, i32 0, i32 4
  %170 = load ptr, ptr %169, align 8, !tbaa !34
  %171 = load i64, ptr %5, align 8, !tbaa !17
  %172 = getelementptr inbounds float, ptr %170, i64 %171
  %173 = load float, ptr %172, align 4, !tbaa !16
  %174 = fmul float %166, %173
  %175 = call float @llvm.fmuladd.f32(float %157, float %164, float %174)
  %176 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 2
  %177 = load float, ptr %176, align 8, !tbaa !16
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %178, i32 0, i32 1
  %180 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Inputs, ptr %179, i32 0, i32 5
  %181 = load ptr, ptr %180, align 8, !tbaa !35
  %182 = load i64, ptr %5, align 8, !tbaa !17
  %183 = getelementptr inbounds float, ptr %181, i64 %182
  %184 = load float, ptr %183, align 4, !tbaa !16
  %185 = call float @llvm.fmuladd.f32(float %177, float %184, float %175)
  %186 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 3
  %187 = load float, ptr %186, align 4, !tbaa !16
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %188, i32 0, i32 1
  %190 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Inputs, ptr %189, i32 0, i32 6
  %191 = load ptr, ptr %190, align 8, !tbaa !36
  %192 = load i64, ptr %5, align 8, !tbaa !17
  %193 = getelementptr inbounds float, ptr %191, i64 %192
  %194 = load float, ptr %193, align 4, !tbaa !16
  %195 = call float @llvm.fmuladd.f32(float %187, float %194, float %185)
  %196 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 4
  %197 = load float, ptr %196, align 16, !tbaa !16
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %198, i32 0, i32 1
  %200 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Inputs, ptr %199, i32 0, i32 7
  %201 = load ptr, ptr %200, align 8, !tbaa !37
  %202 = load i64, ptr %5, align 8, !tbaa !17
  %203 = getelementptr inbounds float, ptr %201, i64 %202
  %204 = load float, ptr %203, align 4, !tbaa !16
  %205 = call float @llvm.fmuladd.f32(float %197, float %204, float %195)
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %206, i32 0, i32 3
  %208 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Outputs, ptr %207, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8, !tbaa !38
  %210 = load i64, ptr %5, align 8, !tbaa !17
  %211 = getelementptr inbounds float, ptr %209, i64 %210
  store float %205, ptr %211, align 4, !tbaa !16
  %212 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 2
  %213 = load float, ptr %212, align 8, !tbaa !16
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %214, i32 0, i32 3
  %216 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Outputs, ptr %215, i32 0, i32 1
  %217 = load ptr, ptr %216, align 8, !tbaa !39
  %218 = load i64, ptr %5, align 8, !tbaa !17
  %219 = getelementptr inbounds float, ptr %217, i64 %218
  store float %213, ptr %219, align 4, !tbaa !16
  %220 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 4
  %221 = load float, ptr %220, align 16, !tbaa !16
  %222 = load ptr, ptr %3, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.sig_dsp_Ladder, ptr %222, i32 0, i32 3
  %224 = getelementptr inbounds %struct.sig_dsp_FourPoleFilter_Outputs, ptr %223, i32 0, i32 2
  %225 = load ptr, ptr %224, align 8, !tbaa !40
  %226 = load i64, ptr %5, align 8, !tbaa !17
  %227 = getelementptr inbounds float, ptr %225, i64 %226
  store float %221, ptr %227, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %228

228:                                              ; preds = %152
  %229 = load i64, ptr %5, align 8, !tbaa !17
  %230 = add i64 %229, 1
  store i64 %230, ptr %5, align 8, !tbaa !17
  br label %23, !llvm.loop !41

231:                                              ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare dso_local void @sig_dsp_Ladder_calcCoefficients(ptr noundef, float noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare dso_local float @sig_dsp_Ladder_calcStage(ptr noundef, float noundef, i8 noundef zeroext) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = { 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, !14, i64 116}
!10 = !{!"sig_dsp_Ladder", !11, i64 0, !12, i64 16, !13, i64 80, !15, i64 88, !7, i64 112, !14, i64 116, !14, i64 120, !7, i64 124, !7, i64 140, !7, i64 156, !14, i64 172, !14, i64 176, !14, i64 180, !14, i64 184, !14, i64 188}
!11 = !{!"sig_dsp_Signal", !6, i64 0, !6, i64 8}
!12 = !{!"sig_dsp_FourPoleFilter_Inputs", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!13 = !{!"sig_dsp_Ladder_Parameters", !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!"sig_dsp_FourPoleFilter_Outputs", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!10, !6, i64 0}
!20 = !{!21, !18, i64 16}
!21 = !{!"sig_AudioSettings", !14, i64 0, !18, i64 8, !18, i64 16}
!22 = !{!10, !6, i64 16}
!23 = !{!10, !6, i64 24}
!24 = !{!10, !6, i64 32}
!25 = !{!10, !14, i64 184}
!26 = !{!10, !14, i64 172}
!27 = !{!10, !7, i64 112}
!28 = !{!10, !14, i64 188}
!29 = !{!10, !14, i64 80}
!30 = !{!10, !14, i64 180}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!10, !6, i64 40}
!34 = !{!10, !6, i64 48}
!35 = !{!10, !6, i64 56}
!36 = !{!10, !6, i64 64}
!37 = !{!10, !6, i64 72}
!38 = !{!10, !6, i64 88}
!39 = !{!10, !6, i64 96}
!40 = !{!10, !6, i64 104}
!41 = distinct !{!41, !32}


; 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 nounwind uwtable
declare dso_local float @sig_fastTanhf(float noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @sig_dsp_Ladder_generate(ptr noundef %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 116
  %3 = load float, ptr %2, align 4, !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 i64 %6, 0
  br i1 %.not, label %._crit_edge91, label %.lr.ph90

.lr.ph90:                                         ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = getelementptr inbounds i8, ptr %0, i64 184
  %11 = getelementptr inbounds i8, ptr %0, i64 172
  %12 = getelementptr inbounds i8, ptr %0, i64 112
  %13 = getelementptr inbounds i8, ptr %0, i64 188
  %14 = getelementptr inbounds i8, ptr %0, i64 168
  %15 = getelementptr inbounds i8, ptr %0, i64 80
  %16 = getelementptr inbounds i8, ptr %0, i64 180
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  %18 = getelementptr inbounds i8, ptr %0, i64 48
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  %20 = getelementptr inbounds i8, ptr %0, i64 64
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  %22 = getelementptr inbounds i8, ptr %0, i64 88
  %23 = getelementptr inbounds i8, ptr %0, i64 96
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  %25 = insertelement <4 x float> poison, float %3, i64 0
  %26 = shufflevector <4 x float> %25, <4 x float> poison, <4 x i32> zeroinitializer
  br label %27

._crit_edge91:                                    ; preds = %._crit_edge, %1
  ret void

27:                                               ; preds = %.lr.ph90, %._crit_edge
  %.088 = phi i64 [ 0, %.lr.ph90 ], [ %74, %._crit_edge ]
  %28 = load ptr, ptr %7, align 8, !tbaa !19
  %29 = getelementptr inbounds float, ptr %28, i64 %.088
  %30 = load float, ptr %29, align 4, !tbaa !20
  %31 = load ptr, ptr %8, align 8, !tbaa !21
  %32 = getelementptr inbounds float, ptr %31, i64 %.088
  %33 = load float, ptr %32, align 4, !tbaa !20
  %34 = load ptr, ptr %9, align 8, !tbaa !22
  %35 = getelementptr inbounds float, ptr %34, i64 %.088
  %36 = load float, ptr %35, align 4, !tbaa !20
  %37 = load float, ptr %10, align 8, !tbaa !23
  %38 = fcmp une float %33, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %27
  tail call void @sig_dsp_Ladder_calcCoefficients(ptr noundef nonnull %0, float noundef %33)
  store float %33, ptr %10, align 8, !tbaa !23
  br label %40

40:                                               ; preds = %39, %27
  %41 = fmul float %36, 4.000000e+00
  store float %41, ptr %11, align 4, !tbaa !24
  %42 = load i8, ptr %12, align 8, !tbaa !25
  %.not92 = icmp eq i8 %42, 0
  br i1 %.not92, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %40
  %.sroa.0.1.lcssa = phi float [ 0.000000e+00, %40 ], [ %93, %.lr.ph ]
  %43 = phi <4 x float> [ zeroinitializer, %40 ], [ %102, %.lr.ph ]
  store float %30, ptr %13, align 4, !tbaa !26
  %44 = load ptr, ptr %17, align 8, !tbaa !27
  %45 = getelementptr inbounds float, ptr %44, i64 %.088
  %46 = load float, ptr %45, align 4, !tbaa !20
  %47 = load ptr, ptr %18, align 8, !tbaa !28
  %48 = getelementptr inbounds float, ptr %47, i64 %.088
  %49 = load float, ptr %48, align 4, !tbaa !20
  %50 = extractelement <4 x float> %43, i64 1
  %51 = fmul float %50, %49
  %52 = tail call float @llvm.fmuladd.f32(float %.sroa.0.1.lcssa, float %46, float %51)
  %53 = load ptr, ptr %19, align 8, !tbaa !29
  %54 = getelementptr inbounds float, ptr %53, i64 %.088
  %55 = load float, ptr %54, align 4, !tbaa !20
  %56 = extractelement <4 x float> %43, i64 3
  %57 = tail call float @llvm.fmuladd.f32(float %56, float %55, float %52)
  %58 = load ptr, ptr %20, align 8, !tbaa !30
  %59 = getelementptr inbounds float, ptr %58, i64 %.088
  %60 = load float, ptr %59, align 4, !tbaa !20
  %61 = extractelement <4 x float> %43, i64 0
  %62 = tail call float @llvm.fmuladd.f32(float %61, float %60, float %57)
  %63 = load ptr, ptr %21, align 8, !tbaa !31
  %64 = getelementptr inbounds float, ptr %63, i64 %.088
  %65 = load float, ptr %64, align 4, !tbaa !20
  %66 = extractelement <4 x float> %43, i64 2
  %67 = tail call float @llvm.fmuladd.f32(float %66, float %65, float %62)
  %68 = load ptr, ptr %22, align 8, !tbaa !32
  %69 = getelementptr inbounds float, ptr %68, i64 %.088
  store float %67, ptr %69, align 4, !tbaa !20
  %70 = load ptr, ptr %23, align 8, !tbaa !33
  %71 = getelementptr inbounds float, ptr %70, i64 %.088
  store float %56, ptr %71, align 4, !tbaa !20
  %72 = load ptr, ptr %24, align 8, !tbaa !34
  %73 = getelementptr inbounds float, ptr %72, i64 %.088
  store float %66, ptr %73, align 4, !tbaa !20
  %74 = add nuw i64 %.088, 1
  %75 = load ptr, ptr %0, align 8, !tbaa !15
  %76 = getelementptr inbounds i8, ptr %75, i64 16
  %77 = load i64, ptr %76, align 8, !tbaa !16
  %78 = icmp ult i64 %74, %77
  br i1 %78, label %27, label %._crit_edge91, !llvm.loop !35

.lr.ph:                                           ; preds = %40, %.lr.ph
  %.07580 = phi i64 [ %104, %.lr.ph ], [ 0, %40 ]
  %.07679 = phi float [ %103, %.lr.ph ], [ 0.000000e+00, %40 ]
  %79 = phi <4 x float> [ %102, %.lr.ph ], [ zeroinitializer, %40 ]
  %80 = load float, ptr %13, align 4, !tbaa !26
  %81 = fsub float 1.000000e+00, %.07679
  %82 = fmul float %30, %81
  %83 = tail call float @llvm.fmuladd.f32(float %.07679, float %80, float %82)
  %84 = load float, ptr %14, align 4, !tbaa !20
  %85 = load float, ptr %15, align 8, !tbaa !37
  %86 = fneg float %85
  %87 = tail call float @llvm.fmuladd.f32(float %86, float %83, float %84)
  %88 = load float, ptr %11, align 4, !tbaa !24
  %89 = load float, ptr %16, align 4, !tbaa !38
  %90 = fneg float %87
  %91 = fmul float %88, %90
  %92 = tail call float @llvm.fmuladd.f32(float %91, float %89, float %83)
  %93 = tail call float @sig_fastTanhf(float noundef %92)
  %94 = tail call float @sig_dsp_Ladder_calcStage(ptr noundef nonnull %0, float noundef %93, i8 noundef zeroext 0)
  %95 = tail call float @sig_dsp_Ladder_calcStage(ptr noundef nonnull %0, float noundef %94, i8 noundef zeroext 1)
  %96 = tail call float @sig_dsp_Ladder_calcStage(ptr noundef nonnull %0, float noundef %95, i8 noundef zeroext 2)
  %97 = tail call float @sig_dsp_Ladder_calcStage(ptr noundef nonnull %0, float noundef %96, i8 noundef zeroext 3)
  %98 = insertelement <4 x float> poison, float %96, i64 0
  %99 = insertelement <4 x float> %98, float %94, i64 1
  %100 = insertelement <4 x float> %99, float %97, i64 2
  %101 = insertelement <4 x float> %100, float %95, i64 3
  %102 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %101, <4 x float> %26, <4 x float> %79)
  %103 = fadd float %3, %.07679
  %104 = add nuw nsw i64 %.07580, 1
  %105 = load i8, ptr %12, align 8, !tbaa !25
  %106 = zext i8 %105 to i64
  %107 = icmp ult i64 %104, %106
  br i1 %107, label %.lr.ph, label %._crit_edge, !llvm.loop !39
}

; Function Attrs: inlinehint nounwind uwtable
declare dso_local void @sig_dsp_Ladder_calcCoefficients(ptr noundef, float noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare dso_local float @sig_dsp_Ladder_calcStage(ptr noundef, float noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #3

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

!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, !13, i64 116}
!6 = !{!"sig_dsp_Ladder", !7, i64 0, !11, i64 16, !12, i64 80, !14, i64 88, !9, i64 112, !13, i64 116, !13, i64 120, !9, i64 124, !9, i64 140, !9, i64 156, !13, i64 172, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188}
!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_FourPoleFilter_Inputs", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56}
!12 = !{!"sig_dsp_Ladder_Parameters", !13, i64 0}
!13 = !{!"float", !9, i64 0}
!14 = !{!"sig_dsp_FourPoleFilter_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 = !{!6, !8, i64 16}
!20 = !{!13, !13, i64 0}
!21 = !{!6, !8, i64 24}
!22 = !{!6, !8, i64 32}
!23 = !{!6, !13, i64 184}
!24 = !{!6, !13, i64 172}
!25 = !{!6, !9, i64 112}
!26 = !{!6, !13, i64 188}
!27 = !{!6, !8, i64 40}
!28 = !{!6, !8, i64 48}
!29 = !{!6, !8, i64 56}
!30 = !{!6, !8, i64 64}
!31 = !{!6, !8, i64 72}
!32 = !{!6, !8, i64 88}
!33 = !{!6, !8, i64 96}
!34 = !{!6, !8, i64 104}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!6, !13, i64 80}
!38 = !{!6, !13, i64 180}
!39 = distinct !{!39, !36}


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