; LLVM IR from xtruan/FlipBIP :: lib/crypto/chacha20poly1305 (poly1305_donna)

; 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.poly1305_context = type { i64, [136 x i8] }

@poly1305_power_on_self_test.nacl_key = external hidden constant [32 x i8], align 16
@poly1305_power_on_self_test.nacl_msg = external hidden constant [131 x i8], align 16
@poly1305_power_on_self_test.nacl_mac = external hidden constant [16 x i8], align 16
@poly1305_power_on_self_test.wrap_key = external hidden constant <{ i8, [31 x i8] }>, align 16
@poly1305_power_on_self_test.wrap_msg = external hidden constant [16 x i8], align 16
@poly1305_power_on_self_test.wrap_mac = external hidden constant <{ i8, [15 x i8] }>, align 16
@poly1305_power_on_self_test.total_key = external hidden constant [32 x i8], align 16
@poly1305_power_on_self_test.total_mac = external hidden constant [16 x i8], align 16

; Function Attrs: nounwind uwtable
declare dso_local void @poly1305_init(ptr noundef, ptr noundef) #0

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

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

; Function Attrs: noinline nounwind uwtable
declare dso_local void @poly1305_finish(ptr noundef, ptr noundef) #2

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

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

; 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: nounwind uwtable
declare dso_local i32 @poly1305_verify(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @poly1305_power_on_self_test() #0 {
  %1 = alloca %struct.poly1305_context, align 8
  %2 = alloca %struct.poly1305_context, align 8
  %3 = alloca [32 x i8], align 16
  %4 = alloca [256 x i8], align 16
  %5 = alloca [16 x i8], align 16
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 144, ptr %1) #4
  call void @llvm.memset.p0.i64(ptr align 8 %1, i8 0, i64 144, i1 false)
  call void @llvm.lifetime.start.p0(i64 144, ptr %2) #4
  call void @llvm.memset.p0.i64(ptr align 8 %2, i8 0, i64 144, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #4
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 256, ptr %4) #4
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !9
  store i64 0, ptr %6, align 8, !tbaa !5
  br label %9

9:                                                ; preds = %15, %0
  %10 = load i64, ptr %6, align 8, !tbaa !5
  %11 = icmp ult i64 %10, 16
  br i1 %11, label %12, label %18

12:                                               ; preds = %9
  %13 = load i64, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %13
  store i8 0, ptr %14, align 1, !tbaa !11
  br label %15

15:                                               ; preds = %12
  %16 = load i64, ptr %6, align 8, !tbaa !5
  %17 = add i64 %16, 1
  store i64 %17, ptr %6, align 8, !tbaa !5
  br label %9, !llvm.loop !12

18:                                               ; preds = %9
  %19 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  call void @poly1305_auth(ptr noundef %19, ptr noundef @poly1305_power_on_self_test.nacl_msg, i64 noundef 131, ptr noundef @poly1305_power_on_self_test.nacl_key)
  %20 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %21 = call i32 @poly1305_verify(ptr noundef @poly1305_power_on_self_test.nacl_mac, ptr noundef %20)
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = and i32 %22, %21
  store i32 %23, ptr %8, align 4, !tbaa !9
  store i64 0, ptr %6, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %30, %18
  %25 = load i64, ptr %6, align 8, !tbaa !5
  %26 = icmp ult i64 %25, 16
  br i1 %26, label %27, label %33

27:                                               ; preds = %24
  %28 = load i64, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %28
  store i8 0, ptr %29, align 1, !tbaa !11
  br label %30

30:                                               ; preds = %27
  %31 = load i64, ptr %6, align 8, !tbaa !5
  %32 = add i64 %31, 1
  store i64 %32, ptr %6, align 8, !tbaa !5
  br label %24, !llvm.loop !14

33:                                               ; preds = %24
  call void @poly1305_init(ptr noundef %1, ptr noundef @poly1305_power_on_self_test.nacl_key)
  call void @poly1305_update(ptr noundef %1, ptr noundef @poly1305_power_on_self_test.nacl_msg, i64 noundef 32)
  call void @poly1305_update(ptr noundef %1, ptr noundef getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 32), i64 noundef 64)
  call void @poly1305_update(ptr noundef %1, ptr noundef getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 96), i64 noundef 16)
  call void @poly1305_update(ptr noundef %1, ptr noundef getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 112), i64 noundef 8)
  call void @poly1305_update(ptr noundef %1, ptr noundef getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 120), i64 noundef 4)
  call void @poly1305_update(ptr noundef %1, ptr noundef getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 124), i64 noundef 2)
  call void @poly1305_update(ptr noundef %1, ptr noundef getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 126), i64 noundef 1)
  call void @poly1305_update(ptr noundef %1, ptr noundef getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 127), i64 noundef 1)
  call void @poly1305_update(ptr noundef %1, ptr noundef getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 128), i64 noundef 1)
  call void @poly1305_update(ptr noundef %1, ptr noundef getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 129), i64 noundef 1)
  call void @poly1305_update(ptr noundef %1, ptr noundef getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 130), i64 noundef 1)
  %34 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  call void @poly1305_finish(ptr noundef %1, ptr noundef %34)
  %35 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %36 = call i32 @poly1305_verify(ptr noundef @poly1305_power_on_self_test.nacl_mac, ptr noundef %35)
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = and i32 %37, %36
  store i32 %38, ptr %8, align 4, !tbaa !9
  store i64 0, ptr %6, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %45, %33
  %40 = load i64, ptr %6, align 8, !tbaa !5
  %41 = icmp ult i64 %40, 16
  br i1 %41, label %42, label %48

42:                                               ; preds = %39
  %43 = load i64, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %43
  store i8 0, ptr %44, align 1, !tbaa !11
  br label %45

45:                                               ; preds = %42
  %46 = load i64, ptr %6, align 8, !tbaa !5
  %47 = add i64 %46, 1
  store i64 %47, ptr %6, align 8, !tbaa !5
  br label %39, !llvm.loop !15

48:                                               ; preds = %39
  %49 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  call void @poly1305_auth(ptr noundef %49, ptr noundef @poly1305_power_on_self_test.wrap_msg, i64 noundef 16, ptr noundef @poly1305_power_on_self_test.wrap_key)
  %50 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %51 = call i32 @poly1305_verify(ptr noundef @poly1305_power_on_self_test.wrap_mac, ptr noundef %50)
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = and i32 %52, %51
  store i32 %53, ptr %8, align 4, !tbaa !9
  call void @poly1305_init(ptr noundef %2, ptr noundef @poly1305_power_on_self_test.total_key)
  store i64 0, ptr %6, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %88, %48
  %55 = load i64, ptr %6, align 8, !tbaa !5
  %56 = icmp ult i64 %55, 256
  br i1 %56, label %57, label %91

57:                                               ; preds = %54
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %66, %57
  %59 = load i64, ptr %7, align 8, !tbaa !5
  %60 = icmp ult i64 %59, 32
  br i1 %60, label %61, label %69

61:                                               ; preds = %58
  %62 = load i64, ptr %6, align 8, !tbaa !5
  %63 = trunc i64 %62 to i8
  %64 = load i64, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 %64
  store i8 %63, ptr %65, align 1, !tbaa !11
  br label %66

66:                                               ; preds = %61
  %67 = load i64, ptr %7, align 8, !tbaa !5
  %68 = add i64 %67, 1
  store i64 %68, ptr %7, align 8, !tbaa !5
  br label %58, !llvm.loop !16

69:                                               ; preds = %58
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %79, %69
  %71 = load i64, ptr %7, align 8, !tbaa !5
  %72 = load i64, ptr %6, align 8, !tbaa !5
  %73 = icmp ult i64 %71, %72
  br i1 %73, label %74, label %82

74:                                               ; preds = %70
  %75 = load i64, ptr %6, align 8, !tbaa !5
  %76 = trunc i64 %75 to i8
  %77 = load i64, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %77
  store i8 %76, ptr %78, align 1, !tbaa !11
  br label %79

79:                                               ; preds = %74
  %80 = load i64, ptr %7, align 8, !tbaa !5
  %81 = add i64 %80, 1
  store i64 %81, ptr %7, align 8, !tbaa !5
  br label %70, !llvm.loop !17

82:                                               ; preds = %70
  %83 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %84 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 0
  %85 = load i64, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  call void @poly1305_auth(ptr noundef %83, ptr noundef %84, i64 noundef %85, ptr noundef %86)
  %87 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  call void @poly1305_update(ptr noundef %2, ptr noundef %87, i64 noundef 16)
  br label %88

88:                                               ; preds = %82
  %89 = load i64, ptr %6, align 8, !tbaa !5
  %90 = add i64 %89, 1
  store i64 %90, ptr %6, align 8, !tbaa !5
  br label %54, !llvm.loop !18

91:                                               ; preds = %54
  %92 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  call void @poly1305_finish(ptr noundef %2, ptr noundef %92)
  %93 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %94 = call i32 @poly1305_verify(ptr noundef @poly1305_power_on_self_test.total_mac, ptr noundef %93)
  %95 = load i32, ptr %8, align 4, !tbaa !9
  %96 = and i32 %95, %94
  store i32 %96, ptr %8, align 4, !tbaa !9
  %97 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr %1) #4
  ret i32 %97
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noinline 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 = { 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 = !{!"long", !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 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


; 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.poly1305_context = type { i64, [136 x i8] }

@poly1305_power_on_self_test.nacl_key = external hidden constant [32 x i8], align 16
@poly1305_power_on_self_test.nacl_msg = external hidden constant [131 x i8], align 16
@poly1305_power_on_self_test.nacl_mac = external hidden constant [16 x i8], align 16
@poly1305_power_on_self_test.wrap_key = external hidden constant <{ i8, [31 x i8] }>, align 16
@poly1305_power_on_self_test.wrap_msg = external hidden constant [16 x i8], align 16
@poly1305_power_on_self_test.wrap_mac = external hidden constant <{ i8, [15 x i8] }>, align 16
@poly1305_power_on_self_test.total_key = external hidden constant [32 x i8], align 16
@poly1305_power_on_self_test.total_mac = external hidden constant [16 x i8], align 16

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

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

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

; Function Attrs: noinline nounwind uwtable
declare dso_local void @poly1305_finish(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; 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: nounwind uwtable
declare dso_local i32 @poly1305_verify(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @poly1305_power_on_self_test() local_unnamed_addr #0 {
.preheader28.peel.next:
  %0 = alloca %struct.poly1305_context, align 8
  %1 = alloca %struct.poly1305_context, align 8
  %2 = alloca [32 x i8], align 16
  %3 = alloca [256 x i8], align 16
  %4 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %0) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(144) %0, i8 0, i64 144, i1 false)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %1) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(144) %1, i8 0, i64 144, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %3, i8 0, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  call void @poly1305_auth(ptr noundef nonnull %4, ptr noundef nonnull @poly1305_power_on_self_test.nacl_msg, i64 noundef 131, ptr noundef nonnull @poly1305_power_on_self_test.nacl_key)
  %5 = call i32 @poly1305_verify(ptr noundef nonnull @poly1305_power_on_self_test.nacl_mac, ptr noundef nonnull %4)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, i8 0, i64 16, i1 false), !tbaa !5
  call void @poly1305_init(ptr noundef nonnull %0, ptr noundef nonnull @poly1305_power_on_self_test.nacl_key)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull @poly1305_power_on_self_test.nacl_msg, i64 noundef 32)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 32), i64 noundef 64)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 96), i64 noundef 16)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 112), i64 noundef 8)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 120), i64 noundef 4)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 124), i64 noundef 2)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 126), i64 noundef 1)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 127), i64 noundef 1)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 128), i64 noundef 1)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 129), i64 noundef 1)
  call void @poly1305_update(ptr noundef nonnull %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @poly1305_power_on_self_test.nacl_msg, i64 130), i64 noundef 1)
  call void @poly1305_finish(ptr noundef nonnull %0, ptr noundef nonnull %4)
  %6 = call i32 @poly1305_verify(ptr noundef nonnull @poly1305_power_on_self_test.nacl_mac, ptr noundef nonnull %4)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, i8 0, i64 16, i1 false), !tbaa !5
  call void @poly1305_auth(ptr noundef nonnull %4, ptr noundef nonnull @poly1305_power_on_self_test.wrap_msg, i64 noundef 16, ptr noundef nonnull @poly1305_power_on_self_test.wrap_key)
  %7 = call i32 @poly1305_verify(ptr noundef nonnull @poly1305_power_on_self_test.wrap_mac, ptr noundef nonnull %4)
  call void @poly1305_init(ptr noundef nonnull %1, ptr noundef nonnull @poly1305_power_on_self_test.total_key)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %2, i8 0, i64 32, i1 false), !tbaa !5
  call void @poly1305_auth(ptr noundef nonnull %4, ptr noundef nonnull %3, i64 noundef 0, ptr noundef nonnull %2)
  call void @poly1305_update(ptr noundef nonnull %1, ptr noundef nonnull %4, i64 noundef 16)
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader28.peel.next, %._crit_edge
  %.334 = phi i64 [ 1, %.preheader28.peel.next ], [ %9, %._crit_edge ]
  %8 = trunc nuw i64 %.334 to i8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %2, i8 %8, i64 32, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %3, i8 %8, i64 %.334, i1 false), !tbaa !5
  call void @poly1305_auth(ptr noundef nonnull %4, ptr noundef nonnull %3, i64 noundef %.334, ptr noundef nonnull %2)
  call void @poly1305_update(ptr noundef nonnull %1, ptr noundef nonnull %4, i64 noundef 16)
  %9 = add nuw nsw i64 %.334, 1
  %exitcond.not = icmp eq i64 %9, 256
  br i1 %exitcond.not, label %.loopexit, label %._crit_edge, !llvm.loop !8

.loopexit:                                        ; preds = %._crit_edge
  %10 = and i32 %5, 1
  %11 = and i32 %10, %6
  %12 = and i32 %11, %7
  call void @poly1305_finish(ptr noundef nonnull %1, ptr noundef nonnull %4)
  %13 = call i32 @poly1305_verify(ptr noundef nonnull @poly1305_power_on_self_test.total_mac, ptr noundef nonnull %4)
  %14 = and i32 %12, %13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %0) #4
  ret i32 %14
}

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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noinline 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 = { 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"}
!8 = distinct !{!8, !9, !10}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,SCCPPass,SROAPass,SimplifyCFGPass