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

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

%struct.drflac_ogg_page_header = type { [4 x i8], i8, i8, i64, i32, i32, i32, i8, [255 x i8] }
%struct.drflac_streaminfo = type { i16, i16, i32, i32, i32, i8, i8, i64, [16 x i8] }
%struct.drflac_metadata = type { i32, ptr, i32, %union.anon.5 }
%union.anon.5 = type { %struct.anon.10 }
%struct.anon.10 = type { [128 x i8], i64, i32, i8, ptr }
%struct.drflac_init_info = type { ptr, ptr, ptr, i32, ptr, ptr, i32, i8, i8, i64, i16, i64, i32, i32, %struct.drflac_bs, %struct.drflac_frame_header, i32, i64, %struct.drflac_ogg_page_header }
%struct.drflac_bs = type { ptr, ptr, ptr, i64, i64, i32, i32, [512 x i64], i64, i16, i64, i32 }
%struct.drflac_frame_header = type { i64, i32, i32, i16, i8, i8, i8 }

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z25drflac__init_private__oggP16drflac_init_infoPFmPvS1_mEPFjS1_i18drflac_seek_originEPFvS1_P15drflac_metadataES1_S1_j(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #2 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.drflac_ogg_page_header, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca [4 x i8], align 1
  %24 = alloca [2 x i8], align 1
  %25 = alloca %struct.drflac_streaminfo, align 8
  %26 = alloca i8, align 1
  %27 = alloca i8, align 1
  %28 = alloca i32, align 4
  %29 = alloca %struct.drflac_metadata, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store i32 %6, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 288, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 1605413199, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.drflac_init_info, ptr %30, i32 0, i32 3
  store i32 1, ptr %31, align 8, !tbaa !11
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.drflac_init_info, ptr %32, i32 0, i32 17
  store i64 0, ptr %33, align 8, !tbaa !19
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = call noundef i32 @_Z50drflac_ogg__read_page_header_after_capture_patternPFmPvS_mES_P22drflac_ogg_page_headerPjS4_(ptr noundef %34, ptr noundef %35, ptr noundef %16, ptr noundef %18, ptr noundef %17)
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %7
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %282

39:                                               ; preds = %7
  %40 = load i32, ptr %18, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.drflac_init_info, ptr %42, i32 0, i32 11
  %44 = load i64, ptr %43, align 8, !tbaa !20
  %45 = add i64 %44, %41
  store i64 %45, ptr %43, align 8, !tbaa !20
  br label %46

46:                                               ; preds = %278, %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %47 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %16, i32 0, i32 2
  %48 = load i8, ptr %47, align 1, !tbaa !21
  %49 = zext i8 %48 to i32
  %50 = and i32 %49, 2
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %46
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %276

53:                                               ; preds = %46
  %54 = call noundef i32 @_ZL30drflac_ogg__get_page_body_sizeP22drflac_ogg_page_header(ptr noundef %16)
  store i32 %54, ptr %20, align 4, !tbaa !9
  %55 = load i32, ptr %20, align 4, !tbaa !9
  %56 = icmp eq i32 %55, 51
  br i1 %56, label %57, label %249

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %58 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %58, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = call noundef i64 %59(ptr noundef %60, ptr noundef %22, i64 noundef 1)
  %62 = icmp ne i64 %61, 1
  br i1 %62, label %63, label %64

63:                                               ; preds = %57
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %246

64:                                               ; preds = %57
  %65 = load i32, ptr %21, align 4, !tbaa !9
  %66 = sub i32 %65, 1
  store i32 %66, ptr %21, align 4, !tbaa !9
  %67 = load i8, ptr %22, align 1, !tbaa !22
  %68 = zext i8 %67 to i32
  %69 = icmp eq i32 %68, 127
  br i1 %69, label %70, label %237

70:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = getelementptr inbounds [4 x i8], ptr %23, i64 0, i64 0
  %74 = call noundef i64 %71(ptr noundef %72, ptr noundef %73, i64 noundef 4)
  %75 = icmp ne i64 %74, 4
  br i1 %75, label %76, label %77

76:                                               ; preds = %70
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %234

77:                                               ; preds = %70
  %78 = load i32, ptr %21, align 4, !tbaa !9
  %79 = sub i32 %78, 4
  store i32 %79, ptr %21, align 4, !tbaa !9
  %80 = getelementptr inbounds [4 x i8], ptr %23, i64 0, i64 0
  %81 = load i8, ptr %80, align 1, !tbaa !22
  %82 = zext i8 %81 to i32
  %83 = icmp eq i32 %82, 70
  br i1 %83, label %84, label %225

84:                                               ; preds = %77
  %85 = getelementptr inbounds [4 x i8], ptr %23, i64 0, i64 1
  %86 = load i8, ptr %85, align 1, !tbaa !22
  %87 = zext i8 %86 to i32
  %88 = icmp eq i32 %87, 76
  br i1 %88, label %89, label %225

89:                                               ; preds = %84
  %90 = getelementptr inbounds [4 x i8], ptr %23, i64 0, i64 2
  %91 = load i8, ptr %90, align 1, !tbaa !22
  %92 = zext i8 %91 to i32
  %93 = icmp eq i32 %92, 65
  br i1 %93, label %94, label %225

94:                                               ; preds = %89
  %95 = getelementptr inbounds [4 x i8], ptr %23, i64 0, i64 3
  %96 = load i8, ptr %95, align 1, !tbaa !22
  %97 = zext i8 %96 to i32
  %98 = icmp eq i32 %97, 67
  br i1 %98, label %99, label %225

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #5
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = getelementptr inbounds [2 x i8], ptr %24, i64 0, i64 0
  %103 = call noundef i64 %100(ptr noundef %101, ptr noundef %102, i64 noundef 2)
  %104 = icmp ne i64 %103, 2
  br i1 %104, label %105, label %106

105:                                              ; preds = %99
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %224

106:                                              ; preds = %99
  %107 = getelementptr inbounds [2 x i8], ptr %24, i64 0, i64 0
  %108 = load i8, ptr %107, align 1, !tbaa !22
  %109 = zext i8 %108 to i32
  %110 = icmp ne i32 %109, 1
  br i1 %110, label %111, label %112

111:                                              ; preds = %106
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %224

112:                                              ; preds = %106
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = call noundef i32 %113(ptr noundef %114, i32 noundef 2, i32 noundef 1)
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %118, label %117

117:                                              ; preds = %112
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %224

118:                                              ; preds = %112
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = getelementptr inbounds [4 x i8], ptr %23, i64 0, i64 0
  %122 = call noundef i64 %119(ptr noundef %120, ptr noundef %121, i64 noundef 4)
  %123 = icmp ne i64 %122, 4
  br i1 %123, label %124, label %125

124:                                              ; preds = %118
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %224

125:                                              ; preds = %118
  %126 = getelementptr inbounds [4 x i8], ptr %23, i64 0, i64 0
  %127 = load i8, ptr %126, align 1, !tbaa !22
  %128 = zext i8 %127 to i32
  %129 = icmp eq i32 %128, 102
  br i1 %129, label %130, label %223

130:                                              ; preds = %125
  %131 = getelementptr inbounds [4 x i8], ptr %23, i64 0, i64 1
  %132 = load i8, ptr %131, align 1, !tbaa !22
  %133 = zext i8 %132 to i32
  %134 = icmp eq i32 %133, 76
  br i1 %134, label %135, label %223

135:                                              ; preds = %130
  %136 = getelementptr inbounds [4 x i8], ptr %23, i64 0, i64 2
  %137 = load i8, ptr %136, align 1, !tbaa !22
  %138 = zext i8 %137 to i32
  %139 = icmp eq i32 %138, 97
  br i1 %139, label %140, label %223

140:                                              ; preds = %135
  %141 = getelementptr inbounds [4 x i8], ptr %23, i64 0, i64 3
  %142 = load i8, ptr %141, align 1, !tbaa !22
  %143 = zext i8 %142 to i32
  %144 = icmp eq i32 %143, 67
  br i1 %144, label %145, label %223

145:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 48, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  %148 = call noundef i32 @_ZL36drflac__read_and_decode_block_headerPFmPvS_mES_PhS2_Pj(ptr noundef %146, ptr noundef %147, ptr noundef %26, ptr noundef %27, ptr noundef %28)
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %151, label %150

150:                                              ; preds = %145
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %222

151:                                              ; preds = %145
  %152 = load i8, ptr %27, align 1, !tbaa !22
  %153 = zext i8 %152 to i32
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %158, label %155

155:                                              ; preds = %151
  %156 = load i32, ptr %28, align 4, !tbaa !9
  %157 = icmp ne i32 %156, 34
  br i1 %157, label %158, label %159

158:                                              ; preds = %155, %151
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %222

159:                                              ; preds = %155
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = call noundef i32 @_Z23drflac__read_streaminfoPFmPvS_mES_P17drflac_streaminfo(ptr noundef %160, ptr noundef %161, ptr noundef %25)
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %221

164:                                              ; preds = %159
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.drflac_init_info, ptr %165, i32 0, i32 12
  store i32 1, ptr %166, align 8, !tbaa !23
  %167 = getelementptr inbounds %struct.drflac_streaminfo, ptr %25, i32 0, i32 4
  %168 = load i32, ptr %167, align 4, !tbaa !24
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.drflac_init_info, ptr %169, i32 0, i32 6
  store i32 %168, ptr %170, align 8, !tbaa !26
  %171 = getelementptr inbounds %struct.drflac_streaminfo, ptr %25, i32 0, i32 5
  %172 = load i8, ptr %171, align 8, !tbaa !27
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.drflac_init_info, ptr %173, i32 0, i32 7
  store i8 %172, ptr %174, align 4, !tbaa !28
  %175 = getelementptr inbounds %struct.drflac_streaminfo, ptr %25, i32 0, i32 6
  %176 = load i8, ptr %175, align 1, !tbaa !29
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.drflac_init_info, ptr %177, i32 0, i32 8
  store i8 %176, ptr %178, align 1, !tbaa !30
  %179 = getelementptr inbounds %struct.drflac_streaminfo, ptr %25, i32 0, i32 7
  %180 = load i64, ptr %179, align 8, !tbaa !31
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.drflac_init_info, ptr %181, i32 0, i32 9
  store i64 %180, ptr %182, align 8, !tbaa !32
  %183 = getelementptr inbounds %struct.drflac_streaminfo, ptr %25, i32 0, i32 1
  %184 = load i16, ptr %183, align 2, !tbaa !33
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.drflac_init_info, ptr %185, i32 0, i32 10
  store i16 %184, ptr %186, align 8, !tbaa !34
  %187 = load i8, ptr %26, align 1, !tbaa !22
  %188 = icmp ne i8 %187, 0
  %189 = xor i1 %188, true
  %190 = zext i1 %189 to i32
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.drflac_init_info, ptr %191, i32 0, i32 13
  store i32 %190, ptr %192, align 4, !tbaa !35
  %193 = load ptr, ptr %12, align 8, !tbaa !5
  %194 = icmp ne ptr %193, null
  br i1 %194, label %195, label %202

195:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 176, ptr %29) #5
  %196 = getelementptr inbounds %struct.drflac_metadata, ptr %29, i32 0, i32 0
  store i32 0, ptr %196, align 8, !tbaa !36
  %197 = getelementptr inbounds %struct.drflac_metadata, ptr %29, i32 0, i32 1
  store ptr null, ptr %197, align 8, !tbaa !38
  %198 = getelementptr inbounds %struct.drflac_metadata, ptr %29, i32 0, i32 2
  store i32 0, ptr %198, align 8, !tbaa !39
  %199 = getelementptr inbounds %struct.drflac_metadata, ptr %29, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %199, ptr align 8 %25, i64 48, i1 false), !tbaa.struct !40
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  call void %200(ptr noundef %201, ptr noundef %29)
  call void @llvm.lifetime.end.p0(i64 176, ptr %29) #5
  br label %202

202:                                              ; preds = %195, %164
  %203 = load i32, ptr %20, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.drflac_init_info, ptr %205, i32 0, i32 11
  %207 = load i64, ptr %206, align 8, !tbaa !20
  %208 = add i64 %207, %204
  store i64 %208, ptr %206, align 8, !tbaa !20
  %209 = load ptr, ptr %9, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.drflac_init_info, ptr %209, i32 0, i32 11
  %211 = load i64, ptr %210, align 8, !tbaa !20
  %212 = sub i64 %211, 79
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.drflac_init_info, ptr %213, i32 0, i32 17
  store i64 %212, ptr %214, align 8, !tbaa !19
  %215 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %16, i32 0, i32 4
  %216 = load i32, ptr %215, align 8, !tbaa !43
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.drflac_init_info, ptr %217, i32 0, i32 16
  store i32 %216, ptr %218, align 8, !tbaa !44
  %219 = load ptr, ptr %9, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.drflac_init_info, ptr %219, i32 0, i32 18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %220, ptr align 8 %16, i64 288, i1 false), !tbaa.struct !45
  store i32 2, ptr %19, align 4
  br label %222

221:                                              ; preds = %159
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %222

222:                                              ; preds = %221, %202, %158, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %25) #5
  br label %224

223:                                              ; preds = %140, %135, %130, %125
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %224

224:                                              ; preds = %223, %222, %124, %117, %111, %105
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #5
  br label %234

225:                                              ; preds = %94, %89, %84, %77
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = load ptr, ptr %13, align 8, !tbaa !5
  %228 = load i32, ptr %21, align 4, !tbaa !9
  %229 = call noundef i32 %226(ptr noundef %227, i32 noundef %228, i32 noundef 1)
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %232, label %231

231:                                              ; preds = %225
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %234

232:                                              ; preds = %225
  br label %233

233:                                              ; preds = %232
  store i32 0, ptr %19, align 4
  br label %234

234:                                              ; preds = %233, %231, %224, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  %235 = load i32, ptr %19, align 4
  switch i32 %235, label %246 [
    i32 0, label %236
  ]

236:                                              ; preds = %234
  br label %245

237:                                              ; preds = %64
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = load ptr, ptr %13, align 8, !tbaa !5
  %240 = load i32, ptr %21, align 4, !tbaa !9
  %241 = call noundef i32 %238(ptr noundef %239, i32 noundef %240, i32 noundef 1)
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %244, label %243

243:                                              ; preds = %237
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %246

244:                                              ; preds = %237
  br label %245

245:                                              ; preds = %244, %236
  store i32 0, ptr %19, align 4
  br label %246

246:                                              ; preds = %245, %243, %234, %63
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %247 = load i32, ptr %19, align 4
  switch i32 %247, label %276 [
    i32 0, label %248
  ]

248:                                              ; preds = %246
  br label %257

249:                                              ; preds = %53
  %250 = load ptr, ptr %11, align 8, !tbaa !5
  %251 = load ptr, ptr %13, align 8, !tbaa !5
  %252 = load i32, ptr %20, align 4, !tbaa !9
  %253 = call noundef i32 %250(ptr noundef %251, i32 noundef %252, i32 noundef 1)
  %254 = icmp ne i32 %253, 0
  br i1 %254, label %256, label %255

255:                                              ; preds = %249
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %276

256:                                              ; preds = %249
  br label %257

257:                                              ; preds = %256, %248
  %258 = load i32, ptr %20, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = load ptr, ptr %9, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.drflac_init_info, ptr %260, i32 0, i32 11
  %262 = load i64, ptr %261, align 8, !tbaa !20
  %263 = add i64 %262, %259
  store i64 %263, ptr %261, align 8, !tbaa !20
  %264 = load ptr, ptr %10, align 8, !tbaa !5
  %265 = load ptr, ptr %13, align 8, !tbaa !5
  %266 = call noundef i32 @_Z28drflac_ogg__read_page_headerPFmPvS_mES_P22drflac_ogg_page_headerPjS4_(ptr noundef %264, ptr noundef %265, ptr noundef %16, ptr noundef %18, ptr noundef %17)
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %268, label %269

268:                                              ; preds = %257
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %276

269:                                              ; preds = %257
  %270 = load i32, ptr %18, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = load ptr, ptr %9, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.drflac_init_info, ptr %272, i32 0, i32 11
  %274 = load i64, ptr %273, align 8, !tbaa !20
  %275 = add i64 %274, %271
  store i64 %275, ptr %273, align 8, !tbaa !20
  store i32 0, ptr %19, align 4
  br label %276

276:                                              ; preds = %269, %268, %255, %246, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  %277 = load i32, ptr %19, align 4
  switch i32 %277, label %282 [
    i32 0, label %278
    i32 2, label %279
  ]

278:                                              ; preds = %276
  br label %46, !llvm.loop !46

279:                                              ; preds = %276
  %280 = load ptr, ptr %9, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.drflac_init_info, ptr %280, i32 0, i32 13
  store i32 1, ptr %281, align 4, !tbaa !35
  store i32 1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %282

282:                                              ; preds = %279, %276, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 288, ptr %16) #5
  %283 = load i32, ptr %8, align 4
  ret i32 %283
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL30drflac_ogg__get_page_body_sizeP22drflac_ogg_page_header(ptr noundef) #4

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

!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, !13, i64 24}
!12 = !{!"_ZTS16drflac_init_info", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !7, i64 52, !7, i64 53, !14, i64 56, !15, i64 64, !14, i64 72, !10, i64 80, !10, i64 84, !16, i64 88, !17, i64 4264, !10, i64 4288, !14, i64 4296, !18, i64 4304}
!13 = !{!"_ZTS16drflac_container", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"_ZTS9drflac_bs", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !14, i64 32, !10, i64 40, !10, i64 44, !7, i64 48, !14, i64 4144, !15, i64 4152, !14, i64 4160, !10, i64 4168}
!17 = !{!"_ZTS19drflac_frame_header", !14, i64 0, !10, i64 8, !10, i64 12, !15, i64 16, !7, i64 18, !7, i64 19, !7, i64 20}
!18 = !{!"_ZTS22drflac_ogg_page_header", !7, i64 0, !7, i64 4, !7, i64 5, !14, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 28, !7, i64 29}
!19 = !{!12, !14, i64 4296}
!20 = !{!12, !14, i64 72}
!21 = !{!18, !7, i64 5}
!22 = !{!7, !7, i64 0}
!23 = !{!12, !10, i64 80}
!24 = !{!25, !10, i64 12}
!25 = !{!"_ZTS17drflac_streaminfo", !15, i64 0, !15, i64 2, !10, i64 4, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 17, !14, i64 24, !7, i64 32}
!26 = !{!12, !10, i64 48}
!27 = !{!25, !7, i64 16}
!28 = !{!12, !7, i64 52}
!29 = !{!25, !7, i64 17}
!30 = !{!12, !7, i64 53}
!31 = !{!25, !14, i64 24}
!32 = !{!12, !14, i64 56}
!33 = !{!25, !15, i64 2}
!34 = !{!12, !15, i64 64}
!35 = !{!12, !10, i64 84}
!36 = !{!37, !10, i64 0}
!37 = !{!"_ZTS15drflac_metadata", !10, i64 0, !6, i64 8, !10, i64 16, !7, i64 24}
!38 = !{!37, !6, i64 8}
!39 = !{!37, !10, i64 16}
!40 = !{i64 0, i64 2, !41, i64 2, i64 2, !41, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 1, !22, i64 17, i64 1, !22, i64 24, i64 8, !42, i64 32, i64 16, !22}
!41 = !{!15, !15, i64 0}
!42 = !{!14, !14, i64 0}
!43 = !{!18, !10, i64 16}
!44 = !{!12, !10, i64 4288}
!45 = !{i64 0, i64 4, !22, i64 4, i64 1, !22, i64 5, i64 1, !22, i64 8, i64 8, !42, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 28, i64 1, !22, i64 29, i64 255, !22}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}


; 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.drflac_ogg_page_header = type { [4 x i8], i8, i8, i64, i32, i32, i32, i8, [255 x i8] }
%struct.drflac_streaminfo = type { i16, i16, i32, i32, i32, i8, i8, i64, [16 x i8] }
%struct.drflac_metadata = type { i32, ptr, i32, %union.anon.5 }
%union.anon.5 = type { %struct.anon.10 }
%struct.anon.10 = type { [128 x i8], i64, i32, i8, ptr }

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z25drflac__init_private__oggP16drflac_init_infoPFmPvS1_mEPFjS1_i18drflac_seek_originEPFvS1_P15drflac_metadataES1_S1_j(ptr nocapture noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef readonly %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) local_unnamed_addr #2 {
  %8 = alloca %struct.drflac_ogg_page_header, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca [4 x i8], align 4
  %13 = alloca [2 x i8], align 1
  %14 = alloca %struct.drflac_streaminfo, align 8
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca %struct.drflac_metadata, align 8
  call void @llvm.lifetime.start.p0(i64 288, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store i32 1605413199, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 1, ptr %19, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %0, i64 4296
  store i64 0, ptr %20, align 8, !tbaa !18
  %21 = call noundef i32 @_Z50drflac_ogg__read_page_header_after_capture_patternPFmPvS_mES_P22drflac_ogg_page_headerPjS4_(ptr noundef %1, ptr noundef %4, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %9)
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %22, label %.thread113

22:                                               ; preds = %7
  %23 = load i32, ptr %10, align 4, !tbaa !5
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds i8, ptr %0, i64 72
  %26 = load i64, ptr %25, align 8, !tbaa !19
  %27 = add i64 %26, %24
  store i64 %27, ptr %25, align 8, !tbaa !19
  %28 = getelementptr inbounds i8, ptr %8, i64 5
  %29 = getelementptr inbounds i8, ptr %0, i64 80
  %30 = getelementptr inbounds i8, ptr %14, i64 12
  %31 = getelementptr inbounds i8, ptr %0, i64 48
  %32 = getelementptr inbounds i8, ptr %14, i64 16
  %33 = getelementptr inbounds i8, ptr %0, i64 52
  %34 = getelementptr inbounds i8, ptr %14, i64 17
  %35 = getelementptr inbounds i8, ptr %0, i64 53
  %36 = getelementptr inbounds i8, ptr %14, i64 24
  %37 = getelementptr inbounds i8, ptr %0, i64 56
  %38 = getelementptr inbounds i8, ptr %14, i64 2
  %39 = getelementptr inbounds i8, ptr %0, i64 64
  %40 = getelementptr inbounds i8, ptr %0, i64 84
  %.not103 = icmp eq ptr %3, null
  %41 = getelementptr inbounds i8, ptr %18, i64 8
  %42 = getelementptr inbounds i8, ptr %18, i64 16
  %43 = getelementptr inbounds i8, ptr %18, i64 24
  %44 = getelementptr inbounds i8, ptr %8, i64 16
  %45 = getelementptr inbounds i8, ptr %0, i64 4288
  %46 = getelementptr inbounds i8, ptr %0, i64 4304
  br label %47

47:                                               ; preds = %116, %22
  %48 = load i8, ptr %28, align 1, !tbaa !20
  %49 = and i8 %48, 2
  %50 = icmp eq i8 %49, 0
  br i1 %50, label %.thread113, label %51

51:                                               ; preds = %47
  %52 = call noundef i32 @_ZL30drflac_ogg__get_page_body_sizeP22drflac_ogg_page_header(ptr noundef nonnull %8)
  %53 = icmp eq i32 %52, 51
  br i1 %53, label %54, label %104

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  %55 = call noundef i64 %1(ptr noundef %4, ptr noundef nonnull %11, i64 noundef 1)
  %.not92 = icmp eq i64 %55, 1
  br i1 %.not92, label %56, label %.thread109

56:                                               ; preds = %54
  %57 = load i8, ptr %11, align 1, !tbaa !21
  %58 = icmp eq i8 %57, 127
  br i1 %58, label %59, label %101

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %60 = call noundef i64 %1(ptr noundef %4, ptr noundef nonnull %12, i64 noundef 4)
  %.not94 = icmp eq i64 %60, 4
  br i1 %.not94, label %61, label %.thread

61:                                               ; preds = %59
  %62 = load <4 x i8>, ptr %12, align 4
  %.fr = freeze <4 x i8> %62
  %.fr.scalar = bitcast <4 x i8> %.fr to i32
  %63 = icmp eq i32 %.fr.scalar, 1128352838
  br i1 %63, label %64, label %98

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %13) #5
  %65 = call noundef i64 %1(ptr noundef %4, ptr noundef nonnull %13, i64 noundef 2)
  %.not96 = icmp eq i64 %65, 2
  %66 = load i8, ptr %13, align 1
  %.not97 = icmp eq i8 %66, 1
  %or.cond105 = select i1 %.not96, i1 %.not97, i1 false
  br i1 %or.cond105, label %67, label %97

67:                                               ; preds = %64
  %68 = call noundef i32 %2(ptr noundef %4, i32 noundef 2, i32 noundef 1)
  %.not98 = icmp eq i32 %68, 0
  br i1 %.not98, label %97, label %69

69:                                               ; preds = %67
  %70 = call noundef i64 %1(ptr noundef %4, ptr noundef nonnull %12, i64 noundef 4)
  %.not99 = icmp eq i64 %70, 4
  %71 = load <4 x i8>, ptr %12, align 4
  %.fr115 = freeze <4 x i8> %71
  %.fr115.scalar = bitcast <4 x i8> %.fr115 to i32
  %72 = icmp eq i32 %.fr115.scalar, 1130450022
  %or.cond = and i1 %.not99, %72
  br i1 %or.cond, label %73, label %97

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  %74 = call noundef i32 @_ZL36drflac__read_and_decode_block_headerPFmPvS_mES_PhS2_Pj(ptr noundef %1, ptr noundef %4, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17)
  %.not100 = icmp eq i32 %74, 0
  br i1 %.not100, label %96, label %75

75:                                               ; preds = %73
  %76 = load i8, ptr %16, align 1, !tbaa !21
  %77 = icmp ne i8 %76, 0
  %78 = load i32, ptr %17, align 4
  %79 = icmp ne i32 %78, 34
  %or.cond26 = select i1 %77, i1 true, i1 %79
  br i1 %or.cond26, label %96, label %80

80:                                               ; preds = %75
  %81 = call noundef i32 @_Z23drflac__read_streaminfoPFmPvS_mES_P17drflac_streaminfo(ptr noundef %1, ptr noundef %4, ptr noundef nonnull %14)
  %.not101 = icmp eq i32 %81, 0
  br i1 %.not101, label %96, label %82

82:                                               ; preds = %80
  store i32 1, ptr %29, align 8, !tbaa !22
  %83 = load i32, ptr %30, align 4, !tbaa !23
  store i32 %83, ptr %31, align 8, !tbaa !25
  %84 = load i8, ptr %32, align 8, !tbaa !26
  store i8 %84, ptr %33, align 4, !tbaa !27
  %85 = load i8, ptr %34, align 1, !tbaa !28
  store i8 %85, ptr %35, align 1, !tbaa !29
  %86 = load i64, ptr %36, align 8, !tbaa !30
  store i64 %86, ptr %37, align 8, !tbaa !31
  %87 = load i16, ptr %38, align 2, !tbaa !32
  store i16 %87, ptr %39, align 8, !tbaa !33
  %88 = load i8, ptr %15, align 1, !tbaa !21
  %.not102 = icmp eq i8 %88, 0
  %89 = zext i1 %.not102 to i32
  store i32 %89, ptr %40, align 4, !tbaa !34
  br i1 %.not103, label %91, label %90

90:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 176, ptr nonnull %18) #5
  store i32 0, ptr %18, align 8, !tbaa !35
  store ptr null, ptr %41, align 8, !tbaa !37
  store i32 0, ptr %42, align 8, !tbaa !38
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %43, ptr noundef nonnull align 8 dereferenceable(48) %14, i64 48, i1 false), !tbaa.struct !39
  call void %3(ptr noundef %5, ptr noundef nonnull %18)
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %18) #5
  br label %91

91:                                               ; preds = %90, %82
  %92 = load i64, ptr %25, align 8, !tbaa !19
  %93 = add i64 %92, 51
  store i64 %93, ptr %25, align 8, !tbaa !19
  %94 = add i64 %92, -28
  store i64 %94, ptr %20, align 8, !tbaa !18
  %95 = load i32, ptr %44, align 8, !tbaa !42
  store i32 %95, ptr %45, align 8, !tbaa !43
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(288) %46, ptr noundef nonnull align 8 dereferenceable(288) %8, i64 288, i1 false), !tbaa.struct !44
  br label %96

96:                                               ; preds = %80, %75, %73, %91
  %.083 = phi i32 [ 2, %91 ], [ 1, %73 ], [ 1, %75 ], [ 1, %80 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #5
  br label %97

97:                                               ; preds = %69, %67, %64, %96
  %.184 = phi i32 [ %.083, %96 ], [ 1, %64 ], [ 1, %67 ], [ 1, %69 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %13) #5
  br label %.thread

98:                                               ; preds = %61
  %99 = call noundef i32 %2(ptr noundef %4, i32 noundef 46, i32 noundef 1)
  %.not95 = icmp eq i32 %99, 0
  br i1 %.not95, label %.thread, label %100

.thread:                                          ; preds = %97, %59, %98
  %.285.ph = phi i32 [ 1, %59 ], [ %.184, %97 ], [ 1, %98 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  br label %.thread109

100:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  br label %103

101:                                              ; preds = %56
  %102 = call noundef i32 %2(ptr noundef %4, i32 noundef 50, i32 noundef 1)
  %.not93 = icmp eq i32 %102, 0
  br i1 %.not93, label %.thread109, label %103

.thread109:                                       ; preds = %54, %101, %.thread
  %.386.ph = phi i32 [ %.285.ph, %.thread ], [ 1, %101 ], [ 1, %54 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  br label %116

103:                                              ; preds = %101, %100
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  br label %106

104:                                              ; preds = %51
  %105 = call noundef i32 %2(ptr noundef %4, i32 noundef %52, i32 noundef 1)
  %.not91 = icmp eq i32 %105, 0
  br i1 %.not91, label %.thread113, label %106

106:                                              ; preds = %103, %104
  %107 = sext i32 %52 to i64
  %108 = load i64, ptr %25, align 8, !tbaa !19
  %109 = add i64 %108, %107
  store i64 %109, ptr %25, align 8, !tbaa !19
  %110 = call noundef i32 @_Z28drflac_ogg__read_page_headerPFmPvS_mES_P22drflac_ogg_page_headerPjS4_(ptr noundef %1, ptr noundef %4, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %9)
  %.not104 = icmp eq i32 %110, 0
  br i1 %.not104, label %111, label %.thread113

111:                                              ; preds = %106
  %112 = load i32, ptr %10, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = load i64, ptr %25, align 8, !tbaa !19
  %115 = add i64 %114, %113
  store i64 %115, ptr %25, align 8, !tbaa !19
  br label %116

116:                                              ; preds = %.thread109, %111
  %.487 = phi i32 [ 0, %111 ], [ %.386.ph, %.thread109 ]
  switch i32 %.487, label %.thread113 [
    i32 0, label %47
    i32 2, label %117
  ], !llvm.loop !45

117:                                              ; preds = %116
  store i32 1, ptr %40, align 4, !tbaa !34
  br label %.thread113

.thread113:                                       ; preds = %106, %104, %47, %116, %7, %117
  %.8 = phi i32 [ 1, %117 ], [ 0, %7 ], [ 0, %116 ], [ 0, %47 ], [ 0, %104 ], [ 0, %106 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 288, ptr nonnull %8) #5
  ret i32 %.8
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL30drflac_ogg__get_page_body_sizeP22drflac_ogg_page_header(ptr noundef) local_unnamed_addr #4

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

!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, !12, i64 24}
!10 = !{!"_ZTS16drflac_init_info", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !11, i64 32, !11, i64 40, !6, i64 48, !7, i64 52, !7, i64 53, !13, i64 56, !14, i64 64, !13, i64 72, !6, i64 80, !6, i64 84, !15, i64 88, !16, i64 4264, !6, i64 4288, !13, i64 4296, !17, i64 4304}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_ZTS16drflac_container", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"_ZTS9drflac_bs", !11, i64 0, !11, i64 8, !11, i64 16, !13, i64 24, !13, i64 32, !6, i64 40, !6, i64 44, !7, i64 48, !13, i64 4144, !14, i64 4152, !13, i64 4160, !6, i64 4168}
!16 = !{!"_ZTS19drflac_frame_header", !13, i64 0, !6, i64 8, !6, i64 12, !14, i64 16, !7, i64 18, !7, i64 19, !7, i64 20}
!17 = !{!"_ZTS22drflac_ogg_page_header", !7, i64 0, !7, i64 4, !7, i64 5, !13, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !7, i64 28, !7, i64 29}
!18 = !{!10, !13, i64 4296}
!19 = !{!10, !13, i64 72}
!20 = !{!17, !7, i64 5}
!21 = !{!7, !7, i64 0}
!22 = !{!10, !6, i64 80}
!23 = !{!24, !6, i64 12}
!24 = !{!"_ZTS17drflac_streaminfo", !14, i64 0, !14, i64 2, !6, i64 4, !6, i64 8, !6, i64 12, !7, i64 16, !7, i64 17, !13, i64 24, !7, i64 32}
!25 = !{!10, !6, i64 48}
!26 = !{!24, !7, i64 16}
!27 = !{!10, !7, i64 52}
!28 = !{!24, !7, i64 17}
!29 = !{!10, !7, i64 53}
!30 = !{!24, !13, i64 24}
!31 = !{!10, !13, i64 56}
!32 = !{!24, !14, i64 2}
!33 = !{!10, !14, i64 64}
!34 = !{!10, !6, i64 84}
!35 = !{!36, !6, i64 0}
!36 = !{!"_ZTS15drflac_metadata", !6, i64 0, !11, i64 8, !6, i64 16, !7, i64 24}
!37 = !{!36, !11, i64 8}
!38 = !{!36, !6, i64 16}
!39 = !{i64 0, i64 2, !40, i64 2, i64 2, !40, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 1, !21, i64 17, i64 1, !21, i64 24, i64 8, !41, i64 32, i64 16, !21}
!40 = !{!14, !14, i64 0}
!41 = !{!13, !13, i64 0}
!42 = !{!17, !6, i64 16}
!43 = !{!10, !6, i64 4288}
!44 = !{i64 0, i64 4, !21, i64 4, i64 1, !21, i64 5, i64 1, !21, i64 8, i64 8, !41, i64 16, i64 4, !5, i64 20, i64 4, !5, i64 24, i64 4, !5, i64 28, i64 1, !21, i64 29, i64 255, !21}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass