; LLVM IR from merpheus-dev/LavaEngine :: src/Utils/soloud/src/audiosource/wav (soloud_wavstream)

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

%"class.SoLoud::WavStreamInstance" = type { %"class.SoLoud::AudioSourceInstance", ptr, i32, ptr, %"union.SoLoud::WavStreamInstance::codec", i32, i32, ptr }
%"class.SoLoud::AudioSourceInstance" = type { ptr, i32, i32, i32, float, [8 x float], float, float, float, float, i32, float, float, double, double, %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", i32, [8 x float], i32, i32, [8 x ptr], [2 x ptr], i32, i32, i32, double }
%"class.SoLoud::Fader" = type { float, float, float, double, double, double, float, i32 }
%"union.SoLoud::WavStreamInstance::codec" = type { ptr }
%"class.SoLoud::WavStream" = type <{ %"class.SoLoud::AudioSource", i32, [4 x i8], ptr, ptr, ptr, i32, [4 x i8] }>
%"class.SoLoud::AudioSource" = type { ptr, i32, float, float, i32, i32, float, float, float, i32, float, [8 x ptr], ptr, ptr, ptr, i32, double }
%struct.drflac = type { ptr, ptr, %struct.drflac_allocation_callbacks, i32, i8, i8, i16, i64, i32, i32, %struct.drflac_frame, i64, i64, %struct.drflac__memory_stream, ptr, ptr, ptr, i8, %struct.drflac_bs, [1 x i8] }
%struct.drflac_allocation_callbacks = type { ptr, ptr, ptr, ptr }
%struct.drflac_frame = type { %struct.drflac_frame_header, i32, [8 x %struct.drflac_subframe] }
%struct.drflac_frame_header = type { i64, i32, i32, i16, i8, i8, i8 }
%struct.drflac_subframe = type { i8, i8, i8, ptr }
%struct.drflac__memory_stream = type { ptr, i64, i64 }
%struct.drflac_bs = type { ptr, ptr, ptr, i64, i64, i32, i32, [512 x i64], i64, i16, i64, i32 }
%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.3 }
%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.2 }
%struct.anon.2 = type { double, i8 }
%struct.anon.3 = type { ptr, i64, i64 }
%struct.drwav = type { ptr, ptr, ptr, ptr, %struct.drwav_allocation_callbacks, i32, %struct.drwav_fmt, i32, i16, i16, i16, i64, i64, i64, i64, i64, i32, %struct.drwav_smpl, %struct.drwav__memory_stream, %struct.drwav__memory_stream_write, %struct.anon, %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_smpl = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, [1 x %struct.drwav_smpl_loop] }
%struct.drwav_smpl_loop = type { i32, i32, i32, i32, i32, i32 }
%struct.drwav__memory_stream = type { ptr, i64, i64 }
%struct.drwav__memory_stream_write = type { ptr, ptr, i64, i64, i64 }
%struct.anon = type { 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 }

; 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 @_ZN6SoLoud17WavStreamInstance8getAudioEPfjj(ptr noundef nonnull align 8 dereferenceable(544) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [4096 x float], align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [4096 x float], align 16
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca [4096 x float], align 16
  %28 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %29 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  %30 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 3
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %4
  store i32 0, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %359

34:                                               ; preds = %4
  %35 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = getelementptr inbounds %"class.SoLoud::WavStream", ptr %36, i32 0, i32 1
  %38 = load i32, ptr %37, align 8, !tbaa !18
  switch i32 %38, label %357 [
    i32 2, label %39
    i32 3, label %115
    i32 1, label %190
    i32 0, label %281
  ]

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %106, %39
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = icmp ult i32 %41, %42
  br i1 %43, label %44, label %109

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16384, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = sub i32 %45, %46
  %48 = icmp ugt i32 %47, 512
  br i1 %48, label %49, label %50

49:                                               ; preds = %44
  br label %54

50:                                               ; preds = %44
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = sub i32 %51, %52
  br label %54

54:                                               ; preds = %50, %49
  %55 = phi i32 [ 512, %49 ], [ %53, %50 ]
  store i32 %55, ptr %16, align 4, !tbaa !9
  %56 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 4
  %57 = load ptr, ptr %56, align 8, !tbaa !21
  %58 = load i32, ptr %16, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds [4096 x float], ptr %15, i64 0, i64 0
  %61 = call i64 @drflac_read_pcm_frames_f32(ptr noundef %57, i64 noundef %59, ptr noundef %60)
  %62 = trunc i64 %61 to i32
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = add i32 %63, %62
  store i32 %64, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %102, %54
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = load i32, ptr %16, align 4, !tbaa !9
  %68 = icmp ult i32 %66, %67
  br i1 %68, label %69, label %105

69:                                               ; preds = %65
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %98, %69
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %29, i32 0, i32 10
  %73 = load i32, ptr %72, align 8, !tbaa !22
  %74 = icmp ult i32 %71, %73
  br i1 %74, label %75, label %101

75:                                               ; preds = %70
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !21
  %79 = getelementptr inbounds %struct.drflac, ptr %78, i32 0, i32 4
  %80 = load i8, ptr %79, align 4, !tbaa !23
  %81 = zext i8 %80 to i32
  %82 = mul i32 %76, %81
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = add i32 %82, %83
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds [4096 x float], ptr %15, i64 0, i64 %85
  %87 = load float, ptr %86, align 4, !tbaa !33
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = load i32, ptr %8, align 4, !tbaa !9
  %91 = mul i32 %89, %90
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = add i32 %91, %92
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = add i32 %93, %94
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %88, i64 %96
  store float %87, ptr %97, align 4, !tbaa !33
  br label %98

98:                                               ; preds = %75
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = add i32 %99, 1
  store i32 %100, ptr %14, align 4, !tbaa !9
  br label %70, !llvm.loop !34

101:                                              ; preds = %70
  br label %102

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

105:                                              ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16384, ptr %15) #4
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = add i32 %107, 512
  store i32 %108, ptr %12, align 4, !tbaa !9
  br label %40, !llvm.loop !37

109:                                              ; preds = %40
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 2
  %112 = load i32, ptr %111, align 8, !tbaa !38
  %113 = add i32 %112, %110
  store i32 %113, ptr %111, align 8, !tbaa !38
  %114 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %114, ptr %5, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %359

115:                                              ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %181, %115
  %117 = load i32, ptr %17, align 4, !tbaa !9
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = icmp ult i32 %117, %118
  br i1 %119, label %120, label %184

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 16384, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = load i32, ptr %17, align 4, !tbaa !9
  %123 = sub i32 %121, %122
  %124 = icmp ugt i32 %123, 512
  br i1 %124, label %125, label %126

125:                                              ; preds = %120
  br label %130

126:                                              ; preds = %120
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = load i32, ptr %17, align 4, !tbaa !9
  %129 = sub i32 %127, %128
  br label %130

130:                                              ; preds = %126, %125
  %131 = phi i32 [ 512, %125 ], [ %129, %126 ]
  store i32 %131, ptr %21, align 4, !tbaa !9
  %132 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !21
  %134 = load i32, ptr %21, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [4096 x float], ptr %20, i64 0, i64 0
  %137 = call i64 @drmp3_read_pcm_frames_f32(ptr noundef %133, i64 noundef %135, ptr noundef %136)
  %138 = trunc i64 %137 to i32
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = add i32 %139, %138
  store i32 %140, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %177, %130
  %142 = load i32, ptr %18, align 4, !tbaa !9
  %143 = load i32, ptr %21, align 4, !tbaa !9
  %144 = icmp ult i32 %142, %143
  br i1 %144, label %145, label %180

145:                                              ; preds = %141
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %173, %145
  %147 = load i32, ptr %19, align 4, !tbaa !9
  %148 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %29, i32 0, i32 10
  %149 = load i32, ptr %148, align 8, !tbaa !22
  %150 = icmp ult i32 %147, %149
  br i1 %150, label %151, label %176

151:                                              ; preds = %146
  %152 = load i32, ptr %18, align 4, !tbaa !9
  %153 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !21
  %155 = getelementptr inbounds %struct.drmp3, ptr %154, i32 0, i32 2
  %156 = load i32, ptr %155, align 8, !tbaa !39
  %157 = mul i32 %152, %156
  %158 = load i32, ptr %19, align 4, !tbaa !9
  %159 = add i32 %157, %158
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds [4096 x float], ptr %20, i64 0, i64 %160
  %162 = load float, ptr %161, align 4, !tbaa !33
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = load i32, ptr %19, align 4, !tbaa !9
  %165 = load i32, ptr %8, align 4, !tbaa !9
  %166 = mul i32 %164, %165
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = add i32 %166, %167
  %169 = load i32, ptr %18, align 4, !tbaa !9
  %170 = add i32 %168, %169
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds float, ptr %163, i64 %171
  store float %162, ptr %172, align 4, !tbaa !33
  br label %173

173:                                              ; preds = %151
  %174 = load i32, ptr %19, align 4, !tbaa !9
  %175 = add i32 %174, 1
  store i32 %175, ptr %19, align 4, !tbaa !9
  br label %146, !llvm.loop !49

176:                                              ; preds = %146
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %18, align 4, !tbaa !9
  %179 = add i32 %178, 1
  store i32 %179, ptr %18, align 4, !tbaa !9
  br label %141, !llvm.loop !50

180:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16384, ptr %20) #4
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %17, align 4, !tbaa !9
  %183 = add i32 %182, 512
  store i32 %183, ptr %17, align 4, !tbaa !9
  br label %116, !llvm.loop !51

184:                                              ; preds = %116
  %185 = load i32, ptr %10, align 4, !tbaa !9
  %186 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 2
  %187 = load i32, ptr %186, align 8, !tbaa !38
  %188 = add i32 %187, %185
  store i32 %188, ptr %186, align 8, !tbaa !38
  %189 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %189, ptr %5, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %359

190:                                              ; preds = %34
  %191 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 6
  %192 = load i32, ptr %191, align 4, !tbaa !52
  %193 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 5
  %194 = load i32, ptr %193, align 8, !tbaa !53
  %195 = icmp ult i32 %192, %194
  br i1 %195, label %196, label %220

196:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %197 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 7
  %198 = load ptr, ptr %197, align 8, !tbaa !54
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = load i32, ptr %8, align 4, !tbaa !9
  %201 = load i32, ptr %9, align 4, !tbaa !9
  %202 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 5
  %203 = load i32, ptr %202, align 8, !tbaa !53
  %204 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 6
  %205 = load i32, ptr %204, align 4, !tbaa !52
  %206 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %29, i32 0, i32 10
  %207 = load i32, ptr %206, align 8, !tbaa !22
  %208 = call noundef i32 @_ZN6SoLoudL10getOggDataEPPfS0_iiiii(ptr noundef %198, ptr noundef %199, i32 noundef %200, i32 noundef %201, i32 noundef %203, i32 noundef %205, i32 noundef %207)
  store i32 %208, ptr %22, align 4, !tbaa !9
  %209 = load i32, ptr %22, align 4, !tbaa !9
  %210 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 2
  %211 = load i32, ptr %210, align 8, !tbaa !38
  %212 = add i32 %211, %209
  store i32 %212, ptr %210, align 8, !tbaa !38
  %213 = load i32, ptr %22, align 4, !tbaa !9
  %214 = load i32, ptr %10, align 4, !tbaa !9
  %215 = add i32 %214, %213
  store i32 %215, ptr %10, align 4, !tbaa !9
  %216 = load i32, ptr %22, align 4, !tbaa !9
  %217 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 6
  %218 = load i32, ptr %217, align 4, !tbaa !52
  %219 = add i32 %218, %216
  store i32 %219, ptr %217, align 4, !tbaa !52
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %220

220:                                              ; preds = %196, %190
  br label %221

221:                                              ; preds = %279, %220
  %222 = load i32, ptr %10, align 4, !tbaa !9
  %223 = load i32, ptr %8, align 4, !tbaa !9
  %224 = icmp ult i32 %222, %223
  br i1 %224, label %225, label %280

225:                                              ; preds = %221
  %226 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !21
  %228 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 7
  %229 = call i32 @stb_vorbis_get_frame_float(ptr noundef %227, ptr noundef null, ptr noundef %228)
  %230 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 5
  store i32 %229, ptr %230, align 8, !tbaa !53
  %231 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 6
  store i32 0, ptr %231, align 4, !tbaa !52
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %232 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 7
  %233 = load ptr, ptr %232, align 8, !tbaa !54
  %234 = load ptr, ptr %7, align 8, !tbaa !5
  %235 = load i32, ptr %10, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = getelementptr inbounds float, ptr %234, i64 %236
  %238 = load i32, ptr %8, align 4, !tbaa !9
  %239 = load i32, ptr %10, align 4, !tbaa !9
  %240 = sub i32 %238, %239
  %241 = load i32, ptr %9, align 4, !tbaa !9
  %242 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 5
  %243 = load i32, ptr %242, align 8, !tbaa !53
  %244 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 6
  %245 = load i32, ptr %244, align 4, !tbaa !52
  %246 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %29, i32 0, i32 10
  %247 = load i32, ptr %246, align 8, !tbaa !22
  %248 = call noundef i32 @_ZN6SoLoudL10getOggDataEPPfS0_iiiii(ptr noundef %233, ptr noundef %237, i32 noundef %240, i32 noundef %241, i32 noundef %243, i32 noundef %245, i32 noundef %247)
  store i32 %248, ptr %23, align 4, !tbaa !9
  %249 = load i32, ptr %23, align 4, !tbaa !9
  %250 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 2
  %251 = load i32, ptr %250, align 8, !tbaa !38
  %252 = add i32 %251, %249
  store i32 %252, ptr %250, align 8, !tbaa !38
  %253 = load i32, ptr %23, align 4, !tbaa !9
  %254 = load i32, ptr %10, align 4, !tbaa !9
  %255 = add i32 %254, %253
  store i32 %255, ptr %10, align 4, !tbaa !9
  %256 = load i32, ptr %23, align 4, !tbaa !9
  %257 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 6
  %258 = load i32, ptr %257, align 4, !tbaa !52
  %259 = add i32 %258, %256
  store i32 %259, ptr %257, align 4, !tbaa !52
  %260 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 2
  %261 = load i32, ptr %260, align 8, !tbaa !38
  %262 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 1
  %263 = load ptr, ptr %262, align 8, !tbaa !17
  %264 = getelementptr inbounds %"class.SoLoud::WavStream", ptr %263, i32 0, i32 6
  %265 = load i32, ptr %264, align 8, !tbaa !55
  %266 = icmp uge i32 %261, %265
  br i1 %266, label %270, label %267

267:                                              ; preds = %225
  %268 = load i32, ptr %23, align 4, !tbaa !9
  %269 = icmp eq i32 %268, 0
  br i1 %269, label %270, label %276

270:                                              ; preds = %267, %225
  %271 = load i32, ptr %10, align 4, !tbaa !9
  %272 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 2
  %273 = load i32, ptr %272, align 8, !tbaa !38
  %274 = add i32 %273, %271
  store i32 %274, ptr %272, align 8, !tbaa !38
  %275 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %275, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %277

276:                                              ; preds = %267
  store i32 0, ptr %11, align 4
  br label %277

277:                                              ; preds = %276, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  %278 = load i32, ptr %11, align 4
  switch i32 %278, label %359 [
    i32 0, label %279
  ]

279:                                              ; preds = %277
  br label %221, !llvm.loop !56

280:                                              ; preds = %221
  br label %357

281:                                              ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %348, %281
  %283 = load i32, ptr %24, align 4, !tbaa !9
  %284 = load i32, ptr %8, align 4, !tbaa !9
  %285 = icmp ult i32 %283, %284
  br i1 %285, label %286, label %351

286:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 16384, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %287 = load i32, ptr %8, align 4, !tbaa !9
  %288 = load i32, ptr %24, align 4, !tbaa !9
  %289 = sub i32 %287, %288
  %290 = icmp ugt i32 %289, 512
  br i1 %290, label %291, label %292

291:                                              ; preds = %286
  br label %296

292:                                              ; preds = %286
  %293 = load i32, ptr %8, align 4, !tbaa !9
  %294 = load i32, ptr %24, align 4, !tbaa !9
  %295 = sub i32 %293, %294
  br label %296

296:                                              ; preds = %292, %291
  %297 = phi i32 [ 512, %291 ], [ %295, %292 ]
  store i32 %297, ptr %28, align 4, !tbaa !9
  %298 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !21
  %300 = load i32, ptr %28, align 4, !tbaa !9
  %301 = zext i32 %300 to i64
  %302 = getelementptr inbounds [4096 x float], ptr %27, i64 0, i64 0
  %303 = call i64 @drwav_read_pcm_frames_f32(ptr noundef %299, i64 noundef %301, ptr noundef %302)
  %304 = trunc i64 %303 to i32
  %305 = load i32, ptr %10, align 4, !tbaa !9
  %306 = add i32 %305, %304
  store i32 %306, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %307

307:                                              ; preds = %344, %296
  %308 = load i32, ptr %25, align 4, !tbaa !9
  %309 = load i32, ptr %28, align 4, !tbaa !9
  %310 = icmp ult i32 %308, %309
  br i1 %310, label %311, label %347

311:                                              ; preds = %307
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %312

312:                                              ; preds = %340, %311
  %313 = load i32, ptr %26, align 4, !tbaa !9
  %314 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %29, i32 0, i32 10
  %315 = load i32, ptr %314, align 8, !tbaa !22
  %316 = icmp ult i32 %313, %315
  br i1 %316, label %317, label %343

317:                                              ; preds = %312
  %318 = load i32, ptr %25, align 4, !tbaa !9
  %319 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 4
  %320 = load ptr, ptr %319, align 8, !tbaa !21
  %321 = getelementptr inbounds %struct.drwav, ptr %320, i32 0, i32 8
  %322 = load i16, ptr %321, align 8, !tbaa !57
  %323 = zext i16 %322 to i32
  %324 = mul i32 %318, %323
  %325 = load i32, ptr %26, align 4, !tbaa !9
  %326 = add i32 %324, %325
  %327 = zext i32 %326 to i64
  %328 = getelementptr inbounds [4096 x float], ptr %27, i64 0, i64 %327
  %329 = load float, ptr %328, align 4, !tbaa !33
  %330 = load ptr, ptr %7, align 8, !tbaa !5
  %331 = load i32, ptr %26, align 4, !tbaa !9
  %332 = load i32, ptr %8, align 4, !tbaa !9
  %333 = mul i32 %331, %332
  %334 = load i32, ptr %24, align 4, !tbaa !9
  %335 = add i32 %333, %334
  %336 = load i32, ptr %25, align 4, !tbaa !9
  %337 = add i32 %335, %336
  %338 = zext i32 %337 to i64
  %339 = getelementptr inbounds float, ptr %330, i64 %338
  store float %329, ptr %339, align 4, !tbaa !33
  br label %340

340:                                              ; preds = %317
  %341 = load i32, ptr %26, align 4, !tbaa !9
  %342 = add i32 %341, 1
  store i32 %342, ptr %26, align 4, !tbaa !9
  br label %312, !llvm.loop !68

343:                                              ; preds = %312
  br label %344

344:                                              ; preds = %343
  %345 = load i32, ptr %25, align 4, !tbaa !9
  %346 = add i32 %345, 1
  store i32 %346, ptr %25, align 4, !tbaa !9
  br label %307, !llvm.loop !69

347:                                              ; preds = %307
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 16384, ptr %27) #4
  br label %348

348:                                              ; preds = %347
  %349 = load i32, ptr %24, align 4, !tbaa !9
  %350 = add i32 %349, 512
  store i32 %350, ptr %24, align 4, !tbaa !9
  br label %282, !llvm.loop !70

351:                                              ; preds = %282
  %352 = load i32, ptr %10, align 4, !tbaa !9
  %353 = getelementptr inbounds %"class.SoLoud::WavStreamInstance", ptr %29, i32 0, i32 2
  %354 = load i32, ptr %353, align 8, !tbaa !38
  %355 = add i32 %354, %352
  store i32 %355, ptr %353, align 8, !tbaa !38
  %356 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %356, ptr %5, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %359

357:                                              ; preds = %280, %34
  %358 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %358, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %359

359:                                              ; preds = %357, %351, %277, %184, %109, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %360 = load i32, ptr %5, align 4
  ret i32 %360
}

declare i64 @drflac_read_pcm_frames_f32(ptr noundef, i64 noundef, ptr noundef) #2

declare i64 @drmp3_read_pcm_frames_f32(ptr noundef, i64 noundef, ptr noundef) #2

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

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

declare i64 @drwav_read_pcm_frames_f32(ptr noundef, i64 noundef, ptr noundef) #2

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 = { "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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 512}
!12 = !{!"_ZTSN6SoLoud17WavStreamInstanceE", !13, i64 0, !6, i64 496, !10, i64 504, !6, i64 512, !7, i64 520, !10, i64 528, !10, i64 532, !6, i64 536}
!13 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !10, i64 8, !10, i64 12, !10, i64 16, !14, i64 20, !7, i64 24, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !10, i64 72, !14, i64 76, !14, i64 80, !15, i64 88, !15, i64 96, !16, i64 104, !16, i64 152, !16, i64 200, !16, i64 248, !16, i64 296, !10, i64 344, !7, i64 348, !10, i64 380, !10, i64 384, !7, i64 392, !7, i64 456, !10, i64 472, !10, i64 476, !10, i64 480, !15, i64 488}
!14 = !{!"float", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSN6SoLoud5FaderE", !14, i64 0, !14, i64 4, !14, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !14, i64 40, !10, i64 44}
!17 = !{!12, !6, i64 496}
!18 = !{!19, !10, i64 152}
!19 = !{!"_ZTSN6SoLoud9WavStreamE", !20, i64 0, !10, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !10, i64 184}
!20 = !{!"_ZTSN6SoLoud11AudioSourceE", !10, i64 8, !14, i64 12, !14, i64 16, !10, i64 20, !10, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !10, i64 40, !14, i64 44, !7, i64 48, !6, i64 112, !6, i64 120, !6, i64 128, !10, i64 136, !15, i64 144}
!21 = !{!7, !7, i64 0}
!22 = !{!13, !10, i64 72}
!23 = !{!24, !7, i64 52}
!24 = !{!"_ZTS6drflac", !6, i64 0, !6, i64 8, !25, i64 16, !10, i64 48, !7, i64 52, !7, i64 53, !26, i64 54, !27, i64 56, !28, i64 64, !10, i64 68, !29, i64 72, !27, i64 232, !27, i64 240, !31, i64 248, !6, i64 272, !6, i64 280, !6, i64 288, !10, i64 296, !10, i64 296, !10, i64 296, !32, i64 304, !7, i64 4480}
!25 = !{!"_ZTS27drflac_allocation_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!"short", !7, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTS16drflac_container", !7, i64 0}
!29 = !{!"_ZTS12drflac_frame", !30, i64 0, !10, i64 24, !7, i64 32}
!30 = !{!"_ZTS19drflac_frame_header", !27, i64 0, !10, i64 8, !10, i64 12, !26, i64 16, !7, i64 18, !7, i64 19, !7, i64 20}
!31 = !{!"_ZTS21drflac__memory_stream", !6, i64 0, !27, i64 8, !27, i64 16}
!32 = !{!"_ZTS9drflac_bs", !6, i64 0, !6, i64 8, !6, i64 16, !27, i64 24, !27, i64 32, !10, i64 40, !10, i64 44, !7, i64 48, !27, i64 4144, !26, i64 4152, !27, i64 4160, !10, i64 4168}
!33 = !{!14, !14, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}
!37 = distinct !{!37, !35}
!38 = !{!12, !10, i64 504}
!39 = !{!40, !10, i64 6688}
!40 = !{!"_ZTS5drmp3", !41, i64 0, !42, i64 6668, !10, i64 6688, !10, i64 6692, !6, i64 6696, !6, i64 6704, !6, i64 6712, !43, i64 6720, !10, i64 6752, !10, i64 6756, !10, i64 6760, !10, i64 6764, !7, i64 6768, !27, i64 15984, !27, i64 15992, !44, i64 16000, !6, i64 21192, !10, i64 21200, !27, i64 21208, !27, i64 21216, !6, i64 21224, !10, i64 21232, !48, i64 21240}
!41 = !{!"_ZTS8drmp3dec", !7, i64 0, !7, i64 2304, !10, i64 6144, !10, i64 6148, !7, i64 6152, !7, i64 6156}
!42 = !{!"_ZTS19drmp3dec_frame_info", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!43 = !{!"_ZTS26drmp3_allocation_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!44 = !{!"_ZTS9drmp3_src", !45, i64 0, !6, i64 24, !6, i64 32, !7, i64 40, !47, i64 1064, !7, i64 5176}
!45 = !{!"_ZTS16drmp3_src_config", !10, i64 0, !10, i64 4, !10, i64 8, !46, i64 12, !10, i64 16}
!46 = !{!"_ZTS19drmp3_src_algorithm", !7, i64 0}
!47 = !{!"_ZTS15drmp3_src_cache", !6, i64 0, !7, i64 8, !10, i64 4104, !10, i64 4108}
!48 = !{!"_ZTSN5drmp3Ut_E", !6, i64 0, !27, i64 8, !27, i64 16}
!49 = distinct !{!49, !35}
!50 = distinct !{!50, !35}
!51 = distinct !{!51, !35}
!52 = !{!12, !10, i64 532}
!53 = !{!12, !10, i64 528}
!54 = !{!12, !6, i64 536}
!55 = !{!19, !10, i64 184}
!56 = distinct !{!56, !35}
!57 = !{!58, !26, i64 112}
!58 = !{!"_ZTS5drwav", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !59, i64 32, !60, i64 64, !61, i64 68, !10, i64 108, !26, i64 112, !26, i64 114, !26, i64 116, !27, i64 120, !27, i64 128, !27, i64 136, !27, i64 144, !27, i64 152, !10, i64 160, !62, i64 164, !63, i64 224, !64, i64 248, !65, i64 288, !66, i64 296, !67, i64 348}
!59 = !{!"_ZTS26drwav_allocation_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!60 = !{!"_ZTS15drwav_container", !7, i64 0}
!61 = !{!"_ZTS9drwav_fmt", !26, i64 0, !26, i64 2, !10, i64 4, !10, i64 8, !26, i64 12, !26, i64 14, !26, i64 16, !26, i64 18, !10, i64 20, !7, i64 24}
!62 = !{!"_ZTS10drwav_smpl", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !7, i64 36}
!63 = !{!"_ZTS20drwav__memory_stream", !6, i64 0, !27, i64 8, !27, i64 16}
!64 = !{!"_ZTS26drwav__memory_stream_write", !6, i64 0, !6, i64 8, !27, i64 16, !27, i64 24, !27, i64 32}
!65 = !{!"_ZTSN5drwavUt_E", !27, i64 0}
!66 = !{!"_ZTSN5drwavUt0_E", !10, i64 0, !7, i64 4, !7, i64 8, !7, i64 16, !10, i64 32, !7, i64 36}
!67 = !{!"_ZTSN5drwavUt1_E", !10, i64 0, !7, i64 4, !7, i64 12, !7, i64 20, !10, i64 84}
!68 = distinct !{!68, !35}
!69 = distinct !{!69, !35}
!70 = distinct !{!70, !35}


; 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 uwtable
define dso_local noundef i32 @_ZN6SoLoud17WavStreamInstance8getAudioEPfjj(ptr noundef nonnull align 8 dereferenceable(544) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca [4096 x float], align 16
  %6 = alloca [4096 x float], align 16
  %7 = alloca [4096 x float], align 16
  %8 = getelementptr inbounds i8, ptr %0, i64 512
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %.loopexit, label %11

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %0, i64 496
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %13, i64 152
  %15 = load i32, ptr %14, align 8, !tbaa !16
  switch i32 %15, label %.loopexit [
    i32 2, label %.preheader115
    i32 3, label %.preheader117
    i32 1, label %137
    i32 0, label %.preheader119
  ]

.preheader119:                                    ; preds = %11
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader119
  %16 = getelementptr inbounds i8, ptr %0, i64 520
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  br label %.preheader118.lr.ph

.preheader117:                                    ; preds = %11
  %.not152 = icmp eq i32 %2, 0
  br i1 %.not152, label %._crit_edge137, label %.lr.ph136

.lr.ph136:                                        ; preds = %.preheader117
  %18 = getelementptr inbounds i8, ptr %0, i64 520
  %19 = getelementptr inbounds i8, ptr %0, i64 72
  br label %.preheader116.lr.ph

.preheader115:                                    ; preds = %11
  %.not155 = icmp eq i32 %2, 0
  br i1 %.not155, label %._crit_edge148, label %.lr.ph147

.lr.ph147:                                        ; preds = %.preheader115
  %20 = getelementptr inbounds i8, ptr %0, i64 520
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  br label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %._crit_edge143, %.lr.ph147
  %indvars.iv184 = phi i32 [ %2, %.lr.ph147 ], [ %indvars.iv.next185, %._crit_edge143 ]
  %.097146 = phi i32 [ 0, %.lr.ph147 ], [ %28, %._crit_edge143 ]
  %.0101144 = phi i32 [ 0, %.lr.ph147 ], [ %76, %._crit_edge143 ]
  %umin186 = call i32 @llvm.umin.i32(i32 %indvars.iv184, i32 512)
  %umax187 = call i32 @llvm.umax.i32(i32 %umin186, i32 1)
  call void @llvm.lifetime.start.p0(i64 16384, ptr nonnull %5) #5
  %22 = sub i32 %2, %.0101144
  %23 = call i32 @llvm.umin.i32(i32 %22, i32 512)
  %24 = load ptr, ptr %20, align 8, !tbaa !19
  %25 = zext nneg i32 %23 to i64
  %26 = call i64 @drflac_read_pcm_frames_f32(ptr noundef %24, i64 noundef %25, ptr noundef nonnull %5)
  %27 = trunc i64 %26 to i32
  %28 = add i32 %.097146, %27
  %29 = load i32, ptr %21, align 8, !tbaa !20
  %.not157 = icmp eq i32 %29, 0
  br i1 %.not157, label %._crit_edge143, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count182 = zext i32 %29 to i64
  %xtraiter207 = and i64 %wide.trip.count182, 1
  %30 = icmp eq i32 %29, 1
  %unroll_iter209 = and i64 %wide.trip.count182, 4294967294
  %lcmp.mod208.not = icmp eq i64 %xtraiter207, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge141.us
  %.0105142.us = phi i32 [ %75, %._crit_edge141.us ], [ 0, %.preheader.us.preheader ]
  %31 = add nuw nsw i32 %.0105142.us, %.0101144
  br i1 %30, label %._crit_edge141.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv179 = phi i64 [ %indvars.iv.next180.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter210 = phi i64 [ %niter210.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %32 = load ptr, ptr %20, align 8, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %32, i64 52
  %34 = load i8, ptr %33, align 4, !tbaa !21
  %35 = zext i8 %34 to i32
  %36 = mul i32 %.0105142.us, %35
  %37 = trunc nuw i64 %indvars.iv179 to i32
  %38 = add i32 %36, %37
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds [4096 x float], ptr %5, i64 0, i64 %39
  %41 = load float, ptr %40, align 4, !tbaa !31
  %42 = mul i32 %37, %2
  %43 = add i32 %31, %42
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds float, ptr %1, i64 %44
  store float %41, ptr %45, align 4, !tbaa !31
  %46 = load ptr, ptr %20, align 8, !tbaa !19
  %47 = getelementptr inbounds i8, ptr %46, i64 52
  %48 = load i8, ptr %47, align 4, !tbaa !21
  %49 = zext i8 %48 to i32
  %50 = mul i32 %.0105142.us, %49
  %51 = trunc i64 %indvars.iv179 to i32
  %52 = or disjoint i32 %51, 1
  %53 = add i32 %50, %52
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds [4096 x float], ptr %5, i64 0, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !31
  %57 = mul i32 %52, %2
  %58 = add i32 %31, %57
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds float, ptr %1, i64 %59
  store float %56, ptr %60, align 4, !tbaa !31
  %indvars.iv.next180.1 = add nuw nsw i64 %indvars.iv179, 2
  %niter210.next.1 = add i64 %niter210, 2
  %niter210.ncmp.1 = icmp eq i64 %niter210.next.1, %unroll_iter209
  br i1 %niter210.ncmp.1, label %._crit_edge141.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !32

._crit_edge141.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %indvars.iv179.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next180.1, %.preheader.us.new ]
  br i1 %lcmp.mod208.not, label %._crit_edge141.us, label %._crit_edge141.us.epilog-lcssa

._crit_edge141.us.epilog-lcssa:                   ; preds = %._crit_edge141.us.unr-lcssa
  %61 = load ptr, ptr %20, align 8, !tbaa !19
  %62 = getelementptr inbounds i8, ptr %61, i64 52
  %63 = load i8, ptr %62, align 4, !tbaa !21
  %64 = zext i8 %63 to i32
  %65 = mul i32 %.0105142.us, %64
  %66 = trunc nuw i64 %indvars.iv179.unr to i32
  %67 = add i32 %65, %66
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds [4096 x float], ptr %5, i64 0, i64 %68
  %70 = load float, ptr %69, align 4, !tbaa !31
  %71 = mul i32 %66, %2
  %72 = add i32 %31, %71
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds float, ptr %1, i64 %73
  store float %70, ptr %74, align 4, !tbaa !31
  br label %._crit_edge141.us

._crit_edge141.us:                                ; preds = %._crit_edge141.us.unr-lcssa, %._crit_edge141.us.epilog-lcssa
  %75 = add nuw nsw i32 %.0105142.us, 1
  %exitcond188.not = icmp eq i32 %75, %umax187
  br i1 %exitcond188.not, label %._crit_edge143, label %.preheader.us, !llvm.loop !34

._crit_edge143:                                   ; preds = %._crit_edge141.us, %.preheader.lr.ph
  call void @llvm.lifetime.end.p0(i64 16384, ptr nonnull %5) #5
  %76 = add i32 %.0101144, 512
  %77 = icmp ult i32 %76, %2
  %indvars.iv.next185 = add i32 %indvars.iv184, -512
  br i1 %77, label %.preheader.lr.ph, label %._crit_edge148, !llvm.loop !35

._crit_edge148:                                   ; preds = %._crit_edge143, %.preheader115
  %.097.lcssa = phi i32 [ 0, %.preheader115 ], [ %28, %._crit_edge143 ]
  %78 = getelementptr inbounds i8, ptr %0, i64 504
  %79 = load i32, ptr %78, align 8, !tbaa !36
  %80 = add i32 %79, %.097.lcssa
  store i32 %80, ptr %78, align 8, !tbaa !36
  br label %.loopexit

.preheader116.lr.ph:                              ; preds = %._crit_edge132, %.lr.ph136
  %indvars.iv174 = phi i32 [ %2, %.lr.ph136 ], [ %indvars.iv.next175, %._crit_edge132 ]
  %.198135 = phi i32 [ 0, %.lr.ph136 ], [ %87, %._crit_edge132 ]
  %.0104133 = phi i32 [ 0, %.lr.ph136 ], [ %132, %._crit_edge132 ]
  %umin176 = call i32 @llvm.umin.i32(i32 %indvars.iv174, i32 512)
  %umax177 = call i32 @llvm.umax.i32(i32 %umin176, i32 1)
  call void @llvm.lifetime.start.p0(i64 16384, ptr nonnull %6) #5
  %81 = sub i32 %2, %.0104133
  %82 = call i32 @llvm.umin.i32(i32 %81, i32 512)
  %83 = load ptr, ptr %18, align 8, !tbaa !19
  %84 = zext nneg i32 %82 to i64
  %85 = call i64 @drmp3_read_pcm_frames_f32(ptr noundef %83, i64 noundef %84, ptr noundef nonnull %6)
  %86 = trunc i64 %85 to i32
  %87 = add i32 %.198135, %86
  %88 = load i32, ptr %19, align 8, !tbaa !20
  %.not154 = icmp eq i32 %88, 0
  br i1 %.not154, label %._crit_edge132, label %.preheader116.us.preheader

.preheader116.us.preheader:                       ; preds = %.preheader116.lr.ph
  %wide.trip.count172 = zext i32 %88 to i64
  %xtraiter202 = and i64 %wide.trip.count172, 1
  %89 = icmp eq i32 %88, 1
  %unroll_iter204 = and i64 %wide.trip.count172, 4294967294
  %lcmp.mod203.not = icmp eq i64 %xtraiter202, 0
  br label %.preheader116.us

.preheader116.us:                                 ; preds = %.preheader116.us.preheader, %._crit_edge130.us
  %.0103131.us = phi i32 [ %131, %._crit_edge130.us ], [ 0, %.preheader116.us.preheader ]
  %90 = add nuw nsw i32 %.0103131.us, %.0104133
  br i1 %89, label %._crit_edge130.us.unr-lcssa, label %.preheader116.us.new

.preheader116.us.new:                             ; preds = %.preheader116.us, %.preheader116.us.new
  %indvars.iv169 = phi i64 [ %indvars.iv.next170.1, %.preheader116.us.new ], [ 0, %.preheader116.us ]
  %niter205 = phi i64 [ %niter205.next.1, %.preheader116.us.new ], [ 0, %.preheader116.us ]
  %91 = load ptr, ptr %18, align 8, !tbaa !19
  %92 = getelementptr inbounds i8, ptr %91, i64 6688
  %93 = load i32, ptr %92, align 8, !tbaa !37
  %94 = mul i32 %93, %.0103131.us
  %95 = trunc nuw i64 %indvars.iv169 to i32
  %96 = add i32 %94, %95
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds [4096 x float], ptr %6, i64 0, i64 %97
  %99 = load float, ptr %98, align 4, !tbaa !31
  %100 = mul i32 %95, %2
  %101 = add i32 %90, %100
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds float, ptr %1, i64 %102
  store float %99, ptr %103, align 4, !tbaa !31
  %104 = load ptr, ptr %18, align 8, !tbaa !19
  %105 = getelementptr inbounds i8, ptr %104, i64 6688
  %106 = load i32, ptr %105, align 8, !tbaa !37
  %107 = mul i32 %106, %.0103131.us
  %108 = trunc i64 %indvars.iv169 to i32
  %109 = or disjoint i32 %108, 1
  %110 = add i32 %107, %109
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds [4096 x float], ptr %6, i64 0, i64 %111
  %113 = load float, ptr %112, align 4, !tbaa !31
  %114 = mul i32 %109, %2
  %115 = add i32 %90, %114
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds float, ptr %1, i64 %116
  store float %113, ptr %117, align 4, !tbaa !31
  %indvars.iv.next170.1 = add nuw nsw i64 %indvars.iv169, 2
  %niter205.next.1 = add i64 %niter205, 2
  %niter205.ncmp.1 = icmp eq i64 %niter205.next.1, %unroll_iter204
  br i1 %niter205.ncmp.1, label %._crit_edge130.us.unr-lcssa, label %.preheader116.us.new, !llvm.loop !47

._crit_edge130.us.unr-lcssa:                      ; preds = %.preheader116.us.new, %.preheader116.us
  %indvars.iv169.unr = phi i64 [ 0, %.preheader116.us ], [ %indvars.iv.next170.1, %.preheader116.us.new ]
  br i1 %lcmp.mod203.not, label %._crit_edge130.us, label %._crit_edge130.us.epilog-lcssa

._crit_edge130.us.epilog-lcssa:                   ; preds = %._crit_edge130.us.unr-lcssa
  %118 = load ptr, ptr %18, align 8, !tbaa !19
  %119 = getelementptr inbounds i8, ptr %118, i64 6688
  %120 = load i32, ptr %119, align 8, !tbaa !37
  %121 = mul i32 %120, %.0103131.us
  %122 = trunc nuw i64 %indvars.iv169.unr to i32
  %123 = add i32 %121, %122
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds [4096 x float], ptr %6, i64 0, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !31
  %127 = mul i32 %122, %2
  %128 = add i32 %90, %127
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds float, ptr %1, i64 %129
  store float %126, ptr %130, align 4, !tbaa !31
  br label %._crit_edge130.us

._crit_edge130.us:                                ; preds = %._crit_edge130.us.unr-lcssa, %._crit_edge130.us.epilog-lcssa
  %131 = add nuw nsw i32 %.0103131.us, 1
  %exitcond178.not = icmp eq i32 %131, %umax177
  br i1 %exitcond178.not, label %._crit_edge132, label %.preheader116.us, !llvm.loop !48

._crit_edge132:                                   ; preds = %._crit_edge130.us, %.preheader116.lr.ph
  call void @llvm.lifetime.end.p0(i64 16384, ptr nonnull %6) #5
  %132 = add i32 %.0104133, 512
  %133 = icmp ult i32 %132, %2
  %indvars.iv.next175 = add i32 %indvars.iv174, -512
  br i1 %133, label %.preheader116.lr.ph, label %._crit_edge137, !llvm.loop !49

._crit_edge137:                                   ; preds = %._crit_edge132, %.preheader117
  %.198.lcssa = phi i32 [ 0, %.preheader117 ], [ %87, %._crit_edge132 ]
  %134 = getelementptr inbounds i8, ptr %0, i64 504
  %135 = load i32, ptr %134, align 8, !tbaa !36
  %136 = add i32 %135, %.198.lcssa
  store i32 %136, ptr %134, align 8, !tbaa !36
  br label %.loopexit

137:                                              ; preds = %11
  %138 = getelementptr inbounds i8, ptr %0, i64 532
  %139 = load i32, ptr %138, align 4, !tbaa !50
  %140 = getelementptr inbounds i8, ptr %0, i64 528
  %141 = load i32, ptr %140, align 8, !tbaa !51
  %142 = icmp ult i32 %139, %141
  br i1 %142, label %143, label %154

143:                                              ; preds = %137
  %144 = getelementptr inbounds i8, ptr %0, i64 536
  %145 = load ptr, ptr %144, align 8, !tbaa !52
  %146 = getelementptr inbounds i8, ptr %0, i64 72
  %147 = load i32, ptr %146, align 8, !tbaa !20
  %148 = tail call noundef i32 @_ZN6SoLoudL10getOggDataEPPfS0_iiiii(ptr noundef %145, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %141, i32 noundef %139, i32 noundef %147)
  %149 = getelementptr inbounds i8, ptr %0, i64 504
  %150 = load i32, ptr %149, align 8, !tbaa !36
  %151 = add i32 %150, %148
  store i32 %151, ptr %149, align 8, !tbaa !36
  %152 = load i32, ptr %138, align 4, !tbaa !50
  %153 = add i32 %152, %148
  store i32 %153, ptr %138, align 4, !tbaa !50
  br label %154

154:                                              ; preds = %143, %137
  %.299 = phi i32 [ %148, %143 ], [ 0, %137 ]
  %155 = getelementptr inbounds i8, ptr %0, i64 520
  %156 = getelementptr inbounds i8, ptr %0, i64 536
  %157 = getelementptr inbounds i8, ptr %0, i64 72
  %158 = getelementptr inbounds i8, ptr %0, i64 504
  br label %159

159:                                              ; preds = %161, %154
  %.3 = phi i32 [ %.299, %154 ], [ %172, %161 ]
  %160 = icmp ult i32 %.3, %2
  br i1 %160, label %161, label %.loopexit

161:                                              ; preds = %159
  %162 = load ptr, ptr %155, align 8, !tbaa !19
  %163 = tail call i32 @stb_vorbis_get_frame_float(ptr noundef %162, ptr noundef null, ptr noundef nonnull %156)
  store i32 %163, ptr %140, align 8, !tbaa !51
  store i32 0, ptr %138, align 4, !tbaa !50
  %164 = load ptr, ptr %156, align 8, !tbaa !52
  %165 = zext i32 %.3 to i64
  %166 = getelementptr inbounds float, ptr %1, i64 %165
  %167 = sub i32 %2, %.3
  %168 = load i32, ptr %157, align 8, !tbaa !20
  %169 = tail call noundef i32 @_ZN6SoLoudL10getOggDataEPPfS0_iiiii(ptr noundef %164, ptr noundef %166, i32 noundef %167, i32 noundef %3, i32 noundef %163, i32 noundef 0, i32 noundef %168)
  %170 = load i32, ptr %158, align 8, !tbaa !36
  %171 = add i32 %170, %169
  store i32 %171, ptr %158, align 8, !tbaa !36
  %172 = add i32 %169, %.3
  %173 = load i32, ptr %138, align 4, !tbaa !50
  %174 = add i32 %173, %169
  store i32 %174, ptr %138, align 4, !tbaa !50
  %175 = load ptr, ptr %12, align 8, !tbaa !15
  %176 = getelementptr inbounds i8, ptr %175, i64 184
  %177 = load i32, ptr %176, align 8, !tbaa !53
  %178 = icmp ult i32 %171, %177
  %179 = icmp ne i32 %169, 0
  %or.cond.not = and i1 %179, %178
  br i1 %or.cond.not, label %159, label %.thread

.thread:                                          ; preds = %161
  %180 = add i32 %171, %172
  store i32 %180, ptr %158, align 8, !tbaa !36
  br label %.loopexit

.preheader118.lr.ph:                              ; preds = %._crit_edge124, %.lr.ph
  %indvars.iv166 = phi i32 [ %2, %.lr.ph ], [ %indvars.iv.next167, %._crit_edge124 ]
  %.096126 = phi i32 [ 0, %.lr.ph ], [ %235, %._crit_edge124 ]
  %.4125 = phi i32 [ 0, %.lr.ph ], [ %187, %._crit_edge124 ]
  %umin = call i32 @llvm.umin.i32(i32 %indvars.iv166, i32 512)
  %umax = call i32 @llvm.umax.i32(i32 %umin, i32 1)
  call void @llvm.lifetime.start.p0(i64 16384, ptr nonnull %7) #5
  %181 = sub i32 %2, %.096126
  %182 = call i32 @llvm.umin.i32(i32 %181, i32 512)
  %183 = load ptr, ptr %16, align 8, !tbaa !19
  %184 = zext nneg i32 %182 to i64
  %185 = call i64 @drwav_read_pcm_frames_f32(ptr noundef %183, i64 noundef %184, ptr noundef nonnull %7)
  %186 = trunc i64 %185 to i32
  %187 = add i32 %.4125, %186
  %188 = load i32, ptr %17, align 8, !tbaa !20
  %.not151 = icmp eq i32 %188, 0
  br i1 %.not151, label %._crit_edge124, label %.preheader118.us.preheader

.preheader118.us.preheader:                       ; preds = %.preheader118.lr.ph
  %wide.trip.count = zext i32 %188 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %189 = icmp eq i32 %188, 1
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader118.us

.preheader118.us:                                 ; preds = %.preheader118.us.preheader, %._crit_edge.us
  %.095123.us = phi i32 [ %234, %._crit_edge.us ], [ 0, %.preheader118.us.preheader ]
  %190 = add nuw nsw i32 %.095123.us, %.096126
  br i1 %189, label %._crit_edge.us.unr-lcssa, label %.preheader118.us.new

.preheader118.us.new:                             ; preds = %.preheader118.us, %.preheader118.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.preheader118.us.new ], [ 0, %.preheader118.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader118.us.new ], [ 0, %.preheader118.us ]
  %191 = load ptr, ptr %16, align 8, !tbaa !19
  %192 = getelementptr inbounds i8, ptr %191, i64 112
  %193 = load i16, ptr %192, align 8, !tbaa !54
  %194 = zext i16 %193 to i32
  %195 = mul i32 %.095123.us, %194
  %196 = trunc nuw i64 %indvars.iv to i32
  %197 = add i32 %195, %196
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds [4096 x float], ptr %7, i64 0, i64 %198
  %200 = load float, ptr %199, align 4, !tbaa !31
  %201 = mul i32 %196, %2
  %202 = add i32 %190, %201
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds float, ptr %1, i64 %203
  store float %200, ptr %204, align 4, !tbaa !31
  %205 = load ptr, ptr %16, align 8, !tbaa !19
  %206 = getelementptr inbounds i8, ptr %205, i64 112
  %207 = load i16, ptr %206, align 8, !tbaa !54
  %208 = zext i16 %207 to i32
  %209 = mul i32 %.095123.us, %208
  %210 = trunc i64 %indvars.iv to i32
  %211 = or disjoint i32 %210, 1
  %212 = add i32 %209, %211
  %213 = zext i32 %212 to i64
  %214 = getelementptr inbounds [4096 x float], ptr %7, i64 0, i64 %213
  %215 = load float, ptr %214, align 4, !tbaa !31
  %216 = mul i32 %211, %2
  %217 = add i32 %190, %216
  %218 = zext i32 %217 to i64
  %219 = getelementptr inbounds float, ptr %1, i64 %218
  store float %215, ptr %219, align 4, !tbaa !31
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader118.us.new, !llvm.loop !65

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader118.us.new, %.preheader118.us
  %indvars.iv.unr = phi i64 [ 0, %.preheader118.us ], [ %indvars.iv.next.1, %.preheader118.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %220 = load ptr, ptr %16, align 8, !tbaa !19
  %221 = getelementptr inbounds i8, ptr %220, i64 112
  %222 = load i16, ptr %221, align 8, !tbaa !54
  %223 = zext i16 %222 to i32
  %224 = mul i32 %.095123.us, %223
  %225 = trunc nuw i64 %indvars.iv.unr to i32
  %226 = add i32 %224, %225
  %227 = zext i32 %226 to i64
  %228 = getelementptr inbounds [4096 x float], ptr %7, i64 0, i64 %227
  %229 = load float, ptr %228, align 4, !tbaa !31
  %230 = mul i32 %225, %2
  %231 = add i32 %190, %230
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds float, ptr %1, i64 %232
  store float %229, ptr %233, align 4, !tbaa !31
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %234 = add nuw nsw i32 %.095123.us, 1
  %exitcond168.not = icmp eq i32 %234, %umax
  br i1 %exitcond168.not, label %._crit_edge124, label %.preheader118.us, !llvm.loop !66

._crit_edge124:                                   ; preds = %._crit_edge.us, %.preheader118.lr.ph
  call void @llvm.lifetime.end.p0(i64 16384, ptr nonnull %7) #5
  %235 = add i32 %.096126, 512
  %236 = icmp ult i32 %235, %2
  %indvars.iv.next167 = add i32 %indvars.iv166, -512
  br i1 %236, label %.preheader118.lr.ph, label %._crit_edge, !llvm.loop !67

._crit_edge:                                      ; preds = %._crit_edge124, %.preheader119
  %.4.lcssa = phi i32 [ 0, %.preheader119 ], [ %187, %._crit_edge124 ]
  %237 = getelementptr inbounds i8, ptr %0, i64 504
  %238 = load i32, ptr %237, align 8, !tbaa !36
  %239 = add i32 %238, %.4.lcssa
  store i32 %239, ptr %237, align 8, !tbaa !36
  br label %.loopexit

.loopexit:                                        ; preds = %159, %.thread, %11, %4, %._crit_edge, %._crit_edge137, %._crit_edge148
  %.2 = phi i32 [ %.4.lcssa, %._crit_edge ], [ %.198.lcssa, %._crit_edge137 ], [ %.097.lcssa, %._crit_edge148 ], [ 0, %4 ], [ %2, %11 ], [ %172, %.thread ], [ %2, %159 ]
  ret i32 %.2
}

declare i64 @drflac_read_pcm_frames_f32(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare i64 @drmp3_read_pcm_frames_f32(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

declare i64 @drwav_read_pcm_frames_f32(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !14, i64 512}
!6 = !{!"_ZTSN6SoLoud17WavStreamInstanceE", !7, i64 0, !14, i64 496, !8, i64 504, !14, i64 512, !9, i64 520, !8, i64 528, !8, i64 532, !14, i64 536}
!7 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !8, i64 8, !8, i64 12, !8, i64 16, !11, i64 20, !9, i64 24, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !8, i64 72, !11, i64 76, !11, i64 80, !12, i64 88, !12, i64 96, !13, i64 104, !13, i64 152, !13, i64 200, !13, i64 248, !13, i64 296, !8, i64 344, !9, i64 348, !8, i64 380, !8, i64 384, !9, i64 392, !9, i64 456, !8, i64 472, !8, i64 476, !8, i64 480, !12, i64 488}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"float", !9, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = !{!"_ZTSN6SoLoud5FaderE", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !8, i64 44}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!6, !14, i64 496}
!16 = !{!17, !8, i64 152}
!17 = !{!"_ZTSN6SoLoud9WavStreamE", !18, i64 0, !8, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !8, i64 184}
!18 = !{!"_ZTSN6SoLoud11AudioSourceE", !8, i64 8, !11, i64 12, !11, i64 16, !8, i64 20, !8, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !8, i64 40, !11, i64 44, !9, i64 48, !14, i64 112, !14, i64 120, !14, i64 128, !8, i64 136, !12, i64 144}
!19 = !{!9, !9, i64 0}
!20 = !{!7, !8, i64 72}
!21 = !{!22, !9, i64 52}
!22 = !{!"_ZTS6drflac", !14, i64 0, !14, i64 8, !23, i64 16, !8, i64 48, !9, i64 52, !9, i64 53, !24, i64 54, !25, i64 56, !26, i64 64, !8, i64 68, !27, i64 72, !25, i64 232, !25, i64 240, !29, i64 248, !14, i64 272, !14, i64 280, !14, i64 288, !8, i64 296, !8, i64 296, !8, i64 296, !30, i64 304, !9, i64 4480}
!23 = !{!"_ZTS27drflac_allocation_callbacks", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!24 = !{!"short", !9, i64 0}
!25 = !{!"long", !9, i64 0}
!26 = !{!"_ZTS16drflac_container", !9, i64 0}
!27 = !{!"_ZTS12drflac_frame", !28, i64 0, !8, i64 24, !9, i64 32}
!28 = !{!"_ZTS19drflac_frame_header", !25, i64 0, !8, i64 8, !8, i64 12, !24, i64 16, !9, i64 18, !9, i64 19, !9, i64 20}
!29 = !{!"_ZTS21drflac__memory_stream", !14, i64 0, !25, i64 8, !25, i64 16}
!30 = !{!"_ZTS9drflac_bs", !14, i64 0, !14, i64 8, !14, i64 16, !25, i64 24, !25, i64 32, !8, i64 40, !8, i64 44, !9, i64 48, !25, i64 4144, !24, i64 4152, !25, i64 4160, !8, i64 4168}
!31 = !{!11, !11, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = distinct !{!35, !33}
!36 = !{!6, !8, i64 504}
!37 = !{!38, !8, i64 6688}
!38 = !{!"_ZTS5drmp3", !39, i64 0, !40, i64 6668, !8, i64 6688, !8, i64 6692, !14, i64 6696, !14, i64 6704, !14, i64 6712, !41, i64 6720, !8, i64 6752, !8, i64 6756, !8, i64 6760, !8, i64 6764, !9, i64 6768, !25, i64 15984, !25, i64 15992, !42, i64 16000, !14, i64 21192, !8, i64 21200, !25, i64 21208, !25, i64 21216, !14, i64 21224, !8, i64 21232, !46, i64 21240}
!39 = !{!"_ZTS8drmp3dec", !9, i64 0, !9, i64 2304, !8, i64 6144, !8, i64 6148, !9, i64 6152, !9, i64 6156}
!40 = !{!"_ZTS19drmp3dec_frame_info", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!41 = !{!"_ZTS26drmp3_allocation_callbacks", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!42 = !{!"_ZTS9drmp3_src", !43, i64 0, !14, i64 24, !14, i64 32, !9, i64 40, !45, i64 1064, !9, i64 5176}
!43 = !{!"_ZTS16drmp3_src_config", !8, i64 0, !8, i64 4, !8, i64 8, !44, i64 12, !8, i64 16}
!44 = !{!"_ZTS19drmp3_src_algorithm", !9, i64 0}
!45 = !{!"_ZTS15drmp3_src_cache", !14, i64 0, !9, i64 8, !8, i64 4104, !8, i64 4108}
!46 = !{!"_ZTSN5drmp3Ut_E", !14, i64 0, !25, i64 8, !25, i64 16}
!47 = distinct !{!47, !33}
!48 = distinct !{!48, !33}
!49 = distinct !{!49, !33}
!50 = !{!6, !8, i64 532}
!51 = !{!6, !8, i64 528}
!52 = !{!6, !14, i64 536}
!53 = !{!17, !8, i64 184}
!54 = !{!55, !24, i64 112}
!55 = !{!"_ZTS5drwav", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !56, i64 32, !57, i64 64, !58, i64 68, !8, i64 108, !24, i64 112, !24, i64 114, !24, i64 116, !25, i64 120, !25, i64 128, !25, i64 136, !25, i64 144, !25, i64 152, !8, i64 160, !59, i64 164, !60, i64 224, !61, i64 248, !62, i64 288, !63, i64 296, !64, i64 348}
!56 = !{!"_ZTS26drwav_allocation_callbacks", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!57 = !{!"_ZTS15drwav_container", !9, i64 0}
!58 = !{!"_ZTS9drwav_fmt", !24, i64 0, !24, i64 2, !8, i64 4, !8, i64 8, !24, i64 12, !24, i64 14, !24, i64 16, !24, i64 18, !8, i64 20, !9, i64 24}
!59 = !{!"_ZTS10drwav_smpl", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !9, i64 36}
!60 = !{!"_ZTS20drwav__memory_stream", !14, i64 0, !25, i64 8, !25, i64 16}
!61 = !{!"_ZTS26drwav__memory_stream_write", !14, i64 0, !14, i64 8, !25, i64 16, !25, i64 24, !25, i64 32}
!62 = !{!"_ZTSN5drwavUt_E", !25, i64 0}
!63 = !{!"_ZTSN5drwavUt0_E", !8, i64 0, !9, i64 4, !9, i64 8, !9, i64 16, !8, i64 32, !9, i64 36}
!64 = !{!"_ZTSN5drwavUt1_E", !8, i64 0, !9, i64 4, !9, i64 12, !9, i64 20, !8, i64 84}
!65 = distinct !{!65, !33}
!66 = distinct !{!66, !33}
!67 = distinct !{!67, !33}


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