; LLVM IR from intuitive-robots/mdt_policy :: pyhash-0.9.3/src/smhasher (farmhash-c)

; 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.uint128_c_t = type { i64, i64 }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@__PRETTY_FUNCTION__.farmhash64_na = external hidden unnamed_addr constant [45 x i8], align 1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden { i64, i64 } @make_uint128_c_t(i64 noundef, i64 noundef) #1

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

; 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 i64 @farmhash64_na(ptr noundef %0, i64 noundef %1) #3 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %struct.uint128_c_t, align 8
  %12 = alloca %struct.uint128_c_t, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.uint128_c_t, align 8
  %16 = alloca %struct.uint128_c_t, align 8
  %17 = alloca i64, align 8
  %18 = alloca %struct.uint128_c_t, align 8
  %19 = alloca %struct.uint128_c_t, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 81, ptr %6, align 8, !tbaa !9
  %20 = load i64, ptr %5, align 8, !tbaa !9
  %21 = icmp ule i64 %20, 32
  br i1 %21, label %22, label %33

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

25:                                               ; preds = %22
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load i64, ptr %5, align 8, !tbaa !9
  %28 = call i64 @farmhash_na_len_0_to_16(ptr noundef %26, i64 noundef %27)
  store i64 %28, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %278

29:                                               ; preds = %22
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load i64, ptr %5, align 8, !tbaa !9
  %32 = call i64 @farmhash_na_len_17_to_32(ptr noundef %30, i64 noundef %31)
  store i64 %32, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %278

33:                                               ; preds = %2
  %34 = load i64, ptr %5, align 8, !tbaa !9
  %35 = icmp ule i64 %34, 64
  br i1 %35, label %36, label %40

36:                                               ; preds = %33
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load i64, ptr %5, align 8, !tbaa !9
  %39 = call i64 @farmhash_na_len_33_to_64(ptr noundef %37, i64 noundef %38)
  store i64 %39, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %278

40:                                               ; preds = %33
  br label %41

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 81, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 2480279821605975764, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %42 = load i64, ptr %9, align 8, !tbaa !9
  %43 = mul i64 %42, -7286425919675154353
  %44 = add i64 %43, 113
  %45 = call i64 @smix(i64 noundef %44)
  %46 = mul i64 %45, -7286425919675154353
  store i64 %46, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %47 = call { i64, i64 } @make_uint128_c_t(i64 noundef 0, i64 noundef 0)
  %48 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %49 = extractvalue { i64, i64 } %47, 0
  store i64 %49, ptr %48, align 8
  %50 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %51 = extractvalue { i64, i64 } %47, 1
  store i64 %51, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %52 = call { i64, i64 } @make_uint128_c_t(i64 noundef 0, i64 noundef 0)
  %53 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %54 = extractvalue { i64, i64 } %52, 0
  store i64 %54, ptr %53, align 8
  %55 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %56 = extractvalue { i64, i64 } %52, 1
  store i64 %56, ptr %55, align 8
  %57 = load i64, ptr %8, align 8, !tbaa !9
  %58 = mul i64 %57, -7286425919675154353
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call i64 @fetch64(ptr noundef %59)
  %61 = add i64 %58, %60
  store i64 %61, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load i64, ptr %5, align 8, !tbaa !9
  %64 = sub i64 %63, 1
  %65 = udiv i64 %64, 64
  %66 = mul i64 %65, 64
  %67 = getelementptr inbounds i8, ptr %62, i64 %66
  store ptr %67, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = load i64, ptr %5, align 8, !tbaa !9
  %70 = sub i64 %69, 1
  %71 = and i64 %70, 63
  %72 = getelementptr inbounds i8, ptr %68, i64 %71
  %73 = getelementptr inbounds i8, ptr %72, i64 -63
  store ptr %73, ptr %14, align 8, !tbaa !5
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load i64, ptr %5, align 8, !tbaa !9
  %76 = getelementptr inbounds i8, ptr %74, i64 %75
  %77 = getelementptr inbounds i8, ptr %76, i64 -64
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = icmp eq ptr %77, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %41
  br label %82

81:                                               ; preds = %41
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 433, ptr noundef @__PRETTY_FUNCTION__.farmhash64_na) #6
  unreachable

82:                                               ; preds = %80
  br label %83

83:                                               ; preds = %155, %82
  %84 = load i64, ptr %8, align 8, !tbaa !9
  %85 = load i64, ptr %9, align 8, !tbaa !9
  %86 = add i64 %84, %85
  %87 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 0
  %88 = load i64, ptr %87, align 8, !tbaa !11
  %89 = add i64 %86, %88
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = call i64 @fetch64(ptr noundef %91)
  %93 = add i64 %89, %92
  %94 = call i64 @ror64(i64 noundef %93, i64 noundef 37)
  %95 = mul i64 %94, -5435081209227447693
  store i64 %95, ptr %8, align 8, !tbaa !9
  %96 = load i64, ptr %9, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 1
  %98 = load i64, ptr %97, align 8, !tbaa !13
  %99 = add i64 %96, %98
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %100, i64 48
  %102 = call i64 @fetch64(ptr noundef %101)
  %103 = add i64 %99, %102
  %104 = call i64 @ror64(i64 noundef %103, i64 noundef 42)
  %105 = mul i64 %104, -5435081209227447693
  store i64 %105, ptr %9, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 1
  %107 = load i64, ptr %106, align 8, !tbaa !13
  %108 = load i64, ptr %8, align 8, !tbaa !9
  %109 = xor i64 %108, %107
  store i64 %109, ptr %8, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 0
  %111 = load i64, ptr %110, align 8, !tbaa !11
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 40
  %114 = call i64 @fetch64(ptr noundef %113)
  %115 = add i64 %111, %114
  %116 = load i64, ptr %9, align 8, !tbaa !9
  %117 = add i64 %116, %115
  store i64 %117, ptr %9, align 8, !tbaa !9
  %118 = load i64, ptr %10, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 0
  %120 = load i64, ptr %119, align 8, !tbaa !11
  %121 = add i64 %118, %120
  %122 = call i64 @ror64(i64 noundef %121, i64 noundef 33)
  %123 = mul i64 %122, -5435081209227447693
  store i64 %123, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 1
  %126 = load i64, ptr %125, align 8, !tbaa !13
  %127 = mul i64 %126, -5435081209227447693
  %128 = load i64, ptr %8, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 0
  %130 = load i64, ptr %129, align 8, !tbaa !11
  %131 = add i64 %128, %130
  %132 = call { i64, i64 } @weak_farmhash_na_len_32_with_seeds(ptr noundef %124, i64 noundef %127, i64 noundef %131)
  %133 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %134 = extractvalue { i64, i64 } %132, 0
  store i64 %134, ptr %133, align 8
  %135 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %136 = extractvalue { i64, i64 } %132, 1
  store i64 %136, ptr %135, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 32
  %139 = load i64, ptr %10, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 1
  %141 = load i64, ptr %140, align 8, !tbaa !13
  %142 = add i64 %139, %141
  %143 = load i64, ptr %9, align 8, !tbaa !9
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds i8, ptr %144, i64 16
  %146 = call i64 @fetch64(ptr noundef %145)
  %147 = add i64 %143, %146
  %148 = call { i64, i64 } @weak_farmhash_na_len_32_with_seeds(ptr noundef %138, i64 noundef %142, i64 noundef %147)
  %149 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 0
  %150 = extractvalue { i64, i64 } %148, 0
  store i64 %150, ptr %149, align 8
  %151 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 1
  %152 = extractvalue { i64, i64 } %148, 1
  store i64 %152, ptr %151, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @swap64(ptr noundef %10, ptr noundef %8)
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds i8, ptr %153, i64 64
  store ptr %154, ptr %4, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %83
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = icmp ne ptr %156, %157
  br i1 %158, label %83, label %159, !llvm.loop !15

159:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %160 = load i64, ptr %10, align 8, !tbaa !9
  %161 = and i64 %160, 255
  %162 = shl i64 %161, 1
  %163 = add i64 -5435081209227447693, %162
  store i64 %163, ptr %17, align 8, !tbaa !9
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %164, ptr %4, align 8, !tbaa !5
  %165 = load i64, ptr %5, align 8, !tbaa !9
  %166 = sub i64 %165, 1
  %167 = and i64 %166, 63
  %168 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 0
  %169 = load i64, ptr %168, align 8, !tbaa !11
  %170 = add i64 %169, %167
  store i64 %170, ptr %168, align 8, !tbaa !11
  %171 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 0
  %172 = load i64, ptr %171, align 8, !tbaa !11
  %173 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 0
  %174 = load i64, ptr %173, align 8, !tbaa !11
  %175 = add i64 %174, %172
  store i64 %175, ptr %173, align 8, !tbaa !11
  %176 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 0
  %177 = load i64, ptr %176, align 8, !tbaa !11
  %178 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 0
  %179 = load i64, ptr %178, align 8, !tbaa !11
  %180 = add i64 %179, %177
  store i64 %180, ptr %178, align 8, !tbaa !11
  %181 = load i64, ptr %8, align 8, !tbaa !9
  %182 = load i64, ptr %9, align 8, !tbaa !9
  %183 = add i64 %181, %182
  %184 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 0
  %185 = load i64, ptr %184, align 8, !tbaa !11
  %186 = add i64 %183, %185
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %187, i64 8
  %189 = call i64 @fetch64(ptr noundef %188)
  %190 = add i64 %186, %189
  %191 = call i64 @ror64(i64 noundef %190, i64 noundef 37)
  %192 = load i64, ptr %17, align 8, !tbaa !9
  %193 = mul i64 %191, %192
  store i64 %193, ptr %8, align 8, !tbaa !9
  %194 = load i64, ptr %9, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 1
  %196 = load i64, ptr %195, align 8, !tbaa !13
  %197 = add i64 %194, %196
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds i8, ptr %198, i64 48
  %200 = call i64 @fetch64(ptr noundef %199)
  %201 = add i64 %197, %200
  %202 = call i64 @ror64(i64 noundef %201, i64 noundef 42)
  %203 = load i64, ptr %17, align 8, !tbaa !9
  %204 = mul i64 %202, %203
  store i64 %204, ptr %9, align 8, !tbaa !9
  %205 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 1
  %206 = load i64, ptr %205, align 8, !tbaa !13
  %207 = mul i64 %206, 9
  %208 = load i64, ptr %8, align 8, !tbaa !9
  %209 = xor i64 %208, %207
  store i64 %209, ptr %8, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 0
  %211 = load i64, ptr %210, align 8, !tbaa !11
  %212 = mul i64 %211, 9
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds i8, ptr %213, i64 40
  %215 = call i64 @fetch64(ptr noundef %214)
  %216 = add i64 %212, %215
  %217 = load i64, ptr %9, align 8, !tbaa !9
  %218 = add i64 %217, %216
  store i64 %218, ptr %9, align 8, !tbaa !9
  %219 = load i64, ptr %10, align 8, !tbaa !9
  %220 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 0
  %221 = load i64, ptr %220, align 8, !tbaa !11
  %222 = add i64 %219, %221
  %223 = call i64 @ror64(i64 noundef %222, i64 noundef 33)
  %224 = load i64, ptr %17, align 8, !tbaa !9
  %225 = mul i64 %223, %224
  store i64 %225, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 1
  %228 = load i64, ptr %227, align 8, !tbaa !13
  %229 = load i64, ptr %17, align 8, !tbaa !9
  %230 = mul i64 %228, %229
  %231 = load i64, ptr %8, align 8, !tbaa !9
  %232 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 0
  %233 = load i64, ptr %232, align 8, !tbaa !11
  %234 = add i64 %231, %233
  %235 = call { i64, i64 } @weak_farmhash_na_len_32_with_seeds(ptr noundef %226, i64 noundef %230, i64 noundef %234)
  %236 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %237 = extractvalue { i64, i64 } %235, 0
  store i64 %237, ptr %236, align 8
  %238 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %239 = extractvalue { i64, i64 } %235, 1
  store i64 %239, ptr %238, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds i8, ptr %240, i64 32
  %242 = load i64, ptr %10, align 8, !tbaa !9
  %243 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 1
  %244 = load i64, ptr %243, align 8, !tbaa !13
  %245 = add i64 %242, %244
  %246 = load i64, ptr %9, align 8, !tbaa !9
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = getelementptr inbounds i8, ptr %247, i64 16
  %249 = call i64 @fetch64(ptr noundef %248)
  %250 = add i64 %246, %249
  %251 = call { i64, i64 } @weak_farmhash_na_len_32_with_seeds(ptr noundef %241, i64 noundef %245, i64 noundef %250)
  %252 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 0
  %253 = extractvalue { i64, i64 } %251, 0
  store i64 %253, ptr %252, align 8
  %254 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 1
  %255 = extractvalue { i64, i64 } %251, 1
  store i64 %255, ptr %254, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @swap64(ptr noundef %10, ptr noundef %8)
  %256 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 0
  %257 = load i64, ptr %256, align 8, !tbaa !11
  %258 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 0
  %259 = load i64, ptr %258, align 8, !tbaa !11
  %260 = load i64, ptr %17, align 8, !tbaa !9
  %261 = call i64 @farmhash_len_16_mul(i64 noundef %257, i64 noundef %259, i64 noundef %260)
  %262 = load i64, ptr %9, align 8, !tbaa !9
  %263 = call i64 @smix(i64 noundef %262)
  %264 = mul i64 %263, -4348849565147123417
  %265 = add i64 %261, %264
  %266 = load i64, ptr %10, align 8, !tbaa !9
  %267 = add i64 %265, %266
  %268 = getelementptr inbounds %struct.uint128_c_t, ptr %11, i32 0, i32 1
  %269 = load i64, ptr %268, align 8, !tbaa !13
  %270 = getelementptr inbounds %struct.uint128_c_t, ptr %12, i32 0, i32 1
  %271 = load i64, ptr %270, align 8, !tbaa !13
  %272 = load i64, ptr %17, align 8, !tbaa !9
  %273 = call i64 @farmhash_len_16_mul(i64 noundef %269, i64 noundef %271, i64 noundef %272)
  %274 = load i64, ptr %8, align 8, !tbaa !9
  %275 = add i64 %273, %274
  %276 = load i64, ptr %17, align 8, !tbaa !9
  %277 = call i64 @farmhash_len_16_mul(i64 noundef %267, i64 noundef %275, i64 noundef %276)
  store i64 %277, ptr %3, align 8
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %278

278:                                              ; preds = %159, %36, %29, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %279 = load i64, ptr %3, align 8
  ret i64 %279
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @farmhash_na_len_0_to_16(ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @farmhash_na_len_17_to_32(ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @farmhash_na_len_33_to_64(ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @smix(i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @fetch64(ptr noundef) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @ror64(i64 noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden { i64, i64 } @weak_farmhash_na_len_32_with_seeds(ptr noundef, i64 noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @swap64(ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @farmhash_len_16_mul(i64 noundef, i64 noundef, i64 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 "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 #5 = { nounwind }
attributes #6 = { 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 = !{!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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"uint128_c_t", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = !{i64 0, i64 8, !9, i64 8, i64 8, !9}
!15 = distinct !{!15, !16}
!16 = !{!"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 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@__PRETTY_FUNCTION__.farmhash64_na = external hidden unnamed_addr constant [45 x i8], align 1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden { i64, i64 } @make_uint128_c_t(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress 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 i64 @farmhash64_na(ptr noundef %0, i64 noundef %1) local_unnamed_addr #2 {
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = icmp ult i64 %1, 33
  br i1 %5, label %6, label %12

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

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

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

12:                                               ; preds = %2
  %13 = icmp ult i64 %1, 65
  br i1 %13, label %14, label %16

14:                                               ; preds = %12
  %15 = tail call i64 @farmhash_na_len_33_to_64(ptr noundef %0, i64 noundef %1)
  br label %136

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %17 = tail call i64 @smix(i64 noundef -7956866745689871395)
  %18 = mul i64 %17, -7286425919675154353
  store i64 %18, ptr %4, align 8, !tbaa !5
  %19 = tail call { i64, i64 } @make_uint128_c_t(i64 noundef 0, i64 noundef 0)
  %20 = tail call { i64, i64 } @make_uint128_c_t(i64 noundef 0, i64 noundef 0)
  %21 = tail call i64 @fetch64(ptr noundef %0)
  %22 = add i64 %21, 95310865018149119
  store i64 %22, ptr %3, align 8, !tbaa !5
  %23 = add i64 %1, -1
  %24 = and i64 %23, -64
  %25 = getelementptr inbounds i8, ptr %0, i64 %24
  %26 = and i64 %23, 63
  %27 = getelementptr inbounds i8, ptr %25, i64 %26
  %28 = getelementptr inbounds i8, ptr %27, i64 -63
  %29 = getelementptr inbounds i8, ptr %0, i64 %1
  %30 = getelementptr inbounds i8, ptr %29, i64 -64
  %31 = icmp eq ptr %30, %28
  br i1 %31, label %.preheader.preheader, label %36

.preheader.preheader:                             ; preds = %16
  %32 = extractvalue { i64, i64 } %20, 1
  %33 = extractvalue { i64, i64 } %20, 0
  %34 = extractvalue { i64, i64 } %19, 1
  %35 = extractvalue { i64, i64 } %19, 0
  br label %.preheader

36:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 433, ptr noundef nonnull @__PRETTY_FUNCTION__.farmhash64_na) #5
  unreachable

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %.sroa.016.0 = phi i64 [ %74, %.preheader ], [ %33, %.preheader.preheader ]
  %.sroa.15.0 = phi i64 [ %75, %.preheader ], [ %32, %.preheader.preheader ]
  %.sroa.028.0 = phi i64 [ %65, %.preheader ], [ %35, %.preheader.preheader ]
  %.sroa.13.0 = phi i64 [ %66, %.preheader ], [ %34, %.preheader.preheader ]
  %.081 = phi i64 [ %56, %.preheader ], [ 2480279821605975764, %.preheader.preheader ]
  %.080 = phi ptr [ %76, %.preheader ], [ %0, %.preheader.preheader ]
  %37 = load i64, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %.080, i64 8
  %39 = call i64 @fetch64(ptr noundef nonnull %38)
  %40 = add i64 %.081, %.sroa.028.0
  %41 = add i64 %40, %37
  %42 = add i64 %41, %39
  %43 = call i64 @ror64(i64 noundef %42, i64 noundef 37)
  %44 = mul i64 %43, -5435081209227447693
  store i64 %44, ptr %3, align 8, !tbaa !5
  %45 = add i64 %.081, %.sroa.13.0
  %46 = getelementptr inbounds i8, ptr %.080, i64 48
  %47 = call i64 @fetch64(ptr noundef nonnull %46)
  %48 = add i64 %45, %47
  %49 = call i64 @ror64(i64 noundef %48, i64 noundef 42)
  %50 = mul i64 %49, -5435081209227447693
  %51 = load i64, ptr %3, align 8, !tbaa !5
  %52 = xor i64 %51, %.sroa.15.0
  store i64 %52, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %.080, i64 40
  %54 = call i64 @fetch64(ptr noundef nonnull %53)
  %55 = add i64 %50, %.sroa.028.0
  %56 = add i64 %55, %54
  %57 = load i64, ptr %4, align 8, !tbaa !5
  %58 = add i64 %57, %.sroa.016.0
  %59 = call i64 @ror64(i64 noundef %58, i64 noundef 33)
  %60 = mul i64 %59, -5435081209227447693
  store i64 %60, ptr %4, align 8, !tbaa !5
  %61 = mul i64 %.sroa.13.0, -5435081209227447693
  %62 = load i64, ptr %3, align 8, !tbaa !5
  %63 = add i64 %62, %.sroa.016.0
  %64 = call { i64, i64 } @weak_farmhash_na_len_32_with_seeds(ptr noundef %.080, i64 noundef %61, i64 noundef %63)
  %65 = extractvalue { i64, i64 } %64, 0
  %66 = extractvalue { i64, i64 } %64, 1
  %67 = getelementptr inbounds i8, ptr %.080, i64 32
  %68 = load i64, ptr %4, align 8, !tbaa !5
  %69 = add i64 %68, %.sroa.15.0
  %70 = getelementptr inbounds i8, ptr %.080, i64 16
  %71 = call i64 @fetch64(ptr noundef nonnull %70)
  %72 = add i64 %71, %56
  %73 = call { i64, i64 } @weak_farmhash_na_len_32_with_seeds(ptr noundef nonnull %67, i64 noundef %69, i64 noundef %72)
  %74 = extractvalue { i64, i64 } %73, 0
  %75 = extractvalue { i64, i64 } %73, 1
  call void @swap64(ptr noundef nonnull %4, ptr noundef nonnull %3)
  %76 = getelementptr inbounds i8, ptr %.080, i64 64
  %.not = icmp eq ptr %76, %25
  br i1 %.not, label %77, label %.preheader, !llvm.loop !9

77:                                               ; preds = %.preheader
  %78 = load i64, ptr %4, align 8, !tbaa !5
  %79 = shl i64 %78, 1
  %80 = and i64 %79, 510
  %81 = add nuw nsw i64 %80, -5435081209227447693
  %82 = add i64 %74, %26
  %83 = add i64 %82, %65
  %84 = add i64 %83, %82
  %85 = load i64, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %27, i64 -55
  %87 = call i64 @fetch64(ptr noundef nonnull %86)
  %88 = add i64 %83, %56
  %89 = add i64 %88, %85
  %90 = add i64 %89, %87
  %91 = call i64 @ror64(i64 noundef %90, i64 noundef 37)
  %92 = mul i64 %91, %81
  store i64 %92, ptr %3, align 8, !tbaa !5
  %93 = add i64 %66, %56
  %94 = getelementptr inbounds i8, ptr %27, i64 -15
  %95 = call i64 @fetch64(ptr noundef nonnull %94)
  %96 = add i64 %93, %95
  %97 = call i64 @ror64(i64 noundef %96, i64 noundef 42)
  %98 = mul i64 %97, %81
  %99 = mul i64 %75, 9
  %100 = load i64, ptr %3, align 8, !tbaa !5
  %101 = xor i64 %100, %99
  store i64 %101, ptr %3, align 8, !tbaa !5
  %102 = mul i64 %83, 9
  %103 = getelementptr inbounds i8, ptr %27, i64 -23
  %104 = call i64 @fetch64(ptr noundef nonnull %103)
  %105 = add i64 %98, %102
  %106 = add i64 %105, %104
  %107 = load i64, ptr %4, align 8, !tbaa !5
  %108 = add i64 %107, %84
  %109 = call i64 @ror64(i64 noundef %108, i64 noundef 33)
  %110 = mul i64 %109, %81
  store i64 %110, ptr %4, align 8, !tbaa !5
  %111 = mul i64 %81, %66
  %112 = load i64, ptr %3, align 8, !tbaa !5
  %113 = add i64 %112, %84
  %114 = call { i64, i64 } @weak_farmhash_na_len_32_with_seeds(ptr noundef nonnull %28, i64 noundef %111, i64 noundef %113)
  %115 = extractvalue { i64, i64 } %114, 0
  %116 = extractvalue { i64, i64 } %114, 1
  %117 = getelementptr inbounds i8, ptr %27, i64 -31
  %118 = load i64, ptr %4, align 8, !tbaa !5
  %119 = add i64 %118, %75
  %120 = getelementptr inbounds i8, ptr %27, i64 -47
  %121 = call i64 @fetch64(ptr noundef nonnull %120)
  %122 = add i64 %121, %106
  %123 = call { i64, i64 } @weak_farmhash_na_len_32_with_seeds(ptr noundef nonnull %117, i64 noundef %119, i64 noundef %122)
  %124 = extractvalue { i64, i64 } %123, 0
  %125 = extractvalue { i64, i64 } %123, 1
  call void @swap64(ptr noundef nonnull %4, ptr noundef nonnull %3)
  %126 = call i64 @farmhash_len_16_mul(i64 noundef %115, i64 noundef %124, i64 noundef %81)
  %127 = call i64 @smix(i64 noundef %106)
  %128 = mul i64 %127, -4348849565147123417
  %129 = add i64 %128, %126
  %130 = load i64, ptr %4, align 8, !tbaa !5
  %131 = add i64 %129, %130
  %132 = call i64 @farmhash_len_16_mul(i64 noundef %116, i64 noundef %125, i64 noundef %81)
  %133 = load i64, ptr %3, align 8, !tbaa !5
  %134 = add i64 %133, %132
  %135 = call i64 @farmhash_len_16_mul(i64 noundef %131, i64 noundef %134, i64 noundef %81)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %136

136:                                              ; preds = %77, %14, %10, %8
  %.0 = phi i64 [ %9, %8 ], [ %11, %10 ], [ %15, %14 ], [ %135, %77 ]
  ret i64 %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @farmhash_na_len_0_to_16(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @farmhash_na_len_17_to_32(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @farmhash_na_len_33_to_64(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @smix(i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @fetch64(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @ror64(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden { i64, i64 } @weak_farmhash_na_len_32_with_seeds(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @swap64(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @farmhash_len_16_mul(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

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


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass