; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/modules/juce_core/zip/zlib (deflate)

; 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.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.internal_state = type { ptr, i32, ptr, i64, ptr, i32, i32, ptr, i32, i8, i32, i32, i32, i32, ptr, i64, ptr, ptr, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [573 x %struct.ct_data_s], [61 x %struct.ct_data_s], [39 x %struct.ct_data_s], %struct.tree_desc_s, %struct.tree_desc_s, %struct.tree_desc_s, [16 x i16], [573 x i32], i32, i32, [573 x i8], ptr, i32, i32, ptr, i64, i64, i32, i32, i16, i32 }
%struct.ct_data_s = type { %union.anon, %union.anon.0 }
%union.anon = type { i16 }
%union.anon.0 = type { i16 }
%struct.tree_desc_s = type { ptr, i32, ptr }

; 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: nounwind uwtable
define dso_local i32 @z_deflateSetDictionary(ptr noundef %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %13 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %13, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %45, label %16

16:                                               ; preds = %3
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.z_stream_s, ptr %17, i32 0, i32 7
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = icmp eq ptr %19, null
  br i1 %20, label %45, label %21

21:                                               ; preds = %16
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %45, label %24

24:                                               ; preds = %21
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.z_stream_s, ptr %25, i32 0, i32 7
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds %struct.internal_state, ptr %27, i32 0, i32 6
  %29 = load i32, ptr %28, align 4, !tbaa !14
  %30 = icmp eq i32 %29, 2
  br i1 %30, label %45, label %31

31:                                               ; preds = %24
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.z_stream_s, ptr %32, i32 0, i32 7
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds %struct.internal_state, ptr %34, i32 0, i32 6
  %36 = load i32, ptr %35, align 4, !tbaa !14
  %37 = icmp eq i32 %36, 1
  br i1 %37, label %38, label %46

38:                                               ; preds = %31
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.z_stream_s, ptr %39, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds %struct.internal_state, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !18
  %44 = icmp ne i32 %43, 42
  br i1 %44, label %45, label %46

45:                                               ; preds = %38, %24, %21, %16, %3
  store i32 -2, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %191

46:                                               ; preds = %38, %31
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.z_stream_s, ptr %47, i32 0, i32 7
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  store ptr %49, ptr %8, align 8, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.internal_state, ptr %50, i32 0, i32 6
  %52 = load i32, ptr %51, align 4, !tbaa !14
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %63

54:                                               ; preds = %46
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.z_stream_s, ptr %55, i32 0, i32 12
  %57 = load i64, ptr %56, align 8, !tbaa !19
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = call i64 @z_adler32(i64 noundef %57, ptr noundef %58, i32 noundef %59)
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.z_stream_s, ptr %61, i32 0, i32 12
  store i64 %60, ptr %62, align 8, !tbaa !19
  br label %63

63:                                               ; preds = %54, %46
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = icmp ult i32 %64, 3
  br i1 %65, label %66, label %67

66:                                               ; preds = %63
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %191

67:                                               ; preds = %63
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.internal_state, ptr %69, i32 0, i32 11
  %71 = load i32, ptr %70, align 4, !tbaa !20
  %72 = sub i32 %71, 262
  %73 = icmp ugt i32 %68, %72
  br i1 %73, label %74, label %85

74:                                               ; preds = %67
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.internal_state, ptr %75, i32 0, i32 11
  %77 = load i32, ptr %76, align 4, !tbaa !20
  %78 = sub i32 %77, 262
  store i32 %78, ptr %9, align 4, !tbaa !9
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = sub i32 %79, %80
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = zext i32 %81 to i64
  %84 = getelementptr inbounds i8, ptr %82, i64 %83
  store ptr %84, ptr %6, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %74, %67
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.internal_state, ptr %86, i32 0, i32 14
  %88 = load ptr, ptr %87, align 8, !tbaa !21
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %88, ptr align 1 %89, i64 %91, i1 false)
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.internal_state, ptr %93, i32 0, i32 27
  store i32 %92, ptr %94, align 4, !tbaa !22
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.internal_state, ptr %97, i32 0, i32 23
  store i64 %96, ptr %98, align 8, !tbaa !23
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.internal_state, ptr %99, i32 0, i32 14
  %101 = load ptr, ptr %100, align 8, !tbaa !21
  %102 = getelementptr inbounds i8, ptr %101, i64 0
  %103 = load i8, ptr %102, align 1, !tbaa !24
  %104 = zext i8 %103 to i32
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.internal_state, ptr %105, i32 0, i32 18
  store i32 %104, ptr %106, align 8, !tbaa !25
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.internal_state, ptr %107, i32 0, i32 18
  %109 = load i32, ptr %108, align 8, !tbaa !25
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.internal_state, ptr %110, i32 0, i32 22
  %112 = load i32, ptr %111, align 8, !tbaa !26
  %113 = shl i32 %109, %112
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.internal_state, ptr %114, i32 0, i32 14
  %116 = load ptr, ptr %115, align 8, !tbaa !21
  %117 = getelementptr inbounds i8, ptr %116, i64 1
  %118 = load i8, ptr %117, align 1, !tbaa !24
  %119 = zext i8 %118 to i32
  %120 = xor i32 %113, %119
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.internal_state, ptr %121, i32 0, i32 21
  %123 = load i32, ptr %122, align 4, !tbaa !27
  %124 = and i32 %120, %123
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.internal_state, ptr %125, i32 0, i32 18
  store i32 %124, ptr %126, align 8, !tbaa !25
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %186, %85
  %128 = load i32, ptr %10, align 4, !tbaa !9
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = sub i32 %129, 3
  %131 = icmp ule i32 %128, %130
  br i1 %131, label %132, label %189

132:                                              ; preds = %127
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.internal_state, ptr %133, i32 0, i32 18
  %135 = load i32, ptr %134, align 8, !tbaa !25
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.internal_state, ptr %136, i32 0, i32 22
  %138 = load i32, ptr %137, align 8, !tbaa !26
  %139 = shl i32 %135, %138
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.internal_state, ptr %140, i32 0, i32 14
  %142 = load ptr, ptr %141, align 8, !tbaa !21
  %143 = load i32, ptr %10, align 4, !tbaa !9
  %144 = add i32 %143, 2
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds i8, ptr %142, i64 %145
  %147 = load i8, ptr %146, align 1, !tbaa !24
  %148 = zext i8 %147 to i32
  %149 = xor i32 %139, %148
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.internal_state, ptr %150, i32 0, i32 21
  %152 = load i32, ptr %151, align 4, !tbaa !27
  %153 = and i32 %149, %152
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.internal_state, ptr %154, i32 0, i32 18
  store i32 %153, ptr %155, align 8, !tbaa !25
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.internal_state, ptr %156, i32 0, i32 17
  %158 = load ptr, ptr %157, align 8, !tbaa !28
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.internal_state, ptr %159, i32 0, i32 18
  %161 = load i32, ptr %160, align 8, !tbaa !25
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds i16, ptr %158, i64 %162
  %164 = load i16, ptr %163, align 2, !tbaa !29
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.internal_state, ptr %165, i32 0, i32 16
  %167 = load ptr, ptr %166, align 8, !tbaa !30
  %168 = load i32, ptr %10, align 4, !tbaa !9
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.internal_state, ptr %169, i32 0, i32 13
  %171 = load i32, ptr %170, align 4, !tbaa !31
  %172 = and i32 %168, %171
  %173 = zext i32 %172 to i64
  %174 = getelementptr inbounds i16, ptr %167, i64 %173
  store i16 %164, ptr %174, align 2, !tbaa !29
  %175 = zext i16 %164 to i32
  store i32 %175, ptr %11, align 4, !tbaa !9
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = trunc i32 %176 to i16
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.internal_state, ptr %178, i32 0, i32 17
  %180 = load ptr, ptr %179, align 8, !tbaa !28
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.internal_state, ptr %181, i32 0, i32 18
  %183 = load i32, ptr %182, align 8, !tbaa !25
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds i16, ptr %180, i64 %184
  store i16 %177, ptr %185, align 2, !tbaa !29
  br label %186

186:                                              ; preds = %132
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = add i32 %187, 1
  store i32 %188, ptr %10, align 4, !tbaa !9
  br label %127, !llvm.loop !32

189:                                              ; preds = %127
  %190 = load i32, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %191

191:                                              ; preds = %189, %66, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %192 = load i32, ptr %4, align 4
  ret i32 %192
}

declare i64 @z_adler32(i64 noundef, ptr noundef, i32 noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 56}
!12 = !{!"z_stream_s", !6, i64 0, !10, i64 8, !13, i64 16, !6, i64 24, !10, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !13, i64 96, !13, i64 104}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !10, i64 44}
!15 = !{!"internal_state", !6, i64 0, !10, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !6, i64 48, !10, i64 56, !7, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !6, i64 80, !13, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !13, i64 136, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !7, i64 196, !7, i64 2488, !7, i64 2732, !16, i64 2888, !16, i64 2912, !16, i64 2936, !7, i64 2960, !7, i64 2992, !10, i64 5284, !10, i64 5288, !7, i64 5292, !6, i64 5872, !10, i64 5880, !10, i64 5884, !6, i64 5888, !13, i64 5896, !13, i64 5904, !10, i64 5912, !10, i64 5916, !17, i64 5920, !10, i64 5924}
!16 = !{!"tree_desc_s", !6, i64 0, !10, i64 8, !6, i64 16}
!17 = !{!"short", !7, i64 0}
!18 = !{!15, !10, i64 8}
!19 = !{!12, !13, i64 96}
!20 = !{!15, !10, i64 68}
!21 = !{!15, !6, i64 80}
!22 = !{!15, !10, i64 156}
!23 = !{!15, !13, i64 136}
!24 = !{!7, !7, i64 0}
!25 = !{!15, !10, i64 112}
!26 = !{!15, !10, i64 128}
!27 = !{!15, !10, i64 124}
!28 = !{!15, !6, i64 104}
!29 = !{!17, !17, i64 0}
!30 = !{!15, !6, i64 96}
!31 = !{!15, !10, i64 76}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


; 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
define dso_local range(i32 -2, 1) i32 @z_deflateSetDictionary(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %.loopexit, label %5

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 56
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  %9 = icmp eq ptr %1, null
  %or.cond = or i1 %9, %8
  br i1 %or.cond, label %.loopexit, label %10

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %7, i64 44
  %12 = load i32, ptr %11, align 4, !tbaa !12
  switch i32 %12, label %.thread [
    i32 2, label %.loopexit
    i32 1, label %13
    i32 0, label %19
  ]

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %7, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !16
  %.not = icmp eq i32 %15, 42
  br i1 %.not, label %.thread, label %.loopexit

.thread:                                          ; preds = %10, %13
  %16 = getelementptr inbounds i8, ptr %0, i64 96
  %17 = load i64, ptr %16, align 8, !tbaa !17
  %18 = tail call i64 @z_adler32(i64 noundef %17, ptr noundef nonnull %1, i32 noundef %2) #4
  store i64 %18, ptr %16, align 8, !tbaa !17
  br label %19

19:                                               ; preds = %10, %.thread
  %20 = icmp ult i32 %2, 3
  br i1 %20, label %.loopexit, label %21

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %7, i64 68
  %23 = load i32, ptr %22, align 4, !tbaa !18
  %24 = add i32 %23, -262
  %narrow = tail call i32 @llvm.usub.sat.i32(i32 %2, i32 %24)
  %.056.idx = zext i32 %narrow to i64
  %.056 = getelementptr inbounds i8, ptr %1, i64 %.056.idx
  %.054 = tail call i32 @llvm.umin.i32(i32 %24, i32 %2)
  %25 = getelementptr inbounds i8, ptr %7, i64 80
  %26 = load ptr, ptr %25, align 8, !tbaa !19
  %27 = zext i32 %.054 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %26, ptr align 1 %.056, i64 %27, i1 false)
  %28 = getelementptr inbounds i8, ptr %7, i64 156
  store i32 %.054, ptr %28, align 4, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %7, i64 136
  store i64 %27, ptr %29, align 8, !tbaa !21
  %30 = load ptr, ptr %25, align 8, !tbaa !19
  %31 = load i8, ptr %30, align 1, !tbaa !22
  %32 = zext i8 %31 to i32
  %33 = getelementptr inbounds i8, ptr %7, i64 112
  store i32 %32, ptr %33, align 8, !tbaa !23
  %34 = getelementptr inbounds i8, ptr %7, i64 128
  %35 = load i32, ptr %34, align 8, !tbaa !24
  %36 = shl i32 %32, %35
  %37 = getelementptr inbounds i8, ptr %30, i64 1
  %38 = load i8, ptr %37, align 1, !tbaa !22
  %39 = zext i8 %38 to i32
  %40 = xor i32 %36, %39
  %41 = getelementptr inbounds i8, ptr %7, i64 124
  %42 = load i32, ptr %41, align 4, !tbaa !25
  %43 = and i32 %40, %42
  store i32 %43, ptr %33, align 8, !tbaa !23
  %44 = getelementptr inbounds i8, ptr %7, i64 104
  %45 = load ptr, ptr %44, align 8, !tbaa !26
  %46 = getelementptr inbounds i8, ptr %7, i64 96
  %47 = load ptr, ptr %46, align 8, !tbaa !27
  %48 = getelementptr inbounds i8, ptr %7, i64 76
  %49 = load i32, ptr %48, align 4, !tbaa !28
  %50 = add i32 %.054, -2
  %umax = tail call i32 @llvm.umax.i32(i32 %50, i32 1)
  %wide.trip.count = zext i32 %umax to i64
  br label %51

51:                                               ; preds = %21, %51
  %indvars.iv = phi i64 [ 0, %21 ], [ %indvars.iv.next, %51 ]
  %52 = phi i32 [ %43, %21 ], [ %61, %51 ]
  %53 = shl i32 %52, %35
  %54 = trunc nuw i64 %indvars.iv to i32
  %55 = add nuw i64 %indvars.iv, 2
  %56 = and i64 %55, 4294967295
  %57 = getelementptr inbounds i8, ptr %30, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !22
  %59 = zext i8 %58 to i32
  %60 = xor i32 %53, %59
  %61 = and i32 %60, %42
  store i32 %61, ptr %33, align 8, !tbaa !23
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds i16, ptr %45, i64 %62
  %64 = load i16, ptr %63, align 2, !tbaa !29
  %65 = and i32 %49, %54
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds i16, ptr %47, i64 %66
  store i16 %64, ptr %67, align 2, !tbaa !29
  %68 = trunc i64 %indvars.iv to i16
  store i16 %68, ptr %63, align 2, !tbaa !29
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond, label %.loopexit, label %51, !llvm.loop !30

.loopexit:                                        ; preds = %51, %10, %19, %3, %5, %13
  %.055 = phi i32 [ -2, %10 ], [ -2, %13 ], [ -2, %5 ], [ -2, %3 ], [ 0, %19 ], [ 0, %51 ]
  ret i32 %.055
}

declare i64 @z_adler32(i64 noundef, ptr noundef, i32 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.usub.sat.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #3

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 56}
!6 = !{!"z_stream_s", !7, i64 0, !10, i64 8, !11, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !10, i64 88, !11, i64 96, !11, i64 104}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !10, i64 44}
!13 = !{!"internal_state", !7, i64 0, !10, i64 8, !7, i64 16, !11, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !7, i64 48, !10, i64 56, !8, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !7, i64 80, !11, i64 88, !7, i64 96, !7, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !11, i64 136, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !8, i64 196, !8, i64 2488, !8, i64 2732, !14, i64 2888, !14, i64 2912, !14, i64 2936, !8, i64 2960, !8, i64 2992, !10, i64 5284, !10, i64 5288, !8, i64 5292, !7, i64 5872, !10, i64 5880, !10, i64 5884, !7, i64 5888, !11, i64 5896, !11, i64 5904, !10, i64 5912, !10, i64 5916, !15, i64 5920, !10, i64 5924}
!14 = !{!"tree_desc_s", !7, i64 0, !10, i64 8, !7, i64 16}
!15 = !{!"short", !8, i64 0}
!16 = !{!13, !10, i64 8}
!17 = !{!6, !11, i64 96}
!18 = !{!13, !10, i64 68}
!19 = !{!13, !7, i64 80}
!20 = !{!13, !10, i64 156}
!21 = !{!13, !11, i64 136}
!22 = !{!8, !8, i64 0}
!23 = !{!13, !10, i64 112}
!24 = !{!13, !10, i64 128}
!25 = !{!13, !10, i64 124}
!26 = !{!13, !7, i64 104}
!27 = !{!13, !7, i64 96}
!28 = !{!13, !10, i64 76}
!29 = !{!15, !15, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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