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

; 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.decorr_pass = type { i32, i32, i32, i32, [8 x i32], [8 x i32], i32, i32, i32, i32 }
%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.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.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 }
%struct.WavpackDecorrSpec = type { i8, i8, [17 x i8] }

; Function Attrs: nounwind uwtable
define dso_local void @execute_mono(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [2 x ptr], align 16
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.decorr_pass, align 4
  %13 = alloca [16 x %struct.decorr_pass], align 16
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %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 i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 1536, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.WavpackContext, ptr %27, i32 0, i32 36
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.WavpackContext, ptr %30, i32 0, i32 33
  %32 = load i32, ptr %31, align 4, !tbaa !16
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds ptr, ptr %29, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  store ptr %35, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.WavpackStream, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.WavpackHeader, ptr %37, i32 0, i32 2
  %39 = load i16, ptr %38, align 2, !tbaa !17
  %40 = zext i16 %39 to i32
  store i32 %40, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %41 = load i32, ptr %15, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = mul i64 4, %42
  %44 = trunc i64 %43 to i32
  store i32 %44, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 -1, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %58, %4
  %46 = load i32, ptr %21, align 4, !tbaa !9
  %47 = load i32, ptr %15, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %49, label %61

49:                                               ; preds = %45
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i32, ptr %21, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i32, ptr %50, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %49
  br label %61

57:                                               ; preds = %49
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %21, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %21, align 4, !tbaa !9
  br label %45, !llvm.loop !27

61:                                               ; preds = %56, %45
  %62 = load i32, ptr %21, align 4, !tbaa !9
  %63 = load i32, ptr %15, align 4, !tbaa !9
  %64 = icmp eq i32 %62, %63
  br i1 %64, label %65, label %71

65:                                               ; preds = %61
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.WavpackStream, ptr %66, i32 0, i32 40
  call void @llvm.memset.p0.i64(ptr align 8 %67, i8 0, i64 1536, i1 false)
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.WavpackStream, ptr %68, i32 0, i32 10
  store i32 0, ptr %69, align 4, !tbaa !29
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  call void @init_words(ptr noundef %70)
  store i32 1, ptr %22, align 4
  br label %459

71:                                               ; preds = %61
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.WavpackStream, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds %struct.WavpackHeader, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 8, !tbaa !30
  %76 = zext i32 %75 to i64
  %77 = and i64 %76, 8126464
  %78 = ashr i64 %77, 18
  %79 = add nsw i64 %78, 4
  %80 = mul nsw i64 %79, 256
  %81 = trunc i64 %80 to i32
  store i32 %81, ptr %19, align 4, !tbaa !9
  %82 = load i32, ptr %19, align 4, !tbaa !9
  %83 = icmp sgt i32 %82, 6912
  br i1 %83, label %84, label %85

84:                                               ; preds = %71
  store i32 6912, ptr %19, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %84, %71
  call void @llvm.memset.p0.i64(ptr align 16 %13, i8 0, i64 1536, i1 false)
  %86 = load i32, ptr %16, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = call noalias ptr @malloc(i64 noundef %87) #9
  %89 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
  store ptr %88, ptr %89, align 16, !tbaa !5
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = call noalias ptr @malloc(i64 noundef %91) #9
  %93 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
  store ptr %92, ptr %93, align 8, !tbaa !5
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = call noalias ptr @malloc(i64 noundef %95) #9
  store ptr %96, ptr %10, align 8, !tbaa !5
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.WavpackStream, ptr %97, i32 0, i32 20
  %99 = load i32, ptr %98, align 8, !tbaa !31
  %100 = icmp sgt i32 %99, 1
  br i1 %100, label %101, label %154

101:                                              ; preds = %85
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.WavpackStream, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds %struct.WavpackHeader, ptr %103, i32 0, i32 3
  %105 = load i32, ptr %104, align 8, !tbaa !30
  %106 = and i32 %105, 8
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %154

108:                                              ; preds = %101
  call void @llvm.memset.p0.i64(ptr align 4 %12, i8 0, i64 96, i1 false)
  %109 = getelementptr inbounds %struct.decorr_pass, ptr %12, i32 0, i32 1
  store i32 2, ptr %109, align 4, !tbaa !32
  %110 = getelementptr inbounds %struct.decorr_pass, ptr %12, i32 0, i32 0
  store i32 18, ptr %110, align 4, !tbaa !33
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
  %113 = load ptr, ptr %112, align 16, !tbaa !5
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = icmp sgt i32 %114, 2048
  br i1 %115, label %116, label %117

116:                                              ; preds = %108
  br label %119

117:                                              ; preds = %108
  %118 = load i32, ptr %15, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %117, %116
  %120 = phi i32 [ 2048, %116 ], [ %118, %117 ]
  call void @decorr_mono_pass(ptr noundef %111, ptr noundef %113, i32 noundef %120, ptr noundef %12, i32 noundef -1)
  call void @reverse_mono_decorr(ptr noundef %12)
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
  %123 = load ptr, ptr %122, align 16, !tbaa !5
  %124 = load i32, ptr %15, align 4, !tbaa !9
  call void @decorr_mono_pass(ptr noundef %121, ptr noundef %123, i32 noundef %124, ptr noundef %12, i32 noundef 1)
  call void @llvm.memset.p0.i64(ptr align 4 %12, i8 0, i64 96, i1 false)
  %125 = getelementptr inbounds %struct.decorr_pass, ptr %12, i32 0, i32 1
  store i32 2, ptr %125, align 4, !tbaa !32
  %126 = getelementptr inbounds %struct.decorr_pass, ptr %12, i32 0, i32 0
  store i32 17, ptr %126, align 4, !tbaa !33
  %127 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
  %128 = load ptr, ptr %127, align 16, !tbaa !5
  %129 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = load i32, ptr %15, align 4, !tbaa !9
  %132 = icmp sgt i32 %131, 2048
  br i1 %132, label %133, label %134

133:                                              ; preds = %119
  br label %136

134:                                              ; preds = %119
  %135 = load i32, ptr %15, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %134, %133
  %137 = phi i32 [ 2048, %133 ], [ %135, %134 ]
  call void @decorr_mono_pass(ptr noundef %128, ptr noundef %130, i32 noundef %137, ptr noundef %12, i32 noundef -1)
  %138 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
  %139 = load ptr, ptr %138, align 16, !tbaa !5
  %140 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %142 = load i32, ptr %15, align 4, !tbaa !9
  call void @decorr_mono_pass(ptr noundef %139, ptr noundef %141, i32 noundef %142, ptr noundef %12, i32 noundef 1)
  %143 = load i32, ptr %16, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = call noalias ptr @malloc(i64 noundef %144) #9
  store ptr %145, ptr %11, align 8, !tbaa !5
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = load i32, ptr %16, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %146, ptr align 4 %147, i64 %149, i1 false)
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  call void @mono_add_noise(ptr noundef %150, ptr noundef %151, ptr noundef %153)
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %136, %101, %85
  %155 = load i32, ptr %7, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %162, label %157

157:                                              ; preds = %154
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.WavpackStream, ptr %158, i32 0, i32 20
  %160 = load i32, ptr %159, align 8, !tbaa !31
  %161 = icmp sge i32 %160, 7
  br i1 %161, label %162, label %167

162:                                              ; preds = %157, %154
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.WavpackStream, ptr %163, i32 0, i32 22
  store i32 0, ptr %164, align 8, !tbaa !34
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.WavpackStream, ptr %165, i32 0, i32 21
  store i32 0, ptr %166, align 4, !tbaa !35
  br label %167

167:                                              ; preds = %162, %157
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %399, %397, %167
  %169 = load i32, ptr %20, align 4, !tbaa !9
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.WavpackStream, ptr %170, i32 0, i32 20
  %172 = load i32, ptr %171, align 8, !tbaa !31
  %173 = icmp slt i32 %169, %172
  br i1 %173, label %174, label %400

174:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %175 = load i32, ptr %20, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %181, label %177

177:                                              ; preds = %174
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.WavpackStream, ptr %178, i32 0, i32 21
  %180 = load i32, ptr %179, align 4, !tbaa !35
  store i32 %180, ptr %25, align 4, !tbaa !9
  br label %227

181:                                              ; preds = %174
  %182 = load ptr, ptr %14, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.WavpackStream, ptr %182, i32 0, i32 22
  %184 = load i32, ptr %183, align 8, !tbaa !34
  %185 = icmp eq i32 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %181
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %200

187:                                              ; preds = %181
  %188 = load ptr, ptr %14, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.WavpackStream, ptr %188, i32 0, i32 21
  %190 = load i32, ptr %189, align 4, !tbaa !35
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.WavpackStream, ptr %191, i32 0, i32 22
  %193 = load i32, ptr %192, align 8, !tbaa !34
  %194 = sub nsw i32 %193, 1
  %195 = and i32 %190, %194
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.WavpackStream, ptr %196, i32 0, i32 22
  %198 = load i32, ptr %197, align 8, !tbaa !34
  %199 = or i32 %195, %198
  store i32 %199, ptr %25, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %187, %186
  %201 = load i32, ptr %25, align 4, !tbaa !9
  %202 = load ptr, ptr %14, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.WavpackStream, ptr %202, i32 0, i32 21
  %204 = load i32, ptr %203, align 4, !tbaa !35
  %205 = icmp eq i32 %201, %204
  br i1 %205, label %206, label %226

206:                                              ; preds = %200
  %207 = load ptr, ptr %14, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.WavpackStream, ptr %207, i32 0, i32 22
  %209 = load i32, ptr %208, align 8, !tbaa !34
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %221

211:                                              ; preds = %206
  %212 = load ptr, ptr %14, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.WavpackStream, ptr %212, i32 0, i32 22
  %214 = load i32, ptr %213, align 8, !tbaa !34
  %215 = shl i32 %214, 1
  %216 = load ptr, ptr %14, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.WavpackStream, ptr %216, i32 0, i32 19
  %218 = load i32, ptr %217, align 4, !tbaa !36
  %219 = sub nsw i32 %218, 1
  %220 = and i32 %215, %219
  br label %222

221:                                              ; preds = %206
  br label %222

222:                                              ; preds = %221, %211
  %223 = phi i32 [ %220, %211 ], [ 1, %221 ]
  %224 = load ptr, ptr %14, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.WavpackStream, ptr %224, i32 0, i32 22
  store i32 %223, ptr %225, align 8, !tbaa !34
  store i32 6, ptr %22, align 4
  br label %397, !llvm.loop !37

226:                                              ; preds = %200
  br label %227

227:                                              ; preds = %226, %177
  %228 = load ptr, ptr %14, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.WavpackStream, ptr %228, i32 0, i32 42
  %230 = load ptr, ptr %229, align 8, !tbaa !38
  %231 = load i32, ptr %25, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds %struct.WavpackDecorrSpec, ptr %230, i64 %232
  store ptr %233, ptr %23, align 8, !tbaa !5
  %234 = load ptr, ptr %23, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.WavpackDecorrSpec, ptr %234, i32 0, i32 2
  %236 = getelementptr inbounds [17 x i8], ptr %235, i64 0, i64 0
  %237 = call i64 @strlen(ptr noundef %236) #10
  %238 = trunc i64 %237 to i32
  store i32 %238, ptr %24, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %338, %227
  br label %240

240:                                              ; preds = %239
  %241 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
  %242 = load ptr, ptr %241, align 16, !tbaa !5
  %243 = load ptr, ptr %11, align 8, !tbaa !5
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %247

245:                                              ; preds = %240
  %246 = load ptr, ptr %11, align 8, !tbaa !5
  br label %249

247:                                              ; preds = %240
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  br label %249

