; LLVM IR from itchio/go-brotli :: dec (state)

; 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.BrotliDecoderStateStruct = type { i32, i32, %struct.BrotliBitReader, ptr, ptr, ptr, %union.anon, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.HuffmanTreeGroup, %struct.HuffmanTreeGroup, %struct.HuffmanTreeGroup, ptr, ptr, i32, i32, i32, i32, [3 x i32], [3 x i32], [6 x i32], i32, i32, i32, i32, ptr, ptr, i8, i32, i32, i32, i32, i64, i64, i32, i32, i32, [32 x %struct.HuffmanCode], ptr, [720 x i16], [32 x i32], [18 x i8], [16 x i16], i32, ptr, i32, i32, i32, [646 x %struct.HuffmanCode], i32, [65 x i32], i32, i32, i32, i32, i32, i32, i32, i16, i32, i32, i32, ptr, ptr, ptr, [8 x i32] }
%struct.BrotliBitReader = type { i64, i32, ptr, i64 }
%union.anon = type { i64 }
%struct.HuffmanTreeGroup = type { ptr, ptr, i16, i16 }
%struct.HuffmanCode = type { i8, i16 }

@decodeBrotliDictionary = external global ptr, align 8

; Function Attrs: nounwind uwtable
define hidden void @BrotliDecoderStateInitWithCustomAllocators(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %9 = load ptr, ptr %6, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %18, label %11

11:                                               ; preds = %4
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %12, i32 0, i32 3
  store ptr @DefaultAllocFunc, ptr %13, align 8, !tbaa !9
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %14, i32 0, i32 4
  store ptr @DefaultFreeFunc, ptr %15, align 8, !tbaa !16
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %16, i32 0, i32 5
  store ptr null, ptr %17, align 8, !tbaa !17
  br label %28

18:                                               ; preds = %4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %20, i32 0, i32 3
  store ptr %19, ptr %21, align 8, !tbaa !9
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %23, i32 0, i32 4
  store ptr %22, ptr %24, align 8, !tbaa !16
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %26, i32 0, i32 5
  store ptr %25, ptr %27, align 8, !tbaa !17
  br label %28

28:                                               ; preds = %18, %11
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %29, i32 0, i32 15
  store i32 0, ptr %30, align 4, !tbaa !18
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %31, i32 0, i32 2
  call void @BrotliInitBitReader(ptr noundef %32)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %33, i32 0, i32 0
  store i32 0, ptr %34, align 8, !tbaa !19
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %35, i32 0, i32 66
  store i32 0, ptr %36, align 4, !tbaa !20
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %37, i32 0, i32 67
  store i32 0, ptr %38, align 8, !tbaa !21
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %39, i32 0, i32 68
  store i32 0, ptr %40, align 4, !tbaa !22
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %41, i32 0, i32 69
  store i32 0, ptr %42, align 8, !tbaa !23
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %43, i32 0, i32 70
  store i32 0, ptr %44, align 4, !tbaa !24
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %45, i32 0, i32 71
  store i32 0, ptr %46, align 8, !tbaa !25
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %47, i32 0, i32 72
  store i32 0, ptr %48, align 4, !tbaa !26
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %49, i32 0, i32 7
  store i32 0, ptr %50, align 8, !tbaa !27
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %51, i32 0, i32 1
  store i32 0, ptr %52, align 4, !tbaa !28
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %53, i32 0, i32 8
  store i32 0, ptr %54, align 4, !tbaa !29
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %55, i32 0, i32 47
  store i64 0, ptr %56, align 8, !tbaa !30
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %57, i32 0, i32 48
  store i64 0, ptr %58, align 8, !tbaa !31
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %59, i32 0, i32 27
  store ptr null, ptr %60, align 8, !tbaa !32
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %61, i32 0, i32 28
  store ptr null, ptr %62, align 8, !tbaa !33
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %63, i32 0, i32 17
  store ptr null, ptr %64, align 8, !tbaa !34
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %65, i32 0, i32 11
  store i32 0, ptr %66, align 8, !tbaa !35
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %67, i32 0, i32 75
  store i32 0, ptr %68, align 8, !tbaa !36
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %69, i32 0, i32 12
  store i32 0, ptr %70, align 4, !tbaa !37
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %71, i32 0, i32 77
  store ptr null, ptr %72, align 8, !tbaa !38
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %73, i32 0, i32 78
  store ptr null, ptr %74, align 8, !tbaa !39
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %75, i32 0, i32 40
  store ptr null, ptr %76, align 8, !tbaa !40
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %77, i32 0, i32 22
  store ptr null, ptr %78, align 8, !tbaa !41
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %79, i32 0, i32 23
  store ptr null, ptr %80, align 8, !tbaa !42
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %81, i32 0, i32 16
  store i32 0, ptr %82, align 8, !tbaa !43
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %83, i32 0, i32 24
  %85 = getelementptr inbounds %struct.HuffmanTreeGroup, ptr %84, i32 0, i32 1
  store ptr null, ptr %85, align 8, !tbaa !44
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %86, i32 0, i32 24
  %88 = getelementptr inbounds %struct.HuffmanTreeGroup, ptr %87, i32 0, i32 0
  store ptr null, ptr %88, align 8, !tbaa !45
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %89, i32 0, i32 25
  %91 = getelementptr inbounds %struct.HuffmanTreeGroup, ptr %90, i32 0, i32 1
  store ptr null, ptr %91, align 8, !tbaa !46
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %92, i32 0, i32 25
  %94 = getelementptr inbounds %struct.HuffmanTreeGroup, ptr %93, i32 0, i32 0
  store ptr null, ptr %94, align 8, !tbaa !47
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %95, i32 0, i32 26
  %97 = getelementptr inbounds %struct.HuffmanTreeGroup, ptr %96, i32 0, i32 1
  store ptr null, ptr %97, align 8, !tbaa !48
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %98, i32 0, i32 26
  %100 = getelementptr inbounds %struct.HuffmanTreeGroup, ptr %99, i32 0, i32 0
  store ptr null, ptr %100, align 8, !tbaa !49
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %101, i32 0, i32 73
  %103 = load i16, ptr %102, align 8
  %104 = and i16 %103, -2
  %105 = or i16 %104, 0
  store i16 %105, ptr %102, align 8
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %106, i32 0, i32 73
  %108 = load i16, ptr %107, align 8
  %109 = and i16 %108, -3
  %110 = or i16 %109, 0
  store i16 %110, ptr %107, align 8
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %111, i32 0, i32 73
  %113 = load i16, ptr %112, align 8
  %114 = and i16 %113, -5
  %115 = or i16 %114, 0
  store i16 %115, ptr %112, align 8
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %116, i32 0, i32 73
  %118 = load i16, ptr %117, align 8
  %119 = and i16 %118, -9
  %120 = or i16 %119, 0
  store i16 %120, ptr %117, align 8
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %121, i32 0, i32 73
  %123 = load i16, ptr %122, align 8
  %124 = and i16 %123, -17
  %125 = or i16 %124, 16
  store i16 %125, ptr %122, align 8
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %126, i32 0, i32 74
  store i32 0, ptr %127, align 4, !tbaa !50
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %128, i32 0, i32 10
  store i32 0, ptr %129, align 4, !tbaa !51
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %130, i32 0, i32 14
  %132 = getelementptr inbounds [4 x i32], ptr %131, i64 0, i64 0
  store i32 16, ptr %132, align 4, !tbaa !52
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %133, i32 0, i32 14
  %135 = getelementptr inbounds [4 x i32], ptr %134, i64 0, i64 1
  store i32 15, ptr %135, align 4, !tbaa !52
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %136, i32 0, i32 14
  %138 = getelementptr inbounds [4 x i32], ptr %137, i64 0, i64 2
  store i32 11, ptr %138, align 4, !tbaa !52
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %139, i32 0, i32 14
  %141 = getelementptr inbounds [4 x i32], ptr %140, i64 0, i64 3
  store i32 4, ptr %141, align 4, !tbaa !52
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %142, i32 0, i32 13
  store i32 0, ptr %143, align 8, !tbaa !53
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %144, i32 0, i32 27
  store ptr null, ptr %145, align 8, !tbaa !32
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %146, i32 0, i32 28
  store ptr null, ptr %147, align 8, !tbaa !33
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %148, i32 0, i32 54
  %150 = getelementptr inbounds [720 x i16], ptr %149, i64 0, i64 16
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %151, i32 0, i32 53
  store ptr %150, ptr %152, align 8, !tbaa !54
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %153, i32 0, i32 64
  store i32 63, ptr %154, align 4, !tbaa !55
  %155 = load ptr, ptr @decodeBrotliDictionary, align 8, !tbaa !5
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.BrotliDecoderStateStruct, ptr %156, i32 0, i32 79
  store ptr %155, ptr %157, align 8, !tbaa !56
  ret void
}

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

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

declare hidden void @BrotliInitBitReader(ptr noundef) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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" }

!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, !6, i64 40}
!10 = !{!"BrotliDecoderStateStruct", !11, i64 0, !11, i64 4, !12, i64 8, !6, i64 40, !6, i64 48, !6, i64 56, !7, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !7, i64 100, !11, i64 116, !11, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !14, i64 184, !14, i64 208, !14, i64 232, !6, i64 256, !6, i64 264, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !7, i64 288, !7, i64 300, !7, i64 312, !11, i64 336, !11, i64 340, !11, i64 344, !11, i64 348, !6, i64 352, !6, i64 360, !7, i64 368, !11, i64 372, !11, i64 376, !11, i64 380, !11, i64 384, !13, i64 392, !13, i64 400, !11, i64 408, !11, i64 412, !11, i64 416, !7, i64 420, !6, i64 552, !7, i64 560, !7, i64 2000, !7, i64 2128, !7, i64 2146, !11, i64 2180, !6, i64 2184, !11, i64 2192, !11, i64 2196, !11, i64 2200, !7, i64 2204, !11, i64 4788, !7, i64 4792, !11, i64 5052, !11, i64 5056, !11, i64 5060, !11, i64 5064, !11, i64 5068, !11, i64 5072, !11, i64 5076, !11, i64 5080, !11, i64 5080, !11, i64 5080, !11, i64 5080, !11, i64 5080, !11, i64 5080, !11, i64 5084, !11, i64 5088, !11, i64 5092, !6, i64 5096, !6, i64 5104, !6, i64 5112, !7, i64 5120}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !13, i64 0, !11, i64 8, !6, i64 16, !13, i64 24}
!13 = !{!"long", !7, i64 0}
!14 = !{!"", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 18}
!15 = !{!"short", !7, i64 0}
!16 = !{!10, !6, i64 48}
!17 = !{!10, !6, i64 56}
!18 = !{!10, !11, i64 116}
!19 = !{!10, !11, i64 0}
!20 = !{!10, !11, i64 5052}
!21 = !{!10, !11, i64 5056}
!22 = !{!10, !11, i64 5060}
!23 = !{!10, !11, i64 5064}
!24 = !{!10, !11, i64 5068}
!25 = !{!10, !11, i64 5072}
!26 = !{!10, !11, i64 5076}
!27 = !{!10, !11, i64 72}
!28 = !{!10, !11, i64 4}
!29 = !{!10, !11, i64 76}
!30 = !{!10, !13, i64 392}
!31 = !{!10, !13, i64 400}
!32 = !{!10, !6, i64 256}
!33 = !{!10, !6, i64 264}
!34 = !{!10, !6, i64 128}
!35 = !{!10, !11, i64 88}
!36 = !{!10, !11, i64 5088}
!37 = !{!10, !11, i64 92}
!38 = !{!10, !6, i64 5096}
!39 = !{!10, !6, i64 5104}
!40 = !{!10, !6, i64 352}
!41 = !{!10, !6, i64 168}
!42 = !{!10, !6, i64 176}
!43 = !{!10, !11, i64 120}
!44 = !{!10, !6, i64 192}
!45 = !{!10, !6, i64 184}
!46 = !{!10, !6, i64 216}
!47 = !{!10, !6, i64 208}
!48 = !{!10, !6, i64 240}
!49 = !{!10, !6, i64 232}
!50 = !{!10, !11, i64 5084}
!51 = !{!10, !11, i64 84}
!52 = !{!11, !11, i64 0}
!53 = !{!10, !11, i64 96}
!54 = !{!10, !6, i64 552}
!55 = !{!10, !11, i64 4788}
!56 = !{!10, !6, i64 5112}


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

@decodeBrotliDictionary = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define hidden void @BrotliDecoderStateInitWithCustomAllocators(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %.not = icmp eq ptr %1, null
  %.sink62 = select i1 %.not, ptr @DefaultAllocFunc, ptr %1
  %.sink61 = select i1 %.not, ptr @DefaultFreeFunc, ptr %2
  %.sink = select i1 %.not, ptr null, ptr %3
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %.sink62, ptr %5, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %.sink61, ptr %6, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %.sink, ptr %7, align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 0, ptr %8, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @BrotliInitBitReader(ptr noundef nonnull %9) #3
  store i32 0, ptr %0, align 8, !tbaa !15
  %10 = getelementptr inbounds i8, ptr %0, i64 5052
  %11 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 0, ptr %11, align 8, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 0, ptr %12, align 4, !tbaa !17
  %13 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 0, ptr %13, align 4, !tbaa !18
  %14 = getelementptr inbounds i8, ptr %0, i64 392
  %15 = getelementptr inbounds i8, ptr %0, i64 256
  %16 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr null, ptr %16, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %0, i64 5088
  store i32 0, ptr %17, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %0, i64 5096
  %19 = getelementptr inbounds i8, ptr %0, i64 352
  store ptr null, ptr %19, align 8, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %0, i64 168
  %21 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 0, ptr %21, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %0, i64 208
  %23 = getelementptr inbounds i8, ptr %0, i64 232
  %24 = getelementptr inbounds i8, ptr %0, i64 5080
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %20, i8 0, i64 32, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %22, i8 0, i64 16, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %23, i8 0, i64 16, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(28) %10, i8 0, i64 28, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, i8 0, i64 16, i1 false)
  %25 = load i16, ptr %24, align 8
  %26 = and i16 %25, -32
  %27 = or disjoint i16 %26, 16
  store i16 %27, ptr %24, align 8
  %28 = getelementptr inbounds i8, ptr %0, i64 5084
  store i32 0, ptr %28, align 4, !tbaa !23
  %29 = getelementptr inbounds i8, ptr %0, i64 84
  %30 = getelementptr inbounds i8, ptr %0, i64 100
  store <4 x i32> <i32 16, i32 15, i32 11, i32 4>, ptr %30, align 4, !tbaa !24
  store <4 x i32> zeroinitializer, ptr %29, align 4, !tbaa !24
  %31 = getelementptr inbounds i8, ptr %0, i64 592
  %32 = getelementptr inbounds i8, ptr %0, i64 552
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  store ptr %31, ptr %32, align 8, !tbaa !25
  %33 = getelementptr inbounds i8, ptr %0, i64 4788
  store i32 63, ptr %33, align 4, !tbaa !26
  %34 = load ptr, ptr @decodeBrotliDictionary, align 8, !tbaa !27
  %35 = getelementptr inbounds i8, ptr %0, i64 5112
  store ptr %34, ptr %35, align 8, !tbaa !28
  ret void
}

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

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

declare hidden void @BrotliInitBitReader(ptr noundef) local_unnamed_addr #1

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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: write) }
attributes #3 = { 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 116}
!6 = !{!"BrotliDecoderStateStruct", !7, i64 0, !7, i64 4, !10, i64 8, !12, i64 40, !12, i64 48, !12, i64 56, !8, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !8, i64 100, !7, i64 116, !7, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !13, i64 184, !13, i64 208, !13, i64 232, !12, i64 256, !12, i64 264, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !8, i64 288, !8, i64 300, !8, i64 312, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !12, i64 352, !12, i64 360, !8, i64 368, !7, i64 372, !7, i64 376, !7, i64 380, !7, i64 384, !11, i64 392, !11, i64 400, !7, i64 408, !7, i64 412, !7, i64 416, !8, i64 420, !12, i64 552, !8, i64 560, !8, i64 2000, !8, i64 2128, !8, i64 2146, !7, i64 2180, !12, i64 2184, !7, i64 2192, !7, i64 2196, !7, i64 2200, !8, i64 2204, !7, i64 4788, !8, i64 4792, !7, i64 5052, !7, i64 5056, !7, i64 5060, !7, i64 5064, !7, i64 5068, !7, i64 5072, !7, i64 5076, !7, i64 5080, !7, i64 5080, !7, i64 5080, !7, i64 5080, !7, i64 5080, !7, i64 5080, !7, i64 5084, !7, i64 5088, !7, i64 5092, !12, i64 5096, !12, i64 5104, !12, i64 5112, !8, i64 5120}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !7, i64 8, !12, i64 16, !11, i64 24}
!11 = !{!"long", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 8, !14, i64 16, !14, i64 18}
!14 = !{!"short", !8, i64 0}
!15 = !{!6, !7, i64 0}
!16 = !{!6, !7, i64 72}
!17 = !{!6, !7, i64 4}
!18 = !{!6, !7, i64 76}
!19 = !{!6, !12, i64 128}
!20 = !{!6, !7, i64 5088}
!21 = !{!6, !12, i64 352}
!22 = !{!6, !7, i64 120}
!23 = !{!6, !7, i64 5084}
!24 = !{!7, !7, i64 0}
!25 = !{!6, !12, i64 552}
!26 = !{!6, !7, i64 4788}
!27 = !{!12, !12, i64 0}
!28 = !{!6, !12, i64 5112}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,MergedLoadStoreMotionPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass