; LLVM IR from cryspen/libcrux :: sys/hacl/c/src (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 [76 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 nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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

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

; 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) #7 {
  %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 i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca [16 x i64], align 16
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca [16 x i64], align 16
  %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 %struct.K___uint32_t_uint32_t_s, align 4
  %35 = alloca i32, align 4
  %36 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %37 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca [16 x i64], align 16
  %44 = alloca i128, align 16
  %45 = alloca i128, align 16
  %46 = alloca [16 x i64], align 16
  %47 = alloca i128, align 16
  %48 = alloca i128, align 16
  %49 = alloca [16 x i64], 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 i128, align 16
  %56 = alloca ptr, align 8
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %61 = alloca i32, align 4
  %62 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %63 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %64 = alloca i32, align 4
  %65 = alloca i32, align 4
  %66 = alloca i32, align 4
  %67 = alloca ptr, align 8
  %68 = alloca ptr, align 8
  %69 = alloca [16 x i64], align 16
  %70 = alloca i128, align 16
  %71 = alloca i128, align 16
  %72 = alloca [16 x i64], align 16
  %73 = alloca i128, align 16
  %74 = alloca i128, align 16
  %75 = alloca [16 x i64], 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
  %81 = 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) #8
  store i32 128, ptr %11, align 4, !tbaa !9
  br label %82

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

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

88:                                               ; preds = %82
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = call ptr @llvm.stacksave.p0()
  store ptr %93, ptr %12, align 8
  %94 = alloca i8, i64 %92, align 16
  store i64 %92, ptr %13, align 8
  %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 16 %94, i8 0, i64 %97, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store ptr %94, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = icmp ule i32 %98, 128
  br i1 %99, label %100, label %102

100:                                              ; preds = %90
  %101 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %101, ptr %15, align 4, !tbaa !9
  br label %103

102:                                              ; preds = %90
  store i32 64, ptr %15, align 4, !tbaa !9
  br label %103

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

110:                                              ; preds = %103
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = mul i64 %114, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %111, ptr align 1 %112, i64 %115, i1 false)
  br label %120

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

120:                                              ; preds = %116, %110
  br label %121

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

125:                                              ; preds = %121
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 730)
  call void @exit(i32 noundef 253) #9
  unreachable

127:                                              ; preds = %121
  br label %128

128:                                              ; preds = %127
  br label %129

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

136:                                              ; preds = %159, %129
  %137 = load i32, ptr %18, align 4, !tbaa !9
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = icmp ult i32 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %162

141:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  %142 = load i32, ptr %18, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds i8, ptr %132, i64 %143
  %145 = load i8, ptr %144, align 1, !tbaa !11
  store i8 %145, ptr %19, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  %146 = load i32, ptr %18, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds i8, ptr %94, i64 %147
  %149 = load i8, ptr %148, align 1, !tbaa !11
  store i8 %149, ptr %20, align 1, !tbaa !11
  %150 = load i8, ptr %19, align 1, !tbaa !11
  %151 = zext i8 %150 to i32
  %152 = load i8, ptr %20, align 1, !tbaa !11
  %153 = zext i8 %152 to i32
  %154 = xor i32 %151, %153
  %155 = trunc i32 %154 to i8
  %156 = load i32, ptr %18, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds i8, ptr %132, i64 %157
  store i8 %155, ptr %158, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  br label %159

159:                                              ; preds = %141
  %160 = load i32, ptr %18, align 4, !tbaa !9
  %161 = add i32 %160, 1
  store i32 %161, ptr %18, align 4, !tbaa !9
  br label %136, !llvm.loop !12

162:                                              ; preds = %140
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = icmp ugt i64 %165, -1
  br i1 %166, label %167, label %169

167:                                              ; preds = %163
  %168 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 739)
  call void @exit(i32 noundef 253) #9
  unreachable

169:                                              ; preds = %163
  br label %170

170:                                              ; preds = %169
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %11, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = alloca i8, i64 %173, align 16
  store i64 %173, ptr %21, align 8
  %175 = load i32, ptr %11, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = mul i64 %176, 1
  call void @llvm.memset.p0.i64(ptr align 16 %174, i8 92, i64 %177, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %201, %171
  %179 = load i32, ptr %22, align 4, !tbaa !9
  %180 = load i32, ptr %11, align 4, !tbaa !9
  %181 = icmp ult i32 %179, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %204

183:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  %184 = load i32, ptr %22, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds i8, ptr %174, i64 %185
  %187 = load i8, ptr %186, align 1, !tbaa !11
  store i8 %187, ptr %23, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #8
  %188 = load i32, ptr %22, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds i8, ptr %94, i64 %189
  %191 = load i8, ptr %190, align 1, !tbaa !11
  store i8 %191, ptr %24, align 1, !tbaa !11
  %192 = load i8, ptr %23, align 1, !tbaa !11
  %193 = zext i8 %192 to i32
  %194 = load i8, ptr %24, align 1, !tbaa !11
  %195 = zext i8 %194 to i32
  %196 = xor i32 %193, %195
  %197 = trunc i32 %196 to i8
  %198 = load i32, ptr %22, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds i8, ptr %174, i64 %199
  store i8 %197, ptr %200, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  br label %201

201:                                              ; preds = %183
  %202 = load i32, ptr %22, align 4, !tbaa !9
  %203 = add i32 %202, 1
  store i32 %203, ptr %22, align 4, !tbaa !9
  br label %178, !llvm.loop !14

204:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 128, ptr %25) #8
  call void @llvm.memset.p0.i64(ptr align 16 %25, i8 0, i64 128, i1 false)
  %205 = getelementptr inbounds [16 x i64], ptr %25, i64 0, i64 0
  call void @Hacl_Hash_Blake2b_init(ptr noundef %205, i32 noundef 0, i32 noundef 64)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %206 = getelementptr inbounds [16 x i64], ptr %25, i64 0, i64 0
  store ptr %206, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  store ptr %132, ptr %27, align 8, !tbaa !5
  %207 = load i32, ptr %10, align 4, !tbaa !9
  %208 = icmp eq i32 %207, 0
  br i1 %208, label %209, label %222

209:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 128, ptr %28) #8
  call void @llvm.memset.p0.i64(ptr align 16 %28, i8 0, i64 128, i1 false)
  %210 = getelementptr inbounds [16 x i64], ptr %28, i64 0, i64 0
  %211 = load ptr, ptr %26, align 8, !tbaa !5
  %212 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 0)
  %213 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 0
  %214 = extractvalue { i64, i64 } %212, 0
  store i64 %214, ptr %213, align 16
  %215 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 1
  %216 = extractvalue { i64, i64 } %212, 1
  store i64 %216, ptr %215, align 8
  %217 = load i128, ptr %29, align 16, !tbaa !15
  store i128 %217, ptr %30, align 16, !tbaa !15
  %218 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 0
  %219 = load i64, ptr %218, align 16
  %220 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 1
  %221 = load i64, ptr %220, align 8
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef 128, ptr noundef %210, ptr noundef %211, i64 noundef %219, i64 noundef %221, i32 noundef 128, ptr noundef %132)
  call void @llvm.lifetime.end.p0(i64 128, ptr %28) #8
  br label %330

222:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 128, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %223 = load i32, ptr %10, align 4, !tbaa !9
  %224 = load i32, ptr %31, align 4, !tbaa !9
  %225 = udiv i32 %223, %224
  store i32 %225, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %226 = load i32, ptr %10, align 4, !tbaa !9
  %227 = load i32, ptr %31, align 4, !tbaa !9
  %228 = urem i32 %226, %227
  store i32 %228, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %229 = load i32, ptr %32, align 4, !tbaa !9
  %230 = icmp ugt i32 %229, 0
  br i1 %230, label %231, label %245

231:                                              ; preds = %222
  %232 = load i32, ptr %33, align 4, !tbaa !9
  %233 = icmp eq i32 %232, 0
  br i1 %233, label %234, label %245

234:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %235 = load i32, ptr %32, align 4, !tbaa !9
  %236 = sub i32 %235, 1
  store i32 %236, ptr %35, align 4, !tbaa !9
  %237 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %36, i32 0, i32 0
  %238 = load i32, ptr %35, align 4, !tbaa !9
  store i32 %238, ptr %237, align 4, !tbaa !17
  %239 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %36, i32 0, i32 1
  %240 = load i32, ptr %10, align 4, !tbaa !9
  %241 = load i32, ptr %35, align 4, !tbaa !9
  %242 = load i32, ptr %31, align 4, !tbaa !9
  %243 = mul i32 %241, %242
  %244 = sub i32 %240, %243
  store i32 %244, ptr %239, align 4, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %36, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %250

245:                                              ; preds = %231, %222
  %246 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %37, i32 0, i32 0
  %247 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %247, ptr %246, align 4, !tbaa !17
  %248 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %37, i32 0, i32 1
  %249 = load i32, ptr %33, align 4, !tbaa !9
  store i32 %249, ptr %248, align 4, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %37, i64 8, i1 false), !tbaa.struct !20
  br label %250

250:                                              ; preds = %245, %234
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %251 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %34, i32 0, i32 0
  %252 = load i32, ptr %251, align 4, !tbaa !17
  store i32 %252, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %253 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %34, i32 0, i32 1
  %254 = load i32, ptr %253, align 4, !tbaa !19
  store i32 %254, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %255 = load i32, ptr %38, align 4, !tbaa !9
  %256 = load i32, ptr %31, align 4, !tbaa !9
  %257 = mul i32 %255, %256
  store i32 %257, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %258, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %259 = load ptr, ptr %9, align 8, !tbaa !5
  %260 = load i32, ptr %40, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = getelementptr inbounds i8, ptr %259, i64 %261
  store ptr %262, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %43) #8
  call void @llvm.memset.p0.i64(ptr align 16 %43, i8 0, i64 128, i1 false)
  %263 = getelementptr inbounds [16 x i64], ptr %43, i64 0, i64 0
  %264 = load ptr, ptr %26, align 8, !tbaa !5
  %265 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 0)
  %266 = getelementptr inbounds { i64, i64 }, ptr %44, i32 0, i32 0
  %267 = extractvalue { i64, i64 } %265, 0
  store i64 %267, ptr %266, align 16
  %268 = getelementptr inbounds { i64, i64 }, ptr %44, i32 0, i32 1
  %269 = extractvalue { i64, i64 } %265, 1
  store i64 %269, ptr %268, align 8
  %270 = load i128, ptr %44, align 16, !tbaa !15
  store i128 %270, ptr %45, align 16, !tbaa !15
  %271 = getelementptr inbounds { i64, i64 }, ptr %45, i32 0, i32 0
  %272 = load i64, ptr %271, align 16
  %273 = getelementptr inbounds { i64, i64 }, ptr %45, i32 0, i32 1
  %274 = load i64, ptr %273, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 128, ptr noundef %263, ptr noundef %264, i64 noundef %272, i64 noundef %274, ptr noundef %132, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 128, ptr %46) #8
  call void @llvm.memset.p0.i64(ptr align 16 %46, i8 0, i64 128, i1 false)
  %275 = load i32, ptr %38, align 4, !tbaa !9
  %276 = mul i32 %275, 128
  %277 = getelementptr inbounds [16 x i64], ptr %46, i64 0, i64 0
  %278 = load ptr, ptr %26, align 8, !tbaa !5
  %279 = load i32, ptr %31, align 4, !tbaa !9
  %280 = zext i32 %279 to i64
  %281 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %280)
  %282 = getelementptr inbounds { i64, i64 }, ptr %47, i32 0, i32 0
  %283 = extractvalue { i64, i64 } %281, 0
  store i64 %283, ptr %282, align 16
  %284 = getelementptr inbounds { i64, i64 }, ptr %47, i32 0, i32 1
  %285 = extractvalue { i64, i64 } %281, 1
  store i64 %285, ptr %284, align 8
  %286 = load i128, ptr %47, align 16, !tbaa !15
  %287 = load ptr, ptr %41, align 8, !tbaa !5
  %288 = load i32, ptr %38, align 4, !tbaa !9
  store i128 %286, ptr %48, align 16, !tbaa !15
  %289 = getelementptr inbounds { i64, i64 }, ptr %48, i32 0, i32 0
  %290 = load i64, ptr %289, align 16
  %291 = getelementptr inbounds { i64, i64 }, ptr %48, i32 0, i32 1
  %292 = load i64, ptr %291, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef %276, ptr noundef %277, ptr noundef %278, i64 noundef %290, i64 noundef %292, ptr noundef %287, i32 noundef %288)
  call void @llvm.lifetime.start.p0(i64 128, ptr %49) #8
  call void @llvm.memset.p0.i64(ptr align 16 %49, i8 0, i64 128, i1 false)
  %293 = load i32, ptr %39, align 4, !tbaa !9
  %294 = getelementptr inbounds [16 x i64], ptr %49, i64 0, i64 0
  %295 = load ptr, ptr %26, align 8, !tbaa !5
  %296 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 128)
  %297 = getelementptr inbounds { i64, i64 }, ptr %50, i32 0, i32 0
  %298 = extractvalue { i64, i64 } %296, 0
  store i64 %298, ptr %297, align 16
  %299 = getelementptr inbounds { i64, i64 }, ptr %50, i32 0, i32 1
  %300 = extractvalue { i64, i64 } %296, 1
  store i64 %300, ptr %299, align 8
  %301 = load i128, ptr %50, align 16, !tbaa !15
  %302 = load i32, ptr %40, align 4, !tbaa !9
  %303 = zext i32 %302 to i64
  %304 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %303)
  %305 = getelementptr inbounds { i64, i64 }, ptr %51, i32 0, i32 0
  %306 = extractvalue { i64, i64 } %304, 0
  store i64 %306, ptr %305, align 16
  %307 = getelementptr inbounds { i64, i64 }, ptr %51, i32 0, i32 1
  %308 = extractvalue { i64, i64 } %304, 1
  store i64 %308, ptr %307, align 8
  %309 = load i128, ptr %51, align 16, !tbaa !15
  store i128 %301, ptr %52, align 16, !tbaa !15
  %310 = getelementptr inbounds { i64, i64 }, ptr %52, i32 0, i32 0
  %311 = load i64, ptr %310, align 16
  %312 = getelementptr inbounds { i64, i64 }, ptr %52, i32 0, i32 1
  %313 = load i64, ptr %312, align 8
  store i128 %309, ptr %53, align 16, !tbaa !15
  %314 = getelementptr inbounds { i64, i64 }, ptr %53, i32 0, i32 0
  %315 = load i64, ptr %314, align 16
  %316 = getelementptr inbounds { i64, i64 }, ptr %53, i32 0, i32 1
  %317 = load i64, ptr %316, align 8
  %318 = call { i64, i64 } @FStar_UInt128_add(i64 noundef %311, i64 noundef %313, i64 noundef %315, i64 noundef %317)
  %319 = getelementptr inbounds { i64, i64 }, ptr %54, i32 0, i32 0
  %320 = extractvalue { i64, i64 } %318, 0
  store i64 %320, ptr %319, align 16
  %321 = getelementptr inbounds { i64, i64 }, ptr %54, i32 0, i32 1
  %322 = extractvalue { i64, i64 } %318, 1
  store i64 %322, ptr %321, align 8
  %323 = load i128, ptr %54, align 16, !tbaa !15
  %324 = load i32, ptr %39, align 4, !tbaa !9
  %325 = load ptr, ptr %42, align 8, !tbaa !5
  store i128 %323, ptr %55, align 16, !tbaa !15
  %326 = getelementptr inbounds { i64, i64 }, ptr %55, i32 0, i32 0
  %327 = load i64, ptr %326, align 16
  %328 = getelementptr inbounds { i64, i64 }, ptr %55, i32 0, i32 1
  %329 = load i64, ptr %328, align 8
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef %293, ptr noundef %294, ptr noundef %295, i64 noundef %327, i64 noundef %329, i32 noundef %324, ptr noundef %325)
  call void @llvm.lifetime.end.p0(i64 128, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %330

330:                                              ; preds = %250, %209
  %331 = load ptr, ptr %27, align 8, !tbaa !5
  %332 = load ptr, ptr %26, align 8, !tbaa !5
  call void @Hacl_Hash_Blake2b_finish(i32 noundef 64, ptr noundef %331, ptr noundef %332)
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  store ptr %132, ptr %56, align 8, !tbaa !5
  %333 = load ptr, ptr %26, align 8, !tbaa !5
  call void @Hacl_Hash_Blake2b_init(ptr noundef %333, i32 noundef 0, i32 noundef 64)
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #8
  store i32 128, ptr %57, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #8
  %334 = load i32, ptr %57, align 4, !tbaa !9
  %335 = udiv i32 64, %334
  store i32 %335, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #8
  %336 = load i32, ptr %57, align 4, !tbaa !9
  %337 = urem i32 64, %336
  store i32 %337, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #8
  %338 = load i32, ptr %58, align 4, !tbaa !9
  %339 = icmp ugt i32 %338, 0
  br i1 %339, label %340, label %353

340:                                              ; preds = %330
  %341 = load i32, ptr %59, align 4, !tbaa !9
  %342 = icmp eq i32 %341, 0
  br i1 %342, label %343, label %353

343:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #8
  %344 = load i32, ptr %58, align 4, !tbaa !9
  %345 = sub i32 %344, 1
  store i32 %345, ptr %61, align 4, !tbaa !9
  %346 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %62, i32 0, i32 0
  %347 = load i32, ptr %61, align 4, !tbaa !9
  store i32 %347, ptr %346, align 4, !tbaa !17
  %348 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %62, i32 0, i32 1
  %349 = load i32, ptr %61, align 4, !tbaa !9
  %350 = load i32, ptr %57, align 4, !tbaa !9
  %351 = mul i32 %349, %350
  %352 = sub i32 64, %351
  store i32 %352, ptr %348, align 4, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  br label %358

353:                                              ; preds = %340, %330
  %354 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %63, i32 0, i32 0
  %355 = load i32, ptr %58, align 4, !tbaa !9
  store i32 %355, ptr %354, align 4, !tbaa !17
  %356 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %63, i32 0, i32 1
  %357 = load i32, ptr %59, align 4, !tbaa !9
  store i32 %357, ptr %356, align 4, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %63, i64 8, i1 false), !tbaa.struct !20
  br label %358

358:                                              ; preds = %353, %343
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #8
  %359 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %60, i32 0, i32 0
  %360 = load i32, ptr %359, align 4, !tbaa !17
  store i32 %360, ptr %64, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #8
  %361 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %60, i32 0, i32 1
  %362 = load i32, ptr %361, align 4, !tbaa !19
  store i32 %362, ptr %65, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #8
  %363 = load i32, ptr %64, align 4, !tbaa !9
  %364 = load i32, ptr %57, align 4, !tbaa !9
  %365 = mul i32 %363, %364
  store i32 %365, ptr %66, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #8
  %366 = load ptr, ptr %56, align 8, !tbaa !5
  store ptr %366, ptr %67, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #8
  %367 = load ptr, ptr %56, align 8, !tbaa !5
  %368 = load i32, ptr %66, align 4, !tbaa !9
  %369 = zext i32 %368 to i64
  %370 = getelementptr inbounds i8, ptr %367, i64 %369
  store ptr %370, ptr %68, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %69) #8
  call void @llvm.memset.p0.i64(ptr align 16 %69, i8 0, i64 128, i1 false)
  %371 = getelementptr inbounds [16 x i64], ptr %69, i64 0, i64 0
  %372 = load ptr, ptr %26, align 8, !tbaa !5
  %373 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 0)
  %374 = getelementptr inbounds { i64, i64 }, ptr %70, i32 0, i32 0
  %375 = extractvalue { i64, i64 } %373, 0
  store i64 %375, ptr %374, align 16
  %376 = getelementptr inbounds { i64, i64 }, ptr %70, i32 0, i32 1
  %377 = extractvalue { i64, i64 } %373, 1
  store i64 %377, ptr %376, align 8
  %378 = load i128, ptr %70, align 16, !tbaa !15
  store i128 %378, ptr %71, align 16, !tbaa !15
  %379 = getelementptr inbounds { i64, i64 }, ptr %71, i32 0, i32 0
  %380 = load i64, ptr %379, align 16
  %381 = getelementptr inbounds { i64, i64 }, ptr %71, i32 0, i32 1
  %382 = load i64, ptr %381, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 128, ptr noundef %371, ptr noundef %372, i64 noundef %380, i64 noundef %382, ptr noundef %174, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 128, ptr %72) #8
  call void @llvm.memset.p0.i64(ptr align 16 %72, i8 0, i64 128, i1 false)
  %383 = load i32, ptr %64, align 4, !tbaa !9
  %384 = mul i32 %383, 128
  %385 = getelementptr inbounds [16 x i64], ptr %72, i64 0, i64 0
  %386 = load ptr, ptr %26, align 8, !tbaa !5
  %387 = load i32, ptr %57, align 4, !tbaa !9
  %388 = zext i32 %387 to i64
  %389 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %388)
  %390 = getelementptr inbounds { i64, i64 }, ptr %73, i32 0, i32 0
  %391 = extractvalue { i64, i64 } %389, 0
  store i64 %391, ptr %390, align 16
  %392 = getelementptr inbounds { i64, i64 }, ptr %73, i32 0, i32 1
  %393 = extractvalue { i64, i64 } %389, 1
  store i64 %393, ptr %392, align 8
  %394 = load i128, ptr %73, align 16, !tbaa !15
  %395 = load ptr, ptr %67, align 8, !tbaa !5
  %396 = load i32, ptr %64, align 4, !tbaa !9
  store i128 %394, ptr %74, align 16, !tbaa !15
  %397 = getelementptr inbounds { i64, i64 }, ptr %74, i32 0, i32 0
  %398 = load i64, ptr %397, align 16
  %399 = getelementptr inbounds { i64, i64 }, ptr %74, i32 0, i32 1
  %400 = load i64, ptr %399, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef %384, ptr noundef %385, ptr noundef %386, i64 noundef %398, i64 noundef %400, ptr noundef %395, i32 noundef %396)
  call void @llvm.lifetime.start.p0(i64 128, ptr %75) #8
  call void @llvm.memset.p0.i64(ptr align 16 %75, i8 0, i64 128, i1 false)
  %401 = load i32, ptr %65, align 4, !tbaa !9
  %402 = getelementptr inbounds [16 x i64], ptr %75, i64 0, i64 0
  %403 = load ptr, ptr %26, align 8, !tbaa !5
  %404 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef 128)
  %405 = getelementptr inbounds { i64, i64 }, ptr %76, i32 0, i32 0
  %406 = extractvalue { i64, i64 } %404, 0
  store i64 %406, ptr %405, align 16
  %407 = getelementptr inbounds { i64, i64 }, ptr %76, i32 0, i32 1
  %408 = extractvalue { i64, i64 } %404, 1
  store i64 %408, ptr %407, align 8
  %409 = load i128, ptr %76, align 16, !tbaa !15
  %410 = load i32, ptr %66, align 4, !tbaa !9
  %411 = zext i32 %410 to i64
  %412 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %411)
  %413 = getelementptr inbounds { i64, i64 }, ptr %77, i32 0, i32 0
  %414 = extractvalue { i64, i64 } %412, 0
  store i64 %414, ptr %413, align 16
  %415 = getelementptr inbounds { i64, i64 }, ptr %77, i32 0, i32 1
  %416 = extractvalue { i64, i64 } %412, 1
  store i64 %416, ptr %415, align 8
  %417 = load i128, ptr %77, align 16, !tbaa !15
  store i128 %409, ptr %78, align 16, !tbaa !15
  %418 = getelementptr inbounds { i64, i64 }, ptr %78, i32 0, i32 0
  %419 = load i64, ptr %418, align 16
  %420 = getelementptr inbounds { i64, i64 }, ptr %78, i32 0, i32 1
  %421 = load i64, ptr %420, align 8
  store i128 %417, ptr %79, align 16, !tbaa !15
  %422 = getelementptr inbounds { i64, i64 }, ptr %79, i32 0, i32 0
  %423 = load i64, ptr %422, align 16
  %424 = getelementptr inbounds { i64, i64 }, ptr %79, i32 0, i32 1
  %425 = load i64, ptr %424, align 8
  %426 = call { i64, i64 } @FStar_UInt128_add(i64 noundef %419, i64 noundef %421, i64 noundef %423, i64 noundef %425)
  %427 = getelementptr inbounds { i64, i64 }, ptr %80, i32 0, i32 0
  %428 = extractvalue { i64, i64 } %426, 0
  store i64 %428, ptr %427, align 16
  %429 = getelementptr inbounds { i64, i64 }, ptr %80, i32 0, i32 1
  %430 = extractvalue { i64, i64 } %426, 1
  store i64 %430, ptr %429, align 8
  %431 = load i128, ptr %80, align 16, !tbaa !15
  %432 = load i32, ptr %65, align 4, !tbaa !9
  %433 = load ptr, ptr %68, align 8, !tbaa !5
  store i128 %431, ptr %81, align 16, !tbaa !15
  %434 = getelementptr inbounds { i64, i64 }, ptr %81, i32 0, i32 0
  %435 = load i64, ptr %434, align 16
  %436 = getelementptr inbounds { i64, i64 }, ptr %81, i32 0, i32 1
  %437 = load i64, ptr %436, align 8
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef %401, ptr noundef %402, ptr noundef %403, i64 noundef %435, i64 noundef %437, i32 noundef %432, ptr noundef %433)
  %438 = load ptr, ptr %6, align 8, !tbaa !5
  %439 = load ptr, ptr %26, align 8, !tbaa !5
  call void @Hacl_Hash_Blake2b_finish(i32 noundef 64, ptr noundef %438, ptr noundef %439)
  call void @llvm.lifetime.end.p0(i64 128, ptr %75) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %72) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %69) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %440 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %440)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  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 nosync nounwind willreturn }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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.load166 = load <16 x i8>, ptr %20, align 16, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %14, i64 16
  %wide.load167 = load <16 x i8>, ptr %14, align 16, !tbaa !5
  %wide.load168 = load <16 x i8>, ptr %21, align 16, !tbaa !5
  %22 = xor <16 x i8> %wide.load167, %wide.load
  %23 = xor <16 x i8> %wide.load168, %wide.load166
  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.load166.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.load167.1 = load <16 x i8>, ptr %26, align 16, !tbaa !5
  %wide.load168.1 = load <16 x i8>, ptr %27, align 16, !tbaa !5
  %28 = xor <16 x i8> %wide.load167.1, %wide.load.1
  %29 = xor <16 x i8> %wide.load168.1, %wide.load166.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.load166.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.load167.2 = load <16 x i8>, ptr %32, align 16, !tbaa !5
  %wide.load168.2 = load <16 x i8>, ptr %33, align 16, !tbaa !5
  %34 = xor <16 x i8> %wide.load167.2, %wide.load.2
  %35 = xor <16 x i8> %wide.load168.2, %wide.load166.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.load166.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.load167.3 = load <16 x i8>, ptr %38, align 16, !tbaa !5
  %wide.load168.3 = load <16 x i8>, ptr %39, align 16, !tbaa !5
  %40 = xor <16 x i8> %wide.load167.3, %wide.load.3
  %41 = xor <16 x i8> %wide.load168.3, %wide.load166.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.load175 = load <16 x i8>, ptr %42, align 16, !tbaa !5
  %wide.load176 = load <16 x i8>, ptr %43, align 16, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %14, i64 16
  %wide.load177 = load <16 x i8>, ptr %14, align 16, !tbaa !5
  %wide.load178 = load <16 x i8>, ptr %44, align 16, !tbaa !5
  %45 = xor <16 x i8> %wide.load177, %wide.load175
  %46 = xor <16 x i8> %wide.load178, %wide.load176
  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.load175.1 = load <16 x i8>, ptr %47, align 16, !tbaa !5
  %wide.load176.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.load177.1 = load <16 x i8>, ptr %49, align 16, !tbaa !5
  %wide.load178.1 = load <16 x i8>, ptr %50, align 16, !tbaa !5
  %51 = xor <16 x i8> %wide.load177.1, %wide.load175.1
  %52 = xor <16 x i8> %wide.load178.1, %wide.load176.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.load175.2 = load <16 x i8>, ptr %53, align 16, !tbaa !5
  %wide.load176.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.load177.2 = load <16 x i8>, ptr %55, align 16, !tbaa !5
  %wide.load178.2 = load <16 x i8>, ptr %56, align 16, !tbaa !5
  %57 = xor <16 x i8> %wide.load177.2, %wide.load175.2
  %58 = xor <16 x i8> %wide.load178.2, %wide.load176.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.load175.3 = load <16 x i8>, ptr %59, align 16, !tbaa !5
  %wide.load176.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.load177.3 = load <16 x i8>, ptr %61, align 16, !tbaa !5
  %wide.load178.3 = load <16 x i8>, ptr %62, align 16, !tbaa !5
  %63 = xor <16 x i8> %wide.load177.3, %wide.load175.3
  %64 = xor <16 x i8> %wide.load178.3, %wide.load176.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