249:                                              ; preds = %247, %245
  %250 = phi ptr [ %246, %245 ], [ %248, %247 ]
  %251 = load i32, ptr %16, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %242, ptr align 4 %250, i64 %252, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 %13, i8 0, i64 1536, i1 false)
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %253

253:                                              ; preds = %317, %249
  %254 = load i32, ptr %26, align 4, !tbaa !9
  %255 = load i32, ptr %24, align 4, !tbaa !9
  %256 = icmp slt i32 %254, %255
  br i1 %256, label %257, label %320

257:                                              ; preds = %253
  call void @llvm.memset.p0.i64(ptr align 4 %12, i8 0, i64 96, i1 false)
  %258 = load ptr, ptr %23, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.WavpackDecorrSpec, ptr %258, i32 0, i32 1
  %260 = load i8, ptr %259, align 1, !tbaa !39
  %261 = sext i8 %260 to i32
  %262 = getelementptr inbounds %struct.decorr_pass, ptr %12, i32 0, i32 1
  store i32 %261, ptr %262, align 4, !tbaa !32
  %263 = load ptr, ptr %23, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.WavpackDecorrSpec, ptr %263, i32 0, i32 2
  %265 = load i32, ptr %26, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [17 x i8], ptr %264, i64 0, i64 %266
  %268 = load i8, ptr %267, align 1, !tbaa !41
  %269 = sext i8 %268 to i32
  %270 = getelementptr inbounds %struct.decorr_pass, ptr %12, i32 0, i32 0
  store i32 %269, ptr %270, align 4, !tbaa !33
  %271 = getelementptr inbounds %struct.decorr_pass, ptr %12, i32 0, i32 0
  %272 = load i32, ptr %271, align 4, !tbaa !33
  %273 = icmp slt i32 %272, 0
  br i1 %273, label %274, label %276

274:                                              ; preds = %257
  %275 = getelementptr inbounds %struct.decorr_pass, ptr %12, i32 0, i32 0
  store i32 1, ptr %275, align 4, !tbaa !33
  br label %276

276:                                              ; preds = %274, %257
  %277 = load i32, ptr %26, align 4, !tbaa !9
  %278 = and i32 %277, 1
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 %279
  %281 = load ptr, ptr %280, align 8, !tbaa !5
  %282 = load i32, ptr %26, align 4, !tbaa !9
  %283 = xor i32 %282, -1
  %284 = and i32 %283, 1
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = load i32, ptr %15, align 4, !tbaa !9
  %289 = icmp sgt i32 %288, 2048
  br i1 %289, label %290, label %291

290:                                              ; preds = %276
  br label %293

291:                                              ; preds = %276
  %292 = load i32, ptr %15, align 4, !tbaa !9
  br label %293

293:                                              ; preds = %291, %290
  %294 = phi i32 [ 2048, %290 ], [ %292, %291 ]
  call void @decorr_mono_pass(ptr noundef %281, ptr noundef %287, i32 noundef %294, ptr noundef %12, i32 noundef -1)
  %295 = load i32, ptr %26, align 4, !tbaa !9
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %299

297:                                              ; preds = %293
  %298 = getelementptr inbounds %struct.decorr_pass, ptr %12, i32 0, i32 4
  call void @llvm.memset.p0.i64(ptr align 4 %298, i8 0, i64 32, i1 false)
  br label %300

299:                                              ; preds = %293
  call void @reverse_mono_decorr(ptr noundef %12)
  br label %300

300:                                              ; preds = %299, %297
  %301 = getelementptr inbounds [16 x %struct.decorr_pass], ptr %13, i64 0, i64 0
  %302 = load i32, ptr %26, align 4, !tbaa !9
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds %struct.decorr_pass, ptr %301, i64 %303
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %304, ptr align 4 %12, i64 96, i1 false)
  %305 = load i32, ptr %26, align 4, !tbaa !9
  %306 = and i32 %305, 1
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 %307
  %309 = load ptr, ptr %308, align 8, !tbaa !5
  %310 = load i32, ptr %26, align 4, !tbaa !9
  %311 = xor i32 %310, -1
  %312 = and i32 %311, 1
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 %313
  %315 = load ptr, ptr %314, align 8, !tbaa !5
  %316 = load i32, ptr %15, align 4, !tbaa !9
  call void @decorr_mono_pass(ptr noundef %309, ptr noundef %315, i32 noundef %316, ptr noundef %12, i32 noundef 1)
  br label %317

317:                                              ; preds = %300
  %318 = load i32, ptr %26, align 4, !tbaa !9
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %26, align 4, !tbaa !9
  br label %253, !llvm.loop !42

320:                                              ; preds = %253
  %321 = load i32, ptr %26, align 4, !tbaa !9
  %322 = and i32 %321, 1
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 %323
  %325 = load ptr, ptr %324, align 8, !tbaa !5
  %326 = load i32, ptr %15, align 4, !tbaa !9
  %327 = load i32, ptr %19, align 4, !tbaa !9
  %328 = call i32 @log2buffer(ptr noundef %325, i32 noundef %326, i32 noundef %327)
  store i32 %328, ptr %18, align 4, !tbaa !9
  %329 = load i32, ptr %18, align 4, !tbaa !9
  %330 = icmp eq i32 %329, -1
  br i1 %330, label %331, label %337

331:                                              ; preds = %320
  %332 = load i32, ptr %24, align 4, !tbaa !9
  %333 = icmp ne i32 %332, 0
  br i1 %333, label %334, label %337

334:                                              ; preds = %331
  %335 = load i32, ptr %24, align 4, !tbaa !9
  %336 = ashr i32 %335, 1
  store i32 %336, ptr %24, align 4, !tbaa !9
  br label %338

337:                                              ; preds = %331, %320
  br label %339

338:                                              ; preds = %334
  br label %239

