; LLVM IR from rweather/lightweight-crypto :: src/arduino/LWC_Benchmark (internal-chachapoly)

; 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"

%union.chacha20_state_t = type { [16 x i32] }
%struct.poly1305_state_t = type { [5 x i32], [5 x i32], [4 x i32] }

@tag256 = external hidden constant [17 x i8], align 16

; Function Attrs: nounwind uwtable
define dso_local i32 @internal_chachapoly_aead_encrypt(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %union.chacha20_state_t, align 4
  %20 = alloca %union.chacha20_state_t, align 4
  %21 = alloca %struct.poly1305_state_t, align 4
  %22 = alloca [16 x i8], align 16
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store i64 %3, ptr %13, align 8, !tbaa !9
  store ptr %4, ptr %14, align 8, !tbaa !5
  store i64 %5, ptr %15, align 8, !tbaa !9
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %25 = load ptr, ptr %16, align 8, !tbaa !5
  %26 = load i64, ptr %13, align 8, !tbaa !9
  %27 = add i64 %26, 16
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %27, ptr %28, align 8, !tbaa !9
  %29 = getelementptr inbounds [64 x i8], ptr %19, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 16 @tag256, i64 16, i1 false)
  %30 = getelementptr inbounds [64 x i8], ptr %19, i64 0, i64 0
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %31, ptr align 1 %32, i64 32, i1 false)
  %33 = getelementptr inbounds [16 x i32], ptr %19, i64 0, i64 12
  store i32 0, ptr %33, align 4, !tbaa !11
  %34 = getelementptr inbounds [16 x i32], ptr %19, i64 0, i64 13
  store i32 0, ptr %34, align 4, !tbaa !11
  %35 = getelementptr inbounds [64 x i8], ptr %19, i64 0, i64 0
  %36 = getelementptr inbounds i8, ptr %35, i64 56
  %37 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %36, ptr align 1 %37, i64 8, i1 false)
  %38 = getelementptr inbounds [16 x i32], ptr %20, i64 0, i64 0
  %39 = getelementptr inbounds [16 x i32], ptr %19, i64 0, i64 0
  call void @chachaCore(ptr noundef %38, ptr noundef %39)
  %40 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  call void @poly1305_init(ptr noundef %21, ptr noundef %40)
  %41 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %42 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 1 %43, i64 16, i1 false)
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = load i64, ptr %15, align 8, !tbaa !9
  call void @poly1305_update(ptr noundef %21, ptr noundef %44, i64 noundef %45, i8 noundef zeroext 0)
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = load i64, ptr %13, align 8, !tbaa !9
  call void @chacha_encrypt(ptr noundef %19, ptr noundef %20, ptr noundef %46, ptr noundef %47, i64 noundef %48)
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = load i64, ptr %13, align 8, !tbaa !9
  call void @poly1305_update(ptr noundef %21, ptr noundef %49, i64 noundef %50, i8 noundef zeroext 0)
  br label %51

51:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %52 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %52, ptr %23, align 8, !tbaa !12
  %53 = load i64, ptr %23, align 8, !tbaa !12
  %54 = trunc i64 %53 to i8
  %55 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  store i8 %54, ptr %55, align 4, !tbaa !11
  %56 = load i64, ptr %23, align 8, !tbaa !12
  %57 = lshr i64 %56, 8
  %58 = trunc i64 %57 to i8
  %59 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 1
  store i8 %58, ptr %59, align 1, !tbaa !11
  %60 = load i64, ptr %23, align 8, !tbaa !12
  %61 = lshr i64 %60, 16
  %62 = trunc i64 %61 to i8
  %63 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 2
  store i8 %62, ptr %63, align 2, !tbaa !11
  %64 = load i64, ptr %23, align 8, !tbaa !12
  %65 = lshr i64 %64, 24
  %66 = trunc i64 %65 to i8
  %67 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 3
  store i8 %66, ptr %67, align 1, !tbaa !11
  %68 = load i64, ptr %23, align 8, !tbaa !12
  %69 = lshr i64 %68, 32
  %70 = trunc i64 %69 to i8
  %71 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 4
  store i8 %70, ptr %71, align 4, !tbaa !11
  %72 = load i64, ptr %23, align 8, !tbaa !12
  %73 = lshr i64 %72, 40
  %74 = trunc i64 %73 to i8
  %75 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 5
  store i8 %74, ptr %75, align 1, !tbaa !11
  %76 = load i64, ptr %23, align 8, !tbaa !12
  %77 = lshr i64 %76, 48
  %78 = trunc i64 %77 to i8
  %79 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 6
  store i8 %78, ptr %79, align 2, !tbaa !11
  %80 = load i64, ptr %23, align 8, !tbaa !12
  %81 = lshr i64 %80, 56
  %82 = trunc i64 %81 to i8
  %83 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 7
  store i8 %82, ptr %83, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %84

84:                                               ; preds = %51
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %87 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %87, ptr %24, align 8, !tbaa !12
  %88 = load i64, ptr %24, align 8, !tbaa !12
  %89 = trunc i64 %88 to i8
  %90 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = getelementptr inbounds i8, ptr %91, i64 0
  store i8 %89, ptr %92, align 1, !tbaa !11
  %93 = load i64, ptr %24, align 8, !tbaa !12
  %94 = lshr i64 %93, 8
  %95 = trunc i64 %94 to i8
  %96 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = getelementptr inbounds i8, ptr %97, i64 1
  store i8 %95, ptr %98, align 1, !tbaa !11
  %99 = load i64, ptr %24, align 8, !tbaa !12
  %100 = lshr i64 %99, 16
  %101 = trunc i64 %100 to i8
  %102 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %103 = getelementptr inbounds i8, ptr %102, i64 8
  %104 = getelementptr inbounds i8, ptr %103, i64 2
  store i8 %101, ptr %104, align 1, !tbaa !11
  %105 = load i64, ptr %24, align 8, !tbaa !12
  %106 = lshr i64 %105, 24
  %107 = trunc i64 %106 to i8
  %108 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  %110 = getelementptr inbounds i8, ptr %109, i64 3
  store i8 %107, ptr %110, align 1, !tbaa !11
  %111 = load i64, ptr %24, align 8, !tbaa !12
  %112 = lshr i64 %111, 32
  %113 = trunc i64 %112 to i8
  %114 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  %116 = getelementptr inbounds i8, ptr %115, i64 4
  store i8 %113, ptr %116, align 1, !tbaa !11
  %117 = load i64, ptr %24, align 8, !tbaa !12
  %118 = lshr i64 %117, 40
  %119 = trunc i64 %118 to i8
  %120 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %121 = getelementptr inbounds i8, ptr %120, i64 8
  %122 = getelementptr inbounds i8, ptr %121, i64 5
  store i8 %119, ptr %122, align 1, !tbaa !11
  %123 = load i64, ptr %24, align 8, !tbaa !12
  %124 = lshr i64 %123, 48
  %125 = trunc i64 %124 to i8
  %126 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %127 = getelementptr inbounds i8, ptr %126, i64 8
  %128 = getelementptr inbounds i8, ptr %127, i64 6
  store i8 %125, ptr %128, align 1, !tbaa !11
  %129 = load i64, ptr %24, align 8, !tbaa !12
  %130 = lshr i64 %129, 56
  %131 = trunc i64 %130 to i8
  %132 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  %133 = getelementptr inbounds i8, ptr %132, i64 8
  %134 = getelementptr inbounds i8, ptr %133, i64 7
  store i8 %131, ptr %134, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %135

135:                                              ; preds = %86
  br label %136

136:                                              ; preds = %135
  %137 = getelementptr inbounds [64 x i8], ptr %20, i64 0, i64 0
  call void @poly1305_update(ptr noundef %21, ptr noundef %137, i64 noundef 16, i8 noundef zeroext 1)
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = load i64, ptr %13, align 8, !tbaa !9
  %140 = getelementptr inbounds i8, ptr %138, i64 %139
  %141 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  call void @poly1305_finalize(ptr noundef %21, ptr noundef %140, ptr noundef %141)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #4
  ret i32 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 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
declare hidden void @chachaCore(ptr noundef, ptr noundef) #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @chacha_encrypt(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

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

; Function Attrs: nounwind uwtable
declare hidden void @poly1305_finalize(ptr noundef, ptr noundef, ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 }

!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 long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !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"

%union.chacha20_state_t = type { [16 x i32] }
%struct.poly1305_state_t = type { [5 x i32], [5 x i32], [4 x i32] }

@tag256 = external hidden local_unnamed_addr constant [17 x i8], align 16

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @internal_chachapoly_aead_encrypt(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr nocapture noundef readnone %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readonly %8) local_unnamed_addr #0 {
  %10 = alloca %union.chacha20_state_t, align 4
  %11 = alloca %union.chacha20_state_t, align 4
  %12 = alloca %struct.poly1305_state_t, align 4
  %13 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  %14 = add i64 %3, 16
  store i64 %14, ptr %1, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 16 dereferenceable(16) @tag256, i64 16, i1 false)
  %15 = getelementptr inbounds i8, ptr %10, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %15, ptr noundef nonnull align 1 dereferenceable(32) %8, i64 32, i1 false)
  %16 = getelementptr inbounds i8, ptr %10, i64 48
  store i32 0, ptr %16, align 4, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %10, i64 52
  store i32 0, ptr %17, align 4, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %10, i64 56
  %19 = load i64, ptr %7, align 1
  store i64 %19, ptr %18, align 4
  call void @chachaCore(ptr noundef nonnull %11, ptr noundef nonnull %10)
  call void @poly1305_init(ptr noundef nonnull %12, ptr noundef nonnull %11)
  %20 = getelementptr inbounds i8, ptr %11, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %20, i64 16, i1 false)
  call void @poly1305_update(ptr noundef nonnull %12, ptr noundef %4, i64 noundef %5, i8 noundef zeroext 0)
  call void @chacha_encrypt(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %0, ptr noundef %2, i64 noundef %3)
  call void @poly1305_update(ptr noundef nonnull %12, ptr noundef %0, i64 noundef %3, i8 noundef zeroext 0)
  %21 = trunc i64 %5 to i8
  store i8 %21, ptr %11, align 4, !tbaa !9
  %22 = lshr i64 %5, 8
  %23 = trunc i64 %22 to i8
  %24 = getelementptr inbounds i8, ptr %11, i64 1
  store i8 %23, ptr %24, align 1, !tbaa !9
  %25 = lshr i64 %5, 16
  %26 = trunc i64 %25 to i8
  %27 = getelementptr inbounds i8, ptr %11, i64 2
  store i8 %26, ptr %27, align 2, !tbaa !9
  %28 = lshr i64 %5, 24
  %29 = trunc i64 %28 to i8
  %30 = getelementptr inbounds i8, ptr %11, i64 3
  store i8 %29, ptr %30, align 1, !tbaa !9
  %31 = lshr i64 %5, 32
  %32 = trunc i64 %31 to i8
  %33 = getelementptr inbounds i8, ptr %11, i64 4
  store i8 %32, ptr %33, align 4, !tbaa !9
  %34 = lshr i64 %5, 40
  %35 = trunc i64 %34 to i8
  %36 = getelementptr inbounds i8, ptr %11, i64 5
  store i8 %35, ptr %36, align 1, !tbaa !9
  %37 = lshr i64 %5, 48
  %38 = trunc i64 %37 to i8
  %39 = getelementptr inbounds i8, ptr %11, i64 6
  store i8 %38, ptr %39, align 2, !tbaa !9
  %40 = lshr i64 %5, 56
  %41 = trunc nuw i64 %40 to i8
  %42 = getelementptr inbounds i8, ptr %11, i64 7
  store i8 %41, ptr %42, align 1, !tbaa !9
  %43 = trunc i64 %3 to i8
  %44 = getelementptr inbounds i8, ptr %11, i64 8
  store i8 %43, ptr %44, align 4, !tbaa !9
  %45 = lshr i64 %3, 8
  %46 = trunc i64 %45 to i8
  %47 = getelementptr inbounds i8, ptr %11, i64 9
  store i8 %46, ptr %47, align 1, !tbaa !9
  %48 = lshr i64 %3, 16
  %49 = trunc i64 %48 to i8
  %50 = getelementptr inbounds i8, ptr %11, i64 10
  store i8 %49, ptr %50, align 2, !tbaa !9
  %51 = lshr i64 %3, 24
  %52 = trunc i64 %51 to i8
  %53 = getelementptr inbounds i8, ptr %11, i64 11
  store i8 %52, ptr %53, align 1, !tbaa !9
  %54 = lshr i64 %3, 32
  %55 = trunc i64 %54 to i8
  %56 = getelementptr inbounds i8, ptr %11, i64 12
  store i8 %55, ptr %56, align 4, !tbaa !9
  %57 = lshr i64 %3, 40
  %58 = trunc i64 %57 to i8
  %59 = getelementptr inbounds i8, ptr %11, i64 13
  store i8 %58, ptr %59, align 1, !tbaa !9
  %60 = lshr i64 %3, 48
  %61 = trunc i64 %60 to i8
  %62 = getelementptr inbounds i8, ptr %11, i64 14
  store i8 %61, ptr %62, align 2, !tbaa !9
  %63 = lshr i64 %3, 56
  %64 = trunc nuw i64 %63 to i8
  %65 = getelementptr inbounds i8, ptr %11, i64 15
  store i8 %64, ptr %65, align 1, !tbaa !9
  call void @poly1305_update(ptr noundef nonnull %12, ptr noundef nonnull %11, i64 noundef 16, i8 noundef zeroext 1)
  %66 = getelementptr inbounds i8, ptr %0, i64 %3
  call void @poly1305_finalize(ptr noundef nonnull %12, ptr noundef %66, ptr noundef nonnull %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  ret i32 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 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
declare hidden void @chachaCore(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @chacha_encrypt(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden void @poly1305_finalize(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #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 nosync nounwind willreturn memory(argmem: readwrite) }
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 }

!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 long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass