; 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.MetablockArena = type { %struct.HistogramLiteral, %struct.HistogramCommand, %struct.HistogramDistance, [256 x i8], [256 x i16], [704 x i8], [704 x i16], [140 x i8], [140 x i16], [1409 x %struct.HuffmanTree] }
%struct.HistogramLiteral = type { [256 x i32], i64, double }
%struct.HistogramCommand = type { [704 x i32], i64, double }
%struct.HistogramDistance = type { [544 x i32], i64, double }
%struct.HuffmanTree = type { i32, i16, i16 }

@kStaticCommandCodeDepth = external hidden constant [704 x i8], align 16
@kStaticCommandCodeBits = external hidden constant [704 x i16], align 16
@kStaticDistanceCodeDepth = external hidden constant [64 x i8], align 16
@kStaticDistanceCodeBits = external hidden constant [64 x i16], 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

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

; 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) #4

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define hidden void @BrotliStoreMetaBlockFast(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10) #2 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca [256 x i32], align 16
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca %struct.Command, align 4
  %31 = alloca i64, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store i64 %2, ptr %14, align 8, !tbaa !9
  store i64 %3, ptr %15, align 8, !tbaa !9
  store i64 %4, ptr %16, align 8, !tbaa !9
  store i32 %5, ptr %17, align 4, !tbaa !11
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store i64 %8, ptr %20, align 8, !tbaa !9
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = call ptr @BrotliAllocate(ptr noundef %32, i64 noundef 20640)
  store ptr %33, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %34 = load ptr, ptr %18, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.BrotliEncoderParams, ptr %34, i32 0, i32 9
  %36 = getelementptr inbounds %struct.BrotliDistanceParams, ptr %35, i32 0, i32 2
  %37 = load i32, ptr %36, align 8, !tbaa !13
  store i32 %37, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %38 = load i32, ptr %24, align 4, !tbaa !11
  %39 = sub i32 %38, 1
  %40 = zext i32 %39 to i64
  %41 = call i32 @Log2FloorNonZero(i64 noundef %40)
  %42 = add i32 %41, 1
  store i32 %42, ptr %25, align 4, !tbaa !11
  %43 = load i32, ptr %17, align 4, !tbaa !11
  %44 = load i64, ptr %15, align 8, !tbaa !9
  %45 = load ptr, ptr %21, align 8, !tbaa !5
  %46 = load ptr, ptr %22, align 8, !tbaa !5
  call void @StoreCompressedMetaBlockHeader(i32 noundef %43, i64 noundef %44, ptr noundef %45, ptr noundef %46)
  %47 = load ptr, ptr %21, align 8, !tbaa !5
  %48 = load ptr, ptr %22, align 8, !tbaa !5
  call void @BrotliWriteBits(i64 noundef 13, i64 noundef 0, ptr noundef %47, ptr noundef %48)
  %49 = load i64, ptr %20, align 8, !tbaa !9
  %50 = icmp ule i64 %49, 128
  br i1 %50, label %51, label %127

51:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 1024, ptr %26) #6
  call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %52 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %52, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store i64 0, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %93, %51
  %54 = load i64, ptr %29, align 8, !tbaa !9
  %55 = load i64, ptr %20, align 8, !tbaa !9
  %56 = icmp ult i64 %54, %55
  br i1 %56, label %57, label %96

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  %59 = load i64, ptr %29, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.Command, ptr %58, i64 %59
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %60, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %61 = getelementptr inbounds %struct.Command, ptr %30, i32 0, i32 0
  %62 = load i32, ptr %61, align 4, !tbaa !26
  %63 = zext i32 %62 to i64
  store i64 %63, ptr %31, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %80, %57
  %65 = load i64, ptr %31, align 8, !tbaa !9
  %66 = icmp ne i64 %65, 0
  br i1 %66, label %67, label %83

67:                                               ; preds = %64
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = load i64, ptr %27, align 8, !tbaa !9
  %70 = load i64, ptr %16, align 8, !tbaa !9
  %71 = and i64 %69, %70
  %72 = getelementptr inbounds i8, ptr %68, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !28
  %74 = zext i8 %73 to i64
  %75 = getelementptr inbounds [256 x i32], ptr %26, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !11
  %77 = add i32 %76, 1
  store i32 %77, ptr %75, align 4, !tbaa !11
  %78 = load i64, ptr %27, align 8, !tbaa !9
  %79 = add i64 %78, 1
  store i64 %79, ptr %27, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %67
  %81 = load i64, ptr %31, align 8, !tbaa !9
  %82 = add i64 %81, -1
  store i64 %82, ptr %31, align 8, !tbaa !9
  br label %64, !llvm.loop !29

83:                                               ; preds = %64
  %84 = getelementptr inbounds %struct.Command, ptr %30, i32 0, i32 0
  %85 = load i32, ptr %84, align 4, !tbaa !26
  %86 = zext i32 %85 to i64
  %87 = load i64, ptr %28, align 8, !tbaa !9
  %88 = add i64 %87, %86
  store i64 %88, ptr %28, align 8, !tbaa !9
  %89 = call i32 @CommandCopyLen(ptr noundef %30)
  %90 = zext i32 %89 to i64
  %91 = load i64, ptr %27, align 8, !tbaa !9
  %92 = add i64 %91, %90
  store i64 %92, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %93

93:                                               ; preds = %83
  %94 = load i64, ptr %29, align 8, !tbaa !9
  %95 = add i64 %94, 1
  store i64 %95, ptr %29, align 8, !tbaa !9
  br label %53, !llvm.loop !31

96:                                               ; preds = %53
  %97 = load ptr, ptr %23, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.MetablockArena, ptr %97, i32 0, i32 9
  %99 = getelementptr inbounds [1409 x %struct.HuffmanTree], ptr %98, i64 0, i64 0
  %100 = getelementptr inbounds [256 x i32], ptr %26, i64 0, i64 0
  %101 = load i64, ptr %28, align 8, !tbaa !9
  %102 = load ptr, ptr %23, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.MetablockArena, ptr %102, i32 0, i32 3
  %104 = getelementptr inbounds [256 x i8], ptr %103, i64 0, i64 0
  %105 = load ptr, ptr %23, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.MetablockArena, ptr %105, i32 0, i32 4
  %107 = getelementptr inbounds [256 x i16], ptr %106, i64 0, i64 0
  %108 = load ptr, ptr %21, align 8, !tbaa !5
  %109 = load ptr, ptr %22, align 8, !tbaa !5
  call void @BrotliBuildAndStoreHuffmanTreeFast(ptr noundef %99, ptr noundef %100, i64 noundef %101, i64 noundef 8, ptr noundef %104, ptr noundef %107, ptr noundef %108, ptr noundef %109)
  %110 = load ptr, ptr %21, align 8, !tbaa !5
  %111 = load ptr, ptr %22, align 8, !tbaa !5
  call void @StoreStaticCommandHuffmanTree(ptr noundef %110, ptr noundef %111)
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = load ptr, ptr %22, align 8, !tbaa !5
  call void @StoreStaticDistanceHuffmanTree(ptr noundef %112, ptr noundef %113)
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = load i64, ptr %14, align 8, !tbaa !9
  %116 = load i64, ptr %16, align 8, !tbaa !9
  %117 = load ptr, ptr %19, align 8, !tbaa !5
  %118 = load i64, ptr %20, align 8, !tbaa !9
  %119 = load ptr, ptr %23, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.MetablockArena, ptr %119, i32 0, i32 3
  %121 = getelementptr inbounds [256 x i8], ptr %120, i64 0, i64 0
  %122 = load ptr, ptr %23, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.MetablockArena, ptr %122, i32 0, i32 4
  %124 = getelementptr inbounds [256 x i16], ptr %123, i64 0, i64 0
  %125 = load ptr, ptr %21, align 8, !tbaa !5
  %126 = load ptr, ptr %22, align 8, !tbaa !5
  call void @StoreDataWithHuffmanCodes(ptr noundef %114, i64 noundef %115, i64 noundef %116, ptr noundef %117, i64 noundef %118, ptr noundef %121, ptr noundef %124, ptr noundef @kStaticCommandCodeDepth, ptr noundef @kStaticCommandCodeBits, ptr noundef @kStaticDistanceCodeDepth, ptr noundef @kStaticDistanceCodeBits, ptr noundef %125, ptr noundef %126)
  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
  call void @llvm.lifetime.end.p0(i64 1024, ptr %26) #6
  br label %229

