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

; 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.stb_vorbis_info = type { i32, i32, i32, i32, i32, i32 }
%"class.SoLoud::AudioSource" = type { ptr, i32, float, float, i32, i32, float, float, float, i32, float, [8 x ptr], ptr, ptr, ptr, i32, double }
%"class.SoLoud::Wav" = type <{ %"class.SoLoud::AudioSource", ptr, i32, [4 x 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 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6SoLoud3Wav7loadoggEPNS_10MemoryFileE(ptr noundef nonnull align 8 dereferenceable(164) %0, ptr noundef %1) #4 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.stb_vorbis_info, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr null, ptr %7, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds ptr, ptr %16, i64 8
  %18 = load ptr, ptr %17, align 8
  %19 = call noundef ptr %18(ptr noundef nonnull align 8 dereferenceable(25) %15)
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds ptr, ptr %21, i64 4
  %23 = load ptr, ptr %22, align 8
  %24 = call noundef i32 %23(ptr noundef nonnull align 8 dereferenceable(25) %20)
  %25 = call ptr @stb_vorbis_open_memory(ptr noundef %19, i32 noundef %24, ptr noundef %6, ptr noundef null)
  store ptr %25, ptr %7, align 8, !tbaa !5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = icmp eq ptr null, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %113

29:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  call void @stb_vorbis_get_info(ptr dead_on_unwind writable sret(%struct.stb_vorbis_info) align 4 %9, ptr noundef %30)
  %31 = getelementptr inbounds %struct.stb_vorbis_info, ptr %9, i32 0, i32 0
  %32 = load i32, ptr %31, align 4, !tbaa !13
  %33 = uitofp i32 %32 to float
  %34 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %14, i32 0, i32 2
  store float %33, ptr %34, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call i32 @stb_vorbis_stream_length_in_samples(ptr noundef %35)
  store i32 %36, ptr %10, align 4, !tbaa !9
  %37 = getelementptr inbounds %struct.stb_vorbis_info, ptr %9, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !19
  %39 = icmp sgt i32 %38, 8
  br i1 %39, label %40, label %42

40:                                               ; preds = %29
  %41 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %14, i32 0, i32 4
  store i32 8, ptr %41, align 4, !tbaa !20
  br label %46

42:                                               ; preds = %29
  %43 = getelementptr inbounds %struct.stb_vorbis_info, ptr %9, i32 0, i32 1
  %44 = load i32, ptr %43, align 4, !tbaa !19
  %45 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %14, i32 0, i32 4
  store i32 %44, ptr %45, align 4, !tbaa !20
  br label %46

46:                                               ; preds = %42, %40
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %14, i32 0, i32 4
  %49 = load i32, ptr %48, align 4, !tbaa !20
  %50 = mul i32 %47, %49
  %51 = zext i32 %50 to i64
  %52 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %51, i64 4)
  %53 = extractvalue { i64, i1 } %52, 1
  %54 = extractvalue { i64, i1 } %52, 0
  %55 = select i1 %53, i64 -1, i64 %54
  %56 = call noalias noundef nonnull ptr @_Znam(i64 noundef %55) #8
  %57 = getelementptr inbounds %"class.SoLoud::Wav", ptr %14, i32 0, i32 1
  store ptr %56, ptr %57, align 8, !tbaa !21
  %58 = getelementptr inbounds %"class.SoLoud::Wav", ptr %14, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %14, i32 0, i32 4
  %62 = load i32, ptr %61, align 4, !tbaa !20
  %63 = mul i32 %60, %62
  %64 = zext i32 %63 to i64
  %65 = mul i64 %64, 4
  call void @llvm.memset.p0.i64(ptr align 4 %59, i8 0, i64 %65, i1 false)
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = getelementptr inbounds %"class.SoLoud::Wav", ptr %14, i32 0, i32 2
  store i32 %66, ptr %67, align 8, !tbaa !23
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %110, %46
  br label %69

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = call i32 @stb_vorbis_get_frame_float(ptr noundef %70, ptr noundef null, ptr noundef %11)
  store i32 %71, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %69
  store i32 3, ptr %8, align 4
  br label %108

75:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %101, %75
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %14, i32 0, i32 4
  %79 = load i32, ptr %78, align 4, !tbaa !20
  %80 = icmp ult i32 %77, %79
  br i1 %80, label %81, label %104

81:                                               ; preds = %76
  %82 = getelementptr inbounds %"class.SoLoud::Wav", ptr %14, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !21
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds float, ptr %83, i64 %85
  %87 = getelementptr inbounds %"class.SoLoud::Wav", ptr %14, i32 0, i32 2
  %88 = load i32, ptr %87, align 8, !tbaa !23
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = mul i32 %88, %89
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %86, i64 %91
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %93, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = mul i64 4, %99
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 4 %97, i64 %100, i1 false)
  br label %101

101:                                              ; preds = %81
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = add i32 %102, 1
  store i32 %103, ptr %13, align 4, !tbaa !9
  br label %76, !llvm.loop !24

104:                                              ; preds = %76
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = add nsw i32 %106, %105
  store i32 %107, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  store i32 0, ptr %8, align 4
  br label %108

108:                                              ; preds = %104, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  %109 = load i32, ptr %8, align 4
  switch i32 %109, label %115 [
    i32 0, label %110
    i32 3, label %111
  ]

110:                                              ; preds = %108
  br label %68, !llvm.loop !26

111:                                              ; preds = %108
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  call void @stb_vorbis_close(ptr noundef %112)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  br label %113

113:                                              ; preds = %111, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %114 = load i32, ptr %3, align 4
  ret i32 %114

115:                                              ; preds = %108
  unreachable
}

declare ptr @stb_vorbis_open_memory(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #5

declare void @stb_vorbis_get_info(ptr dead_on_unwind writable sret(%struct.stb_vorbis_info) align 4, ptr noundef) #5

declare i32 @stb_vorbis_stream_length_in_samples(ptr noundef) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

declare i32 @stb_vorbis_get_frame_float(ptr noundef, ptr noundef, ptr noundef) #5

declare void @stb_vorbis_close(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin allocsize(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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS15stb_vorbis_info", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!15 = !{!16, !17, i64 12}
!16 = !{!"_ZTSN6SoLoud11AudioSourceE", !10, i64 8, !17, i64 12, !17, i64 16, !10, i64 20, !10, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !10, i64 40, !17, i64 44, !7, i64 48, !6, i64 112, !6, i64 120, !6, i64 128, !10, i64 136, !18, i64 144}
!17 = !{!"float", !7, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!14, !10, i64 4}
!20 = !{!16, !10, i64 20}
!21 = !{!22, !6, i64 152}
!22 = !{!"_ZTSN6SoLoud3WavE", !16, i64 0, !6, i64 152, !10, i64 160}
!23 = !{!22, !10, i64 160}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; 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.stb_vorbis_info = type { i32, i32, i32, i32, i32, i32 }

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 4) i32 @_ZN6SoLoud3Wav7loadoggEPNS_10MemoryFileE(ptr nocapture noundef nonnull align 8 dereferenceable(164) %0, ptr noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca %struct.stb_vorbis_info, align 4
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  %6 = load ptr, ptr %1, align 8, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %6, i64 64
  %8 = load ptr, ptr %7, align 8
  %9 = tail call noundef ptr %8(ptr noundef nonnull align 8 dereferenceable(25) %1)
  %10 = load ptr, ptr %1, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %10, i64 32
  %12 = load ptr, ptr %11, align 8
  %13 = tail call noundef i32 %12(ptr noundef nonnull align 8 dereferenceable(25) %1)
  %14 = call ptr @stb_vorbis_open_memory(ptr noundef %9, i32 noundef %13, ptr noundef nonnull %3, ptr noundef null)
  %15 = icmp eq ptr %14, null
  br i1 %15, label %54, label %16

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @stb_vorbis_get_info(ptr dead_on_unwind nonnull writable sret(%struct.stb_vorbis_info) align 4 %4, ptr noundef nonnull %14)
  %17 = load i32, ptr %4, align 4, !tbaa !11
  %18 = uitofp i32 %17 to float
  %19 = getelementptr inbounds i8, ptr %0, i64 12
  store float %18, ptr %19, align 4, !tbaa !13
  %20 = call i32 @stb_vorbis_stream_length_in_samples(ptr noundef nonnull %14)
  %21 = getelementptr inbounds i8, ptr %4, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !18
  %spec.select = call i32 @llvm.smin.i32(i32 %22, i32 8)
  %23 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %spec.select, ptr %23, align 4
  %24 = mul i32 %spec.select, %20
  %25 = zext i32 %24 to i64
  %26 = shl nuw nsw i64 %25, 2
  %27 = call noalias noundef nonnull ptr @_Znam(i64 noundef %26) #8
  %28 = getelementptr inbounds i8, ptr %0, i64 152
  store ptr %27, ptr %28, align 8, !tbaa !19
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %27, i8 0, i64 %26, i1 false)
  %29 = getelementptr inbounds i8, ptr %0, i64 160
  store i32 %20, ptr %29, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %30 = call i32 @stb_vorbis_get_frame_float(ptr noundef nonnull %14, ptr noundef null, ptr noundef nonnull %5)
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %._crit_edge32, label %.preheader

.preheader:                                       ; preds = %16, %._crit_edge
  %32 = phi i32 [ %52, %._crit_edge ], [ %30, %16 ]
  %.02231 = phi i32 [ %51, %._crit_edge ], [ 0, %16 ]
  %33 = load i32, ptr %23, align 4, !tbaa !22
  %.not = icmp eq i32 %33, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %34 = sext i32 %.02231 to i64
  %35 = sext i32 %32 to i64
  %36 = shl nsw i64 %35, 2
  br label %37

37:                                               ; preds = %.lr.ph, %37
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %37 ]
  %38 = load ptr, ptr %28, align 8, !tbaa !19
  %39 = getelementptr inbounds float, ptr %38, i64 %34
  %40 = load i32, ptr %29, align 8, !tbaa !21
  %41 = trunc nuw i64 %indvars.iv to i32
  %42 = mul i32 %40, %41
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds float, ptr %39, i64 %43
  %45 = load ptr, ptr %5, align 8, !tbaa !23
  %46 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv
  %47 = load ptr, ptr %46, align 8, !tbaa !23
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %44, ptr noundef nonnull align 4 dereferenceable(1) %47, i64 %36, i1 false)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load i32, ptr %23, align 4, !tbaa !22
  %49 = zext i32 %48 to i64
  %50 = icmp ult i64 %indvars.iv.next, %49
  br i1 %50, label %37, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %37, %.preheader
  %51 = add nsw i32 %32, %.02231
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %52 = call i32 @stb_vorbis_get_frame_float(ptr noundef nonnull %14, ptr noundef null, ptr noundef nonnull %5)
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %._crit_edge32, label %.preheader

._crit_edge32:                                    ; preds = %._crit_edge, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @stb_vorbis_close(ptr noundef nonnull %14)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  br label %54

54:                                               ; preds = %2, %._crit_edge32
  %.021 = phi i32 [ 0, %._crit_edge32 ], [ 3, %2 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  ret i32 %.021
}

declare ptr @stb_vorbis_open_memory(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @stb_vorbis_get_info(ptr dead_on_unwind writable sret(%struct.stb_vorbis_info) align 4, ptr noundef) local_unnamed_addr #4

declare i32 @stb_vorbis_stream_length_in_samples(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

declare i32 @stb_vorbis_get_frame_float(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @stb_vorbis_close(ptr noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(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 = { 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 = { "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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS15stb_vorbis_info", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!13 = !{!14, !15, i64 12}
!14 = !{!"_ZTSN6SoLoud11AudioSourceE", !6, i64 8, !15, i64 12, !15, i64 16, !6, i64 20, !6, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !6, i64 40, !15, i64 44, !7, i64 48, !16, i64 112, !16, i64 120, !16, i64 128, !6, i64 136, !17, i64 144}
!15 = !{!"float", !7, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!12, !6, i64 4}
!19 = !{!20, !16, i64 152}
!20 = !{!"_ZTSN6SoLoud3WavE", !14, i64 0, !16, i64 152, !6, i64 160}
!21 = !{!20, !6, i64 160}
!22 = !{!14, !6, i64 20}
!23 = !{!16, !16, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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