; 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_Looper = type { %struct.sig_dsp_Signal, %struct.sig_dsp_Looper_Inputs, %struct.sig_dsp_Signal_SingleMonoOutput, %struct.sig_dsp_Looper_Loop, i64, float, float, float }
%struct.sig_dsp_Signal = type { ptr, ptr }
%struct.sig_dsp_Looper_Inputs = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sig_dsp_Signal_SingleMonoOutput = type { ptr }
%struct.sig_dsp_Looper_Loop = type { ptr, i64, i64, i8 }
%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_clamp(float noundef, float noundef, float noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @sig_dsp_Looper_generate(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %12, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %13

13:                                               ; preds = %152, %1
  %14 = load i64, ptr %4, align 8, !tbaa !9
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %15, i32 0, i32 0
  %17 = getelementptr inbounds %struct.sig_dsp_Signal, ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds %struct.sig_AudioSettings, ptr %18, i32 0, i32 2
  %20 = load i64, ptr %19, align 8, !tbaa !19
  %21 = icmp ult i64 %14, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds %struct.sig_dsp_Looper_Inputs, ptr %25, i32 0, i32 3
  %27 = load ptr, ptr %26, align 8, !tbaa !21
  %28 = load i64, ptr %4, align 8, !tbaa !9
  %29 = getelementptr inbounds float, ptr %27, i64 %28
  %30 = load float, ptr %29, align 4, !tbaa !22
  store float %30, ptr %5, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %31, i32 0, i32 1
  %33 = getelementptr inbounds %struct.sig_dsp_Looper_Inputs, ptr %32, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !23
  %35 = load i64, ptr %4, align 8, !tbaa !9
  %36 = getelementptr inbounds float, ptr %34, i64 %35
  %37 = load float, ptr %36, align 4, !tbaa !22
  %38 = call float @sig_clamp(float noundef %37, float noundef 0.000000e+00, float noundef 1.000000e+00)
  store float %38, ptr %6, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %39, i32 0, i32 1
  %41 = getelementptr inbounds %struct.sig_dsp_Looper_Inputs, ptr %40, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !24
  %43 = load i64, ptr %4, align 8, !tbaa !9
  %44 = getelementptr inbounds float, ptr %42, i64 %43
  %45 = load float, ptr %44, align 4, !tbaa !22
  %46 = call float @sig_clamp(float noundef %45, float noundef 0.000000e+00, float noundef 1.000000e+00)
  store float %46, ptr %7, align 4, !tbaa !22
  %47 = load float, ptr %6, align 4, !tbaa !22
  %48 = load float, ptr %7, align 4, !tbaa !22
  %49 = fcmp ogt float %47, %48
  br i1 %49, label %50, label %54

50:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %51 = load float, ptr %6, align 4, !tbaa !22
  store float %51, ptr %8, align 4, !tbaa !22
  %52 = load float, ptr %7, align 4, !tbaa !22
  store float %52, ptr %6, align 4, !tbaa !22
  %53 = load float, ptr %8, align 4, !tbaa !22
  store float %53, ptr %7, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %54

54:                                               ; preds = %50, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %55, i32 0, i32 4
  %57 = load i64, ptr %56, align 8, !tbaa !25
  %58 = uitofp i64 %57 to float
  %59 = load float, ptr %6, align 4, !tbaa !22
  %60 = fmul float %58, %59
  %61 = call float @llvm.round.f32(float %60)
  store float %61, ptr %9, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %62, i32 0, i32 4
  %64 = load i64, ptr %63, align 8, !tbaa !25
  %65 = uitofp i64 %64 to float
  %66 = load float, ptr %7, align 4, !tbaa !22
  %67 = fmul float %65, %66
  %68 = call float @llvm.round.f32(float %67)
  store float %68, ptr %10, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store float 0.000000e+00, ptr %11, align 4, !tbaa !22
  %69 = load float, ptr %10, align 4, !tbaa !22
  %70 = load float, ptr %9, align 4, !tbaa !22
  %71 = fsub float %69, %70
  %72 = load float, ptr %5, align 4, !tbaa !22
  %73 = call float @llvm.fabs.f32(float %72)
  %74 = fcmp ole float %71, %73
  br i1 %74, label %75, label %83

75:                                               ; preds = %54
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds %struct.sig_dsp_Looper_Inputs, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !26
  %80 = load i64, ptr %4, align 8, !tbaa !9
  %81 = getelementptr inbounds float, ptr %79, i64 %80
  %82 = load float, ptr %81, align 4, !tbaa !22
  store float %82, ptr %11, align 4, !tbaa !22
  br label %117

83:                                               ; preds = %54
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds %struct.sig_dsp_Looper_Inputs, ptr %85, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !27
  %88 = load i64, ptr %4, align 8, !tbaa !9
  %89 = getelementptr inbounds float, ptr %87, i64 %88
  %90 = load float, ptr %89, align 4, !tbaa !22
  %91 = fcmp ogt float %90, 0.000000e+00
  br i1 %91, label %92, label %112

92:                                               ; preds = %83
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %93, i32 0, i32 3
  %95 = getelementptr inbounds %struct.sig_dsp_Looper_Loop, ptr %94, i32 0, i32 3
  %96 = load i8, ptr %95, align 8, !tbaa !28, !range !29, !noundef !30
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %99

98:                                               ; preds = %92
  br label %104

99:                                               ; preds = %92
  %100 = load float, ptr %5, align 4, !tbaa !22
  %101 = fcmp oge float %100, 0.000000e+00
  %102 = zext i1 %101 to i64
  %103 = select i1 %101, double 1.000000e+00, double -1.000000e+00
  br label %104

104:                                              ; preds = %99, %98
  %105 = phi double [ 1.000000e+00, %98 ], [ %103, %99 ]
  %106 = fptrunc double %105 to float
  store float %106, ptr %5, align 4, !tbaa !22
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = load float, ptr %9, align 4, !tbaa !22
  %109 = load float, ptr %10, align 4, !tbaa !22
  %110 = load i64, ptr %4, align 8, !tbaa !9
  %111 = call float @sig_dsp_Looper_record(ptr noundef %107, float noundef %108, float noundef %109, i64 noundef %110)
  store float %111, ptr %11, align 4, !tbaa !22
  br label %116

112:                                              ; preds = %83
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = load i64, ptr %4, align 8, !tbaa !9
  %115 = call float @sig_dsp_Looper_play(ptr noundef %113, i64 noundef %114)
  store float %115, ptr %11, align 4, !tbaa !22
  br label %116

116:                                              ; preds = %112, %104
  br label %117

117:                                              ; preds = %116, %75
  %118 = load float, ptr %11, align 4, !tbaa !22
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %119, i32 0, i32 2
  %121 = getelementptr inbounds %struct.sig_dsp_Signal_SingleMonoOutput, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !31
  %123 = load i64, ptr %4, align 8, !tbaa !9
  %124 = getelementptr inbounds float, ptr %122, i64 %123
  store float %118, ptr %124, align 4, !tbaa !22
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %125, i32 0, i32 5
  %127 = load float, ptr %126, align 8, !tbaa !32
  %128 = load float, ptr %9, align 4, !tbaa !22
  %129 = load float, ptr %10, align 4, !tbaa !22
  %130 = load float, ptr %5, align 4, !tbaa !22
  %131 = call float @sig_dsp_Looper_nextPosition(float noundef %127, float noundef %128, float noundef %129, float noundef %130)
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %132, i32 0, i32 5
  store float %131, ptr %133, align 8, !tbaa !32
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %134, i32 0, i32 1
  %136 = getelementptr inbounds %struct.sig_dsp_Looper_Inputs, ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !27
  %138 = load i64, ptr %4, align 8, !tbaa !9
  %139 = getelementptr inbounds float, ptr %137, i64 %138
  %140 = load float, ptr %139, align 4, !tbaa !22
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %141, i32 0, i32 6
  store float %140, ptr %142, align 4, !tbaa !33
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %143, i32 0, i32 1
  %145 = getelementptr inbounds %struct.sig_dsp_Looper_Inputs, ptr %144, i32 0, i32 5
  %146 = load ptr, ptr %145, align 8, !tbaa !34
  %147 = load i64, ptr %4, align 8, !tbaa !9
  %148 = getelementptr inbounds float, ptr %146, i64 %147
  %149 = load float, ptr %148, align 4, !tbaa !22
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.sig_dsp_Looper, ptr %150, i32 0, i32 7
  store float %149, ptr %151, align 8, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %152

152:                                              ; preds = %117
  %153 = load i64, ptr %4, align 8, !tbaa !9
  %154 = add i64 %153, 1
  store i64 %154, ptr %4, align 8, !tbaa !9
  br label %13, !llvm.loop !36

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sig_dsp_Looper_record(ptr noundef, float noundef, float noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sig_dsp_Looper_play(ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sig_dsp_Looper_nextPosition(float noundef, float noundef, float noundef, float noundef) #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 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"sig_dsp_Looper", !13, i64 0, !14, i64 16, !15, i64 64, !16, i64 72, !10, i64 104, !18, i64 112, !18, i64 116, !18, i64 120}
!13 = !{!"sig_dsp_Signal", !6, i64 0, !6, i64 8}
!14 = !{!"sig_dsp_Looper_Inputs", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!15 = !{!"sig_dsp_Signal_SingleMonoOutput", !6, i64 0}
!16 = !{!"sig_dsp_Looper_Loop", !6, i64 0, !10, i64 8, !10, i64 16, !17, i64 24}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!20, !10, i64 16}
!20 = !{!"sig_AudioSettings", !18, i64 0, !10, i64 8, !10, i64 16}
!21 = !{!12, !6, i64 40}
!22 = !{!18, !18, i64 0}
!23 = !{!12, !6, i64 24}
!24 = !{!12, !6, i64 32}
!25 = !{!12, !10, i64 104}
!26 = !{!12, !6, i64 16}
!27 = !{!12, !6, i64 48}
!28 = !{!12, !17, i64 96}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!12, !6, i64 64}
!32 = !{!12, !18, i64 112}
!33 = !{!12, !18, i64 116}
!34 = !{!12, !6, i64 56}
!35 = !{!12, !18, i64 120}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}


; 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_clamp(float noundef, float noundef, float 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1

; Function Attrs: nounwind uwtable
define dso_local void @sig_dsp_Looper_generate(ptr noundef %0) local_unnamed_addr #2 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %2, i64 16
  %4 = load i64, ptr %3, align 8, !tbaa !17
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = getelementptr inbounds i8, ptr %0, i64 104
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  %11 = getelementptr inbounds i8, ptr %0, i64 96
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  %13 = getelementptr inbounds i8, ptr %0, i64 112
  %14 = getelementptr inbounds i8, ptr %0, i64 116
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = getelementptr inbounds i8, ptr %0, i64 120
  br label %17

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

17:                                               ; preds = %.lr.ph, %57
  %.04754 = phi i64 [ 0, %.lr.ph ], [ %68, %57 ]
  %18 = load ptr, ptr %5, align 8, !tbaa !19
  %19 = getelementptr inbounds float, ptr %18, i64 %.04754
  %20 = load float, ptr %19, align 4, !tbaa !20
  %21 = load ptr, ptr %6, align 8, !tbaa !21
  %22 = getelementptr inbounds float, ptr %21, i64 %.04754
  %23 = load float, ptr %22, align 4, !tbaa !20
  %24 = tail call float @sig_clamp(float noundef %23, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %25 = load ptr, ptr %7, align 8, !tbaa !22
  %26 = getelementptr inbounds float, ptr %25, i64 %.04754
  %27 = load float, ptr %26, align 4, !tbaa !20
  %28 = tail call float @sig_clamp(float noundef %27, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %29 = fcmp ogt float %24, %28
  %.050 = select i1 %29, float %24, float %28
  %.049 = select i1 %29, float %28, float %24
  %30 = load i64, ptr %8, align 8, !tbaa !23
  %31 = uitofp i64 %30 to float
  %32 = fmul float %.049, %31
  %33 = tail call float @llvm.round.f32(float %32)
  %34 = fmul float %.050, %31
  %35 = tail call float @llvm.round.f32(float %34)
  %36 = fsub float %35, %33
  %37 = tail call float @llvm.fabs.f32(float %20)
  %38 = fcmp ugt float %36, %37
  br i1 %38, label %43, label %39

39:                                               ; preds = %17
  %40 = load ptr, ptr %9, align 8, !tbaa !24
  %41 = getelementptr inbounds float, ptr %40, i64 %.04754
  %42 = load float, ptr %41, align 4, !tbaa !20
  br label %57

43:                                               ; preds = %17
  %44 = load ptr, ptr %10, align 8, !tbaa !25
  %45 = getelementptr inbounds float, ptr %44, i64 %.04754
  %46 = load float, ptr %45, align 4, !tbaa !20
  %47 = fcmp ogt float %46, 0.000000e+00
  br i1 %47, label %48, label %55

48:                                               ; preds = %43
  %49 = load i8, ptr %11, align 8, !tbaa !26, !range !27, !noundef !28
  %50 = trunc nuw i8 %49 to i1
  %51 = fcmp oge float %20, 0.000000e+00
  %52 = select i1 %50, i1 true, i1 %51
  %53 = select i1 %52, float 1.000000e+00, float -1.000000e+00
  %54 = tail call float @sig_dsp_Looper_record(ptr noundef nonnull %0, float noundef %33, float noundef %35, i64 noundef %.04754)
  br label %57

55:                                               ; preds = %43
  %56 = tail call float @sig_dsp_Looper_play(ptr noundef nonnull %0, i64 noundef %.04754)
  br label %57

57:                                               ; preds = %48, %55, %39
  %.048 = phi float [ %20, %39 ], [ %53, %48 ], [ %20, %55 ]
  %.0 = phi float [ %42, %39 ], [ %54, %48 ], [ %56, %55 ]
  %58 = load ptr, ptr %12, align 8, !tbaa !29
  %59 = getelementptr inbounds float, ptr %58, i64 %.04754
  store float %.0, ptr %59, align 4, !tbaa !20
  %60 = load float, ptr %13, align 8, !tbaa !30
  %61 = tail call float @sig_dsp_Looper_nextPosition(float noundef %60, float noundef %33, float noundef %35, float noundef %.048)
  store float %61, ptr %13, align 8, !tbaa !30
  %62 = load ptr, ptr %10, align 8, !tbaa !25
  %63 = getelementptr inbounds float, ptr %62, i64 %.04754
  %64 = load float, ptr %63, align 4, !tbaa !20
  store float %64, ptr %14, align 4, !tbaa !31
  %65 = load ptr, ptr %15, align 8, !tbaa !32
  %66 = getelementptr inbounds float, ptr %65, i64 %.04754
  %67 = load float, ptr %66, align 4, !tbaa !20
  store float %67, ptr %16, align 8, !tbaa !33
  %68 = add nuw i64 %.04754, 1
  %69 = load ptr, ptr %0, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %71 = load i64, ptr %70, align 8, !tbaa !17
  %72 = icmp ult i64 %68, %71
  br i1 %72, label %17, label %._crit_edge, !llvm.loop !34
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sig_dsp_Looper_record(ptr noundef, float noundef, float noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sig_dsp_Looper_play(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sig_dsp_Looper_nextPosition(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #0

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

!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 0}
!6 = !{!"sig_dsp_Looper", !7, i64 0, !11, i64 16, !12, i64 64, !13, i64 72, !14, i64 104, !16, i64 112, !16, i64 116, !16, i64 120}
!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_Looper_Inputs", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40}
!12 = !{!"sig_dsp_Signal_SingleMonoOutput", !8, i64 0}
!13 = !{!"sig_dsp_Looper_Loop", !8, i64 0, !14, i64 8, !14, i64 16, !15, i64 24}
!14 = !{!"long", !9, i64 0}
!15 = !{!"_Bool", !9, i64 0}
!16 = !{!"float", !9, i64 0}
!17 = !{!18, !14, i64 16}
!18 = !{!"sig_AudioSettings", !16, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!6, !8, i64 40}
!20 = !{!16, !16, i64 0}
!21 = !{!6, !8, i64 24}
!22 = !{!6, !8, i64 32}
!23 = !{!6, !14, i64 104}
!24 = !{!6, !8, i64 16}
!25 = !{!6, !8, i64 48}
!26 = !{!6, !15, i64 96}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!6, !8, i64 64}
!30 = !{!6, !16, i64 112}
!31 = !{!6, !16, i64 116}
!32 = !{!6, !8, i64 56}
!33 = !{!6, !16, i64 120}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


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