; LLVM IR from itchio/go-brotli :: enc (backward_references_hq)

; 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.ZopfliCostModel = type { [704 x float], [520 x float], ptr, float, i64 }
%struct.BrotliEncoderParams = type { i32, i32, i32, i32, i64, i32, %struct.BrotliHasherParams }
%struct.BrotliHasherParams = type { i32, i32, i32, i32, i32 }
%struct.BackwardMatch = type { i32, i32 }

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

; 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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 @BrotliZopfliCreateCommands(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @brotli_min_size_t(i64 noundef, i64 noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @StoreLookaheadH10() #3

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @HashTypeLengthH10() #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @FindAllMatchesH10(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @BackwardMatchLength(ptr noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @StoreRangeH10(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #3

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

declare hidden ptr @BrotliAllocate(ptr noundef, i64 noundef) #4

declare hidden void @BrotliFree(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define hidden void @BrotliCreateHqZopfliBackwardReferences(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) #0 {
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca [4 x i32], align 16
  %36 = alloca i64, align 8
  %37 = alloca %struct.ZopfliCostModel, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  %43 = alloca i64, align 8
  %44 = alloca i64, align 8
  %45 = alloca i64, align 8
  %46 = alloca i64, align 8
  %47 = alloca i64, align 8
  %48 = alloca i64, align 8
  %49 = alloca ptr, align 8
  %50 = alloca i64, align 8
  %51 = alloca i64, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store i64 %2, ptr %16, align 8, !tbaa !9
  store i64 %3, ptr %17, align 8, !tbaa !9
  store ptr %4, ptr %18, align 8, !tbaa !5
  store i64 %5, ptr %19, align 8, !tbaa !9
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %52 = load ptr, ptr %20, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.BrotliEncoderParams, ptr %52, i32 0, i32 2
  %54 = load i32, ptr %53, align 8, !tbaa !11
  %55 = zext i32 %54 to i64
  %56 = shl i64 1, %55
  %57 = sub i64 %56, 16
  store i64 %57, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %58 = load i64, ptr %16, align 8, !tbaa !9
  %59 = icmp ugt i64 %58, 0
  br i1 %59, label %60, label %65

60:                                               ; preds = %13
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = load i64, ptr %16, align 8, !tbaa !9
  %63 = mul i64 %62, 4
  %64 = call ptr @BrotliAllocate(ptr noundef %61, i64 noundef %63)
  br label %66

65:                                               ; preds = %13
  br label %66

66:                                               ; preds = %65, %60
  %67 = phi ptr [ %64, %60 ], [ null, %65 ]
  store ptr %67, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %68 = load i64, ptr %16, align 8, !tbaa !9
  %69 = mul i64 4, %68
  store i64 %69, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %70 = load i64, ptr %16, align 8, !tbaa !9
  %71 = call i64 @StoreLookaheadH10()
  %72 = icmp uge i64 %70, %71
  br i1 %72, label %73, label %80

73:                                               ; preds = %66
  %74 = load i64, ptr %17, align 8, !tbaa !9
  %75 = load i64, ptr %16, align 8, !tbaa !9
  %76 = add i64 %74, %75
  %77 = call i64 @StoreLookaheadH10()
  %78 = sub i64 %76, %77
  %79 = add i64 %78, 1
  br label %82

80:                                               ; preds = %66
  %81 = load i64, ptr %17, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %80, %73
  %83 = phi i64 [ %79, %73 ], [ %81, %80 ]
  store i64 %83, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  store i64 0, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 4920, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %84 = load i64, ptr %29, align 8, !tbaa !9
  %85 = icmp ugt i64 %84, 0
  br i1 %85, label %86, label %91

86:                                               ; preds = %82
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = load i64, ptr %29, align 8, !tbaa !9
  %89 = mul i64 %88, 8
  %90 = call ptr @BrotliAllocate(ptr noundef %87, i64 noundef %89)
  br label %92

91:                                               ; preds = %82
  br label %92

92:                                               ; preds = %91, %86
  %93 = phi ptr [ %90, %86 ], [ null, %91 ]
  store ptr %93, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  store i64 0, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  store i64 0, ptr %41, align 8, !tbaa !9
  store i64 0, ptr %32, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %244, %92
  %95 = load i64, ptr %32, align 8, !tbaa !9
  %96 = call i64 @HashTypeLengthH10()
  %97 = add i64 %95, %96
  %98 = sub i64 %97, 1
  %99 = load i64, ptr %16, align 8, !tbaa !9
  %100 = icmp ult i64 %98, %99
  br i1 %100, label %101, label %247

101:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %102 = load i64, ptr %17, align 8, !tbaa !9
  %103 = load i64, ptr %32, align 8, !tbaa !9
  %104 = add i64 %102, %103
  store i64 %104, ptr %42, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %105 = load i64, ptr %42, align 8, !tbaa !9
  %106 = load i64, ptr %27, align 8, !tbaa !9
  %107 = call i64 @brotli_min_size_t(i64 noundef %105, i64 noundef %106)
  store i64 %107, ptr %43, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %108 = load i64, ptr %16, align 8, !tbaa !9
  %109 = load i64, ptr %32, align 8, !tbaa !9
  %110 = sub i64 %108, %109
  store i64 %110, ptr %44, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  %111 = load i64, ptr %29, align 8, !tbaa !9
  %112 = load i64, ptr %31, align 8, !tbaa !9
  %113 = add i64 %112, 128
  %114 = load i64, ptr %41, align 8, !tbaa !9
  %115 = add i64 %113, %114
  %116 = icmp ult i64 %111, %115
  br i1 %116, label %117, label %162

117:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  %118 = load i64, ptr %29, align 8, !tbaa !9
  %119 = icmp eq i64 %118, 0
  br i1 %119, label %120, label %125

120:                                              ; preds = %117
  %121 = load i64, ptr %31, align 8, !tbaa !9
  %122 = add i64 %121, 128
  %123 = load i64, ptr %41, align 8, !tbaa !9
  %124 = add i64 %122, %123
  br label %127

125:                                              ; preds = %117
  %126 = load i64, ptr %29, align 8, !tbaa !9
  br label %127

127:                                              ; preds = %125, %120
  %128 = phi i64 [ %124, %120 ], [ %126, %125 ]
  store i64 %128, ptr %48, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  br label %129

129:                                              ; preds = %136, %127
  %130 = load i64, ptr %48, align 8, !tbaa !9
  %131 = load i64, ptr %31, align 8, !tbaa !9
  %132 = add i64 %131, 128
  %133 = load i64, ptr %41, align 8, !tbaa !9
  %134 = add i64 %132, %133
  %135 = icmp ult i64 %130, %134
  br i1 %135, label %136, label %139

136:                                              ; preds = %129
  %137 = load i64, ptr %48, align 8, !tbaa !9
  %138 = mul i64 %137, 2
  store i64 %138, ptr %48, align 8, !tbaa !9
  br label %129, !llvm.loop !15

139:                                              ; preds = %129
  %140 = load i64, ptr %48, align 8, !tbaa !9
  %141 = icmp ugt i64 %140, 0
  br i1 %141, label %142, label %147

142:                                              ; preds = %139
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = load i64, ptr %48, align 8, !tbaa !9
  %145 = mul i64 %144, 8
  %146 = call ptr @BrotliAllocate(ptr noundef %143, i64 noundef %145)
  br label %148

147:                                              ; preds = %139
  br label %148

148:                                              ; preds = %147, %142
  %149 = phi ptr [ %146, %142 ], [ null, %147 ]
  store ptr %149, ptr %49, align 8, !tbaa !5
  %150 = load i64, ptr %29, align 8, !tbaa !9
  %151 = icmp ne i64 %150, 0
  br i1 %151, label %152, label %157

152:                                              ; preds = %148
  %153 = load ptr, ptr %49, align 8, !tbaa !5
  %154 = load ptr, ptr %39, align 8, !tbaa !5
  %155 = load i64, ptr %29, align 8, !tbaa !9
  %156 = mul i64 %155, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %153, ptr align 4 %154, i64 %156, i1 false)
  br label %157

157:                                              ; preds = %152, %148
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = load ptr, ptr %39, align 8, !tbaa !5
  call void @BrotliFree(ptr noundef %158, ptr noundef %159)
  store ptr null, ptr %39, align 8, !tbaa !5
  %160 = load ptr, ptr %49, align 8, !tbaa !5
  store ptr %160, ptr %39, align 8, !tbaa !5
  %161 = load i64, ptr %48, align 8, !tbaa !9
  store i64 %161, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  br label %162

162:                                              ; preds = %157, %101
  %163 = load ptr, ptr %21, align 8, !tbaa !5
  %164 = load ptr, ptr %15, align 8, !tbaa !5
  %165 = load ptr, ptr %18, align 8, !tbaa !5
  %166 = load i64, ptr %19, align 8, !tbaa !9
  %167 = load i64, ptr %42, align 8, !tbaa !9
  %168 = load i64, ptr %44, align 8, !tbaa !9
  %169 = load i64, ptr %43, align 8, !tbaa !9
  %170 = load i64, ptr %40, align 8, !tbaa !9
  %171 = load ptr, ptr %20, align 8, !tbaa !5
  %172 = load ptr, ptr %39, align 8, !tbaa !5
  %173 = load i64, ptr %31, align 8, !tbaa !9
  %174 = load i64, ptr %41, align 8, !tbaa !9
  %175 = add i64 %173, %174
  %176 = getelementptr inbounds %struct.BackwardMatch, ptr %172, i64 %175
  %177 = call i64 @FindAllMatchesH10(ptr noundef %163, ptr noundef %164, ptr noundef %165, i64 noundef %166, i64 noundef %167, i64 noundef %168, i64 noundef %169, i64 noundef %170, ptr noundef %171, ptr noundef %176)
  store i64 %177, ptr %45, align 8, !tbaa !9
  %178 = load i64, ptr %31, align 8, !tbaa !9
  %179 = load i64, ptr %45, align 8, !tbaa !9
  %180 = add i64 %178, %179
  store i64 %180, ptr %46, align 8, !tbaa !9
  %181 = load i64, ptr %31, align 8, !tbaa !9
  store i64 %181, ptr %47, align 8, !tbaa !9
  br label %182

182:                                              ; preds = %188, %162
  %183 = load i64, ptr %47, align 8, !tbaa !9
  %184 = add i64 %183, 1
  %185 = load i64, ptr %46, align 8, !tbaa !9
  %186 = icmp ult i64 %184, %185
  br i1 %186, label %187, label %191

187:                                              ; preds = %182
  br label %188

188:                                              ; preds = %187
  %189 = load i64, ptr %47, align 8, !tbaa !9
  %190 = add i64 %189, 1
  store i64 %190, ptr %47, align 8, !tbaa !9
  br label %182, !llvm.loop !17

191:                                              ; preds = %182
  %192 = load i64, ptr %45, align 8, !tbaa !9
  %193 = trunc i64 %192 to i32
  %194 = load ptr, ptr %28, align 8, !tbaa !5
  %195 = load i64, ptr %32, align 8, !tbaa !9
  %196 = getelementptr inbounds i32, ptr %194, i64 %195
  store i32 %193, ptr %196, align 4, !tbaa !18
  %197 = load i64, ptr %45, align 8, !tbaa !9
  %198 = icmp ugt i64 %197, 0
  br i1 %198, label %199, label %243

199:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  %200 = load ptr, ptr %39, align 8, !tbaa !5
  %201 = load i64, ptr %46, align 8, !tbaa !9
  %202 = sub i64 %201, 1
  %203 = getelementptr inbounds %struct.BackwardMatch, ptr %200, i64 %202
  %204 = call i64 @BackwardMatchLength(ptr noundef %203)
  store i64 %204, ptr %50, align 8, !tbaa !9
  %205 = load i64, ptr %50, align 8, !tbaa !9
  %206 = icmp ugt i64 %205, 325
  br i1 %206, label %207, label %240

207:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #6
  %208 = load i64, ptr %50, align 8, !tbaa !9
  %209 = sub i64 %208, 1
  store i64 %209, ptr %51, align 8, !tbaa !9
  %210 = load ptr, ptr %39, align 8, !tbaa !5
  %211 = load i64, ptr %31, align 8, !tbaa !9
  %212 = add i64 %211, 1
  store i64 %212, ptr %31, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.BackwardMatch, ptr %210, i64 %211
  %214 = load ptr, ptr %39, align 8, !tbaa !5
  %215 = load i64, ptr %46, align 8, !tbaa !9
  %216 = sub i64 %215, 1
  %217 = getelementptr inbounds %struct.BackwardMatch, ptr %214, i64 %216
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %213, ptr align 4 %217, i64 8, i1 false), !tbaa.struct !19
  %218 = load ptr, ptr %28, align 8, !tbaa !5
  %219 = load i64, ptr %32, align 8, !tbaa !9
  %220 = getelementptr inbounds i32, ptr %218, i64 %219
  store i32 1, ptr %220, align 4, !tbaa !18
  %221 = load ptr, ptr %21, align 8, !tbaa !5
  %222 = load ptr, ptr %18, align 8, !tbaa !5
  %223 = load i64, ptr %19, align 8, !tbaa !9
  %224 = load i64, ptr %42, align 8, !tbaa !9
  %225 = add i64 %224, 1
  %226 = load i64, ptr %42, align 8, !tbaa !9
  %227 = load i64, ptr %50, align 8, !tbaa !9
  %228 = add i64 %226, %227
  %229 = load i64, ptr %30, align 8, !tbaa !9
  %230 = call i64 @brotli_min_size_t(i64 noundef %228, i64 noundef %229)
  call void @StoreRangeH10(ptr noundef %221, ptr noundef %222, i64 noundef %223, i64 noundef %225, i64 noundef %230)
  %231 = load ptr, ptr %28, align 8, !tbaa !5
  %232 = load i64, ptr %32, align 8, !tbaa !9
  %233 = add i64 %232, 1
  %234 = getelementptr inbounds i32, ptr %231, i64 %233
  %235 = load i64, ptr %51, align 8, !tbaa !9
  %236 = mul i64 %235, 4
  call void @llvm.memset.p0.i64(ptr align 4 %234, i8 0, i64 %236, i1 false)
  %237 = load i64, ptr %51, align 8, !tbaa !9
  %238 = load i64, ptr %32, align 8, !tbaa !9
  %239 = add i64 %238, %237
  store i64 %239, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  br label %242

240:                                              ; preds = %199
  %241 = load i64, ptr %46, align 8, !tbaa !9
  store i64 %241, ptr %31, align 8, !tbaa !9
  br label %242

242:                                              ; preds = %240, %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  br label %243

243:                                              ; preds = %242, %191
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %244

244:                                              ; preds = %243
  %245 = load i64, ptr %32, align 8, !tbaa !9
  %246 = add i64 %245, 1
  store i64 %246, ptr %32, align 8, !tbaa !9
  br label %94, !llvm.loop !20

247:                                              ; preds = %94
  %248 = load ptr, ptr %26, align 8, !tbaa !5
  %249 = load i64, ptr %248, align 8, !tbaa !9
  store i64 %249, ptr %33, align 8, !tbaa !9
  %250 = load ptr, ptr %23, align 8, !tbaa !5
  %251 = load i64, ptr %250, align 8, !tbaa !9
  store i64 %251, ptr %34, align 8, !tbaa !9
  %252 = getelementptr inbounds [4 x i32], ptr %35, i64 0, i64 0
  %253 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %252, ptr align 4 %253, i64 16, i1 false)
  %254 = load ptr, ptr %25, align 8, !tbaa !5
  %255 = load i64, ptr %254, align 8, !tbaa !9
  store i64 %255, ptr %36, align 8, !tbaa !9
  %256 = load i64, ptr %16, align 8, !tbaa !9
  %257 = add i64 %256, 1
  %258 = icmp ugt i64 %257, 0
  br i1 %258, label %259, label %265

259:                                              ; preds = %247
  %260 = load ptr, ptr %14, align 8, !tbaa !5
  %261 = load i64, ptr %16, align 8, !tbaa !9
  %262 = add i64 %261, 1
  %263 = mul i64 %262, 16
  %264 = call ptr @BrotliAllocate(ptr noundef %260, i64 noundef %263)
  br label %266

265:                                              ; preds = %247
  br label %266

266:                                              ; preds = %265, %259
  %267 = phi ptr [ %264, %259 ], [ null, %265 ]
  store ptr %267, ptr %38, align 8, !tbaa !5
  %268 = load ptr, ptr %14, align 8, !tbaa !5
  %269 = load i64, ptr %16, align 8, !tbaa !9
  call void @InitZopfliCostModel(ptr noundef %268, ptr noundef %37, i64 noundef %269)
  store i64 0, ptr %32, align 8, !tbaa !9
  br label %270

270:                                              ; preds = %326, %266
  %271 = load i64, ptr %32, align 8, !tbaa !9
  %272 = icmp ult i64 %271, 2
  br i1 %272, label %273, label %329

273:                                              ; preds = %270
  %274 = load ptr, ptr %38, align 8, !tbaa !5
  %275 = load i64, ptr %16, align 8, !tbaa !9
  %276 = add i64 %275, 1
  call void @BrotliInitZopfliNodes(ptr noundef %274, i64 noundef %276)
  %277 = load i64, ptr %32, align 8, !tbaa !9
  %278 = icmp eq i64 %277, 0
  br i1 %278, label %279, label %283

279:                                              ; preds = %273
  %280 = load i64, ptr %17, align 8, !tbaa !9
  %281 = load ptr, ptr %18, align 8, !tbaa !5
  %282 = load i64, ptr %19, align 8, !tbaa !9
  call void @ZopfliCostModelSetFromLiteralCosts(ptr noundef %37, i64 noundef %280, ptr noundef %281, i64 noundef %282)
  br label %293

283:                                              ; preds = %273
  %284 = load i64, ptr %17, align 8, !tbaa !9
  %285 = load ptr, ptr %18, align 8, !tbaa !5
  %286 = load i64, ptr %19, align 8, !tbaa !9
  %287 = load ptr, ptr %24, align 8, !tbaa !5
  %288 = load ptr, ptr %25, align 8, !tbaa !5
  %289 = load i64, ptr %288, align 8, !tbaa !9
  %290 = load i64, ptr %36, align 8, !tbaa !9
  %291 = sub i64 %289, %290
  %292 = load i64, ptr %34, align 8, !tbaa !9
  call void @ZopfliCostModelSetFromCommands(ptr noundef %37, i64 noundef %284, ptr noundef %285, i64 noundef %286, ptr noundef %287, i64 noundef %291, i64 noundef %292)
  br label %293

293:                                              ; preds = %283, %279
  %294 = load i64, ptr %36, align 8, !tbaa !9
  %295 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 %294, ptr %295, align 8, !tbaa !9
  %296 = load i64, ptr %33, align 8, !tbaa !9
  %297 = load ptr, ptr %26, align 8, !tbaa !5
  store i64 %296, ptr %297, align 8, !tbaa !9
  %298 = load i64, ptr %34, align 8, !tbaa !9
  %299 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 %298, ptr %299, align 8, !tbaa !9
  %300 = load ptr, ptr %22, align 8, !tbaa !5
  %301 = getelementptr inbounds [4 x i32], ptr %35, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %300, ptr align 16 %301, i64 16, i1 false)
  %302 = load i64, ptr %16, align 8, !tbaa !9
  %303 = load i64, ptr %17, align 8, !tbaa !9
  %304 = load ptr, ptr %18, align 8, !tbaa !5
  %305 = load i64, ptr %19, align 8, !tbaa !9
  %306 = load ptr, ptr %20, align 8, !tbaa !5
  %307 = load i64, ptr %27, align 8, !tbaa !9
  %308 = load i64, ptr %40, align 8, !tbaa !9
  %309 = load ptr, ptr %22, align 8, !tbaa !5
  %310 = load ptr, ptr %28, align 8, !tbaa !5
  %311 = load ptr, ptr %39, align 8, !tbaa !5
  %312 = load ptr, ptr %38, align 8, !tbaa !5
  %313 = call i64 @ZopfliIterate(i64 noundef %302, i64 noundef %303, ptr noundef %304, i64 noundef %305, ptr noundef %306, i64 noundef %307, i64 noundef %308, ptr noundef %309, ptr noundef %37, ptr noundef %310, ptr noundef %311, ptr noundef %312)
  %314 = load ptr, ptr %25, align 8, !tbaa !5
  %315 = load i64, ptr %314, align 8, !tbaa !9
  %316 = add i64 %315, %313
  store i64 %316, ptr %314, align 8, !tbaa !9
  %317 = load i64, ptr %16, align 8, !tbaa !9
  %318 = load i64, ptr %17, align 8, !tbaa !9
  %319 = load i64, ptr %27, align 8, !tbaa !9
  %320 = load ptr, ptr %38, align 8, !tbaa !5
  %321 = load ptr, ptr %22, align 8, !tbaa !5
  %322 = load ptr, ptr %23, align 8, !tbaa !5
  %323 = load ptr, ptr %20, align 8, !tbaa !5
  %324 = load ptr, ptr %24, align 8, !tbaa !5
  %325 = load ptr, ptr %26, align 8, !tbaa !5
  call void @BrotliZopfliCreateCommands(i64 noundef %317, i64 noundef %318, i64 noundef %319, ptr noundef %320, ptr noundef %321, ptr noundef %322, ptr noundef %323, ptr noundef %324, ptr noundef %325)
  br label %326

326:                                              ; preds = %293
  %327 = load i64, ptr %32, align 8, !tbaa !9
  %328 = add i64 %327, 1
  store i64 %328, ptr %32, align 8, !tbaa !9
  br label %270, !llvm.loop !21

329:                                              ; preds = %270
  %330 = load ptr, ptr %14, align 8, !tbaa !5
  call void @CleanupZopfliCostModel(ptr noundef %330, ptr noundef %37)
  %331 = load ptr, ptr %14, align 8, !tbaa !5
  %332 = load ptr, ptr %38, align 8, !tbaa !5
  call void @BrotliFree(ptr noundef %331, ptr noundef %332)
  store ptr null, ptr %38, align 8, !tbaa !5
  %333 = load ptr, ptr %14, align 8, !tbaa !5
  %334 = load ptr, ptr %39, align 8, !tbaa !5
  call void @BrotliFree(ptr noundef %333, ptr noundef %334)
  store ptr null, ptr %39, align 8, !tbaa !5
  %335 = load ptr, ptr %14, align 8, !tbaa !5
  %336 = load ptr, ptr %28, align 8, !tbaa !5
  call void @BrotliFree(ptr noundef %335, ptr noundef %336)
  store ptr null, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4920, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  ret void
}

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

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

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

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

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

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


; 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.ZopfliCostModel = type { [704 x float], [520 x float], ptr, float, i64 }
%struct.BackwardMatch = type { i32, i32 }

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

; 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 @BrotliZopfliCreateCommands(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @brotli_min_size_t(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @StoreLookaheadH10() local_unnamed_addr #3

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @HashTypeLengthH10() local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @FindAllMatchesH10(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @BackwardMatchLength(ptr noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @StoreRangeH10(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

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

declare hidden ptr @BrotliAllocate(ptr noundef, i64 noundef) local_unnamed_addr #4

declare hidden void @BrotliFree(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define hidden void @BrotliCreateHqZopfliBackwardReferences(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr nocapture noundef %11, ptr noundef %12) local_unnamed_addr #0 {
  %14 = alloca [4 x i32], align 16
  %15 = alloca %struct.ZopfliCostModel, align 8
  %16 = getelementptr inbounds i8, ptr %6, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !5
  %18 = zext nneg i32 %17 to i64
  %19 = shl nuw i64 1, %18
  %20 = add i64 %19, -16
  %.not = icmp eq i64 %2, 0
  br i1 %.not, label %._crit_edge176, label %21

21:                                               ; preds = %13
  %22 = shl i64 %2, 2
  %23 = tail call ptr @BrotliAllocate(ptr noundef %0, i64 noundef %22) #6
  br label %._crit_edge176

._crit_edge176:                                   ; preds = %13, %21
  %.pre-phi = phi i64 [ %22, %21 ], [ 0, %13 ]
  %24 = phi ptr [ %23, %21 ], [ null, %13 ]
  %25 = tail call i64 @StoreLookaheadH10()
  %.not165 = icmp ugt i64 %25, %2
  br i1 %.not165, label %31, label %26

26:                                               ; preds = %._crit_edge176
  %27 = tail call i64 @StoreLookaheadH10()
  %28 = add i64 %2, 1
  %29 = add i64 %28, %3
  %30 = sub i64 %29, %27
  br label %31

31:                                               ; preds = %._crit_edge176, %26
  %32 = phi i64 [ %30, %26 ], [ %3, %._crit_edge176 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14)
  call void @llvm.lifetime.start.p0(i64 4920, ptr nonnull %15) #6
  %.not166 = icmp eq i64 %.pre-phi, 0
  br i1 %.not166, label %36, label %33

33:                                               ; preds = %31
  %34 = shl i64 %2, 5
  %35 = tail call ptr @BrotliAllocate(ptr noundef %0, i64 noundef %34) #6
  br label %36

36:                                               ; preds = %31, %33
  %37 = phi ptr [ %35, %33 ], [ null, %31 ]
  %38 = tail call i64 @HashTypeLengthH10()
  %39 = add i64 %38, -1
  %40 = icmp ult i64 %39, %2
  br i1 %40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %36, %79
  %.0174 = phi i64 [ %.1, %79 ], [ %.pre-phi, %36 ]
  %.0146173 = phi i64 [ %.2, %79 ], [ 0, %36 ]
  %.0150172 = phi i64 [ %80, %79 ], [ 0, %36 ]
  %.0153171 = phi ptr [ %.1154, %79 ], [ %37, %36 ]
  %41 = add i64 %.0150172, %3
  %42 = tail call i64 @brotli_min_size_t(i64 noundef %41, i64 noundef %20)
  %43 = sub i64 %2, %.0150172
  %44 = add i64 %.0146173, 128
  %45 = icmp ult i64 %.0174, %44
  br i1 %45, label %46, label %57

46:                                               ; preds = %.lr.ph
  %47 = icmp eq i64 %.0174, 0
  %..0 = select i1 %47, i64 %44, i64 %.0174
  br label %48

48:                                               ; preds = %48, %46
  %.0148 = phi i64 [ %..0, %46 ], [ %50, %48 ]
  %49 = icmp ult i64 %.0148, %44
  %50 = shl i64 %.0148, 1
  br i1 %49, label %48, label %51, !llvm.loop !12

51:                                               ; preds = %48
  %52 = shl i64 %.0148, 3
  %53 = tail call ptr @BrotliAllocate(ptr noundef %0, i64 noundef %52) #6
  br i1 %47, label %56, label %54

54:                                               ; preds = %51
  %55 = shl i64 %.0174, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %.0153171, i64 %55, i1 false)
  br label %56

56:                                               ; preds = %54, %51
  tail call void @BrotliFree(ptr noundef %0, ptr noundef %.0153171) #6
  br label %57

57:                                               ; preds = %56, %.lr.ph
  %.1154 = phi ptr [ %53, %56 ], [ %.0153171, %.lr.ph ]
  %.1 = phi i64 [ %.0148, %56 ], [ %.0174, %.lr.ph ]
  %58 = getelementptr inbounds %struct.BackwardMatch, ptr %.1154, i64 %.0146173
  %59 = tail call i64 @FindAllMatchesH10(ptr noundef %7, ptr noundef %1, ptr noundef %4, i64 noundef %5, i64 noundef %41, i64 noundef %43, i64 noundef %42, i64 noundef 0, ptr noundef %6, ptr noundef %58)
  %60 = trunc i64 %59 to i32
  %61 = getelementptr inbounds i32, ptr %24, i64 %.0150172
  store i32 %60, ptr %61, align 4, !tbaa !14
  %.not170 = icmp eq i64 %59, 0
  br i1 %.not170, label %79, label %62

62:                                               ; preds = %57
  %63 = add i64 %59, %.0146173
  %64 = add i64 %63, -1
  %65 = getelementptr inbounds %struct.BackwardMatch, ptr %.1154, i64 %64
  %66 = tail call i64 @BackwardMatchLength(ptr noundef %65)
  %67 = icmp ugt i64 %66, 325
  br i1 %67, label %68, label %79

68:                                               ; preds = %62
  %69 = add i64 %66, -1
  %70 = add i64 %.0146173, 1
  %71 = load i64, ptr %65, align 4
  store i64 %71, ptr %58, align 4
  store i32 1, ptr %61, align 4, !tbaa !14
  %72 = add i64 %41, 1
  %73 = add i64 %66, %41
  %74 = tail call i64 @brotli_min_size_t(i64 noundef %73, i64 noundef %32)
  tail call void @StoreRangeH10(ptr noundef %7, ptr noundef %4, i64 noundef %5, i64 noundef %72, i64 noundef %74)
  %75 = add i64 %.0150172, 1
  %76 = getelementptr inbounds i32, ptr %24, i64 %75
  %77 = shl i64 %69, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %76, i8 0, i64 %77, i1 false)
  %78 = add i64 %69, %.0150172
  br label %79

79:                                               ; preds = %68, %62, %57
  %.2152 = phi i64 [ %.0150172, %57 ], [ %78, %68 ], [ %.0150172, %62 ]
  %.2 = phi i64 [ %.0146173, %57 ], [ %70, %68 ], [ %63, %62 ]
  %80 = add i64 %.2152, 1
  %81 = tail call i64 @HashTypeLengthH10()
  %82 = add i64 %.2152, %81
  %83 = icmp ult i64 %82, %2
  br i1 %83, label %.lr.ph, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %79, %36
  %.0153.lcssa = phi ptr [ %37, %36 ], [ %.1154, %79 ]
  %84 = load i64, ptr %12, align 8, !tbaa !16
  %85 = load i64, ptr %9, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(16) %8, i64 16, i1 false)
  %86 = load i64, ptr %11, align 8, !tbaa !16
  %87 = add i64 %2, 1
  %.not167 = icmp eq i64 %87, 0
  br i1 %.not167, label %91, label %88

88:                                               ; preds = %._crit_edge
  %89 = shl i64 %87, 4
  %90 = tail call ptr @BrotliAllocate(ptr noundef %0, i64 noundef %89) #6
  br label %91

91:                                               ; preds = %._crit_edge, %88
  %92 = phi ptr [ %90, %88 ], [ null, %._crit_edge ]
  call void @InitZopfliCostModel(ptr noundef %0, ptr noundef nonnull %15, i64 noundef %2)
  call void @BrotliInitZopfliNodes(ptr noundef %92, i64 noundef %87)
  call void @ZopfliCostModelSetFromLiteralCosts(ptr noundef nonnull %15, i64 noundef %3, ptr noundef %4, i64 noundef %5)
  store i64 %86, ptr %11, align 8, !tbaa !16
  store i64 %84, ptr %12, align 8, !tbaa !16
  store i64 %85, ptr %9, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %14, i64 16, i1 false)
  %93 = call i64 @ZopfliIterate(i64 noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %20, i64 noundef 0, ptr noundef nonnull %8, ptr noundef nonnull %15, ptr noundef %24, ptr noundef %.0153.lcssa, ptr noundef %92)
  %94 = load i64, ptr %11, align 8, !tbaa !16
  %95 = add i64 %94, %93
  store i64 %95, ptr %11, align 8, !tbaa !16
  call void @BrotliZopfliCreateCommands(i64 noundef %2, i64 noundef %3, i64 noundef %20, ptr noundef %92, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %6, ptr noundef %10, ptr noundef nonnull %12)
  call void @BrotliInitZopfliNodes(ptr noundef %92, i64 noundef %87)
  %96 = load i64, ptr %11, align 8, !tbaa !16
  %97 = sub i64 %96, %86
  call void @ZopfliCostModelSetFromCommands(ptr noundef nonnull %15, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %10, i64 noundef %97, i64 noundef %85)
  store i64 %86, ptr %11, align 8, !tbaa !16
  store i64 %84, ptr %12, align 8, !tbaa !16
  store i64 %85, ptr %9, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %14, i64 16, i1 false)
  %98 = call i64 @ZopfliIterate(i64 noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %20, i64 noundef 0, ptr noundef nonnull %8, ptr noundef nonnull %15, ptr noundef %24, ptr noundef %.0153.lcssa, ptr noundef %92)
  %99 = load i64, ptr %11, align 8, !tbaa !16
  %100 = add i64 %99, %98
  store i64 %100, ptr %11, align 8, !tbaa !16
  call void @BrotliZopfliCreateCommands(i64 noundef %2, i64 noundef %3, i64 noundef %20, ptr noundef %92, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %6, ptr noundef %10, ptr noundef nonnull %12)
  call void @CleanupZopfliCostModel(ptr noundef %0, ptr noundef nonnull %15)
  call void @BrotliFree(ptr noundef %0, ptr noundef %92) #6
  call void @BrotliFree(ptr noundef %0, ptr noundef %.0153.lcssa) #6
  call void @BrotliFree(ptr noundef %0, ptr noundef %24) #6
  call void @llvm.lifetime.end.p0(i64 4920, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14)
  ret void
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"BrotliEncoderParams", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !7, i64 24, !11, i64 28}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"BrotliHasherParams", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !13}
!16 = !{!10, !10, i64 0}


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