; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/audiosource/wav (dr_impl)

; 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.drwav = type { ptr, ptr, ptr, ptr, %struct.drwav_allocation_callbacks, i32, %struct.drwav_fmt, i32, i16, i16, i16, i64, i64, i64, i64, i64, i64, i32, i32, ptr, i32, %struct.drwav__memory_stream, %struct.drwav__memory_stream_write, %struct.anon.0, %struct.anon.1 }
%struct.drwav_allocation_callbacks = type { ptr, ptr, ptr, ptr }
%struct.drwav_fmt = type { i16, i16, i32, i32, i16, i16, i16, i16, i32, [16 x i8] }
%struct.drwav__memory_stream = type { ptr, i64, i64 }
%struct.drwav__memory_stream_write = type { ptr, ptr, i64, i64, i64 }
%struct.anon.0 = type { i32, [2 x i16], [2 x i32], [4 x i32], i32, [2 x [2 x i32]] }
%struct.anon.1 = type { i32, [2 x i32], [2 x i32], [16 x i32], i32 }

@.str.5 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__.drwav_write_pcm_frames_be = external hidden unnamed_addr constant [76 x i8], align 1

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL29drwav_get_bytes_per_pcm_frameP5drwav(ptr noundef) #3

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZL20drwav__bswap_samplesPvyjt(ptr noundef, i64 noundef, i32 noundef, i16 noundef zeroext) #4

; Function Attrs: mustprogress uwtable
declare dso_local i64 @drwav_write_raw(ptr noundef, i64 noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local i64 @drwav_write_pcm_frames_be(ptr noundef %0, i64 noundef %1, ptr noundef %2) #5 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca [4096 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %25, label %19

19:                                               ; preds = %3
  %20 = load i64, ptr %6, align 8, !tbaa !9
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %25, label %22

22:                                               ; preds = %19
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %22, %19, %3
  store i64 0, ptr %4, align 8
  store i32 1, ptr %12, align 4
  br label %123

26:                                               ; preds = %22
  %27 = load i64, ptr %6, align 8, !tbaa !9
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.drwav, ptr %28, i32 0, i32 8
  %30 = load i16, ptr %29, align 8, !tbaa !11
  %31 = zext i16 %30 to i64
  %32 = mul i64 %27, %31
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.drwav, ptr %33, i32 0, i32 9
  %35 = load i16, ptr %34, align 2, !tbaa !24
  %36 = zext i16 %35 to i64
  %37 = mul i64 %32, %36
  %38 = udiv i64 %37, 8
  store i64 %38, ptr %8, align 8, !tbaa !9
  %39 = load i64, ptr %8, align 8, !tbaa !9
  %40 = icmp ugt i64 %39, -1
  br i1 %40, label %41, label %42

41:                                               ; preds = %26
  store i64 0, ptr %4, align 8
  store i32 1, ptr %12, align 4
  br label %123

42:                                               ; preds = %26
  store i64 0, ptr %9, align 8, !tbaa !9
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %43, ptr %11, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = call noundef i32 @_ZL29drwav_get_bytes_per_pcm_frameP5drwav(ptr noundef %44)
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.drwav, ptr %46, i32 0, i32 8
  %48 = load i16, ptr %47, align 8, !tbaa !11
  %49 = zext i16 %48 to i32
  %50 = udiv i32 %45, %49
  store i32 %50, ptr %10, align 4, !tbaa !25
  br label %51

51:                                               ; preds = %109, %42
  %52 = load i64, ptr %8, align 8, !tbaa !9
  %53 = icmp ugt i64 %52, 0
  br i1 %53, label %54, label %110

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4096, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %55 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %55, ptr %16, align 8, !tbaa !9
  %56 = load i64, ptr %16, align 8, !tbaa !9
  %57 = icmp ule i64 %56, -1
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  br label %61

59:                                               ; preds = %54
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.5, i32 noundef 5495, ptr noundef @__PRETTY_FUNCTION__.drwav_write_pcm_frames_be) #7
  unreachable

60:                                               ; No predecessors!
  br label %61

61:                                               ; preds = %60, %58
  %62 = load i32, ptr %10, align 4, !tbaa !25
  %63 = zext i32 %62 to i64
  %64 = udiv i64 4096, %63
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr %14, align 4, !tbaa !25
  %66 = load i64, ptr %16, align 8, !tbaa !9
  %67 = load i32, ptr %14, align 4, !tbaa !25
  %68 = zext i32 %67 to i64
  %69 = load i32, ptr %10, align 4, !tbaa !25
  %70 = zext i32 %69 to i64
  %71 = mul i64 %68, %70
  %72 = icmp ugt i64 %66, %71
  br i1 %72, label %73, label %79

73:                                               ; preds = %61
  %74 = load i32, ptr %14, align 4, !tbaa !25
  %75 = zext i32 %74 to i64
  %76 = load i32, ptr %10, align 4, !tbaa !25
  %77 = zext i32 %76 to i64
  %78 = mul i64 %75, %77
  store i64 %78, ptr %16, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %73, %61
  %80 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = load i64, ptr %16, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %80, ptr align 1 %81, i64 %82, i1 false)
  %83 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %84 = load i32, ptr %14, align 4, !tbaa !25
  %85 = zext i32 %84 to i64
  %86 = load i32, ptr %10, align 4, !tbaa !25
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.drwav, ptr %87, i32 0, i32 10
  %89 = load i16, ptr %88, align 4, !tbaa !26
  call void @_ZL20drwav__bswap_samplesPvyjt(ptr noundef %83, i64 noundef %85, i32 noundef %86, i16 noundef zeroext %89)
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = load i64, ptr %16, align 8, !tbaa !9
  %92 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %93 = call i64 @drwav_write_raw(ptr noundef %90, i64 noundef %91, ptr noundef %92)
  store i64 %93, ptr %15, align 8, !tbaa !27
  %94 = load i64, ptr %15, align 8, !tbaa !27
  %95 = icmp eq i64 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %79
  store i32 3, ptr %12, align 4
  br label %107

97:                                               ; preds = %79
  %98 = load i64, ptr %15, align 8, !tbaa !27
  %99 = load i64, ptr %8, align 8, !tbaa !9
  %100 = sub i64 %99, %98
  store i64 %100, ptr %8, align 8, !tbaa !9
  %101 = load i64, ptr %15, align 8, !tbaa !27
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = add i64 %102, %101
  store i64 %103, ptr %9, align 8, !tbaa !9
  %104 = load i64, ptr %15, align 8, !tbaa !27
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 %104
  store ptr %106, ptr %11, align 8, !tbaa !5
  store i32 0, ptr %12, align 4
  br label %107

107:                                              ; preds = %97, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4096, ptr %13) #6
  %108 = load i32, ptr %12, align 4
  switch i32 %108, label %125 [
    i32 0, label %109
    i32 3, label %110
  ]

109:                                              ; preds = %107
  br label %51, !llvm.loop !28

110:                                              ; preds = %107, %51
  %111 = load i64, ptr %9, align 8, !tbaa !9
  %112 = mul i64 %111, 8
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.drwav, ptr %113, i32 0, i32 9
  %115 = load i16, ptr %114, align 2, !tbaa !24
  %116 = zext i16 %115 to i64
  %117 = udiv i64 %112, %116
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.drwav, ptr %118, i32 0, i32 8
  %120 = load i16, ptr %119, align 8, !tbaa !11
  %121 = zext i16 %120 to i64
  %122 = udiv i64 %117, %121
  store i64 %122, ptr %4, align 8
  store i32 1, ptr %12, align 4
  br label %123

123:                                              ; preds = %110, %41, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %124 = load i64, ptr %4, align 8
  ret i64 %124

125:                                              ; preds = %107
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn 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 = { mustprogress 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 = { alwaysinline mustprogress 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 = { mustprogress 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 #6 = { nounwind }
attributes #7 = { noreturn 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !16, i64 112}
!12 = !{!"_ZTS5drwav", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !14, i64 64, !15, i64 68, !17, i64 108, !16, i64 112, !16, i64 114, !16, i64 116, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !17, i64 168, !18, i64 172, !6, i64 176, !17, i64 184, !19, i64 192, !21, i64 216, !22, i64 256, !23, i64 308}
!13 = !{!"_ZTS26drwav_allocation_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!"_ZTS15drwav_container", !7, i64 0}
!15 = !{!"_ZTS9drwav_fmt", !16, i64 0, !16, i64 2, !17, i64 4, !17, i64 8, !16, i64 12, !16, i64 14, !16, i64 16, !16, i64 18, !17, i64 20, !7, i64 24}
!16 = !{!"short", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTS19drwav_metadata_type", !7, i64 0}
!19 = !{!"_ZTS20drwav__memory_stream", !6, i64 0, !20, i64 8, !20, i64 16}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTS26drwav__memory_stream_write", !6, i64 0, !6, i64 8, !20, i64 16, !20, i64 24, !20, i64 32}
!22 = !{!"_ZTSN5drwavUt_E", !17, i64 0, !7, i64 4, !7, i64 8, !7, i64 16, !17, i64 32, !7, i64 36}
!23 = !{!"_ZTSN5drwavUt0_E", !17, i64 0, !7, i64 4, !7, i64 12, !7, i64 20, !17, i64 84}
!24 = !{!12, !16, i64 114}
!25 = !{!17, !17, i64 0}
!26 = !{!12, !16, i64 116}
!27 = !{!20, !20, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL29drwav_get_bytes_per_pcm_frameP5drwav(ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZL20drwav__bswap_samplesPvyjt(ptr noundef, i64 noundef, i32 noundef, i16 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local i64 @drwav_write_raw(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local i64 @drwav_write_pcm_frames_be(ptr noundef %0, i64 noundef %1, ptr noundef readonly %2) local_unnamed_addr #4 {
  %4 = alloca [4096 x i8], align 16
  %5 = icmp eq ptr %0, null
  %6 = icmp eq i64 %1, 0
  %or.cond = or i1 %5, %6
  %7 = icmp eq ptr %2, null
  %or.cond3 = or i1 %or.cond, %7
  br i1 %or.cond3, label %42, label %8

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 112
  %10 = getelementptr inbounds i8, ptr %0, i64 114
  %11 = load i16, ptr %9, align 8, !tbaa !5
  %12 = zext i16 %11 to i64
  %13 = mul i64 %12, %1
  %14 = load i16, ptr %10, align 2, !tbaa !22
  %15 = zext i16 %14 to i64
  %16 = mul i64 %13, %15
  %17 = tail call noundef i32 @_ZL29drwav_get_bytes_per_pcm_frameP5drwav(ptr noundef nonnull %0)
  %18 = load i16, ptr %9, align 8, !tbaa !5
  %19 = zext i16 %18 to i32
  %20 = udiv i32 %17, %19
  %.not59 = icmp ult i64 %16, 8
  br i1 %.not59, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %21 = lshr i64 %16, 3
  %22 = zext i32 %20 to i64
  %23 = udiv i32 4096, %20
  %24 = zext nneg i32 %23 to i64
  %25 = mul nuw nsw i64 %24, %22
  %26 = getelementptr inbounds i8, ptr %0, i64 116
  br label %27

27:                                               ; preds = %.lr.ph, %31
  %.04162 = phi i64 [ %21, %.lr.ph ], [ %32, %31 ]
  %.04361 = phi ptr [ %2, %.lr.ph ], [ %34, %31 ]
  %.04560 = phi i64 [ 0, %.lr.ph ], [ %33, %31 ]
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %4) #6
  %.0 = call i64 @llvm.umin.i64(i64 %.04162, i64 %25)
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %4, ptr align 1 %.04361, i64 %.0, i1 false)
  %28 = load i16, ptr %26, align 4, !tbaa !23
  call void @_ZL20drwav__bswap_samplesPvyjt(ptr noundef nonnull %4, i64 noundef %24, i32 noundef %20, i16 noundef zeroext %28)
  %29 = call i64 @drwav_write_raw(ptr noundef nonnull %0, i64 noundef %.0, ptr noundef nonnull %4)
  %30 = icmp eq i64 %29, 0
  br i1 %30, label %.thread, label %31

.thread:                                          ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %4) #6
  br label %.loopexit

31:                                               ; preds = %27
  %32 = sub i64 %.04162, %29
  %33 = add i64 %29, %.04560
  %34 = getelementptr inbounds i8, ptr %.04361, i64 %29
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %4) #6
  %.not = icmp eq i64 %32, 0
  br i1 %.not, label %.loopexit, label %27

.loopexit:                                        ; preds = %31, %8, %.thread
  %.04558 = phi i64 [ %.04560, %.thread ], [ 0, %8 ], [ %33, %31 ]
  %35 = shl i64 %.04558, 3
  %36 = load i16, ptr %10, align 2, !tbaa !22
  %37 = zext i16 %36 to i64
  %38 = udiv i64 %35, %37
  %39 = load i16, ptr %9, align 8, !tbaa !5
  %40 = zext i16 %39 to i64
  %41 = udiv i64 %38, %40
  br label %42

42:                                               ; preds = %3, %.loopexit
  %.040 = phi i64 [ %41, %.loopexit ], [ 0, %3 ]
  ret i64 %.040
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { alwaysinline mustprogress 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 = { mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !13, i64 112}
!6 = !{!"_ZTS5drwav", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 64, !12, i64 68, !14, i64 108, !13, i64 112, !13, i64 114, !13, i64 116, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !14, i64 168, !16, i64 172, !7, i64 176, !14, i64 184, !17, i64 192, !19, i64 216, !20, i64 256, !21, i64 308}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS26drwav_allocation_callbacks", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!11 = !{!"_ZTS15drwav_container", !8, i64 0}
!12 = !{!"_ZTS9drwav_fmt", !13, i64 0, !13, i64 2, !14, i64 4, !14, i64 8, !13, i64 12, !13, i64 14, !13, i64 16, !13, i64 18, !14, i64 20, !8, i64 24}
!13 = !{!"short", !8, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!"long long", !8, i64 0}
!16 = !{!"_ZTS19drwav_metadata_type", !8, i64 0}
!17 = !{!"_ZTS20drwav__memory_stream", !7, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"long", !8, i64 0}
!19 = !{!"_ZTS26drwav__memory_stream_write", !7, i64 0, !7, i64 8, !18, i64 16, !18, i64 24, !18, i64 32}
!20 = !{!"_ZTSN5drwavUt_E", !14, i64 0, !8, i64 4, !8, i64 8, !8, i64 16, !14, i64 32, !8, i64 36}
!21 = !{!"_ZTSN5drwavUt0_E", !14, i64 0, !8, i64 4, !8, i64 12, !8, i64 20, !14, i64 84}
!22 = !{!6, !13, i64 114}
!23 = !{!6, !13, i64 116}


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