; LLVM IR from rweather/lightweight-crypto :: src/combined (gascon128)

; 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.gascon_state_t = type { [5 x i64] }

; Function Attrs: nounwind uwtable
define dso_local i32 @gascon80pq_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.gascon_state_t, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  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 40, ptr %19) #4
  %31 = load ptr, ptr %16, align 8, !tbaa !5
  %32 = load i64, ptr %13, align 8, !tbaa !9
  %33 = add i64 %32, 16
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %33, ptr %34, align 8, !tbaa !9
  br label %35

35:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 -1606415354, ptr %20, align 4, !tbaa !11
  %36 = load i32, ptr %20, align 4, !tbaa !11
  %37 = trunc i32 %36 to i8
  %38 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  store i8 %37, ptr %38, align 8, !tbaa !13
  %39 = load i32, ptr %20, align 4, !tbaa !11
  %40 = lshr i32 %39, 8
  %41 = trunc i32 %40 to i8
  %42 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 1
  store i8 %41, ptr %42, align 1, !tbaa !13
  %43 = load i32, ptr %20, align 4, !tbaa !11
  %44 = lshr i32 %43, 16
  %45 = trunc i32 %44 to i8
  %46 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 2
  store i8 %45, ptr %46, align 2, !tbaa !13
  %47 = load i32, ptr %20, align 4, !tbaa !11
  %48 = lshr i32 %47, 24
  %49 = trunc i32 %48 to i8
  %50 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 3
  store i8 %49, ptr %50, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %51

51:                                               ; preds = %35
  br label %52

52:                                               ; preds = %51
  %53 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %54 = getelementptr inbounds i8, ptr %53, i64 4
  %55 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %54, ptr align 1 %55, i64 20, i1 false)
  %56 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %57 = getelementptr inbounds i8, ptr %56, i64 24
  %58 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %57, ptr align 1 %58, i64 16, i1 false)
  call void @gascon_permute(ptr noundef %19, i8 noundef zeroext 0)
  br label %59

59:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %60 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %61 = getelementptr inbounds i8, ptr %60, i64 20
  store ptr %61, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %62 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %62, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 20, ptr %23, align 4, !tbaa !11
  br label %63

63:                                               ; preds = %66, %59
  %64 = load i32, ptr %23, align 4, !tbaa !11
  %65 = icmp ugt i32 %64, 0
  br i1 %65, label %66, label %79

66:                                               ; preds = %63
  %67 = load ptr, ptr %22, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i32 1
  store ptr %68, ptr %22, align 8, !tbaa !5
  %69 = load i8, ptr %67, align 1, !tbaa !13
  %70 = zext i8 %69 to i32
  %71 = load ptr, ptr %21, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i32 1
  store ptr %72, ptr %21, align 8, !tbaa !5
  %73 = load i8, ptr %71, align 1, !tbaa !13
  %74 = zext i8 %73 to i32
  %75 = xor i32 %74, %70
  %76 = trunc i32 %75 to i8
  store i8 %76, ptr %71, align 1, !tbaa !13
  %77 = load i32, ptr %23, align 4, !tbaa !11
  %78 = add i32 %77, -1
  store i32 %78, ptr %23, align 4, !tbaa !11
  br label %63, !llvm.loop !14

79:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  %82 = load i64, ptr %15, align 8, !tbaa !9
  %83 = icmp ugt i64 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %81
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = load i64, ptr %15, align 8, !tbaa !9
  call void @gascon_absorb_8(ptr noundef %19, ptr noundef %85, i64 noundef %86, i8 noundef zeroext 6)
  br label %87

87:                                               ; preds = %84, %81
  %88 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 39
  %89 = load i8, ptr %88, align 1, !tbaa !13
  %90 = zext i8 %89 to i32
  %91 = xor i32 %90, 1
  %92 = trunc i32 %91 to i8
  store i8 %92, ptr %88, align 1, !tbaa !13
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = load i64, ptr %13, align 8, !tbaa !9
  call void @gascon_encrypt_8(ptr noundef %19, ptr noundef %93, ptr noundef %94, i64 noundef %95, i8 noundef zeroext 6)
  br label %96

96:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %97 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  store ptr %98, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %99 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %99, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 20, ptr %26, align 4, !tbaa !11
  br label %100

100:                                              ; preds = %103, %96
  %101 = load i32, ptr %26, align 4, !tbaa !11
  %102 = icmp ugt i32 %101, 0
  br i1 %102, label %103, label %116

103:                                              ; preds = %100
  %104 = load ptr, ptr %25, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i32 1
  store ptr %105, ptr %25, align 8, !tbaa !5
  %106 = load i8, ptr %104, align 1, !tbaa !13
  %107 = zext i8 %106 to i32
  %108 = load ptr, ptr %24, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i32 1
  store ptr %109, ptr %24, align 8, !tbaa !5
  %110 = load i8, ptr %108, align 1, !tbaa !13
  %111 = zext i8 %110 to i32
  %112 = xor i32 %111, %107
  %113 = trunc i32 %112 to i8
  store i8 %113, ptr %108, align 1, !tbaa !13
  %114 = load i32, ptr %26, align 4, !tbaa !11
  %115 = add i32 %114, -1
  store i32 %115, ptr %26, align 4, !tbaa !11
  br label %100, !llvm.loop !16

116:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  call void @gascon_permute(ptr noundef %19, i8 noundef zeroext 0)
  br label %119

119:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load i64, ptr %13, align 8, !tbaa !9
  %122 = getelementptr inbounds i8, ptr %120, i64 %121
  store ptr %122, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %123 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %124 = getelementptr inbounds i8, ptr %123, i64 24
  store ptr %124, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %125 = load ptr, ptr %18, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 4
  store ptr %126, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  store i32 16, ptr %30, align 4, !tbaa !11
  br label %127

127:                                              ; preds = %130, %119
  %128 = load i32, ptr %30, align 4, !tbaa !11
  %129 = icmp ugt i32 %128, 0
  br i1 %129, label %130, label %145

130:                                              ; preds = %127
  %131 = load ptr, ptr %28, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i32 1
  store ptr %132, ptr %28, align 8, !tbaa !5
  %133 = load i8, ptr %131, align 1, !tbaa !13
  %134 = zext i8 %133 to i32
  %135 = load ptr, ptr %29, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i32 1
  store ptr %136, ptr %29, align 8, !tbaa !5
  %137 = load i8, ptr %135, align 1, !tbaa !13
  %138 = zext i8 %137 to i32
  %139 = xor i32 %134, %138
  %140 = trunc i32 %139 to i8
  %141 = load ptr, ptr %27, align 8, !tbaa !5
  %142 = getelementptr inbounds i8, ptr %141, i32 1
  store ptr %142, ptr %27, align 8, !tbaa !5
  store i8 %140, ptr %141, align 1, !tbaa !13
  %143 = load i32, ptr %30, align 4, !tbaa !11
  %144 = add i32 %143, -1
  store i32 %144, ptr %30, align 4, !tbaa !11
  br label %127, !llvm.loop !17

145:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 40, 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

declare void @gascon_permute(ptr noundef, i8 noundef zeroext) #3

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

; Function Attrs: nounwind uwtable
declare hidden void @gascon_encrypt_8(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i8 noundef zeroext) #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 = { "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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}


; 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.gascon_state_t = type { [5 x i64] }

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @gascon80pq_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.gascon_state_t, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #4
  %11 = add i64 %3, 16
  store i64 %11, ptr %1, align 8, !tbaa !5
  store <4 x i8> <i8 6, i8 12, i8 64, i8 -96>, ptr %10, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %10, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %12, ptr noundef nonnull align 1 dereferenceable(20) %8, i64 20, i1 false)
  %13 = getelementptr inbounds i8, ptr %10, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(16) %7, i64 16, i1 false)
  call void @gascon_permute(ptr noundef nonnull %10, i8 noundef zeroext 0) #4
  %14 = getelementptr inbounds i8, ptr %10, i64 20
  %15 = getelementptr inbounds i8, ptr %8, i64 16
  %16 = getelementptr inbounds i8, ptr %10, i64 36
  %17 = load <16 x i8>, ptr %8, align 1, !tbaa !9
  %18 = load <16 x i8>, ptr %14, align 4, !tbaa !9
  %19 = xor <16 x i8> %18, %17
  store <16 x i8> %19, ptr %14, align 4, !tbaa !9
  %20 = load <4 x i8>, ptr %15, align 1, !tbaa !9
  %21 = load <4 x i8>, ptr %16, align 4, !tbaa !9
  %22 = xor <4 x i8> %21, %20
  store <4 x i8> %22, ptr %16, align 4, !tbaa !9
  %.not42 = icmp eq i64 %5, 0
  %23 = extractelement <4 x i8> %22, i64 3
  br i1 %.not42, label %25, label %24

24:                                               ; preds = %9
  call void @gascon_absorb_8(ptr noundef nonnull %10, ptr noundef %4, i64 noundef %5, i8 noundef zeroext 6)
  %.phi.trans.insert = getelementptr inbounds i8, ptr %10, i64 39
  %.pre = load i8, ptr %.phi.trans.insert, align 1, !tbaa !9
  br label %25

25:                                               ; preds = %24, %9
  %26 = phi i8 [ %.pre, %24 ], [ %23, %9 ]
  %27 = getelementptr inbounds i8, ptr %10, i64 39
  %28 = xor i8 %26, 1
  store i8 %28, ptr %27, align 1, !tbaa !9
  call void @gascon_encrypt_8(ptr noundef nonnull %10, ptr noundef %0, ptr noundef %2, i64 noundef %3, i8 noundef zeroext 6)
  %29 = getelementptr inbounds i8, ptr %10, i64 8
  %30 = getelementptr inbounds i8, ptr %10, i64 24
  %31 = load <16 x i8>, ptr %8, align 1, !tbaa !9
  %32 = load <16 x i8>, ptr %29, align 8, !tbaa !9
  %33 = xor <16 x i8> %32, %31
  store <16 x i8> %33, ptr %29, align 8, !tbaa !9
  %34 = load <4 x i8>, ptr %15, align 1, !tbaa !9
  %35 = load <4 x i8>, ptr %30, align 8, !tbaa !9
  %36 = xor <4 x i8> %35, %34
  store <4 x i8> %36, ptr %30, align 8, !tbaa !9
  call void @gascon_permute(ptr noundef nonnull %10, i8 noundef zeroext 0) #4
  %37 = getelementptr inbounds i8, ptr %0, i64 %3
  %38 = getelementptr inbounds i8, ptr %8, i64 4
  %39 = getelementptr inbounds i8, ptr %10, i64 25
  %40 = load i8, ptr %13, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %8, i64 5
  %42 = load i8, ptr %38, align 1, !tbaa !9
  %43 = xor i8 %42, %40
  %44 = getelementptr inbounds i8, ptr %37, i64 1
  store i8 %43, ptr %37, align 1, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %10, i64 26
  %46 = load i8, ptr %39, align 1, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %8, i64 6
  %48 = load i8, ptr %41, align 1, !tbaa !9
  %49 = xor i8 %48, %46
  %50 = getelementptr inbounds i8, ptr %37, i64 2
  store i8 %49, ptr %44, align 1, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %10, i64 27
  %52 = load i8, ptr %45, align 2, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %8, i64 7
  %54 = load i8, ptr %47, align 1, !tbaa !9
  %55 = xor i8 %54, %52
  %56 = getelementptr inbounds i8, ptr %37, i64 3
  store i8 %55, ptr %50, align 1, !tbaa !9
  %57 = getelementptr inbounds i8, ptr %10, i64 28
  %58 = load i8, ptr %51, align 1, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %8, i64 8
  %60 = load i8, ptr %53, align 1, !tbaa !9
  %61 = xor i8 %60, %58
  %62 = getelementptr inbounds i8, ptr %37, i64 4
  store i8 %61, ptr %56, align 1, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %10, i64 29
  %64 = load i8, ptr %57, align 4, !tbaa !9
  %65 = getelementptr inbounds i8, ptr %8, i64 9
  %66 = load i8, ptr %59, align 1, !tbaa !9
  %67 = xor i8 %66, %64
  %68 = getelementptr inbounds i8, ptr %37, i64 5
  store i8 %67, ptr %62, align 1, !tbaa !9
  %69 = getelementptr inbounds i8, ptr %10, i64 30
  %70 = load i8, ptr %63, align 1, !tbaa !9
  %71 = getelementptr inbounds i8, ptr %8, i64 10
  %72 = load i8, ptr %65, align 1, !tbaa !9
  %73 = xor i8 %72, %70
  %74 = getelementptr inbounds i8, ptr %37, i64 6
  store i8 %73, ptr %68, align 1, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %10, i64 31
  %76 = load i8, ptr %69, align 2, !tbaa !9
  %77 = getelementptr inbounds i8, ptr %8, i64 11
  %78 = load i8, ptr %71, align 1, !tbaa !9
  %79 = xor i8 %78, %76
  %80 = getelementptr inbounds i8, ptr %37, i64 7
  store i8 %79, ptr %74, align 1, !tbaa !9
  %81 = getelementptr inbounds i8, ptr %10, i64 32
  %82 = load i8, ptr %75, align 1, !tbaa !9
  %83 = getelementptr inbounds i8, ptr %8, i64 12
  %84 = load i8, ptr %77, align 1, !tbaa !9
  %85 = xor i8 %84, %82
  %86 = getelementptr inbounds i8, ptr %37, i64 8
  store i8 %85, ptr %80, align 1, !tbaa !9
  %87 = getelementptr inbounds i8, ptr %10, i64 33
  %88 = load i8, ptr %81, align 8, !tbaa !9
  %89 = getelementptr inbounds i8, ptr %8, i64 13
  %90 = load i8, ptr %83, align 1, !tbaa !9
  %91 = xor i8 %90, %88
  %92 = getelementptr inbounds i8, ptr %37, i64 9
  store i8 %91, ptr %86, align 1, !tbaa !9
  %93 = getelementptr inbounds i8, ptr %10, i64 34
  %94 = load i8, ptr %87, align 1, !tbaa !9
  %95 = getelementptr inbounds i8, ptr %8, i64 14
  %96 = load i8, ptr %89, align 1, !tbaa !9
  %97 = xor i8 %96, %94
  %98 = getelementptr inbounds i8, ptr %37, i64 10
  store i8 %97, ptr %92, align 1, !tbaa !9
  %99 = getelementptr inbounds i8, ptr %10, i64 35
  %100 = load i8, ptr %93, align 2, !tbaa !9
  %101 = getelementptr inbounds i8, ptr %8, i64 15
  %102 = load i8, ptr %95, align 1, !tbaa !9
  %103 = xor i8 %102, %100
  %104 = getelementptr inbounds i8, ptr %37, i64 11
  store i8 %103, ptr %98, align 1, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %10, i64 36
  %106 = load i8, ptr %99, align 1, !tbaa !9
  %107 = getelementptr inbounds i8, ptr %8, i64 16
  %108 = load i8, ptr %101, align 1, !tbaa !9
  %109 = xor i8 %108, %106
  %110 = getelementptr inbounds i8, ptr %37, i64 12
  store i8 %109, ptr %104, align 1, !tbaa !9
  %111 = getelementptr inbounds i8, ptr %10, i64 37
  %112 = load i8, ptr %105, align 4, !tbaa !9
  %113 = getelementptr inbounds i8, ptr %8, i64 17
  %114 = load i8, ptr %107, align 1, !tbaa !9
  %115 = xor i8 %114, %112
  %116 = getelementptr inbounds i8, ptr %37, i64 13
  store i8 %115, ptr %110, align 1, !tbaa !9
  %117 = getelementptr inbounds i8, ptr %10, i64 38
  %118 = load i8, ptr %111, align 1, !tbaa !9
  %119 = getelementptr inbounds i8, ptr %8, i64 18
  %120 = load i8, ptr %113, align 1, !tbaa !9
  %121 = xor i8 %120, %118
  %122 = getelementptr inbounds i8, ptr %37, i64 14
  store i8 %121, ptr %116, align 1, !tbaa !9
  %123 = getelementptr inbounds i8, ptr %10, i64 39
  %124 = load i8, ptr %117, align 2, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %8, i64 19
  %126 = load i8, ptr %119, align 1, !tbaa !9
  %127 = xor i8 %126, %124
  %128 = getelementptr inbounds i8, ptr %37, i64 15
  store i8 %127, ptr %122, align 1, !tbaa !9
  %129 = load i8, ptr %123, align 1, !tbaa !9
  %130 = load i8, ptr %125, align 1, !tbaa !9
  %131 = xor i8 %130, %129
  store i8 %131, ptr %128, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 40, 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

declare void @gascon_permute(ptr noundef, i8 noundef zeroext) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden void @gascon_encrypt_8(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i8 noundef zeroext) 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 = { "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,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass