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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.drmp3__seeking_mp3_frame_info = type { i64, i64 }
%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, ptr, i32, i64, i64, i64, ptr, i8, %struct.anon.59 }
%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.anon.59 = type { ptr, i64, i64 }
%struct.drmp3_seek_point = type { i64, i64, i16, i16 }

@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [37 x i8], align 1
@__PRETTY_FUNCTION__.drmp3_calculate_seek_points = external hidden unnamed_addr constant [86 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

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

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

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

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

25:                                               ; preds = %3
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = icmp eq ptr %26, null
  br i1 %27, label %31, label %28

28:                                               ; preds = %25
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %28, %25, %3
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %262

32:                                               ; preds = %28
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load i32, ptr %33, align 4, !tbaa !9
  store i32 %34, ptr %8, align 4, !tbaa !9
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %32
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %262

38:                                               ; preds = %32
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.drmp3, ptr %39, i32 0, i32 13
  %41 = load i64, ptr %40, align 8, !tbaa !11
  store i64 %41, ptr %9, align 8, !tbaa !19
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = call i32 @drmp3_get_mp3_and_pcm_frame_count(ptr noundef %42, ptr noundef %10, ptr noundef %11)
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %38
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %262

46:                                               ; preds = %38
  %47 = load i64, ptr %10, align 8, !tbaa !19
  %48 = icmp ult i64 %47, 3
  br i1 %48, label %49, label %62

49:                                               ; preds = %46
  store i32 1, ptr %8, align 4, !tbaa !9
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.drmp3_seek_point, ptr %50, i64 0
  %52 = getelementptr inbounds %struct.drmp3_seek_point, ptr %51, i32 0, i32 0
  store i64 0, ptr %52, align 8, !tbaa !20
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.drmp3_seek_point, ptr %53, i64 0
  %55 = getelementptr inbounds %struct.drmp3_seek_point, ptr %54, i32 0, i32 1
  store i64 0, ptr %55, align 8, !tbaa !23
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.drmp3_seek_point, ptr %56, i64 0
  %58 = getelementptr inbounds %struct.drmp3_seek_point, ptr %57, i32 0, i32 2
  store i16 0, ptr %58, align 8, !tbaa !24
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.drmp3_seek_point, ptr %59, i64 0
  %61 = getelementptr inbounds %struct.drmp3_seek_point, ptr %60, i32 0, i32 3
  store i16 0, ptr %61, align 2, !tbaa !25
  br label %259

62:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store float 0.000000e+00, ptr %16, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = load i64, ptr %10, align 8, !tbaa !19
  %66 = sub i64 %65, 1
  %67 = icmp ugt i64 %64, %66
  br i1 %67, label %68, label %72

68:                                               ; preds = %62
  %69 = load i64, ptr %10, align 8, !tbaa !19
  %70 = trunc i64 %69 to i32
  %71 = sub i32 %70, 1
  store i32 %71, ptr %8, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %68, %62
  %73 = load i64, ptr %11, align 8, !tbaa !19
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = add i32 %74, 1
  %76 = zext i32 %75 to i64
  %77 = udiv i64 %73, %76
  store i64 %77, ptr %13, align 8, !tbaa !19
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = call noundef i32 @_ZL29drmp3_seek_to_start_of_streamP5drmp3(ptr noundef %78)
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %82, label %81

81:                                               ; preds = %72
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %256

82:                                               ; preds = %72
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %125, %82
  %84 = load i32, ptr %18, align 4, !tbaa !9
  %85 = icmp ult i32 %84, 3
  br i1 %85, label %86, label %128

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.drmp3, ptr %87, i32 0, i32 14
  %89 = load i64, ptr %88, align 8, !tbaa !28
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.drmp3, ptr %90, i32 0, i32 17
  %92 = load i64, ptr %91, align 8, !tbaa !29
  %93 = icmp uge i64 %89, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %86
  br label %97

95:                                               ; preds = %86
  call void @__assert_fail(ptr noundef @.str.172, ptr noundef @.str.6, i32 noundef 90173, ptr noundef @__PRETTY_FUNCTION__.drmp3_calculate_seek_points) #6
  unreachable

96:                                               ; No predecessors!
  br label %97

97:                                               ; preds = %96, %94
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.drmp3, ptr %98, i32 0, i32 14
  %100 = load i64, ptr %99, align 8, !tbaa !28
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.drmp3, ptr %101, i32 0, i32 17
  %103 = load i64, ptr %102, align 8, !tbaa !29
  %104 = sub i64 %100, %103
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds [3 x %struct.drmp3__seeking_mp3_frame_info], ptr %14, i64 0, i64 %106
  %108 = getelementptr inbounds %struct.drmp3__seeking_mp3_frame_info, ptr %107, i32 0, i32 0
  store i64 %104, ptr %108, align 16, !tbaa !30
  %109 = load i64, ptr %15, align 8, !tbaa !19
  %110 = load i32, ptr %18, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds [3 x %struct.drmp3__seeking_mp3_frame_info], ptr %14, i64 0, i64 %111
  %113 = getelementptr inbounds %struct.drmp3__seeking_mp3_frame_info, ptr %112, i32 0, i32 1
  store i64 %109, ptr %113, align 8, !tbaa !32
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = call noundef i32 @_ZL26drmp3_decode_next_frame_exP5drmp3Ps(ptr noundef %114, ptr noundef null)
  store i32 %115, ptr %20, align 4, !tbaa !9
  %116 = load i32, ptr %20, align 4, !tbaa !9
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %97
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %122

119:                                              ; preds = %97
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = load i32, ptr %20, align 4, !tbaa !9
  call void @_ZL41drmp3__accumulate_running_pcm_frame_countP5drmp3jPyPf(ptr noundef %120, i32 noundef %121, ptr noundef %15, ptr noundef %16)
  store i32 0, ptr %12, align 4
  br label %122

122:                                              ; preds = %119, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  %123 = load i32, ptr %12, align 4
  switch i32 %123, label %256 [
    i32 0, label %124
  ]

124:                                              ; preds = %122
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %18, align 4, !tbaa !9
  %127 = add i32 %126, 1
  store i32 %127, ptr %18, align 4, !tbaa !9
  br label %83, !llvm.loop !33

128:                                              ; preds = %83
  store i64 0, ptr %17, align 8, !tbaa !19
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %241, %128
  %130 = load i32, ptr %19, align 4, !tbaa !9
  %131 = load i32, ptr %8, align 4, !tbaa !9
  %132 = icmp ult i32 %130, %131
  br i1 %132, label %133, label %244

133:                                              ; preds = %129
  %134 = load i64, ptr %13, align 8, !tbaa !19
  %135 = load i64, ptr %17, align 8, !tbaa !19
  %136 = add i64 %135, %134
  store i64 %136, ptr %17, align 8, !tbaa !19
  br label %137

137:                                              ; preds = %239, %133
  %138 = load i64, ptr %17, align 8, !tbaa !19
  %139 = load i64, ptr %15, align 8, !tbaa !19
  %140 = icmp ult i64 %138, %139
  br i1 %140, label %141, label %172

141:                                              ; preds = %137
  %142 = getelementptr inbounds [3 x %struct.drmp3__seeking_mp3_frame_info], ptr %14, i64 0, i64 0
  %143 = getelementptr inbounds %struct.drmp3__seeking_mp3_frame_info, ptr %142, i32 0, i32 0
  %144 = load i64, ptr %143, align 16, !tbaa !30
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = load i32, ptr %19, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds %struct.drmp3_seek_point, ptr %145, i64 %147
  %149 = getelementptr inbounds %struct.drmp3_seek_point, ptr %148, i32 0, i32 0
  store i64 %144, ptr %149, align 8, !tbaa !20
  %150 = load i64, ptr %17, align 8, !tbaa !19
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds %struct.drmp3_seek_point, ptr %151, i64 %153
  %155 = getelementptr inbounds %struct.drmp3_seek_point, ptr %154, i32 0, i32 1
  store i64 %150, ptr %155, align 8, !tbaa !23
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = load i32, ptr %19, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds %struct.drmp3_seek_point, ptr %156, i64 %158
  %160 = getelementptr inbounds %struct.drmp3_seek_point, ptr %159, i32 0, i32 2
  store i16 2, ptr %160, align 8, !tbaa !24
  %161 = load i64, ptr %17, align 8, !tbaa !19
  %162 = getelementptr inbounds [3 x %struct.drmp3__seeking_mp3_frame_info], ptr %14, i64 0, i64 1
  %163 = getelementptr inbounds %struct.drmp3__seeking_mp3_frame_info, ptr %162, i32 0, i32 1
  %164 = load i64, ptr %163, align 8, !tbaa !32
  %165 = sub i64 %161, %164
  %166 = trunc i64 %165 to i16
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = load i32, ptr %19, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds %struct.drmp3_seek_point, ptr %167, i64 %169
  %171 = getelementptr inbounds %struct.drmp3_seek_point, ptr %170, i32 0, i32 3
  store i16 %166, ptr %171, align 2, !tbaa !25
  br label %240

172:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i64 0, ptr %21, align 8, !tbaa !35
  br label %173

173:                                              ; preds = %182, %172
  %174 = load i64, ptr %21, align 8, !tbaa !35
  %175 = icmp ult i64 %174, 2
  br i1 %175, label %176, label %185

176:                                              ; preds = %173
  %177 = load i64, ptr %21, align 8, !tbaa !35
  %178 = add i64 %177, 1
  %179 = getelementptr inbounds [3 x %struct.drmp3__seeking_mp3_frame_info], ptr %14, i64 0, i64 %178
  %180 = load i64, ptr %21, align 8, !tbaa !35
  %181 = getelementptr inbounds [3 x %struct.drmp3__seeking_mp3_frame_info], ptr %14, i64 0, i64 %180
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %181, ptr align 16 %179, i64 16, i1 false), !tbaa.struct !36
  br label %182

182:                                              ; preds = %176
  %183 = load i64, ptr %21, align 8, !tbaa !35
  %184 = add i64 %183, 1
  store i64 %184, ptr %21, align 8, !tbaa !35
  br label %173, !llvm.loop !37

185:                                              ; preds = %173
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.drmp3, ptr %186, i32 0, i32 14
  %188 = load i64, ptr %187, align 8, !tbaa !28
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.drmp3, ptr %189, i32 0, i32 17
  %191 = load i64, ptr %190, align 8, !tbaa !29
  %192 = sub i64 %188, %191
  %193 = getelementptr inbounds [3 x %struct.drmp3__seeking_mp3_frame_info], ptr %14, i64 0, i64 2
  %194 = getelementptr inbounds %struct.drmp3__seeking_mp3_frame_info, ptr %193, i32 0, i32 0
  store i64 %192, ptr %194, align 16, !tbaa !30
  %195 = load i64, ptr %15, align 8, !tbaa !19
  %196 = getelementptr inbounds [3 x %struct.drmp3__seeking_mp3_frame_info], ptr %14, i64 0, i64 2
  %197 = getelementptr inbounds %struct.drmp3__seeking_mp3_frame_info, ptr %196, i32 0, i32 1
  store i64 %195, ptr %197, align 8, !tbaa !32
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = call noundef i32 @_ZL26drmp3_decode_next_frame_exP5drmp3Ps(ptr noundef %198, ptr noundef null)
  store i32 %199, ptr %22, align 4, !tbaa !9
  %200 = load i32, ptr %22, align 4, !tbaa !9
  %201 = icmp eq i32 %200, 0
  br i1 %201, label %202, label %233

202:                                              ; preds = %185
  %203 = getelementptr inbounds [3 x %struct.drmp3__seeking_mp3_frame_info], ptr %14, i64 0, i64 0
  %204 = getelementptr inbounds %struct.drmp3__seeking_mp3_frame_info, ptr %203, i32 0, i32 0
  %205 = load i64, ptr %204, align 16, !tbaa !30
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = load i32, ptr %19, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds %struct.drmp3_seek_point, ptr %206, i64 %208
  %210 = getelementptr inbounds %struct.drmp3_seek_point, ptr %209, i32 0, i32 0
  store i64 %205, ptr %210, align 8, !tbaa !20
  %211 = load i64, ptr %17, align 8, !tbaa !19
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = load i32, ptr %19, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = getelementptr inbounds %struct.drmp3_seek_point, ptr %212, i64 %214
  %216 = getelementptr inbounds %struct.drmp3_seek_point, ptr %215, i32 0, i32 1
  store i64 %211, ptr %216, align 8, !tbaa !23
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  %218 = load i32, ptr %19, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds %struct.drmp3_seek_point, ptr %217, i64 %219
  %221 = getelementptr inbounds %struct.drmp3_seek_point, ptr %220, i32 0, i32 2
  store i16 2, ptr %221, align 8, !tbaa !24
  %222 = load i64, ptr %17, align 8, !tbaa !19
  %223 = getelementptr inbounds [3 x %struct.drmp3__seeking_mp3_frame_info], ptr %14, i64 0, i64 1
  %224 = getelementptr inbounds %struct.drmp3__seeking_mp3_frame_info, ptr %223, i32 0, i32 1
  %225 = load i64, ptr %224, align 8, !tbaa !32
  %226 = sub i64 %222, %225
  %227 = trunc i64 %226 to i16
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = load i32, ptr %19, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = getelementptr inbounds %struct.drmp3_seek_point, ptr %228, i64 %230
  %232 = getelementptr inbounds %struct.drmp3_seek_point, ptr %231, i32 0, i32 3
  store i16 %227, ptr %232, align 2, !tbaa !25
  store i32 8, ptr %12, align 4
  br label %236

233:                                              ; preds = %185
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = load i32, ptr %22, align 4, !tbaa !9
  call void @_ZL41drmp3__accumulate_running_pcm_frame_countP5drmp3jPyPf(ptr noundef %234, i32 noundef %235, ptr noundef %15, ptr noundef %16)
  store i32 0, ptr %12, align 4
  br label %236

236:                                              ; preds = %233, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %237 = load i32, ptr %12, align 4
  switch i32 %237, label %264 [
    i32 0, label %238
    i32 8, label %240
  ]

238:                                              ; preds = %236
  br label %239

239:                                              ; preds = %238
  br label %137, !llvm.loop !38

240:                                              ; preds = %236, %141
  br label %241

241:                                              ; preds = %240
  %242 = load i32, ptr %19, align 4, !tbaa !9
  %243 = add i32 %242, 1
  store i32 %243, ptr %19, align 4, !tbaa !9
  br label %129, !llvm.loop !39

244:                                              ; preds = %129
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = call noundef i32 @_ZL29drmp3_seek_to_start_of_streamP5drmp3(ptr noundef %245)
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %249, label %248

248:                                              ; preds = %244
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %256

249:                                              ; preds = %244
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = load i64, ptr %9, align 8, !tbaa !19
  %252 = call i32 @drmp3_seek_to_pcm_frame(ptr noundef %250, i64 noundef %251)
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %255, label %254

254:                                              ; preds = %249
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %256

255:                                              ; preds = %249
  store i32 0, ptr %12, align 4
  br label %256

256:                                              ; preds = %255, %254, %248, %122, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %257 = load i32, ptr %12, align 4
  switch i32 %257, label %262 [
    i32 0, label %258
  ]

258:                                              ; preds = %256
  br label %259

259:                                              ; preds = %258, %49
  %260 = load i32, ptr %8, align 4, !tbaa !9
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %260, ptr %261, align 4, !tbaa !9
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %262

262:                                              ; preds = %259, %256, %45, %37, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %263 = load i32, ptr %4, align 4
  ret i32 %263

264:                                              ; preds = %236
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL41drmp3__accumulate_running_pcm_frame_countP5drmp3jPyPf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #4

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 = { 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 #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, !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, !16, i64 15984}
!12 = !{!"_ZTS5drmp3", !13, i64 0, !14, i64 6668, !10, i64 6688, !10, i64 6692, !6, i64 6696, !6, i64 6704, !6, i64 6712, !15, i64 6720, !10, i64 6752, !10, i64 6756, !10, i64 6760, !10, i64 6764, !7, i64 6768, !16, i64 15984, !16, i64 15992, !6, i64 16000, !10, i64 16008, !17, i64 16016, !17, i64 16024, !17, i64 16032, !6, i64 16040, !10, i64 16048, !18, i64 16056}
!13 = !{!"_ZTS8drmp3dec", !7, i64 0, !7, i64 2304, !10, i64 6144, !10, i64 6148, !7, i64 6152, !7, i64 6156}
!14 = !{!"_ZTS19drmp3dec_frame_info", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!15 = !{!"_ZTS26drmp3_allocation_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN5drmp3Ut_E", !6, i64 0, !17, i64 8, !17, i64 16}
!19 = !{!16, !16, i64 0}
!20 = !{!21, !16, i64 0}
!21 = !{!"_ZTS16drmp3_seek_point", !16, i64 0, !16, i64 8, !22, i64 16, !22, i64 18}
!22 = !{!"short", !7, i64 0}
!23 = !{!21, !16, i64 8}
!24 = !{!21, !22, i64 16}
!25 = !{!21, !22, i64 18}
!26 = !{!27, !27, i64 0}
!27 = !{!"float", !7, i64 0}
!28 = !{!12, !16, i64 15992}
!29 = !{!12, !17, i64 16016}
!30 = !{!31, !16, i64 0}
!31 = !{!"_ZTS29drmp3__seeking_mp3_frame_info", !16, i64 0, !16, i64 8}
!32 = !{!31, !16, i64 8}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!17, !17, i64 0}
!36 = !{i64 0, i64 8, !19, i64 8, i64 8, !19}
!37 = distinct !{!37, !34}
!38 = distinct !{!38, !34}
!39 = distinct !{!39, !34}


; 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.drmp3__seeking_mp3_frame_info = type { i64, i64 }
%struct.drmp3_seek_point = type { i64, i64, i16, i16 }

@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [37 x i8], align 1
@__PRETTY_FUNCTION__.drmp3_calculate_seek_points = external hidden unnamed_addr constant [86 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 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 #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @drmp3_seek_to_pcm_frame(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @drmp3_calculate_seek_points(ptr noundef %0, ptr noundef %1, ptr noundef writeonly %2) local_unnamed_addr #2 {
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca [3 x %struct.drmp3__seeking_mp3_frame_info], align 16
  %7 = alloca i64, align 8
  %8 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %9 = icmp eq ptr %0, null
  %10 = icmp eq ptr %1, null
  %or.cond = or i1 %9, %10
  %11 = icmp eq ptr %2, null
  %or.cond4 = or i1 %or.cond, %11
  br i1 %or.cond4, label %82, label %12

12:                                               ; preds = %3
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %82, label %15

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %0, i64 15984
  %17 = load i64, ptr %16, align 8, !tbaa !9
  %18 = call i32 @drmp3_get_mp3_and_pcm_frame_count(ptr noundef nonnull %0, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %82, label %19

19:                                               ; preds = %15
  %20 = load i64, ptr %4, align 8, !tbaa !18
  %21 = icmp ult i64 %20, 3
  br i1 %21, label %22, label %23

22:                                               ; preds = %19
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %2, i8 0, i64 20, i1 false)
  br label %81

23:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  store i64 0, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store float 0.000000e+00, ptr %8, align 4, !tbaa !19
  %24 = zext i32 %13 to i64
  %25 = add i64 %20, -1
  %26 = icmp ult i64 %25, %24
  %27 = trunc i64 %20 to i32
  %28 = add i32 %27, -1
  %.075 = select i1 %26, i32 %28, i32 %13
  %29 = load i64, ptr %5, align 8, !tbaa !18
  %30 = add i32 %.075, 1
  %31 = zext i32 %30 to i64
  %32 = udiv i64 %29, %31
  %33 = call noundef i32 @_ZL29drmp3_seek_to_start_of_streamP5drmp3(ptr noundef nonnull %0)
  %.not93 = icmp eq i32 %33, 0
  br i1 %.not93, label %.critedge98, label %.preheader102

.preheader102:                                    ; preds = %23
  %34 = getelementptr inbounds i8, ptr %0, i64 15992
  %35 = getelementptr inbounds i8, ptr %0, i64 16016
  %36 = load i64, ptr %34, align 8, !tbaa !21
  %37 = load i64, ptr %35, align 8, !tbaa !22
  %.not96 = icmp ult i64 %36, %37
  br i1 %.not96, label %38, label %39

.lr.ph:                                           ; preds = %.preheader101
  %wide.trip.count = zext i32 %.075 to i64
  %.16.sroa_idx = getelementptr inbounds i8, ptr %6, i64 16
  %.32.sroa_idx130 = getelementptr inbounds i8, ptr %6, i64 32
  %.40.sroa_idx131 = getelementptr inbounds i8, ptr %6, i64 40
  %.24.sroa_idx129 = getelementptr inbounds i8, ptr %6, i64 24
  %.24.sroa_idx128 = getelementptr inbounds i8, ptr %6, i64 24
  br label %56

38:                                               ; preds = %49, %42, %.preheader102
  call void @__assert_fail(ptr noundef nonnull @.str.172, ptr noundef nonnull @.str.6, i32 noundef 90173, ptr noundef nonnull @__PRETTY_FUNCTION__.drmp3_calculate_seek_points) #7
  unreachable

39:                                               ; preds = %.preheader102
  %40 = sub i64 %36, %37
  store i64 %40, ptr %6, align 16, !tbaa !23
  %41 = call noundef i32 @_ZL26drmp3_decode_next_frame_exP5drmp3Ps(ptr noundef nonnull %0, ptr noundef null)
  %.not97 = icmp eq i32 %41, 0
  br i1 %.not97, label %.critedge98, label %42

42:                                               ; preds = %39
  call void @_ZL41drmp3__accumulate_running_pcm_frame_countP5drmp3jPyPf(ptr noundef nonnull %0, i32 noundef %41, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %43 = load i64, ptr %34, align 8, !tbaa !21
  %44 = load i64, ptr %35, align 8, !tbaa !22
  %.not96.1 = icmp ult i64 %43, %44
  br i1 %.not96.1, label %38, label %45

45:                                               ; preds = %42
  %46 = sub i64 %43, %44
  %.16.sroa_idx127 = getelementptr inbounds i8, ptr %6, i64 16
  store i64 %46, ptr %.16.sroa_idx127, align 16, !tbaa !23
  %47 = load i64, ptr %7, align 8, !tbaa !18
  %.24.sroa_idx = getelementptr inbounds i8, ptr %6, i64 24
  store i64 %47, ptr %.24.sroa_idx, align 8, !tbaa !25
  %48 = call noundef i32 @_ZL26drmp3_decode_next_frame_exP5drmp3Ps(ptr noundef nonnull %0, ptr noundef null)
  %.not97.1 = icmp eq i32 %48, 0
  br i1 %.not97.1, label %.critedge98, label %49

49:                                               ; preds = %45
  call void @_ZL41drmp3__accumulate_running_pcm_frame_countP5drmp3jPyPf(ptr noundef nonnull %0, i32 noundef %48, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %50 = load i64, ptr %34, align 8, !tbaa !21
  %51 = load i64, ptr %35, align 8, !tbaa !22
  %.not96.2 = icmp ult i64 %50, %51
  br i1 %.not96.2, label %38, label %52

52:                                               ; preds = %49
  %53 = sub i64 %50, %51
  %.32.sroa_idx = getelementptr inbounds i8, ptr %6, i64 32
  store i64 %53, ptr %.32.sroa_idx, align 16, !tbaa !23
  %54 = load i64, ptr %7, align 8, !tbaa !18
  %.40.sroa_idx = getelementptr inbounds i8, ptr %6, i64 40
  store i64 %54, ptr %.40.sroa_idx, align 8, !tbaa !25
  %55 = call noundef i32 @_ZL26drmp3_decode_next_frame_exP5drmp3Ps(ptr noundef nonnull %0, ptr noundef null)
  %.not97.2 = icmp eq i32 %55, 0
  br i1 %.not97.2, label %.critedge98, label %.preheader101

.preheader101:                                    ; preds = %52
  call void @_ZL41drmp3__accumulate_running_pcm_frame_countP5drmp3jPyPf(ptr noundef nonnull %0, i32 noundef %55, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not108 = icmp eq i32 %.075, 0
  br i1 %.not108, label %._crit_edge107, label %.lr.ph

56:                                               ; preds = %.lr.ph, %75
  %.24.114121 = phi i64 [ %47, %.lr.ph ], [ %.24..sink, %75 ]
  %.0.118 = phi i64 [ %40, %.lr.ph ], [ %.0.119, %75 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %75 ]
  %.079105 = phi i64 [ 0, %.lr.ph ], [ %57, %75 ]
  %57 = add i64 %.079105, %32
  %58 = load i64, ptr %7, align 8, !tbaa !18
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %._crit_edge, label %.preheader

.preheader:                                       ; preds = %56, %72
  %60 = phi i64 [ %73, %72 ], [ %58, %56 ]
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull align 16 dereferenceable(32) %.16.sroa_idx, i64 32, i1 false)
  %61 = load i64, ptr %34, align 8, !tbaa !21
  %62 = load i64, ptr %35, align 8, !tbaa !22
  %63 = sub i64 %61, %62
  store i64 %63, ptr %.32.sroa_idx130, align 16, !tbaa !23
  store i64 %60, ptr %.40.sroa_idx131, align 8, !tbaa !25
  %64 = call noundef i32 @_ZL26drmp3_decode_next_frame_exP5drmp3Ps(ptr noundef %0, ptr noundef null)
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %.thread, label %72

._crit_edge.loopexit:                             ; preds = %72
  %.0..0..pre = load i64, ptr %6, align 16, !tbaa !23
  %.24..24.114.pre = load i64, ptr %.24.sroa_idx129, align 8, !tbaa !25
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %56
  %.24.114 = phi i64 [ %.24..24.114.pre, %._crit_edge.loopexit ], [ %.24.114121, %56 ]
  %.0. = phi i64 [ %.0..0..pre, %._crit_edge.loopexit ], [ %.0.118, %56 ]
  %66 = getelementptr inbounds %struct.drmp3_seek_point, ptr %2, i64 %indvars.iv
  store i64 %.0., ptr %66, align 8, !tbaa !26
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  store i64 %57, ptr %67, align 8, !tbaa !29
  %68 = getelementptr inbounds i8, ptr %66, i64 16
  store i16 2, ptr %68, align 8, !tbaa !30
  br label %75

.thread:                                          ; preds = %.preheader
  %.0..0.111 = load i64, ptr %6, align 16, !tbaa !23
  %69 = getelementptr inbounds %struct.drmp3_seek_point, ptr %2, i64 %indvars.iv
  store i64 %.0..0.111, ptr %69, align 8, !tbaa !26
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  store i64 %57, ptr %70, align 8, !tbaa !29
  %71 = getelementptr inbounds i8, ptr %69, i64 16
  store i16 2, ptr %71, align 8, !tbaa !30
  %.24..24. = load i64, ptr %.24.sroa_idx128, align 8, !tbaa !25
  br label %75

72:                                               ; preds = %.preheader
  call void @_ZL41drmp3__accumulate_running_pcm_frame_countP5drmp3jPyPf(ptr noundef nonnull %0, i32 noundef %64, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %73 = load i64, ptr %7, align 8, !tbaa !18
  %74 = icmp ult i64 %57, %73
  br i1 %74, label %._crit_edge.loopexit, label %.preheader

75:                                               ; preds = %.thread, %._crit_edge
  %.24..sink = phi i64 [ %.24..24., %.thread ], [ %.24.114, %._crit_edge ]
  %.0.119 = phi i64 [ %.0..0.111, %.thread ], [ %.0., %._crit_edge ]
  %76 = sub i64 %57, %.24..sink
  %77 = trunc i64 %76 to i16
  %78 = getelementptr inbounds %struct.drmp3_seek_point, ptr %2, i64 %indvars.iv, i32 3
  store i16 %77, ptr %78, align 2, !tbaa !31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge107, label %56, !llvm.loop !32

._crit_edge107:                                   ; preds = %75, %.preheader101
  %79 = call noundef i32 @_ZL29drmp3_seek_to_start_of_streamP5drmp3(ptr noundef %0)
  %.not94 = icmp eq i32 %79, 0
  br i1 %.not94, label %.critedge98, label %.critedge

.critedge:                                        ; preds = %._crit_edge107
  %80 = call i32 @drmp3_seek_to_pcm_frame(ptr noundef %0, i64 noundef %17)
  %.not95.not = icmp eq i32 %80, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6)
  br i1 %.not95.not, label %82, label %81

81:                                               ; preds = %.critedge, %22
  %.176 = phi i32 [ 1, %22 ], [ %.075, %.critedge ]
  store i32 %.176, ptr %1, align 4, !tbaa !5
  br label %82

.critedge98:                                      ; preds = %39, %45, %52, %._crit_edge107, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6)
  br label %82

82:                                               ; preds = %.critedge98, %15, %12, %3, %.critedge, %81
  %.3 = phi i32 [ 1, %81 ], [ 0, %.critedge ], [ 0, %3 ], [ 0, %12 ], [ 0, %15 ], [ 0, %.critedge98 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret i32 %.3
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !15, i64 15984}
!10 = !{!"_ZTS5drmp3", !11, i64 0, !12, i64 6668, !6, i64 6688, !6, i64 6692, !13, i64 6696, !13, i64 6704, !13, i64 6712, !14, i64 6720, !6, i64 6752, !6, i64 6756, !6, i64 6760, !6, i64 6764, !7, i64 6768, !15, i64 15984, !15, i64 15992, !13, i64 16000, !6, i64 16008, !16, i64 16016, !16, i64 16024, !16, i64 16032, !13, i64 16040, !6, i64 16048, !17, i64 16056}
!11 = !{!"_ZTS8drmp3dec", !7, i64 0, !7, i64 2304, !6, i64 6144, !6, i64 6148, !7, i64 6152, !7, i64 6156}
!12 = !{!"_ZTS19drmp3dec_frame_info", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTS26drmp3_allocation_callbacks", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!15 = !{!"long long", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN5drmp3Ut_E", !13, i64 0, !16, i64 8, !16, i64 16}
!18 = !{!15, !15, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!10, !15, i64 15992}
!22 = !{!10, !16, i64 16016}
!23 = !{!24, !15, i64 0}
!24 = !{!"_ZTS29drmp3__seeking_mp3_frame_info", !15, i64 0, !15, i64 8}
!25 = !{!24, !15, i64 8}
!26 = !{!27, !15, i64 0}
!27 = !{!"_ZTS16drmp3_seek_point", !15, i64 0, !15, i64 8, !28, i64 16, !28, i64 18}
!28 = !{!"short", !7, i64 0}
!29 = !{!27, !15, i64 8}
!30 = !{!27, !28, i64 16}
!31 = !{!27, !28, i64 18}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass