; LLVM IR from DanEngelbrecht/longtail :: lib/brotli/ext/enc (brotli_bit_stream)

; 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.Command = type { i32, i32, i32, i16, i16 }
%struct.BrotliEncoderParams = type { i32, i32, i32, i32, i64, i64, i32, i32, %struct.BrotliHasherParams, %struct.BrotliDistanceParams, %struct.SharedEncoderDictionary }
%struct.BrotliHasherParams = type { i32, i32, i32, i32 }
%struct.BrotliDistanceParams = type { i32, i32, i32, i32, i64 }
%struct.SharedEncoderDictionary = type { i32, %struct.CompoundDictionary, %struct.ContextualEncoderDictionary, i32 }
%struct.CompoundDictionary = type { i64, i64, [16 x ptr], [16 x ptr], [16 x i64], i64, [16 x ptr] }
%struct.ContextualEncoderDictionary = type { i32, i8, [64 x i8], [64 x ptr], i64, %struct.BrotliEncoderDictionary, ptr }
%struct.BrotliEncoderDictionary = type { ptr, i32, i32, i64, ptr, ptr, ptr, ptr, %struct.BrotliTrie, i32, ptr, ptr, ptr, i64, ptr, i64, ptr, ptr }
%struct.BrotliTrie = type { ptr, i64, i64, %struct.BrotliTrieNode }
%struct.BrotliTrieNode = type { i8, i8, i8, i32, i32 }
%struct.StoreMetablockArena = type { %struct.BlockEncoder, %struct.BlockEncoder, %struct.BlockEncoder, %struct.EncodeContextMapArena }
%struct.BlockEncoder = type { i64, i64, ptr, ptr, i64, %struct.BlockSplitCode, i64, i64, i64, ptr, ptr }
%struct.BlockSplitCode = type { %struct.BlockTypeCodeCalculator, [258 x i8], [258 x i16], [26 x i8], [26 x i16] }
%struct.BlockTypeCodeCalculator = type { i64, i64 }
%struct.EncodeContextMapArena = type { [272 x i32], [272 x i8], [272 x i16] }
%struct.MetaBlockSplit = type { %struct.BlockSplit, %struct.BlockSplit, %struct.BlockSplit, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64 }
%struct.BlockSplit = type { i64, i64, ptr, ptr, i64, i64 }

@_kBrotliContextLookupTable = external constant [2048 x i8], align 16

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @BrotliWriteBits(i64 noundef, i64 noundef, ptr noalias noundef, ptr noalias noundef) #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: nounwind uwtable
define hidden void @BrotliStoreMetaBlock(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i8 noundef zeroext %5, i8 noundef zeroext %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef %10, i64 noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14) #3 {
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca %struct.Command, align 4
  %43 = alloca i64, align 8
  %44 = alloca i64, align 8
  %45 = alloca i64, align 8
  %46 = alloca i64, align 8
  %47 = alloca i8, align 1
  %48 = alloca i64, align 8
  %49 = alloca i32, align 4
  %50 = alloca i64, align 8
  %51 = alloca i64, align 8
  store ptr %0, ptr %16, align 8, !tbaa !5
  store ptr %1, ptr %17, align 8, !tbaa !5
  store i64 %2, ptr %18, align 8, !tbaa !9
  store i64 %3, ptr %19, align 8, !tbaa !9
  store i64 %4, ptr %20, align 8, !tbaa !9
  store i8 %5, ptr %21, align 1, !tbaa !11
  store i8 %6, ptr %22, align 1, !tbaa !11
  store i32 %7, ptr %23, align 4, !tbaa !12
  store ptr %8, ptr %24, align 8, !tbaa !5
  store i32 %9, ptr %25, align 4, !tbaa !12
  store ptr %10, ptr %26, align 8, !tbaa !5
  store i64 %11, ptr %27, align 8, !tbaa !9
  store ptr %12, ptr %28, align 8, !tbaa !5
  store ptr %13, ptr %29, align 8, !tbaa !5
  store ptr %14, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %52 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %52, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %53 = load ptr, ptr %24, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.BrotliEncoderParams, ptr %53, i32 0, i32 9
  %55 = getelementptr inbounds %struct.BrotliDistanceParams, ptr %54, i32 0, i32 2
  %56 = load i32, ptr %55, align 8, !tbaa !14
  store i32 %56, ptr %33, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %57 = load ptr, ptr %24, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.BrotliEncoderParams, ptr %57, i32 0, i32 9
  %59 = getelementptr inbounds %struct.BrotliDistanceParams, ptr %58, i32 0, i32 3
  %60 = load i32, ptr %59, align 4, !tbaa !24
  store i32 %60, ptr %34, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %61 = load i32, ptr %25, align 4, !tbaa !12
  %62 = shl i32 %61, 9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [2048 x i8], ptr @_kBrotliContextLookupTable, i64 0, i64 %63
  store ptr %64, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  store ptr null, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  store ptr null, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  store ptr null, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  store ptr null, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  %65 = load ptr, ptr %24, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.BrotliEncoderParams, ptr %65, i32 0, i32 9
  store ptr %66, ptr %41, align 8, !tbaa !5
  %67 = load i32, ptr %23, align 4, !tbaa !12
  %68 = load i64, ptr %19, align 8, !tbaa !9
  %69 = load ptr, ptr %29, align 8, !tbaa !5
  %70 = load ptr, ptr %30, align 8, !tbaa !5
  call void @StoreCompressedMetaBlockHeader(i32 noundef %67, i64 noundef %68, ptr noundef %69, ptr noundef %70)
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = call ptr @BrotliAllocate(ptr noundef %71, i64 noundef 11272)
  store ptr %72, ptr %35, align 8, !tbaa !5
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = call ptr @BrotliAllocate(ptr noundef %73, i64 noundef 4760)
  store ptr %74, ptr %37, align 8, !tbaa !5
  %75 = load ptr, ptr %37, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.StoreMetablockArena, ptr %75, i32 0, i32 0
  store ptr %76, ptr %38, align 8, !tbaa !5
  %77 = load ptr, ptr %37, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.StoreMetablockArena, ptr %77, i32 0, i32 1
  store ptr %78, ptr %39, align 8, !tbaa !5
  %79 = load ptr, ptr %37, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.StoreMetablockArena, ptr %79, i32 0, i32 2
  store ptr %80, ptr %40, align 8, !tbaa !5
  %81 = load ptr, ptr %38, align 8, !tbaa !5
  %82 = load ptr, ptr %28, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.MetaBlockSplit, ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds %struct.BlockSplit, ptr %83, i32 0, i32 0
  %85 = load i64, ptr %84, align 8, !tbaa !25
  %86 = load ptr, ptr %28, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.MetaBlockSplit, ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %struct.BlockSplit, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !28
  %90 = load ptr, ptr %28, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.MetaBlockSplit, ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds %struct.BlockSplit, ptr %91, i32 0, i32 3
  %93 = load ptr, ptr %92, align 8, !tbaa !29
  %94 = load ptr, ptr %28, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.MetaBlockSplit, ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds %struct.BlockSplit, ptr %95, i32 0, i32 1
  %97 = load i64, ptr %96, align 8, !tbaa !30
  call void @InitBlockEncoder(ptr noundef %81, i64 noundef 256, i64 noundef %85, ptr noundef %89, ptr noundef %93, i64 noundef %97)
  %98 = load ptr, ptr %39, align 8, !tbaa !5
  %99 = load ptr, ptr %28, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.MetaBlockSplit, ptr %99, i32 0, i32 1
  %101 = getelementptr inbounds %struct.BlockSplit, ptr %100, i32 0, i32 0
  %102 = load i64, ptr %101, align 8, !tbaa !31
  %103 = load ptr, ptr %28, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.MetaBlockSplit, ptr %103, i32 0, i32 1
  %105 = getelementptr inbounds %struct.BlockSplit, ptr %104, i32 0, i32 2
  %106 = load ptr, ptr %105, align 8, !tbaa !32
  %107 = load ptr, ptr %28, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.MetaBlockSplit, ptr %107, i32 0, i32 1
  %109 = getelementptr inbounds %struct.BlockSplit, ptr %108, i32 0, i32 3
  %110 = load ptr, ptr %109, align 8, !tbaa !33
  %111 = load ptr, ptr %28, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.MetaBlockSplit, ptr %111, i32 0, i32 1
  %113 = getelementptr inbounds %struct.BlockSplit, ptr %112, i32 0, i32 1
  %114 = load i64, ptr %113, align 8, !tbaa !34
  call void @InitBlockEncoder(ptr noundef %98, i64 noundef 704, i64 noundef %102, ptr noundef %106, ptr noundef %110, i64 noundef %114)
  %115 = load ptr, ptr %40, align 8, !tbaa !5
  %116 = load i32, ptr %34, align 4, !tbaa !12
  %117 = zext i32 %116 to i64
  %118 = load ptr, ptr %28, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.MetaBlockSplit, ptr %118, i32 0, i32 2
  %120 = getelementptr inbounds %struct.BlockSplit, ptr %119, i32 0, i32 0
  %121 = load i64, ptr %120, align 8, !tbaa !35
  %122 = load ptr, ptr %28, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.MetaBlockSplit, ptr %122, i32 0, i32 2
  %124 = getelementptr inbounds %struct.BlockSplit, ptr %123, i32 0, i32 2
  %125 = load ptr, ptr %124, align 8, !tbaa !36
  %126 = load ptr, ptr %28, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.MetaBlockSplit, ptr %126, i32 0, i32 2
  %128 = getelementptr inbounds %struct.BlockSplit, ptr %127, i32 0, i32 3
  %129 = load ptr, ptr %128, align 8, !tbaa !37
  %130 = load ptr, ptr %28, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.MetaBlockSplit, ptr %130, i32 0, i32 2
  %132 = getelementptr inbounds %struct.BlockSplit, ptr %131, i32 0, i32 1
  %133 = load i64, ptr %132, align 8, !tbaa !38
  call void @InitBlockEncoder(ptr noundef %115, i64 noundef %117, i64 noundef %121, ptr noundef %125, ptr noundef %129, i64 noundef %133)
  %134 = load ptr, ptr %38, align 8, !tbaa !5
  %135 = load ptr, ptr %35, align 8, !tbaa !5
  %136 = load ptr, ptr %29, align 8, !tbaa !5
  %137 = load ptr, ptr %30, align 8, !tbaa !5
  call void @BuildAndStoreBlockSwitchEntropyCodes(ptr noundef %134, ptr noundef %135, ptr noundef %136, ptr noundef %137)
  %138 = load ptr, ptr %39, align 8, !tbaa !5
  %139 = load ptr, ptr %35, align 8, !tbaa !5
  %140 = load ptr, ptr %29, align 8, !tbaa !5
  %141 = load ptr, ptr %30, align 8, !tbaa !5
  call void @BuildAndStoreBlockSwitchEntropyCodes(ptr noundef %138, ptr noundef %139, ptr noundef %140, ptr noundef %141)
  %142 = load ptr, ptr %40, align 8, !tbaa !5
  %143 = load ptr, ptr %35, align 8, !tbaa !5
  %144 = load ptr, ptr %29, align 8, !tbaa !5
  %145 = load ptr, ptr %30, align 8, !tbaa !5
  call void @BuildAndStoreBlockSwitchEntropyCodes(ptr noundef %142, ptr noundef %143, ptr noundef %144, ptr noundef %145)
  %146 = load ptr, ptr %41, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.BrotliDistanceParams, ptr %146, i32 0, i32 0
  %148 = load i32, ptr %147, align 8, !tbaa !39
  %149 = zext i32 %148 to i64
  %150 = load ptr, ptr %29, align 8, !tbaa !5
  %151 = load ptr, ptr %30, align 8, !tbaa !5
  call void @BrotliWriteBits(i64 noundef 2, i64 noundef %149, ptr noundef %150, ptr noundef %151)
  %152 = load ptr, ptr %41, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.BrotliDistanceParams, ptr %152, i32 0, i32 1
  %154 = load i32, ptr %153, align 4, !tbaa !40
  %155 = load ptr, ptr %41, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.BrotliDistanceParams, ptr %155, i32 0, i32 0
  %157 = load i32, ptr %156, align 8, !tbaa !39
  %158 = lshr i32 %154, %157
  %159 = zext i32 %158 to i64
  %160 = load ptr, ptr %29, align 8, !tbaa !5
  %161 = load ptr, ptr %30, align 8, !tbaa !5
  call void @BrotliWriteBits(i64 noundef 4, i64 noundef %159, ptr noundef %160, ptr noundef %161)
  store i64 0, ptr %32, align 8, !tbaa !9
  br label %162

162:                                              ; preds = %174, %15
  %163 = load i64, ptr %32, align 8, !tbaa !9
  %164 = load ptr, ptr %28, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.MetaBlockSplit, ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds %struct.BlockSplit, ptr %165, i32 0, i32 0
  %167 = load i64, ptr %166, align 8, !tbaa !25
  %168 = icmp ult i64 %163, %167
  br i1 %168, label %169, label %177

169:                                              ; preds = %162
  %170 = load i32, ptr %25, align 4, !tbaa !12
  %171 = zext i32 %170 to i64
  %172 = load ptr, ptr %29, align 8, !tbaa !5
  %173 = load ptr, ptr %30, align 8, !tbaa !5
  call void @BrotliWriteBits(i64 noundef 2, i64 noundef %171, ptr noundef %172, ptr noundef %173)
  br label %174

174:                                              ; preds = %169
  %175 = load i64, ptr %32, align 8, !tbaa !9
  %176 = add i64 %175, 1
  store i64 %176, ptr %32, align 8, !tbaa !9
  br label %162, !llvm.loop !41

177:                                              ; preds = %162
  %178 = load ptr, ptr %28, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.MetaBlockSplit, ptr %178, i32 0, i32 4
  %180 = load i64, ptr %179, align 8, !tbaa !43
  %181 = icmp eq i64 %180, 0
  br i1 %181, label %182, label %191

182:                                              ; preds = %177
  %183 = load ptr, ptr %37, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.StoreMetablockArena, ptr %183, i32 0, i32 3
  %185 = load ptr, ptr %28, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.MetaBlockSplit, ptr %185, i32 0, i32 8
  %187 = load i64, ptr %186, align 8, !tbaa !44
  %188 = load ptr, ptr %35, align 8, !tbaa !5
  %189 = load ptr, ptr %29, align 8, !tbaa !5
  %190 = load ptr, ptr %30, align 8, !tbaa !5
  call void @StoreTrivialContextMap(ptr noundef %184, i64 noundef %187, i64 noundef 6, ptr noundef %188, ptr noundef %189, ptr noundef %190)
  br label %207

191:                                              ; preds = %177
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = load ptr, ptr %37, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.StoreMetablockArena, ptr %193, i32 0, i32 3
  %195 = load ptr, ptr %28, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.MetaBlockSplit, ptr %195, i32 0, i32 3
  %197 = load ptr, ptr %196, align 8, !tbaa !45
  %198 = load ptr, ptr %28, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.MetaBlockSplit, ptr %198, i32 0, i32 4
  %200 = load i64, ptr %199, align 8, !tbaa !43
  %201 = load ptr, ptr %28, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.MetaBlockSplit, ptr %201, i32 0, i32 8
  %203 = load i64, ptr %202, align 8, !tbaa !44
  %204 = load ptr, ptr %35, align 8, !tbaa !5
  %205 = load ptr, ptr %29, align 8, !tbaa !5
  %206 = load ptr, ptr %30, align 8, !tbaa !5
  call void @EncodeContextMap(ptr noundef %192, ptr noundef %194, ptr noundef %197, i64 noundef %200, i64 noundef %203, ptr noundef %204, ptr noundef %205, ptr noundef %206)
  br label %207

207:                                              ; preds = %191, %182
  %208 = load ptr, ptr %28, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.MetaBlockSplit, ptr %208, i32 0, i32 6
  %210 = load i64, ptr %209, align 8, !tbaa !46
  %211 = icmp eq i64 %210, 0
  br i1 %211, label %212, label %221

212:                                              ; preds = %207
  %213 = load ptr, ptr %37, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.StoreMetablockArena, ptr %213, i32 0, i32 3
  %215 = load ptr, ptr %28, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.MetaBlockSplit, ptr %215, i32 0, i32 12
  %217 = load i64, ptr %216, align 8, !tbaa !47
  %218 = load ptr, ptr %35, align 8, !tbaa !5
  %219 = load ptr, ptr %29, align 8, !tbaa !5
  %220 = load ptr, ptr %30, align 8, !tbaa !5
  call void @StoreTrivialContextMap(ptr noundef %214, i64 noundef %217, i64 noundef 2, ptr noundef %218, ptr noundef %219, ptr noundef %220)
  br label %237

221:                                              ; preds = %207
  %222 = load ptr, ptr %16, align 8, !tbaa !5
  %223 = load ptr, ptr %37, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.StoreMetablockArena, ptr %223, i32 0, i32 3
  %225 = load ptr, ptr %28, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.MetaBlockSplit, ptr %225, i32 0, i32 5
  %227 = load ptr, ptr %226, align 8, !tbaa !48
  %228 = load ptr, ptr %28, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.MetaBlockSplit, ptr %228, i32 0, i32 6
  %230 = load i64, ptr %229, align 8, !tbaa !46
  %231 = load ptr, ptr %28, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.MetaBlockSplit, ptr %231, i32 0, i32 12
  %233 = load i64, ptr %232, align 8, !tbaa !47
  %234 = load ptr, ptr %35, align 8, !tbaa !5
  %235 = load ptr, ptr %29, align 8, !tbaa !5
  %236 = load ptr, ptr %30, align 8, !tbaa !5
  call void @EncodeContextMap(ptr noundef %222, ptr noundef %224, ptr noundef %227, i64 noundef %230, i64 noundef %233, ptr noundef %234, ptr noundef %235, ptr noundef %236)
  br label %237

237:                                              ; preds = %221, %212
  %238 = load ptr, ptr %16, align 8, !tbaa !5
  %239 = load ptr, ptr %38, align 8, !tbaa !5
  %240 = load ptr, ptr %28, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.MetaBlockSplit, ptr %240, i32 0, i32 7
  %242 = load ptr, ptr %241, align 8, !tbaa !49
  %243 = load ptr, ptr %28, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.MetaBlockSplit, ptr %243, i32 0, i32 8
  %245 = load i64, ptr %244, align 8, !tbaa !44
  %246 = load ptr, ptr %35, align 8, !tbaa !5
  %247 = load ptr, ptr %29, align 8, !tbaa !5
  %248 = load ptr, ptr %30, align 8, !tbaa !5
  call void @BuildAndStoreEntropyCodesLiteral(ptr noundef %238, ptr noundef %239, ptr noundef %242, i64 noundef %245, i64 noundef 256, ptr noundef %246, ptr noundef %247, ptr noundef %248)
  %249 = load ptr, ptr %16, align 8, !tbaa !5
  %250 = load ptr, ptr %39, align 8, !tbaa !5
  %251 = load ptr, ptr %28, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.MetaBlockSplit, ptr %251, i32 0, i32 9
  %253 = load ptr, ptr %252, align 8, !tbaa !50
  %254 = load ptr, ptr %28, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.MetaBlockSplit, ptr %254, i32 0, i32 10
  %256 = load i64, ptr %255, align 8, !tbaa !51
  %257 = load ptr, ptr %35, align 8, !tbaa !5
  %258 = load ptr, ptr %29, align 8, !tbaa !5
  %259 = load ptr, ptr %30, align 8, !tbaa !5
  call void @BuildAndStoreEntropyCodesCommand(ptr noundef %249, ptr noundef %250, ptr noundef %253, i64 noundef %256, i64 noundef 704, ptr noundef %257, ptr noundef %258, ptr noundef %259)
  %260 = load ptr, ptr %16, align 8, !tbaa !5
  %261 = load ptr, ptr %40, align 8, !tbaa !5
  %262 = load ptr, ptr %28, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.MetaBlockSplit, ptr %262, i32 0, i32 11
  %264 = load ptr, ptr %263, align 8, !tbaa !52
  %265 = load ptr, ptr %28, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.MetaBlockSplit, ptr %265, i32 0, i32 12
  %267 = load i64, ptr %266, align 8, !tbaa !47
  %268 = load i32, ptr %33, align 4, !tbaa !12
  %269 = zext i32 %268 to i64
  %270 = load ptr, ptr %35, align 8, !tbaa !5
  %271 = load ptr, ptr %29, align 8, !tbaa !5
  %272 = load ptr, ptr %30, align 8, !tbaa !5
  call void @BuildAndStoreEntropyCodesDistance(ptr noundef %260, ptr noundef %261, ptr noundef %264, i64 noundef %267, i64 noundef %269, ptr noundef %270, ptr noundef %271, ptr noundef %272)
  %273 = load ptr, ptr %16, align 8, !tbaa !5
  %274 = load ptr, ptr %35, align 8, !tbaa !5
  call void @BrotliFree(ptr noundef %273, ptr noundef %274)
  store ptr null, ptr %35, align 8, !tbaa !5
  store i64 0, ptr %32, align 8, !tbaa !9
  br label %275

275:                                              ; preds = %433, %237
  %276 = load i64, ptr %32, align 8, !tbaa !9
  %277 = load i64, ptr %27, align 8, !tbaa !9
  %278 = icmp ult i64 %276, %277
  br i1 %278, label %279, label %436

279:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #5
  %280 = load ptr, ptr %26, align 8, !tbaa !5
  %281 = load i64, ptr %32, align 8, !tbaa !9
  %282 = getelementptr inbounds %struct.Command, ptr %280, i64 %281
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %282, i64 16, i1 false), !tbaa.struct !53
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #5
  %283 = getelementptr inbounds %struct.Command, ptr %42, i32 0, i32 3
  %284 = load i16, ptr %283, align 4, !tbaa !56
  %285 = zext i16 %284 to i64
  store i64 %285, ptr %43, align 8, !tbaa !9
  %286 = load ptr, ptr %39, align 8, !tbaa !5
  %287 = load i64, ptr %43, align 8, !tbaa !9
  %288 = load ptr, ptr %29, align 8, !tbaa !5
  %289 = load ptr, ptr %30, align 8, !tbaa !5
  call void @StoreSymbol(ptr noundef %286, i64 noundef %287, ptr noundef %288, ptr noundef %289)
  %290 = load ptr, ptr %29, align 8, !tbaa !5
  %291 = load ptr, ptr %30, align 8, !tbaa !5
  call void @StoreCommandExtra(ptr noundef %42, ptr noundef %290, ptr noundef %291)
  %292 = load ptr, ptr %28, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.MetaBlockSplit, ptr %292, i32 0, i32 4
  %294 = load i64, ptr %293, align 8, !tbaa !43
  %295 = icmp eq i64 %294, 0
  br i1 %295, label %296, label %320

296:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #5
  %297 = getelementptr inbounds %struct.Command, ptr %42, i32 0, i32 0
  %298 = load i32, ptr %297, align 4, !tbaa !58
  %299 = zext i32 %298 to i64
  store i64 %299, ptr %44, align 8, !tbaa !9
  br label %300

300:                                              ; preds = %316, %296
  %301 = load i64, ptr %44, align 8, !tbaa !9
  %302 = icmp ne i64 %301, 0
  br i1 %302, label %303, label %319

303:                                              ; preds = %300
  %304 = load ptr, ptr %38, align 8, !tbaa !5
  %305 = load ptr, ptr %17, align 8, !tbaa !5
  %306 = load i64, ptr %31, align 8, !tbaa !9
  %307 = load i64, ptr %20, align 8, !tbaa !9
  %308 = and i64 %306, %307
  %309 = getelementptr inbounds i8, ptr %305, i64 %308
  %310 = load i8, ptr %309, align 1, !tbaa !11
  %311 = zext i8 %310 to i64
  %312 = load ptr, ptr %29, align 8, !tbaa !5
  %313 = load ptr, ptr %30, align 8, !tbaa !5
  call void @StoreSymbol(ptr noundef %304, i64 noundef %311, ptr noundef %312, ptr noundef %313)
  %314 = load i64, ptr %31, align 8, !tbaa !9
  %315 = add i64 %314, 1
  store i64 %315, ptr %31, align 8, !tbaa !9
  br label %316

316:                                              ; preds = %303
  %317 = load i64, ptr %44, align 8, !tbaa !9
  %318 = add i64 %317, -1
  store i64 %318, ptr %44, align 8, !tbaa !9
  br label %300, !llvm.loop !59

319:                                              ; preds = %300
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #5
  br label %366

320:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #5
  %321 = getelementptr inbounds %struct.Command, ptr %42, i32 0, i32 0
  %322 = load i32, ptr %321, align 4, !tbaa !58
  %323 = zext i32 %322 to i64
  store i64 %323, ptr %45, align 8, !tbaa !9
  br label %324

324:                                              ; preds = %362, %320
  %325 = load i64, ptr %45, align 8, !tbaa !9
  %326 = icmp ne i64 %325, 0
  br i1 %326, label %327, label %365

327:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #5
  %328 = load ptr, ptr %36, align 8, !tbaa !5
  %329 = load i8, ptr %21, align 1, !tbaa !11
  %330 = zext i8 %329 to i64
  %331 = getelementptr inbounds i8, ptr %328, i64 %330
  %332 = load i8, ptr %331, align 1, !tbaa !11
  %333 = zext i8 %332 to i32
  %334 = load ptr, ptr %36, align 8, !tbaa !5
  %335 = getelementptr inbounds i8, ptr %334, i64 256
  %336 = load i8, ptr %22, align 1, !tbaa !11
  %337 = zext i8 %336 to i64
  %338 = getelementptr inbounds i8, ptr %335, i64 %337
  %339 = load i8, ptr %338, align 1, !tbaa !11
  %340 = zext i8 %339 to i32
  %341 = or i32 %333, %340
  %342 = sext i32 %341 to i64
  store i64 %342, ptr %46, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #5
  %343 = load ptr, ptr %17, align 8, !tbaa !5
  %344 = load i64, ptr %31, align 8, !tbaa !9
  %345 = load i64, ptr %20, align 8, !tbaa !9
  %346 = and i64 %344, %345
  %347 = getelementptr inbounds i8, ptr %343, i64 %346
  %348 = load i8, ptr %347, align 1, !tbaa !11
  store i8 %348, ptr %47, align 1, !tbaa !11
  %349 = load ptr, ptr %38, align 8, !tbaa !5
  %350 = load i8, ptr %47, align 1, !tbaa !11
  %351 = zext i8 %350 to i64
  %352 = load i64, ptr %46, align 8, !tbaa !9
  %353 = load ptr, ptr %28, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.MetaBlockSplit, ptr %353, i32 0, i32 3
  %355 = load ptr, ptr %354, align 8, !tbaa !45
  %356 = load ptr, ptr %29, align 8, !tbaa !5
  %357 = load ptr, ptr %30, align 8, !tbaa !5
  call void @StoreSymbolWithContext(ptr noundef %349, i64 noundef %351, i64 noundef %352, ptr noundef %355, ptr noundef %356, ptr noundef %357, i64 noundef 6)
  %358 = load i8, ptr %21, align 1, !tbaa !11
  store i8 %358, ptr %22, align 1, !tbaa !11
  %359 = load i8, ptr %47, align 1, !tbaa !11
  store i8 %359, ptr %21, align 1, !tbaa !11
  %360 = load i64, ptr %31, align 8, !tbaa !9
  %361 = add i64 %360, 1
  store i64 %361, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #5
  br label %362

362:                                              ; preds = %327
  %363 = load i64, ptr %45, align 8, !tbaa !9
  %364 = add i64 %363, -1
  store i64 %364, ptr %45, align 8, !tbaa !9
  br label %324, !llvm.loop !60

365:                                              ; preds = %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #5
  br label %366

366:                                              ; preds = %365, %319
  %367 = call i32 @CommandCopyLen(ptr noundef %42)
  %368 = zext i32 %367 to i64
  %369 = load i64, ptr %31, align 8, !tbaa !9
  %370 = add i64 %369, %368
  store i64 %370, ptr %31, align 8, !tbaa !9
  %371 = call i32 @CommandCopyLen(ptr noundef %42)
  %372 = icmp ne i32 %371, 0
  br i1 %372, label %373, label %432

373:                                              ; preds = %366
  %374 = load ptr, ptr %17, align 8, !tbaa !5
  %375 = load i64, ptr %31, align 8, !tbaa !9
  %376 = sub i64 %375, 2
  %377 = load i64, ptr %20, align 8, !tbaa !9
  %378 = and i64 %376, %377
  %379 = getelementptr inbounds i8, ptr %374, i64 %378
  %380 = load i8, ptr %379, align 1, !tbaa !11
  store i8 %380, ptr %22, align 1, !tbaa !11
  %381 = load ptr, ptr %17, align 8, !tbaa !5
  %382 = load i64, ptr %31, align 8, !tbaa !9
  %383 = sub i64 %382, 1
  %384 = load i64, ptr %20, align 8, !tbaa !9
  %385 = and i64 %383, %384
  %386 = getelementptr inbounds i8, ptr %381, i64 %385
  %387 = load i8, ptr %386, align 1, !tbaa !11
  store i8 %387, ptr %21, align 1, !tbaa !11
  %388 = getelementptr inbounds %struct.Command, ptr %42, i32 0, i32 3
  %389 = load i16, ptr %388, align 4, !tbaa !56
  %390 = zext i16 %389 to i32
  %391 = icmp sge i32 %390, 128
  br i1 %391, label %392, label %431

392:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #5
  %393 = getelementptr inbounds %struct.Command, ptr %42, i32 0, i32 4
  %394 = load i16, ptr %393, align 2, !tbaa !61
  %395 = zext i16 %394 to i32
  %396 = and i32 %395, 1023
  %397 = sext i32 %396 to i64
  store i64 %397, ptr %48, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #5
  %398 = getelementptr inbounds %struct.Command, ptr %42, i32 0, i32 4
  %399 = load i16, ptr %398, align 2, !tbaa !61
  %400 = zext i16 %399 to i32
  %401 = ashr i32 %400, 10
  store i32 %401, ptr %49, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #5
  %402 = getelementptr inbounds %struct.Command, ptr %42, i32 0, i32 2
  %403 = load i32, ptr %402, align 4, !tbaa !62
  %404 = zext i32 %403 to i64
  store i64 %404, ptr %50, align 8, !tbaa !9
  %405 = load ptr, ptr %28, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.MetaBlockSplit, ptr %405, i32 0, i32 6
  %407 = load i64, ptr %406, align 8, !tbaa !46
  %408 = icmp eq i64 %407, 0
  br i1 %408, label %409, label %414

409:                                              ; preds = %392
  %410 = load ptr, ptr %40, align 8, !tbaa !5
  %411 = load i64, ptr %48, align 8, !tbaa !9
  %412 = load ptr, ptr %29, align 8, !tbaa !5
  %413 = load ptr, ptr %30, align 8, !tbaa !5
  call void @StoreSymbol(ptr noundef %410, i64 noundef %411, ptr noundef %412, ptr noundef %413)
  br label %425

414:                                              ; preds = %392
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #5
  %415 = call i32 @CommandDistanceContext(ptr noundef %42)
  %416 = zext i32 %415 to i64
  store i64 %416, ptr %51, align 8, !tbaa !9
  %417 = load ptr, ptr %40, align 8, !tbaa !5
  %418 = load i64, ptr %48, align 8, !tbaa !9
  %419 = load i64, ptr %51, align 8, !tbaa !9
  %420 = load ptr, ptr %28, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.MetaBlockSplit, ptr %420, i32 0, i32 5
  %422 = load ptr, ptr %421, align 8, !tbaa !48
  %423 = load ptr, ptr %29, align 8, !tbaa !5
  %424 = load ptr, ptr %30, align 8, !tbaa !5
  call void @StoreSymbolWithContext(ptr noundef %417, i64 noundef %418, i64 noundef %419, ptr noundef %422, ptr noundef %423, ptr noundef %424, i64 noundef 2)
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #5
  br label %425

425:                                              ; preds = %414, %409
  %426 = load i32, ptr %49, align 4, !tbaa !12
  %427 = zext i32 %426 to i64
  %428 = load i64, ptr %50, align 8, !tbaa !9
  %429 = load ptr, ptr %29, align 8, !tbaa !5
  %430 = load ptr, ptr %30, align 8, !tbaa !5
  call void @BrotliWriteBits(i64 noundef %427, i64 noundef %428, ptr noundef %429, ptr noundef %430)
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #5
  br label %431

431:                                              ; preds = %425, %373
  br label %432

432:                                              ; preds = %431, %366
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #5
  br label %433

433:                                              ; preds = %432
  %434 = load i64, ptr %32, align 8, !tbaa !9
  %435 = add i64 %434, 1
  store i64 %435, ptr %32, align 8, !tbaa !9
  br label %275, !llvm.loop !63

436:                                              ; preds = %275
  %437 = load ptr, ptr %16, align 8, !tbaa !5
  %438 = load ptr, ptr %40, align 8, !tbaa !5
  call void @CleanupBlockEncoder(ptr noundef %437, ptr noundef %438)
  %439 = load ptr, ptr %16, align 8, !tbaa !5
  %440 = load ptr, ptr %39, align 8, !tbaa !5
  call void @CleanupBlockEncoder(ptr noundef %439, ptr noundef %440)
  %441 = load ptr, ptr %16, align 8, !tbaa !5
  %442 = load ptr, ptr %38, align 8, !tbaa !5
  call void @CleanupBlockEncoder(ptr noundef %441, ptr noundef %442)
  %443 = load ptr, ptr %16, align 8, !tbaa !5
  %444 = load ptr, ptr %37, align 8, !tbaa !5
  call void @BrotliFree(ptr noundef %443, ptr noundef %444)
  store ptr null, ptr %37, align 8, !tbaa !5
  %445 = load i32, ptr %23, align 4, !tbaa !12
  %446 = icmp ne i32 %445, 0
  br i1 %446, label %447, label %450

447:                                              ; preds = %436
  %448 = load ptr, ptr %29, align 8, !tbaa !5
  %449 = load ptr, ptr %30, align 8, !tbaa !5
  call void @JumpToByteBoundary(ptr noundef %448, ptr noundef %449)
  br label %450

450:                                              ; preds = %447, %436
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @StoreCommandExtra(ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @CommandCopyLen(ptr noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @CommandDistanceContext(ptr noundef) #1

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 64}
!15 = !{!"BrotliEncoderParams", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !10, i64 16, !10, i64 24, !13, i64 32, !13, i64 36, !16, i64 40, !17, i64 56, !18, i64 80}
!16 = !{!"BrotliHasherParams", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!17 = !{!"BrotliDistanceParams", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !10, i64 16}
!18 = !{!"SharedEncoderDictionary", !13, i64 0, !19, i64 8, !20, i64 544, !13, i64 1312}
!19 = !{!"CompoundDictionary", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 144, !7, i64 272, !10, i64 400, !7, i64 408}
!20 = !{!"ContextualEncoderDictionary", !13, i64 0, !7, i64 4, !7, i64 5, !7, i64 72, !10, i64 584, !21, i64 592, !6, i64 760}
!21 = !{!"BrotliEncoderDictionary", !6, i64 0, !13, i64 8, !13, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !22, i64 56, !13, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !10, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !6, i64 160}
!22 = !{!"BrotliTrie", !6, i64 0, !10, i64 8, !10, i64 16, !23, i64 24}
!23 = !{!"BrotliTrieNode", !7, i64 0, !7, i64 1, !7, i64 2, !13, i64 4, !13, i64 8}
!24 = !{!15, !13, i64 68}
!25 = !{!26, !10, i64 0}
!26 = !{!"MetaBlockSplit", !27, i64 0, !27, i64 48, !27, i64 96, !6, i64 144, !10, i64 152, !6, i64 160, !10, i64 168, !6, i64 176, !10, i64 184, !6, i64 192, !10, i64 200, !6, i64 208, !10, i64 216}
!27 = !{!"BlockSplit", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 40}
!28 = !{!26, !6, i64 16}
!29 = !{!26, !6, i64 24}
!30 = !{!26, !10, i64 8}
!31 = !{!26, !10, i64 48}
!32 = !{!26, !6, i64 64}
!33 = !{!26, !6, i64 72}
!34 = !{!26, !10, i64 56}
!35 = !{!26, !10, i64 96}
!36 = !{!26, !6, i64 112}
!37 = !{!26, !6, i64 120}
!38 = !{!26, !10, i64 104}
!39 = !{!17, !13, i64 0}
!40 = !{!17, !13, i64 4}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!26, !10, i64 152}
!44 = !{!26, !10, i64 184}
!45 = !{!26, !6, i64 144}
!46 = !{!26, !10, i64 168}
!47 = !{!26, !10, i64 216}
!48 = !{!26, !6, i64 160}
!49 = !{!26, !6, i64 176}
!50 = !{!26, !6, i64 192}
!51 = !{!26, !10, i64 200}
!52 = !{!26, !6, i64 208}
!53 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 2, !54, i64 14, i64 2, !54}
!54 = !{!55, !55, i64 0}
!55 = !{!"short", !7, i64 0}
!56 = !{!57, !55, i64 12}
!57 = !{!"Command", !13, i64 0, !13, i64 4, !13, i64 8, !55, i64 12, !55, i64 14}
!58 = !{!57, !13, i64 0}
!59 = distinct !{!59, !42}
!60 = distinct !{!60, !42}
!61 = !{!57, !55, i64 14}
!62 = !{!57, !13, i64 8}
!63 = distinct !{!63, !42}


; 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.Command = type { i32, i32, i32, i16, i16 }

@_kBrotliContextLookupTable = external local_unnamed_addr constant [2048 x i8], align 16

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @BrotliWriteBits(i64 noundef, i64 noundef, ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #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: nounwind uwtable
define hidden void @BrotliStoreMetaBlock(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i8 noundef zeroext %5, i8 noundef zeroext %6, i32 noundef %7, ptr nocapture noundef readonly %8, i32 noundef %9, ptr nocapture noundef readonly %10, i64 noundef %11, ptr nocapture noundef readonly %12, ptr noundef %13, ptr noundef %14) local_unnamed_addr #3 {
  %16 = alloca %struct.Command, align 4
  %17 = getelementptr inbounds i8, ptr %8, i64 56
  %18 = getelementptr inbounds i8, ptr %8, i64 64
  %19 = load i32, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %8, i64 68
  %21 = load i32, ptr %20, align 4, !tbaa !20
  %22 = shl i32 %9, 9
  %23 = zext i32 %22 to i64
  %24 = getelementptr inbounds [2048 x i8], ptr @_kBrotliContextLookupTable, i64 0, i64 %23
  tail call void @StoreCompressedMetaBlockHeader(i32 noundef %7, i64 noundef %3, ptr noundef %13, ptr noundef %14)
  %25 = tail call ptr @BrotliAllocate(ptr noundef %0, i64 noundef 11272) #5
  %26 = tail call ptr @BrotliAllocate(ptr noundef %0, i64 noundef 4760) #5
  %27 = getelementptr inbounds i8, ptr %26, i64 952
  %28 = getelementptr inbounds i8, ptr %26, i64 1904
  %29 = load i64, ptr %12, align 8, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %12, i64 16
  %31 = load ptr, ptr %30, align 8, !tbaa !24
  %32 = getelementptr inbounds i8, ptr %12, i64 24
  %33 = load ptr, ptr %32, align 8, !tbaa !25
  %34 = getelementptr inbounds i8, ptr %12, i64 8
  %35 = load i64, ptr %34, align 8, !tbaa !26
  tail call void @InitBlockEncoder(ptr noundef %26, i64 noundef 256, i64 noundef %29, ptr noundef %31, ptr noundef %33, i64 noundef %35)
  %36 = getelementptr inbounds i8, ptr %12, i64 48
  %37 = load i64, ptr %36, align 8, !tbaa !27
  %38 = getelementptr inbounds i8, ptr %12, i64 64
  %39 = load ptr, ptr %38, align 8, !tbaa !28
  %40 = getelementptr inbounds i8, ptr %12, i64 72
  %41 = load ptr, ptr %40, align 8, !tbaa !29
  %42 = getelementptr inbounds i8, ptr %12, i64 56
  %43 = load i64, ptr %42, align 8, !tbaa !30
  tail call void @InitBlockEncoder(ptr noundef nonnull %27, i64 noundef 704, i64 noundef %37, ptr noundef %39, ptr noundef %41, i64 noundef %43)
  %44 = zext i32 %21 to i64
  %45 = getelementptr inbounds i8, ptr %12, i64 96
  %46 = load i64, ptr %45, align 8, !tbaa !31
  %47 = getelementptr inbounds i8, ptr %12, i64 112
  %48 = load ptr, ptr %47, align 8, !tbaa !32
  %49 = getelementptr inbounds i8, ptr %12, i64 120
  %50 = load ptr, ptr %49, align 8, !tbaa !33
  %51 = getelementptr inbounds i8, ptr %12, i64 104
  %52 = load i64, ptr %51, align 8, !tbaa !34
  tail call void @InitBlockEncoder(ptr noundef nonnull %28, i64 noundef %44, i64 noundef %46, ptr noundef %48, ptr noundef %50, i64 noundef %52)
  tail call void @BuildAndStoreBlockSwitchEntropyCodes(ptr noundef %26, ptr noundef %25, ptr noundef %13, ptr noundef %14)
  tail call void @BuildAndStoreBlockSwitchEntropyCodes(ptr noundef nonnull %27, ptr noundef %25, ptr noundef %13, ptr noundef %14)
  tail call void @BuildAndStoreBlockSwitchEntropyCodes(ptr noundef nonnull %28, ptr noundef %25, ptr noundef %13, ptr noundef %14)
  %53 = load i32, ptr %17, align 8, !tbaa !35
  %54 = zext i32 %53 to i64
  tail call void @BrotliWriteBits(i64 noundef 2, i64 noundef %54, ptr noundef %13, ptr noundef %14)
  %55 = getelementptr inbounds i8, ptr %8, i64 60
  %56 = load i32, ptr %55, align 4, !tbaa !36
  %57 = load i32, ptr %17, align 8, !tbaa !35
  %58 = lshr i32 %56, %57
  %59 = zext i32 %58 to i64
  tail call void @BrotliWriteBits(i64 noundef 4, i64 noundef %59, ptr noundef %13, ptr noundef %14)
  %60 = load i64, ptr %12, align 8, !tbaa !21
  %.not219 = icmp eq i64 %60, 0
  br i1 %.not219, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %15
  %61 = zext i32 %9 to i64
  br label %62

62:                                               ; preds = %.lr.ph, %62
  %.0186196 = phi i64 [ 0, %.lr.ph ], [ %63, %62 ]
  tail call void @BrotliWriteBits(i64 noundef 2, i64 noundef %61, ptr noundef %13, ptr noundef %14)
  %63 = add nuw i64 %.0186196, 1
  %64 = load i64, ptr %12, align 8, !tbaa !21
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %62, label %._crit_edge, !llvm.loop !37

._crit_edge:                                      ; preds = %62, %15
  %66 = getelementptr inbounds i8, ptr %12, i64 152
  %67 = load i64, ptr %66, align 8, !tbaa !39
  %68 = icmp eq i64 %67, 0
  %69 = getelementptr inbounds i8, ptr %26, i64 2856
  br i1 %68, label %70, label %73

70:                                               ; preds = %._crit_edge
  %71 = getelementptr inbounds i8, ptr %12, i64 184
  %72 = load i64, ptr %71, align 8, !tbaa !40
  tail call void @StoreTrivialContextMap(ptr noundef nonnull %69, i64 noundef %72, i64 noundef 6, ptr noundef %25, ptr noundef %13, ptr noundef %14)
  br label %78

73:                                               ; preds = %._crit_edge
  %74 = getelementptr inbounds i8, ptr %12, i64 144
  %75 = load ptr, ptr %74, align 8, !tbaa !41
  %76 = getelementptr inbounds i8, ptr %12, i64 184
  %77 = load i64, ptr %76, align 8, !tbaa !40
  tail call void @EncodeContextMap(ptr noundef %0, ptr noundef nonnull %69, ptr noundef %75, i64 noundef %67, i64 noundef %77, ptr noundef %25, ptr noundef %13, ptr noundef %14)
  br label %78

78:                                               ; preds = %73, %70
  %79 = getelementptr inbounds i8, ptr %12, i64 168
  %80 = load i64, ptr %79, align 8, !tbaa !42
  %81 = icmp eq i64 %80, 0
  %82 = getelementptr inbounds i8, ptr %26, i64 2856
  br i1 %81, label %83, label %86

83:                                               ; preds = %78
  %84 = getelementptr inbounds i8, ptr %12, i64 216
  %85 = load i64, ptr %84, align 8, !tbaa !43
  tail call void @StoreTrivialContextMap(ptr noundef nonnull %82, i64 noundef %85, i64 noundef 2, ptr noundef %25, ptr noundef %13, ptr noundef %14)
  br label %91

86:                                               ; preds = %78
  %87 = getelementptr inbounds i8, ptr %12, i64 160
  %88 = load ptr, ptr %87, align 8, !tbaa !44
  %89 = getelementptr inbounds i8, ptr %12, i64 216
  %90 = load i64, ptr %89, align 8, !tbaa !43
  tail call void @EncodeContextMap(ptr noundef %0, ptr noundef nonnull %82, ptr noundef %88, i64 noundef %80, i64 noundef %90, ptr noundef %25, ptr noundef %13, ptr noundef %14)
  br label %91

91:                                               ; preds = %86, %83
  %92 = getelementptr inbounds i8, ptr %12, i64 176
  %93 = load ptr, ptr %92, align 8, !tbaa !45
  %94 = getelementptr inbounds i8, ptr %12, i64 184
  %95 = load i64, ptr %94, align 8, !tbaa !40
  tail call void @BuildAndStoreEntropyCodesLiteral(ptr noundef %0, ptr noundef %26, ptr noundef %93, i64 noundef %95, i64 noundef 256, ptr noundef %25, ptr noundef %13, ptr noundef %14)
  %96 = getelementptr inbounds i8, ptr %12, i64 192
  %97 = load ptr, ptr %96, align 8, !tbaa !46
  %98 = getelementptr inbounds i8, ptr %12, i64 200
  %99 = load i64, ptr %98, align 8, !tbaa !47
  tail call void @BuildAndStoreEntropyCodesCommand(ptr noundef %0, ptr noundef nonnull %27, ptr noundef %97, i64 noundef %99, i64 noundef 704, ptr noundef %25, ptr noundef %13, ptr noundef %14)
  %100 = getelementptr inbounds i8, ptr %12, i64 208
  %101 = load ptr, ptr %100, align 8, !tbaa !48
  %102 = getelementptr inbounds i8, ptr %12, i64 216
  %103 = load i64, ptr %102, align 8, !tbaa !43
  %104 = zext i32 %19 to i64
  tail call void @BuildAndStoreEntropyCodesDistance(ptr noundef %0, ptr noundef nonnull %28, ptr noundef %101, i64 noundef %103, i64 noundef %104, ptr noundef %25, ptr noundef %13, ptr noundef %14)
  tail call void @BrotliFree(ptr noundef %0, ptr noundef %25) #5
  %.not220 = icmp eq i64 %11, 0
  br i1 %.not220, label %._crit_edge218, label %.lr.ph217

.lr.ph217:                                        ; preds = %91
  %105 = getelementptr inbounds i8, ptr %16, i64 12
  %106 = getelementptr inbounds i8, ptr %24, i64 256
  %107 = getelementptr inbounds i8, ptr %12, i64 144
  %108 = getelementptr inbounds i8, ptr %16, i64 14
  %109 = getelementptr inbounds i8, ptr %16, i64 8
  %110 = getelementptr inbounds i8, ptr %12, i64 160
  br label %111

111:                                              ; preds = %.lr.ph217, %175
  %.0215 = phi i8 [ %5, %.lr.ph217 ], [ %.3, %175 ]
  %.0178214 = phi i8 [ %6, %.lr.ph217 ], [ %.3181, %175 ]
  %.0182213 = phi i64 [ %2, %.lr.ph217 ], [ %145, %175 ]
  %.1187212 = phi i64 [ 0, %.lr.ph217 ], [ %176, %175 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  %112 = getelementptr inbounds %struct.Command, ptr %10, i64 %.1187212
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(16) %112, i64 16, i1 false), !tbaa.struct !49
  %113 = load i16, ptr %105, align 4, !tbaa !53
  %114 = zext i16 %113 to i64
  call void @StoreSymbol(ptr noundef nonnull %27, i64 noundef %114, ptr noundef %13, ptr noundef %14)
  call void @StoreCommandExtra(ptr noundef nonnull %16, ptr noundef %13, ptr noundef %14)
  %115 = load i64, ptr %66, align 8, !tbaa !39
  %116 = icmp eq i64 %115, 0
  %117 = load i32, ptr %16, align 4, !tbaa !55
  %.not193206 = icmp eq i32 %117, 0
  br i1 %116, label %118, label %126

118:                                              ; preds = %111
  br i1 %.not193206, label %.loopexit, label %.lr.ph210.preheader

.lr.ph210.preheader:                              ; preds = %118
  %119 = zext i32 %117 to i64
  br label %.lr.ph210

.lr.ph210:                                        ; preds = %.lr.ph210.preheader, %.lr.ph210
  %.1183208 = phi i64 [ %124, %.lr.ph210 ], [ %.0182213, %.lr.ph210.preheader ]
  %.0189207 = phi i64 [ %125, %.lr.ph210 ], [ %119, %.lr.ph210.preheader ]
  %120 = and i64 %.1183208, %4
  %121 = getelementptr inbounds i8, ptr %1, i64 %120
  %122 = load i8, ptr %121, align 1, !tbaa !56
  %123 = zext i8 %122 to i64
  call void @StoreSymbol(ptr noundef %26, i64 noundef %123, ptr noundef %13, ptr noundef %14)
  %124 = add i64 %.1183208, 1
  %125 = add nsw i64 %.0189207, -1
  %.not193 = icmp eq i64 %125, 0
  br i1 %.not193, label %.loopexit, label %.lr.ph210, !llvm.loop !57

126:                                              ; preds = %111
  br i1 %.not193206, label %.loopexit, label %.lr.ph203.preheader

.lr.ph203.preheader:                              ; preds = %126
  %127 = zext i32 %117 to i64
  br label %.lr.ph203

.lr.ph203:                                        ; preds = %.lr.ph203.preheader, %.lr.ph203
  %.1201 = phi i8 [ %138, %.lr.ph203 ], [ %.0215, %.lr.ph203.preheader ]
  %.1179200 = phi i8 [ %.1201, %.lr.ph203 ], [ %.0178214, %.lr.ph203.preheader ]
  %.2184199 = phi i64 [ %141, %.lr.ph203 ], [ %.0182213, %.lr.ph203.preheader ]
  %.0188198 = phi i64 [ %142, %.lr.ph203 ], [ %127, %.lr.ph203.preheader ]
  %128 = zext i8 %.1201 to i64
  %129 = getelementptr inbounds i8, ptr %24, i64 %128
  %130 = load i8, ptr %129, align 1, !tbaa !56
  %131 = zext i8 %.1179200 to i64
  %132 = getelementptr inbounds i8, ptr %106, i64 %131
  %133 = load i8, ptr %132, align 1, !tbaa !56
  %134 = or i8 %133, %130
  %135 = zext i8 %134 to i64
  %136 = and i64 %.2184199, %4
  %137 = getelementptr inbounds i8, ptr %1, i64 %136
  %138 = load i8, ptr %137, align 1, !tbaa !56
  %139 = zext i8 %138 to i64
  %140 = load ptr, ptr %107, align 8, !tbaa !41
  call void @StoreSymbolWithContext(ptr noundef %26, i64 noundef %139, i64 noundef %135, ptr noundef %140, ptr noundef %13, ptr noundef %14, i64 noundef 6)
  %141 = add i64 %.2184199, 1
  %142 = add nsw i64 %.0188198, -1
  %.not192 = icmp eq i64 %142, 0
  br i1 %.not192, label %.loopexit, label %.lr.ph203, !llvm.loop !58

.loopexit:                                        ; preds = %.lr.ph203, %.lr.ph210, %126, %118
  %.3185 = phi i64 [ %.0182213, %118 ], [ %.0182213, %126 ], [ %124, %.lr.ph210 ], [ %141, %.lr.ph203 ]
  %.2180 = phi i8 [ %.0178214, %118 ], [ %.0178214, %126 ], [ %.0178214, %.lr.ph210 ], [ %.1201, %.lr.ph203 ]
  %.2 = phi i8 [ %.0215, %118 ], [ %.0215, %126 ], [ %.0215, %.lr.ph210 ], [ %138, %.lr.ph203 ]
  %143 = call i32 @CommandCopyLen(ptr noundef nonnull %16)
  %144 = zext i32 %143 to i64
  %145 = add i64 %.3185, %144
  %146 = call i32 @CommandCopyLen(ptr noundef nonnull %16)
  %.not194 = icmp eq i32 %146, 0
  br i1 %.not194, label %175, label %147

147:                                              ; preds = %.loopexit
  %148 = add i64 %145, -2
  %149 = and i64 %148, %4
  %150 = getelementptr inbounds i8, ptr %1, i64 %149
  %151 = load i8, ptr %150, align 1, !tbaa !56
  %152 = add i64 %145, -1
  %153 = and i64 %152, %4
  %154 = getelementptr inbounds i8, ptr %1, i64 %153
  %155 = load i8, ptr %154, align 1, !tbaa !56
  %156 = load i16, ptr %105, align 4, !tbaa !53
  %157 = icmp ugt i16 %156, 127
  br i1 %157, label %158, label %175

158:                                              ; preds = %147
  %159 = load i16, ptr %108, align 2, !tbaa !59
  %160 = zext i16 %159 to i32
  %161 = and i32 %160, 1023
  %162 = zext nneg i32 %161 to i64
  %163 = lshr i32 %160, 10
  %164 = load i32, ptr %109, align 4, !tbaa !60
  %165 = zext i32 %164 to i64
  %166 = load i64, ptr %79, align 8, !tbaa !42
  %167 = icmp eq i64 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %158
  call void @StoreSymbol(ptr noundef nonnull %28, i64 noundef %162, ptr noundef %13, ptr noundef %14)
  br label %173

169:                                              ; preds = %158
  %170 = call i32 @CommandDistanceContext(ptr noundef nonnull %16)
  %171 = zext i32 %170 to i64
  %172 = load ptr, ptr %110, align 8, !tbaa !44
  call void @StoreSymbolWithContext(ptr noundef nonnull %28, i64 noundef %162, i64 noundef %171, ptr noundef %172, ptr noundef %13, ptr noundef %14, i64 noundef 2)
  br label %173

173:                                              ; preds = %169, %168
  %174 = zext nneg i32 %163 to i64
  call void @BrotliWriteBits(i64 noundef %174, i64 noundef %165, ptr noundef %13, ptr noundef %14)
  br label %175

175:                                              ; preds = %147, %173, %.loopexit
  %.3181 = phi i8 [ %151, %173 ], [ %151, %147 ], [ %.2180, %.loopexit ]
  %.3 = phi i8 [ %155, %173 ], [ %155, %147 ], [ %.2, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  %176 = add nuw i64 %.1187212, 1
  %exitcond.not = icmp eq i64 %176, %11
  br i1 %exitcond.not, label %._crit_edge218, label %111, !llvm.loop !61

._crit_edge218:                                   ; preds = %175, %91
  call void @CleanupBlockEncoder(ptr noundef %0, ptr noundef nonnull %28)
  call void @CleanupBlockEncoder(ptr noundef %0, ptr noundef nonnull %27)
  call void @CleanupBlockEncoder(ptr noundef %0, ptr noundef %26)
  call void @BrotliFree(ptr noundef %0, ptr noundef %26) #5
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %178, label %177

177:                                              ; preds = %._crit_edge218
  call void @JumpToByteBoundary(ptr noundef %13, ptr noundef %14)
  br label %178

178:                                              ; preds = %177, %._crit_edge218
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @StoreCommandExtra(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @CommandCopyLen(ptr noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @CommandDistanceContext(ptr noundef) local_unnamed_addr #1

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 64}
!6 = !{!"BrotliEncoderParams", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !7, i64 32, !7, i64 36, !11, i64 40, !12, i64 56, !13, i64 80}
!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}
!12 = !{!"BrotliDistanceParams", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16}
!13 = !{!"SharedEncoderDictionary", !7, i64 0, !14, i64 8, !15, i64 544, !7, i64 1312}
!14 = !{!"CompoundDictionary", !10, i64 0, !10, i64 8, !8, i64 16, !8, i64 144, !8, i64 272, !10, i64 400, !8, i64 408}
!15 = !{!"ContextualEncoderDictionary", !7, i64 0, !8, i64 4, !8, i64 5, !8, i64 72, !10, i64 584, !16, i64 592, !17, i64 760}
!16 = !{!"BrotliEncoderDictionary", !17, i64 0, !7, i64 8, !7, i64 12, !10, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !18, i64 56, !7, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !10, i64 128, !17, i64 136, !10, i64 144, !17, i64 152, !17, i64 160}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!"BrotliTrie", !17, i64 0, !10, i64 8, !10, i64 16, !19, i64 24}
!19 = !{!"BrotliTrieNode", !8, i64 0, !8, i64 1, !8, i64 2, !7, i64 4, !7, i64 8}
!20 = !{!6, !7, i64 68}
!21 = !{!22, !10, i64 0}
!22 = !{!"MetaBlockSplit", !23, i64 0, !23, i64 48, !23, i64 96, !17, i64 144, !10, i64 152, !17, i64 160, !10, i64 168, !17, i64 176, !10, i64 184, !17, i64 192, !10, i64 200, !17, i64 208, !10, i64 216}
!23 = !{!"BlockSplit", !10, i64 0, !10, i64 8, !17, i64 16, !17, i64 24, !10, i64 32, !10, i64 40}
!24 = !{!22, !17, i64 16}
!25 = !{!22, !17, i64 24}
!26 = !{!22, !10, i64 8}
!27 = !{!22, !10, i64 48}
!28 = !{!22, !17, i64 64}
!29 = !{!22, !17, i64 72}
!30 = !{!22, !10, i64 56}
!31 = !{!22, !10, i64 96}
!32 = !{!22, !17, i64 112}
!33 = !{!22, !17, i64 120}
!34 = !{!22, !10, i64 104}
!35 = !{!12, !7, i64 0}
!36 = !{!12, !7, i64 4}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!22, !10, i64 152}
!40 = !{!22, !10, i64 184}
!41 = !{!22, !17, i64 144}
!42 = !{!22, !10, i64 168}
!43 = !{!22, !10, i64 216}
!44 = !{!22, !17, i64 160}
!45 = !{!22, !17, i64 176}
!46 = !{!22, !17, i64 192}
!47 = !{!22, !10, i64 200}
!48 = !{!22, !17, i64 208}
!49 = !{i64 0, i64 4, !50, i64 4, i64 4, !50, i64 8, i64 4, !50, i64 12, i64 2, !51, i64 14, i64 2, !51}
!50 = !{!7, !7, i64 0}
!51 = !{!52, !52, i64 0}
!52 = !{!"short", !8, i64 0}
!53 = !{!54, !52, i64 12}
!54 = !{!"Command", !7, i64 0, !7, i64 4, !7, i64 8, !52, i64 12, !52, i64 14}
!55 = !{!54, !7, i64 0}
!56 = !{!8, !8, i64 0}
!57 = distinct !{!57, !38}
!58 = distinct !{!58, !38}
!59 = !{!54, !52, i64 14}
!60 = !{!54, !7, i64 8}
!61 = distinct !{!61, !38}


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