127:                                              ; preds = %11
  %128 = load ptr, ptr %23, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.MetablockArena, ptr %128, i32 0, i32 0
  call void @HistogramClearLiteral(ptr noundef %129)
  %130 = load ptr, ptr %23, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.MetablockArena, ptr %130, i32 0, i32 1
  call void @HistogramClearCommand(ptr noundef %131)
  %132 = load ptr, ptr %23, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.MetablockArena, ptr %132, i32 0, i32 2
  call void @HistogramClearDistance(ptr noundef %133)
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load i64, ptr %14, align 8, !tbaa !9
  %136 = load i64, ptr %16, align 8, !tbaa !9
  %137 = load ptr, ptr %19, align 8, !tbaa !5
  %138 = load i64, ptr %20, align 8, !tbaa !9
  %139 = load ptr, ptr %23, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.MetablockArena, ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %23, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.MetablockArena, ptr %141, i32 0, i32 1
  %143 = load ptr, ptr %23, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.MetablockArena, ptr %143, i32 0, i32 2
  call void @BuildHistograms(ptr noundef %134, i64 noundef %135, i64 noundef %136, ptr noundef %137, i64 noundef %138, ptr noundef %140, ptr noundef %142, ptr noundef %144)
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.MetablockArena, ptr %145, i32 0, i32 9
  %147 = getelementptr inbounds [1409 x %struct.HuffmanTree], ptr %146, i64 0, i64 0
  %148 = load ptr, ptr %23, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.MetablockArena, ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds %struct.HistogramLiteral, ptr %149, i32 0, i32 0
  %151 = getelementptr inbounds [256 x i32], ptr %150, i64 0, i64 0
  %152 = load ptr, ptr %23, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.MetablockArena, ptr %152, i32 0, i32 0
  %154 = getelementptr inbounds %struct.HistogramLiteral, ptr %153, i32 0, i32 1
  %155 = load i64, ptr %154, align 8, !tbaa !32
  %156 = load ptr, ptr %23, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.MetablockArena, ptr %156, i32 0, i32 3
  %158 = getelementptr inbounds [256 x i8], ptr %157, i64 0, i64 0
  %159 = load ptr, ptr %23, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.MetablockArena, ptr %159, i32 0, i32 4
  %161 = getelementptr inbounds [256 x i16], ptr %160, i64 0, i64 0
  %162 = load ptr, ptr %21, align 8, !tbaa !5
  %163 = load ptr, ptr %22, align 8, !tbaa !5
  call void @BrotliBuildAndStoreHuffmanTreeFast(ptr noundef %147, ptr noundef %151, i64 noundef %155, i64 noundef 8, ptr noundef %158, ptr noundef %161, ptr noundef %162, ptr noundef %163)
  %164 = load ptr, ptr %23, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.MetablockArena, ptr %164, i32 0, i32 9
  %166 = getelementptr inbounds [1409 x %struct.HuffmanTree], ptr %165, i64 0, i64 0
  %167 = load ptr, ptr %23, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.MetablockArena, ptr %167, i32 0, i32 1
  %169 = getelementptr inbounds %struct.HistogramCommand, ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds [704 x i32], ptr %169, i64 0, i64 0
  %171 = load ptr, ptr %23, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.MetablockArena, ptr %171, i32 0, i32 1
  %173 = getelementptr inbounds %struct.HistogramCommand, ptr %172, i32 0, i32 1
  %174 = load i64, ptr %173, align 8, !tbaa !38
  %175 = load ptr, ptr %23, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.MetablockArena, ptr %175, i32 0, i32 5
  %177 = getelementptr inbounds [704 x i8], ptr %176, i64 0, i64 0
  %178 = load ptr, ptr %23, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.MetablockArena, ptr %178, i32 0, i32 6
  %180 = getelementptr inbounds [704 x i16], ptr %179, i64 0, i64 0
  %181 = load ptr, ptr %21, align 8, !tbaa !5
  %182 = load ptr, ptr %22, align 8, !tbaa !5
  call void @BrotliBuildAndStoreHuffmanTreeFast(ptr noundef %166, ptr noundef %170, i64 noundef %174, i64 noundef 10, ptr noundef %177, ptr noundef %180, ptr noundef %181, ptr noundef %182)
  %183 = load ptr, ptr %23, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.MetablockArena, ptr %183, i32 0, i32 9
  %185 = getelementptr inbounds [1409 x %struct.HuffmanTree], ptr %184, i64 0, i64 0
  %186 = load ptr, ptr %23, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.MetablockArena, ptr %186, i32 0, i32 2
  %188 = getelementptr inbounds %struct.HistogramDistance, ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds [544 x i32], ptr %188, i64 0, i64 0
  %190 = load ptr, ptr %23, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.MetablockArena, ptr %190, i32 0, i32 2
  %192 = getelementptr inbounds %struct.HistogramDistance, ptr %191, i32 0, i32 1
  %193 = load i64, ptr %192, align 8, !tbaa !39
  %194 = load i32, ptr %25, align 4, !tbaa !11
  %195 = zext i32 %194 to i64
  %196 = load ptr, ptr %23, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.MetablockArena, ptr %196, i32 0, i32 7
  %198 = getelementptr inbounds [140 x i8], ptr %197, i64 0, i64 0
  %199 = load ptr, ptr %23, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.MetablockArena, ptr %199, i32 0, i32 8
  %201 = getelementptr inbounds [140 x i16], ptr %200, i64 0, i64 0
  %202 = load ptr, ptr %21, align 8, !tbaa !5
  %203 = load ptr, ptr %22, align 8, !tbaa !5
  call void @BrotliBuildAndStoreHuffmanTreeFast(ptr noundef %185, ptr noundef %189, i64 noundef %193, i64 noundef %195, ptr noundef %198, ptr noundef %201, ptr noundef %202, ptr noundef %203)
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  %205 = load i64, ptr %14, align 8, !tbaa !9
  %206 = load i64, ptr %16, align 8, !tbaa !9
  %207 = load ptr, ptr %19, align 8, !tbaa !5
  %208 = load i64, ptr %20, align 8, !tbaa !9
  %209 = load ptr, ptr %23, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.MetablockArena, ptr %209, i32 0, i32 3
  %211 = getelementptr inbounds [256 x i8], ptr %210, i64 0, i64 0
  %212 = load ptr, ptr %23, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.MetablockArena, ptr %212, i32 0, i32 4
  %214 = getelementptr inbounds [256 x i16], ptr %213, i64 0, i64 0
  %215 = load ptr, ptr %23, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.MetablockArena, ptr %215, i32 0, i32 5
  %217 = getelementptr inbounds [704 x i8], ptr %216, i64 0, i64 0
  %218 = load ptr, ptr %23, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.MetablockArena, ptr %218, i32 0, i32 6
  %220 = getelementptr inbounds [704 x i16], ptr %219, i64 0, i64 0
  %221 = load ptr, ptr %23, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.MetablockArena, ptr %221, i32 0, i32 7
  %223 = getelementptr inbounds [140 x i8], ptr %222, i64 0, i64 0
  %224 = load ptr, ptr %23, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.MetablockArena, ptr %224, i32 0, i32 8
  %226 = getelementptr inbounds [140 x i16], ptr %225, i64 0, i64 0
  %227 = load ptr, ptr %21, align 8, !tbaa !5
  %228 = load ptr, ptr %22, align 8, !tbaa !5
  call void @StoreDataWithHuffmanCodes(ptr noundef %204, i64 noundef %205, i64 noundef %206, ptr noundef %207, i64 noundef %208, ptr noundef %211, ptr noundef %214, ptr noundef %217, ptr noundef %220, ptr noundef %223, ptr noundef %226, ptr noundef %227, ptr noundef %228)
  br label %229

229:                                              ; preds = %127, %96
  %230 = load ptr, ptr %12, align 8, !tbaa !5
  %231 = load ptr, ptr %23, align 8, !tbaa !5
  call void @BrotliFree(ptr noundef %230, ptr noundef %231)
  store ptr null, ptr %23, align 8, !tbaa !5
  %232 = load i32, ptr %17, align 4, !tbaa !11
  %233 = icmp ne i32 %232, 0
  br i1 %233, label %234, label %237

234:                                              ; preds = %229
  %235 = load ptr, ptr %21, align 8, !tbaa !5
  %236 = load ptr, ptr %22, align 8, !tbaa !5
  call void @JumpToByteBoundary(ptr noundef %235, ptr noundef %236)
  br label %237

237:                                              ; preds = %234, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  ret void
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 64}
!14 = !{!"BrotliEncoderParams", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !10, i64 16, !10, i64 24, !12, i64 32, !12, i64 36, !15, i64 40, !16, i64 56, !17, i64 80}
!15 = !{!"BrotliHasherParams", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!16 = !{!"BrotliDistanceParams", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !10, i64 16}
!17 = !{!"SharedEncoderDictionary", !12, i64 0, !18, i64 8, !19, i64 544, !12, i64 1312}
!18 = !{!"CompoundDictionary", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 144, !7, i64 272, !10, i64 400, !7, i64 408}
!19 = !{!"ContextualEncoderDictionary", !12, i64 0, !7, i64 4, !7, i64 5, !7, i64 72, !10, i64 584, !20, i64 592, !6, i64 760}
!20 = !{!"BrotliEncoderDictionary", !6, i64 0, !12, i64 8, !12, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !21, i64 56, !12, 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}
!21 = !{!"BrotliTrie", !6, i64 0, !10, i64 8, !10, i64 16, !22, i64 24}
!22 = !{!"BrotliTrieNode", !7, i64 0, !7, i64 1, !7, i64 2, !12, i64 4, !12, i64 8}
!23 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11, i64 12, i64 2, !24, i64 14, i64 2, !24}
!24 = !{!25, !25, i64 0}
!25 = !{!"short", !7, i64 0}
!26 = !{!27, !12, i64 0}
!27 = !{!"Command", !12, i64 0, !12, i64 4, !12, i64 8, !25, i64 12, !25, i64 14}
!28 = !{!7, !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = !{!33, !10, i64 1024}
!33 = !{!"MetablockArena", !34, i64 0, !36, i64 1040, !37, i64 3872, !7, i64 6064, !7, i64 6320, !7, i64 6832, !7, i64 7536, !7, i64 8944, !7, i64 9084, !7, i64 9364}
!34 = !{!"HistogramLiteral", !7, i64 0, !10, i64 1024, !35, i64 1032}
!35 = !{!"double", !7, i64 0}
!36 = !{!"HistogramCommand", !7, i64 0, !10, i64 2816, !35, i64 2824}
!37 = !{!"HistogramDistance", !7, i64 0, !10, i64 2176, !35, i64 2184}
!38 = !{!33, !10, i64 3856}
!39 = !{!33, !10, i64 6048}


; 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 }

@kStaticCommandCodeDepth = external hidden constant [704 x i8], align 16
@kStaticCommandCodeBits = external hidden constant [704 x i16], align 16
@kStaticDistanceCodeDepth = external hidden constant [64 x i8], align 16
@kStaticDistanceCodeBits = external hidden constant [64 x i16], 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

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

; 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) #4

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define hidden void @BrotliStoreMetaBlockFast(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i32 noundef %5, ptr nocapture noundef readonly %6, ptr noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #2 {
  %12 = alloca [256 x i32], align 16
  %13 = alloca %struct.Command, align 4
  %14 = tail call ptr @BrotliAllocate(ptr noundef %0, i64 noundef 20640) #6
  %15 = getelementptr inbounds i8, ptr %6, i64 64
  %16 = load i32, ptr %15, align 8, !tbaa !5
  %17 = add i32 %16, -1
  %18 = zext i32 %17 to i64
  %19 = tail call i32 @Log2FloorNonZero(i64 noundef %18)
  tail call void @StoreCompressedMetaBlockHeader(i32 noundef %5, i64 noundef %3, ptr noundef %9, ptr noundef %10)
  tail call void @BrotliWriteBits(i64 noundef 13, i64 noundef 0, ptr noundef %9, ptr noundef %10)
  %20 = icmp ult i64 %8, 129
  br i1 %20, label %21, label %60

21:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %12) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %12, i8 0, i64 1024, i1 false)
  %.not108 = icmp eq i64 %8, 0
  br i1 %.not108, label %._crit_edge106, label %.lr.ph105

.lr.ph105:                                        ; preds = %21, %._crit_edge
  %.093103 = phi i64 [ %56, %._crit_edge ], [ 0, %21 ]
  %.094102 = phi i64 [ %52, %._crit_edge ], [ 0, %21 ]
  %.095101 = phi i64 [ %55, %._crit_edge ], [ %2, %21 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %22 = getelementptr inbounds %struct.Command, ptr %7, i64 %.093103
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %22, i64 16, i1 false), !tbaa.struct !20
  %23 = load i32, ptr %13, align 4, !tbaa !24
  %24 = zext i32 %23 to i64
  %.not9798 = icmp eq i32 %23, 0
  br i1 %.not9798, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph105
  %xtraiter = and i64 %24, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader
  %25 = and i64 %.095101, %4
  %26 = getelementptr inbounds i8, ptr %1, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !26
  %28 = zext i8 %27 to i64
  %29 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !21
  %31 = add i32 %30, 1
  store i32 %31, ptr %29, align 4, !tbaa !21
  %32 = add i64 %.095101, 1
  %33 = add nsw i64 %24, -1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.lcssa.unr = phi i64 [ poison, %.lr.ph.preheader ], [ %32, %.lr.ph.prol ]
  %.0100.unr = phi i64 [ %24, %.lr.ph.preheader ], [ %33, %.lr.ph.prol ]
  %.199.unr = phi i64 [ %.095101, %.lr.ph.preheader ], [ %32, %.lr.ph.prol ]
  %34 = icmp eq i32 %23, 1
  br i1 %34, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.0100 = phi i64 [ %51, %.lr.ph ], [ %.0100.unr, %.lr.ph.prol.loopexit ]
  %.199 = phi i64 [ %50, %.lr.ph ], [ %.199.unr, %.lr.ph.prol.loopexit ]
  %35 = and i64 %.199, %4
  %36 = getelementptr inbounds i8, ptr %1, i64 %35
  %37 = load i8, ptr %36, align 1, !tbaa !26
  %38 = zext i8 %37 to i64
  %39 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !21
  %41 = add i32 %40, 1
  store i32 %41, ptr %39, align 4, !tbaa !21
  %42 = add i64 %.199, 1
  %43 = and i64 %42, %4
  %44 = getelementptr inbounds i8, ptr %1, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !26
  %46 = zext i8 %45 to i64
  %47 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !21
  %49 = add i32 %48, 1
  store i32 %49, ptr %47, align 4, !tbaa !21
  %50 = add i64 %.199, 2
  %51 = add nsw i64 %.0100, -2
  %.not97.1 = icmp eq i64 %51, 0
  br i1 %.not97.1, label %._crit_edge, label %.lr.ph, !llvm.loop !27

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.lr.ph105
  %.1.lcssa = phi i64 [ %.095101, %.lr.ph105 ], [ %.lcssa.unr, %.lr.ph.prol.loopexit ], [ %50, %.lr.ph ]
  %52 = add i64 %.094102, %24
  %53 = call i32 @CommandCopyLen(ptr noundef nonnull %13)
  %54 = zext i32 %53 to i64
  %55 = add i64 %.1.lcssa, %54
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %56 = add nuw i64 %.093103, 1
  %exitcond.not = icmp eq i64 %56, %8
  br i1 %exitcond.not, label %._crit_edge106, label %.lr.ph105, !llvm.loop !29

._crit_edge106:                                   ; preds = %._crit_edge, %21
  %.094.lcssa = phi i64 [ 0, %21 ], [ %52, %._crit_edge ]
  %57 = getelementptr inbounds i8, ptr %14, i64 9364
  %58 = getelementptr inbounds i8, ptr %14, i64 6064
  %59 = getelementptr inbounds i8, ptr %14, i64 6320
  call void @BrotliBuildAndStoreHuffmanTreeFast(ptr noundef nonnull %57, ptr noundef nonnull %12, i64 noundef %.094.lcssa, i64 noundef 8, ptr noundef nonnull %58, ptr noundef nonnull %59, ptr noundef %9, ptr noundef %10)
  call void @StoreStaticCommandHuffmanTree(ptr noundef %9, ptr noundef %10)
  call void @StoreStaticDistanceHuffmanTree(ptr noundef %9, ptr noundef %10)
  call void @StoreDataWithHuffmanCodes(ptr noundef %1, i64 noundef %2, i64 noundef %4, ptr noundef %7, i64 noundef %8, ptr noundef nonnull %58, ptr noundef nonnull %59, ptr noundef nonnull @kStaticCommandCodeDepth, ptr noundef nonnull @kStaticCommandCodeBits, ptr noundef nonnull @kStaticDistanceCodeDepth, ptr noundef nonnull @kStaticDistanceCodeBits, ptr noundef %9, ptr noundef %10)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %12) #6
  br label %78

60:                                               ; preds = %11
  %61 = add i32 %19, 1
  tail call void @HistogramClearLiteral(ptr noundef %14)
  %62 = getelementptr inbounds i8, ptr %14, i64 1040
  tail call void @HistogramClearCommand(ptr noundef nonnull %62)
  %63 = getelementptr inbounds i8, ptr %14, i64 3872
  tail call void @HistogramClearDistance(ptr noundef nonnull %63)
  tail call void @BuildHistograms(ptr noundef %1, i64 noundef %2, i64 noundef %4, ptr noundef %7, i64 noundef %8, ptr noundef %14, ptr noundef nonnull %62, ptr noundef nonnull %63)
  %64 = getelementptr inbounds i8, ptr %14, i64 9364
  %65 = getelementptr inbounds i8, ptr %14, i64 1024
  %66 = load i64, ptr %65, align 8, !tbaa !30
  %67 = getelementptr inbounds i8, ptr %14, i64 6064
  %68 = getelementptr inbounds i8, ptr %14, i64 6320
  tail call void @BrotliBuildAndStoreHuffmanTreeFast(ptr noundef nonnull %64, ptr noundef %14, i64 noundef %66, i64 noundef 8, ptr noundef nonnull %67, ptr noundef nonnull %68, ptr noundef %9, ptr noundef %10)
  %69 = getelementptr inbounds i8, ptr %14, i64 3856
  %70 = load i64, ptr %69, align 8, !tbaa !36
  %71 = getelementptr inbounds i8, ptr %14, i64 6832
  %72 = getelementptr inbounds i8, ptr %14, i64 7536
  tail call void @BrotliBuildAndStoreHuffmanTreeFast(ptr noundef nonnull %64, ptr noundef nonnull %62, i64 noundef %70, i64 noundef 10, ptr noundef nonnull %71, ptr noundef nonnull %72, ptr noundef %9, ptr noundef %10)
  %73 = getelementptr inbounds i8, ptr %14, i64 6048
  %74 = load i64, ptr %73, align 8, !tbaa !37
  %75 = zext i32 %61 to i64
  %76 = getelementptr inbounds i8, ptr %14, i64 8944
  %77 = getelementptr inbounds i8, ptr %14, i64 9084
  tail call void @BrotliBuildAndStoreHuffmanTreeFast(ptr noundef nonnull %64, ptr noundef nonnull %63, i64 noundef %74, i64 noundef %75, ptr noundef nonnull %76, ptr noundef nonnull %77, ptr noundef %9, ptr noundef %10)
  tail call void @StoreDataWithHuffmanCodes(ptr noundef %1, i64 noundef %2, i64 noundef %4, ptr noundef %7, i64 noundef %8, ptr noundef nonnull %67, ptr noundef nonnull %68, ptr noundef nonnull %71, ptr noundef nonnull %72, ptr noundef nonnull %76, ptr noundef nonnull %77, ptr noundef %9, ptr noundef %10)
  br label %78

78:                                               ; preds = %60, %._crit_edge106
  call void @BrotliFree(ptr noundef %0, ptr noundef %14) #6
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %80, label %79

79:                                               ; preds = %78
  call void @JumpToByteBoundary(ptr noundef %9, ptr noundef %10)
  br label %80

80:                                               ; preds = %79, %78
  ret void
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{i64 0, i64 4, !21, i64 4, i64 4, !21, i64 8, i64 4, !21, i64 12, i64 2, !22, i64 14, i64 2, !22}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"short", !8, i64 0}
!24 = !{!25, !7, i64 0}
!25 = !{!"Command", !7, i64 0, !7, i64 4, !7, i64 8, !23, i64 12, !23, i64 14}
!26 = !{!8, !8, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!31, !10, i64 1024}
!31 = !{!"MetablockArena", !32, i64 0, !34, i64 1040, !35, i64 3872, !8, i64 6064, !8, i64 6320, !8, i64 6832, !8, i64 7536, !8, i64 8944, !8, i64 9084, !8, i64 9364}
!32 = !{!"HistogramLiteral", !8, i64 0, !10, i64 1024, !33, i64 1032}
!33 = !{!"double", !8, i64 0}
!34 = !{!"HistogramCommand", !8, i64 0, !10, i64 2816, !33, i64 2824}
!35 = !{!"HistogramDistance", !8, i64 0, !10, i64 2176, !33, i64 2184}
!36 = !{!31, !10, i64 3856}
!37 = !{!31, !10, i64 6048}


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