; 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.WavpackReader64 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.WavpackMetadata = type { i32, ptr, i8 }

; 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
define dso_local ptr @WavpackStreamCloseFile(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds %struct.WavpackContext, ptr %4, i32 0, i32 45
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  %7 = icmp ne ptr %6, null
  br i1 %7, label %8, label %13

8:                                                ; preds = %1
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.WavpackContext, ptr %9, i32 0, i32 45
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  call void %11(ptr noundef %12)
  br label %13

13:                                               ; preds = %8, %1
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.WavpackContext, ptr %14, i32 0, i32 36
  %16 = load ptr, ptr %15, align 8, !tbaa !15
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %36

18:                                               ; preds = %13
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free_streams(ptr noundef %19)
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.WavpackContext, ptr %20, i32 0, i32 36
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds ptr, ptr %22, i64 0
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %32

26:                                               ; preds = %18
  %27 = load ptr, ptr %2, 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
  call void @free(ptr noundef %31) #3
  br label %32

32:                                               ; preds = %26, %18
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.WavpackContext, ptr %33, i32 0, i32 36
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  call void @free(ptr noundef %35) #3
  br label %36

36:                                               ; preds = %32, %13
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.WavpackContext, ptr %37, i32 0, i32 9
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %63

41:                                               ; preds = %36
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.WavpackContext, ptr %42, i32 0, i32 9
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = getelementptr inbounds %struct.WavpackReader64, ptr %44, i32 0, i32 9
  %46 = load ptr, ptr %45, align 8, !tbaa !17
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %63

48:                                               ; preds = %41
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.WavpackContext, ptr %49, i32 0, i32 10
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %63

53:                                               ; preds = %48
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.WavpackContext, ptr %54, i32 0, i32 9
  %56 = load ptr, ptr %55, align 8, !tbaa !16
  %57 = getelementptr inbounds %struct.WavpackReader64, ptr %56, i32 0, i32 9
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.WavpackContext, ptr %59, i32 0, i32 10
  %61 = load ptr, ptr %60, align 8, !tbaa !19
  %62 = call i32 %58(ptr noundef %61)
  br label %63

63:                                               ; preds = %53, %48, %41, %36
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.WavpackContext, ptr %64, i32 0, i32 9
  %66 = load ptr, ptr %65, align 8, !tbaa !16
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %90

68:                                               ; preds = %63
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.WavpackContext, ptr %69, i32 0, i32 9
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = getelementptr inbounds %struct.WavpackReader64, ptr %71, i32 0, i32 9
  %73 = load ptr, ptr %72, align 8, !tbaa !17
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %90

75:                                               ; preds = %68
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.WavpackContext, ptr %76, i32 0, i32 11
  %78 = load ptr, ptr %77, align 8, !tbaa !20
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %90

80:                                               ; preds = %75
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.WavpackContext, ptr %81, i32 0, i32 9
  %83 = load ptr, ptr %82, align 8, !tbaa !16
  %84 = getelementptr inbounds %struct.WavpackReader64, ptr %83, i32 0, i32 9
  %85 = load ptr, ptr %84, align 8, !tbaa !17
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.WavpackContext, ptr %86, i32 0, i32 11
  %88 = load ptr, ptr %87, align 8, !tbaa !20
  %89 = call i32 %85(ptr noundef %88)
  br label %90

90:                                               ; preds = %80, %75, %68, %63
  %91 = load ptr, ptr %2, align 8, !tbaa !5
  call void @WavpackStreamFreeWrapper(ptr noundef %91)
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.WavpackContext, ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !21
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %130

96:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !22
  br label %97

97:                                               ; preds = %123, %96
  %98 = load i32, ptr %3, align 4, !tbaa !22
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.WavpackContext, ptr %99, i32 0, i32 3
  %101 = load i32, ptr %100, align 4, !tbaa !23
  %102 = icmp slt i32 %98, %101
  br i1 %102, label %103, label %126

103:                                              ; preds = %97
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.WavpackContext, ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !21
  %107 = load i32, ptr %3, align 4, !tbaa !22
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds %struct.WavpackMetadata, ptr %106, i64 %108
  %110 = getelementptr inbounds %struct.WavpackMetadata, ptr %109, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8, !tbaa !24
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %122

113:                                              ; preds = %103
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.WavpackContext, ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !21
  %117 = load i32, ptr %3, align 4, !tbaa !22
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds %struct.WavpackMetadata, ptr %116, i64 %118
  %120 = getelementptr inbounds %struct.WavpackMetadata, ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !24
  call void @free(ptr noundef %121) #3
  br label %122

122:                                              ; preds = %113, %103
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %3, align 4, !tbaa !22
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %3, align 4, !tbaa !22
  br label %97, !llvm.loop !26

126:                                              ; preds = %97
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.WavpackContext, ptr %127, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !21
  call void @free(ptr noundef %129) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %130

130:                                              ; preds = %126, %90
  %131 = load ptr, ptr %2, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.WavpackContext, ptr %131, i32 0, i32 40
  %133 = load ptr, ptr %132, align 8, !tbaa !28
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %139

135:                                              ; preds = %130
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.WavpackContext, ptr %136, i32 0, i32 40
  %138 = load ptr, ptr %137, align 8, !tbaa !28
  call void @free(ptr noundef %138) #3
  br label %139

139:                                              ; preds = %135, %130
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.WavpackContext, ptr %140, i32 0, i32 39
  %142 = load ptr, ptr %141, align 8, !tbaa !29
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %148

144:                                              ; preds = %139
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.WavpackContext, ptr %145, i32 0, i32 39
  %147 = load ptr, ptr %146, align 8, !tbaa !29
  call void @free(ptr noundef %147) #3
  br label %148

148:                                              ; preds = %144, %139
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %149) #3
  ret ptr null
}

; Function Attrs: nounwind uwtable
declare dso_local void @free_streams(ptr noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @WavpackStreamFreeWrapper(ptr noundef) #1

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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!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 352}
!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 = !{!10, !6, i64 144}
!17 = !{!18, !6, i64 72}
!18 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!19 = !{!10, !6, i64 152}
!20 = !{!10, !6, i64 160}
!21 = !{!10, !6, i64 88}
!22 = !{!13, !13, i64 0}
!23 = !{!10, !13, i64 100}
!24 = !{!25, !6, i64 8}
!25 = !{!"", !13, i64 0, !6, i64 8, !7, i64 16}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!10, !6, i64 320}
!29 = !{!10, !6, i64 312}


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

%struct.WavpackMetadata = type { i32, ptr, i8 }

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

4:                                                ; preds = %1
  tail call void %3(ptr noundef nonnull %0) #2
  br label %5

5:                                                ; preds = %4, %1
  %6 = getelementptr inbounds i8, ptr %0, i64 288
  %7 = load ptr, ptr %6, align 8, !tbaa !14
  %.not43 = icmp eq ptr %7, null
  br i1 %.not43, label %14, label %8

8:                                                ; preds = %5
  tail call void @free_streams(ptr noundef nonnull %0)
  %9 = load ptr, ptr %6, align 8, !tbaa !14
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %.not44 = icmp eq ptr %10, null
  br i1 %.not44, label %12, label %11

11:                                               ; preds = %8
  tail call void @free(ptr noundef nonnull %10) #2
  %.pre = load ptr, ptr %6, align 8, !tbaa !14
  br label %12

12:                                               ; preds = %11, %8
  %13 = phi ptr [ %.pre, %11 ], [ %9, %8 ]
  tail call void @free(ptr noundef %13) #2
  br label %14

14:                                               ; preds = %12, %5
  %15 = getelementptr inbounds i8, ptr %0, i64 144
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  %.not45 = icmp eq ptr %16, null
  br i1 %.not45, label %.thread, label %17

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %16, i64 72
  %19 = load ptr, ptr %18, align 8, !tbaa !17
  %.not46 = icmp eq ptr %19, null
  br i1 %.not46, label %.thread61, label %20

20:                                               ; preds = %17
  %21 = getelementptr inbounds i8, ptr %0, i64 152
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  %.not47 = icmp eq ptr %22, null
  br i1 %.not47, label %.thread61, label %23

23:                                               ; preds = %20
  %24 = tail call i32 %19(ptr noundef nonnull %22) #2
  %.pr.pre = load ptr, ptr %15, align 8, !tbaa !16
  %.not48 = icmp eq ptr %.pr.pre, null
  br i1 %.not48, label %.thread, label %.thread61

.thread61:                                        ; preds = %17, %20, %23
  %.pr64 = phi ptr [ %.pr.pre, %23 ], [ %16, %20 ], [ %16, %17 ]
  %25 = getelementptr inbounds i8, ptr %.pr64, i64 72
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  %.not49 = icmp eq ptr %26, null
  br i1 %.not49, label %.thread, label %27

27:                                               ; preds = %.thread61
  %28 = getelementptr inbounds i8, ptr %0, i64 160
  %29 = load ptr, ptr %28, align 8, !tbaa !20
  %.not50 = icmp eq ptr %29, null
  br i1 %.not50, label %.thread, label %30

30:                                               ; preds = %27
  %31 = tail call i32 %26(ptr noundef nonnull %29) #2
  br label %.thread

.thread:                                          ; preds = %14, %30, %27, %.thread61, %23
  tail call void @WavpackStreamFreeWrapper(ptr noundef nonnull %0)
  %32 = getelementptr inbounds i8, ptr %0, i64 88
  %33 = load ptr, ptr %32, align 8, !tbaa !21
  %.not51 = icmp eq ptr %33, null
  br i1 %.not51, label %47, label %.preheader

.preheader:                                       ; preds = %.thread
  %34 = getelementptr inbounds i8, ptr %0, i64 100
  %35 = load i32, ptr %34, align 4, !tbaa !22
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %42
  %37 = phi i32 [ %43, %42 ], [ %35, %.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %42 ], [ 0, %.preheader ]
  %38 = load ptr, ptr %32, align 8, !tbaa !21
  %39 = getelementptr inbounds %struct.WavpackMetadata, ptr %38, i64 %indvars.iv, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !23
  %.not54 = icmp eq ptr %40, null
  br i1 %.not54, label %42, label %41

41:                                               ; preds = %.lr.ph
  tail call void @free(ptr noundef nonnull %40) #2
  %.pre59 = load i32, ptr %34, align 4, !tbaa !22
  br label %42

42:                                               ; preds = %.lr.ph, %41
  %43 = phi i32 [ %37, %.lr.ph ], [ %.pre59, %41 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %indvars.iv.next, %44
  br i1 %45, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !25

._crit_edge.loopexit:                             ; preds = %42
  %.pre60 = load ptr, ptr %32, align 8, !tbaa !21
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %46 = phi ptr [ %.pre60, %._crit_edge.loopexit ], [ %33, %.preheader ]
  tail call void @free(ptr noundef %46) #2
  br label %47

47:                                               ; preds = %._crit_edge, %.thread
  %48 = getelementptr inbounds i8, ptr %0, i64 320
  %49 = load ptr, ptr %48, align 8, !tbaa !27
  %.not52 = icmp eq ptr %49, null
  br i1 %.not52, label %51, label %50

50:                                               ; preds = %47
  tail call void @free(ptr noundef nonnull %49) #2
  br label %51

51:                                               ; preds = %50, %47
  %52 = getelementptr inbounds i8, ptr %0, i64 312
  %53 = load ptr, ptr %52, align 8, !tbaa !28
  %.not53 = icmp eq ptr %53, null
  br i1 %.not53, label %55, label %54

54:                                               ; preds = %51
  tail call void @free(ptr noundef nonnull %53) #2
  br label %55

55:                                               ; preds = %54, %51
  tail call void @free(ptr noundef nonnull %0) #2
  ret ptr null
}

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

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

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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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, !12, i64 352}
!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 = !{!6, !12, i64 144}
!17 = !{!18, !12, i64 72}
!18 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72}
!19 = !{!6, !12, i64 152}
!20 = !{!6, !12, i64 160}
!21 = !{!6, !12, i64 88}
!22 = !{!6, !11, i64 100}
!23 = !{!24, !12, i64 8}
!24 = !{!"", !11, i64 0, !12, i64 8, !9, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!6, !12, i64 320}
!28 = !{!6, !12, i64 312}


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