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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Hacl_Hash_Blake2s_state_t_s = type { %struct.Hacl_Hash_Blake2s_block_state_t_s, ptr, i64 }
%struct.Hacl_Hash_Blake2s_block_state_t_s = type { ptr, ptr }

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

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

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

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

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

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

80:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %81 = load i64, ptr %9, align 8, !tbaa !12
  %82 = urem i64 %81, 64
  %83 = icmp eq i64 %82, 0
  br i1 %83, label %84, label %88

84:                                               ; preds = %80
  %85 = load i64, ptr %9, align 8, !tbaa !12
  %86 = icmp ugt i64 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %84
  store i32 64, ptr %11, align 4, !tbaa !9
  br label %92

88:                                               ; preds = %84, %80
  %89 = load i64, ptr %9, align 8, !tbaa !12
  %90 = urem i64 %89, 64
  %91 = trunc i64 %90 to i32
  store i32 %91, ptr %11, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %88, %87
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = sub i32 64, %94
  %96 = icmp ule i32 %93, %95
  br i1 %96, label %97, label %135

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #3
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %98, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #3
  %99 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %12, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %99, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %100 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %12, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !18
  store ptr %101, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %102 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %12, i32 0, i32 2
  %103 = load i64, ptr %102, align 8, !tbaa !14
  store i64 %103, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %104 = load i64, ptr %15, align 8, !tbaa !12
  %105 = urem i64 %104, 64
  %106 = icmp eq i64 %105, 0
  br i1 %106, label %107, label %111

107:                                              ; preds = %97
  %108 = load i64, ptr %15, align 8, !tbaa !12
  %109 = icmp ugt i64 %108, 0
  br i1 %109, label %110, label %111

110:                                              ; preds = %107
  store i32 64, ptr %16, align 4, !tbaa !9
  br label %115

111:                                              ; preds = %107, %97
  %112 = load i64, ptr %15, align 8, !tbaa !12
  %113 = urem i64 %112, 64
  %114 = trunc i64 %113 to i32
  store i32 %114, ptr %16, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %111, %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = load i32, ptr %16, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds i8, ptr %116, i64 %118
  store ptr %119, ptr %17, align 8, !tbaa !5
  %120 = load ptr, ptr %17, align 8, !tbaa !5
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = mul i64 %123, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %120, ptr align 1 %121, i64 %124, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %125 = load i64, ptr %15, align 8, !tbaa !12
  %126 = load i32, ptr %7, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = add i64 %125, %127
  store i64 %128, ptr %18, align 8, !tbaa !12
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %19, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %130, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !17
  %131 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %19, i32 0, i32 1
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %132, ptr %131, align 8, !tbaa !18
  %133 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %19, i32 0, i32 2
  %134 = load i64, ptr %18, align 8, !tbaa !12
  store i64 %134, ptr %133, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %129, ptr align 8 %19, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #3
  br label %379

135:                                              ; preds = %92
  %136 = load i32, ptr %11, align 4, !tbaa !9
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %138, label %230

138:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #3
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %139, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #3
  %140 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %20, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %140, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %141 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %20, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !18
  store ptr %142, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %143 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %20, i32 0, i32 2
  %144 = load i64, ptr %143, align 8, !tbaa !14
  store i64 %144, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %145 = load i64, ptr %23, align 8, !tbaa !12
  %146 = urem i64 %145, 64
  %147 = icmp eq i64 %146, 0
  br i1 %147, label %148, label %152

148:                                              ; preds = %138
  %149 = load i64, ptr %23, align 8, !tbaa !12
  %150 = icmp ugt i64 %149, 0
  br i1 %150, label %151, label %152

151:                                              ; preds = %148
  store i32 64, ptr %24, align 4, !tbaa !9
  br label %156

152:                                              ; preds = %148, %138
  %153 = load i64, ptr %23, align 8, !tbaa !12
  %154 = urem i64 %153, 64
  %155 = trunc i64 %154 to i32
  store i32 %155, ptr %24, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %152, %151
  %157 = load i32, ptr %24, align 4, !tbaa !9
  %158 = icmp eq i32 %157, 0
  br i1 %158, label %173, label %159

159:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %160 = load i64, ptr %23, align 8, !tbaa !12
  %161 = load i32, ptr %24, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = sub i64 %160, %162
  store i64 %163, ptr %25, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %164 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_block_state_t_s, ptr %21, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !19
  store ptr %165, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  %166 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_block_state_t_s, ptr %21, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !20
  store ptr %167, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  store i32 1, ptr %28, align 4, !tbaa !9
  %168 = load ptr, ptr %26, align 8, !tbaa !5
  %169 = load ptr, ptr %27, align 8, !tbaa !5
  %170 = load i64, ptr %25, align 8, !tbaa !12
  %171 = load ptr, ptr %22, align 8, !tbaa !5
  %172 = load i32, ptr %28, align 4, !tbaa !9
  call void @Hacl_Hash_Blake2s_update_multi(i32 noundef 64, ptr noundef %168, ptr noundef %169, i64 noundef %170, ptr noundef %171, i32 noundef %172)
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  br label %173

173:                                              ; preds = %159, %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  %174 = load i32, ptr %7, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = urem i64 %175, 64
  %177 = icmp eq i64 %176, 0
  br i1 %177, label %178, label %183

178:                                              ; preds = %173
  %179 = load i32, ptr %7, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = icmp ugt i64 %180, 0
  br i1 %181, label %182, label %183

182:                                              ; preds = %178
  store i32 64, ptr %29, align 4, !tbaa !9
  br label %188

183:                                              ; preds = %178, %173
  %184 = load i32, ptr %7, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = urem i64 %185, 64
  %187 = trunc i64 %186 to i32
  store i32 %187, ptr %29, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %183, %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  %189 = load i32, ptr %7, align 4, !tbaa !9
  %190 = load i32, ptr %29, align 4, !tbaa !9
  %191 = sub i32 %189, %190
  %192 = udiv i32 %191, 64
  store i32 %192, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %193 = load i32, ptr %30, align 4, !tbaa !9
  %194 = mul i32 %193, 64
  store i32 %194, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  %195 = load i32, ptr %7, align 4, !tbaa !9
  %196 = load i32, ptr %31, align 4, !tbaa !9
  %197 = sub i32 %195, %196
  store i32 %197, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %198, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = load i32, ptr %31, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds i8, ptr %199, i64 %201
  store ptr %202, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  %203 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_block_state_t_s, ptr %21, i32 0, i32 0
  %204 = load ptr, ptr %203, align 8, !tbaa !19
  store ptr %204, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  %205 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_block_state_t_s, ptr %21, i32 0, i32 1
  %206 = load ptr, ptr %205, align 8, !tbaa !20
  store ptr %206, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  %207 = load i32, ptr %31, align 4, !tbaa !9
  %208 = udiv i32 %207, 64
  store i32 %208, ptr %37, align 4, !tbaa !9
  %209 = load i32, ptr %31, align 4, !tbaa !9
  %210 = load ptr, ptr %35, align 8, !tbaa !5
  %211 = load ptr, ptr %36, align 8, !tbaa !5
  %212 = load i64, ptr %23, align 8, !tbaa !12
  %213 = load ptr, ptr %33, align 8, !tbaa !5
  %214 = load i32, ptr %37, align 4, !tbaa !9
  call void @Hacl_Hash_Blake2s_update_multi(i32 noundef %209, ptr noundef %210, ptr noundef %211, i64 noundef %212, ptr noundef %213, i32 noundef %214)
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #3
  %215 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %215, ptr %38, align 8, !tbaa !5
  %216 = load ptr, ptr %38, align 8, !tbaa !5
  %217 = load ptr, ptr %34, align 8, !tbaa !5
  %218 = load i32, ptr %32, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = mul i64 %219, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %216, ptr align 1 %217, i64 %220, i1 false)
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %39, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %222, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !17
  %223 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %39, i32 0, i32 1
  %224 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %224, ptr %223, align 8, !tbaa !18
  %225 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %39, i32 0, i32 2
  %226 = load i64, ptr %23, align 8, !tbaa !12
  %227 = load i32, ptr %7, align 4, !tbaa !9
  %228 = zext i32 %227 to i64
  %229 = add i64 %226, %228
  store i64 %229, ptr %225, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %221, ptr align 8 %39, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #3
  br label %378

230:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #3
  %231 = load i32, ptr %11, align 4, !tbaa !9
  %232 = sub i32 64, %231
  store i32 %232, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #3
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %233, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #3
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = load i32, ptr %40, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = getelementptr inbounds i8, ptr %234, i64 %236
  store ptr %237, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #3
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %238, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #3
  %239 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %43, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %239, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #3
  %240 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %43, i32 0, i32 1
  %241 = load ptr, ptr %240, align 8, !tbaa !18
  store ptr %241, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #3
  %242 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %43, i32 0, i32 2
  %243 = load i64, ptr %242, align 8, !tbaa !14
  store i64 %243, ptr %46, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #3
  %244 = load i64, ptr %46, align 8, !tbaa !12
  %245 = urem i64 %244, 64
  %246 = icmp eq i64 %245, 0
  br i1 %246, label %247, label %251

247:                                              ; preds = %230
  %248 = load i64, ptr %46, align 8, !tbaa !12
  %249 = icmp ugt i64 %248, 0
  br i1 %249, label %250, label %251

250:                                              ; preds = %247
  store i32 64, ptr %47, align 4, !tbaa !9
  br label %255

251:                                              ; preds = %247, %230
  %252 = load i64, ptr %46, align 8, !tbaa !12
  %253 = urem i64 %252, 64
  %254 = trunc i64 %253 to i32
  store i32 %254, ptr %47, align 4, !tbaa !9
  br label %255

255:                                              ; preds = %251, %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #3
  %256 = load ptr, ptr %45, align 8, !tbaa !5
  %257 = load i32, ptr %47, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = getelementptr inbounds i8, ptr %256, i64 %258
  store ptr %259, ptr %48, align 8, !tbaa !5
  %260 = load ptr, ptr %48, align 8, !tbaa !5
  %261 = load ptr, ptr %41, align 8, !tbaa !5
  %262 = load i32, ptr %40, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = mul i64 %263, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %260, ptr align 1 %261, i64 %264, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #3
  %265 = load i64, ptr %46, align 8, !tbaa !12
  %266 = load i32, ptr %40, align 4, !tbaa !9
  %267 = zext i32 %266 to i64
  %268 = add i64 %265, %267
  store i64 %268, ptr %49, align 8, !tbaa !12
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %50, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %270, ptr align 8 %44, i64 16, i1 false), !tbaa.struct !17
  %271 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %50, i32 0, i32 1
  %272 = load ptr, ptr %45, align 8, !tbaa !5
  store ptr %272, ptr %271, align 8, !tbaa !18
  %273 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %50, i32 0, i32 2
  %274 = load i64, ptr %49, align 8, !tbaa !12
  store i64 %274, ptr %273, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %269, ptr align 8 %50, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %51) #3
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %51, ptr align 8 %275, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #3
  %276 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %51, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %52, ptr align 8 %276, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #3
  %277 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %51, i32 0, i32 1
  %278 = load ptr, ptr %277, align 8, !tbaa !18
  store ptr %278, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #3
  %279 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %51, i32 0, i32 2
  %280 = load i64, ptr %279, align 8, !tbaa !14
  store i64 %280, ptr %54, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #3
  %281 = load i64, ptr %54, align 8, !tbaa !12
  %282 = urem i64 %281, 64
  %283 = icmp eq i64 %282, 0
  br i1 %283, label %284, label %288

284:                                              ; preds = %255
  %285 = load i64, ptr %54, align 8, !tbaa !12
  %286 = icmp ugt i64 %285, 0
  br i1 %286, label %287, label %288

287:                                              ; preds = %284
  store i32 64, ptr %55, align 4, !tbaa !9
  br label %292

288:                                              ; preds = %284, %255
  %289 = load i64, ptr %54, align 8, !tbaa !12
  %290 = urem i64 %289, 64
  %291 = trunc i64 %290 to i32
  store i32 %291, ptr %55, align 4, !tbaa !9
  br label %292

292:                                              ; preds = %288, %287
  %293 = load i32, ptr %55, align 4, !tbaa !9
  %294 = icmp eq i32 %293, 0
  br i1 %294, label %309, label %295

295:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #3
  %296 = load i64, ptr %54, align 8, !tbaa !12
  %297 = load i32, ptr %55, align 4, !tbaa !9
  %298 = zext i32 %297 to i64
  %299 = sub i64 %296, %298
  store i64 %299, ptr %56, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #3
  %300 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_block_state_t_s, ptr %52, i32 0, i32 0
  %301 = load ptr, ptr %300, align 8, !tbaa !19
  store ptr %301, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #3
  %302 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_block_state_t_s, ptr %52, i32 0, i32 1
  %303 = load ptr, ptr %302, align 8, !tbaa !20
  store ptr %303, ptr %58, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #3
  store i32 1, ptr %59, align 4, !tbaa !9
  %304 = load ptr, ptr %57, align 8, !tbaa !5
  %305 = load ptr, ptr %58, align 8, !tbaa !5
  %306 = load i64, ptr %56, align 8, !tbaa !12
  %307 = load ptr, ptr %53, align 8, !tbaa !5
  %308 = load i32, ptr %59, align 4, !tbaa !9
  call void @Hacl_Hash_Blake2s_update_multi(i32 noundef 64, ptr noundef %304, ptr noundef %305, i64 noundef %306, ptr noundef %307, i32 noundef %308)
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #3
  br label %309

309:                                              ; preds = %295, %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #3
  %310 = load i32, ptr %7, align 4, !tbaa !9
  %311 = load i32, ptr %40, align 4, !tbaa !9
  %312 = sub i32 %310, %311
  %313 = zext i32 %312 to i64
  %314 = urem i64 %313, 64
  %315 = icmp eq i64 %314, 0
  br i1 %315, label %316, label %323

316:                                              ; preds = %309
  %317 = load i32, ptr %7, align 4, !tbaa !9
  %318 = load i32, ptr %40, align 4, !tbaa !9
  %319 = sub i32 %317, %318
  %320 = zext i32 %319 to i64
  %321 = icmp ugt i64 %320, 0
  br i1 %321, label %322, label %323

322:                                              ; preds = %316
  store i32 64, ptr %60, align 4, !tbaa !9
  br label %330

323:                                              ; preds = %316, %309
  %324 = load i32, ptr %7, align 4, !tbaa !9
  %325 = load i32, ptr %40, align 4, !tbaa !9
  %326 = sub i32 %324, %325
  %327 = zext i32 %326 to i64
  %328 = urem i64 %327, 64
  %329 = trunc i64 %328 to i32
  store i32 %329, ptr %60, align 4, !tbaa !9
  br label %330

330:                                              ; preds = %323, %322
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #3
  %331 = load i32, ptr %7, align 4, !tbaa !9
  %332 = load i32, ptr %40, align 4, !tbaa !9
  %333 = sub i32 %331, %332
  %334 = load i32, ptr %60, align 4, !tbaa !9
  %335 = sub i32 %333, %334
  %336 = udiv i32 %335, 64
  store i32 %336, ptr %61, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #3
  %337 = load i32, ptr %61, align 4, !tbaa !9
  %338 = mul i32 %337, 64
  store i32 %338, ptr %62, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #3
  %339 = load i32, ptr %7, align 4, !tbaa !9
  %340 = load i32, ptr %40, align 4, !tbaa !9
  %341 = sub i32 %339, %340
  %342 = load i32, ptr %62, align 4, !tbaa !9
  %343 = sub i32 %341, %342
  store i32 %343, ptr %63, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #3
  %344 = load ptr, ptr %42, align 8, !tbaa !5
  store ptr %344, ptr %64, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #3
  %345 = load ptr, ptr %42, align 8, !tbaa !5
  %346 = load i32, ptr %62, align 4, !tbaa !9
  %347 = zext i32 %346 to i64
  %348 = getelementptr inbounds i8, ptr %345, i64 %347
  store ptr %348, ptr %65, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #3
  %349 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_block_state_t_s, ptr %52, i32 0, i32 0
  %350 = load ptr, ptr %349, align 8, !tbaa !19
  store ptr %350, ptr %66, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #3
  %351 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_block_state_t_s, ptr %52, i32 0, i32 1
  %352 = load ptr, ptr %351, align 8, !tbaa !20
  store ptr %352, ptr %67, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #3
  %353 = load i32, ptr %62, align 4, !tbaa !9
  %354 = udiv i32 %353, 64
  store i32 %354, ptr %68, align 4, !tbaa !9
  %355 = load i32, ptr %62, align 4, !tbaa !9
  %356 = load ptr, ptr %66, align 8, !tbaa !5
  %357 = load ptr, ptr %67, align 8, !tbaa !5
  %358 = load i64, ptr %54, align 8, !tbaa !12
  %359 = load ptr, ptr %64, align 8, !tbaa !5
  %360 = load i32, ptr %68, align 4, !tbaa !9
  call void @Hacl_Hash_Blake2s_update_multi(i32 noundef %355, ptr noundef %356, ptr noundef %357, i64 noundef %358, ptr noundef %359, i32 noundef %360)
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #3
  %361 = load ptr, ptr %53, align 8, !tbaa !5
  store ptr %361, ptr %69, align 8, !tbaa !5
  %362 = load ptr, ptr %69, align 8, !tbaa !5
  %363 = load ptr, ptr %65, align 8, !tbaa !5
  %364 = load i32, ptr %63, align 4, !tbaa !9
  %365 = zext i32 %364 to i64
  %366 = mul i64 %365, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %362, ptr align 1 %363, i64 %366, i1 false)
  %367 = load ptr, ptr %5, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %70, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %368, ptr align 8 %52, i64 16, i1 false), !tbaa.struct !17
  %369 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %70, i32 0, i32 1
  %370 = load ptr, ptr %53, align 8, !tbaa !5
  store ptr %370, ptr %369, align 8, !tbaa !18
  %371 = getelementptr inbounds %struct.Hacl_Hash_Blake2s_state_t_s, ptr %70, i32 0, i32 2
  %372 = load i64, ptr %54, align 8, !tbaa !12
  %373 = load i32, ptr %7, align 4, !tbaa !9
  %374 = load i32, ptr %40, align 4, !tbaa !9
  %375 = sub i32 %373, %374
  %376 = zext i32 %375 to i64
  %377 = add i64 %372, %376
  store i64 %377, ptr %371, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %367, ptr align 8 %70, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %51) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #3
  br label %378

378:                                              ; preds = %330, %188
  br label %379

379:                                              ; preds = %378, %115
  store i8 0, ptr %4, align 1
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %380

380:                                              ; preds = %379, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #3
  %381 = load i8, ptr %4, align 1
  ret i8 %381
}

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Hacl_Hash_Blake2s_block_state_t_s = type { ptr, ptr }

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

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

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

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

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

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

18:                                               ; preds = %16
  %.sroa.0109.0.copyload = load ptr, ptr %0, align 8, !tbaa !9
  %.sroa.4110.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.4110.0.copyload = load ptr, ptr %.sroa.4110.0..sroa_idx, align 8, !tbaa !9
  %.sroa.5111.0.copyload = load ptr, ptr %.sroa.5111.0..sroa_idx, align 8, !tbaa !9
  %19 = and i64 %4, 63
  %20 = icmp eq i64 %19, 0
  %21 = trunc nuw nsw i64 %19 to i32
  %.0171 = select i1 %20, i32 64, i32 %21
  %22 = sub i32 %2, %.0171
  %23 = lshr i32 %22, 6
  %24 = and i32 %22, -64
  %25 = sub i32 %2, %24
  %26 = zext i32 %24 to i64
  %27 = getelementptr inbounds i8, ptr %1, i64 %26
  tail call void @Hacl_Hash_Blake2s_update_multi(i32 noundef %24, ptr noundef %.sroa.0109.0.copyload, ptr noundef %.sroa.4110.0.copyload, i64 noundef %.sroa.3136.0.copyload, ptr noundef %1, i32 noundef %23)
  %28 = zext i32 %25 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.sroa.5111.0.copyload, ptr align 1 %27, i64 %28, i1 false)
  %29 = add i64 %.sroa.3136.0.copyload, %4
  store ptr %.sroa.0109.0.copyload, ptr %0, align 8, !tbaa !9
  store ptr %.sroa.4110.0.copyload, ptr %.sroa.4110.0..sroa_idx, align 8, !tbaa !9
  br label %.sink.split

30:                                               ; preds = %16
  %31 = zext nneg i32 %12 to i64
  %32 = getelementptr inbounds i8, ptr %1, i64 %31
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.045, ptr noundef nonnull align 8 dereferenceable(16) %0, i64 16, i1 false)
  %.sroa.458.0.copyload = load ptr, ptr %.sroa.5111.0..sroa_idx, align 8, !tbaa !9
  %.180 = select i1 %or.cond, i64 64, i64 %8
  %33 = getelementptr inbounds i8, ptr %.sroa.458.0.copyload, i64 %.180
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %33, ptr align 1 %1, i64 %31, i1 false)
  %34 = add i64 %.sroa.3136.0.copyload, %31
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %.sroa.045, i64 16, i1 false), !tbaa.struct !11
  store ptr %.sroa.458.0.copyload, ptr %.sroa.5111.0..sroa_idx, align 8, !tbaa !9
  store i64 %34, ptr %.sroa.3136.0..sroa_idx, align 8, !tbaa !5
  %.sroa.0.0.copyload = load ptr, ptr %0, align 8, !tbaa !9
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.4.0.copyload = load ptr, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  %35 = and i64 %34, 63
  %36 = icmp eq i64 %35, 0
  %37 = icmp ne i64 %34, 0
  %or.cond12 = and i1 %37, %36
  %38 = trunc nuw nsw i64 %35 to i32
  %.0173 = select i1 %or.cond12, i32 64, i32 %38
  %39 = icmp eq i32 %.0173, 0
  br i1 %39, label %43, label %40

40:                                               ; preds = %30
  %41 = zext nneg i32 %.0173 to i64
  %42 = sub i64 %34, %41
  tail call void @Hacl_Hash_Blake2s_update_multi(i32 noundef 64, ptr noundef %.sroa.0.0.copyload, ptr noundef %.sroa.4.0.copyload, i64 noundef %42, ptr noundef %.sroa.458.0.copyload, i32 noundef 1)
  br label %43

43:                                               ; preds = %40, %30
  %44 = sub i32 %2, %12
  %45 = zext i32 %44 to i64
  %46 = and i64 %45, 63
  %.not182 = icmp eq i64 %46, 0
  %47 = trunc nuw nsw i64 %46 to i32
  %.0174 = select i1 %.not182, i32 64, i32 %47
  %48 = sub i32 %44, %.0174
  %49 = lshr i32 %48, 6
  %50 = and i32 %48, -64
  %51 = sub i32 %44, %50
  %52 = zext i32 %50 to i64
  %53 = getelementptr inbounds i8, ptr %32, i64 %52
  tail call void @Hacl_Hash_Blake2s_update_multi(i32 noundef %50, ptr noundef %.sroa.0.0.copyload, ptr noundef %.sroa.4.0.copyload, i64 noundef %34, ptr noundef %32, i32 noundef %49)
  %54 = zext i32 %51 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.sroa.458.0.copyload, ptr align 1 %53, i64 %54, i1 false)
  %55 = add i64 %34, %45
  store ptr %.sroa.0.0.copyload, ptr %0, align 8, !tbaa !9
  store ptr %.sroa.4.0.copyload, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  br label %.sink.split

.sink.split:                                      ; preds = %18, %43, %13
  %.sroa.5111.0.copyload.sink = phi ptr [ %.sroa.5111.0.copyload, %18 ], [ %.sroa.458.0.copyload, %43 ], [ %.sroa.4126.0.copyload, %13 ]
  %.sink = phi i64 [ %29, %18 ], [ %55, %43 ], [ %15, %13 ]
  store ptr %.sroa.5111.0.copyload.sink, ptr %.sroa.5111.0..sroa_idx, align 8, !tbaa !9
  store i64 %.sink, ptr %.sroa.3136.0..sroa_idx, align 8, !tbaa !5
  br label %56

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9, i64 24, i64 8, !5}


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