; 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_allocation_callbacks = type { ptr, ptr, ptr, ptr }
%struct.ma_wav = type { %struct.ma_data_source_base, ptr, ptr, ptr, ptr, i32, %struct.drwav }
%struct.ma_data_source_base = type { ptr, i64, i64, i64, i64, ptr, ptr, ptr, i32 }
%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_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 }

; 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: mustprogress uwtable
define dso_local noundef i32 @_Z11ma_wav_initPF9ma_resultPvS0_mPmEPFS_S0_x14ma_seek_originEPFS_S0_PxES0_PK26ma_decoding_backend_configPK23ma_allocation_callbacksP6ma_wav(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #1 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.drwav_allocation_callbacks, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %20 = load ptr, ptr %13, align 8, !tbaa !5
  %21 = load ptr, ptr %15, align 8, !tbaa !5
  %22 = call noundef i32 @_ZL20ma_wav_init_internalPK26ma_decoding_backend_configP6ma_wav(ptr noundef %20, ptr noundef %21)
  store i32 %22, ptr %16, align 4, !tbaa !9
  %23 = load i32, ptr %16, align 4, !tbaa !9
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %27

25:                                               ; preds = %7
  %26 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %26, ptr %8, align 4
  store i32 1, ptr %17, align 4
  br label %133

27:                                               ; preds = %7
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = icmp eq ptr %28, null
  br i1 %29, label %33, label %30

30:                                               ; preds = %27
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %30, %27
  store i32 -2, ptr %8, align 4
  store i32 1, ptr %17, align 4
  br label %133

34:                                               ; preds = %30
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ma_wav, ptr %36, i32 0, i32 1
  store ptr %35, ptr %37, align 8, !tbaa !11
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ma_wav, ptr %39, i32 0, i32 2
  store ptr %38, ptr %40, align 8, !tbaa !28
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ma_wav, ptr %42, i32 0, i32 3
  store ptr %41, ptr %43, align 8, !tbaa !29
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ma_wav, ptr %45, i32 0, i32 4
  store ptr %44, ptr %46, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #3
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZL41drwav_allocation_callbacks_from_miniaudioPK23ma_allocation_callbacks(ptr dead_on_unwind writable sret(%struct.drwav_allocation_callbacks) align 8 %18, ptr noundef %47)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %48 = load ptr, ptr %15, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ma_wav, ptr %48, i32 0, i32 6
  %50 = load ptr, ptr %15, align 8, !tbaa !5
  %51 = call i32 @drwav_init(ptr noundef %49, ptr noundef @_ZL24ma_wav_dr_callback__readPvS_m, ptr noundef @_ZL24ma_wav_dr_callback__seekPvi17drwav_seek_origin, ptr noundef %50, ptr noundef %18)
  store i32 %51, ptr %19, align 4, !tbaa !31
  %52 = load i32, ptr %19, align 4, !tbaa !31
  %53 = icmp ne i32 %52, 1
  br i1 %53, label %54, label %55

54:                                               ; preds = %34
  store i32 -10, ptr %8, align 4
  store i32 1, ptr %17, align 4
  br label %132

55:                                               ; preds = %34
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ma_wav, ptr %56, i32 0, i32 5
  %58 = load i32, ptr %57, align 8, !tbaa !32
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %131

60:                                               ; preds = %55
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ma_wav, ptr %61, i32 0, i32 6
  %63 = getelementptr inbounds %struct.drwav, ptr %62, i32 0, i32 10
  %64 = load i16, ptr %63, align 4, !tbaa !33
  %65 = zext i16 %64 to i32
  switch i32 %65, label %121 [
    i32 1, label %66
    i32 3, label %110
  ]

66:                                               ; preds = %60
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ma_wav, ptr %67, i32 0, i32 6
  %69 = getelementptr inbounds %struct.drwav, ptr %68, i32 0, i32 9
  %70 = load i16, ptr %69, align 2, !tbaa !34
  %71 = zext i16 %70 to i32
  %72 = icmp eq i32 %71, 8
  br i1 %72, label %73, label %76

73:                                               ; preds = %66
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ma_wav, ptr %74, i32 0, i32 5
  store i32 1, ptr %75, align 8, !tbaa !32
  br label %109

76:                                               ; preds = %66
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ma_wav, ptr %77, i32 0, i32 6
  %79 = getelementptr inbounds %struct.drwav, ptr %78, i32 0, i32 9
  %80 = load i16, ptr %79, align 2, !tbaa !34
  %81 = zext i16 %80 to i32
  %82 = icmp eq i32 %81, 16
  br i1 %82, label %83, label %86

83:                                               ; preds = %76
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ma_wav, ptr %84, i32 0, i32 5
  store i32 2, ptr %85, align 8, !tbaa !32
  br label %108

86:                                               ; preds = %76
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ma_wav, ptr %87, i32 0, i32 6
  %89 = getelementptr inbounds %struct.drwav, ptr %88, i32 0, i32 9
  %90 = load i16, ptr %89, align 2, !tbaa !34
  %91 = zext i16 %90 to i32
  %92 = icmp eq i32 %91, 24
  br i1 %92, label %93, label %96

93:                                               ; preds = %86
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ma_wav, ptr %94, i32 0, i32 5
  store i32 3, ptr %95, align 8, !tbaa !32
  br label %107

96:                                               ; preds = %86
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ma_wav, ptr %97, i32 0, i32 6
  %99 = getelementptr inbounds %struct.drwav, ptr %98, i32 0, i32 9
  %100 = load i16, ptr %99, align 2, !tbaa !34
  %101 = zext i16 %100 to i32
  %102 = icmp eq i32 %101, 32
  br i1 %102, label %103, label %106

103:                                              ; preds = %96
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ma_wav, ptr %104, i32 0, i32 5
  store i32 4, ptr %105, align 8, !tbaa !32
  br label %106

106:                                              ; preds = %103, %96
  br label %107

107:                                              ; preds = %106, %93
  br label %108

108:                                              ; preds = %107, %83
  br label %109

109:                                              ; preds = %108, %73
  br label %122

110:                                              ; preds = %60
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ma_wav, ptr %111, i32 0, i32 6
  %113 = getelementptr inbounds %struct.drwav, ptr %112, i32 0, i32 9
  %114 = load i16, ptr %113, align 2, !tbaa !34
  %115 = zext i16 %114 to i32
  %116 = icmp eq i32 %115, 32
  br i1 %116, label %117, label %120

117:                                              ; preds = %110
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ma_wav, ptr %118, i32 0, i32 5
  store i32 5, ptr %119, align 8, !tbaa !32
  br label %120

120:                                              ; preds = %117, %110
  br label %122

121:                                              ; preds = %60
  br label %122

122:                                              ; preds = %121, %120, %109
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ma_wav, ptr %123, i32 0, i32 5
  %125 = load i32, ptr %124, align 8, !tbaa !32
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %122
  %128 = load ptr, ptr %15, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ma_wav, ptr %128, i32 0, i32 5
  store i32 5, ptr %129, align 8, !tbaa !32
  br label %130

130:                                              ; preds = %127, %122
  br label %131

131:                                              ; preds = %130, %55
  store i32 0, ptr %8, align 4
  store i32 1, ptr %17, align 4
  br label %132

132:                                              ; preds = %131, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #3
  br label %133

133:                                              ; preds = %132, %33, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  %134 = load i32, ptr %8, align 4
  ret i32 %134
}

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL41drwav_allocation_callbacks_from_miniaudioPK23ma_allocation_callbacks(ptr dead_on_unwind noalias writable sret(%struct.drwav_allocation_callbacks) align 8, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @drwav_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZL24ma_wav_dr_callback__readPvS_m(ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL24ma_wav_dr_callback__seekPvi17drwav_seek_origin(ptr noundef, i32 noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = !{!"_ZTS9ma_result", !7, i64 0}
!11 = !{!12, !6, i64 72}
!12 = !{!"_ZTS6ma_wav", !13, i64 0, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !16, i64 104, !17, i64 112}
!13 = !{!"_ZTS19ma_data_source_base", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !15, i64 64}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS9ma_format", !7, i64 0}
!17 = !{!"_ZTS5drwav", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !18, i64 32, !19, i64 64, !20, i64 68, !15, i64 108, !21, i64 112, !21, i64 114, !21, i64 116, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !15, i64 168, !22, i64 172, !6, i64 176, !15, i64 184, !23, i64 192, !25, i64 216, !26, i64 256, !27, i64 308}
!18 = !{!"_ZTS26drwav_allocation_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"_ZTS15drwav_container", !7, i64 0}
!20 = !{!"_ZTS9drwav_fmt", !21, i64 0, !21, i64 2, !15, i64 4, !15, i64 8, !21, i64 12, !21, i64 14, !21, i64 16, !21, i64 18, !15, i64 20, !7, i64 24}
!21 = !{!"short", !7, i64 0}
!22 = !{!"_ZTS19drwav_metadata_type", !7, i64 0}
!23 = !{!"_ZTS20drwav__memory_stream", !6, i64 0, !24, i64 8, !24, i64 16}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTS26drwav__memory_stream_write", !6, i64 0, !6, i64 8, !24, i64 16, !24, i64 24, !24, i64 32}
!26 = !{!"_ZTSN5drwavUt_E", !15, i64 0, !7, i64 4, !7, i64 8, !7, i64 16, !15, i64 32, !7, i64 36}
!27 = !{!"_ZTSN5drwavUt0_E", !15, i64 0, !7, i64 4, !7, i64 12, !7, i64 20, !15, i64 84}
!28 = !{!12, !6, i64 80}
!29 = !{!12, !6, i64 88}
!30 = !{!12, !6, i64 96}
!31 = !{!15, !15, i64 0}
!32 = !{!12, !16, i64 104}
!33 = !{!12, !21, i64 228}
!34 = !{!12, !21, i64 226}


; 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.drwav_allocation_callbacks = type { ptr, ptr, ptr, ptr }

; 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 uwtable
define dso_local noundef i32 @_Z11ma_wav_initPF9ma_resultPvS0_mPmEPFS_S0_x14ma_seek_originEPFS_S0_PxES0_PK26ma_decoding_backend_configPK23ma_allocation_callbacksP6ma_wav(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  %8 = alloca %struct.drwav_allocation_callbacks, align 8
  %9 = tail call noundef i32 @_ZL20ma_wav_init_internalPK26ma_decoding_backend_configP6ma_wav(ptr noundef %4, ptr noundef %6)
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %10, label %33

10:                                               ; preds = %7
  %11 = icmp eq ptr %0, null
  %12 = icmp eq ptr %1, null
  %or.cond = or i1 %11, %12
  br i1 %or.cond, label %33, label %13

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %6, i64 72
  store ptr %0, ptr %14, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %6, i64 80
  store ptr %1, ptr %15, align 8, !tbaa !25
  %16 = getelementptr inbounds i8, ptr %6, i64 88
  store ptr %2, ptr %16, align 8, !tbaa !26
  %17 = getelementptr inbounds i8, ptr %6, i64 96
  store ptr %3, ptr %17, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @_ZL41drwav_allocation_callbacks_from_miniaudioPK23ma_allocation_callbacks(ptr dead_on_unwind nonnull writable sret(%struct.drwav_allocation_callbacks) align 8 %8, ptr noundef %5)
  %18 = getelementptr inbounds i8, ptr %6, i64 112
  %19 = call i32 @drwav_init(ptr noundef nonnull %18, ptr noundef nonnull @_ZL24ma_wav_dr_callback__readPvS_m, ptr noundef nonnull @_ZL24ma_wav_dr_callback__seekPvi17drwav_seek_origin, ptr noundef %6, ptr noundef nonnull %8)
  %.not37 = icmp eq i32 %19, 1
  br i1 %.not37, label %20, label %.thread

20:                                               ; preds = %13
  %21 = getelementptr inbounds i8, ptr %6, i64 104
  %22 = load i32, ptr %21, align 8, !tbaa !28
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %.thread

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %6, i64 228
  %26 = load i16, ptr %25, align 4, !tbaa !29
  %cond = icmp eq i16 %26, 1
  br i1 %cond, label %27, label %.thread.sink.split

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %6, i64 226
  %29 = load i16, ptr %28, align 2, !tbaa !30
  %30 = add i16 %29, -8
  %31 = call i16 @llvm.fshl.i16(i16 %30, i16 %30, i16 13)
  %32 = icmp ult i16 %31, 4
  br i1 %32, label %switch.lookup, label %.thread.sink.split

switch.lookup:                                    ; preds = %27
  %narrow = add nuw nsw i16 %31, 1
  %switch.offset = zext nneg i16 %narrow to i32
  br label %.thread.sink.split

.thread.sink.split:                               ; preds = %24, %27, %switch.lookup
  %.sink = phi i32 [ %switch.offset, %switch.lookup ], [ 5, %27 ], [ 5, %24 ]
  store i32 %.sink, ptr %21, align 8, !tbaa !28
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %20, %13
  %.0 = phi i32 [ -10, %13 ], [ 0, %20 ], [ 0, %.thread.sink.split ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  br label %33

33:                                               ; preds = %10, %7, %.thread
  %.1 = phi i32 [ %.0, %.thread ], [ %9, %7 ], [ -2, %10 ]
  ret i32 %.1
}

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL41drwav_allocation_callbacks_from_miniaudioPK23ma_allocation_callbacks(ptr dead_on_unwind noalias writable sret(%struct.drwav_allocation_callbacks) align 8, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @drwav_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZL24ma_wav_dr_callback__readPvS_m(ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL24ma_wav_dr_callback__seekPvi17drwav_seek_origin(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.fshl.i16(i16, i16, i16) #3

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass