; LLVM IR from dbry/wavpack-stream :: src (open_utils)

; 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.WavpackContext = type { %struct.WavpackStreamConfig, ptr, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i8, ptr, ptr, i32, i32, ptr, [8 x i8], ptr, [80 x i8] }
%struct.WavpackStreamConfig = type { float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [16 x i8], i8, i32, ptr }
%struct.WavpackReader64 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.WavpackStream = type { %struct.WavpackHeader, %struct.words_data, ptr, ptr, ptr, ptr, ptr, i64, i64, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, %struct.bs, %struct.bs, %struct.bs, float, i8, i8, i8, i8, i8, i8, i8, i8, %struct.anon, [16 x %struct.decorr_pass], %struct.decorr_pass, ptr, %struct.anon.0 }
%struct.WavpackHeader = type { [4 x i8], i16, i16, i32 }
%struct.words_data = type { [2 x i32], [2 x i32], i32, i32, i32, i32, i32, [2 x %struct.entropy_data] }
%struct.entropy_data = type { [3 x i32], i32, i32 }
%struct.bs = type { ptr, ptr, ptr, ptr, i32, i32, i32 }
%struct.anon = type { [2 x i32], [2 x i32], [2 x i32], double, double, double, ptr, ptr, i32 }
%struct.decorr_pass = type { i32, i32, i32, i32, [8 x i32], [8 x i32], i32, i32, i32, i32 }
%struct.anon.0 = type { ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, ptr, i32, i32, i32, [2 x %struct.DSDfilters], ptr }
%struct.DSDfilters = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [44 x i8], align 1
@sample_rates = external constant [16 x i32], align 16

; Function Attrs: nounwind uwtable
define dso_local ptr @WavpackStreamOpenFileInputEx64(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %20 = call noalias ptr @malloc(i64 noundef 440) #8
  store ptr %20, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %21 = load ptr, ptr %14, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %30, label %23

23:                                               ; preds = %6
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %29

26:                                               ; preds = %23
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = call ptr @strcpy(ptr noundef %27, ptr noundef @.str) #7
  br label %29

29:                                               ; preds = %26, %23
  store ptr null, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %509

30:                                               ; preds = %6
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 440, i1 false)
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.WavpackContext, ptr %33, i32 0, i32 10
  store ptr %32, ptr %34, align 8, !tbaa !11
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.WavpackContext, ptr %36, i32 0, i32 11
  store ptr %35, ptr %37, align 8, !tbaa !16
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.WavpackContext, ptr %39, i32 0, i32 9
  store ptr %38, ptr %40, align 8, !tbaa !17
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.WavpackContext, ptr %41, i32 0, i32 16
  store i64 -1, ptr %42, align 8, !tbaa !18
  %43 = load i32, ptr %13, align 4, !tbaa !9
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.WavpackContext, ptr %44, i32 0, i32 22
  store i32 %43, ptr %45, align 8, !tbaa !19
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.WavpackContext, ptr %46, i32 0, i32 35
  store i32 8, ptr %47, align 4, !tbaa !20
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.WavpackContext, ptr %49, i32 0, i32 21
  store i32 %48, ptr %50, align 4, !tbaa !21
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.WavpackContext, ptr %51, i32 0, i32 9
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %54 = getelementptr inbounds %struct.WavpackReader64, ptr %53, i32 0, i32 6
  %55 = load ptr, ptr %54, align 8, !tbaa !22
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.WavpackContext, ptr %56, i32 0, i32 10
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = call i64 %55(ptr noundef %58)
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.WavpackContext, ptr %60, i32 0, i32 12
  store i64 %59, ptr %61, align 8, !tbaa !24
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.WavpackContext, ptr %62, i32 0, i32 34
  store i32 1, ptr %63, align 8, !tbaa !25
  %64 = call noalias ptr @malloc(i64 noundef 8) #8
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.WavpackContext, ptr %65, i32 0, i32 36
  store ptr %64, ptr %66, align 8, !tbaa !26
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.WavpackContext, ptr %67, i32 0, i32 36
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  %70 = icmp ne ptr %69, null
  br i1 %70, label %80, label %71

71:                                               ; preds = %30
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %77

74:                                               ; preds = %71
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = call ptr @strcpy(ptr noundef %75, ptr noundef @.str) #7
  br label %77

77:                                               ; preds = %74, %71
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = call ptr @WavpackStreamCloseFile(ptr noundef %78)
  store ptr %79, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %509

80:                                               ; preds = %30
  %81 = call noalias ptr @malloc(i64 noundef 2240) #8
  store ptr %81, ptr %15, align 8, !tbaa !5
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.WavpackContext, ptr %82, i32 0, i32 36
  %84 = load ptr, ptr %83, align 8, !tbaa !26
  %85 = getelementptr inbounds ptr, ptr %84, i64 0
  store ptr %81, ptr %85, align 8, !tbaa !5
  %86 = load ptr, ptr %15, align 8, !tbaa !5
  %87 = icmp ne ptr %86, null
  br i1 %87, label %97, label %88

88:                                               ; preds = %80
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %94

91:                                               ; preds = %88
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = call ptr @strcpy(ptr noundef %92, ptr noundef @.str) #7
  br label %94

94:                                               ; preds = %91, %88
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = call ptr @WavpackStreamCloseFile(ptr noundef %95)
  store ptr %96, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %509

97:                                               ; preds = %80
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %98, i8 0, i64 2240, i1 false)
  br label %99

99:                                               ; preds = %352, %232, %97
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.WavpackStream, ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds %struct.WavpackHeader, ptr %101, i32 0, i32 2
  %103 = load i16, ptr %102, align 2, !tbaa !27
  %104 = icmp ne i16 %103, 0
  %105 = xor i1 %104, true
  br i1 %105, label %106, label %355

106:                                              ; preds = %99
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.WavpackContext, ptr %107, i32 0, i32 9
  %109 = load ptr, ptr %108, align 8, !tbaa !17
  %110 = getelementptr inbounds %struct.WavpackReader64, ptr %109, i32 0, i32 2
  %111 = load ptr, ptr %110, align 8, !tbaa !37
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.WavpackContext, ptr %112, i32 0, i32 10
  %114 = load ptr, ptr %113, align 8, !tbaa !11
  %115 = call i64 %111(ptr noundef %114)
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.WavpackContext, ptr %116, i32 0, i32 14
  store i64 %115, ptr %117, align 8, !tbaa !38
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.WavpackContext, ptr %118, i32 0, i32 9
  %120 = load ptr, ptr %119, align 8, !tbaa !17
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.WavpackContext, ptr %121, i32 0, i32 10
  %123 = load ptr, ptr %122, align 8, !tbaa !11
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.WavpackStream, ptr %124, i32 0, i32 0
  %126 = call i32 @read_next_header(ptr noundef %120, ptr noundef %123, ptr noundef %125)
  store i32 %126, ptr %17, align 4, !tbaa !9
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = icmp eq i32 %127, -1
  br i1 %128, label %139, label %129

129:                                              ; preds = %106
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.WavpackStream, ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds %struct.WavpackHeader, ptr %131, i32 0, i32 2
  %133 = load i16, ptr %132, align 2, !tbaa !27
  %134 = icmp ne i16 %133, 0
  br i1 %134, label %148, label %135

135:                                              ; preds = %129
  %136 = load i32, ptr %16, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %16, align 4, !tbaa !9
  %138 = icmp sgt i32 %136, 16
  br i1 %138, label %139, label %148

139:                                              ; preds = %135, %106
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = icmp ne ptr %140, null
  br i1 %141, label %142, label %145

142:                                              ; preds = %139
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = call ptr @strcpy(ptr noundef %143, ptr noundef @.str.1) #7
  br label %145

145:                                              ; preds = %142, %139
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = call ptr @WavpackStreamCloseFile(ptr noundef %146)
  store ptr %147, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %509

148:                                              ; preds = %135, %129
  %149 = load i32, ptr %17, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.WavpackContext, ptr %151, i32 0, i32 14
  %153 = load i64, ptr %152, align 8, !tbaa !38
  %154 = add nsw i64 %153, %150
  store i64 %154, ptr %152, align 8, !tbaa !38
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.WavpackStream, ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds %struct.WavpackHeader, ptr %156, i32 0, i32 1
  %158 = load i16, ptr %157, align 4, !tbaa !39
  %159 = zext i16 %158 to i32
  %160 = add nsw i32 %159, 6
  %161 = sext i32 %160 to i64
  %162 = call noalias ptr @malloc(i64 noundef %161) #8
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.WavpackStream, ptr %163, i32 0, i32 2
  store ptr %162, ptr %164, align 8, !tbaa !40
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.WavpackStream, ptr %165, i32 0, i32 2
  %167 = load ptr, ptr %166, align 8, !tbaa !40
  %168 = icmp ne ptr %167, null
  br i1 %168, label %178, label %169

169:                                              ; preds = %148
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = icmp ne ptr %170, null
  br i1 %171, label %172, label %175

172:                                              ; preds = %169
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = call ptr @strcpy(ptr noundef %173, ptr noundef @.str) #7
  br label %175

175:                                              ; preds = %172, %169
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  %177 = call ptr @WavpackStreamCloseFile(ptr noundef %176)
  store ptr %177, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %509

178:                                              ; preds = %148
  %179 = load ptr, ptr %15, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.WavpackStream, ptr %179, i32 0, i32 2
  %181 = load ptr, ptr %180, align 8, !tbaa !40
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.WavpackStream, ptr %182, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %181, ptr align 8 %183, i64 12, i1 false)
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.WavpackContext, ptr %184, i32 0, i32 9
  %186 = load ptr, ptr %185, align 8, !tbaa !17
  %187 = getelementptr inbounds %struct.WavpackReader64, ptr %186, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8, !tbaa !41
  %189 = load ptr, ptr %14, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.WavpackContext, ptr %189, i32 0, i32 10
  %191 = load ptr, ptr %190, align 8, !tbaa !11
  %192 = load ptr, ptr %15, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.WavpackStream, ptr %192, i32 0, i32 2
  %194 = load ptr, ptr %193, align 8, !tbaa !40
  %195 = getelementptr inbounds i8, ptr %194, i64 12
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.WavpackStream, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds %struct.WavpackHeader, ptr %197, i32 0, i32 1
  %199 = load i16, ptr %198, align 4, !tbaa !39
  %200 = zext i16 %199 to i64
  %201 = sub i64 %200, 6
  %202 = trunc i64 %201 to i32
  %203 = call i32 %188(ptr noundef %191, ptr noundef %195, i32 noundef %202)
  %204 = sext i32 %203 to i64
  %205 = load ptr, ptr %15, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.WavpackStream, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds %struct.WavpackHeader, ptr %206, i32 0, i32 1
  %208 = load i16, ptr %207, align 4, !tbaa !39
  %209 = zext i16 %208 to i64
  %210 = sub i64 %209, 6
  %211 = icmp ne i64 %204, %210
  br i1 %211, label %212, label %221

212:                                              ; preds = %178
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = icmp ne ptr %213, null
  br i1 %214, label %215, label %218

215:                                              ; preds = %212
  %216 = load ptr, ptr %11, align 8, !tbaa !5
  %217 = call ptr @strcpy(ptr noundef %216, ptr noundef @.str.2) #7
  br label %218

218:                                              ; preds = %215, %212
  %219 = load ptr, ptr %14, align 8, !tbaa !5
  %220 = call ptr @WavpackStreamCloseFile(ptr noundef %219)
  store ptr %220, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %509

221:                                              ; preds = %178
  %222 = load ptr, ptr %15, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.WavpackStream, ptr %222, i32 0, i32 2
  %224 = load ptr, ptr %223, align 8, !tbaa !40
  %225 = load i32, ptr %12, align 4, !tbaa !9
  %226 = and i32 %225, 2048
  %227 = icmp ne i32 %226, 0
  %228 = xor i1 %227, true
  %229 = zext i1 %228 to i32
  %230 = call i32 @WavpackStreamVerifySingleBlock(ptr noundef %224, i32 noundef %229)
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %245, label %232

232:                                              ; preds = %221
  %233 = load ptr, ptr %15, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.WavpackStream, ptr %233, i32 0, i32 0
  %235 = getelementptr inbounds %struct.WavpackHeader, ptr %234, i32 0, i32 2
  store i16 0, ptr %235, align 2, !tbaa !27
  %236 = load ptr, ptr %15, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.WavpackStream, ptr %236, i32 0, i32 2
  %238 = load ptr, ptr %237, align 8, !tbaa !40
  call void @free(ptr noundef %238) #7
  %239 = load ptr, ptr %15, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.WavpackStream, ptr %239, i32 0, i32 2
  store ptr null, ptr %240, align 8, !tbaa !40
  %241 = load ptr, ptr %14, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.WavpackContext, ptr %241, i32 0, i32 18
  %243 = load i32, ptr %242, align 8, !tbaa !42
  %244 = add i32 %243, 1
  store i32 %244, ptr %242, align 8, !tbaa !42
  br label %99, !llvm.loop !43

245:                                              ; preds = %221
  %246 = load ptr, ptr %15, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.WavpackStream, ptr %246, i32 0, i32 15
  store i8 0, ptr %247, align 1, !tbaa !45
  %248 = load ptr, ptr %14, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.WavpackContext, ptr %248, i32 0, i32 11
  %250 = load ptr, ptr %249, align 8, !tbaa !16
  %251 = icmp ne ptr %250, null
  br i1 %251, label %252, label %303

252:                                              ; preds = %245
  %253 = load ptr, ptr %15, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.WavpackStream, ptr %253, i32 0, i32 0
  %255 = getelementptr inbounds %struct.WavpackHeader, ptr %254, i32 0, i32 2
  %256 = load i16, ptr %255, align 2, !tbaa !27
  %257 = zext i16 %256 to i32
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %303

259:                                              ; preds = %252
  %260 = load ptr, ptr %15, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.WavpackStream, ptr %260, i32 0, i32 0
  %262 = getelementptr inbounds %struct.WavpackHeader, ptr %261, i32 0, i32 3
  %263 = load i32, ptr %262, align 8, !tbaa !46
  %264 = and i32 %263, 8
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %266, label %303

266:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  %267 = load ptr, ptr %14, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.WavpackContext, ptr %267, i32 0, i32 9
  %269 = load ptr, ptr %268, align 8, !tbaa !17
  %270 = getelementptr inbounds %struct.WavpackReader64, ptr %269, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8, !tbaa !41
  %272 = load ptr, ptr %14, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.WavpackContext, ptr %272, i32 0, i32 11
  %274 = load ptr, ptr %273, align 8, !tbaa !16
  %275 = call i32 %271(ptr noundef %274, ptr noundef %19, i32 noundef 1)
  %276 = icmp eq i32 %275, 1
  br i1 %276, label %277, label %302

277:                                              ; preds = %266
  %278 = load ptr, ptr %14, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.WavpackContext, ptr %278, i32 0, i32 9
  %280 = load ptr, ptr %279, align 8, !tbaa !17
  %281 = getelementptr inbounds %struct.WavpackReader64, ptr %280, i32 0, i32 5
  %282 = load ptr, ptr %281, align 8, !tbaa !47
  %283 = load ptr, ptr %14, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.WavpackContext, ptr %283, i32 0, i32 11
  %285 = load ptr, ptr %284, align 8, !tbaa !16
  %286 = load i8, ptr %19, align 1, !tbaa !48
  %287 = zext i8 %286 to i32
  %288 = call i32 %282(ptr noundef %285, i32 noundef %287)
  %289 = load ptr, ptr %14, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.WavpackContext, ptr %289, i32 0, i32 9
  %291 = load ptr, ptr %290, align 8, !tbaa !17
  %292 = getelementptr inbounds %struct.WavpackReader64, ptr %291, i32 0, i32 6
  %293 = load ptr, ptr %292, align 8, !tbaa !22
  %294 = load ptr, ptr %14, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.WavpackContext, ptr %294, i32 0, i32 11
  %296 = load ptr, ptr %295, align 8, !tbaa !16
  %297 = call i64 %293(ptr noundef %296)
  %298 = load ptr, ptr %14, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.WavpackContext, ptr %298, i32 0, i32 13
  store i64 %297, ptr %299, align 8, !tbaa !49
  %300 = load ptr, ptr %14, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.WavpackContext, ptr %300, i32 0, i32 20
  store i32 1, ptr %301, align 8, !tbaa !50
  br label %302

302:                                              ; preds = %277, %266
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %303

303:                                              ; preds = %302, %259, %252, %245
  %304 = load ptr, ptr %14, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.WavpackContext, ptr %304, i32 0, i32 20
  %306 = load i32, ptr %305, align 8, !tbaa !50
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %308, label %321

308:                                              ; preds = %303
  %309 = load ptr, ptr %14, align 8, !tbaa !5
  %310 = call i32 @read_wvc_block(ptr noundef %309)
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %321, label %312

312:                                              ; preds = %308
  %313 = load ptr, ptr %11, align 8, !tbaa !5
  %314 = icmp ne ptr %313, null
  br i1 %314, label %315, label %318

315:                                              ; preds = %312
  %316 = load ptr, ptr %11, align 8, !tbaa !5
  %317 = call ptr @strcpy(ptr noundef %316, ptr noundef @.str.3) #7
  br label %318

318:                                              ; preds = %315, %312
  %319 = load ptr, ptr %14, align 8, !tbaa !5
  %320 = call ptr @WavpackStreamCloseFile(ptr noundef %319)
  store ptr %320, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %509

321:                                              ; preds = %308, %303
  %322 = load ptr, ptr %15, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.WavpackStream, ptr %322, i32 0, i32 15
  %324 = load i8, ptr %323, align 1, !tbaa !45
  %325 = icmp ne i8 %324, 0
  br i1 %325, label %352, label %326

326:                                              ; preds = %321
  %327 = load ptr, ptr %14, align 8, !tbaa !5
  %328 = call i32 @unpack_init(ptr noundef %327)
  %329 = icmp ne i32 %328, 0
  br i1 %329, label %352, label %330

330:                                              ; preds = %326
  %331 = load ptr, ptr %11, align 8, !tbaa !5
  %332 = icmp ne ptr %331, null
  br i1 %332, label %333, label %349

333:                                              ; preds = %330
  %334 = load ptr, ptr %11, align 8, !tbaa !5
  %335 = load ptr, ptr %14, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.WavpackContext, ptr %335, i32 0, i32 46
  %337 = getelementptr inbounds [80 x i8], ptr %336, i64 0, i64 0
  %338 = load i8, ptr %337, align 8, !tbaa !48
  %339 = sext i8 %338 to i32
  %340 = icmp ne i32 %339, 0
  br i1 %340, label %341, label %345

341:                                              ; preds = %333
  %342 = load ptr, ptr %14, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.WavpackContext, ptr %342, i32 0, i32 46
  %344 = getelementptr inbounds [80 x i8], ptr %343, i64 0, i64 0
  br label %346

345:                                              ; preds = %333
  br label %346

346:                                              ; preds = %345, %341
  %347 = phi ptr [ %344, %341 ], [ @.str.1, %345 ]
  %348 = call ptr @strcpy(ptr noundef %334, ptr noundef %347) #7
  br label %349

349:                                              ; preds = %346, %330
  %350 = load ptr, ptr %14, align 8, !tbaa !5
  %351 = call ptr @WavpackStreamCloseFile(ptr noundef %350)
  store ptr %351, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %509

352:                                              ; preds = %326, %321
  %353 = load ptr, ptr %15, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.WavpackStream, ptr %353, i32 0, i32 15
  store i8 1, ptr %354, align 1, !tbaa !45
  br label %99, !llvm.loop !43

355:                                              ; preds = %99
  %356 = load ptr, ptr %14, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.WavpackContext, ptr %356, i32 0, i32 0
  %358 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %357, i32 0, i32 5
  %359 = load i32, ptr %358, align 4, !tbaa !51
  %360 = and i32 %359, -256
  store i32 %360, ptr %358, align 4, !tbaa !51
  %361 = load ptr, ptr %15, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.WavpackStream, ptr %361, i32 0, i32 0
  %363 = getelementptr inbounds %struct.WavpackHeader, ptr %362, i32 0, i32 3
  %364 = load i32, ptr %363, align 8, !tbaa !46
  %365 = and i32 %364, 255
  %366 = load ptr, ptr %14, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.WavpackContext, ptr %366, i32 0, i32 0
  %368 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %367, i32 0, i32 5
  %369 = load i32, ptr %368, align 4, !tbaa !51
  %370 = or i32 %369, %365
  store i32 %370, ptr %368, align 4, !tbaa !51
  %371 = load ptr, ptr %14, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.WavpackContext, ptr %371, i32 0, i32 0
  %373 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %372, i32 0, i32 7
  %374 = load i32, ptr %373, align 4, !tbaa !52
  %375 = icmp ne i32 %374, 0
  br i1 %375, label %396, label %376

376:                                              ; preds = %355
  %377 = load ptr, ptr %15, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.WavpackStream, ptr %377, i32 0, i32 0
  %379 = getelementptr inbounds %struct.WavpackHeader, ptr %378, i32 0, i32 3
  %380 = load i32, ptr %379, align 8, !tbaa !46
  %381 = and i32 %380, 4
  %382 = icmp ne i32 %381, 0
  %383 = zext i1 %382 to i64
  %384 = select i1 %382, i32 1, i32 2
  %385 = load ptr, ptr %14, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.WavpackContext, ptr %385, i32 0, i32 0
  %387 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %386, i32 0, i32 7
  store i32 %384, ptr %387, align 4, !tbaa !52
  %388 = load ptr, ptr %14, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.WavpackContext, ptr %388, i32 0, i32 0
  %390 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %389, i32 0, i32 7
  %391 = load i32, ptr %390, align 4, !tbaa !52
  %392 = sub nsw i32 5, %391
  %393 = load ptr, ptr %14, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.WavpackContext, ptr %393, i32 0, i32 0
  %395 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %394, i32 0, i32 13
  store i32 %392, ptr %395, align 4, !tbaa !53
  br label %396

396:                                              ; preds = %376, %355
  %397 = load i32, ptr %12, align 4, !tbaa !9
  %398 = and i32 %397, 8
  %399 = icmp ne i32 %398, 0
  br i1 %399, label %400, label %418

400:                                              ; preds = %396
  %401 = load ptr, ptr %15, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.WavpackStream, ptr %401, i32 0, i32 0
  %403 = getelementptr inbounds %struct.WavpackHeader, ptr %402, i32 0, i32 3
  %404 = load i32, ptr %403, align 8, !tbaa !46
  %405 = and i32 %404, 4096
  %406 = icmp ne i32 %405, 0
  br i1 %406, label %418, label %407

407:                                              ; preds = %400
  %408 = load ptr, ptr %15, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.WavpackStream, ptr %408, i32 0, i32 0
  %410 = getelementptr inbounds %struct.WavpackHeader, ptr %409, i32 0, i32 3
  %411 = load i32, ptr %410, align 8, !tbaa !46
  %412 = and i32 %411, 4
  %413 = icmp ne i32 %412, 0
  %414 = zext i1 %413 to i64
  %415 = select i1 %413, i32 1, i32 2
  %416 = load ptr, ptr %14, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.WavpackContext, ptr %416, i32 0, i32 23
  store i32 %415, ptr %417, align 4, !tbaa !54
  br label %418

418:                                              ; preds = %407, %400, %396
  %419 = load ptr, ptr %15, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.WavpackStream, ptr %419, i32 0, i32 0
  %421 = getelementptr inbounds %struct.WavpackHeader, ptr %420, i32 0, i32 3
  %422 = load i32, ptr %421, align 8, !tbaa !46
  %423 = and i32 %422, -2147483648
  %424 = icmp ne i32 %423, 0
  br i1 %424, label %425, label %434

425:                                              ; preds = %418
  %426 = load ptr, ptr %11, align 8, !tbaa !5
  %427 = icmp ne ptr %426, null
  br i1 %427, label %428, label %431

428:                                              ; preds = %425
  %429 = load ptr, ptr %11, align 8, !tbaa !5
  %430 = call ptr @strcpy(ptr noundef %429, ptr noundef @.str.4) #7
  br label %431

431:                                              ; preds = %428, %425
  %432 = load ptr, ptr %14, align 8, !tbaa !5
  %433 = call ptr @WavpackStreamCloseFile(ptr noundef %432)
  store ptr %433, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %509

434:                                              ; preds = %418
  %435 = load ptr, ptr %15, align 8, !tbaa !5
  %436 = getelementptr inbounds %struct.WavpackStream, ptr %435, i32 0, i32 0
  %437 = getelementptr inbounds %struct.WavpackHeader, ptr %436, i32 0, i32 3
  %438 = load i32, ptr %437, align 8, !tbaa !46
  %439 = and i32 %438, 3
  %440 = add i32 %439, 1
  %441 = load ptr, ptr %14, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.WavpackContext, ptr %441, i32 0, i32 0
  %443 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %442, i32 0, i32 3
  store i32 %440, ptr %443, align 4, !tbaa !55
  %444 = load ptr, ptr %15, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.WavpackStream, ptr %444, i32 0, i32 38
  %446 = load i8, ptr %445, align 1, !tbaa !56
  %447 = zext i8 %446 to i32
  %448 = load ptr, ptr %14, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.WavpackContext, ptr %448, i32 0, i32 0
  %450 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %449, i32 0, i32 8
  store i32 %447, ptr %450, align 8, !tbaa !57
  %451 = load ptr, ptr %14, align 8, !tbaa !5
  %452 = getelementptr inbounds %struct.WavpackContext, ptr %451, i32 0, i32 0
  %453 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %452, i32 0, i32 3
  %454 = load i32, ptr %453, align 4, !tbaa !55
  %455 = mul nsw i32 %454, 8
  %456 = sext i32 %455 to i64
  %457 = load ptr, ptr %15, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.WavpackStream, ptr %457, i32 0, i32 0
  %459 = getelementptr inbounds %struct.WavpackHeader, ptr %458, i32 0, i32 3
  %460 = load i32, ptr %459, align 8, !tbaa !46
  %461 = zext i32 %460 to i64
  %462 = and i64 %461, 253952
  %463 = ashr i64 %462, 13
  %464 = sub nsw i64 %456, %463
  %465 = trunc i64 %464 to i32
  %466 = load ptr, ptr %14, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct.WavpackContext, ptr %466, i32 0, i32 0
  %468 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %467, i32 0, i32 2
  store i32 %465, ptr %468, align 8, !tbaa !58
  br label %469

469:                                              ; preds = %434
  %470 = load ptr, ptr %14, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.WavpackContext, ptr %470, i32 0, i32 0
  %472 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %471, i32 0, i32 12
  %473 = load i32, ptr %472, align 8, !tbaa !59
  %474 = icmp ne i32 %473, 0
  br i1 %474, label %507, label %475

475:                                              ; preds = %469
  %476 = load ptr, ptr %15, align 8, !tbaa !5
  %477 = getelementptr inbounds %struct.WavpackStream, ptr %476, i32 0, i32 0
  %478 = getelementptr inbounds %struct.WavpackHeader, ptr %477, i32 0, i32 2
  %479 = load i16, ptr %478, align 2, !tbaa !27
  %480 = icmp ne i16 %479, 0
  br i1 %480, label %481, label %489

481:                                              ; preds = %475
  %482 = load ptr, ptr %15, align 8, !tbaa !5
  %483 = getelementptr inbounds %struct.WavpackStream, ptr %482, i32 0, i32 0
  %484 = getelementptr inbounds %struct.WavpackHeader, ptr %483, i32 0, i32 3
  %485 = load i32, ptr %484, align 8, !tbaa !46
  %486 = zext i32 %485 to i64
  %487 = and i64 %486, 125829120
  %488 = icmp eq i64 %487, 125829120
  br i1 %488, label %489, label %493

489:                                              ; preds = %481, %475
  %490 = load ptr, ptr %14, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.WavpackContext, ptr %490, i32 0, i32 0
  %492 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %491, i32 0, i32 12
  store i32 44100, ptr %492, align 8, !tbaa !59
  br label %506

493:                                              ; preds = %481
  %494 = load ptr, ptr %15, align 8, !tbaa !5
  %495 = getelementptr inbounds %struct.WavpackStream, ptr %494, i32 0, i32 0
  %496 = getelementptr inbounds %struct.WavpackHeader, ptr %495, i32 0, i32 3
  %497 = load i32, ptr %496, align 8, !tbaa !46
  %498 = zext i32 %497 to i64
  %499 = and i64 %498, 125829120
  %500 = ashr i64 %499, 23
  %501 = getelementptr inbounds [16 x i32], ptr @sample_rates, i64 0, i64 %500
  %502 = load i32, ptr %501, align 4, !tbaa !9
  %503 = load ptr, ptr %14, align 8, !tbaa !5
  %504 = getelementptr inbounds %struct.WavpackContext, ptr %503, i32 0, i32 0
  %505 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %504, i32 0, i32 12
  store i32 %502, ptr %505, align 8, !tbaa !59
  br label %506

506:                                              ; preds = %493, %489
  br label %507

507:                                              ; preds = %506, %469
  %508 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %508, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %509

509:                                              ; preds = %507, %431, %349, %318, %218, %175, %145, %94, %77, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %510 = load ptr, ptr %7, align 8
  ret ptr %510
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #3

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

declare ptr @WavpackStreamCloseFile(ptr noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local i32 @read_next_header(ptr 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) #6

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; 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 dso_local i32 @read_wvc_block(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @unpack_init(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 = { nounwind allocsize(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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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 = !{!12, !6, i64 152}
!12 = !{!"WavpackContext", !13, i64 0, !6, i64 88, !10, i64 96, !10, i64 100, !6, i64 104, !10, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !15, i64 200, !15, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !6, i64 288, !6, i64 296, !7, i64 304, !6, i64 312, !6, i64 320, !10, i64 328, !10, i64 332, !6, i64 336, !7, i64 344, !6, i64 352, !7, i64 360}
!13 = !{!"", !14, i64 0, !14, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !7, i64 56, !7, i64 72, !10, i64 76, !6, i64 80}
!14 = !{!"float", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!12, !6, i64 160}
!17 = !{!12, !6, i64 144}
!18 = !{!12, !15, i64 200}
!19 = !{!12, !10, i64 232}
!20 = !{!12, !10, i64 284}
!21 = !{!12, !10, i64 228}
!22 = !{!23, !6, i64 48}
!23 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!24 = !{!12, !15, i64 168}
!25 = !{!12, !10, i64 280}
!26 = !{!12, !6, i64 288}
!27 = !{!28, !30, i64 6}
!28 = !{!"", !29, i64 0, !31, i64 12, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !15, i64 128, !15, i64 136, !10, i64 144, !10, i64 148, !10, i64 152, !7, i64 156, !7, i64 157, !7, i64 158, !7, i64 159, !7, i64 160, !7, i64 161, !7, i64 162, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !32, i64 200, !32, i64 248, !32, i64 296, !14, i64 344, !7, i64 348, !7, i64 349, !7, i64 350, !7, i64 351, !7, i64 352, !7, i64 353, !7, i64 354, !7, i64 355, !33, i64 360, !7, i64 432, !35, i64 1968, !6, i64 2064, !36, i64 2072}
!29 = !{!"", !7, i64 0, !30, i64 4, !30, i64 6, !10, i64 8}
!30 = !{!"short", !7, i64 0}
!31 = !{!"words_data", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !7, i64 36}
!32 = !{!"bs", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40}
!33 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !34, i64 24, !34, i64 32, !34, i64 40, !6, i64 48, !6, i64 56, !10, i64 64}
!34 = !{!"double", !7, i64 0}
!35 = !{!"decorr_pass", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 48, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92}
!36 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !7, i64 40, !7, i64 41, !10, i64 44, !10, i64 48, !10, i64 52, !6, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !7, i64 76, !6, i64 160}
!37 = !{!23, !6, i64 16}
!38 = !{!12, !15, i64 184}
!39 = !{!28, !30, i64 4}
!40 = !{!28, !6, i64 88}
!41 = !{!23, !6, i64 0}
!42 = !{!12, !10, i64 216}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = !{!28, !7, i64 159}
!46 = !{!28, !10, i64 8}
!47 = !{!23, !6, i64 40}
!48 = !{!7, !7, i64 0}
!49 = !{!12, !15, i64 176}
!50 = !{!12, !10, i64 224}
!51 = !{!12, !10, i64 20}
!52 = !{!12, !10, i64 28}
!53 = !{!12, !10, i64 52}
!54 = !{!12, !10, i64 236}
!55 = !{!12, !10, i64 12}
!56 = !{!28, !7, i64 355}
!57 = !{!12, !10, i64 32}
!58 = !{!12, !10, i64 8}
!59 = !{!12, !10, i64 48}


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

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [44 x i8], align 1
@sample_rates = external local_unnamed_addr constant [16 x i32], align 16

; Function Attrs: nounwind uwtable
define dso_local ptr @WavpackStreamOpenFileInputEx64(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = alloca i8, align 1
  %calloc166 = tail call dereferenceable_or_null(440) ptr @calloc(i64 1, i64 440)
  %.not = icmp eq ptr %calloc166, null
  br i1 %.not, label %8, label %11

8:                                                ; preds = %6
  %.not131 = icmp eq ptr %3, null
  br i1 %.not131, label %203, label %9

9:                                                ; preds = %8
  %10 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str) #8
  br label %203

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %calloc166, i64 152
  store ptr %1, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %calloc166, i64 160
  store ptr %2, ptr %13, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %calloc166, i64 144
  store ptr %0, ptr %14, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %calloc166, i64 200
  store i64 -1, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %calloc166, i64 232
  store i32 %5, ptr %16, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %calloc166, i64 284
  store i32 8, ptr %17, align 4, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %calloc166, i64 228
  store i32 %4, ptr %18, align 4, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %0, i64 48
  %20 = load ptr, ptr %19, align 8, !tbaa !20
  %21 = tail call i64 %20(ptr noundef %1) #8
  %22 = getelementptr inbounds i8, ptr %calloc166, i64 168
  store i64 %21, ptr %22, align 8, !tbaa !22
  %23 = getelementptr inbounds i8, ptr %calloc166, i64 280
  store i32 1, ptr %23, align 8, !tbaa !23
  %24 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #9
  %25 = getelementptr inbounds i8, ptr %calloc166, i64 288
  store ptr %24, ptr %25, align 8, !tbaa !24
  %.not132 = icmp eq ptr %24, null
  br i1 %.not132, label %26, label %31

26:                                               ; preds = %11
  %.not133 = icmp eq ptr %3, null
  br i1 %.not133, label %29, label %27

27:                                               ; preds = %26
  %28 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str) #8
  br label %29

29:                                               ; preds = %27, %26
  %30 = tail call ptr @WavpackStreamCloseFile(ptr noundef nonnull %calloc166) #8
  br label %203

31:                                               ; preds = %11
  %calloc = tail call dereferenceable_or_null(2240) ptr @calloc(i64 1, i64 2240)
  store ptr %calloc, ptr %24, align 8, !tbaa !25
  %.not134 = icmp eq ptr %calloc, null
  br i1 %.not134, label %32, label %.lr.ph

32:                                               ; preds = %31
  %.not135 = icmp eq ptr %3, null
  br i1 %.not135, label %35, label %33

33:                                               ; preds = %32
  %34 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str) #8
  br label %35

35:                                               ; preds = %33, %32
  %36 = tail call ptr @WavpackStreamCloseFile(ptr noundef nonnull %calloc166) #8
  br label %203

.lr.ph:                                           ; preds = %31
  %37 = getelementptr inbounds i8, ptr %calloc, i64 6
  %38 = getelementptr inbounds i8, ptr %calloc166, i64 184
  %39 = getelementptr inbounds i8, ptr %calloc, i64 4
  %40 = getelementptr inbounds i8, ptr %calloc, i64 88
  %41 = lshr i32 %4, 11
  %.lobit = and i32 %41, 1
  %42 = xor i32 %.lobit, 1
  %43 = getelementptr inbounds i8, ptr %calloc, i64 159
  %44 = getelementptr inbounds i8, ptr %calloc, i64 8
  %45 = getelementptr inbounds i8, ptr %calloc166, i64 176
  %46 = getelementptr inbounds i8, ptr %calloc166, i64 224
  %47 = getelementptr inbounds i8, ptr %calloc166, i64 216
  br label %48

48:                                               ; preds = %.lr.ph, %.backedge
  %.0123165 = phi i32 [ 0, %.lr.ph ], [ %.1, %.backedge ]
  %49 = load ptr, ptr %14, align 8, !tbaa !15
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %51 = load ptr, ptr %50, align 8, !tbaa !26
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = call i64 %51(ptr noundef %52) #8
  store i64 %53, ptr %38, align 8, !tbaa !27
  %54 = load ptr, ptr %14, align 8, !tbaa !15
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = call i32 @read_next_header(ptr noundef %54, ptr noundef %55, ptr noundef nonnull %calloc)
  %57 = icmp eq i32 %56, -1
  br i1 %57, label %63, label %58

58:                                               ; preds = %48
  %59 = load i16, ptr %37, align 2, !tbaa !28
  %.not146 = icmp eq i16 %59, 0
  br i1 %.not146, label %60, label %68

60:                                               ; preds = %58
  %61 = add nsw i32 %.0123165, 1
  %62 = icmp sgt i32 %.0123165, 16
  br i1 %62, label %63, label %68

63:                                               ; preds = %60, %48
  %.not163 = icmp eq ptr %3, null
  br i1 %.not163, label %66, label %64

64:                                               ; preds = %63
  %65 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.1) #8
  br label %66

66:                                               ; preds = %64, %63
  %67 = call ptr @WavpackStreamCloseFile(ptr noundef nonnull %calloc166) #8
  br label %203

68:                                               ; preds = %60, %58
  %.1 = phi i32 [ %.0123165, %58 ], [ %61, %60 ]
  %69 = zext i32 %56 to i64
  %70 = load i64, ptr %38, align 8, !tbaa !27
  %71 = add nsw i64 %70, %69
  store i64 %71, ptr %38, align 8, !tbaa !27
  %72 = load i16, ptr %39, align 4, !tbaa !38
  %73 = zext i16 %72 to i64
  %74 = add nuw nsw i64 %73, 6
  %75 = call noalias ptr @malloc(i64 noundef %74) #9
  store ptr %75, ptr %40, align 8, !tbaa !39
  %.not147 = icmp eq ptr %75, null
  br i1 %.not147, label %76, label %81

76:                                               ; preds = %68
  %.not148 = icmp eq ptr %3, null
  br i1 %.not148, label %79, label %77

77:                                               ; preds = %76
  %78 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str) #8
  br label %79

79:                                               ; preds = %77, %76
  %80 = call ptr @WavpackStreamCloseFile(ptr noundef nonnull %calloc166) #8
  br label %203

81:                                               ; preds = %68
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %75, ptr noundef nonnull align 8 dereferenceable(12) %calloc, i64 12, i1 false)
  %82 = load ptr, ptr %14, align 8, !tbaa !15
  %83 = load ptr, ptr %82, align 8, !tbaa !40
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %75, i64 12
  %86 = zext i16 %72 to i32
  %87 = add nsw i32 %86, -6
  %88 = call i32 %83(ptr noundef %84, ptr noundef nonnull %85, i32 noundef %87) #8
  %89 = sext i32 %88 to i64
  %90 = load i16, ptr %39, align 4, !tbaa !38
  %91 = zext i16 %90 to i64
  %92 = add nsw i64 %91, -6
  %.not149 = icmp eq i64 %92, %89
  br i1 %.not149, label %98, label %93

93:                                               ; preds = %81
  %.not162 = icmp eq ptr %3, null
  br i1 %.not162, label %96, label %94

94:                                               ; preds = %93
  %95 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.2) #8
  br label %96

96:                                               ; preds = %94, %93
  %97 = call ptr @WavpackStreamCloseFile(ptr noundef nonnull %calloc166) #8
  br label %203

98:                                               ; preds = %81
  %99 = load ptr, ptr %40, align 8, !tbaa !39
  %100 = call i32 @WavpackStreamVerifySingleBlock(ptr noundef %99, i32 noundef %42)
  %.not151 = icmp eq i32 %100, 0
  br i1 %.not151, label %101, label %106

101:                                              ; preds = %98
  store i16 0, ptr %37, align 2, !tbaa !28
  %102 = load ptr, ptr %40, align 8, !tbaa !39
  call void @free(ptr noundef %102) #8
  store ptr null, ptr %40, align 8, !tbaa !39
  %103 = load i32, ptr %47, align 8, !tbaa !41
  %104 = add i32 %103, 1
  store i32 %104, ptr %47, align 8, !tbaa !41
  br label %.backedge

.backedge:                                        ; preds = %101, %153
  %105 = load i16, ptr %37, align 2, !tbaa !28
  %.not136 = icmp eq i16 %105, 0
  br i1 %.not136, label %48, label %._crit_edge, !llvm.loop !42

106:                                              ; preds = %98
  store i8 0, ptr %43, align 1, !tbaa !44
  %107 = load ptr, ptr %13, align 8, !tbaa !14
  %.not152 = icmp eq ptr %107, null
  br i1 %.not152, label %132, label %108

108:                                              ; preds = %106
  %109 = load i16, ptr %37, align 2, !tbaa !28
  %.not153 = icmp eq i16 %109, 0
  br i1 %.not153, label %132, label %110

110:                                              ; preds = %108
  %111 = load i32, ptr %44, align 8, !tbaa !45
  %112 = and i32 %111, 8
  %.not154 = icmp eq i32 %112, 0
  br i1 %.not154, label %132, label %113

113:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  %114 = load ptr, ptr %14, align 8, !tbaa !15
  %115 = load ptr, ptr %114, align 8, !tbaa !40
  %116 = call i32 %115(ptr noundef nonnull %107, ptr noundef nonnull %7, i32 noundef 1) #8
  %117 = icmp eq i32 %116, 1
  br i1 %117, label %118, label %131

118:                                              ; preds = %113
  %119 = load ptr, ptr %14, align 8, !tbaa !15
  %120 = getelementptr inbounds i8, ptr %119, i64 40
  %121 = load ptr, ptr %120, align 8, !tbaa !46
  %122 = load ptr, ptr %13, align 8, !tbaa !14
  %123 = load i8, ptr %7, align 1, !tbaa !47
  %124 = zext i8 %123 to i32
  %125 = call i32 %121(ptr noundef %122, i32 noundef %124) #8
  %126 = load ptr, ptr %14, align 8, !tbaa !15
  %127 = getelementptr inbounds i8, ptr %126, i64 48
  %128 = load ptr, ptr %127, align 8, !tbaa !20
  %129 = load ptr, ptr %13, align 8, !tbaa !14
  %130 = call i64 %128(ptr noundef %129) #8
  store i64 %130, ptr %45, align 8, !tbaa !48
  store i32 1, ptr %46, align 8, !tbaa !49
  br label %131

131:                                              ; preds = %118, %113
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %132

132:                                              ; preds = %131, %110, %108, %106
  %133 = load i32, ptr %46, align 8, !tbaa !49
  %.not155 = icmp eq i32 %133, 0
  br i1 %.not155, label %141, label %134

134:                                              ; preds = %132
  %135 = call i32 @read_wvc_block(ptr noundef nonnull %calloc166)
  %.not156 = icmp eq i32 %135, 0
  br i1 %.not156, label %136, label %141

136:                                              ; preds = %134
  %.not157 = icmp eq ptr %3, null
  br i1 %.not157, label %139, label %137

137:                                              ; preds = %136
  %138 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.3) #8
  br label %139

139:                                              ; preds = %137, %136
  %140 = call ptr @WavpackStreamCloseFile(ptr noundef nonnull %calloc166) #8
  br label %203

141:                                              ; preds = %134, %132
  %142 = load i8, ptr %43, align 1, !tbaa !44
  %.not158 = icmp eq i8 %142, 0
  br i1 %.not158, label %143, label %153

143:                                              ; preds = %141
  %144 = call i32 @unpack_init(ptr noundef nonnull %calloc166)
  %.not159 = icmp eq i32 %144, 0
  br i1 %.not159, label %145, label %153

145:                                              ; preds = %143
  %.not160 = icmp eq ptr %3, null
  br i1 %.not160, label %151, label %146

146:                                              ; preds = %145
  %147 = getelementptr inbounds i8, ptr %calloc166, i64 360
  %148 = load i8, ptr %147, align 8, !tbaa !47
  %.not161 = icmp eq i8 %148, 0
  %149 = select i1 %.not161, ptr @.str.1, ptr %147
  %150 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %149) #8
  br label %151

151:                                              ; preds = %146, %145
  %152 = call ptr @WavpackStreamCloseFile(ptr noundef nonnull %calloc166) #8
  br label %203

153:                                              ; preds = %143, %141
  store i8 1, ptr %43, align 1, !tbaa !44
  br label %.backedge

._crit_edge:                                      ; preds = %.backedge
  %.pre = load i32, ptr %44, align 8, !tbaa !45
  %154 = getelementptr inbounds i8, ptr %calloc166, i64 20
  %155 = load i32, ptr %154, align 4, !tbaa !50
  %156 = and i32 %155, -256
  %157 = and i32 %.pre, 255
  %158 = or disjoint i32 %157, %156
  store i32 %158, ptr %154, align 4, !tbaa !50
  %159 = getelementptr inbounds i8, ptr %calloc166, i64 28
  %160 = load i32, ptr %159, align 4, !tbaa !51
  %.not137 = icmp eq i32 %160, 0
  br i1 %.not137, label %161, label %166

161:                                              ; preds = %._crit_edge
  %162 = and i32 %.pre, 4
  %.not138 = icmp eq i32 %162, 0
  %163 = select i1 %.not138, i32 2, i32 1
  store i32 %163, ptr %159, align 4, !tbaa !51
  %164 = sub nuw nsw i32 5, %163
  %165 = getelementptr inbounds i8, ptr %calloc166, i64 52
  store i32 %164, ptr %165, align 4, !tbaa !52
  br label %166

166:                                              ; preds = %161, %._crit_edge
  %167 = and i32 %4, 8
  %.not139 = icmp ne i32 %167, 0
  %168 = and i32 %.pre, 4096
  %.not140 = icmp eq i32 %168, 0
  %or.cond = select i1 %.not139, i1 %.not140, i1 false
  br i1 %or.cond, label %169, label %173

169:                                              ; preds = %166
  %170 = and i32 %.pre, 4
  %.not141 = icmp eq i32 %170, 0
  %171 = select i1 %.not141, i32 2, i32 1
  %172 = getelementptr inbounds i8, ptr %calloc166, i64 236
  store i32 %171, ptr %172, align 4, !tbaa !53
  br label %173

173:                                              ; preds = %169, %166
  %.not142 = icmp sgt i32 %.pre, -1
  br i1 %.not142, label %179, label %174

174:                                              ; preds = %173
  %.not145 = icmp eq ptr %3, null
  br i1 %.not145, label %177, label %175

175:                                              ; preds = %174
  %176 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.4) #8
  br label %177

177:                                              ; preds = %175, %174
  %178 = call ptr @WavpackStreamCloseFile(ptr noundef nonnull %calloc166) #8
  br label %203

179:                                              ; preds = %173
  %180 = and i32 %.pre, 3
  %181 = add nuw nsw i32 %180, 1
  %182 = getelementptr inbounds i8, ptr %calloc166, i64 12
  store i32 %181, ptr %182, align 4, !tbaa !54
  %183 = getelementptr inbounds i8, ptr %calloc, i64 355
  %184 = load i8, ptr %183, align 1, !tbaa !55
  %185 = zext i8 %184 to i32
  %186 = getelementptr inbounds i8, ptr %calloc166, i64 32
  store i32 %185, ptr %186, align 8, !tbaa !56
  %187 = shl nuw nsw i32 %181, 3
  %188 = lshr i32 %.pre, 13
  %189 = and i32 %188, 31
  %190 = sub nsw i32 %187, %189
  %191 = getelementptr inbounds i8, ptr %calloc166, i64 8
  store i32 %190, ptr %191, align 8, !tbaa !57
  %192 = getelementptr inbounds i8, ptr %calloc166, i64 48
  %193 = load i32, ptr %192, align 8, !tbaa !58
  %.not143 = icmp eq i32 %193, 0
  br i1 %.not143, label %194, label %203

194:                                              ; preds = %179
  %195 = and i32 %.pre, 125829120
  %196 = icmp eq i32 %195, 125829120
  br i1 %196, label %197, label %198

197:                                              ; preds = %194
  store i32 44100, ptr %192, align 8, !tbaa !58
  br label %203

198:                                              ; preds = %194
  %199 = lshr exact i32 %195, 23
  %200 = zext nneg i32 %199 to i64
  %201 = getelementptr inbounds [16 x i32], ptr @sample_rates, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !59
  store i32 %202, ptr %192, align 8, !tbaa !58
  br label %203

203:                                              ; preds = %179, %198, %197, %8, %9, %177, %151, %139, %96, %79, %66, %35, %29
  %.0 = phi ptr [ %67, %66 ], [ %97, %96 ], [ %152, %151 ], [ %140, %139 ], [ %80, %79 ], [ %178, %177 ], [ %36, %35 ], [ %30, %29 ], [ null, %9 ], [ null, %8 ], [ %calloc166, %197 ], [ %calloc166, %198 ], [ %calloc166, %179 ]
  ret ptr %.0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #3

declare ptr @WavpackStreamCloseFile(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @read_next_header(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #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) #5

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

; 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 dso_local i32 @read_wvc_block(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #7

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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nofree nounwind willreturn memory(argmem: readwrite) "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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #7 = { nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }

!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, !12, i64 152}
!6 = !{!"WavpackContext", !7, i64 0, !12, i64 88, !11, i64 96, !11, i64 100, !12, i64 104, !11, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !12, i64 288, !12, i64 296, !9, i64 304, !12, i64 312, !12, i64 320, !11, i64 328, !11, i64 332, !12, i64 336, !9, i64 344, !12, i64 352, !9, i64 360}
!7 = !{!"", !8, i64 0, !8, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !9, i64 56, !9, i64 72, !11, i64 76, !12, i64 80}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!6, !12, i64 160}
!15 = !{!6, !12, i64 144}
!16 = !{!6, !13, i64 200}
!17 = !{!6, !11, i64 232}
!18 = !{!6, !11, i64 284}
!19 = !{!6, !11, i64 228}
!20 = !{!21, !12, i64 48}
!21 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72}
!22 = !{!6, !13, i64 168}
!23 = !{!6, !11, i64 280}
!24 = !{!6, !12, i64 288}
!25 = !{!12, !12, i64 0}
!26 = !{!21, !12, i64 16}
!27 = !{!6, !13, i64 184}
!28 = !{!29, !31, i64 6}
!29 = !{!"", !30, i64 0, !32, i64 12, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !13, i64 128, !13, i64 136, !11, i64 144, !11, i64 148, !11, i64 152, !9, i64 156, !9, i64 157, !9, i64 158, !9, i64 159, !9, i64 160, !9, i64 161, !9, i64 162, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !33, i64 200, !33, i64 248, !33, i64 296, !8, i64 344, !9, i64 348, !9, i64 349, !9, i64 350, !9, i64 351, !9, i64 352, !9, i64 353, !9, i64 354, !9, i64 355, !34, i64 360, !9, i64 432, !36, i64 1968, !12, i64 2064, !37, i64 2072}
!30 = !{!"", !9, i64 0, !31, i64 4, !31, i64 6, !11, i64 8}
!31 = !{!"short", !9, i64 0}
!32 = !{!"words_data", !9, i64 0, !9, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !9, i64 36}
!33 = !{!"bs", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40}
!34 = !{!"", !9, i64 0, !9, i64 8, !9, i64 16, !35, i64 24, !35, i64 32, !35, i64 40, !12, i64 48, !12, i64 56, !11, i64 64}
!35 = !{!"double", !9, i64 0}
!36 = !{!"decorr_pass", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !9, i64 16, !9, i64 48, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92}
!37 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !9, i64 40, !9, i64 41, !11, i64 44, !11, i64 48, !11, i64 52, !12, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !9, i64 76, !12, i64 160}
!38 = !{!29, !31, i64 4}
!39 = !{!29, !12, i64 88}
!40 = !{!21, !12, i64 0}
!41 = !{!6, !11, i64 216}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = !{!29, !9, i64 159}
!45 = !{!29, !11, i64 8}
!46 = !{!21, !12, i64 40}
!47 = !{!9, !9, i64 0}
!48 = !{!6, !13, i64 176}
!49 = !{!6, !11, i64 224}
!50 = !{!6, !11, i64 20}
!51 = !{!6, !11, i64 28}
!52 = !{!6, !11, i64 52}
!53 = !{!6, !11, i64 236}
!54 = !{!6, !11, i64 12}
!55 = !{!29, !9, i64 355}
!56 = !{!6, !11, i64 32}
!57 = !{!6, !11, i64 8}
!58 = !{!6, !11, i64 48}
!59 = !{!11, !11, i64 0}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass