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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @BrotliEncoderSetParameter(ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @BrotliEncoderCreateInstance(ptr noundef, ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @BrotliEncoderDestroyInstance(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @BrotliEncoderMaxCompressedSize(i64 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @BrotliEncoderCompress(i32 noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i64, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !5
  store i64 %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !11
  store ptr %6, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %30 = load ptr, ptr %14, align 8, !tbaa !11
  %31 = load i64, ptr %30, align 8, !tbaa !9
  store i64 %31, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %32 = load ptr, ptr %13, align 8, !tbaa !11
  store ptr %32, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %33 = load ptr, ptr %15, align 8, !tbaa !11
  store ptr %33, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %34 = load i64, ptr %12, align 8, !tbaa !9
  %35 = call i64 @BrotliEncoderMaxCompressedSize(i64 noundef %34)
  store i64 %35, ptr %20, align 8, !tbaa !9
  %36 = load i64, ptr %17, align 8, !tbaa !9
  %37 = icmp eq i64 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %7
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %136

39:                                               ; preds = %7
  %40 = load i64, ptr %12, align 8, !tbaa !9
  %41 = icmp eq i64 %40, 0
  br i1 %41, label %42, label %45

42:                                               ; preds = %39
  %43 = load ptr, ptr %14, align 8, !tbaa !11
  store i64 1, ptr %43, align 8, !tbaa !9
  %44 = load ptr, ptr %15, align 8, !tbaa !11
  store i8 6, ptr %44, align 1, !tbaa !13
  store i32 1, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %136

45:                                               ; preds = %39
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = icmp eq i32 %46, 10
  br i1 %47, label %48, label %72

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %49 = load i32, ptr %10, align 4, !tbaa !5
  %50 = call i32 @brotli_max_int(i32 noundef 16, i32 noundef %49)
  %51 = call i32 @brotli_min_int(i32 noundef 24, i32 noundef %50)
  store i32 %51, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %52 = load i32, ptr %22, align 4, !tbaa !5
  %53 = load i64, ptr %12, align 8, !tbaa !9
  %54 = load ptr, ptr %13, align 8, !tbaa !11
  %55 = load ptr, ptr %14, align 8, !tbaa !11
  %56 = load ptr, ptr %15, align 8, !tbaa !11
  %57 = call i32 @BrotliCompressBufferQuality10(i32 noundef %52, i64 noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56)
  store i32 %57, ptr %23, align 4, !tbaa !5
  %58 = load i32, ptr %23, align 4, !tbaa !5
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %68

60:                                               ; preds = %48
  %61 = load i64, ptr %20, align 8, !tbaa !9
  %62 = icmp ne i64 %61, 0
  br i1 %62, label %63, label %69

63:                                               ; preds = %60
  %64 = load ptr, ptr %14, align 8, !tbaa !11
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = load i64, ptr %20, align 8, !tbaa !9
  %67 = icmp ugt i64 %65, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %63, %48
  store i32 2, ptr %21, align 4
  br label %70

69:                                               ; preds = %63, %60
  store i32 1, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %70

70:                                               ; preds = %69, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  %71 = load i32, ptr %21, align 4
  switch i32 %71, label %136 [
    i32 2, label %120
  ]

72:                                               ; preds = %45
  %73 = call ptr @BrotliEncoderCreateInstance(ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %73, ptr %16, align 8, !tbaa !11
  %74 = load ptr, ptr %16, align 8, !tbaa !11
  %75 = icmp ne ptr %74, null
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %136

77:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %78 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %78, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %79 = load ptr, ptr %13, align 8, !tbaa !11
  store ptr %79, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %80 = load ptr, ptr %14, align 8, !tbaa !11
  %81 = load i64, ptr %80, align 8, !tbaa !9
  store i64 %81, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  %82 = load ptr, ptr %15, align 8, !tbaa !11
  store ptr %82, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  store i64 0, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  store i32 0, ptr %29, align 4, !tbaa !5
  %83 = load ptr, ptr %16, align 8, !tbaa !11
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = call i32 @BrotliEncoderSetParameter(ptr noundef %83, i32 noundef 1, i32 noundef %84)
  %86 = load ptr, ptr %16, align 8, !tbaa !11
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = call i32 @BrotliEncoderSetParameter(ptr noundef %86, i32 noundef 2, i32 noundef %87)
  %89 = load ptr, ptr %16, align 8, !tbaa !11
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = call i32 @BrotliEncoderSetParameter(ptr noundef %89, i32 noundef 0, i32 noundef %90)
  %92 = load ptr, ptr %16, align 8, !tbaa !11
  %93 = load i64, ptr %12, align 8, !tbaa !9
  %94 = trunc i64 %93 to i32
  %95 = call i32 @BrotliEncoderSetParameter(ptr noundef %92, i32 noundef 5, i32 noundef %94)
  %96 = load ptr, ptr %16, align 8, !tbaa !11
  %97 = call i32 @BrotliEncoderCompressStream(ptr noundef %96, i32 noundef 2, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28)
  store i32 %97, ptr %29, align 4, !tbaa !5
  %98 = load ptr, ptr %16, align 8, !tbaa !11
  %99 = call i32 @BrotliEncoderIsFinished(ptr noundef %98)
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %102, label %101

101:                                              ; preds = %77
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %101, %77
  %103 = load i64, ptr %28, align 8, !tbaa !9
  %104 = load ptr, ptr %14, align 8, !tbaa !11
  store i64 %103, ptr %104, align 8, !tbaa !9
  %105 = load ptr, ptr %16, align 8, !tbaa !11
  call void @BrotliEncoderDestroyInstance(ptr noundef %105)
  %106 = load i32, ptr %29, align 4, !tbaa !5
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %116

108:                                              ; preds = %102
  %109 = load i64, ptr %20, align 8, !tbaa !9
  %110 = icmp ne i64 %109, 0
  br i1 %110, label %111, label %117

111:                                              ; preds = %108
  %112 = load ptr, ptr %14, align 8, !tbaa !11
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = load i64, ptr %20, align 8, !tbaa !9
  %115 = icmp ugt i64 %113, %114
  br i1 %115, label %116, label %117

116:                                              ; preds = %111, %102
  store i32 2, ptr %21, align 4
  br label %118

117:                                              ; preds = %111, %108
  store i32 1, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %118

118:                                              ; preds = %117, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  %119 = load i32, ptr %21, align 4
  switch i32 %119, label %136 [
    i32 2, label %120
  ]

120:                                              ; preds = %118, %70
  %121 = load ptr, ptr %14, align 8, !tbaa !11
  store i64 0, ptr %121, align 8, !tbaa !9
  %122 = load i64, ptr %20, align 8, !tbaa !9
  %123 = icmp ne i64 %122, 0
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %136

125:                                              ; preds = %120
  %126 = load i64, ptr %17, align 8, !tbaa !9
  %127 = load i64, ptr %20, align 8, !tbaa !9
  %128 = icmp uge i64 %126, %127
  br i1 %128, label %129, label %135

129:                                              ; preds = %125
  %130 = load ptr, ptr %18, align 8, !tbaa !11
  %131 = load i64, ptr %12, align 8, !tbaa !9
  %132 = load ptr, ptr %19, align 8, !tbaa !11
  %133 = call i64 @MakeUncompressedStream(ptr noundef %130, i64 noundef %131, ptr noundef %132)
  %134 = load ptr, ptr %14, align 8, !tbaa !11
  store i64 %133, ptr %134, align 8, !tbaa !9
  store i32 1, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %136

135:                                              ; preds = %125
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %136

136:                                              ; preds = %135, %129, %124, %118, %76, %70, %42, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  %137 = load i32, ptr %8, align 4
  ret i32 %137
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @brotli_min_int(i32 noundef, i32 noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @brotli_max_int(i32 noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @BrotliEncoderCompressStream(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @BrotliEncoderIsFinished(ptr noundef) #0

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

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


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

; Function Attrs: nounwind uwtable
declare dso_local i32 @BrotliEncoderSetParameter(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @BrotliEncoderCreateInstance(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @BrotliEncoderDestroyInstance(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @BrotliEncoderMaxCompressedSize(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @BrotliEncoderCompress(i32 noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = load i64, ptr %5, align 8, !tbaa !5
  %14 = freeze i64 %13
  %15 = tail call i64 @BrotliEncoderMaxCompressedSize(i64 noundef %3)
  %16 = icmp eq i64 %14, 0
  br i1 %16, label %.critedge, label %17

17:                                               ; preds = %7
  %18 = icmp eq i64 %3, 0
  br i1 %18, label %19, label %20

19:                                               ; preds = %17
  store i64 1, ptr %5, align 8, !tbaa !5
  store i8 6, ptr %6, align 1, !tbaa !9
  br label %.critedge

20:                                               ; preds = %17
  %21 = icmp eq i32 %0, 10
  br i1 %21, label %22, label %30

22:                                               ; preds = %20
  %23 = tail call i32 @brotli_max_int(i32 noundef 16, i32 noundef %1)
  %24 = tail call i32 @brotli_min_int(i32 noundef 24, i32 noundef %23)
  %25 = tail call i32 @BrotliCompressBufferQuality10(i32 noundef %24, i64 noundef %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6)
  %.not63 = icmp eq i32 %25, 0
  br i1 %.not63, label %47, label %26

26:                                               ; preds = %22
  %.not64 = icmp eq i64 %15, 0
  br i1 %.not64, label %.critedge, label %27

27:                                               ; preds = %26
  %28 = load i64, ptr %5, align 8, !tbaa !5
  %29 = icmp ugt i64 %28, %15
  br i1 %29, label %47, label %.critedge

30:                                               ; preds = %20
  %31 = tail call ptr @BrotliEncoderCreateInstance(ptr noundef null, ptr noundef null, ptr noundef null)
  %.not = icmp eq ptr %31, null
  br i1 %.not, label %.critedge, label %32

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  store i64 %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  store ptr %4, ptr %9, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  %33 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %33, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  store ptr %6, ptr %11, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  store i64 0, ptr %12, align 8, !tbaa !5
  %34 = tail call i32 @BrotliEncoderSetParameter(ptr noundef nonnull %31, i32 noundef 1, i32 noundef %0)
  %35 = tail call i32 @BrotliEncoderSetParameter(ptr noundef nonnull %31, i32 noundef 2, i32 noundef %1)
  %36 = tail call i32 @BrotliEncoderSetParameter(ptr noundef nonnull %31, i32 noundef 0, i32 noundef %2)
  %37 = trunc i64 %3 to i32
  %38 = tail call i32 @BrotliEncoderSetParameter(ptr noundef nonnull %31, i32 noundef 5, i32 noundef %37)
  %39 = call i32 @BrotliEncoderCompressStream(ptr noundef nonnull %31, i32 noundef 2, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12)
  %40 = call i32 @BrotliEncoderIsFinished(ptr noundef nonnull %31)
  %.not60 = icmp eq i32 %40, 0
  %41 = load i64, ptr %12, align 8, !tbaa !5
  store i64 %41, ptr %5, align 8, !tbaa !5
  call void @BrotliEncoderDestroyInstance(ptr noundef nonnull %31)
  %.not6169 = icmp eq i32 %39, 0
  %.not61 = select i1 %.not60, i1 true, i1 %.not6169
  br i1 %.not61, label %46, label %42

42:                                               ; preds = %32
  %.not62 = icmp eq i64 %15, 0
  br i1 %.not62, label %.critedge68, label %43

43:                                               ; preds = %42
  %44 = load i64, ptr %5, align 8, !tbaa !5
  %45 = icmp ugt i64 %44, %15
  br i1 %45, label %46, label %.critedge68

.critedge68:                                      ; preds = %43, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  br label %.critedge

46:                                               ; preds = %32, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  br label %47

47:                                               ; preds = %46, %27, %22
  store i64 0, ptr %5, align 8, !tbaa !5
  %48 = add i64 %15, -1
  %or.cond.not = icmp ult i64 %48, %14
  br i1 %or.cond.not, label %49, label %.critedge

49:                                               ; preds = %47
  %50 = call i64 @MakeUncompressedStream(ptr noundef %4, i64 noundef %3, ptr noundef %6)
  store i64 %50, ptr %5, align 8, !tbaa !5
  br label %.critedge

.critedge:                                        ; preds = %26, %27, %47, %.critedge68, %30, %7, %49, %19
  %.2 = phi i32 [ 1, %19 ], [ 1, %49 ], [ 0, %7 ], [ 0, %30 ], [ 1, %.critedge68 ], [ 0, %47 ], [ 1, %27 ], [ 1, %26 ]
  ret i32 %.2
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @brotli_min_int(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @brotli_max_int(i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @BrotliEncoderCompressStream(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @BrotliEncoderIsFinished(ptr noundef) local_unnamed_addr #0

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass