; LLVM IR from AnzoDK/RPAudio :: includes/minimp3/fuzzing (fuzz)

; 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.bs_t = type { ptr, i32, i32 }
%struct.mp3dec_scratch_t = type { %struct.bs_t, [2815 x i8], [4 x %struct.L3_gr_info_t], [2 x [576 x float]], [40 x float], [33 x [64 x float]], [2 x [39 x i8]] }
%struct.L3_gr_info_t = type { ptr, i16, i16, i16, i8, i8, i8, i8, i8, [3 x i8], [3 x i8], [3 x i8], i8, i8, i8, i8 }
%struct.L12_scale_info = type { [192 x float], i8, i8, [64 x i8], [64 x i8] }
%struct.mp3dec_t = type { [2 x [288 x float]], [960 x float], i32, i32, [4 x i8], [511 x i8] }
%struct.mp3dec_frame_info_t = type { i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
declare dso_local void @mp3dec_init(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @mp3dec_decode_frame(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca [1 x %struct.bs_t], align 16
  %18 = alloca %struct.mp3dec_scratch_t, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca [1 x %struct.L12_scale_info], align 16
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  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 %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 1, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 16256, ptr %18) #4
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = icmp sgt i32 %22, 4
  br i1 %23, label %24, label %65

24:                                               ; preds = %5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.mp3dec_t, ptr %25, i32 0, i32 4
  %27 = getelementptr inbounds [4 x i8], ptr %26, i64 0, i64 0
  %28 = load i8, ptr %27, align 4, !tbaa !11
  %29 = zext i8 %28 to i32
  %30 = icmp eq i32 %29, 255
  br i1 %30, label %31, label %65

31:                                               ; preds = %24
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.mp3dec_t, ptr %32, i32 0, i32 4
  %34 = getelementptr inbounds [4 x i8], ptr %33, i64 0, i64 0
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = call i32 @hdr_compare(ptr noundef %34, ptr noundef %35)
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %65

38:                                               ; preds = %31
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.mp3dec_t, ptr %40, i32 0, i32 3
  %42 = load i32, ptr %41, align 4, !tbaa !12
  %43 = call i32 @hdr_frame_bytes(ptr noundef %39, i32 noundef %42)
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = call i32 @hdr_padding(ptr noundef %44)
  %46 = add nsw i32 %43, %45
  store i32 %46, ptr %14, align 4, !tbaa !9
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = icmp ne i32 %47, %48
  br i1 %49, label %50, label %64

50:                                               ; preds = %38
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = add nsw i32 %51, 4
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = icmp sgt i32 %52, %53
  br i1 %54, label %63, label %55

55:                                               ; preds = %50
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i8, ptr %57, i64 %59
  %61 = call i32 @hdr_compare(ptr noundef %56, ptr noundef %60)
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %64, label %63

63:                                               ; preds = %55, %50
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %63, %55, %38
  br label %65

65:                                               ; preds = %64, %31, %24, %5
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %88, label %68

68:                                               ; preds = %65
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 4 %69, i8 0, i64 6668, i1 false)
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load i32, ptr %9, align 4, !tbaa !9
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.mp3dec_t, ptr %72, i32 0, i32 3
  %74 = call i32 @mp3d_find_frame(ptr noundef %70, i32 noundef %71, ptr noundef %73, ptr noundef %14)
  store i32 %74, ptr %12, align 4, !tbaa !9
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %83

77:                                               ; preds = %68
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = add nsw i32 %78, %79
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = icmp sgt i32 %80, %81
  br i1 %82, label %83, label %87

83:                                               ; preds = %77, %68
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %85, i32 0, i32 0
  store i32 %84, ptr %86, align 4, !tbaa !14
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %326

87:                                               ; preds = %77
  br label %88

88:                                               ; preds = %87, %65
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %89, i64 %91
  store ptr %92, ptr %16, align 8, !tbaa !5
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.mp3dec_t, ptr %93, i32 0, i32 4
  %95 = getelementptr inbounds [4 x i8], ptr %94, i64 0, i64 0
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %95, ptr align 1 %96, i64 4, i1 false)
  %97 = load i32, ptr %12, align 4, !tbaa !9
  %98 = load i32, ptr %14, align 4, !tbaa !9
  %99 = add nsw i32 %97, %98
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %100, i32 0, i32 0
  store i32 %99, ptr %101, align 4, !tbaa !14
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %103, i32 0, i32 1
  store i32 %102, ptr %104, align 4, !tbaa !16
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 3
  %107 = load i8, ptr %106, align 1, !tbaa !11
  %108 = zext i8 %107 to i32
  %109 = and i32 %108, 192
  %110 = icmp eq i32 %109, 192
  %111 = zext i1 %110 to i64
  %112 = select i1 %110, i32 1, i32 2
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %113, i32 0, i32 2
  store i32 %112, ptr %114, align 4, !tbaa !17
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = call i32 @hdr_sample_rate_hz(ptr noundef %115)
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %117, i32 0, i32 3
  store i32 %116, ptr %118, align 4, !tbaa !18
  %119 = load ptr, ptr %16, align 8, !tbaa !5
  %120 = getelementptr inbounds i8, ptr %119, i64 1
  %121 = load i8, ptr %120, align 1, !tbaa !11
  %122 = zext i8 %121 to i32
  %123 = ashr i32 %122, 1
  %124 = and i32 %123, 3
  %125 = sub nsw i32 4, %124
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %126, i32 0, i32 4
  store i32 %125, ptr %127, align 4, !tbaa !19
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = call i32 @hdr_bitrate_kbps(ptr noundef %128)
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %130, i32 0, i32 5
  store i32 %129, ptr %131, align 4, !tbaa !20
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = icmp ne ptr %132, null
  br i1 %133, label %137, label %134

134:                                              ; preds = %88
  %135 = load ptr, ptr %16, align 8, !tbaa !5
  %136 = call i32 @hdr_frame_samples(ptr noundef %135)
  store i32 %136, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %326

137:                                              ; preds = %88
  %138 = getelementptr inbounds [1 x %struct.bs_t], ptr %17, i64 0, i64 0
  %139 = load ptr, ptr %16, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %139, i64 4
  %141 = load i32, ptr %14, align 4, !tbaa !9
  %142 = sub nsw i32 %141, 4
  call void @bs_init(ptr noundef %138, ptr noundef %140, i32 noundef %142)
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = getelementptr inbounds i8, ptr %143, i64 1
  %145 = load i8, ptr %144, align 1, !tbaa !11
  %146 = zext i8 %145 to i32
  %147 = and i32 %146, 1
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %152, label %149

149:                                              ; preds = %137
  %150 = getelementptr inbounds [1 x %struct.bs_t], ptr %17, i64 0, i64 0
  %151 = call i32 @get_bits(ptr noundef %150, i32 noundef 16)
  br label %152

152:                                              ; preds = %149, %137
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %153, i32 0, i32 4
  %155 = load i32, ptr %154, align 4, !tbaa !19
  %156 = icmp eq i32 %155, 3
  br i1 %156, label %157, label %240

157:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %158 = getelementptr inbounds [1 x %struct.bs_t], ptr %17, i64 0, i64 0
  %159 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 2
  %160 = getelementptr inbounds [4 x %struct.L3_gr_info_t], ptr %159, i64 0, i64 0
  %161 = load ptr, ptr %16, align 8, !tbaa !5
  %162 = call i32 @L3_read_side_info(ptr noundef %158, ptr noundef %160, ptr noundef %161)
  store i32 %162, ptr %20, align 4, !tbaa !9
  %163 = load i32, ptr %20, align 4, !tbaa !9
  %164 = icmp slt i32 %163, 0
  br i1 %164, label %173, label %165

165:                                              ; preds = %157
  %166 = getelementptr inbounds [1 x %struct.bs_t], ptr %17, i64 0, i64 0
  %167 = getelementptr inbounds %struct.bs_t, ptr %166, i32 0, i32 1
  %168 = load i32, ptr %167, align 8, !tbaa !21
  %169 = getelementptr inbounds [1 x %struct.bs_t], ptr %17, i64 0, i64 0
  %170 = getelementptr inbounds %struct.bs_t, ptr %169, i32 0, i32 2
  %171 = load i32, ptr %170, align 4, !tbaa !23
  %172 = icmp sgt i32 %168, %171
  br i1 %172, label %173, label %175

173:                                              ; preds = %165, %157
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mp3dec_init(ptr noundef %174)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %237

175:                                              ; preds = %165
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds [1 x %struct.bs_t], ptr %17, i64 0, i64 0
  %178 = load i32, ptr %20, align 4, !tbaa !9
  %179 = call i32 @L3_restore_reservoir(ptr noundef %176, ptr noundef %177, ptr noundef %18, i32 noundef %178)
  store i32 %179, ptr %15, align 4, !tbaa !9
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %235

182:                                              ; preds = %175
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %224, %182
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = load ptr, ptr %16, align 8, !tbaa !5
  %186 = getelementptr inbounds i8, ptr %185, i64 1
  %187 = load i8, ptr %186, align 1, !tbaa !11
  %188 = zext i8 %187 to i32
  %189 = and i32 %188, 8
  %190 = icmp ne i32 %189, 0
  %191 = zext i1 %190 to i64
  %192 = select i1 %190, i32 2, i32 1
  %193 = icmp slt i32 %184, %192
  br i1 %193, label %194, label %234

194:                                              ; preds = %183
  %195 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 3
  %196 = getelementptr inbounds [2 x [576 x float]], ptr %195, i64 0, i64 0
  %197 = getelementptr inbounds [576 x float], ptr %196, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %197, i8 0, i64 4608, i1 false)
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 2
  %200 = getelementptr inbounds [4 x %struct.L3_gr_info_t], ptr %199, i64 0, i64 0
  %201 = load i32, ptr %13, align 4, !tbaa !9
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %202, i32 0, i32 2
  %204 = load i32, ptr %203, align 4, !tbaa !17
  %205 = mul nsw i32 %201, %204
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds %struct.L3_gr_info_t, ptr %200, i64 %206
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %208, i32 0, i32 2
  %210 = load i32, ptr %209, align 4, !tbaa !17
  call void @L3_decode(ptr noundef %198, ptr noundef %18, ptr noundef %207, i32 noundef %210)
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.mp3dec_t, ptr %211, i32 0, i32 1
  %213 = getelementptr inbounds [960 x float], ptr %212, i64 0, i64 0
  %214 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 3
  %215 = getelementptr inbounds [2 x [576 x float]], ptr %214, i64 0, i64 0
  %216 = getelementptr inbounds [576 x float], ptr %215, i64 0, i64 0
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %217, i32 0, i32 2
  %219 = load i32, ptr %218, align 4, !tbaa !17
  %220 = load ptr, ptr %10, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 5
  %222 = getelementptr inbounds [33 x [64 x float]], ptr %221, i64 0, i64 0
  %223 = getelementptr inbounds [64 x float], ptr %222, i64 0, i64 0
  call void @mp3d_synth_granule(ptr noundef %213, ptr noundef %216, i32 noundef 18, i32 noundef %219, ptr noundef %220, ptr noundef %223)
  br label %224

224:                                              ; preds = %194
  %225 = load i32, ptr %13, align 4, !tbaa !9
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %13, align 4, !tbaa !9
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %227, i32 0, i32 2
  %229 = load i32, ptr %228, align 4, !tbaa !17
  %230 = mul nsw i32 576, %229
  %231 = load ptr, ptr %10, align 8, !tbaa !5
  %232 = sext i32 %230 to i64
  %233 = getelementptr inbounds i16, ptr %231, i64 %232
  store ptr %233, ptr %10, align 8, !tbaa !5
  br label %183, !llvm.loop !24

234:                                              ; preds = %183
  br label %235

235:                                              ; preds = %234, %175
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  call void @L3_save_reservoir(ptr noundef %236, ptr noundef %18)
  store i32 0, ptr %19, align 4
  br label %237

237:                                              ; preds = %235, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %238 = load i32, ptr %19, align 4
  switch i32 %238, label %326 [
    i32 0, label %239
  ]

239:                                              ; preds = %237
  br label %319

240:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 900, ptr %21) #4
  %241 = load ptr, ptr %16, align 8, !tbaa !5
  %242 = getelementptr inbounds [1 x %struct.bs_t], ptr %17, i64 0, i64 0
  %243 = getelementptr inbounds [1 x %struct.L12_scale_info], ptr %21, i64 0, i64 0
  call void @L12_read_scale_info(ptr noundef %241, ptr noundef %242, ptr noundef %243)
  %244 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 3
  %245 = getelementptr inbounds [2 x [576 x float]], ptr %244, i64 0, i64 0
  %246 = getelementptr inbounds [576 x float], ptr %245, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %246, i8 0, i64 4608, i1 false)
  store i32 0, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %312, %240
  %248 = load i32, ptr %13, align 4, !tbaa !9
  %249 = icmp slt i32 %248, 3
  br i1 %249, label %250, label %315

250:                                              ; preds = %247
  %251 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 3
  %252 = getelementptr inbounds [2 x [576 x float]], ptr %251, i64 0, i64 0
  %253 = getelementptr inbounds [576 x float], ptr %252, i64 0, i64 0
  %254 = load i32, ptr %12, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds float, ptr %253, i64 %255
  %257 = getelementptr inbounds [1 x %struct.bs_t], ptr %17, i64 0, i64 0
  %258 = getelementptr inbounds [1 x %struct.L12_scale_info], ptr %21, i64 0, i64 0
  %259 = load ptr, ptr %11, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %259, i32 0, i32 4
  %261 = load i32, ptr %260, align 4, !tbaa !19
  %262 = or i32 %261, 1
  %263 = call i32 @L12_dequantize_granule(ptr noundef %256, ptr noundef %257, ptr noundef %258, i32 noundef %262)
  %264 = load i32, ptr %12, align 4, !tbaa !9
  %265 = add nsw i32 %264, %263
  store i32 %265, ptr %12, align 4, !tbaa !9
  %266 = icmp eq i32 12, %265
  br i1 %266, label %267, label %301

267:                                              ; preds = %250
  store i32 0, ptr %12, align 4, !tbaa !9
  %268 = getelementptr inbounds [1 x %struct.L12_scale_info], ptr %21, i64 0, i64 0
  %269 = getelementptr inbounds [1 x %struct.L12_scale_info], ptr %21, i64 0, i64 0
  %270 = getelementptr inbounds %struct.L12_scale_info, ptr %269, i32 0, i32 0
  %271 = getelementptr inbounds [192 x float], ptr %270, i64 0, i64 0
  %272 = load i32, ptr %13, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds float, ptr %271, i64 %273
  %275 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 3
  %276 = getelementptr inbounds [2 x [576 x float]], ptr %275, i64 0, i64 0
  %277 = getelementptr inbounds [576 x float], ptr %276, i64 0, i64 0
  call void @L12_apply_scf_384(ptr noundef %268, ptr noundef %274, ptr noundef %277)
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.mp3dec_t, ptr %278, i32 0, i32 1
  %280 = getelementptr inbounds [960 x float], ptr %279, i64 0, i64 0
  %281 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 3
  %282 = getelementptr inbounds [2 x [576 x float]], ptr %281, i64 0, i64 0
  %283 = getelementptr inbounds [576 x float], ptr %282, i64 0, i64 0
  %284 = load ptr, ptr %11, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %284, i32 0, i32 2
  %286 = load i32, ptr %285, align 4, !tbaa !17
  %287 = load ptr, ptr %10, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 5
  %289 = getelementptr inbounds [33 x [64 x float]], ptr %288, i64 0, i64 0
  %290 = getelementptr inbounds [64 x float], ptr %289, i64 0, i64 0
  call void @mp3d_synth_granule(ptr noundef %280, ptr noundef %283, i32 noundef 12, i32 noundef %286, ptr noundef %287, ptr noundef %290)
  %291 = getelementptr inbounds %struct.mp3dec_scratch_t, ptr %18, i32 0, i32 3
  %292 = getelementptr inbounds [2 x [576 x float]], ptr %291, i64 0, i64 0
  %293 = getelementptr inbounds [576 x float], ptr %292, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %293, i8 0, i64 4608, i1 false)
  %294 = load ptr, ptr %11, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.mp3dec_frame_info_t, ptr %294, i32 0, i32 2
  %296 = load i32, ptr %295, align 4, !tbaa !17
  %297 = mul nsw i32 384, %296
  %298 = load ptr, ptr %10, align 8, !tbaa !5
  %299 = sext i32 %297 to i64
  %300 = getelementptr inbounds i16, ptr %298, i64 %299
  store ptr %300, ptr %10, align 8, !tbaa !5
  br label %301

301:                                              ; preds = %267, %250
  %302 = getelementptr inbounds [1 x %struct.bs_t], ptr %17, i64 0, i64 0
  %303 = getelementptr inbounds %struct.bs_t, ptr %302, i32 0, i32 1
  %304 = load i32, ptr %303, align 8, !tbaa !21
  %305 = getelementptr inbounds [1 x %struct.bs_t], ptr %17, i64 0, i64 0
  %306 = getelementptr inbounds %struct.bs_t, ptr %305, i32 0, i32 2
  %307 = load i32, ptr %306, align 4, !tbaa !23
  %308 = icmp sgt i32 %304, %307
  br i1 %308, label %309, label %311

309:                                              ; preds = %301
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mp3dec_init(ptr noundef %310)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %316

311:                                              ; preds = %301
  br label %312

312:                                              ; preds = %311
  %313 = load i32, ptr %13, align 4, !tbaa !9
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %13, align 4, !tbaa !9
  br label %247, !llvm.loop !26

315:                                              ; preds = %247
  store i32 0, ptr %19, align 4
  br label %316

316:                                              ; preds = %315, %309
  call void @llvm.lifetime.end.p0(i64 900, ptr %21) #4
  %317 = load i32, ptr %19, align 4
  switch i32 %317, label %326 [
    i32 0, label %318
  ]

318:                                              ; preds = %316
  br label %319

319:                                              ; preds = %318, %239
  %320 = load i32, ptr %15, align 4, !tbaa !9
  %321 = load ptr, ptr %7, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.mp3dec_t, ptr %321, i32 0, i32 4
  %323 = getelementptr inbounds [4 x i8], ptr %322, i64 0, i64 0
  %324 = call i32 @hdr_frame_samples(ptr noundef %323)
  %325 = mul i32 %320, %324
  store i32 %325, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %326

326:                                              ; preds = %319, %316, %237, %134, %83
  call void @llvm.lifetime.end.p0(i64 16256, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #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
  %327 = load i32, ptr %6, align 4
  ret i32 %327
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_compare(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_frame_bytes(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_padding(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mp3d_find_frame(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #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) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_sample_rate_hz(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_bitrate_kbps(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_frame_samples(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @bs_init(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @get_bits(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @L3_read_side_info(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @L3_restore_reservoir(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @L3_decode(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @mp3d_synth_granule(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @L3_save_reservoir(ptr noundef, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden void @L12_read_scale_info(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @L12_dequantize_granule(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @L12_apply_scf_384(ptr noundef, ptr noundef, ptr noundef) #0

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 6148}
!13 = !{!"", !7, i64 0, !7, i64 2304, !10, i64 6144, !10, i64 6148, !7, i64 6152, !7, i64 6156}
!14 = !{!15, !10, i64 0}
!15 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!16 = !{!15, !10, i64 4}
!17 = !{!15, !10, i64 8}
!18 = !{!15, !10, i64 12}
!19 = !{!15, !10, i64 16}
!20 = !{!15, !10, i64 20}
!21 = !{!22, !10, i64 8}
!22 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!23 = !{!22, !10, i64 12}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.bs_t = type { ptr, i32, i32 }
%struct.mp3dec_scratch_t = type { %struct.bs_t, [2815 x i8], [4 x %struct.L3_gr_info_t], [2 x [576 x float]], [40 x float], [33 x [64 x float]], [2 x [39 x i8]] }
%struct.L3_gr_info_t = type { ptr, i16, i16, i16, i8, i8, i8, i8, i8, [3 x i8], [3 x i8], [3 x i8], i8, i8, i8, i8 }
%struct.L12_scale_info = type { [192 x float], i8, i8, [64 x i8], [64 x i8] }

; Function Attrs: nounwind uwtable
declare dso_local void @mp3dec_init(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @mp3dec_decode_frame(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr nocapture noundef %4) local_unnamed_addr #0 {
  %6 = alloca i32, align 4
  %7 = alloca [1 x %struct.bs_t], align 16
  %8 = alloca %struct.mp3dec_scratch_t, align 8
  %9 = alloca [1 x %struct.L12_scale_info], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 16256, ptr nonnull %8) #3
  %10 = icmp sgt i32 %2, 4
  br i1 %10, label %11, label %.thread

11:                                               ; preds = %5
  %12 = getelementptr inbounds i8, ptr %0, i64 6152
  %13 = load i8, ptr %12, align 4, !tbaa !9
  %14 = icmp eq i8 %13, -1
  br i1 %14, label %15, label %.thread

15:                                               ; preds = %11
  %16 = tail call i32 @hdr_compare(ptr noundef nonnull %12, ptr noundef %1)
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %.thread, label %17

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %0, i64 6148
  %19 = load i32, ptr %18, align 4, !tbaa !10
  %20 = tail call i32 @hdr_frame_bytes(ptr noundef %1, i32 noundef %19)
  %21 = tail call i32 @hdr_padding(ptr noundef %1)
  %22 = add nsw i32 %21, %20
  store i32 %22, ptr %6, align 4, !tbaa !5
  %.not94 = icmp eq i32 %22, %2
  br i1 %.not94, label %.thread104, label %23

23:                                               ; preds = %17
  %24 = add nsw i32 %22, 4
  %25 = icmp sgt i32 %24, %2
  br i1 %25, label %30, label %26

26:                                               ; preds = %23
  %27 = sext i32 %22 to i64
  %28 = getelementptr inbounds i8, ptr %1, i64 %27
  %29 = tail call i32 @hdr_compare(ptr noundef %1, ptr noundef %28)
  %.not95 = icmp eq i32 %29, 0
  br i1 %.not95, label %30, label %31

30:                                               ; preds = %26, %23
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %.thread

31:                                               ; preds = %26
  %.not96 = icmp eq i32 %22, 0
  br i1 %.not96, label %.thread, label %.thread104

.thread:                                          ; preds = %11, %15, %5, %30, %31
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(6668) %0, i8 0, i64 6668, i1 false)
  %32 = getelementptr inbounds i8, ptr %0, i64 6148
  %33 = call i32 @mp3d_find_frame(ptr noundef %1, i32 noundef %2, ptr noundef nonnull %32, ptr noundef nonnull %6)
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %.not97 = icmp eq i32 %34, 0
  %35 = add nsw i32 %34, %33
  %36 = icmp sgt i32 %35, %2
  %or.cond = select i1 %.not97, i1 true, i1 %36
  br i1 %or.cond, label %37, label %.thread104

37:                                               ; preds = %.thread
  store i32 %33, ptr %4, align 4, !tbaa !12
  br label %157

.thread104:                                       ; preds = %17, %.thread, %31
  %38 = phi i32 [ %22, %31 ], [ %34, %.thread ], [ %2, %17 ]
  %.086 = phi i32 [ 0, %31 ], [ %33, %.thread ], [ 0, %17 ]
  %39 = sext i32 %.086 to i64
  %40 = getelementptr inbounds i8, ptr %1, i64 %39
  %41 = getelementptr inbounds i8, ptr %0, i64 6152
  %42 = load i32, ptr %40, align 1
  store i32 %42, ptr %41, align 4
  %43 = add nsw i32 %38, %.086
  store i32 %43, ptr %4, align 4, !tbaa !12
  %44 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %.086, ptr %44, align 4, !tbaa !14
  %45 = getelementptr inbounds i8, ptr %40, i64 3
  %46 = load i8, ptr %45, align 1, !tbaa !9
  %47 = icmp ugt i8 %46, -65
  %48 = select i1 %47, i32 1, i32 2
  %49 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 %48, ptr %49, align 4, !tbaa !15
  %50 = call i32 @hdr_sample_rate_hz(ptr noundef nonnull %40)
  %51 = getelementptr inbounds i8, ptr %4, i64 12
  store i32 %50, ptr %51, align 4, !tbaa !16
  %52 = getelementptr inbounds i8, ptr %40, i64 1
  %53 = load i8, ptr %52, align 1, !tbaa !9
  %54 = lshr i8 %53, 1
  %55 = and i8 %54, 3
  %narrow = sub nuw nsw i8 4, %55
  %56 = zext nneg i8 %narrow to i32
  %57 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 %56, ptr %57, align 4, !tbaa !17
  %58 = call i32 @hdr_bitrate_kbps(ptr noundef nonnull %40)
  %59 = getelementptr inbounds i8, ptr %4, i64 20
  store i32 %58, ptr %59, align 4, !tbaa !18
  %.not98 = icmp eq ptr %3, null
  br i1 %.not98, label %60, label %62

60:                                               ; preds = %.thread104
  %61 = call i32 @hdr_frame_samples(ptr noundef nonnull %40)
  br label %157

62:                                               ; preds = %.thread104
  %63 = getelementptr inbounds i8, ptr %40, i64 4
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = add nsw i32 %64, -4
  call void @bs_init(ptr noundef nonnull %7, ptr noundef nonnull %63, i32 noundef %65)
  %66 = load i8, ptr %52, align 1, !tbaa !9
  %67 = and i8 %66, 1
  %.not99 = icmp eq i8 %67, 0
  br i1 %.not99, label %68, label %70

68:                                               ; preds = %62
  %69 = call i32 @get_bits(ptr noundef nonnull %7, i32 noundef 16)
  br label %70

70:                                               ; preds = %68, %62
  %71 = load i32, ptr %57, align 4, !tbaa !17
  %72 = icmp eq i32 %71, 3
  br i1 %72, label %73, label %99

73:                                               ; preds = %70
  %74 = getelementptr inbounds i8, ptr %8, i64 2832
  %75 = call i32 @L3_read_side_info(ptr noundef nonnull %7, ptr noundef nonnull %74, ptr noundef nonnull %40)
  %76 = icmp slt i32 %75, 0
  br i1 %76, label %98, label %77

77:                                               ; preds = %73
  %78 = getelementptr inbounds i8, ptr %7, i64 8
  %79 = load i32, ptr %78, align 8, !tbaa !19
  %80 = getelementptr inbounds i8, ptr %7, i64 12
  %81 = load i32, ptr %80, align 4, !tbaa !22
  %82 = icmp sgt i32 %79, %81
  br i1 %82, label %98, label %83

83:                                               ; preds = %77
  %84 = call i32 @L3_restore_reservoir(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull %8, i32 noundef %75)
  %.not100 = icmp eq i32 %84, 0
  br i1 %.not100, label %.thread106, label %.preheader

.preheader:                                       ; preds = %83
  %85 = getelementptr inbounds i8, ptr %8, i64 2960
  %86 = getelementptr inbounds i8, ptr %0, i64 2304
  %87 = getelementptr inbounds i8, ptr %8, i64 7728
  %.pre = load i32, ptr %49, align 4, !tbaa !15
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(4608) %85, i8 0, i64 4608, i1 false)
  call void @L3_decode(ptr noundef %0, ptr noundef nonnull %8, ptr noundef nonnull %74, i32 noundef %.pre)
  %88 = load i32, ptr %49, align 4, !tbaa !15
  call void @mp3d_synth_granule(ptr noundef nonnull %86, ptr noundef nonnull %85, i32 noundef 18, i32 noundef %88, ptr noundef nonnull %3, ptr noundef nonnull %87)
  %89 = load i32, ptr %49, align 4, !tbaa !15
  %90 = mul nsw i32 %89, 576
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i16, ptr %3, i64 %91
  %93 = load i8, ptr %52, align 1, !tbaa !9
  %94 = and i8 %93, 8
  %.not101.peel.not = icmp eq i8 %94, 0
  br i1 %.not101.peel.not, label %.thread106, label %.preheader.peel.newph

.preheader.peel.newph:                            ; preds = %.preheader
  %95 = sext i32 %89 to i64
  %96 = getelementptr inbounds %struct.L3_gr_info_t, ptr %74, i64 %95
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(4608) %85, i8 0, i64 4608, i1 false)
  call void @L3_decode(ptr noundef %0, ptr noundef nonnull %8, ptr noundef nonnull %96, i32 noundef %89)
  %97 = load i32, ptr %49, align 4, !tbaa !15
  call void @mp3d_synth_granule(ptr noundef nonnull %86, ptr noundef nonnull %85, i32 noundef 18, i32 noundef %97, ptr noundef nonnull %92, ptr noundef nonnull %87)
  br label %.thread106

.thread106:                                       ; preds = %.preheader, %.preheader.peel.newph, %83
  call void @L3_save_reservoir(ptr noundef %0, ptr noundef nonnull %8)
  br label %154

98:                                               ; preds = %73, %77
  call void @mp3dec_init(ptr noundef nonnull %0)
  br label %157

99:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 900, ptr nonnull %9) #3
  call void @L12_read_scale_info(ptr noundef nonnull %40, ptr noundef nonnull %7, ptr noundef nonnull %9)
  %100 = getelementptr inbounds i8, ptr %8, i64 2960
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(4608) %100, i8 0, i64 4608, i1 false)
  %101 = getelementptr inbounds i8, ptr %0, i64 2304
  %102 = getelementptr inbounds i8, ptr %8, i64 7728
  %103 = getelementptr inbounds i8, ptr %7, i64 8
  %104 = getelementptr inbounds i8, ptr %7, i64 12
  %105 = load i32, ptr %57, align 4, !tbaa !17
  %106 = or i32 %105, 1
  %107 = call i32 @L12_dequantize_granule(ptr noundef nonnull %100, ptr noundef nonnull %7, ptr noundef nonnull %9, i32 noundef %106)
  %108 = icmp eq i32 %107, 12
  br i1 %108, label %143, label %149

109:                                              ; preds = %149
  %110 = sext i32 %.288 to i64
  %111 = getelementptr inbounds float, ptr %100, i64 %110
  %112 = load i32, ptr %57, align 4, !tbaa !17
  %113 = or i32 %112, 1
  %114 = call i32 @L12_dequantize_granule(ptr noundef nonnull %111, ptr noundef nonnull %7, ptr noundef nonnull %9, i32 noundef %113)
  %115 = add nsw i32 %114, %.288
  %116 = icmp eq i32 %115, 12
  br i1 %116, label %117, label %124

117:                                              ; preds = %109
  %118 = getelementptr inbounds i8, ptr %9, i64 4
  call void @L12_apply_scf_384(ptr noundef nonnull %9, ptr noundef nonnull %118, ptr noundef nonnull %100)
  %119 = load i32, ptr %49, align 4, !tbaa !15
  call void @mp3d_synth_granule(ptr noundef nonnull %101, ptr noundef nonnull %100, i32 noundef 12, i32 noundef %119, ptr noundef %.281, ptr noundef nonnull %102)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(4608) %100, i8 0, i64 4608, i1 false)
  %120 = load i32, ptr %49, align 4, !tbaa !15
  %121 = mul nsw i32 %120, 384
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i16, ptr %.281, i64 %122
  br label %124

124:                                              ; preds = %117, %109
  %.288.1 = phi i32 [ 0, %117 ], [ %115, %109 ]
  %.281.1 = phi ptr [ %123, %117 ], [ %.281, %109 ]
  %125 = load i32, ptr %103, align 8, !tbaa !19
  %126 = load i32, ptr %104, align 4, !tbaa !22
  %127 = icmp sgt i32 %125, %126
  br i1 %127, label %153, label %128

128:                                              ; preds = %124
  %129 = sext i32 %.288.1 to i64
  %130 = getelementptr inbounds float, ptr %100, i64 %129
  %131 = load i32, ptr %57, align 4, !tbaa !17
  %132 = or i32 %131, 1
  %133 = call i32 @L12_dequantize_granule(ptr noundef nonnull %130, ptr noundef nonnull %7, ptr noundef nonnull %9, i32 noundef %132)
  %134 = add nsw i32 %133, %.288.1
  %135 = icmp eq i32 %134, 12
  br i1 %135, label %136, label %139

136:                                              ; preds = %128
  %137 = getelementptr inbounds i8, ptr %9, i64 8
  call void @L12_apply_scf_384(ptr noundef nonnull %9, ptr noundef nonnull %137, ptr noundef nonnull %100)
  %138 = load i32, ptr %49, align 4, !tbaa !15
  call void @mp3d_synth_granule(ptr noundef nonnull %101, ptr noundef nonnull %100, i32 noundef 12, i32 noundef %138, ptr noundef %.281.1, ptr noundef nonnull %102)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(4608) %100, i8 0, i64 4608, i1 false)
  br label %139

139:                                              ; preds = %136, %128
  %140 = load i32, ptr %103, align 8, !tbaa !19
  %141 = load i32, ptr %104, align 4, !tbaa !22
  %142 = icmp sgt i32 %140, %141
  br i1 %142, label %153, label %.critedge

.critedge:                                        ; preds = %139
  call void @llvm.lifetime.end.p0(i64 900, ptr nonnull %9) #3
  br label %154

143:                                              ; preds = %99
  call void @L12_apply_scf_384(ptr noundef nonnull %9, ptr noundef nonnull %9, ptr noundef nonnull %100)
  %144 = load i32, ptr %49, align 4, !tbaa !15
  call void @mp3d_synth_granule(ptr noundef nonnull %101, ptr noundef nonnull %100, i32 noundef 12, i32 noundef %144, ptr noundef nonnull %3, ptr noundef nonnull %102)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(4608) %100, i8 0, i64 4608, i1 false)
  %145 = load i32, ptr %49, align 4, !tbaa !15
  %146 = mul nsw i32 %145, 384
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i16, ptr %3, i64 %147
  br label %149

149:                                              ; preds = %143, %99
  %.288 = phi i32 [ 0, %143 ], [ %107, %99 ]
  %.281 = phi ptr [ %148, %143 ], [ %3, %99 ]
  %150 = load i32, ptr %103, align 8, !tbaa !19
  %151 = load i32, ptr %104, align 4, !tbaa !22
  %152 = icmp sgt i32 %150, %151
  br i1 %152, label %153, label %109

153:                                              ; preds = %139, %124, %149
  call void @mp3dec_init(ptr noundef nonnull %0)
  call void @llvm.lifetime.end.p0(i64 900, ptr nonnull %9) #3
  br label %157

154:                                              ; preds = %.thread106, %.critedge
  %.183 = phi i32 [ 1, %.critedge ], [ %84, %.thread106 ]
  %155 = call i32 @hdr_frame_samples(ptr noundef nonnull %41)
  %156 = mul i32 %155, %.183
  br label %157

157:                                              ; preds = %153, %98, %154, %60, %37
  %.2 = phi i32 [ %156, %154 ], [ 0, %98 ], [ 0, %153 ], [ %61, %60 ], [ 0, %37 ]
  call void @llvm.lifetime.end.p0(i64 16256, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  ret i32 %.2
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_compare(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_frame_bytes(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_padding(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mp3d_find_frame(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_sample_rate_hz(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_bitrate_kbps(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @hdr_frame_samples(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @bs_init(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @get_bits(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @L3_read_side_info(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @L3_restore_reservoir(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @L3_decode(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @mp3d_synth_granule(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @L3_save_reservoir(ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden void @L12_read_scale_info(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @L12_dequantize_granule(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @L12_apply_scf_384(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 6148}
!11 = !{!"", !7, i64 0, !7, i64 2304, !6, i64 6144, !6, i64 6148, !7, i64 6152, !7, i64 6156}
!12 = !{!13, !6, i64 0}
!13 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!14 = !{!13, !6, i64 4}
!15 = !{!13, !6, i64 8}
!16 = !{!13, !6, i64 12}
!17 = !{!13, !6, i64 16}
!18 = !{!13, !6, i64 20}
!19 = !{!20, !6, i64 8}
!20 = !{!"", !21, i64 0, !6, i64 8, !6, i64 12}
!21 = !{!"any pointer", !7, i64 0}
!22 = !{!20, !6, i64 12}


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