; LLVM IR from libxsmm/libxsmm :: src (libxsmm_hash)

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

@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__.internal_crc32 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @internal_crc32_u32(i32 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; 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 i32 @internal_crc32_u64(i32 noundef, ptr noundef, ...) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @internal_crc32(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i64 %2, ptr %6, align 8, !tbaa !11
  %15 = load ptr, ptr %5, align 8, !tbaa !9
  %16 = icmp ne ptr null, %15
  br i1 %16, label %20, label %17

17:                                               ; preds = %3
  %18 = load i64, ptr %6, align 8, !tbaa !11
  %19 = icmp eq i64 0, %18
  br i1 %19, label %20, label %21

20:                                               ; preds = %17, %3
  br label %22

21:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 287, ptr noundef @__PRETTY_FUNCTION__.internal_crc32) #4
  unreachable

22:                                               ; preds = %20
  br label %23

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  store ptr %24, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %25 = load ptr, ptr %7, align 8, !tbaa !9
  %26 = load i64, ptr %6, align 8, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %25, i64 %26
  store ptr %27, ptr %8, align 8, !tbaa !9
  %28 = load ptr, ptr %5, align 8, !tbaa !9
  %29 = ptrtoint ptr %28 to i64
  %30 = and i64 %29, 7
  %31 = icmp eq i64 0, %30
  br i1 %31, label %32, label %124

32:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !9
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = ptrtoint ptr %34 to i64
  %36 = add i64 %35, 7
  %37 = and i64 %36, -8
  %38 = load ptr, ptr %7, align 8, !tbaa !9
  %39 = ptrtoint ptr %38 to i64
  %40 = sub i64 %37, %39
  %41 = udiv i64 %40, 1
  %42 = getelementptr inbounds i8, ptr %33, i64 %41
  store ptr %42, ptr %9, align 8, !tbaa !9
  %43 = load i64, ptr %6, align 8, !tbaa !11
  %44 = load ptr, ptr %8, align 8, !tbaa !9
  %45 = load ptr, ptr %9, align 8, !tbaa !9
  %46 = ptrtoint ptr %44 to i64
  %47 = ptrtoint ptr %45 to i64
  %48 = sub i64 %46, %47
  %49 = icmp ugt i64 %43, %48
  br i1 %49, label %50, label %116

50:                                               ; preds = %32
  br label %51

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %52 = load ptr, ptr %7, align 8, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %52, i64 4
  store ptr %53, ptr %10, align 8, !tbaa !9
  %54 = load ptr, ptr %10, align 8, !tbaa !9
  %55 = load ptr, ptr %9, align 8, !tbaa !9
  %56 = icmp ule ptr %54, %55
  br i1 %56, label %57, label %70

57:                                               ; preds = %51
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = icmp ne ptr null, %58
  br i1 %59, label %63, label %60

60:                                               ; preds = %57
  %61 = load ptr, ptr %9, align 8, !tbaa !9
  %62 = icmp eq ptr null, %61
  br i1 %62, label %63, label %64

63:                                               ; preds = %60, %57
  br label %65

64:                                               ; preds = %60
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 288, ptr noundef @__PRETTY_FUNCTION__.internal_crc32) #4
  unreachable

65:                                               ; preds = %63
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = load ptr, ptr %7, align 8, !tbaa !9
  %68 = call i32 (i32, ptr, ...) @internal_crc32_u32(i32 noundef %66, ptr noundef %67)
  store i32 %68, ptr %4, align 4, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %69, ptr %7, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %65, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %74 = load ptr, ptr %7, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %74, i64 2
  store ptr %75, ptr %11, align 8, !tbaa !9
  %76 = load ptr, ptr %11, align 8, !tbaa !9
  %77 = load ptr, ptr %9, align 8, !tbaa !9
  %78 = icmp ule ptr %76, %77
  br i1 %78, label %79, label %92

79:                                               ; preds = %73
  %80 = load ptr, ptr %7, align 8, !tbaa !9
  %81 = icmp ne ptr null, %80
  br i1 %81, label %85, label %82

82:                                               ; preds = %79
  %83 = load ptr, ptr %9, align 8, !tbaa !9
  %84 = icmp eq ptr null, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %82, %79
  br label %87

86:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 288, ptr noundef @__PRETTY_FUNCTION__.internal_crc32) #4
  unreachable

87:                                               ; preds = %85
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = load ptr, ptr %7, align 8, !tbaa !9
  %90 = call i32 (i32, ptr, ...) @internal_crc32_u16(i32 noundef %88, ptr noundef %89)
  store i32 %90, ptr %4, align 4, !tbaa !5
  %91 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %91, ptr %7, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %87, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr %7, align 8, !tbaa !9
  %97 = load ptr, ptr %9, align 8, !tbaa !9
  %98 = icmp ult ptr %96, %97
  br i1 %98, label %99, label %113

99:                                               ; preds = %95
  %100 = load ptr, ptr %7, align 8, !tbaa !9
  %101 = icmp ne ptr null, %100
  br i1 %101, label %105, label %102

102:                                              ; preds = %99
  %103 = load ptr, ptr %9, align 8, !tbaa !9
  %104 = icmp eq ptr null, %103
  br i1 %104, label %105, label %106

105:                                              ; preds = %102, %99
  br label %107

106:                                              ; preds = %102
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 288, ptr noundef @__PRETTY_FUNCTION__.internal_crc32) #4
  unreachable

107:                                              ; preds = %105
  %108 = load i32, ptr %4, align 4, !tbaa !5
  %109 = load ptr, ptr %7, align 8, !tbaa !9
  %110 = call i32 (i32, ptr, ...) @internal_crc32_u8(i32 noundef %108, ptr noundef %109)
  store i32 %110, ptr %4, align 4, !tbaa !5
  %111 = load ptr, ptr %7, align 8, !tbaa !9
  %112 = getelementptr inbounds i8, ptr %111, i32 1
  store ptr %112, ptr %7, align 8, !tbaa !9
  br label %113

113:                                              ; preds = %107, %95
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115, %32
  %117 = load ptr, ptr %7, align 8, !tbaa !9
  %118 = ptrtoint ptr %117 to i64
  %119 = urem i64 %118, 8
  %120 = icmp eq i64 0, %119
  br i1 %120, label %121, label %122

121:                                              ; preds = %116
  br label %123

122:                                              ; preds = %116
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 288, ptr noundef @__PRETTY_FUNCTION__.internal_crc32) #4
  unreachable

123:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %124

124:                                              ; preds = %123, %23
  br label %125

125:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %126 = load ptr, ptr %8, align 8, !tbaa !9
  %127 = icmp ne ptr null, %126
  br i1 %127, label %128, label %131

128:                                              ; preds = %125
  %129 = load ptr, ptr %8, align 8, !tbaa !9
  %130 = getelementptr inbounds i8, ptr %129, i64 -7
  br label %132

131:                                              ; preds = %125
  br label %132

132:                                              ; preds = %131, %128
  %133 = phi ptr [ %130, %128 ], [ null, %131 ]
  store ptr %133, ptr %12, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %150, %132
  %135 = load ptr, ptr %7, align 8, !tbaa !9
  %136 = load ptr, ptr %12, align 8, !tbaa !9
  %137 = icmp ult ptr %135, %136
  br i1 %137, label %138, label %153

138:                                              ; preds = %134
  %139 = load ptr, ptr %7, align 8, !tbaa !9
  %140 = icmp ne ptr null, %139
  br i1 %140, label %144, label %141

141:                                              ; preds = %138
  %142 = load ptr, ptr %8, align 8, !tbaa !9
  %143 = icmp eq ptr null, %142
  br i1 %143, label %144, label %145

144:                                              ; preds = %141, %138
  br label %146

145:                                              ; preds = %141
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 288, ptr noundef @__PRETTY_FUNCTION__.internal_crc32) #4
  unreachable

146:                                              ; preds = %144
  %147 = load i32, ptr %4, align 4, !tbaa !5
  %148 = load ptr, ptr %7, align 8, !tbaa !9
  %149 = call i32 (i32, ptr, ...) @internal_crc32_u64(i32 noundef %147, ptr noundef %148)
  store i32 %149, ptr %4, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %146
  %151 = load ptr, ptr %7, align 8, !tbaa !9
  %152 = getelementptr inbounds i8, ptr %151, i64 8
  store ptr %152, ptr %7, align 8, !tbaa !9
  br label %134, !llvm.loop !13

153:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %157 = load ptr, ptr %7, align 8, !tbaa !9
  %158 = getelementptr inbounds i8, ptr %157, i64 4
  store ptr %158, ptr %13, align 8, !tbaa !9
  %159 = load ptr, ptr %13, align 8, !tbaa !9
  %160 = load ptr, ptr %8, align 8, !tbaa !9
  %161 = icmp ule ptr %159, %160
  br i1 %161, label %162, label %175

162:                                              ; preds = %156
  %163 = load ptr, ptr %7, align 8, !tbaa !9
  %164 = icmp ne ptr null, %163
  br i1 %164, label %168, label %165

165:                                              ; preds = %162
  %166 = load ptr, ptr %8, align 8, !tbaa !9
  %167 = icmp eq ptr null, %166
  br i1 %167, label %168, label %169

168:                                              ; preds = %165, %162
  br label %170

169:                                              ; preds = %165
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 288, ptr noundef @__PRETTY_FUNCTION__.internal_crc32) #4
  unreachable

170:                                              ; preds = %168
  %171 = load i32, ptr %4, align 4, !tbaa !5
  %172 = load ptr, ptr %7, align 8, !tbaa !9
  %173 = call i32 (i32, ptr, ...) @internal_crc32_u32(i32 noundef %171, ptr noundef %172)
  store i32 %173, ptr %4, align 4, !tbaa !5
  %174 = load ptr, ptr %13, align 8, !tbaa !9
  store ptr %174, ptr %7, align 8, !tbaa !9
  br label %175

175:                                              ; preds = %170, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %176

176:                                              ; preds = %175
  br label %177

177:                                              ; preds = %176
  br label %178

178:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %179 = load ptr, ptr %7, align 8, !tbaa !9
  %180 = getelementptr inbounds i8, ptr %179, i64 2
  store ptr %180, ptr %14, align 8, !tbaa !9
  %181 = load ptr, ptr %14, align 8, !tbaa !9
  %182 = load ptr, ptr %8, align 8, !tbaa !9
  %183 = icmp ule ptr %181, %182
  br i1 %183, label %184, label %197

184:                                              ; preds = %178
  %185 = load ptr, ptr %7, align 8, !tbaa !9
  %186 = icmp ne ptr null, %185
  br i1 %186, label %190, label %187

187:                                              ; preds = %184
  %188 = load ptr, ptr %8, align 8, !tbaa !9
  %189 = icmp eq ptr null, %188
  br i1 %189, label %190, label %191

190:                                              ; preds = %187, %184
  br label %192

191:                                              ; preds = %187
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 288, ptr noundef @__PRETTY_FUNCTION__.internal_crc32) #4
  unreachable

192:                                              ; preds = %190
  %193 = load i32, ptr %4, align 4, !tbaa !5
  %194 = load ptr, ptr %7, align 8, !tbaa !9
  %195 = call i32 (i32, ptr, ...) @internal_crc32_u16(i32 noundef %193, ptr noundef %194)
  store i32 %195, ptr %4, align 4, !tbaa !5
  %196 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %196, ptr %7, align 8, !tbaa !9
  br label %197

197:                                              ; preds = %192, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198
  %200 = load ptr, ptr %7, align 8, !tbaa !9
  %201 = load ptr, ptr %8, align 8, !tbaa !9
  %202 = icmp eq ptr %200, %201
  br i1 %202, label %203, label %205

203:                                              ; preds = %199
  %204 = load i32, ptr %4, align 4, !tbaa !5
  br label %209

205:                                              ; preds = %199
  %206 = load i32, ptr %4, align 4, !tbaa !5
  %207 = load ptr, ptr %7, align 8, !tbaa !9
  %208 = call i32 (i32, ptr, ...) @internal_crc32_u8(i32 noundef %206, ptr noundef %207)
  br label %209

209:                                              ; preds = %205, %203
  %210 = phi i32 [ %204, %203 ], [ %208, %205 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %211

211:                                              ; preds = %209
  ret i32 %210
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @internal_crc32_u16(i32 noundef, ptr noundef, ...) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @internal_crc32_u8(i32 noundef, ptr noundef, ...) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "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 = { inlinehint 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 = { noreturn nounwind }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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"

@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__.internal_crc32 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @internal_crc32(i32 noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = icmp ne ptr %1, null
  %5 = icmp eq i64 %2, 0
  %or.cond = or i1 %4, %5
  br i1 %or.cond, label %7, label %6

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 287, ptr noundef nonnull @__PRETTY_FUNCTION__.internal_crc32) #3
  unreachable

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %1, i64 %2
  %9 = getelementptr inbounds i8, ptr %8, i64 -7
  %10 = icmp ugt ptr %9, %1
  %11 = select i1 %4, i1 %10, i1 false
  br i1 %11, label %.lr.ph.split.split, label %._crit_edge

.lr.ph.split.split:                               ; preds = %7, %.lr.ph.split.split
  %.499 = phi i32 [ %12, %.lr.ph.split.split ], [ %0, %7 ]
  %.48298 = phi ptr [ %13, %.lr.ph.split.split ], [ %1, %7 ]
  %12 = tail call i32 (i32, ptr, ...) @internal_crc32_u64(i32 noundef %.499, ptr noundef nonnull %.48298)
  %13 = getelementptr inbounds i8, ptr %.48298, i64 8
  %14 = icmp ugt ptr %9, %13
  br i1 %14, label %.lr.ph.split.split, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph.split.split, %7
  %.482.lcssa = phi ptr [ %1, %7 ], [ %13, %.lr.ph.split.split ]
  %.4.lcssa = phi i32 [ %0, %7 ], [ %12, %.lr.ph.split.split ]
  %15 = getelementptr inbounds i8, ptr %.482.lcssa, i64 4
  %.not93 = icmp ugt ptr %15, %8
  br i1 %.not93, label %22, label %16

16:                                               ; preds = %._crit_edge
  %17 = icmp ne ptr %.482.lcssa, null
  %18 = icmp eq ptr %1, null
  %or.cond11 = or i1 %18, %17
  br i1 %or.cond11, label %20, label %19

19:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 288, ptr noundef nonnull @__PRETTY_FUNCTION__.internal_crc32) #3
  unreachable

20:                                               ; preds = %16
  %21 = tail call i32 (i32, ptr, ...) @internal_crc32_u32(i32 noundef %.4.lcssa, ptr noundef %.482.lcssa)
  br label %22

22:                                               ; preds = %20, %._crit_edge
  %.583 = phi ptr [ %15, %20 ], [ %.482.lcssa, %._crit_edge ]
  %.5 = phi i32 [ %21, %20 ], [ %.4.lcssa, %._crit_edge ]
  %23 = getelementptr inbounds i8, ptr %.583, i64 2
  %.not94 = icmp ugt ptr %23, %8
  br i1 %.not94, label %30, label %24

24:                                               ; preds = %22
  %25 = icmp ne ptr %.583, null
  %26 = icmp eq ptr %1, null
  %or.cond13 = or i1 %26, %25
  br i1 %or.cond13, label %28, label %27

27:                                               ; preds = %24
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 288, ptr noundef nonnull @__PRETTY_FUNCTION__.internal_crc32) #3
  unreachable

28:                                               ; preds = %24
  %29 = tail call i32 (i32, ptr, ...) @internal_crc32_u16(i32 noundef %.5, ptr noundef %.583)
  br label %30

30:                                               ; preds = %28, %22
  %.684 = phi ptr [ %23, %28 ], [ %.583, %22 ]
  %.6 = phi i32 [ %29, %28 ], [ %.5, %22 ]
  %31 = icmp eq ptr %.684, %8
  br i1 %31, label %34, label %32

32:                                               ; preds = %30
  %33 = tail call i32 (i32, ptr, ...) @internal_crc32_u8(i32 noundef %.6, ptr noundef %.684)
  br label %34

34:                                               ; preds = %30, %32
  %35 = phi i32 [ %33, %32 ], [ %.6, %30 ]
  ret i32 %35
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @internal_crc32_u16(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @internal_crc32_u8(i32 noundef, ptr noundef, ...) local_unnamed_addr #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 = { noreturn nounwind "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 = { inlinehint 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 = { noreturn 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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