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

; 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: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10farmhashcc6Hash32EPKcm(ptr noundef %0, i64 noundef %1) #3 {
  %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 @_ZN10farmhashccL13Hash32Len0to4EPKcm(ptr noundef %29, i64 noundef %30)
  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 @_ZN10farmhashccL14Hash32Len5to12EPKcm(ptr noundef %33, i64 noundef %34)
  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 @_ZN10farmhashccL15Hash32Len13to24EPKcm(ptr noundef %39, i64 noundef %40)
  br label %42

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

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)
  store i32 %127, ptr %8, align 4, !tbaa !11
  %128 = load i32, ptr %8, align 4, !tbaa !11
  %129 = mul i32 %128, 5
  %130 = add i32 %129, -430675100
  store i32 %130, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %131 = load i64, ptr %5, align 8, !tbaa !9
  %132 = sub i64 %131, 1
  %133 = udiv i64 %132, 20
  store i64 %133, ptr %14, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %211, %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %135)
  %137 = mul i32 %136, -862048943
  %138 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %137, i32 noundef 17)
  %139 = mul i32 %138, 461845907
  store i32 %139, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 4
  %142 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %141)
  store i32 %142, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds i8, ptr %143, i64 8
  %145 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %144)
  %146 = mul i32 %145, -862048943
  %147 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %146, i32 noundef 17)
  %148 = mul i32 %147, 461845907
  store i32 %148, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 12
  %151 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %150)
  %152 = mul i32 %151, -862048943
  %153 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %152, i32 noundef 17)
  %154 = mul i32 %153, 461845907
  store i32 %154, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %155, i64 16
  %157 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %156)
  store i32 %157, ptr %19, align 4, !tbaa !11
  %158 = load i32, ptr %15, align 4, !tbaa !11
  %159 = load i32, ptr %6, align 4, !tbaa !11
  %160 = xor i32 %159, %158
  store i32 %160, ptr %6, align 4, !tbaa !11
  %161 = load i32, ptr %6, align 4, !tbaa !11
  %162 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %161, i32 noundef 18)
  store i32 %162, ptr %6, align 4, !tbaa !11
  %163 = load i32, ptr %6, align 4, !tbaa !11
  %164 = mul i32 %163, 5
  %165 = add i32 %164, -430675100
  store i32 %165, ptr %6, align 4, !tbaa !11
  %166 = load i32, ptr %16, align 4, !tbaa !11
  %167 = load i32, ptr %8, align 4, !tbaa !11
  %168 = add i32 %167, %166
  store i32 %168, ptr %8, align 4, !tbaa !11
  %169 = load i32, ptr %8, align 4, !tbaa !11
  %170 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %169, i32 noundef 19)
  store i32 %170, ptr %8, align 4, !tbaa !11
  %171 = load i32, ptr %8, align 4, !tbaa !11
  %172 = mul i32 %171, -862048943
  store i32 %172, ptr %8, align 4, !tbaa !11
  %173 = load i32, ptr %17, align 4, !tbaa !11
  %174 = load i32, ptr %7, align 4, !tbaa !11
  %175 = add i32 %174, %173
  store i32 %175, ptr %7, align 4, !tbaa !11
  %176 = load i32, ptr %7, align 4, !tbaa !11
  %177 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %176, i32 noundef 18)
  store i32 %177, ptr %7, align 4, !tbaa !11
  %178 = load i32, ptr %7, align 4, !tbaa !11
  %179 = mul i32 %178, 5
  %180 = add i32 %179, -430675100
  store i32 %180, ptr %7, align 4, !tbaa !11
  %181 = load i32, ptr %18, align 4, !tbaa !11
  %182 = load i32, ptr %16, align 4, !tbaa !11
  %183 = add i32 %181, %182
  %184 = load i32, ptr %6, align 4, !tbaa !11
  %185 = xor i32 %184, %183
  store i32 %185, ptr %6, align 4, !tbaa !11
  %186 = load i32, ptr %6, align 4, !tbaa !11
  %187 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %186, i32 noundef 19)
  store i32 %187, ptr %6, align 4, !tbaa !11
  %188 = load i32, ptr %6, align 4, !tbaa !11
  %189 = mul i32 %188, 5
  %190 = add i32 %189, -430675100
  store i32 %190, ptr %6, align 4, !tbaa !11
  %191 = load i32, ptr %19, align 4, !tbaa !11
  %192 = load i32, ptr %7, align 4, !tbaa !11
  %193 = xor i32 %192, %191
  store i32 %193, ptr %7, align 4, !tbaa !11
  %194 = load i32, ptr %7, align 4, !tbaa !11
  %195 = call noundef i32 @_ZN8farmhashL7Bswap32Ej(i32 noundef %194)
  %196 = mul i32 %195, 5
  store i32 %196, ptr %7, align 4, !tbaa !11
  %197 = load i32, ptr %19, align 4, !tbaa !11
  %198 = mul i32 %197, 5
  %199 = load i32, ptr %6, align 4, !tbaa !11
  %200 = add i32 %199, %198
  store i32 %200, ptr %6, align 4, !tbaa !11
  %201 = load i32, ptr %6, align 4, !tbaa !11
  %202 = call noundef i32 @_ZN8farmhashL7Bswap32Ej(i32 noundef %201)
  store i32 %202, ptr %6, align 4, !tbaa !11
  %203 = load i32, ptr %15, align 4, !tbaa !11
  %204 = load i32, ptr %8, align 4, !tbaa !11
  %205 = add i32 %204, %203
  store i32 %205, ptr %8, align 4, !tbaa !11
  br label %206

206:                                              ; preds = %134
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %6) #4
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %7) #4
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds i8, ptr %209, i64 20
  store ptr %210, 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 %211

211:                                              ; preds = %208
  %212 = load i64, ptr %14, align 8, !tbaa !9
  %213 = add i64 %212, -1
  store i64 %213, ptr %14, align 8, !tbaa !9
  %214 = icmp ne i64 %213, 0
  br i1 %214, label %134, label %215, !llvm.loop !13

215:                                              ; preds = %211
  %216 = load i32, ptr %7, align 4, !tbaa !11
  %217 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %216, i32 noundef 11)
  %218 = mul i32 %217, -862048943
  store i32 %218, ptr %7, align 4, !tbaa !11
  %219 = load i32, ptr %7, align 4, !tbaa !11
  %220 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %219, i32 noundef 17)
  %221 = mul i32 %220, -862048943
  store i32 %221, ptr %7, align 4, !tbaa !11
  %222 = load i32, ptr %8, align 4, !tbaa !11
  %223 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %222, i32 noundef 11)
  %224 = mul i32 %223, -862048943
  store i32 %224, ptr %8, align 4, !tbaa !11
  %225 = load i32, ptr %8, align 4, !tbaa !11
  %226 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %225, i32 noundef 17)
  %227 = mul i32 %226, -862048943
  store i32 %227, ptr %8, align 4, !tbaa !11
  %228 = load i32, ptr %6, align 4, !tbaa !11
  %229 = load i32, ptr %7, align 4, !tbaa !11
  %230 = add i32 %228, %229
  %231 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %230, i32 noundef 19)
  store i32 %231, ptr %6, align 4, !tbaa !11
  %232 = load i32, ptr %6, align 4, !tbaa !11
  %233 = mul i32 %232, 5
  %234 = add i32 %233, -430675100
  store i32 %234, ptr %6, align 4, !tbaa !11
  %235 = load i32, ptr %6, align 4, !tbaa !11
  %236 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %235, i32 noundef 17)
  %237 = mul i32 %236, -862048943
  store i32 %237, ptr %6, align 4, !tbaa !11
  %238 = load i32, ptr %6, align 4, !tbaa !11
  %239 = load i32, ptr %8, align 4, !tbaa !11
  %240 = add i32 %238, %239
  %241 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %240, i32 noundef 19)
  store i32 %241, ptr %6, align 4, !tbaa !11
  %242 = load i32, ptr %6, align 4, !tbaa !11
  %243 = mul i32 %242, 5
  %244 = add i32 %243, -430675100
  store i32 %244, ptr %6, align 4, !tbaa !11
  %245 = load i32, ptr %6, align 4, !tbaa !11
  %246 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %245, i32 noundef 17)
  %247 = mul i32 %246, -862048943
  store i32 %247, ptr %6, align 4, !tbaa !11
  %248 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %248, 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 %249

249:                                              ; preds = %215, %42
  %250 = load i32, ptr %3, align 4
  ret i32 %250
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #3 = { 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 #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; 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: mustprogress uwtable
define dso_local noundef i32 @_ZN10farmhashcc6Hash32EPKcm(ptr noundef %0, i64 noundef %1) local_unnamed_addr #3 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = icmp ult i64 %1, 25
  br i1 %6, label %7, label %17

7:                                                ; preds = %2
  %8 = icmp ult i64 %1, 13
  br i1 %8, label %9, label %15

9:                                                ; preds = %7
  %10 = icmp ult i64 %1, 5
  br i1 %10, label %11, label %13

11:                                               ; preds = %9
  %12 = tail call noundef i32 @_ZN10farmhashccL13Hash32Len0to4EPKcm(ptr noundef %0, i64 noundef %1)
  br label %145

13:                                               ; preds = %9
  %14 = tail call noundef i32 @_ZN10farmhashccL14Hash32Len5to12EPKcm(ptr noundef %0, i64 noundef %1)
  br label %145

15:                                               ; preds = %7
  %16 = tail call noundef i32 @_ZN10farmhashccL15Hash32Len13to24EPKcm(ptr noundef %0, i64 noundef %1)
  br label %145

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

68:                                               ; preds = %68, %17
  %.043 = phi i64 [ %67, %17 ], [ %118, %68 ]
  %.042 = phi ptr [ %0, %17 ], [ %117, %68 ]
  %69 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef %.042)
  %70 = mul i32 %69, -862048943
  %71 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %70, i32 noundef 17)
  %72 = mul i32 %71, 461845907
  %73 = getelementptr inbounds i8, ptr %.042, i64 4
  %74 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %73)
  %75 = getelementptr inbounds i8, ptr %.042, i64 8
  %76 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %75)
  %77 = mul i32 %76, -862048943
  %78 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %77, i32 noundef 17)
  %79 = mul i32 %78, 461845907
  %80 = getelementptr inbounds i8, ptr %.042, i64 12
  %81 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %80)
  %82 = mul i32 %81, -862048943
  %83 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %82, i32 noundef 17)
  %84 = mul i32 %83, 461845907
  %85 = getelementptr inbounds i8, ptr %.042, i64 16
  %86 = call noundef i32 @_ZN8farmhashL7Fetch32EPKc(ptr noundef nonnull %85)
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = xor i32 %87, %72
  store i32 %88, ptr %3, align 4, !tbaa !5
  %89 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %88, i32 noundef 18)
  %90 = mul i32 %89, 5
  %91 = add i32 %90, -430675100
  store i32 %91, ptr %3, align 4, !tbaa !5
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = add i32 %92, %74
  store i32 %93, ptr %5, align 4, !tbaa !5
  %94 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %93, i32 noundef 19)
  %95 = mul i32 %94, -862048943
  store i32 %95, ptr %5, align 4, !tbaa !5
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = add i32 %96, %79
  store i32 %97, ptr %4, align 4, !tbaa !5
  %98 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %97, i32 noundef 18)
  %99 = mul i32 %98, 5
  %100 = add i32 %99, -430675100
  store i32 %100, ptr %4, align 4, !tbaa !5
  %101 = add i32 %84, %74
  %102 = load i32, ptr %3, align 4, !tbaa !5
  %103 = xor i32 %102, %101
  store i32 %103, ptr %3, align 4, !tbaa !5
  %104 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %103, i32 noundef 19)
  %105 = mul i32 %104, 5
  %106 = add i32 %105, -430675100
  store i32 %106, ptr %3, align 4, !tbaa !5
  %107 = load i32, ptr %4, align 4, !tbaa !5
  %108 = xor i32 %107, %86
  store i32 %108, ptr %4, align 4, !tbaa !5
  %109 = call noundef i32 @_ZN8farmhashL7Bswap32Ej(i32 noundef %108)
  %110 = mul i32 %109, 5
  store i32 %110, ptr %4, align 4, !tbaa !5
  %111 = mul i32 %86, 5
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = add i32 %112, %111
  store i32 %113, ptr %3, align 4, !tbaa !5
  %114 = call noundef i32 @_ZN8farmhashL7Bswap32Ej(i32 noundef %113)
  store i32 %114, ptr %3, align 4, !tbaa !5
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = add i32 %115, %72
  store i32 %116, ptr %5, align 4, !tbaa !5
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3) #4
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %4) #4
  %117 = getelementptr inbounds i8, ptr %.042, i64 20
  %118 = add nsw i64 %.043, -1
  %.not = icmp eq i64 %118, 0
  br i1 %.not, label %119, label %68, !llvm.loop !9

119:                                              ; preds = %68
  %120 = load i32, ptr %4, align 4, !tbaa !5
  %121 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %120, i32 noundef 11)
  %122 = mul i32 %121, -862048943
  store i32 %122, ptr %4, align 4, !tbaa !5
  %123 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %122, i32 noundef 17)
  %124 = mul i32 %123, -862048943
  store i32 %124, ptr %4, align 4, !tbaa !5
  %125 = load i32, ptr %5, align 4, !tbaa !5
  %126 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %125, i32 noundef 11)
  %127 = mul i32 %126, -862048943
  store i32 %127, ptr %5, align 4, !tbaa !5
  %128 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %127, i32 noundef 17)
  %129 = mul i32 %128, -862048943
  store i32 %129, ptr %5, align 4, !tbaa !5
  %130 = load i32, ptr %3, align 4, !tbaa !5
  %131 = load i32, ptr %4, align 4, !tbaa !5
  %132 = add i32 %131, %130
  %133 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %132, i32 noundef 19)
  %134 = mul i32 %133, 5
  %135 = add i32 %134, -430675100
  store i32 %135, ptr %3, align 4, !tbaa !5
  %136 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %135, i32 noundef 17)
  %137 = mul i32 %136, -862048943
  store i32 %137, ptr %3, align 4, !tbaa !5
  %138 = load i32, ptr %5, align 4, !tbaa !5
  %139 = add i32 %138, %137
  %140 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %139, i32 noundef 19)
  %141 = mul i32 %140, 5
  %142 = add i32 %141, -430675100
  store i32 %142, ptr %3, align 4, !tbaa !5
  %143 = call noundef i32 @_ZN8farmhashL8Rotate32Eji(i32 noundef %142, i32 noundef 17)
  %144 = mul i32 %143, -862048943
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %145

145:                                              ; preds = %15, %13, %11, %119
  %.0 = phi i32 [ %144, %119 ], [ %16, %15 ], [ %12, %11 ], [ %14, %13 ]
  ret i32 %.0
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #3 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass