; LLVM IR from chdb-io/chdb :: contrib/libfarmhash/farmhash.ll (ZN10farmhashmk6Hash32EPKcm)

; 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: 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: mustprogress uwtable
define dso_local noundef i32 @_ZN10farmhashmk6Hash32EPKcm(ptr noundef %0, i64 noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %20 = load i64, ptr %5, align 8, !tbaa !9
  %21 = icmp ule i64 %20, 24
  br i1 %21, label %22, label %44

22:                                               ; preds = %2
  %23 = load i64, ptr %5, align 8, !tbaa !9
  %24 = icmp ule i64 %23, 12
  br i1 %24, label %25, label %38

25:                                               ; preds = %22
  %26 = load i64, ptr %5, align 8, !tbaa !9
  %27 = icmp ule i64 %26, 4
  br i1 %27, label %28, label %32

28:                                               ; preds = %25
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load i64, ptr %5, align 8, !tbaa !9
  %31 = call noundef i32 @_ZN10farmhashmkL13Hash32Len0to4EPKcmj(ptr noundef %29, i64 noundef %30, i32 noundef 0)
  br label %36

32:                                               ; preds = %25
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load i64, ptr %5, align 8, !tbaa !9
  %35 = call noundef i32 @_ZN10farmhashmkL14Hash32Len5to12EPKcmj(ptr noundef %33, i64 noundef %34, i32 noundef 0)
  br label %36

36:                                               ; preds = %32, %28
  %37 = phi i32 [ %31, %28 ], [ %35, %32 ]
  br label %42

38:                                               ; preds = %22
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load i64, ptr %5, align 8, !tbaa !9
  %41 = call noundef i32 @_ZN10farmhashmkL15Hash32Len13to24EPKcmj(ptr noundef %39, i64 noundef %40, i32 noundef 0)
  br label %42

42:                                               ; preds = %38, %36
  %43 = phi i32 [ %37, %36 ], [ %41, %38 ]
  store i32 %43, ptr %3, align 4
  br label %220

44:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %45 = load i64, ptr %5, align 8, !tbaa !9
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %47 = load i64, ptr %5, align 8, !tbaa !9
  %48 = mul i64 3432918353, %47
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %50 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %50, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load i64, ptr %5, align 8, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %51, i64 %52
  %54 = getelementptr inbounds i8, ptr %53, i64 -4
  %55 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %54)
  %56 = mul i32 %55, -862048943
  %57 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %56, i32 noundef 17)
  %58 = mul i32 %57, 461845907
  store i32 %58, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load i64, ptr %5, align 8, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %59, i64 %60
  %62 = getelementptr inbounds i8, ptr %61, i64 -8
  %63 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %62)
  %64 = mul i32 %63, -862048943
  %65 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %64, i32 noundef 17)
  %66 = mul i32 %65, 461845907
  store i32 %66, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = load i64, ptr %5, align 8, !tbaa !9
  %69 = getelementptr inbounds i8, ptr %67, i64 %68
  %70 = getelementptr inbounds i8, ptr %69, i64 -16
  %71 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %70)
  %72 = mul i32 %71, -862048943
  %73 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %72, i32 noundef 17)
  %74 = mul i32 %73, 461845907
  store i32 %74, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load i64, ptr %5, align 8, !tbaa !9
  %77 = getelementptr inbounds i8, ptr %75, i64 %76
  %78 = getelementptr inbounds i8, ptr %77, i64 -12
  %79 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %78)
  %80 = mul i32 %79, -862048943
  %81 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %80, i32 noundef 17)
  %82 = mul i32 %81, 461845907
  store i32 %82, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = load i64, ptr %5, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %83, i64 %84
  %86 = getelementptr inbounds i8, ptr %85, i64 -20
  %87 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %86)
  %88 = mul i32 %87, -862048943
  %89 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %88, i32 noundef 17)
  %90 = mul i32 %89, 461845907
  store i32 %90, ptr %13, align 4, !tbaa !11
  %91 = load i32, ptr %9, align 4, !tbaa !11
  %92 = load i32, ptr %6, align 4, !tbaa !11
  %93 = xor i32 %92, %91
  store i32 %93, ptr %6, align 4, !tbaa !11
  %94 = load i32, ptr %6, align 4, !tbaa !11
  %95 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %94, i32 noundef 19)
  store i32 %95, ptr %6, align 4, !tbaa !11
  %96 = load i32, ptr %6, align 4, !tbaa !11
  %97 = mul i32 %96, 5
  %98 = add i32 %97, -430675100
  store i32 %98, ptr %6, align 4, !tbaa !11
  %99 = load i32, ptr %11, align 4, !tbaa !11
  %100 = load i32, ptr %6, align 4, !tbaa !11
  %101 = xor i32 %100, %99
  store i32 %101, ptr %6, align 4, !tbaa !11
  %102 = load i32, ptr %6, align 4, !tbaa !11
  %103 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %102, i32 noundef 19)
  store i32 %103, ptr %6, align 4, !tbaa !11
  %104 = load i32, ptr %6, align 4, !tbaa !11
  %105 = mul i32 %104, 5
  %106 = add i32 %105, -430675100
  store i32 %106, ptr %6, align 4, !tbaa !11
  %107 = load i32, ptr %10, align 4, !tbaa !11
  %108 = load i32, ptr %7, align 4, !tbaa !11
  %109 = xor i32 %108, %107
  store i32 %109, ptr %7, align 4, !tbaa !11
  %110 = load i32, ptr %7, align 4, !tbaa !11
  %111 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %110, i32 noundef 19)
  store i32 %111, ptr %7, align 4, !tbaa !11
  %112 = load i32, ptr %7, align 4, !tbaa !11
  %113 = mul i32 %112, 5
  %114 = add i32 %113, -430675100
  store i32 %114, ptr %7, align 4, !tbaa !11
  %115 = load i32, ptr %12, align 4, !tbaa !11
  %116 = load i32, ptr %7, align 4, !tbaa !11
  %117 = xor i32 %116, %115
  store i32 %117, ptr %7, align 4, !tbaa !11
  %118 = load i32, ptr %7, align 4, !tbaa !11
  %119 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %118, i32 noundef 19)
  store i32 %119, ptr %7, align 4, !tbaa !11
  %120 = load i32, ptr %7, align 4, !tbaa !11
  %121 = mul i32 %120, 5
  %122 = add i32 %121, -430675100
  store i32 %122, ptr %7, align 4, !tbaa !11
  %123 = load i32, ptr %13, align 4, !tbaa !11
  %124 = load i32, ptr %8, align 4, !tbaa !11
  %125 = add i32 %124, %123
  store i32 %125, ptr %8, align 4, !tbaa !11
  %126 = load i32, ptr %8, align 4, !tbaa !11
  %127 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %126, i32 noundef 19)
  %128 = add i32 %127, 113
  store i32 %128, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %129 = load i64, ptr %5, align 8, !tbaa !9
  %130 = sub i64 %129, 1
  %131 = udiv i64 %130, 20
  store i64 %131, ptr %14, align 8, !tbaa !9
  br label %132

132:                                              ; preds = %182, %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %133)
  store i32 %134, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i64 4
  %137 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %136)
  store i32 %137, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %138, i64 8
  %140 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %139)
  store i32 %140, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds i8, ptr %141, i64 12
  %143 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %142)
  store i32 %143, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds i8, ptr %144, i64 16
  %146 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %145)
  store i32 %146, ptr %19, align 4, !tbaa !11
  %147 = load i32, ptr %15, align 4, !tbaa !11
  %148 = load i32, ptr %6, align 4, !tbaa !11
  %149 = add i32 %148, %147
  store i32 %149, ptr %6, align 4, !tbaa !11
  %150 = load i32, ptr %16, align 4, !tbaa !11
  %151 = load i32, ptr %7, align 4, !tbaa !11
  %152 = add i32 %151, %150
  store i32 %152, ptr %7, align 4, !tbaa !11
  %153 = load i32, ptr %17, align 4, !tbaa !11
  %154 = load i32, ptr %8, align 4, !tbaa !11
  %155 = add i32 %154, %153
  store i32 %155, ptr %8, align 4, !tbaa !11
  %156 = load i32, ptr %18, align 4, !tbaa !11
  %157 = load i32, ptr %6, align 4, !tbaa !11
  %158 = call noundef i32 @_ZN8farmhashL3MurEjj(i32 noundef %156, i32 noundef %157)
  %159 = load i32, ptr %19, align 4, !tbaa !11
  %160 = add i32 %158, %159
  store i32 %160, ptr %6, align 4, !tbaa !11
  %161 = load i32, ptr %17, align 4, !tbaa !11
  %162 = load i32, ptr %7, align 4, !tbaa !11
  %163 = call noundef i32 @_ZN8farmhashL3MurEjj(i32 noundef %161, i32 noundef %162)
  %164 = load i32, ptr %15, align 4, !tbaa !11
  %165 = add i32 %163, %164
  store i32 %165, ptr %7, align 4, !tbaa !11
  %166 = load i32, ptr %16, align 4, !tbaa !11
  %167 = load i32, ptr %19, align 4, !tbaa !11
  %168 = mul i32 %167, -862048943
  %169 = add i32 %166, %168
  %170 = load i32, ptr %8, align 4, !tbaa !11
  %171 = call noundef i32 @_ZN8farmhashL3MurEjj(i32 noundef %169, i32 noundef %170)
  %172 = load i32, ptr %18, align 4, !tbaa !11
  %173 = add i32 %171, %172
  store i32 %173, ptr %8, align 4, !tbaa !11
  %174 = load i32, ptr %7, align 4, !tbaa !11
  %175 = load i32, ptr %8, align 4, !tbaa !11
  %176 = add i32 %175, %174
  store i32 %176, ptr %8, align 4, !tbaa !11
  %177 = load i32, ptr %8, align 4, !tbaa !11
  %178 = load i32, ptr %7, align 4, !tbaa !11
  %179 = add i32 %178, %177
  store i32 %179, ptr %7, align 4, !tbaa !11
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds i8, ptr %180, i64 20
  store ptr %181, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %182

182:                                              ; preds = %132
  %183 = load i64, ptr %14, align 8, !tbaa !9
  %184 = add i64 %183, -1
  store i64 %184, ptr %14, align 8, !tbaa !9
  %185 = icmp ne i64 %184, 0
  br i1 %185, label %132, label %186, !llvm.loop !13

186:                                              ; preds = %182
  %187 = load i32, ptr %7, align 4, !tbaa !11
  %188 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %187, i32 noundef 11)
  %189 = mul i32 %188, -862048943
  store i32 %189, ptr %7, align 4, !tbaa !11
  %190 = load i32, ptr %7, align 4, !tbaa !11
  %191 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %190, i32 noundef 17)
  %192 = mul i32 %191, -862048943
  store i32 %192, ptr %7, align 4, !tbaa !11
  %193 = load i32, ptr %8, align 4, !tbaa !11
  %194 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %193, i32 noundef 11)
  %195 = mul i32 %194, -862048943
  store i32 %195, ptr %8, align 4, !tbaa !11
  %196 = load i32, ptr %8, align 4, !tbaa !11
  %197 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %196, i32 noundef 17)
  %198 = mul i32 %197, -862048943
  store i32 %198, ptr %8, align 4, !tbaa !11
  %199 = load i32, ptr %6, align 4, !tbaa !11
  %200 = load i32, ptr %7, align 4, !tbaa !11
  %201 = add i32 %199, %200
  %202 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %201, i32 noundef 19)
  store i32 %202, ptr %6, align 4, !tbaa !11
  %203 = load i32, ptr %6, align 4, !tbaa !11
  %204 = mul i32 %203, 5
  %205 = add i32 %204, -430675100
  store i32 %205, ptr %6, align 4, !tbaa !11
  %206 = load i32, ptr %6, align 4, !tbaa !11
  %207 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %206, i32 noundef 17)
  %208 = mul i32 %207, -862048943
  store i32 %208, ptr %6, align 4, !tbaa !11
  %209 = load i32, ptr %6, align 4, !tbaa !11
  %210 = load i32, ptr %8, align 4, !tbaa !11
  %211 = add i32 %209, %210
  %212 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %211, i32 noundef 19)
  store i32 %212, ptr %6, align 4, !tbaa !11
  %213 = load i32, ptr %6, align 4, !tbaa !11
  %214 = mul i32 %213, 5
  %215 = add i32 %214, -430675100
  store i32 %215, ptr %6, align 4, !tbaa !11
  %216 = load i32, ptr %6, align 4, !tbaa !11
  %217 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %216, i32 noundef 17)
  %218 = mul i32 %217, -862048943
  store i32 %218, ptr %6, align 4, !tbaa !11
  %219 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %219, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  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 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %220

220:                                              ; preds = %186, %42
  %221 = load i32, ptr %3, align 4
  ret i32 %221
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN10farmhashmkL13Hash32Len0to4EPKcmj(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN10farmhashmkL14Hash32Len5to12EPKcmj(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN10farmhashmkL15Hash32Len13to24EPKcmj(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN8farmhashL3MurEjj(i32 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !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"

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10farmhashmk6Hash32EPKcm(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = icmp ult i64 %1, 25
  br i1 %3, label %4, label %14

4:                                                ; preds = %2
  %5 = icmp ult i64 %1, 13
  br i1 %5, label %6, label %12

6:                                                ; preds = %4
  %7 = icmp ult i64 %1, 5
  br i1 %7, label %8, label %10

8:                                                ; preds = %6
  %9 = tail call noundef i32 @_ZN10farmhashmkL13Hash32Len0to4EPKcmj(ptr noundef %0, i64 noundef %1, i32 noundef 0)
  br label %109

10:                                               ; preds = %6
  %11 = tail call noundef i32 @_ZN10farmhashmkL14Hash32Len5to12EPKcmj(ptr noundef %0, i64 noundef %1, i32 noundef 0)
  br label %109

12:                                               ; preds = %4
  %13 = tail call noundef i32 @_ZN10farmhashmkL15Hash32Len13to24EPKcmj(ptr noundef %0, i64 noundef %1, i32 noundef 0)
  br label %109

14:                                               ; preds = %2
  %15 = trunc i64 %1 to i32
  %16 = mul i32 %15, -862048943
  %17 = getelementptr inbounds i8, ptr %0, i64 %1
  %18 = getelementptr inbounds i8, ptr %17, i64 -4
  %19 = tail call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %18)
  %20 = mul i32 %19, -862048943
  %21 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %20, i32 noundef 17)
  %22 = mul i32 %21, 461845907
  %23 = getelementptr inbounds i8, ptr %17, i64 -8
  %24 = tail call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %23)
  %25 = mul i32 %24, -862048943
  %26 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %25, i32 noundef 17)
  %27 = mul i32 %26, 461845907
  %28 = getelementptr inbounds i8, ptr %17, i64 -16
  %29 = tail call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %28)
  %30 = mul i32 %29, -862048943
  %31 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %30, i32 noundef 17)
  %32 = mul i32 %31, 461845907
  %33 = getelementptr inbounds i8, ptr %17, i64 -12
  %34 = tail call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %33)
  %35 = mul i32 %34, -862048943
  %36 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %35, i32 noundef 17)
  %37 = mul i32 %36, 461845907
  %38 = getelementptr inbounds i8, ptr %17, i64 -20
  %39 = tail call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %38)
  %40 = mul i32 %39, -862048943
  %41 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %40, i32 noundef 17)
  %42 = mul i32 %41, 461845907
  %43 = xor i32 %22, %15
  %44 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %43, i32 noundef 19)
  %45 = mul i32 %44, 5
  %46 = add i32 %45, -430675100
  %47 = xor i32 %46, %32
  %48 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %47, i32 noundef 19)
  %49 = mul i32 %48, 5
  %50 = add i32 %49, -430675100
  %51 = xor i32 %27, %16
  %52 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %51, i32 noundef 19)
  %53 = mul i32 %52, 5
  %54 = add i32 %53, -430675100
  %55 = xor i32 %54, %37
  %56 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %55, i32 noundef 19)
  %57 = mul i32 %56, 5
  %58 = add i32 %57, -430675100
  %59 = add i32 %42, %16
  %60 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %59, i32 noundef 19)
  %61 = add i32 %60, 113
  %62 = add i64 %1, -1
  %63 = udiv i64 %62, 20
  br label %64

64:                                               ; preds = %64, %14
  %.086 = phi i64 [ %63, %14 ], [ %88, %64 ]
  %.085 = phi i32 [ %61, %14 ], [ %85, %64 ]
  %.084 = phi i32 [ %58, %14 ], [ %86, %64 ]
  %.083 = phi i32 [ %50, %14 ], [ %78, %64 ]
  %.082 = phi ptr [ %0, %14 ], [ %87, %64 ]
  %65 = tail call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %.082)
  %66 = getelementptr inbounds i8, ptr %.082, i64 4
  %67 = tail call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %66)
  %68 = getelementptr inbounds i8, ptr %.082, i64 8
  %69 = tail call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %68)
  %70 = getelementptr inbounds i8, ptr %.082, i64 12
  %71 = tail call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %70)
  %72 = getelementptr inbounds i8, ptr %.082, i64 16
  %73 = tail call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %72)
  %74 = add i32 %65, %.083
  %75 = add i32 %67, %.084
  %76 = add i32 %69, %.085
  %77 = tail call noundef i32 @_ZN8farmhashL3MurEjj(i32 noundef %71, i32 noundef %74)
  %78 = add i32 %77, %73
  %79 = tail call noundef i32 @_ZN8farmhashL3MurEjj(i32 noundef %69, i32 noundef %75)
  %80 = add i32 %79, %65
  %81 = mul i32 %73, -862048943
  %82 = add i32 %81, %67
  %83 = tail call noundef i32 @_ZN8farmhashL3MurEjj(i32 noundef %82, i32 noundef %76)
  %84 = add i32 %83, %71
  %85 = add i32 %84, %80
  %86 = add i32 %85, %80
  %87 = getelementptr inbounds i8, ptr %.082, i64 20
  %88 = add nsw i64 %.086, -1
  %.not = icmp eq i64 %88, 0
  br i1 %.not, label %89, label %64, !llvm.loop !5

89:                                               ; preds = %64
  %90 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %86, i32 noundef 11)
  %91 = mul i32 %90, -862048943
  %92 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %91, i32 noundef 17)
  %93 = mul i32 %92, -862048943
  %94 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %85, i32 noundef 11)
  %95 = mul i32 %94, -862048943
  %96 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %95, i32 noundef 17)
  %97 = add i32 %93, %78
  %98 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %97, i32 noundef 19)
  %99 = mul i32 %98, 5
  %100 = add i32 %99, -430675100
  %101 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %100, i32 noundef 17)
  %102 = add i32 %101, %96
  %103 = mul i32 %102, -862048943
  %104 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %103, i32 noundef 19)
  %105 = mul i32 %104, 5
  %106 = add i32 %105, -430675100
  %107 = tail call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %106, i32 noundef 17)
  %108 = mul i32 %107, -862048943
  br label %109

109:                                              ; preds = %12, %10, %8, %89
  %.0 = phi i32 [ %108, %89 ], [ %13, %12 ], [ %9, %8 ], [ %11, %10 ]
  ret i32 %.0
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN10farmhashmkL13Hash32Len0to4EPKcmj(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN10farmhashmkL14Hash32Len5to12EPKcmj(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN10farmhashmkL15Hash32Len13to24EPKcmj(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN8farmhashL3MurEjj(i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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" }

!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,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass