; LLVM IR from merpheus-dev/LavaEngine :: src/Utils/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.drmp3 = type { %struct.drmp3dec, %struct.drmp3dec_frame_info, i32, i32, ptr, ptr, ptr, %struct.drmp3_allocation_callbacks, i32, i32, i32, i32, [9216 x i8], i64, i64, %struct.drmp3_src, ptr, i32, i64, i64, ptr, i8, %struct.anon.0 }
%struct.drmp3dec = type { [2 x [288 x float]], [960 x float], i32, i32, [4 x i8], [511 x i8] }
%struct.drmp3dec_frame_info = type { i32, i32, i32, i32, i32 }
%struct.drmp3_allocation_callbacks = type { ptr, ptr, ptr, ptr }
%struct.drmp3_src = type { %struct.drmp3_src_config, ptr, ptr, [256 x float], %struct.drmp3_src_cache, %union.anon }
%struct.drmp3_src_config = type { i32, i32, i32, i32, i32 }
%struct.drmp3_src_cache = type { ptr, [1024 x float], i32, i32 }
%union.anon = type { %struct.anon }
%struct.anon = type { double, i8 }
%struct.anon.0 = type { ptr, i64, i64 }
%struct.drmp3_config = type { i32, i32 }

@.str.1 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__._Z30drmp3__full_read_and_close_f32P5drmp3P12drmp3_configPm = external hidden unnamed_addr constant [79 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 uwtable
declare dso_local void @drmp3_uninit(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL26drmp3__free_from_callbacksPvPK26drmp3_allocation_callbacks(ptr noundef, ptr noundef) #3

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

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

20:                                               ; preds = %3
  br label %23

21:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 3792, ptr noundef @__PRETTY_FUNCTION__._Z30drmp3__full_read_and_close_f32P5drmp3P12drmp3_configPm) #5
  unreachable

22:                                               ; No predecessors!
  br label %23

23:                                               ; preds = %22, %20
  br label %24

24:                                               ; preds = %119, %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.drmp3, ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 8, !tbaa !11
  %28 = zext i32 %27 to i64
  %29 = udiv i64 4096, %28
  store i64 %29, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load i64, ptr %11, align 8, !tbaa !9
  %32 = getelementptr inbounds [4096 x float], ptr %10, i64 0, i64 0
  %33 = call i64 @drmp3_read_pcm_frames_f32(ptr noundef %30, i64 noundef %31, ptr noundef %32)
  store i64 %33, ptr %12, align 8, !tbaa !9
  %34 = load i64, ptr %12, align 8, !tbaa !9
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %24
  store i32 2, ptr %13, align 4
  br label %117

37:                                               ; preds = %24
  %38 = load i64, ptr %8, align 8, !tbaa !9
  %39 = load i64, ptr %7, align 8, !tbaa !9
  %40 = load i64, ptr %12, align 8, !tbaa !9
  %41 = add i64 %39, %40
  %42 = icmp ult i64 %38, %41
  br i1 %42, label %43, label %92

43:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = mul i64 %44, 2
  store i64 %45, ptr %16, align 8, !tbaa !9
  %46 = load i64, ptr %16, align 8, !tbaa !9
  %47 = load i64, ptr %7, align 8, !tbaa !9
  %48 = load i64, ptr %12, align 8, !tbaa !9
  %49 = add i64 %47, %48
  %50 = icmp ult i64 %46, %49
  br i1 %50, label %51, label %55

51:                                               ; preds = %43
  %52 = load i64, ptr %7, align 8, !tbaa !9
  %53 = load i64, ptr %12, align 8, !tbaa !9
  %54 = add i64 %52, %53
  store i64 %54, ptr %16, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %51, %43
  %56 = load i64, ptr %8, align 8, !tbaa !9
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.drmp3, ptr %57, i32 0, i32 2
  %59 = load i32, ptr %58, align 8, !tbaa !11
  %60 = zext i32 %59 to i64
  %61 = mul i64 %56, %60
  %62 = mul i64 %61, 4
  store i64 %62, ptr %14, align 8, !tbaa !9
  %63 = load i64, ptr %16, align 8, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.drmp3, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 8, !tbaa !11
  %67 = zext i32 %66 to i64
  %68 = mul i64 %63, %67
  %69 = mul i64 %68, 4
  store i64 %69, ptr %15, align 8, !tbaa !9
  %70 = load i64, ptr %15, align 8, !tbaa !9
  %71 = icmp ugt i64 %70, -1
  br i1 %71, label %72, label %73

72:                                               ; preds = %55
  store i32 2, ptr %13, align 4
  br label %89

73:                                               ; preds = %55
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load i64, ptr %15, align 8, !tbaa !9
  %76 = load i64, ptr %14, align 8, !tbaa !9
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.drmp3, ptr %77, i32 0, i32 7
  %79 = call noundef ptr @_ZL29drmp3__realloc_from_callbacksPvmmPK26drmp3_allocation_callbacks(ptr noundef %74, i64 noundef %75, i64 noundef %76, ptr noundef %78)
  store ptr %79, ptr %17, align 8, !tbaa !5
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  %81 = icmp eq ptr %80, null
  br i1 %81, label %82, label %86

82:                                               ; preds = %73
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.drmp3, ptr %84, i32 0, i32 7
  call void @_ZL26drmp3__free_from_callbacksPvPK26drmp3_allocation_callbacks(ptr noundef %83, ptr noundef %85)
  store i32 2, ptr %13, align 4
  br label %89

86:                                               ; preds = %73
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %87, ptr %9, align 8, !tbaa !5
  %88 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %88, ptr %8, align 8, !tbaa !9
  store i32 0, ptr %13, align 4
  br label %89

89:                                               ; preds = %86, %82, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %90 = load i32, ptr %13, align 4
  switch i32 %90, label %117 [
    i32 0, label %91
  ]

91:                                               ; preds = %89
  br label %92

92:                                               ; preds = %91, %37
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load i64, ptr %7, align 8, !tbaa !9
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.drmp3, ptr %95, i32 0, i32 2
  %97 = load i32, ptr %96, align 8, !tbaa !11
  %98 = zext i32 %97 to i64
  %99 = mul i64 %94, %98
  %100 = getelementptr inbounds float, ptr %93, i64 %99
  %101 = getelementptr inbounds [4096 x float], ptr %10, i64 0, i64 0
  %102 = load i64, ptr %12, align 8, !tbaa !9
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.drmp3, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 8, !tbaa !11
  %106 = zext i32 %105 to i64
  %107 = mul i64 %102, %106
  %108 = mul i64 %107, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %100, ptr align 16 %101, i64 %108, i1 false)
  %109 = load i64, ptr %12, align 8, !tbaa !9
  %110 = load i64, ptr %7, align 8, !tbaa !9
  %111 = add i64 %110, %109
  store i64 %111, ptr %7, align 8, !tbaa !9
  %112 = load i64, ptr %12, align 8, !tbaa !9
  %113 = load i64, ptr %11, align 8, !tbaa !9
  %114 = icmp ne i64 %112, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %92
  store i32 2, ptr %13, align 4
  br label %117

116:                                              ; preds = %92
  store i32 0, ptr %13, align 4
  br label %117

117:                                              ; preds = %116, %115, %89, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %118 = load i32, ptr %13, align 4
  switch i32 %118, label %143 [
    i32 0, label %119
    i32 2, label %120
  ]

119:                                              ; preds = %117
  br label %24, !llvm.loop !22

120:                                              ; preds = %117
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %134

123:                                              ; preds = %120
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.drmp3, ptr %124, i32 0, i32 2
  %126 = load i32, ptr %125, align 8, !tbaa !11
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.drmp3_config, ptr %127, i32 0, i32 0
  store i32 %126, ptr %128, align 4, !tbaa !24
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.drmp3, ptr %129, i32 0, i32 3
  %131 = load i32, ptr %130, align 4, !tbaa !26
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.drmp3_config, ptr %132, i32 0, i32 1
  store i32 %131, ptr %133, align 4, !tbaa !27
  br label %134

134:                                              ; preds = %123, %120
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  call void @drmp3_uninit(ptr noundef %135)
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %141

138:                                              ; preds = %134
  %139 = load i64, ptr %7, align 8, !tbaa !9
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  store i64 %139, ptr %140, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %138, %134
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16384, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret ptr %142

143:                                              ; preds = %117
  unreachable
}

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

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 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 = { nounwind }
attributes #5 = { 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", !7, i64 0}
!11 = !{!12, !14, i64 6688}
!12 = !{!"_ZTS5drmp3", !13, i64 0, !15, i64 6668, !14, i64 6688, !14, i64 6692, !6, i64 6696, !6, i64 6704, !6, i64 6712, !16, i64 6720, !14, i64 6752, !14, i64 6756, !14, i64 6760, !14, i64 6764, !7, i64 6768, !10, i64 15984, !10, i64 15992, !17, i64 16000, !6, i64 21192, !14, i64 21200, !10, i64 21208, !10, i64 21216, !6, i64 21224, !14, i64 21232, !21, i64 21240}
!13 = !{!"_ZTS8drmp3dec", !7, i64 0, !7, i64 2304, !14, i64 6144, !14, i64 6148, !7, i64 6152, !7, i64 6156}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTS19drmp3dec_frame_info", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16}
!16 = !{!"_ZTS26drmp3_allocation_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTS9drmp3_src", !18, i64 0, !6, i64 24, !6, i64 32, !7, i64 40, !20, i64 1064, !7, i64 5176}
!18 = !{!"_ZTS16drmp3_src_config", !14, i64 0, !14, i64 4, !14, i64 8, !19, i64 12, !14, i64 16}
!19 = !{!"_ZTS19drmp3_src_algorithm", !7, i64 0}
!20 = !{!"_ZTS15drmp3_src_cache", !6, i64 0, !7, i64 8, !14, i64 4104, !14, i64 4108}
!21 = !{!"_ZTSN5drmp3Ut_E", !6, i64 0, !10, i64 8, !10, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !14, i64 0}
!25 = !{!"_ZTS12drmp3_config", !14, i64 0, !14, i64 4}
!26 = !{!12, !14, i64 6692}
!27 = !{!25, !14, i64 4}


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

@.str.1 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__._Z30drmp3__full_read_and_close_f32P5drmp3P12drmp3_configPm = external hidden unnamed_addr constant [79 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @drmp3_uninit(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL26drmp3__free_from_callbacksPvPK26drmp3_allocation_callbacks(ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z30drmp3__full_read_and_close_f32P5drmp3P12drmp3_configPm(ptr noundef %0, ptr noundef writeonly %1, ptr noundef writeonly %2) local_unnamed_addr #3 {
  %4 = alloca [4096 x float], align 16
  call void @llvm.lifetime.start.p0(i64 16384, ptr nonnull %4) #5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %7, label %.preheader

.preheader:                                       ; preds = %3
  %5 = getelementptr inbounds i8, ptr %0, i64 6688
  %6 = getelementptr inbounds i8, ptr %0, i64 6720
  br label %8

7:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 3792, ptr noundef nonnull @__PRETTY_FUNCTION__._Z30drmp3__full_read_and_close_f32P5drmp3P12drmp3_configPm) #6
  unreachable

8:                                                ; preds = %.preheader, %26
  %.051 = phi ptr [ %.253, %26 ], [ null, %.preheader ]
  %.049 = phi i64 [ %.2, %26 ], [ 0, %.preheader ]
  %.0 = phi i64 [ %15, %26 ], [ 0, %.preheader ]
  %9 = load i32, ptr %5, align 8, !tbaa !5
  %10 = udiv i32 4096, %9
  %11 = zext nneg i32 %10 to i64
  %12 = call i64 @drmp3_read_pcm_frames_f32(ptr noundef nonnull %0, i64 noundef %11, ptr noundef nonnull %4)
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %.loopexit, label %14

14:                                               ; preds = %8
  %15 = add i64 %12, %.0
  %16 = icmp ult i64 %.049, %15
  br i1 %16, label %17, label %26

17:                                               ; preds = %14
  %18 = shl i64 %.049, 1
  %spec.select = call i64 @llvm.umax.i64(i64 %18, i64 %15)
  %19 = load i32, ptr %5, align 8, !tbaa !5
  %20 = zext i32 %19 to i64
  %21 = shl i64 %spec.select, 2
  %22 = mul i64 %21, %20
  %23 = shl i64 %.049, 2
  %24 = mul i64 %23, %20
  %25 = call noundef ptr @_ZL29drmp3__realloc_from_callbacksPvmmPK26drmp3_allocation_callbacks(ptr noundef %.051, i64 noundef %22, i64 noundef %24, ptr noundef nonnull %6)
  %.not63 = icmp eq ptr %25, null
  br i1 %.not63, label %.thread, label %26

.thread:                                          ; preds = %17
  call void @_ZL26drmp3__free_from_callbacksPvPK26drmp3_allocation_callbacks(ptr noundef %.051, ptr noundef nonnull %6)
  br label %.loopexit

26:                                               ; preds = %17, %14
  %.253 = phi ptr [ %.051, %14 ], [ %25, %17 ]
  %.2 = phi i64 [ %.049, %14 ], [ %spec.select, %17 ]
  %27 = load i32, ptr %5, align 8, !tbaa !5
  %28 = zext i32 %27 to i64
  %29 = mul i64 %.0, %28
  %30 = getelementptr inbounds float, ptr %.253, i64 %29
  %31 = shl i64 %12, 2
  %32 = mul i64 %31, %28
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr nonnull align 16 %4, i64 %32, i1 false)
  %.not64 = icmp eq i64 %12, %11
  br i1 %.not64, label %8, label %.loopexit

.loopexit:                                        ; preds = %8, %26, %.thread
  %.354.ph = phi ptr [ %.051, %.thread ], [ %.051, %8 ], [ %.253, %26 ]
  %.1.ph = phi i64 [ %.0, %.thread ], [ %.0, %8 ], [ %15, %26 ]
  %.not65 = icmp eq ptr %1, null
  br i1 %.not65, label %35, label %33

33:                                               ; preds = %.loopexit
  %34 = load <2 x i32>, ptr %5, align 8, !tbaa !20
  store <2 x i32> %34, ptr %1, align 4, !tbaa !20
  br label %35

35:                                               ; preds = %33, %.loopexit
  call void @drmp3_uninit(ptr noundef nonnull %0)
  %.not66 = icmp eq ptr %2, null
  br i1 %.not66, label %37, label %36

36:                                               ; preds = %35
  store i64 %.1.ph, ptr %2, align 8, !tbaa !21
  br label %37

37:                                               ; preds = %36, %35
  call void @llvm.lifetime.end.p0(i64 16384, ptr nonnull %4) #5
  ret ptr %.354.ph
}

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL29drmp3__realloc_from_callbacksPvmmPK26drmp3_allocation_callbacks(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { 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, !10, i64 6688}
!6 = !{!"_ZTS5drmp3", !7, i64 0, !11, i64 6668, !10, i64 6688, !10, i64 6692, !12, i64 6696, !12, i64 6704, !12, i64 6712, !13, i64 6720, !10, i64 6752, !10, i64 6756, !10, i64 6760, !10, i64 6764, !8, i64 6768, !14, i64 15984, !14, i64 15992, !15, i64 16000, !12, i64 21192, !10, i64 21200, !14, i64 21208, !14, i64 21216, !12, i64 21224, !10, i64 21232, !19, i64 21240}
!7 = !{!"_ZTS8drmp3dec", !8, i64 0, !8, i64 2304, !10, i64 6144, !10, i64 6148, !8, i64 6152, !8, i64 6156}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS19drmp3dec_frame_info", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"_ZTS26drmp3_allocation_callbacks", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!14 = !{!"long", !8, i64 0}
!15 = !{!"_ZTS9drmp3_src", !16, i64 0, !12, i64 24, !12, i64 32, !8, i64 40, !18, i64 1064, !8, i64 5176}
!16 = !{!"_ZTS16drmp3_src_config", !10, i64 0, !10, i64 4, !10, i64 8, !17, i64 12, !10, i64 16}
!17 = !{!"_ZTS19drmp3_src_algorithm", !8, i64 0}
!18 = !{!"_ZTS15drmp3_src_cache", !12, i64 0, !8, i64 8, !10, i64 4104, !10, i64 4108}
!19 = !{!"_ZTSN5drmp3Ut_E", !12, i64 0, !14, i64 8, !14, i64 16}
!20 = !{!10, !10, i64 0}
!21 = !{!14, !14, i64 0}


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