339:                                              ; preds = %337
  %340 = load ptr, ptr %23, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.WavpackDecorrSpec, ptr %340, i32 0, i32 2
  %342 = getelementptr inbounds [17 x i8], ptr %341, i64 0, i64 0
  %343 = load i8, ptr %342, align 1, !tbaa !41
  %344 = sext i8 %343 to i32
  %345 = load i32, ptr %24, align 4, !tbaa !9
  %346 = call i32 @log2overhead(i32 noundef %344, i32 noundef %345)
  %347 = load i32, ptr %18, align 4, !tbaa !9
  %348 = add i32 %347, %346
  store i32 %348, ptr %18, align 4, !tbaa !9
  %349 = load i32, ptr %18, align 4, !tbaa !9
  %350 = load i32, ptr %17, align 4, !tbaa !9
  %351 = icmp ult i32 %349, %350
  br i1 %351, label %352, label %372

352:                                              ; preds = %339
  %353 = load ptr, ptr %10, align 8, !tbaa !5
  %354 = load i32, ptr %26, align 4, !tbaa !9
  %355 = and i32 %354, 1
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 %356
  %358 = load ptr, ptr %357, align 8, !tbaa !5
  %359 = load i32, ptr %16, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %353, ptr align 4 %358, i64 %360, i1 false)
  %361 = load ptr, ptr %14, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.WavpackStream, ptr %361, i32 0, i32 40
  %363 = getelementptr inbounds [16 x %struct.decorr_pass], ptr %362, i64 0, i64 0
  %364 = getelementptr inbounds [16 x %struct.decorr_pass], ptr %13, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %363, ptr align 16 %364, i64 1536, i1 false)
  %365 = load i32, ptr %24, align 4, !tbaa !9
  %366 = load ptr, ptr %14, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.WavpackStream, ptr %366, i32 0, i32 10
  store i32 %365, ptr %367, align 4, !tbaa !29
  %368 = load i32, ptr %25, align 4, !tbaa !9
  %369 = load ptr, ptr %14, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.WavpackStream, ptr %369, i32 0, i32 21
  store i32 %368, ptr %370, align 4, !tbaa !35
  %371 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %371, ptr %17, align 4, !tbaa !9
  br label %372

372:                                              ; preds = %352, %339
  %373 = load i32, ptr %20, align 4, !tbaa !9
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %20, align 4, !tbaa !9
  %375 = icmp ne i32 %373, 0
  br i1 %375, label %376, label %396

376:                                              ; preds = %372
  %377 = load ptr, ptr %14, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.WavpackStream, ptr %377, i32 0, i32 22
  %379 = load i32, ptr %378, align 8, !tbaa !34
  %380 = icmp ne i32 %379, 0
  br i1 %380, label %381, label %391

381:                                              ; preds = %376
  %382 = load ptr, ptr %14, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.WavpackStream, ptr %382, i32 0, i32 22
  %384 = load i32, ptr %383, align 8, !tbaa !34
  %385 = shl i32 %384, 1
  %386 = load ptr, ptr %14, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.WavpackStream, ptr %386, i32 0, i32 19
  %388 = load i32, ptr %387, align 4, !tbaa !36
  %389 = sub nsw i32 %388, 1
  %390 = and i32 %385, %389
  br label %392

391:                                              ; preds = %376
  br label %392

392:                                              ; preds = %391, %381
  %393 = phi i32 [ %390, %381 ], [ 1, %391 ]
  %394 = load ptr, ptr %14, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.WavpackStream, ptr %394, i32 0, i32 22
  store i32 %393, ptr %395, align 8, !tbaa !34
  br label %396

396:                                              ; preds = %392, %372
  store i32 0, ptr %22, align 4
  br label %397

397:                                              ; preds = %396, %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %398 = load i32, ptr %22, align 4
  switch i32 %398, label %462 [
    i32 0, label %399
    i32 6, label %168
  ]

399:                                              ; preds = %397
  br label %168, !llvm.loop !37

400:                                              ; preds = %168
  %401 = load ptr, ptr %5, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.WavpackContext, ptr %401, i32 0, i32 0
  %403 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %402, i32 0, i32 6
  %404 = load i32, ptr %403, align 8, !tbaa !43
  %405 = icmp sgt i32 %404, 3
  br i1 %405, label %406, label %426

406:                                              ; preds = %400
  %407 = load ptr, ptr %11, align 8, !tbaa !5
  %408 = icmp ne ptr %407, null
  br i1 %408, label %409, label %421

409:                                              ; preds = %406
  %410 = load ptr, ptr %5, align 8, !tbaa !5
  %411 = load ptr, ptr %11, align 8, !tbaa !5
  %412 = load i32, ptr %8, align 4, !tbaa !9
  call void @analyze_mono(ptr noundef %410, ptr noundef %411, i32 noundef %412)
  %413 = load i32, ptr %8, align 4, !tbaa !9
  %414 = icmp ne i32 %413, 0
  br i1 %414, label %415, label %420

415:                                              ; preds = %409
  %416 = load ptr, ptr %6, align 8, !tbaa !5
  %417 = load ptr, ptr %11, align 8, !tbaa !5
  %418 = load i32, ptr %16, align 4, !tbaa !9
  %419 = sext i32 %418 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %416, ptr align 4 %417, i64 %419, i1 false)
  br label %420

420:                                              ; preds = %415, %409
  br label %425

421:                                              ; preds = %406
  %422 = load ptr, ptr %5, align 8, !tbaa !5
  %423 = load ptr, ptr %6, align 8, !tbaa !5
  %424 = load i32, ptr %8, align 4, !tbaa !9
  call void @analyze_mono(ptr noundef %422, ptr noundef %423, i32 noundef %424)
  br label %425

425:                                              ; preds = %421, %420
  br label %435

426:                                              ; preds = %400
  %427 = load i32, ptr %8, align 4, !tbaa !9
  %428 = icmp ne i32 %427, 0
  br i1 %428, label %429, label %434

429:                                              ; preds = %426
  %430 = load ptr, ptr %6, align 8, !tbaa !5
  %431 = load ptr, ptr %10, align 8, !tbaa !5
  %432 = load i32, ptr %16, align 4, !tbaa !9
  %433 = sext i32 %432 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %430, ptr align 4 %431, i64 %433, i1 false)
  br label %434

434:                                              ; preds = %429, %426
  br label %435

435:                                              ; preds = %434, %425
  %436 = load i32, ptr %7, align 4, !tbaa !9
  %437 = icmp ne i32 %436, 0
  br i1 %437, label %444, label %438

438:                                              ; preds = %435
  %439 = load ptr, ptr %5, align 8, !tbaa !5
  %440 = getelementptr inbounds %struct.WavpackContext, ptr %439, i32 0, i32 0
  %441 = getelementptr inbounds %struct.WavpackStreamConfig, ptr %440, i32 0, i32 6
  %442 = load i32, ptr %441, align 8, !tbaa !43
  %443 = icmp sgt i32 %442, 3
  br i1 %443, label %444, label %448

444:                                              ; preds = %438, %435
  %445 = load ptr, ptr %14, align 8, !tbaa !5
  %446 = load ptr, ptr %10, align 8, !tbaa !5
  %447 = load i32, ptr %15, align 4, !tbaa !9
  call void @scan_word(ptr noundef %445, ptr noundef %446, i32 noundef %447, i32 noundef -1)
  br label %448

448:                                              ; preds = %444, %438
  %449 = load ptr, ptr %11, align 8, !tbaa !5
  %450 = icmp ne ptr %449, null
  br i1 %450, label %451, label %453

451:                                              ; preds = %448
  %452 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %452) #8
  br label %453

453:                                              ; preds = %451, %448
  %454 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
  %455 = load ptr, ptr %454, align 8, !tbaa !5
  call void @free(ptr noundef %455) #8
  %456 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
  %457 = load ptr, ptr %456, align 16, !tbaa !5
  call void @free(ptr noundef %457) #8
  %458 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %458) #8
  store i32 0, ptr %22, align 4
  br label %459

459:                                              ; preds = %453, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 1536, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  %460 = load i32, ptr %22, align 4
  switch i32 %460, label %462 [
    i32 0, label %461
    i32 1, label %461
  ]

461:                                              ; preds = %459, %459
  ret void

462:                                              ; preds = %459, %397
  unreachable
}

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

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

declare void @init_words(ptr noundef) #3

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

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

; Function Attrs: nounwind uwtable
declare hidden void @reverse_mono_decorr(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) #5

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

declare i32 @log2buffer(ptr noundef, i32 noundef, i32 noundef) #3

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

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

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

declare void @scan_word(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind willreturn memory(read) "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 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind willreturn memory(read) }

!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 288}
!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, !10, i64 276}
!17 = !{!18, !20, i64 6}
!18 = !{!"", !19, i64 0, !21, 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, !22, i64 200, !22, i64 248, !22, 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, !23, i64 360, !7, i64 432, !25, i64 1968, !6, i64 2064, !26, i64 2072}
!19 = !{!"", !7, i64 0, !20, i64 4, !20, i64 6, !10, i64 8}
!20 = !{!"short", !7, i64 0}
!21 = !{!"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}
!22 = !{!"bs", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40}
!23 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !24, i64 24, !24, i64 32, !24, i64 40, !6, i64 48, !6, i64 56, !10, i64 64}
!24 = !{!"double", !7, i64 0}
!25 = !{!"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}
!26 = !{!"", !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}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!18, !10, i64 148}
!30 = !{!18, !10, i64 8}
!31 = !{!18, !10, i64 168}
!32 = !{!25, !10, i64 4}
!33 = !{!25, !10, i64 0}
!34 = !{!18, !10, i64 176}
!35 = !{!18, !10, i64 172}
!36 = !{!18, !10, i64 164}
!37 = distinct !{!37, !28}
!38 = !{!18, !6, i64 2064}
!39 = !{!40, !7, i64 1}
!40 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2}
!41 = !{!7, !7, i64 0}
!42 = distinct !{!42, !28}
!43 = !{!12, !10, i64 24}


; 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.decorr_pass = type { i32, i32, i32, i32, [8 x i32], [8 x i32], i32, i32, i32, i32 }
%struct.WavpackDecorrSpec = type { i8, i8, [17 x i8] }

; Function Attrs: nounwind uwtable
define dso_local void @execute_mono(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca [2 x ptr], align 16
  %6 = alloca %struct.decorr_pass, align 4
  %7 = alloca [16 x %struct.decorr_pass], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 1536, ptr nonnull %7) #9
  %8 = getelementptr inbounds i8, ptr %0, i64 288
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 276
  %11 = load i32, ptr %10, align 4, !tbaa !14
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds ptr, ptr %9, i64 %12
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %14, i64 6
  %16 = load i16, ptr %15, align 2, !tbaa !16
  %17 = zext i16 %16 to i32
  %18 = zext i16 %16 to i64
  %19 = shl nuw nsw i64 %18, 2
  %.not175 = icmp eq i16 %16, 0
  br i1 %.not175, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %4
  %wide.trip.count = zext i16 %16 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %22
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %22 ]
  %20 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv
  %21 = load i32, ptr %20, align 4, !tbaa !26
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %22, label %._crit_edge.loopexit

22:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.thread, label %.lr.ph, !llvm.loop !27

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %23 = trunc nuw nsw i64 %indvars.iv to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %4
  %.0127.lcssa = phi i32 [ 0, %4 ], [ %23, %._crit_edge.loopexit ]
  %24 = icmp eq i32 %.0127.lcssa, %17
  br i1 %24, label %._crit_edge.thread, label %27

._crit_edge.thread:                               ; preds = %22, %._crit_edge
  %25 = getelementptr inbounds i8, ptr %14, i64 432
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1536) %25, i8 0, i64 1536, i1 false)
  %26 = getelementptr inbounds i8, ptr %14, i64 148
  store i32 0, ptr %26, align 4, !tbaa !29
  tail call void @init_words(ptr noundef %14) #9
  br label %148

27:                                               ; preds = %._crit_edge
  %28 = getelementptr inbounds i8, ptr %14, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !30
  %30 = lshr i32 %29, 10
  %narrow = and i32 %30, 7936
  %31 = tail call i32 @llvm.umin.i32(i32 %narrow, i32 5888)
  %spec.store.select = add nuw nsw i32 %31, 1024
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1536) %7, i8 0, i64 1536, i1 false)
  %32 = tail call noalias ptr @malloc(i64 noundef %19) #10
  store ptr %32, ptr %5, align 16, !tbaa !15
  %33 = tail call noalias ptr @malloc(i64 noundef %19) #10
  %34 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %33, ptr %34, align 8, !tbaa !15
  %35 = tail call noalias ptr @malloc(i64 noundef %19) #10
  %36 = getelementptr inbounds i8, ptr %14, i64 168
  %37 = load i32, ptr %36, align 8, !tbaa !31
  %38 = icmp slt i32 %37, 2
  %39 = and i32 %29, 8
  %.not138 = icmp eq i32 %39, 0
  %or.cond159 = select i1 %38, i1 true, i1 %.not138
  br i1 %or.cond159, label %45, label %.thread

.thread:                                          ; preds = %27
  %40 = getelementptr inbounds i8, ptr %6, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(96) %40, i8 0, i64 88, i1 false)
  %41 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 2, ptr %41, align 4, !tbaa !32
  store i32 18, ptr %6, align 4, !tbaa !33
  %42 = tail call i32 @llvm.umin.i32(i32 %17, i32 2048)
  call void @decorr_mono_pass(ptr noundef %1, ptr noundef %32, i32 noundef %42, ptr noundef nonnull %6, i32 noundef -1)
  call void @reverse_mono_decorr(ptr noundef nonnull %6)
  call void @decorr_mono_pass(ptr noundef %1, ptr noundef %32, i32 noundef %17, ptr noundef nonnull %6, i32 noundef 1)
  %43 = getelementptr inbounds i8, ptr %6, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(96) %43, i8 0, i64 88, i1 false)
  store i32 2, ptr %41, align 4, !tbaa !32
  store i32 17, ptr %6, align 4, !tbaa !33
  call void @decorr_mono_pass(ptr noundef %32, ptr noundef %33, i32 noundef %42, ptr noundef nonnull %6, i32 noundef -1)
  call void @decorr_mono_pass(ptr noundef %32, ptr noundef %33, i32 noundef %17, ptr noundef nonnull %6, i32 noundef 1)
  %44 = call noalias ptr @malloc(i64 noundef %19) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %1, i64 %19, i1 false)
  call void @mono_add_noise(ptr noundef nonnull %14, ptr noundef %44, ptr noundef %33)
  %.pre.pre = load i32, ptr %36, align 8, !tbaa !31
  br label %48

45:                                               ; preds = %27
  %.not139 = icmp eq i32 %2, 0
  br i1 %.not139, label %46, label %48

46:                                               ; preds = %45
  %47 = icmp sgt i32 %37, 6
  br i1 %47, label %48, label %51

48:                                               ; preds = %.thread, %46, %45
  %.pre = phi i32 [ %.pre.pre, %.thread ], [ %37, %46 ], [ %37, %45 ]
  %.not139155 = phi i1 [ false, %.thread ], [ true, %46 ], [ false, %45 ]
  %.0132153 = phi ptr [ %44, %.thread ], [ null, %46 ], [ null, %45 ]
  %49 = getelementptr inbounds i8, ptr %14, i64 176
  store i32 0, ptr %49, align 8, !tbaa !34
  %50 = getelementptr inbounds i8, ptr %14, i64 172
  store i32 0, ptr %50, align 4, !tbaa !35
  br label %51

51:                                               ; preds = %48, %46
  %52 = phi i32 [ %.pre, %48 ], [ %37, %46 ]
  %.not139154 = phi i1 [ %.not139155, %48 ], [ true, %46 ]
  %.0132152 = phi ptr [ %.0132153, %48 ], [ null, %46 ]
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.lr.ph173, label %._crit_edge174

.lr.ph173:                                        ; preds = %51
  %54 = getelementptr inbounds i8, ptr %14, i64 176
  %55 = getelementptr inbounds i8, ptr %14, i64 172
  %56 = getelementptr inbounds i8, ptr %14, i64 164
  %57 = getelementptr inbounds i8, ptr %14, i64 2064
  %.not145 = icmp eq ptr %.0132152, null
  %58 = select i1 %.not145, ptr %1, ptr %.0132152
  %59 = getelementptr inbounds i8, ptr %6, i64 4
  %60 = call i32 @llvm.umin.i32(i32 %17, i32 2048)
  %61 = getelementptr inbounds i8, ptr %6, i64 16
  %62 = getelementptr inbounds i8, ptr %14, i64 432
  %63 = getelementptr inbounds i8, ptr %14, i64 148
  br label %64

64:                                               ; preds = %.lr.ph173, %128
  %.0128171 = phi i32 [ 0, %.lr.ph173 ], [ %.1129, %128 ]
  %.0130170 = phi i32 [ -1, %.lr.ph173 ], [ %.2, %128 ]
  %.not144 = icmp eq i32 %.0128171, 0
  br i1 %.not144, label %65, label %67

65:                                               ; preds = %64
  %66 = load i32, ptr %55, align 4, !tbaa !35
  br label %77

67:                                               ; preds = %64
  %68 = load i32, ptr %54, align 8, !tbaa !34
  %69 = icmp eq i32 %68, 0
  %70 = load i32, ptr %55, align 4, !tbaa !35
  br i1 %69, label %71, label %.thread156

71:                                               ; preds = %67
  %72 = icmp eq i32 %70, 0
  br i1 %72, label %.sink.split, label %77, !llvm.loop !36

.thread156:                                       ; preds = %67
  %73 = add nsw i32 %68, -1
  %74 = and i32 %70, %73
  %75 = or i32 %74, %68
  %76 = icmp eq i32 %75, %70
  br i1 %76, label %.sink.split.sink.split, label %77, !llvm.loop !36

77:                                               ; preds = %.thread156, %71, %65
  %.1 = phi i32 [ 0, %71 ], [ %66, %65 ], [ %75, %.thread156 ]
  %78 = load ptr, ptr %57, align 8, !tbaa !37
  %79 = sext i32 %.1 to i64
  %80 = getelementptr inbounds %struct.WavpackDecorrSpec, ptr %78, i64 %79
  %81 = getelementptr inbounds i8, ptr %80, i64 2
  %82 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %81) #11
  %83 = trunc i64 %82 to i32
  %84 = getelementptr inbounds i8, ptr %80, i64 1
  br label %85

85:                                               ; preds = %._crit_edge168, %77
  %.0125 = phi i32 [ %83, %77 ], [ %112, %._crit_edge168 ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %58, i64 %19, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1536) %7, i8 0, i64 1536, i1 false)
  %86 = icmp sgt i32 %.0125, 0
  br i1 %86, label %87, label %._crit_edge168

87:                                               ; preds = %85
  %wide.trip.count182 = zext nneg i32 %.0125 to i64
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(96) %6, i8 0, i64 96, i1 false)
  %88 = load i8, ptr %84, align 1, !tbaa !38
  %89 = sext i8 %88 to i32
  store i32 %89, ptr %59, align 4, !tbaa !32
  %90 = load i8, ptr %81, align 1, !tbaa !40
  %91 = icmp slt i8 %90, 0
  %narrow160.peel = select i1 %91, i8 1, i8 %90
  %spec.select.peel = sext i8 %narrow160.peel to i32
  store i32 %spec.select.peel, ptr %6, align 4, !tbaa !33
  call void @decorr_mono_pass(ptr noundef %32, ptr noundef %33, i32 noundef %60, ptr noundef nonnull %6, i32 noundef -1)
  call void @reverse_mono_decorr(ptr noundef nonnull %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(96) %7, ptr noundef nonnull align 4 dereferenceable(96) %6, i64 96, i1 false)
  call void @decorr_mono_pass(ptr noundef %32, ptr noundef %33, i32 noundef %17, ptr noundef nonnull %6, i32 noundef 1)
  %exitcond183.peel.not = icmp eq i32 %.0125, 1
  br i1 %exitcond183.peel.not, label %._crit_edge168, label %.lr.ph167.peel.next

.lr.ph167.peel.next:                              ; preds = %87, %.lr.ph167.peel.next
  %indvars.iv179 = phi i64 [ %indvars.iv.next180, %.lr.ph167.peel.next ], [ 1, %87 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(96) %6, i8 0, i64 96, i1 false)
  %92 = load i8, ptr %84, align 1, !tbaa !38
  %93 = sext i8 %92 to i32
  store i32 %93, ptr %59, align 4, !tbaa !32
  %94 = getelementptr inbounds [17 x i8], ptr %81, i64 0, i64 %indvars.iv179
  %95 = load i8, ptr %94, align 1, !tbaa !40
  %96 = icmp slt i8 %95, 0
  %narrow160 = select i1 %96, i8 1, i8 %95
  %spec.select = sext i8 %narrow160 to i32
  store i32 %spec.select, ptr %6, align 4, !tbaa !33
  %97 = and i64 %indvars.iv179, 1
  %98 = and i64 %indvars.iv179, 1
  %99 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = xor i64 %97, 1
  %102 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !15
  call void @decorr_mono_pass(ptr noundef %100, ptr noundef %103, i32 noundef %60, ptr noundef nonnull %6, i32 noundef -1)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %61, i8 0, i64 32, i1 false)
  %104 = getelementptr inbounds %struct.decorr_pass, ptr %7, i64 %indvars.iv179
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(96) %104, ptr noundef nonnull align 4 dereferenceable(96) %6, i64 96, i1 false)
  call void @decorr_mono_pass(ptr noundef %100, ptr noundef %103, i32 noundef %17, ptr noundef nonnull %6, i32 noundef 1)
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %exitcond183.not = icmp eq i64 %indvars.iv.next180, %wide.trip.count182
  br i1 %exitcond183.not, label %._crit_edge168, label %.lr.ph167.peel.next, !llvm.loop !41

._crit_edge168:                                   ; preds = %.lr.ph167.peel.next, %87, %85
  %.0.lcssa = phi i32 [ 0, %85 ], [ 1, %87 ], [ %.0125, %.lr.ph167.peel.next ]
  %105 = and i32 %.0.lcssa, 1
  %106 = zext nneg i32 %105 to i64
  %107 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = call i32 @log2buffer(ptr noundef %108, i32 noundef %17, i32 noundef %spec.store.select) #9
  %110 = icmp eq i32 %109, -1
  %111 = icmp ne i32 %.0125, 0
  %or.cond = and i1 %111, %110
  %112 = ashr i32 %.0125, 1
  br i1 %or.cond, label %85, label %113

113:                                              ; preds = %._crit_edge168
  %114 = load i8, ptr %81, align 1, !tbaa !40
  %115 = sext i8 %114 to i32
  %116 = call i32 @log2overhead(i32 noundef %115, i32 noundef %.0125)
  %117 = add i32 %116, %109
  %118 = icmp ult i32 %117, %.0130170
  br i1 %118, label %119, label %120

119:                                              ; preds = %113
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %108, i64 %19, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(1536) %62, ptr noundef nonnull align 16 dereferenceable(1536) %7, i64 1536, i1 false)
  store i32 %.0125, ptr %63, align 4, !tbaa !29
  store i32 %.1, ptr %55, align 4, !tbaa !35
  br label %120

120:                                              ; preds = %119, %113
  %.1131 = phi i32 [ %117, %119 ], [ %.0130170, %113 ]
  br i1 %.not144, label %128, label %121

121:                                              ; preds = %120
  %122 = add nsw i32 %.0128171, 1
  %123 = load i32, ptr %54, align 8, !tbaa !34
  %.not146 = icmp eq i32 %123, 0
  br i1 %.not146, label %.sink.split, label %.sink.split.sink.split

.sink.split.sink.split:                           ; preds = %121, %.thread156
  %.sink193 = phi i32 [ %68, %.thread156 ], [ %123, %121 ]
  %.2.ph.ph = phi i32 [ %.0130170, %.thread156 ], [ %.1131, %121 ]
  %.1129.ph.ph = phi i32 [ %.0128171, %.thread156 ], [ %122, %121 ]
  %124 = shl i32 %.sink193, 1
  %125 = load i32, ptr %56, align 4, !tbaa !43
  %126 = add nsw i32 %125, -1
  %127 = and i32 %126, %124
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.sink.split, %121, %71
  %.sink = phi i32 [ 1, %71 ], [ 1, %121 ], [ %127, %.sink.split.sink.split ]
  %.2.ph = phi i32 [ %.0130170, %71 ], [ %.1131, %121 ], [ %.2.ph.ph, %.sink.split.sink.split ]
  %.1129.ph = phi i32 [ %.0128171, %71 ], [ %122, %121 ], [ %.1129.ph.ph, %.sink.split.sink.split ]
  store i32 %.sink, ptr %54, align 8, !tbaa !34
  br label %128

128:                                              ; preds = %.sink.split, %120
  %.2 = phi i32 [ %.1131, %120 ], [ %.2.ph, %.sink.split ]
  %.1129 = phi i32 [ 1, %120 ], [ %.1129.ph, %.sink.split ]
  %129 = load i32, ptr %36, align 8, !tbaa !31
  %130 = icmp slt i32 %.1129, %129
  br i1 %130, label %64, label %._crit_edge174

._crit_edge174:                                   ; preds = %128, %51
  %131 = getelementptr inbounds i8, ptr %0, i64 24
  %132 = load i32, ptr %131, align 8, !tbaa !44
  %133 = icmp sgt i32 %132, 3
  br i1 %133, label %134, label %138

134:                                              ; preds = %._crit_edge174
  %.not141 = icmp eq ptr %.0132152, null
  br i1 %.not141, label %137, label %135

135:                                              ; preds = %134
  call void @analyze_mono(ptr noundef nonnull %0, ptr noundef nonnull %.0132152, i32 noundef %3)
  %.not142 = icmp eq i32 %3, 0
  br i1 %.not142, label %140, label %136

136:                                              ; preds = %135
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %1, ptr nonnull align 4 %.0132152, i64 %19, i1 false)
  br label %140

137:                                              ; preds = %134
  call void @analyze_mono(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %3)
  br label %140

138:                                              ; preds = %._crit_edge174
  %.not140 = icmp eq i32 %3, 0
  br i1 %.not140, label %140, label %139

139:                                              ; preds = %138
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %1, ptr align 4 %35, i64 %19, i1 false)
  br label %140

140:                                              ; preds = %138, %139, %137, %136, %135
  br i1 %.not139154, label %141, label %144

141:                                              ; preds = %140
  %142 = load i32, ptr %131, align 8, !tbaa !44
  %143 = icmp sgt i32 %142, 3
  br i1 %143, label %144, label %145

144:                                              ; preds = %141, %140
  call void @scan_word(ptr noundef nonnull %14, ptr noundef %35, i32 noundef %17, i32 noundef -1) #9
  br label %145

145:                                              ; preds = %144, %141
  %.not143 = icmp eq ptr %.0132152, null
  br i1 %.not143, label %147, label %146

146:                                              ; preds = %145
  call void @free(ptr noundef nonnull %.0132152) #9
  br label %147

147:                                              ; preds = %146, %145
  call void @free(ptr noundef %33) #9
  call void @free(ptr noundef %32) #9
  call void @free(ptr noundef %35) #9
  br label %148

148:                                              ; preds = %147, %._crit_edge.thread
  call void @llvm.lifetime.end.p0(i64 1536, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  ret void
}

; 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare void @init_words(ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
declare hidden void @reverse_mono_decorr(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 hidden void @mono_add_noise(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #6

declare i32 @log2buffer(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

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

declare void @scan_word(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { nounwind willreturn memory(read) }

!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 288}
!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, !11, i64 276}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !19, i64 6}
!17 = !{!"", !18, i64 0, !20, 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, !21, i64 200, !21, i64 248, !21, 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, !22, i64 360, !9, i64 432, !24, i64 1968, !12, i64 2064, !25, i64 2072}
!18 = !{!"", !9, i64 0, !19, i64 4, !19, i64 6, !11, i64 8}
!19 = !{!"short", !9, i64 0}
!20 = !{!"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}
!21 = !{!"bs", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40}
!22 = !{!"", !9, i64 0, !9, i64 8, !9, i64 16, !23, i64 24, !23, i64 32, !23, i64 40, !12, i64 48, !12, i64 56, !11, i64 64}
!23 = !{!"double", !9, i64 0}
!24 = !{!"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}
!25 = !{!"", !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}
!26 = !{!11, !11, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!17, !11, i64 148}
!30 = !{!17, !11, i64 8}
!31 = !{!17, !11, i64 168}
!32 = !{!24, !11, i64 4}
!33 = !{!24, !11, i64 0}
!34 = !{!17, !11, i64 176}
!35 = !{!17, !11, i64 172}
!36 = distinct !{!36, !28}
!37 = !{!17, !12, i64 2064}
!38 = !{!39, !9, i64 1}
!39 = !{!"", !9, i64 0, !9, i64 1, !9, i64 2}
!40 = !{!9, !9, i64 0}
!41 = distinct !{!41, !28, !42}
!42 = !{!"llvm.loop.peeled.count", i32 1}
!43 = !{!17, !11, i64 164}
!44 = !{!6, !11, i64 24}


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