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

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

%struct.Hacl_Hash_Blake2b_state_t_s = type { %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr, i64 }
%struct.Hacl_Hash_Blake2b_block_state_t_s = type { ptr, ptr }

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_Hash_Blake2b_digest(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.Hacl_Hash_Blake2b_state_t_s, align 8
  %6 = alloca %struct.Hacl_Hash_Blake2b_block_state_t_s, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca [16 x i64], align 16
  %12 = alloca [16 x i64], align 16
  %13 = alloca %struct.Hacl_Hash_Blake2b_block_state_t_s, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i128, align 16
  %24 = alloca i128, align 16
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i128, align 16
  %29 = alloca i128, align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %30, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  %31 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %5, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %31, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %32 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %5, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  store ptr %33, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %34 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_state_t_s, ptr %5, i32 0, i32 2
  %35 = load i64, ptr %34, align 8, !tbaa !16
  store i64 %35, ptr %8, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %36 = load i64, ptr %8, align 8, !tbaa !10
  %37 = urem i64 %36, 128
  %38 = icmp eq i64 %37, 0
  br i1 %38, label %39, label %43

39:                                               ; preds = %2
  %40 = load i64, ptr %8, align 8, !tbaa !10
  %41 = icmp ugt i64 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  store i32 128, ptr %9, align 4, !tbaa !17
  br label %47

43:                                               ; preds = %39, %2
  %44 = load i64, ptr %8, align 8, !tbaa !10
  %45 = urem i64 %44, 128
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr %9, align 4, !tbaa !17
  br label %47

47:                                               ; preds = %43, %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %48, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %11) #5
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %12) #5
  call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %49 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %13, i32 0, i32 0
  %50 = getelementptr inbounds [16 x i64], ptr %11, i64 0, i64 0
  store ptr %50, ptr %49, align 8, !tbaa !19
  %51 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %13, i32 0, i32 1
  %52 = getelementptr inbounds [16 x i64], ptr %12, i64 0, i64 0
  store ptr %52, ptr %51, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %53 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %6, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !20
  store ptr %54, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %55 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %13, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  store ptr %56, ptr %15, align 8, !tbaa !5
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %57, ptr align 8 %58, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %59 = load i64, ptr %8, align 8, !tbaa !10
  %60 = load i32, ptr %9, align 4, !tbaa !17
  %61 = zext i32 %60 to i64
  %62 = sub i64 %59, %61
  store i64 %62, ptr %16, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %63 = load i32, ptr %9, align 4, !tbaa !17
  %64 = urem i32 %63, 128
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %70

66:                                               ; preds = %47
  %67 = load i32, ptr %9, align 4, !tbaa !17
  %68 = icmp ugt i32 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  store i32 128, ptr %17, align 4, !tbaa !17
  br label %73

70:                                               ; preds = %66, %47
  %71 = load i32, ptr %9, align 4, !tbaa !17
  %72 = urem i32 %71, 128
  store i32 %72, ptr %17, align 4, !tbaa !17
  br label %73

73:                                               ; preds = %70, %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = load i32, ptr %9, align 4, !tbaa !17
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds i8, ptr %74, i64 %76
  %78 = load i32, ptr %17, align 4, !tbaa !17
  %79 = zext i32 %78 to i64
  %80 = sub i64 0, %79
  %81 = getelementptr inbounds i8, ptr %77, i64 %80
  store ptr %81, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %82, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %83 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %13, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !19
  store ptr %84, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %85 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %13, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  store ptr %86, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !17
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  %88 = load ptr, ptr %21, align 8, !tbaa !5
  %89 = load i64, ptr %16, align 8, !tbaa !10
  %90 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %89)
  %91 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %92 = extractvalue { i64, i64 } %90, 0
  store i64 %92, ptr %91, align 16
  %93 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %94 = extractvalue { i64, i64 } %90, 1
  store i64 %94, ptr %93, align 8
  %95 = load i128, ptr %23, align 16, !tbaa !21
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = load i32, ptr %22, align 4, !tbaa !17
  store i128 %95, ptr %24, align 16, !tbaa !21
  %98 = getelementptr inbounds { i64, i64 }, ptr %24, i32 0, i32 0
  %99 = load i64, ptr %98, align 16
  %100 = getelementptr inbounds { i64, i64 }, ptr %24, i32 0, i32 1
  %101 = load i64, ptr %100, align 8
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 0, ptr noundef %87, ptr noundef %88, i64 noundef %99, i64 noundef %101, ptr noundef %96, i32 noundef %97)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %102 = load i64, ptr %8, align 8, !tbaa !10
  %103 = load i32, ptr %9, align 4, !tbaa !17
  %104 = zext i32 %103 to i64
  %105 = sub i64 %102, %104
  store i64 %105, ptr %25, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %106 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %13, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !19
  store ptr %107, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %108 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %13, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !20
  store ptr %109, ptr %27, align 8, !tbaa !5
  %110 = load i32, ptr %9, align 4, !tbaa !17
  %111 = load ptr, ptr %26, align 8, !tbaa !5
  %112 = load ptr, ptr %27, align 8, !tbaa !5
  %113 = load i64, ptr %25, align 8, !tbaa !10
  %114 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %113)
  %115 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 0
  %116 = extractvalue { i64, i64 } %114, 0
  store i64 %116, ptr %115, align 16
  %117 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 1
  %118 = extractvalue { i64, i64 } %114, 1
  store i64 %118, ptr %117, align 8
  %119 = load i128, ptr %28, align 16, !tbaa !21
  %120 = load i32, ptr %9, align 4, !tbaa !17
  %121 = load ptr, ptr %18, align 8, !tbaa !5
  store i128 %119, ptr %29, align 16, !tbaa !21
  %122 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 0
  %123 = load i64, ptr %122, align 16
  %124 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 1
  %125 = load i64, ptr %124, align 8
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef %110, ptr noundef %111, ptr noundef %112, i64 noundef %123, i64 noundef %125, i32 noundef %120, ptr noundef %121)
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.Hacl_Hash_Blake2b_block_state_t_s, ptr %13, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !20
  call void @Hacl_Hash_Blake2b_finish(i32 noundef 64, ptr noundef %126, ptr noundef %128)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!13 = !{!14, !6, i64 16}
!14 = !{!"Hacl_Hash_Blake2b_state_t_s", !15, i64 0, !6, i64 16, !11, i64 24}
!15 = !{!"Hacl_Hash_Blake2b_block_state_t_s", !6, i64 0, !6, i64 8}
!16 = !{!14, !11, i64 24}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!15, !6, i64 0}
!20 = !{!15, !6, i64 8}
!21 = !{!22, !22, i64 0}
!22 = !{!"__int128", !7, i64 0}


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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_Hash_Blake2b_digest(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca [16 x i64], align 16
  %4 = alloca [16 x i64], align 16
  %.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 !5
  %.sroa.543.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.543.0.copyload = load ptr, ptr %.sroa.543.0..sroa_idx, align 8, !tbaa !5
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.6.0.copyload = load i64, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !9
  %5 = and i64 %.sroa.6.0.copyload, 127
  %6 = icmp eq i64 %5, 0
  %7 = icmp ne i64 %.sroa.6.0.copyload, 0
  %or.cond = and i1 %7, %6
  %8 = trunc nuw nsw i64 %5 to i32
  %.0 = select i1 %or.cond, i32 128, i32 %8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %3, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %4, ptr noundef nonnull align 8 dereferenceable(128) %.sroa.4.0.copyload, i64 128, i1 false)
  %9 = and i32 %.0, 127
  %10 = icmp eq i32 %9, 0
  %11 = icmp ne i32 %.0, 0
  %or.cond3 = and i1 %11, %10
  %12 = zext nneg i32 %9 to i64
  %.046 = select i1 %or.cond3, i64 128, i64 %12
  %13 = zext nneg i32 %.0 to i64
  %14 = sub i64 %.sroa.6.0.copyload, %13
  %15 = getelementptr inbounds i8, ptr %.sroa.543.0.copyload, i64 %13
  %16 = sub nsw i64 0, %.046
  %17 = getelementptr inbounds i8, ptr %15, i64 %16
  %18 = tail call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %14)
  %19 = extractvalue { i64, i64 } %18, 0
  %20 = extractvalue { i64, i64 } %18, 1
  call void @Hacl_Hash_Blake2b_update_multi(i32 noundef 0, ptr noundef nonnull %3, ptr noundef nonnull %4, i64 noundef %19, i64 noundef %20, ptr noundef %.sroa.543.0.copyload, i32 noundef 0)
  %21 = call { i64, i64 } @FStar_UInt128_uint64_to_uint128(i64 noundef %14)
  %22 = extractvalue { i64, i64 } %21, 0
  %23 = extractvalue { i64, i64 } %21, 1
  call void @Hacl_Hash_Blake2b_update_last(i32 noundef %.0, ptr noundef nonnull %3, ptr noundef nonnull %4, i64 noundef %22, i64 noundef %23, i32 noundef %.0, ptr noundef %17)
  call void @Hacl_Hash_Blake2b_finish(i32 noundef 64, ptr noundef %1, ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #5
  ret void
}

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

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

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


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass