; LLVM IR from dbry/wavpack-stream :: src (common_utils)

; 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.WavpackContext = type { %struct.WavpackStreamConfig, ptr, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i8, ptr, ptr, i32, i32, ptr, [8 x i8], ptr, [80 x i8] }
%struct.WavpackStreamConfig = type { float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [16 x i8], i8, i32, ptr }
%struct.WavpackStream = type { %struct.WavpackHeader, %struct.words_data, ptr, ptr, ptr, ptr, ptr, i64, i64, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, %struct.bs, %struct.bs, %struct.bs, float, i8, i8, i8, i8, i8, i8, i8, i8, %struct.anon, [16 x %struct.decorr_pass], %struct.decorr_pass, ptr, %struct.anon.0 }
%struct.WavpackHeader = type { [4 x i8], i16, i16, i32 }
%struct.words_data = type { [2 x i32], [2 x i32], i32, i32, i32, i32, i32, [2 x %struct.entropy_data] }
%struct.entropy_data = type { [3 x i32], i32, i32 }
%struct.bs = type { ptr, ptr, ptr, ptr, i32, i32, i32 }
%struct.anon = type { [2 x i32], [2 x i32], [2 x i32], double, double, double, ptr, ptr, i32 }
%struct.decorr_pass = type { i32, i32, i32, i32, [8 x i32], [8 x i32], i32, i32, i32, i32 }
%struct.anon.0 = type { ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, ptr, i32, i32, i32, [2 x %struct.DSDfilters], ptr }
%struct.DSDfilters = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

; 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 double @WavpackStreamGetAverageBitrate(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @WavpackStreamGetSampleRate(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local double @WavpackStreamGetInstantBitrate(ptr noundef %0) #1 {
  %2 = alloca double, align 8
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = icmp ne ptr %8, null
  br i1 %9, label %10, label %18

10:                                               ; preds = %1
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.WavpackContext, ptr %11, i32 0, i32 37
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %18

15:                                               ; preds = %10
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call double @WavpackStreamGetAverageBitrate(ptr noundef %16, i32 noundef 1)
  store double %17, ptr %2, align 8
  br label %142

18:                                               ; preds = %10, %1
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %141

21:                                               ; preds = %18
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.WavpackContext, ptr %22, i32 0, i32 36
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %141

26:                                               ; preds = %21
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.WavpackContext, ptr %27, i32 0, i32 36
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = getelementptr inbounds ptr, ptr %29, i64 0
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %141

33:                                               ; preds = %26
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.WavpackContext, ptr %34, i32 0, i32 36
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = getelementptr inbounds ptr, ptr %36, i64 0
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.WavpackStream, ptr %38, i32 0, i32 0
  %40 = getelementptr inbounds %struct.WavpackHeader, ptr %39, i32 0, i32 2
  %41 = load i16, ptr %40, align 2, !tbaa !16
  %42 = zext i16 %41 to i32
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %141

44:                                               ; preds = %33
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = call i32 @WavpackStreamGetSampleRate(ptr noundef %45)
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %141

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.WavpackContext, ptr %49, i32 0, i32 36
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = getelementptr inbounds ptr, ptr %51, i64 0
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.WavpackStream, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %struct.WavpackHeader, ptr %54, i32 0, i32 2
  %56 = load i16, ptr %55, align 2, !tbaa !16
  %57 = uitofp i16 %56 to double
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = call i32 @WavpackStreamGetSampleRate(ptr noundef %58)
  %60 = uitofp i32 %59 to double
  %61 = fdiv double %57, %60
  store double %61, ptr %4, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  store double 0.000000e+00, ptr %5, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  store i32 0, ptr %6, align 4, !tbaa !27
  br label %62

62:                                               ; preds = %123, %48
  %63 = load i32, ptr %6, align 4, !tbaa !27
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.WavpackContext, ptr %64, i32 0, i32 34
  %66 = load i32, ptr %65, align 8, !tbaa !28
  %67 = icmp slt i32 %63, %66
  br i1 %67, label %68, label %126

68:                                               ; preds = %62
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.WavpackContext, ptr %69, i32 0, i32 36
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  %72 = load i32, ptr %6, align 4, !tbaa !27
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.WavpackStream, ptr %75, i32 0, i32 2
  %77 = load ptr, ptr %76, align 8, !tbaa !29
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %95

79:                                               ; preds = %68
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.WavpackContext, ptr %80, i32 0, i32 36
  %82 = load ptr, ptr %81, align 8, !tbaa !15
  %83 = load i32, ptr %6, align 4, !tbaa !27
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds ptr, ptr %82, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.WavpackStream, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !29
  %89 = getelementptr inbounds %struct.WavpackHeader, ptr %88, i32 0, i32 1
  %90 = load i16, ptr %89, align 4, !tbaa !30
  %91 = zext i16 %90 to i32
  %92 = sitofp i32 %91 to double
  %93 = load double, ptr %5, align 8, !tbaa !26
  %94 = fadd double %93, %92
  store double %94, ptr %5, align 8, !tbaa !26
  br label %95

95:                                               ; preds = %79, %68
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.WavpackContext, ptr %96, i32 0, i32 36
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  %99 = load i32, ptr %6, align 4, !tbaa !27
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.WavpackStream, ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !31
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %122

106:                                              ; preds = %95
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.WavpackContext, ptr %107, i32 0, i32 36
  %109 = load ptr, ptr %108, align 8, !tbaa !15
  %110 = load i32, ptr %6, align 4, !tbaa !27
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.WavpackStream, ptr %113, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !31
  %116 = getelementptr inbounds %struct.WavpackHeader, ptr %115, i32 0, i32 1
  %117 = load i16, ptr %116, align 4, !tbaa !30
  %118 = zext i16 %117 to i32
  %119 = sitofp i32 %118 to double
  %120 = load double, ptr %5, align 8, !tbaa !26
  %121 = fadd double %120, %119
  store double %121, ptr %5, align 8, !tbaa !26
  br label %122

122:                                              ; preds = %106, %95
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %6, align 4, !tbaa !27
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %6, align 4, !tbaa !27
  br label %62, !llvm.loop !32

126:                                              ; preds = %62
  %127 = load double, ptr %4, align 8, !tbaa !26
  %128 = fcmp ogt double %127, 0.000000e+00
  br i1 %128, label %129, label %137

129:                                              ; preds = %126
  %130 = load double, ptr %5, align 8, !tbaa !26
  %131 = fcmp oge double %130, 1.000000e+00
  br i1 %131, label %132, label %137

132:                                              ; preds = %129
  %133 = load double, ptr %5, align 8, !tbaa !26
  %134 = fmul double %133, 8.000000e+00
  %135 = load double, ptr %4, align 8, !tbaa !26
  %136 = fdiv double %134, %135
  store double %136, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %138

137:                                              ; preds = %129, %126
  store i32 0, ptr %7, align 4
  br label %138

138:                                              ; preds = %137, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  %139 = load i32, ptr %7, align 4
  switch i32 %139, label %144 [
    i32 0, label %140
    i32 1, label %142
  ]

140:                                              ; preds = %138
  br label %141

141:                                              ; preds = %140, %44, %33, %26, %21, %18
  store double 0.000000e+00, ptr %2, align 8
  br label %142

142:                                              ; preds = %141, %138, %15
  %143 = load double, ptr %2, align 8
  ret double %143

144:                                              ; preds = %138
  unreachable
}

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 = { 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 296}
!10 = !{!"WavpackContext", !11, i64 0, !6, i64 88, !13, i64 96, !13, i64 100, !6, i64 104, !13, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !13, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !13, i64 240, !13, i64 244, !13, i64 248, !13, i64 252, !13, i64 256, !13, i64 260, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !13, i64 280, !13, i64 284, !6, i64 288, !6, i64 296, !7, i64 304, !6, i64 312, !6, i64 320, !13, i64 328, !13, i64 332, !6, i64 336, !7, i64 344, !6, i64 352, !7, i64 360}
!11 = !{!"", !12, i64 0, !12, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !7, i64 56, !7, i64 72, !13, i64 76, !6, i64 80}
!12 = !{!"float", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !6, i64 288}
!16 = !{!17, !19, i64 6}
!17 = !{!"", !18, i64 0, !20, i64 12, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !14, i64 128, !14, i64 136, !13, i64 144, !13, i64 148, !13, i64 152, !7, i64 156, !7, i64 157, !7, i64 158, !7, i64 159, !7, i64 160, !7, i64 161, !7, i64 162, !13, i64 164, !13, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188, !13, i64 192, !21, i64 200, !21, i64 248, !21, i64 296, !12, i64 344, !7, i64 348, !7, i64 349, !7, i64 350, !7, i64 351, !7, i64 352, !7, i64 353, !7, i64 354, !7, i64 355, !22, i64 360, !7, i64 432, !24, i64 1968, !6, i64 2064, !25, i64 2072}
!18 = !{!"", !7, i64 0, !19, i64 4, !19, i64 6, !13, i64 8}
!19 = !{!"short", !7, i64 0}
!20 = !{!"words_data", !7, i64 0, !7, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !7, i64 36}
!21 = !{!"bs", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 36, !13, i64 40}
!22 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !23, i64 24, !23, i64 32, !23, i64 40, !6, i64 48, !6, i64 56, !13, i64 64}
!23 = !{!"double", !7, i64 0}
!24 = !{!"decorr_pass", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !7, i64 16, !7, i64 48, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92}
!25 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !7, i64 40, !7, i64 41, !13, i64 44, !13, i64 48, !13, i64 52, !6, i64 56, !13, i64 64, !13, i64 68, !13, i64 72, !7, i64 76, !6, i64 160}
!26 = !{!23, !23, i64 0}
!27 = !{!13, !13, i64 0}
!28 = !{!10, !13, i64 280}
!29 = !{!17, !6, i64 88}
!30 = !{!18, !19, i64 4}
!31 = !{!17, !6, i64 104}
!32 = distinct !{!32, !33}
!33 = !{!"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: nounwind uwtable
declare dso_local double @WavpackStreamGetAverageBitrate(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @WavpackStreamGetSampleRate(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local double @WavpackStreamGetInstantBitrate(ptr noundef %0) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.critedge, label %2

2:                                                ; preds = %1
  %3 = getelementptr inbounds i8, ptr %0, i64 296
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not40 = icmp eq ptr %4, null
  br i1 %.not40, label %7, label %5

5:                                                ; preds = %2
  %6 = tail call double @WavpackStreamGetAverageBitrate(ptr noundef nonnull %0, i32 noundef 1)
  br label %53

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 288
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %.not41 = icmp eq ptr %9, null
  br i1 %.not41, label %.critedge, label %10

10:                                               ; preds = %7
  %11 = load ptr, ptr %9, align 8, !tbaa !15
  %.not42 = icmp eq ptr %11, null
  br i1 %.not42, label %.critedge, label %12

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %11, i64 6
  %14 = load i16, ptr %13, align 2, !tbaa !16
  %.not43 = icmp eq i16 %14, 0
  br i1 %.not43, label %.critedge, label %15

15:                                               ; preds = %12
  %16 = tail call i32 @WavpackStreamGetSampleRate(ptr noundef nonnull %0)
  %.not44 = icmp eq i32 %16, 0
  br i1 %.not44, label %.critedge, label %17

17:                                               ; preds = %15
  %18 = load ptr, ptr %8, align 8, !tbaa !14
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = getelementptr inbounds i8, ptr %19, i64 6
  %21 = load i16, ptr %20, align 2, !tbaa !16
  %22 = uitofp i16 %21 to double
  %23 = tail call i32 @WavpackStreamGetSampleRate(ptr noundef nonnull %0)
  %24 = uitofp i32 %23 to double
  %25 = fdiv double %22, %24
  %26 = getelementptr inbounds i8, ptr %0, i64 280
  %27 = load i32, ptr %26, align 8, !tbaa !26
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %17
  %29 = load ptr, ptr %8, align 8, !tbaa !14
  %wide.trip.count = zext nneg i32 %27 to i64
  br label %30

30:                                               ; preds = %.lr.ph, %48
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %48 ]
  %.03049 = phi double [ 0.000000e+00, %.lr.ph ], [ %.2, %48 ]
  %31 = getelementptr inbounds ptr, ptr %29, i64 %indvars.iv
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %32, i64 88
  %34 = load ptr, ptr %33, align 8, !tbaa !27
  %.not45 = icmp eq ptr %34, null
  br i1 %.not45, label %40, label %35

35:                                               ; preds = %30
  %36 = getelementptr inbounds i8, ptr %34, i64 4
  %37 = load i16, ptr %36, align 4, !tbaa !28
  %38 = uitofp i16 %37 to double
  %39 = fadd double %.03049, %38
  br label %40

40:                                               ; preds = %35, %30
  %.1 = phi double [ %39, %35 ], [ %.03049, %30 ]
  %41 = getelementptr inbounds i8, ptr %32, i64 104
  %42 = load ptr, ptr %41, align 8, !tbaa !29
  %.not46 = icmp eq ptr %42, null
  br i1 %.not46, label %48, label %43

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %42, i64 4
  %45 = load i16, ptr %44, align 4, !tbaa !28
  %46 = uitofp i16 %45 to double
  %47 = fadd double %.1, %46
  br label %48

48:                                               ; preds = %40, %43
  %.2 = phi double [ %47, %43 ], [ %.1, %40 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %30, !llvm.loop !30

._crit_edge:                                      ; preds = %48
  %49 = fcmp ule double %25, 0.000000e+00
  %50 = fcmp ult double %.2, 1.000000e+00
  %or.cond.not = select i1 %49, i1 true, i1 %50
  %51 = fmul double %.2, 8.000000e+00
  %52 = fdiv double %51, %25
  br i1 %or.cond.not, label %.critedge, label %53

.critedge:                                        ; preds = %17, %._crit_edge, %1, %15, %12, %10, %7
  br label %53

53:                                               ; preds = %._crit_edge, %.critedge, %5
  %.132 = phi double [ %6, %5 ], [ %52, %._crit_edge ], [ 0.000000e+00, %.critedge ]
  ret double %.132
}

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

!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, !12, i64 296}
!6 = !{!"WavpackContext", !7, i64 0, !12, i64 88, !11, i64 96, !11, i64 100, !12, i64 104, !11, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !12, i64 288, !12, i64 296, !9, i64 304, !12, i64 312, !12, i64 320, !11, i64 328, !11, i64 332, !12, i64 336, !9, i64 344, !12, i64 352, !9, i64 360}
!7 = !{!"", !8, i64 0, !8, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !9, i64 56, !9, i64 72, !11, i64 76, !12, i64 80}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!6, !12, i64 288}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !19, i64 6}
!17 = !{!"", !18, i64 0, !20, i64 12, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !13, i64 128, !13, i64 136, !11, i64 144, !11, i64 148, !11, i64 152, !9, i64 156, !9, i64 157, !9, i64 158, !9, i64 159, !9, i64 160, !9, i64 161, !9, i64 162, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !21, i64 200, !21, i64 248, !21, i64 296, !8, i64 344, !9, i64 348, !9, i64 349, !9, i64 350, !9, i64 351, !9, i64 352, !9, i64 353, !9, i64 354, !9, i64 355, !22, i64 360, !9, i64 432, !24, i64 1968, !12, i64 2064, !25, i64 2072}
!18 = !{!"", !9, i64 0, !19, i64 4, !19, i64 6, !11, i64 8}
!19 = !{!"short", !9, i64 0}
!20 = !{!"words_data", !9, i64 0, !9, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !9, i64 36}
!21 = !{!"bs", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40}
!22 = !{!"", !9, i64 0, !9, i64 8, !9, i64 16, !23, i64 24, !23, i64 32, !23, i64 40, !12, i64 48, !12, i64 56, !11, i64 64}
!23 = !{!"double", !9, i64 0}
!24 = !{!"decorr_pass", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !9, i64 16, !9, i64 48, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92}
!25 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !9, i64 40, !9, i64 41, !11, i64 44, !11, i64 48, !11, i64 52, !12, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !9, i64 76, !12, i64 160}
!26 = !{!6, !11, i64 280}
!27 = !{!17, !12, i64 88}
!28 = !{!18, !19, i64 4}
!29 = !{!17, !12, i64 104}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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