; LLVM IR from SelfishOlex/MiniAudioO3DE :: MiniAudio/Code/Source/Clients (MiniAudioImplementation)

; 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.57, %struct.anon.58 }
%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.57 = type { i32, [2 x i16], [2 x i32], [4 x i32], i32, [2 x [2 x i32]] }
%struct.anon.58 = type { i32, [2 x i32], [2 x i32], [16 x i32], i32 }

@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [54 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: 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 %127

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 %127

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
  %51 = load i32, ptr %10, align 4, !tbaa !25
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %42
  store i64 0, ptr %4, align 8
  store i32 1, ptr %12, align 4
  br label %127

54:                                               ; preds = %42
  br label %55

55:                                               ; preds = %113, %54
  %56 = load i64, ptr %8, align 8, !tbaa !9
  %57 = icmp ugt i64 %56, 0
  br i1 %57, label %58, label %114

58:                                               ; preds = %55
  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
  %59 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %59, ptr %16, align 8, !tbaa !9
  %60 = load i64, ptr %16, align 8, !tbaa !9
  %61 = icmp ule i64 %60, -1
  br i1 %61, label %62, label %63

62:                                               ; preds = %58
  br label %65

63:                                               ; preds = %58
  call void @__assert_fail(ptr noundef @.str.167, ptr noundef @.str.6, i32 noundef 77187, ptr noundef @__PRETTY_FUNCTION__.drwav_write_pcm_frames_be) #7
  unreachable

64:                                               ; No predecessors!
  br label %65

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

77:                                               ; preds = %65
  %78 = load i32, ptr %14, align 4, !tbaa !25
  %79 = zext i32 %78 to i64
  %80 = load i32, ptr %10, align 4, !tbaa !25
  %81 = zext i32 %80 to i64
  %82 = mul i64 %79, %81
  store i64 %82, ptr %16, align 8, !tbaa !9
  br label %83

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

100:                                              ; preds = %83
  store i32 3, ptr %12, align 4
  br label %111

101:                                              ; preds = %83
  %102 = load i64, ptr %15, align 8, !tbaa !27
  %103 = load i64, ptr %8, align 8, !tbaa !9
  %104 = sub i64 %103, %102
  store i64 %104, ptr %8, align 8, !tbaa !9
  %105 = load i64, ptr %15, align 8, !tbaa !27
  %106 = load i64, ptr %9, align 8, !tbaa !9
  %107 = add i64 %106, %105
  store i64 %107, ptr %9, align 8, !tbaa !9
  %108 = load i64, ptr %15, align 8, !tbaa !27
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 %108
  store ptr %110, ptr %11, align 8, !tbaa !5
  store i32 0, ptr %12, align 4
  br label %111

111:                                              ; preds = %101, %100
  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
  %112 = load i32, ptr %12, align 4
  switch i32 %112, label %129 [
    i32 0, label %113
    i32 3, label %114
  ]

113:                                              ; preds = %111
  br label %55, !llvm.loop !28

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

127:                                              ; preds = %114, %53, %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
  %128 = load i64, ptr %4, align 8
  ret i64 %128

129:                                              ; preds = %111
  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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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 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 %43, 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 = lshr i64 %16, 3
  %18 = tail call noundef i32 @_ZL29drwav_get_bytes_per_pcm_frameP5drwav(ptr noundef nonnull %0)
  %19 = load i16, ptr %9, align 8, !tbaa !5
  %20 = zext i16 %19 to i32
  %21 = udiv i32 %18, %20
  %22 = icmp ult i32 %18, %20
  br i1 %22, label %43, label %.preheader

.preheader:                                       ; preds = %8
  %.not60 = icmp ult i64 %16, 8
  br i1 %.not60, label %.loopexit, label %.lr.ph

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

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

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

32:                                               ; preds = %28
  %33 = sub i64 %.04263, %30
  %34 = add i64 %30, %.04661
  %35 = getelementptr inbounds i8, ptr %.04462, i64 %30
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %4) #6
  %.not = icmp eq i64 %33, 0
  br i1 %.not, label %.loopexit, label %28

.loopexit:                                        ; preds = %32, %.preheader, %.thread
  %.04659 = phi i64 [ %.04661, %.thread ], [ 0, %.preheader ], [ %34, %32 ]
  %36 = shl i64 %.04659, 3
  %37 = load i16, ptr %10, align 2, !tbaa !22
  %38 = zext i16 %37 to i64
  %39 = udiv i64 %36, %38
  %40 = load i16, ptr %9, align 8, !tbaa !5
  %41 = zext i16 %40 to i64
  %42 = udiv i64 %39, %41
  br label %43

43:                                               ; preds = %8, %3, %.loopexit
  %.041 = phi i64 [ %42, %.loopexit ], [ 0, %3 ], [ 0, %8 ]
  ret i64 %.041
}

; 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