; LLVM IR from cryspen/libcrux :: sys/hacl/c/src (Hacl_Hash_Blake2b)

; 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.Hacl_Hash_Blake2b_state_t_s = type { %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr, i64 }
%struct.Hacl_Hash_Blake2b_block_state_t_s = type { ptr, ptr }

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @Hacl_Hash_Blake2b_update_multi(i32 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i32 noundef) #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @Hacl_Hash_Blake2b_update(ptr noundef %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.Hacl_Hash_Blake2b_state_t_s, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.Hacl_Hash_Blake2b_state_t_s, align 8
  %13 = alloca %struct.Hacl_Hash_Blake2b_block_state_t_s, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca %struct.Hacl_Hash_Blake2b_state_t_s, align 8
  %20 = alloca %struct.Hacl_Hash_Blake2b_state_t_s, align 8
  %21 = alloca %struct.Hacl_Hash_Blake2b_block_state_t_s, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i128, align 16
  %30 = alloca i128, align 16
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca i128, align 16
  %41 = alloca i128, align 16
  %42 = alloca ptr, align 8
  %43 = alloca %struct.Hacl_Hash_Blake2b_state_t_s, align 8
  %44 = alloca i32, align 4
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca %struct.Hacl_Hash_Blake2b_state_t_s, align 8
  %48 = alloca %struct.Hacl_Hash_Blake2b_block_state_t_s, align 8
  %49 = alloca ptr, align 8
  %50 = alloca i64, align 8
  %51 = alloca i32, align 4
  %52 = alloca ptr, align 8
  %53 = alloca i64, align 8
  %54 = alloca %struct.Hacl_Hash_Blake2b_state_t_s, align 8
  %55 = alloca %struct.Hacl_Hash_Blake2b_state_t_s, align 8
  %56 = alloca %struct.Hacl_Hash_Blake2b_block_state_t_s, align 8
  %57 = alloca ptr, align 8
  %58 = alloca i64, align 8
  %59 = alloca i32, align 4
  %60 = alloca i64, align 8
  %61 = alloca ptr, align 8
  %62 = alloca ptr, align 8
  %63 = alloca i32, align 4
  %64 = alloca i128, align 16
  %65 = alloca i128, align 16
  %66 = alloca i32, align 4
  %67 = alloca i32, align 4
  %68 = alloca i32, align 4
  %69 = alloca i32, align 4
  %70 = alloca ptr, align 8
  %71 = alloca ptr, align 8
  %72 = alloca ptr, align 8
  %73 = alloca ptr, align 8
  %74 = alloca i32, align 4
  %75 = alloca i128, align 16
  %76 = alloca i128, align 16
  %77 = alloca ptr, align 8
  %78 = alloca %struct.Hacl_Hash_Blake2b_state_t_s, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #4
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %79, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %80 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %8, i32 0, i32 2
  %81 = load i64, ptr %80, align 8, !tbaa !14
  store i64 %81, ptr %9, align 8, !tbaa !12
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = load i64, ptr %9, align 8, !tbaa !12
  %85 = sub i64 -1, %84
  %86 = icmp ugt i64 %83, %85
  br i1 %86, label %87, label %88

87:                                               ; preds = %3
  store i8 3, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %428

88:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %89 = load i64, ptr %9, align 8, !tbaa !12
  %90 = urem i64 %89, 128
  %91 = icmp eq i64 %90, 0
  br i1 %91, label %92, label %96

92:                                               ; preds = %88
  %93 = load i64, ptr %9, align 8, !tbaa !12
  %94 = icmp ugt i64 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  store i32 128, ptr %11, align 4, !tbaa !9
  br label %100

96:                                               ; preds = %92, %88
  %97 = load i64, ptr %9, align 8, !tbaa !12
  %98 = urem i64 %97, 128
  %99 = trunc i64 %98 to i32
  store i32 %99, ptr %11, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %96, %95
  %101 = load i32, ptr %7, align 4, !tbaa !9
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = sub i32 128, %102
  %104 = icmp ule i32 %101, %103
  br i1 %104, label %105, label %143

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #4
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %106, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %107 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %12, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %107, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %108 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %12, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !18
  store ptr %109, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %110 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %12, i32 0, i32 2
  %111 = load i64, ptr %110, align 8, !tbaa !14
  store i64 %111, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %112 = load i64, ptr %15, align 8, !tbaa !12
  %113 = urem i64 %112, 128
  %114 = icmp eq i64 %113, 0
  br i1 %114, label %115, label %119

115:                                              ; preds = %105
  %116 = load i64, ptr %15, align 8, !tbaa !12
  %117 = icmp ugt i64 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %115
  store i32 128, ptr %16, align 4, !tbaa !9
  br label %123

119:                                              ; preds = %115, %105
  %120 = load i64, ptr %15, align 8, !tbaa !12
  %121 = urem i64 %120, 128
  %122 = trunc i64 %121 to i32
  store i32 %122, ptr %16, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %119, %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = load i32, ptr %16, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds i8, ptr %124, i64 %126
  store ptr %127, ptr %17, align 8, !tbaa !5
  %128 = load ptr, ptr %17, align 8, !tbaa !5
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = load i32, ptr %7, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = mul i64 %131, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %128, ptr align 1 %129, i64 %132, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %133 = load i64, ptr %15, align 8, !tbaa !12
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = add i64 %133, %135
  store i64 %136, ptr %18, align 8, !tbaa !12
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %19, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %138, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !17
  %139 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %19, i32 0, i32 1
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %140, ptr %139, align 8, !tbaa !18
  %141 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %19, i32 0, i32 2
  %142 = load i64, ptr %18, align 8, !tbaa !12
  store i64 %142, ptr %141, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %137, ptr align 8 %19, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  br label %427

143:                                              ; preds = %100
  %144 = load i32, ptr %11, align 4, !tbaa !9
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %146, label %258

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #4
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %147, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %148 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %20, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %148, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %149 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %20, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8, !tbaa !18
  store ptr %150, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %151 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %20, i32 0, i32 2
  %152 = load i64, ptr %151, align 8, !tbaa !14
  store i64 %152, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %153 = load i64, ptr %23, align 8, !tbaa !12
  %154 = urem i64 %153, 128
  %155 = icmp eq i64 %154, 0
  br i1 %155, label %156, label %160

156:                                              ; preds = %146
  %157 = load i64, ptr %23, align 8, !tbaa !12
  %158 = icmp ugt i64 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %156
  store i32 128, ptr %24, align 4, !tbaa !9
  br label %164

160:                                              ; preds = %156, %146
  %161 = load i64, ptr %23, align 8, !tbaa !12
  %162 = urem i64 %161, 128
  %163 = trunc i64 %162 to i32
  store i32 %163, ptr %24, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %160, %159
  %165 = load i32, ptr %24, align 4, !tbaa !9
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %191, label %167

167:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %168 = load i64, ptr %23, align 8, !tbaa !12
  %169 = load i32, ptr %24, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = sub i64 %168, %170
  store i64 %171, ptr %25, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %172 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %21, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8, !tbaa !19
  store ptr %173, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %174 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %21, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !20
  store ptr %175, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 1, ptr %28, align 4, !tbaa !9
  %176 = load ptr, ptr %26, align 8, !tbaa !5
  %177 = load ptr, ptr %27, align 8, !tbaa !5
  %178 = load i64, ptr %25, align 8, !tbaa !12
  %179 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %178)
  %180 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 0
  %181 = extractvalue { i64, i64 } %179, 0
  store i64 %181, ptr %180, align 16
  %182 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 1
  %183 = extractvalue { i64, i64 } %179, 1
  store i64 %183, ptr %182, align 8
  %184 = load i128, ptr %29, align 16, !tbaa !21
  %185 = load ptr, ptr %22, align 8, !tbaa !5
  %186 = load i32, ptr %28, align 4, !tbaa !9
  store i128 %184, ptr %30, align 16, !tbaa !21
  %187 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 0
  %188 = load i64, ptr %187, align 16
  %189 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 1
  %190 = load i64, ptr %189, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 128, ptr noundef %176, ptr noundef %177, i64 noundef %188, i64 noundef %190, ptr noundef %185, i32 noundef %186)
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %191

191:                                              ; preds = %167, %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %192 = load i32, ptr %7, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = urem i64 %193, 128
  %195 = icmp eq i64 %194, 0
  br i1 %195, label %196, label %201

196:                                              ; preds = %191
  %197 = load i32, ptr %7, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = icmp ugt i64 %198, 0
  br i1 %199, label %200, label %201

200:                                              ; preds = %196
  store i32 128, ptr %31, align 4, !tbaa !9
  br label %206

201:                                              ; preds = %196, %191
  %202 = load i32, ptr %7, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = urem i64 %203, 128
  %205 = trunc i64 %204 to i32
  store i32 %205, ptr %31, align 4, !tbaa !9
  br label %206

206:                                              ; preds = %201, %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  %207 = load i32, ptr %7, align 4, !tbaa !9
  %208 = load i32, ptr %31, align 4, !tbaa !9
  %209 = sub i32 %207, %208
  %210 = udiv i32 %209, 128
  store i32 %210, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %211 = load i32, ptr %32, align 4, !tbaa !9
  %212 = mul i32 %211, 128
  store i32 %212, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  %213 = load i32, ptr %7, align 4, !tbaa !9
  %214 = load i32, ptr %33, align 4, !tbaa !9
  %215 = sub i32 %213, %214
  store i32 %215, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %216, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = load i32, ptr %33, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds i8, ptr %217, i64 %219
  store ptr %220, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  %221 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %21, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8, !tbaa !19
  store ptr %222, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %223 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %21, i32 0, i32 1
  %224 = load ptr, ptr %223, align 8, !tbaa !20
  store ptr %224, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  %225 = load i32, ptr %33, align 4, !tbaa !9
  %226 = udiv i32 %225, 128
  store i32 %226, ptr %39, align 4, !tbaa !9
  %227 = load i32, ptr %33, align 4, !tbaa !9
  %228 = load ptr, ptr %37, align 8, !tbaa !5
  %229 = load ptr, ptr %38, align 8, !tbaa !5
  %230 = load i64, ptr %23, align 8, !tbaa !12
  %231 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %230)
  %232 = getelementptr inbounds { i64, i64 }, ptr %40, i32 0, i32 0
  %233 = extractvalue { i64, i64 } %231, 0
  store i64 %233, ptr %232, align 16
  %234 = getelementptr inbounds { i64, i64 }, ptr %40, i32 0, i32 1
  %235 = extractvalue { i64, i64 } %231, 1
  store i64 %235, ptr %234, align 8
  %236 = load i128, ptr %40, align 16, !tbaa !21
  %237 = load ptr, ptr %35, align 8, !tbaa !5
  %238 = load i32, ptr %39, align 4, !tbaa !9
  store i128 %236, ptr %41, align 16, !tbaa !21
  %239 = getelementptr inbounds { i64, i64 }, ptr %41, i32 0, i32 0
  %240 = load i64, ptr %239, align 16
  %241 = getelementptr inbounds { i64, i64 }, ptr %41, i32 0, i32 1
  %242 = load i64, ptr %241, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef %227, ptr noundef %228, ptr noundef %229, i64 noundef %240, i64 noundef %242, ptr noundef %237, i32 noundef %238)
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  %243 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %243, ptr %42, align 8, !tbaa !5
  %244 = load ptr, ptr %42, align 8, !tbaa !5
  %245 = load ptr, ptr %36, align 8, !tbaa !5
  %246 = load i32, ptr %34, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = mul i64 %247, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %244, ptr align 1 %245, i64 %248, i1 false)
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %43, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %250, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !17
  %251 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %43, i32 0, i32 1
  %252 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %252, ptr %251, align 8, !tbaa !18
  %253 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %43, i32 0, i32 2
  %254 = load i64, ptr %23, align 8, !tbaa !12
  %255 = load i32, ptr %7, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = add i64 %254, %256
  store i64 %257, ptr %253, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %249, ptr align 8 %43, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  br label %426

258:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  %259 = load i32, ptr %11, align 4, !tbaa !9
  %260 = sub i32 128, %259
  store i32 %260, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %261, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = load i32, ptr %44, align 4, !tbaa !9
  %264 = zext i32 %263 to i64
  %265 = getelementptr inbounds i8, ptr %262, i64 %264
  store ptr %265, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #4
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 8 %266, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #4
  %267 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %47, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %267, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #4
  %268 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %47, i32 0, i32 1
  %269 = load ptr, ptr %268, align 8, !tbaa !18
  store ptr %269, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #4
  %270 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %47, i32 0, i32 2
  %271 = load i64, ptr %270, align 8, !tbaa !14
  store i64 %271, ptr %50, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #4
  %272 = load i64, ptr %50, align 8, !tbaa !12
  %273 = urem i64 %272, 128
  %274 = icmp eq i64 %273, 0
  br i1 %274, label %275, label %279

275:                                              ; preds = %258
  %276 = load i64, ptr %50, align 8, !tbaa !12
  %277 = icmp ugt i64 %276, 0
  br i1 %277, label %278, label %279

278:                                              ; preds = %275
  store i32 128, ptr %51, align 4, !tbaa !9
  br label %283

279:                                              ; preds = %275, %258
  %280 = load i64, ptr %50, align 8, !tbaa !12
  %281 = urem i64 %280, 128
  %282 = trunc i64 %281 to i32
  store i32 %282, ptr %51, align 4, !tbaa !9
  br label %283

283:                                              ; preds = %279, %278
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #4
  %284 = load ptr, ptr %49, align 8, !tbaa !5
  %285 = load i32, ptr %51, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = getelementptr inbounds i8, ptr %284, i64 %286
  store ptr %287, ptr %52, align 8, !tbaa !5
  %288 = load ptr, ptr %52, align 8, !tbaa !5
  %289 = load ptr, ptr %45, align 8, !tbaa !5
  %290 = load i32, ptr %44, align 4, !tbaa !9
  %291 = zext i32 %290 to i64
  %292 = mul i64 %291, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %288, ptr align 1 %289, i64 %292, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #4
  %293 = load i64, ptr %50, align 8, !tbaa !12
  %294 = load i32, ptr %44, align 4, !tbaa !9
  %295 = zext i32 %294 to i64
  %296 = add i64 %293, %295
  store i64 %296, ptr %53, align 8, !tbaa !12
  %297 = load ptr, ptr %5, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %54, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %298, ptr align 8 %48, i64 16, i1 false), !tbaa.struct !17
  %299 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %54, i32 0, i32 1
  %300 = load ptr, ptr %49, align 8, !tbaa !5
  store ptr %300, ptr %299, align 8, !tbaa !18
  %301 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %54, i32 0, i32 2
  %302 = load i64, ptr %53, align 8, !tbaa !12
  store i64 %302, ptr %301, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %297, ptr align 8 %54, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %55) #4
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %303, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #4
  %304 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %55, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %56, ptr align 8 %304, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #4
  %305 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %55, i32 0, i32 1
  %306 = load ptr, ptr %305, align 8, !tbaa !18
  store ptr %306, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #4
  %307 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %55, i32 0, i32 2
  %308 = load i64, ptr %307, align 8, !tbaa !14
  store i64 %308, ptr %58, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #4
  %309 = load i64, ptr %58, align 8, !tbaa !12
  %310 = urem i64 %309, 128
  %311 = icmp eq i64 %310, 0
  br i1 %311, label %312, label %316

312:                                              ; preds = %283
  %313 = load i64, ptr %58, align 8, !tbaa !12
  %314 = icmp ugt i64 %313, 0
  br i1 %314, label %315, label %316

315:                                              ; preds = %312
  store i32 128, ptr %59, align 4, !tbaa !9
  br label %320

316:                                              ; preds = %312, %283
  %317 = load i64, ptr %58, align 8, !tbaa !12
  %318 = urem i64 %317, 128
  %319 = trunc i64 %318 to i32
  store i32 %319, ptr %59, align 4, !tbaa !9
  br label %320

320:                                              ; preds = %316, %315
  %321 = load i32, ptr %59, align 4, !tbaa !9
  %322 = icmp eq i32 %321, 0
  br i1 %322, label %347, label %323

323:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #4
  %324 = load i64, ptr %58, align 8, !tbaa !12
  %325 = load i32, ptr %59, align 4, !tbaa !9
  %326 = zext i32 %325 to i64
  %327 = sub i64 %324, %326
  store i64 %327, ptr %60, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #4
  %328 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %56, i32 0, i32 0
  %329 = load ptr, ptr %328, align 8, !tbaa !19
  store ptr %329, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #4
  %330 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %56, i32 0, i32 1
  %331 = load ptr, ptr %330, align 8, !tbaa !20
  store ptr %331, ptr %62, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #4
  store i32 1, ptr %63, align 4, !tbaa !9
  %332 = load ptr, ptr %61, align 8, !tbaa !5
  %333 = load ptr, ptr %62, align 8, !tbaa !5
  %334 = load i64, ptr %60, align 8, !tbaa !12
  %335 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %334)
  %336 = getelementptr inbounds { i64, i64 }, ptr %64, i32 0, i32 0
  %337 = extractvalue { i64, i64 } %335, 0
  store i64 %337, ptr %336, align 16
  %338 = getelementptr inbounds { i64, i64 }, ptr %64, i32 0, i32 1
  %339 = extractvalue { i64, i64 } %335, 1
  store i64 %339, ptr %338, align 8
  %340 = load i128, ptr %64, align 16, !tbaa !21
  %341 = load ptr, ptr %57, align 8, !tbaa !5
  %342 = load i32, ptr %63, align 4, !tbaa !9
  store i128 %340, ptr %65, align 16, !tbaa !21
  %343 = getelementptr inbounds { i64, i64 }, ptr %65, i32 0, i32 0
  %344 = load i64, ptr %343, align 16
  %345 = getelementptr inbounds { i64, i64 }, ptr %65, i32 0, i32 1
  %346 = load i64, ptr %345, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 128, ptr noundef %332, ptr noundef %333, i64 noundef %344, i64 noundef %346, ptr noundef %341, i32 noundef %342)
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #4
  br label %347

347:                                              ; preds = %323, %320
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #4
  %348 = load i32, ptr %7, align 4, !tbaa !9
  %349 = load i32, ptr %44, align 4, !tbaa !9
  %350 = sub i32 %348, %349
  %351 = zext i32 %350 to i64
  %352 = urem i64 %351, 128
  %353 = icmp eq i64 %352, 0
  br i1 %353, label %354, label %361

354:                                              ; preds = %347
  %355 = load i32, ptr %7, align 4, !tbaa !9
  %356 = load i32, ptr %44, align 4, !tbaa !9
  %357 = sub i32 %355, %356
  %358 = zext i32 %357 to i64
  %359 = icmp ugt i64 %358, 0
  br i1 %359, label %360, label %361

360:                                              ; preds = %354
  store i32 128, ptr %66, align 4, !tbaa !9
  br label %368

361:                                              ; preds = %354, %347
  %362 = load i32, ptr %7, align 4, !tbaa !9
  %363 = load i32, ptr %44, align 4, !tbaa !9
  %364 = sub i32 %362, %363
  %365 = zext i32 %364 to i64
  %366 = urem i64 %365, 128
  %367 = trunc i64 %366 to i32
  store i32 %367, ptr %66, align 4, !tbaa !9
  br label %368

368:                                              ; preds = %361, %360
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #4
  %369 = load i32, ptr %7, align 4, !tbaa !9
  %370 = load i32, ptr %44, align 4, !tbaa !9
  %371 = sub i32 %369, %370
  %372 = load i32, ptr %66, align 4, !tbaa !9
  %373 = sub i32 %371, %372
  %374 = udiv i32 %373, 128
  store i32 %374, ptr %67, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #4
  %375 = load i32, ptr %67, align 4, !tbaa !9
  %376 = mul i32 %375, 128
  store i32 %376, ptr %68, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #4
  %377 = load i32, ptr %7, align 4, !tbaa !9
  %378 = load i32, ptr %44, align 4, !tbaa !9
  %379 = sub i32 %377, %378
  %380 = load i32, ptr %68, align 4, !tbaa !9
  %381 = sub i32 %379, %380
  store i32 %381, ptr %69, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #4
  %382 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %382, ptr %70, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #4
  %383 = load ptr, ptr %46, align 8, !tbaa !5
  %384 = load i32, ptr %68, align 4, !tbaa !9
  %385 = zext i32 %384 to i64
  %386 = getelementptr inbounds i8, ptr %383, i64 %385
  store ptr %386, ptr %71, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #4
  %387 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %56, i32 0, i32 0
  %388 = load ptr, ptr %387, align 8, !tbaa !19
  store ptr %388, ptr %72, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #4
  %389 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %56, i32 0, i32 1
  %390 = load ptr, ptr %389, align 8, !tbaa !20
  store ptr %390, ptr %73, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #4
  %391 = load i32, ptr %68, align 4, !tbaa !9
  %392 = udiv i32 %391, 128
  store i32 %392, ptr %74, align 4, !tbaa !9
  %393 = load i32, ptr %68, align 4, !tbaa !9
  %394 = load ptr, ptr %72, align 8, !tbaa !5
  %395 = load ptr, ptr %73, align 8, !tbaa !5
  %396 = load i64, ptr %58, align 8, !tbaa !12
  %397 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %396)
  %398 = getelementptr inbounds { i64, i64 }, ptr %75, i32 0, i32 0
  %399 = extractvalue { i64, i64 } %397, 0
  store i64 %399, ptr %398, align 16
  %400 = getelementptr inbounds { i64, i64 }, ptr %75, i32 0, i32 1
  %401 = extractvalue { i64, i64 } %397, 1
  store i64 %401, ptr %400, align 8
  %402 = load i128, ptr %75, align 16, !tbaa !21
  %403 = load ptr, ptr %70, align 8, !tbaa !5
  %404 = load i32, ptr %74, align 4, !tbaa !9
  store i128 %402, ptr %76, align 16, !tbaa !21
  %405 = getelementptr inbounds { i64, i64 }, ptr %76, i32 0, i32 0
  %406 = load i64, ptr %405, align 16
  %407 = getelementptr inbounds { i64, i64 }, ptr %76, i32 0, i32 1
  %408 = load i64, ptr %407, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef %393, ptr noundef %394, ptr noundef %395, i64 noundef %406, i64 noundef %408, ptr noundef %403, i32 noundef %404)
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #4
  %409 = load ptr, ptr %57, align 8, !tbaa !5
  store ptr %409, ptr %77, align 8, !tbaa !5
  %410 = load ptr, ptr %77, align 8, !tbaa !5
  %411 = load ptr, ptr %71, align 8, !tbaa !5
  %412 = load i32, ptr %69, align 4, !tbaa !9
  %413 = zext i32 %412 to i64
  %414 = mul i64 %413, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %410, ptr align 1 %411, i64 %414, i1 false)
  %415 = load ptr, ptr %5, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %78, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %416, ptr align 8 %56, i64 16, i1 false), !tbaa.struct !17
  %417 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %78, i32 0, i32 1
  %418 = load ptr, ptr %57, align 8, !tbaa !5
  store ptr %418, ptr %417, align 8, !tbaa !18
  %419 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %78, i32 0, i32 2
  %420 = load i64, ptr %58, align 8, !tbaa !12
  %421 = load i32, ptr %7, align 4, !tbaa !9
  %422 = load i32, ptr %44, align 4, !tbaa !9
  %423 = sub i32 %421, %422
  %424 = zext i32 %423 to i64
  %425 = add i64 %420, %424
  store i64 %425, ptr %419, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %415, ptr align 8 %78, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  br label %426

426:                                              ; preds = %368, %206
  br label %427

427:                                              ; preds = %426, %123
  store i8 0, ptr %4, align 1
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %428

428:                                              ; preds = %427, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #4
  %429 = load i8, ptr %4, align 1
  ret i8 %429
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !13, i64 24}
!15 = !{!"Hacl_Hash_Blake2b_state_t_s", !16, i64 0, !6, i64 16, !13, i64 24}
!16 = !{!"Hacl_Hash_Blake2b_block_state_t_s", !6, i64 0, !6, i64 8}
!17 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!18 = !{!15, !6, i64 16}
!19 = !{!16, !6, i64 0}
!20 = !{!16, !6, i64 8}
!21 = !{!22, !22, i64 0}
!22 = !{!"__int128", !7, i64 0}


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

%struct.Hacl_Hash_Blake2b_block_state_t_s = type { ptr, ptr }

; Function Attrs: nounwind uwtable
declare dso_local void @Hacl_Hash_Blake2b_update_multi(i32 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 4) i8 @Hacl_Hash_Blake2b_update(ptr nocapture noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %.sroa.0129 = alloca %struct.Hacl_Hash_Blake2b_block_state_t_s, align 8
  %.sroa.053 = alloca %struct.Hacl_Hash_Blake2b_block_state_t_s, align 8
  %.sroa.3152.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.3152.0.copyload = load i64, ptr %.sroa.3152.0..sroa_idx, align 8, !tbaa !5
  %4 = zext i32 %2 to i64
  %5 = xor i64 %.sroa.3152.0.copyload, -1
  %6 = icmp ugt i64 %4, %5
  br i1 %6, label %65, label %7

7:                                                ; preds = %3
  %8 = and i64 %.sroa.3152.0.copyload, 127
  %9 = icmp eq i64 %8, 0
  %10 = icmp ne i64 %.sroa.3152.0.copyload, 0
  %or.cond = and i1 %10, %9
  %11 = trunc nuw nsw i64 %8 to i32
  %.0184 = select i1 %or.cond, i32 128, i32 %11
  %12 = sub nuw nsw i32 128, %.0184
  %.not = icmp ult i32 %12, %2
  %.sroa.5127.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 16
  br i1 %.not, label %16, label %13

13:                                               ; preds = %7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.0129, ptr noundef nonnull align 8 dereferenceable(16) %0, i64 16, i1 false)
  %.sroa.4142.0.copyload = load ptr, ptr %.sroa.5127.0..sroa_idx, align 8, !tbaa !9
  %. = select i1 %or.cond, i64 128, i64 %8
  %14 = getelementptr inbounds i8, ptr %.sroa.4142.0.copyload, i64 %.
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %14, ptr align 1 %1, i64 %4, i1 false)
  %15 = add i64 %.sroa.3152.0.copyload, %4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %.sroa.0129, i64 16, i1 false), !tbaa.struct !11
  br label %.sink.split

16:                                               ; preds = %7
  %17 = icmp eq i32 %.0184, 0
  br i1 %17, label %18, label %33

18:                                               ; preds = %16
  %.sroa.0125.0.copyload = load ptr, ptr %0, align 8, !tbaa !9
  %.sroa.4126.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.4126.0.copyload = load ptr, ptr %.sroa.4126.0..sroa_idx, align 8, !tbaa !9
  %.sroa.5127.0.copyload = load ptr, ptr %.sroa.5127.0..sroa_idx, align 8, !tbaa !9
  %19 = and i64 %4, 127
  %20 = icmp eq i64 %19, 0
  %21 = trunc nuw nsw i64 %19 to i32
  %.0187 = select i1 %20, i32 128, i32 %21
  %22 = sub i32 %2, %.0187
  %23 = lshr i32 %22, 7
  %24 = and i32 %22, -128
  %25 = sub i32 %2, %24
  %26 = zext i32 %24 to i64
  %27 = getelementptr inbounds i8, ptr %1, i64 %26
  %28 = tail call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %.sroa.3152.0.copyload)
  %29 = extractvalue { i64, i64 } %28, 0
  %30 = extractvalue { i64, i64 } %28, 1
  tail call void @Hacl_Hash_Blake2b_update_multi(i32 noundef %24, ptr noundef %.sroa.0125.0.copyload, ptr noundef %.sroa.4126.0.copyload, i64 noundef %29, i64 noundef %30, ptr noundef %1, i32 noundef %23)
  %31 = zext i32 %25 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.sroa.5127.0.copyload, ptr align 1 %27, i64 %31, i1 false)
  %32 = add i64 %.sroa.3152.0.copyload, %4
  store ptr %.sroa.0125.0.copyload, ptr %0, align 8, !tbaa !9
  store ptr %.sroa.4126.0.copyload, ptr %.sroa.4126.0..sroa_idx, align 8, !tbaa !9
  br label %.sink.split

33:                                               ; preds = %16
  %34 = zext nneg i32 %12 to i64
  %35 = getelementptr inbounds i8, ptr %1, i64 %34
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.053, ptr noundef nonnull align 8 dereferenceable(16) %0, i64 16, i1 false)
  %.sroa.466.0.copyload = load ptr, ptr %.sroa.5127.0..sroa_idx, align 8, !tbaa !9
  %.196 = select i1 %or.cond, i64 128, i64 %8
  %36 = getelementptr inbounds i8, ptr %.sroa.466.0.copyload, i64 %.196
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %36, ptr align 1 %1, i64 %34, i1 false)
  %37 = add i64 %.sroa.3152.0.copyload, %34
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %.sroa.053, i64 16, i1 false), !tbaa.struct !11
  store ptr %.sroa.466.0.copyload, ptr %.sroa.5127.0..sroa_idx, align 8, !tbaa !9
  store i64 %37, ptr %.sroa.3152.0..sroa_idx, align 8, !tbaa !5
  %.sroa.0.0.copyload = load ptr, ptr %0, align 8, !tbaa !9
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.4.0.copyload = load ptr, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  %38 = and i64 %37, 127
  %39 = icmp eq i64 %38, 0
  %40 = icmp ne i64 %37, 0
  %or.cond12 = and i1 %40, %39
  %41 = trunc nuw nsw i64 %38 to i32
  %.0189 = select i1 %or.cond12, i32 128, i32 %41
  %42 = icmp eq i32 %.0189, 0
  br i1 %42, label %49, label %43

43:                                               ; preds = %33
  %44 = zext nneg i32 %.0189 to i64
  %45 = sub i64 %37, %44
  %46 = tail call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %45)
  %47 = extractvalue { i64, i64 } %46, 0
  %48 = extractvalue { i64, i64 } %46, 1
  tail call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 128, ptr noundef %.sroa.0.0.copyload, ptr noundef %.sroa.4.0.copyload, i64 noundef %47, i64 noundef %48, ptr noundef %.sroa.466.0.copyload, i32 noundef 1)
  br label %49

49:                                               ; preds = %43, %33
  %50 = sub i32 %2, %12
  %51 = zext i32 %50 to i64
  %52 = and i64 %51, 127
  %.not198 = icmp eq i64 %52, 0
  %53 = trunc nuw nsw i64 %52 to i32
  %.0190 = select i1 %.not198, i32 128, i32 %53
  %54 = sub i32 %50, %.0190
  %55 = lshr i32 %54, 7
  %56 = and i32 %54, -128
  %57 = sub i32 %50, %56
  %58 = zext i32 %56 to i64
  %59 = getelementptr inbounds i8, ptr %35, i64 %58
  %60 = tail call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %37)
  %61 = extractvalue { i64, i64 } %60, 0
  %62 = extractvalue { i64, i64 } %60, 1
  tail call void @Hacl_Hash_Blake2b_update_multi(i32 noundef %56, ptr noundef %.sroa.0.0.copyload, ptr noundef %.sroa.4.0.copyload, i64 noundef %61, i64 noundef %62, ptr noundef %35, i32 noundef %55)
  %63 = zext i32 %57 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.sroa.466.0.copyload, ptr align 1 %59, i64 %63, i1 false)
  %64 = add i64 %37, %51
  store ptr %.sroa.0.0.copyload, ptr %0, align 8, !tbaa !9
  store ptr %.sroa.4.0.copyload, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  br label %.sink.split

.sink.split:                                      ; preds = %18, %49, %13
  %.sroa.5127.0.copyload.sink = phi ptr [ %.sroa.5127.0.copyload, %18 ], [ %.sroa.466.0.copyload, %49 ], [ %.sroa.4142.0.copyload, %13 ]
  %.sink = phi i64 [ %32, %18 ], [ %64, %49 ], [ %15, %13 ]
  store ptr %.sroa.5127.0.copyload.sink, ptr %.sroa.5127.0..sroa_idx, align 8, !tbaa !9
  store i64 %.sink, ptr %.sroa.3152.0..sroa_idx, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %.sink.split, %3
  %.0 = phi i8 [ 3, %3 ], [ 0, %.sink.split ]
  ret i8 %.0
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }

!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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9, i64 24, i64 8, !5}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass