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

; 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.K___uint32_t_uint32_t_s = type { i32, i32 }

@.str = external hidden unnamed_addr constant [70 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 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

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_HMAC_compute_blake2b_32(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #6 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca [16 x i64], align 16
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca [16 x i64], align 16
  %28 = alloca i128, align 16
  %29 = alloca i128, align 16
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %34 = alloca i32, align 4
  %35 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %36 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca [16 x i64], align 16
  %43 = alloca i128, align 16
  %44 = alloca i128, align 16
  %45 = alloca [16 x i64], align 16
  %46 = alloca i128, align 16
  %47 = alloca i128, align 16
  %48 = alloca [16 x i64], align 16
  %49 = alloca i128, align 16
  %50 = alloca i128, align 16
  %51 = alloca i128, align 16
  %52 = alloca i128, align 16
  %53 = alloca i128, align 16
  %54 = alloca i128, align 16
  %55 = alloca ptr, align 8
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %60 = alloca i32, align 4
  %61 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %62 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %63 = alloca i32, align 4
  %64 = alloca i32, align 4
  %65 = alloca i32, align 4
  %66 = alloca ptr, align 8
  %67 = alloca ptr, align 8
  %68 = alloca [16 x i64], align 16
  %69 = alloca i128, align 16
  %70 = alloca i128, align 16
  %71 = alloca [16 x i64], align 16
  %72 = alloca i128, align 16
  %73 = alloca i128, align 16
  %74 = alloca [16 x i64], align 16
  %75 = alloca i128, align 16
  %76 = alloca i128, align 16
  %77 = alloca i128, align 16
  %78 = alloca i128, align 16
  %79 = alloca i128, align 16
  %80 = alloca i128, align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 128, ptr %11, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %5
  %82 = load i32, ptr %11, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = icmp ugt i64 %83, -1
  br i1 %84, label %85, label %87

85:                                               ; preds = %81
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 707)
  call void @exit(i32 noundef 253) #8
  unreachable

87:                                               ; preds = %81
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %90 = load i32, ptr %11, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = mul i64 %91, 1
  %93 = alloca i8, i64 %92, align 16
  store ptr %93, ptr %12, align 8, !tbaa !5
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = load i32, ptr %11, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = mul i64 %96, 1
  call void @llvm.memset.p0.i64(ptr align 1 %94, i8 0, i64 %97, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %98, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = icmp ule i32 %99, 128
  br i1 %100, label %101, label %103

101:                                              ; preds = %89
  %102 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %102, ptr %14, align 4, !tbaa !9
  br label %104

103:                                              ; preds = %89
  store i32 64, ptr %14, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %103, %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds i8, ptr %105, i64 %107
  store ptr %108, ptr %15, align 8, !tbaa !5
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = icmp ule i32 %110, 128
  br i1 %111, label %112, label %118

112:                                              ; preds = %104
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = mul i64 %116, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %113, ptr align 1 %114, i64 %117, i1 false)
  br label %122

118:                                              ; preds = %104
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = load i32, ptr %8, align 4, !tbaa !9
  call void @Hacl_Hash_Blake2b_hash_with_key(ptr noundef %119, i32 noundef 64, ptr noundef %120, i32 noundef %121, ptr noundef null, i32 noundef 0)
  br label %122

122:                                              ; preds = %118, %112
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %11, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = icmp ugt i64 %125, -1
  br i1 %126, label %127, label %129

127:                                              ; preds = %123
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 730)
  call void @exit(i32 noundef 253) #8
  unreachable

129:                                              ; preds = %123
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %132 = load i32, ptr %11, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = mul i64 %133, 1
  %135 = alloca i8, i64 %134, align 16
  store ptr %135, ptr %16, align 8, !tbaa !5
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = mul i64 %138, 1
  call void @llvm.memset.p0.i64(ptr align 1 %136, i8 54, i64 %139, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %166, %131
  %141 = load i32, ptr %17, align 4, !tbaa !9
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = icmp ult i32 %141, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %169

145:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  %147 = load i32, ptr %17, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds i8, ptr %146, i64 %148
  %150 = load i8, ptr %149, align 1, !tbaa !11
  store i8 %150, ptr %18, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = load i32, ptr %17, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds i8, ptr %151, i64 %153
  %155 = load i8, ptr %154, align 1, !tbaa !11
  store i8 %155, ptr %19, align 1, !tbaa !11
  %156 = load i8, ptr %18, align 1, !tbaa !11
  %157 = zext i8 %156 to i32
  %158 = load i8, ptr %19, align 1, !tbaa !11
  %159 = zext i8 %158 to i32
  %160 = xor i32 %157, %159
  %161 = trunc i32 %160 to i8
  %162 = load ptr, ptr %16, align 8, !tbaa !5
  %163 = load i32, ptr %17, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds i8, ptr %162, i64 %164
  store i8 %161, ptr %165, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  br label %166

166:                                              ; preds = %145
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = add i32 %167, 1
  store i32 %168, ptr %17, align 4, !tbaa !9
  br label %140, !llvm.loop !12

169:                                              ; preds = %144
  br label %170

170:                                              ; preds = %169
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = icmp ugt i64 %172, -1
  br i1 %173, label %174, label %176

174:                                              ; preds = %170
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 739)
  call void @exit(i32 noundef 253) #8
  unreachable

176:                                              ; preds = %170
  br label %177

177:                                              ; preds = %176
  br label %178

178:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %179 = load i32, ptr %11, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = mul i64 %180, 1
  %182 = alloca i8, i64 %181, align 16
  store ptr %182, ptr %20, align 8, !tbaa !5
  %183 = load ptr, ptr %20, align 8, !tbaa !5
  %184 = load i32, ptr %11, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = mul i64 %185, 1
  call void @llvm.memset.p0.i64(ptr align 1 %183, i8 92, i64 %186, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %213, %178
  %188 = load i32, ptr %21, align 4, !tbaa !9
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = icmp ult i32 %188, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %216

192:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = load i32, ptr %21, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = getelementptr inbounds i8, ptr %193, i64 %195
  %197 = load i8, ptr %196, align 1, !tbaa !11
  store i8 %197, ptr %22, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  %198 = load ptr, ptr %12, align 8, !tbaa !5
  %199 = load i32, ptr %21, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = getelementptr inbounds i8, ptr %198, i64 %200
  %202 = load i8, ptr %201, align 1, !tbaa !11
  store i8 %202, ptr %23, align 1, !tbaa !11
  %203 = load i8, ptr %22, align 1, !tbaa !11
  %204 = zext i8 %203 to i32
  %205 = load i8, ptr %23, align 1, !tbaa !11
  %206 = zext i8 %205 to i32
  %207 = xor i32 %204, %206
  %208 = trunc i32 %207 to i8
  %209 = load ptr, ptr %20, align 8, !tbaa !5
  %210 = load i32, ptr %21, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds i8, ptr %209, i64 %211
  store i8 %208, ptr %212, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %213

213:                                              ; preds = %192
  %214 = load i32, ptr %21, align 4, !tbaa !9
  %215 = add i32 %214, 1
  store i32 %215, ptr %21, align 4, !tbaa !9
  br label %187, !llvm.loop !14

216:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 128, ptr %24) #7
  call void @llvm.memset.p0.i64(ptr align 16 %24, i8 0, i64 128, i1 false)
  %217 = getelementptr inbounds [16 x i64], ptr %24, i64 0, i64 0
  call void @Hacl_Hash_Blake2b_init(ptr noundef %217, i32 noundef 0, i32 noundef 64)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %218 = getelementptr inbounds [16 x i64], ptr %24, i64 0, i64 0
  store ptr %218, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %219, ptr %26, align 8, !tbaa !5
  %220 = load i32, ptr %10, align 4, !tbaa !9
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %222, label %236

222:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 128, ptr %27) #7
  call void @llvm.memset.p0.i64(ptr align 16 %27, i8 0, i64 128, i1 false)
  %223 = getelementptr inbounds [16 x i64], ptr %27, i64 0, i64 0
  %224 = load ptr, ptr %25, align 8, !tbaa !5
  %225 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 0)
  %226 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 0
  %227 = extractvalue { i64, i64 } %225, 0
  store i64 %227, ptr %226, align 16
  %228 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 1
  %229 = extractvalue { i64, i64 } %225, 1
  store i64 %229, ptr %228, align 8
  %230 = load i128, ptr %28, align 16, !tbaa !15
  %231 = load ptr, ptr %16, align 8, !tbaa !5
  store i128 %230, ptr %29, align 16, !tbaa !15
  %232 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 0
  %233 = load i64, ptr %232, align 16
  %234 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 1
  %235 = load i64, ptr %234, align 8
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef 128, ptr noundef %223, ptr noundef %224, i64 noundef %233, i64 noundef %235, i32 noundef 128, ptr noundef %231)
  call void @llvm.lifetime.end.p0(i64 128, ptr %27) #7
  br label %345

236:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 128, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %237 = load i32, ptr %10, align 4, !tbaa !9
  %238 = load i32, ptr %30, align 4, !tbaa !9
  %239 = udiv i32 %237, %238
  store i32 %239, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %240 = load i32, ptr %10, align 4, !tbaa !9
  %241 = load i32, ptr %30, align 4, !tbaa !9
  %242 = urem i32 %240, %241
  store i32 %242, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %243 = load i32, ptr %31, align 4, !tbaa !9
  %244 = icmp ugt i32 %243, 0
  br i1 %244, label %245, label %259

245:                                              ; preds = %236
  %246 = load i32, ptr %32, align 4, !tbaa !9
  %247 = icmp eq i32 %246, 0
  br i1 %247, label %248, label %259

248:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %249 = load i32, ptr %31, align 4, !tbaa !9
  %250 = sub i32 %249, 1
  store i32 %250, ptr %34, align 4, !tbaa !9
  %251 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %35, i32 0, i32 0
  %252 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %252, ptr %251, align 4, !tbaa !17
  %253 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %35, i32 0, i32 1
  %254 = load i32, ptr %10, align 4, !tbaa !9
  %255 = load i32, ptr %34, align 4, !tbaa !9
  %256 = load i32, ptr %30, align 4, !tbaa !9
  %257 = mul i32 %255, %256
  %258 = sub i32 %254, %257
  store i32 %258, ptr %253, align 4, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %35, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %264

259:                                              ; preds = %245, %236
  %260 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %36, i32 0, i32 0
  %261 = load i32, ptr %31, align 4, !tbaa !9
  store i32 %261, ptr %260, align 4, !tbaa !17
  %262 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %36, i32 0, i32 1
  %263 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %263, ptr %262, align 4, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %36, i64 8, i1 false), !tbaa.struct !20
  br label %264

264:                                              ; preds = %259, %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %265 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %33, i32 0, i32 0
  %266 = load i32, ptr %265, align 4, !tbaa !17
  store i32 %266, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  %267 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %33, i32 0, i32 1
  %268 = load i32, ptr %267, align 4, !tbaa !19
  store i32 %268, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %269 = load i32, ptr %37, align 4, !tbaa !9
  %270 = load i32, ptr %30, align 4, !tbaa !9
  %271 = mul i32 %269, %270
  store i32 %271, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %272 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %272, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = load i32, ptr %39, align 4, !tbaa !9
  %275 = zext i32 %274 to i64
  %276 = getelementptr inbounds i8, ptr %273, i64 %275
  store ptr %276, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %42) #7
  call void @llvm.memset.p0.i64(ptr align 16 %42, i8 0, i64 128, i1 false)
  %277 = getelementptr inbounds [16 x i64], ptr %42, i64 0, i64 0
  %278 = load ptr, ptr %25, align 8, !tbaa !5
  %279 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 0)
  %280 = getelementptr inbounds { i64, i64 }, ptr %43, i32 0, i32 0
  %281 = extractvalue { i64, i64 } %279, 0
  store i64 %281, ptr %280, align 16
  %282 = getelementptr inbounds { i64, i64 }, ptr %43, i32 0, i32 1
  %283 = extractvalue { i64, i64 } %279, 1
  store i64 %283, ptr %282, align 8
  %284 = load i128, ptr %43, align 16, !tbaa !15
  %285 = load ptr, ptr %16, align 8, !tbaa !5
  store i128 %284, ptr %44, align 16, !tbaa !15
  %286 = getelementptr inbounds { i64, i64 }, ptr %44, i32 0, i32 0
  %287 = load i64, ptr %286, align 16
  %288 = getelementptr inbounds { i64, i64 }, ptr %44, i32 0, i32 1
  %289 = load i64, ptr %288, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 128, ptr noundef %277, ptr noundef %278, i64 noundef %287, i64 noundef %289, ptr noundef %285, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 128, ptr %45) #7
  call void @llvm.memset.p0.i64(ptr align 16 %45, i8 0, i64 128, i1 false)
  %290 = load i32, ptr %37, align 4, !tbaa !9
  %291 = mul i32 %290, 128
  %292 = getelementptr inbounds [16 x i64], ptr %45, i64 0, i64 0
  %293 = load ptr, ptr %25, align 8, !tbaa !5
  %294 = load i32, ptr %30, align 4, !tbaa !9
  %295 = zext i32 %294 to i64
  %296 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %295)
  %297 = getelementptr inbounds { i64, i64 }, ptr %46, i32 0, i32 0
  %298 = extractvalue { i64, i64 } %296, 0
  store i64 %298, ptr %297, align 16
  %299 = getelementptr inbounds { i64, i64 }, ptr %46, i32 0, i32 1
  %300 = extractvalue { i64, i64 } %296, 1
  store i64 %300, ptr %299, align 8
  %301 = load i128, ptr %46, align 16, !tbaa !15
  %302 = load ptr, ptr %40, align 8, !tbaa !5
  %303 = load i32, ptr %37, align 4, !tbaa !9
  store i128 %301, ptr %47, align 16, !tbaa !15
  %304 = getelementptr inbounds { i64, i64 }, ptr %47, i32 0, i32 0
  %305 = load i64, ptr %304, align 16
  %306 = getelementptr inbounds { i64, i64 }, ptr %47, i32 0, i32 1
  %307 = load i64, ptr %306, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef %291, ptr noundef %292, ptr noundef %293, i64 noundef %305, i64 noundef %307, ptr noundef %302, i32 noundef %303)
  call void @llvm.lifetime.start.p0(i64 128, ptr %48) #7
  call void @llvm.memset.p0.i64(ptr align 16 %48, i8 0, i64 128, i1 false)
  %308 = load i32, ptr %38, align 4, !tbaa !9
  %309 = getelementptr inbounds [16 x i64], ptr %48, i64 0, i64 0
  %310 = load ptr, ptr %25, align 8, !tbaa !5
  %311 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 128)
  %312 = getelementptr inbounds { i64, i64 }, ptr %49, i32 0, i32 0
  %313 = extractvalue { i64, i64 } %311, 0
  store i64 %313, ptr %312, align 16
  %314 = getelementptr inbounds { i64, i64 }, ptr %49, i32 0, i32 1
  %315 = extractvalue { i64, i64 } %311, 1
  store i64 %315, ptr %314, align 8
  %316 = load i128, ptr %49, align 16, !tbaa !15
  %317 = load i32, ptr %39, align 4, !tbaa !9
  %318 = zext i32 %317 to i64
  %319 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %318)
  %320 = getelementptr inbounds { i64, i64 }, ptr %50, i32 0, i32 0
  %321 = extractvalue { i64, i64 } %319, 0
  store i64 %321, ptr %320, align 16
  %322 = getelementptr inbounds { i64, i64 }, ptr %50, i32 0, i32 1
  %323 = extractvalue { i64, i64 } %319, 1
  store i64 %323, ptr %322, align 8
  %324 = load i128, ptr %50, align 16, !tbaa !15
  store i128 %316, ptr %51, align 16, !tbaa !15
  %325 = getelementptr inbounds { i64, i64 }, ptr %51, i32 0, i32 0
  %326 = load i64, ptr %325, align 16
  %327 = getelementptr inbounds { i64, i64 }, ptr %51, i32 0, i32 1
  %328 = load i64, ptr %327, align 8
  store i128 %324, ptr %52, align 16, !tbaa !15
  %329 = getelementptr inbounds { i64, i64 }, ptr %52, i32 0, i32 0
  %330 = load i64, ptr %329, align 16
  %331 = getelementptr inbounds { i64, i64 }, ptr %52, i32 0, i32 1
  %332 = load i64, ptr %331, align 8
  %333 = call { i64, i64 } @FStar_UInt128_add(i64 noundef %326, i64 noundef %328, i64 noundef %330, i64 noundef %332)
  %334 = getelementptr inbounds { i64, i64 }, ptr %53, i32 0, i32 0
  %335 = extractvalue { i64, i64 } %333, 0
  store i64 %335, ptr %334, align 16
  %336 = getelementptr inbounds { i64, i64 }, ptr %53, i32 0, i32 1
  %337 = extractvalue { i64, i64 } %333, 1
  store i64 %337, ptr %336, align 8
  %338 = load i128, ptr %53, align 16, !tbaa !15
  %339 = load i32, ptr %38, align 4, !tbaa !9
  %340 = load ptr, ptr %41, align 8, !tbaa !5
  store i128 %338, ptr %54, align 16, !tbaa !15
  %341 = getelementptr inbounds { i64, i64 }, ptr %54, i32 0, i32 0
  %342 = load i64, ptr %341, align 16
  %343 = getelementptr inbounds { i64, i64 }, ptr %54, i32 0, i32 1
  %344 = load i64, ptr %343, align 8
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef %308, ptr noundef %309, ptr noundef %310, i64 noundef %342, i64 noundef %344, i32 noundef %339, ptr noundef %340)
  call void @llvm.lifetime.end.p0(i64 128, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %345

345:                                              ; preds = %264, %222
  %346 = load ptr, ptr %26, align 8, !tbaa !5
  %347 = load ptr, ptr %25, align 8, !tbaa !5
  call void @Hacl_Hash_Blake2b_finish(i32 noundef 64, ptr noundef %346, ptr noundef %347)
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #7
  %348 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %348, ptr %55, align 8, !tbaa !5
  %349 = load ptr, ptr %25, align 8, !tbaa !5
  call void @Hacl_Hash_Blake2b_init(ptr noundef %349, i32 noundef 0, i32 noundef 64)
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #7
  store i32 128, ptr %56, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #7
  %350 = load i32, ptr %56, align 4, !tbaa !9
  %351 = udiv i32 64, %350
  store i32 %351, ptr %57, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #7
  %352 = load i32, ptr %56, align 4, !tbaa !9
  %353 = urem i32 64, %352
  store i32 %353, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #7
  %354 = load i32, ptr %57, align 4, !tbaa !9
  %355 = icmp ugt i32 %354, 0
  br i1 %355, label %356, label %369

356:                                              ; preds = %345
  %357 = load i32, ptr %58, align 4, !tbaa !9
  %358 = icmp eq i32 %357, 0
  br i1 %358, label %359, label %369

359:                                              ; preds = %356
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #7
  %360 = load i32, ptr %57, align 4, !tbaa !9
  %361 = sub i32 %360, 1
  store i32 %361, ptr %60, align 4, !tbaa !9
  %362 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %61, i32 0, i32 0
  %363 = load i32, ptr %60, align 4, !tbaa !9
  store i32 %363, ptr %362, align 4, !tbaa !17
  %364 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %61, i32 0, i32 1
  %365 = load i32, ptr %60, align 4, !tbaa !9
  %366 = load i32, ptr %56, align 4, !tbaa !9
  %367 = mul i32 %365, %366
  %368 = sub i32 64, %367
  store i32 %368, ptr %364, align 4, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %61, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #7
  br label %374

369:                                              ; preds = %356, %345
  %370 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %62, i32 0, i32 0
  %371 = load i32, ptr %57, align 4, !tbaa !9
  store i32 %371, ptr %370, align 4, !tbaa !17
  %372 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %62, i32 0, i32 1
  %373 = load i32, ptr %58, align 4, !tbaa !9
  store i32 %373, ptr %372, align 4, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !20
  br label %374

374:                                              ; preds = %369, %359
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #7
  %375 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %59, i32 0, i32 0
  %376 = load i32, ptr %375, align 4, !tbaa !17
  store i32 %376, ptr %63, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #7
  %377 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %59, i32 0, i32 1
  %378 = load i32, ptr %377, align 4, !tbaa !19
  store i32 %378, ptr %64, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #7
  %379 = load i32, ptr %63, align 4, !tbaa !9
  %380 = load i32, ptr %56, align 4, !tbaa !9
  %381 = mul i32 %379, %380
  store i32 %381, ptr %65, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #7
  %382 = load ptr, ptr %55, align 8, !tbaa !5
  store ptr %382, ptr %66, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #7
  %383 = load ptr, ptr %55, align 8, !tbaa !5
  %384 = load i32, ptr %65, align 4, !tbaa !9
  %385 = zext i32 %384 to i64
  %386 = getelementptr inbounds i8, ptr %383, i64 %385
  store ptr %386, ptr %67, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %68) #7
  call void @llvm.memset.p0.i64(ptr align 16 %68, i8 0, i64 128, i1 false)
  %387 = getelementptr inbounds [16 x i64], ptr %68, i64 0, i64 0
  %388 = load ptr, ptr %25, align 8, !tbaa !5
  %389 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 0)
  %390 = getelementptr inbounds { i64, i64 }, ptr %69, i32 0, i32 0
  %391 = extractvalue { i64, i64 } %389, 0
  store i64 %391, ptr %390, align 16
  %392 = getelementptr inbounds { i64, i64 }, ptr %69, i32 0, i32 1
  %393 = extractvalue { i64, i64 } %389, 1
  store i64 %393, ptr %392, align 8
  %394 = load i128, ptr %69, align 16, !tbaa !15
  %395 = load ptr, ptr %20, align 8, !tbaa !5
  store i128 %394, ptr %70, align 16, !tbaa !15
  %396 = getelementptr inbounds { i64, i64 }, ptr %70, i32 0, i32 0
  %397 = load i64, ptr %396, align 16
  %398 = getelementptr inbounds { i64, i64 }, ptr %70, i32 0, i32 1
  %399 = load i64, ptr %398, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 128, ptr noundef %387, ptr noundef %388, i64 noundef %397, i64 noundef %399, ptr noundef %395, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 128, ptr %71) #7
  call void @llvm.memset.p0.i64(ptr align 16 %71, i8 0, i64 128, i1 false)
  %400 = load i32, ptr %63, align 4, !tbaa !9
  %401 = mul i32 %400, 128
  %402 = getelementptr inbounds [16 x i64], ptr %71, i64 0, i64 0
  %403 = load ptr, ptr %25, align 8, !tbaa !5
  %404 = load i32, ptr %56, align 4, !tbaa !9
  %405 = zext i32 %404 to i64
  %406 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %405)
  %407 = getelementptr inbounds { i64, i64 }, ptr %72, i32 0, i32 0
  %408 = extractvalue { i64, i64 } %406, 0
  store i64 %408, ptr %407, align 16
  %409 = getelementptr inbounds { i64, i64 }, ptr %72, i32 0, i32 1
  %410 = extractvalue { i64, i64 } %406, 1
  store i64 %410, ptr %409, align 8
  %411 = load i128, ptr %72, align 16, !tbaa !15
  %412 = load ptr, ptr %66, align 8, !tbaa !5
  %413 = load i32, ptr %63, align 4, !tbaa !9
  store i128 %411, ptr %73, align 16, !tbaa !15
  %414 = getelementptr inbounds { i64, i64 }, ptr %73, i32 0, i32 0
  %415 = load i64, ptr %414, align 16
  %416 = getelementptr inbounds { i64, i64 }, ptr %73, i32 0, i32 1
  %417 = load i64, ptr %416, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef %401, ptr noundef %402, ptr noundef %403, i64 noundef %415, i64 noundef %417, ptr noundef %412, i32 noundef %413)
  call void @llvm.lifetime.start.p0(i64 128, ptr %74) #7
  call void @llvm.memset.p0.i64(ptr align 16 %74, i8 0, i64 128, i1 false)
  %418 = load i32, ptr %64, align 4, !tbaa !9
  %419 = getelementptr inbounds [16 x i64], ptr %74, i64 0, i64 0
  %420 = load ptr, ptr %25, align 8, !tbaa !5
  %421 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 128)
  %422 = getelementptr inbounds { i64, i64 }, ptr %75, i32 0, i32 0
  %423 = extractvalue { i64, i64 } %421, 0
  store i64 %423, ptr %422, align 16
  %424 = getelementptr inbounds { i64, i64 }, ptr %75, i32 0, i32 1
  %425 = extractvalue { i64, i64 } %421, 1
  store i64 %425, ptr %424, align 8
  %426 = load i128, ptr %75, align 16, !tbaa !15
  %427 = load i32, ptr %65, align 4, !tbaa !9
  %428 = zext i32 %427 to i64
  %429 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %428)
  %430 = getelementptr inbounds { i64, i64 }, ptr %76, i32 0, i32 0
  %431 = extractvalue { i64, i64 } %429, 0
  store i64 %431, ptr %430, align 16
  %432 = getelementptr inbounds { i64, i64 }, ptr %76, i32 0, i32 1
  %433 = extractvalue { i64, i64 } %429, 1
  store i64 %433, ptr %432, align 8
  %434 = load i128, ptr %76, align 16, !tbaa !15
  store i128 %426, ptr %77, align 16, !tbaa !15
  %435 = getelementptr inbounds { i64, i64 }, ptr %77, i32 0, i32 0
  %436 = load i64, ptr %435, align 16
  %437 = getelementptr inbounds { i64, i64 }, ptr %77, i32 0, i32 1
  %438 = load i64, ptr %437, align 8
  store i128 %434, ptr %78, align 16, !tbaa !15
  %439 = getelementptr inbounds { i64, i64 }, ptr %78, i32 0, i32 0
  %440 = load i64, ptr %439, align 16
  %441 = getelementptr inbounds { i64, i64 }, ptr %78, i32 0, i32 1
  %442 = load i64, ptr %441, align 8
  %443 = call { i64, i64 } @FStar_UInt128_add(i64 noundef %436, i64 noundef %438, i64 noundef %440, i64 noundef %442)
  %444 = getelementptr inbounds { i64, i64 }, ptr %79, i32 0, i32 0
  %445 = extractvalue { i64, i64 } %443, 0
  store i64 %445, ptr %444, align 16
  %446 = getelementptr inbounds { i64, i64 }, ptr %79, i32 0, i32 1
  %447 = extractvalue { i64, i64 } %443, 1
  store i64 %447, ptr %446, align 8
  %448 = load i128, ptr %79, align 16, !tbaa !15
  %449 = load i32, ptr %64, align 4, !tbaa !9
  %450 = load ptr, ptr %67, align 8, !tbaa !5
  store i128 %448, ptr %80, align 16, !tbaa !15
  %451 = getelementptr inbounds { i64, i64 }, ptr %80, i32 0, i32 0
  %452 = load i64, ptr %451, align 16
  %453 = getelementptr inbounds { i64, i64 }, ptr %80, i32 0, i32 1
  %454 = load i64, ptr %453, align 8
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef %418, ptr noundef %419, ptr noundef %420, i64 noundef %452, i64 noundef %454, i32 noundef %449, ptr noundef %450)
  %455 = load ptr, ptr %6, align 8, !tbaa !5
  %456 = load ptr, ptr %25, align 8, !tbaa !5
  call void @Hacl_Hash_Blake2b_finish(i32 noundef 64, ptr noundef %455, ptr noundef %456)
  call void @llvm.lifetime.end.p0(i64 128, ptr %74) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %71) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %68) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  ret void
}

declare void @Hacl_Hash_Blake2b_hash_with_key(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

declare void @Hacl_Hash_Blake2b_init(ptr noundef, i32 noundef, i32 noundef) #1

declare void @Hacl_Hash_Blake2b_update_last(i32 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef) #1

declare void @Hacl_Hash_Blake2b_update_multi(i32 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i32 noundef) #1

declare void @Hacl_Hash_Blake2b_finish(i32 noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"__int128", !7, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"K___uint32_t_uint32_t_s", !10, i64 0, !10, i64 4}
!19 = !{!18, !10, i64 4}
!20 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}


; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_HMAC_compute_blake2b_32(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #4 {
  %6 = alloca [16 x i64], align 16
  %7 = alloca [16 x i64], align 16
  %8 = alloca [16 x i64], align 16
  %9 = alloca [16 x i64], align 16
  %10 = alloca [16 x i64], align 16
  %11 = alloca [16 x i64], align 16
  %12 = alloca [16 x i64], align 16
  %13 = alloca [16 x i64], align 16
  %14 = alloca [128 x i8], align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %14, i8 0, i64 128, i1 false)
  %15 = icmp ult i32 %2, 129
  br i1 %15, label %16, label %18

16:                                               ; preds = %5
  %17 = zext nneg i32 %2 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %14, ptr align 1 %1, i64 %17, i1 false)
  br label %vector.ph

18:                                               ; preds = %5
  call void @Hacl_Hash_Blake2b_hash_with_key(ptr noundef nonnull %14, i32 noundef 64, ptr noundef %1, i32 noundef %2, ptr noundef null, i32 noundef 0) #6
  br label %vector.ph

vector.ph:                                        ; preds = %18, %16
  %19 = alloca [128 x i8], align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %19, i8 54, i64 128, i1 false)
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %wide.load = load <16 x i8>, ptr %19, align 16, !tbaa !5
  %wide.load181 = load <16 x i8>, ptr %20, align 16, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %14, i64 16
  %wide.load182 = load <16 x i8>, ptr %14, align 16, !tbaa !5
  %wide.load183 = load <16 x i8>, ptr %21, align 16, !tbaa !5
  %22 = xor <16 x i8> %wide.load182, %wide.load
  %23 = xor <16 x i8> %wide.load183, %wide.load181
  store <16 x i8> %22, ptr %19, align 16, !tbaa !5
  store <16 x i8> %23, ptr %20, align 16, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %19, i64 32
  %25 = getelementptr inbounds i8, ptr %19, i64 48
  %wide.load.1 = load <16 x i8>, ptr %24, align 16, !tbaa !5
  %wide.load181.1 = load <16 x i8>, ptr %25, align 16, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %14, i64 32
  %27 = getelementptr inbounds i8, ptr %14, i64 48
  %wide.load182.1 = load <16 x i8>, ptr %26, align 16, !tbaa !5
  %wide.load183.1 = load <16 x i8>, ptr %27, align 16, !tbaa !5
  %28 = xor <16 x i8> %wide.load182.1, %wide.load.1
  %29 = xor <16 x i8> %wide.load183.1, %wide.load181.1
  store <16 x i8> %28, ptr %24, align 16, !tbaa !5
  store <16 x i8> %29, ptr %25, align 16, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %19, i64 64
  %31 = getelementptr inbounds i8, ptr %19, i64 80
  %wide.load.2 = load <16 x i8>, ptr %30, align 16, !tbaa !5
  %wide.load181.2 = load <16 x i8>, ptr %31, align 16, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %14, i64 64
  %33 = getelementptr inbounds i8, ptr %14, i64 80
  %wide.load182.2 = load <16 x i8>, ptr %32, align 16, !tbaa !5
  %wide.load183.2 = load <16 x i8>, ptr %33, align 16, !tbaa !5
  %34 = xor <16 x i8> %wide.load182.2, %wide.load.2
  %35 = xor <16 x i8> %wide.load183.2, %wide.load181.2
  store <16 x i8> %34, ptr %30, align 16, !tbaa !5
  store <16 x i8> %35, ptr %31, align 16, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %19, i64 96
  %37 = getelementptr inbounds i8, ptr %19, i64 112
  %wide.load.3 = load <16 x i8>, ptr %36, align 16, !tbaa !5
  %wide.load181.3 = load <16 x i8>, ptr %37, align 16, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %14, i64 96
  %39 = getelementptr inbounds i8, ptr %14, i64 112
  %wide.load182.3 = load <16 x i8>, ptr %38, align 16, !tbaa !5
  %wide.load183.3 = load <16 x i8>, ptr %39, align 16, !tbaa !5
  %40 = xor <16 x i8> %wide.load182.3, %wide.load.3
  %41 = xor <16 x i8> %wide.load183.3, %wide.load181.3
  store <16 x i8> %40, ptr %36, align 16, !tbaa !5
  store <16 x i8> %41, ptr %37, align 16, !tbaa !5
  %42 = alloca [128 x i8], align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %42, i8 92, i64 128, i1 false)
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %wide.load190 = load <16 x i8>, ptr %42, align 16, !tbaa !5
  %wide.load191 = load <16 x i8>, ptr %43, align 16, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %14, i64 16
  %wide.load192 = load <16 x i8>, ptr %14, align 16, !tbaa !5
  %wide.load193 = load <16 x i8>, ptr %44, align 16, !tbaa !5
  %45 = xor <16 x i8> %wide.load192, %wide.load190
  %46 = xor <16 x i8> %wide.load193, %wide.load191
  store <16 x i8> %45, ptr %42, align 16, !tbaa !5
  store <16 x i8> %46, ptr %43, align 16, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %42, i64 32
  %48 = getelementptr inbounds i8, ptr %42, i64 48
  %wide.load190.1 = load <16 x i8>, ptr %47, align 16, !tbaa !5
  %wide.load191.1 = load <16 x i8>, ptr %48, align 16, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %14, i64 32
  %50 = getelementptr inbounds i8, ptr %14, i64 48
  %wide.load192.1 = load <16 x i8>, ptr %49, align 16, !tbaa !5
  %wide.load193.1 = load <16 x i8>, ptr %50, align 16, !tbaa !5
  %51 = xor <16 x i8> %wide.load192.1, %wide.load190.1
  %52 = xor <16 x i8> %wide.load193.1, %wide.load191.1
  store <16 x i8> %51, ptr %47, align 16, !tbaa !5
  store <16 x i8> %52, ptr %48, align 16, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %42, i64 64
  %54 = getelementptr inbounds i8, ptr %42, i64 80
  %wide.load190.2 = load <16 x i8>, ptr %53, align 16, !tbaa !5
  %wide.load191.2 = load <16 x i8>, ptr %54, align 16, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %14, i64 64
  %56 = getelementptr inbounds i8, ptr %14, i64 80
  %wide.load192.2 = load <16 x i8>, ptr %55, align 16, !tbaa !5
  %wide.load193.2 = load <16 x i8>, ptr %56, align 16, !tbaa !5
  %57 = xor <16 x i8> %wide.load192.2, %wide.load190.2
  %58 = xor <16 x i8> %wide.load193.2, %wide.load191.2
  store <16 x i8> %57, ptr %53, align 16, !tbaa !5
  store <16 x i8> %58, ptr %54, align 16, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %42, i64 96
  %60 = getelementptr inbounds i8, ptr %42, i64 112
  %wide.load190.3 = load <16 x i8>, ptr %59, align 16, !tbaa !5
  %wide.load191.3 = load <16 x i8>, ptr %60, align 16, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %14, i64 96
  %62 = getelementptr inbounds i8, ptr %14, i64 112
  %wide.load192.3 = load <16 x i8>, ptr %61, align 16, !tbaa !5
  %wide.load193.3 = load <16 x i8>, ptr %62, align 16, !tbaa !5
  %63 = xor <16 x i8> %wide.load192.3, %wide.load190.3
  %64 = xor <16 x i8> %wide.load193.3, %wide.load191.3
  store <16 x i8> %63, ptr %59, align 16, !tbaa !5
  store <16 x i8> %64, ptr %60, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %6, i8 0, i64 128, i1 false)
  call void @Hacl_Hash_Blake2b_init(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 64) #6
  %65 = icmp eq i32 %4, 0
  br i1 %65, label %66, label %70

66:                                               ; preds = %vector.ph
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %7, i8 0, i64 128, i1 false)
  %67 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 0)
  %68 = extractvalue { i64, i64 } %67, 0
  %69 = extractvalue { i64, i64 } %67, 1
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef 128, ptr noundef nonnull %7, ptr noundef nonnull %6, i64 noundef %68, i64 noundef %69, i32 noundef 128, ptr noundef nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #6
  br label %96

70:                                               ; preds = %vector.ph
  %71 = lshr i32 %4, 7
  %72 = and i32 %4, 127
  %73 = icmp ugt i32 %4, 127
  %74 = icmp eq i32 %72, 0
  %or.cond = and i1 %73, %74
  %75 = add nsw i32 %71, -1
  %76 = shl nuw i32 %75, 7
  %77 = sub i32 %4, %76
  %.sroa.083.0 = select i1 %or.cond, i32 %75, i32 %71
  %.sroa.584.0 = select i1 %or.cond, i32 %77, i32 %72
  %78 = shl nuw i32 %.sroa.083.0, 7
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds i8, ptr %3, i64 %79
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %8, i8 0, i64 128, i1 false)
  %81 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 0)
  %82 = extractvalue { i64, i64 } %81, 0
  %83 = extractvalue { i64, i64 } %81, 1
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 128, ptr noundef nonnull %8, ptr noundef nonnull %6, i64 noundef %82, i64 noundef %83, ptr noundef nonnull %19, i32 noundef 1) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %9) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %9, i8 0, i64 128, i1 false)
  %84 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 128)
  %85 = extractvalue { i64, i64 } %84, 0
  %86 = extractvalue { i64, i64 } %84, 1
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef %78, ptr noundef nonnull %9, ptr noundef nonnull %6, i64 noundef %85, i64 noundef %86, ptr noundef %3, i32 noundef %.sroa.083.0) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %10, i8 0, i64 128, i1 false)
  %87 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 128)
  %88 = extractvalue { i64, i64 } %87, 0
  %89 = extractvalue { i64, i64 } %87, 1
  %90 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %79)
  %91 = extractvalue { i64, i64 } %90, 0
  %92 = extractvalue { i64, i64 } %90, 1
  %93 = call { i64, i64 } @FStar_UInt128_add(i64 noundef %88, i64 noundef %89, i64 noundef %91, i64 noundef %92)
  %94 = extractvalue { i64, i64 } %93, 0
  %95 = extractvalue { i64, i64 } %93, 1
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef %.sroa.584.0, ptr noundef nonnull %10, ptr noundef nonnull %6, i64 noundef %94, i64 noundef %95, i32 noundef %.sroa.584.0, ptr noundef %80) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #6
  br label %96

96:                                               ; preds = %70, %66
  call void @Hacl_Hash_Blake2b_finish(i32 noundef 64, ptr noundef nonnull %19, ptr noundef nonnull %6) #6
  call void @Hacl_Hash_Blake2b_init(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 64) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %11) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %11, i8 0, i64 128, i1 false)
  %97 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 0)
  %98 = extractvalue { i64, i64 } %97, 0
  %99 = extractvalue { i64, i64 } %97, 1
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 128, ptr noundef nonnull %11, ptr noundef nonnull %6, i64 noundef %98, i64 noundef %99, ptr noundef nonnull %42, i32 noundef 1) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %12) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %12, i8 0, i64 128, i1 false)
  %100 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 128)
  %101 = extractvalue { i64, i64 } %100, 0
  %102 = extractvalue { i64, i64 } %100, 1
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 0, ptr noundef nonnull %12, ptr noundef nonnull %6, i64 noundef %101, i64 noundef %102, ptr noundef nonnull %19, i32 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %13) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %13, i8 0, i64 128, i1 false)
  %103 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 128)
  %104 = extractvalue { i64, i64 } %103, 0
  %105 = extractvalue { i64, i64 } %103, 1
  %106 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 0)
  %107 = extractvalue { i64, i64 } %106, 0
  %108 = extractvalue { i64, i64 } %106, 1
  %109 = call { i64, i64 } @FStar_UInt128_add(i64 noundef %104, i64 noundef %105, i64 noundef %107, i64 noundef %108)
  %110 = extractvalue { i64, i64 } %109, 0
  %111 = extractvalue { i64, i64 } %109, 1
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef 64, ptr noundef nonnull %13, ptr noundef nonnull %6, i64 noundef %110, i64 noundef %111, i32 noundef 64, ptr noundef nonnull %19) #6
  call void @Hacl_Hash_Blake2b_finish(i32 noundef 64, ptr noundef %0, ptr noundef nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #6
  ret void
}

declare void @Hacl_Hash_Blake2b_hash_with_key(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

declare void @Hacl_Hash_Blake2b_init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @Hacl_Hash_Blake2b_update_last(i32 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare void @Hacl_Hash_Blake2b_update_multi(i32 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

declare void @Hacl_Hash_Blake2b_finish(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "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 #6 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopLoadEliminationPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass