; 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 @gascon128_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 i64, align 8
  %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 8, ptr %20) #4
  store i64 -9205344418435956736, ptr %20, align 8, !tbaa !11
  %36 = load i64, ptr %20, align 8, !tbaa !11
  %37 = trunc i64 %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 i64, ptr %20, align 8, !tbaa !11
  %40 = lshr i64 %39, 8
  %41 = trunc i64 %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 i64, ptr %20, align 8, !tbaa !11
  %44 = lshr i64 %43, 16
  %45 = trunc i64 %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 i64, ptr %20, align 8, !tbaa !11
  %48 = lshr i64 %47, 24
  %49 = trunc i64 %48 to i8
  %50 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 3
  store i8 %49, ptr %50, align 1, !tbaa !13
  %51 = load i64, ptr %20, align 8, !tbaa !11
  %52 = lshr i64 %51, 32
  %53 = trunc i64 %52 to i8
  %54 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 4
  store i8 %53, ptr %54, align 4, !tbaa !13
  %55 = load i64, ptr %20, align 8, !tbaa !11
  %56 = lshr i64 %55, 40
  %57 = trunc i64 %56 to i8
  %58 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 5
  store i8 %57, ptr %58, align 1, !tbaa !13
  %59 = load i64, ptr %20, align 8, !tbaa !11
  %60 = lshr i64 %59, 48
  %61 = trunc i64 %60 to i8
  %62 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 6
  store i8 %61, ptr %62, align 2, !tbaa !13
  %63 = load i64, ptr %20, align 8, !tbaa !11
  %64 = lshr i64 %63, 56
  %65 = trunc i64 %64 to i8
  %66 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 7
  store i8 %65, ptr %66, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %67

67:                                               ; preds = %35
  br label %68

68:                                               ; preds = %67
  %69 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %70, ptr align 1 %71, i64 16, i1 false)
  %72 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %73 = getelementptr inbounds i8, ptr %72, i64 24
  %74 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %73, ptr align 1 %74, i64 16, i1 false)
  call void @gascon_permute(ptr noundef %19, i8 noundef zeroext 0)
  br label %75

75:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %76 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %77 = getelementptr inbounds i8, ptr %76, i64 24
  store ptr %77, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %78, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 16, ptr %23, align 4, !tbaa !14
  br label %79

79:                                               ; preds = %82, %75
  %80 = load i32, ptr %23, align 4, !tbaa !14
  %81 = icmp ugt i32 %80, 0
  br i1 %81, label %82, label %95

82:                                               ; preds = %79
  %83 = load ptr, ptr %22, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i32 1
  store ptr %84, ptr %22, align 8, !tbaa !5
  %85 = load i8, ptr %83, align 1, !tbaa !13
  %86 = zext i8 %85 to i32
  %87 = load ptr, ptr %21, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i32 1
  store ptr %88, ptr %21, align 8, !tbaa !5
  %89 = load i8, ptr %87, align 1, !tbaa !13
  %90 = zext i8 %89 to i32
  %91 = xor i32 %90, %86
  %92 = trunc i32 %91 to i8
  store i8 %92, ptr %87, align 1, !tbaa !13
  %93 = load i32, ptr %23, align 4, !tbaa !14
  %94 = add i32 %93, -1
  store i32 %94, ptr %23, align 4, !tbaa !14
  br label %79, !llvm.loop !16

95:                                               ; preds = %79
  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 %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  %98 = load i64, ptr %15, align 8, !tbaa !9
  %99 = icmp ugt i64 %98, 0
  br i1 %99, label %100, label %103

100:                                              ; preds = %97
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = load i64, ptr %15, align 8, !tbaa !9
  call void @gascon_absorb_8(ptr noundef %19, ptr noundef %101, i64 noundef %102, i8 noundef zeroext 6)
  br label %103

103:                                              ; preds = %100, %97
  %104 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 39
  %105 = load i8, ptr %104, align 1, !tbaa !13
  %106 = zext i8 %105 to i32
  %107 = xor i32 %106, 1
  %108 = trunc i32 %107 to i8
  store i8 %108, ptr %104, align 1, !tbaa !13
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = load i64, ptr %13, align 8, !tbaa !9
  call void @gascon_encrypt_8(ptr noundef %19, ptr noundef %109, ptr noundef %110, i64 noundef %111, i8 noundef zeroext 6)
  br label %112

112:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %113 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %114 = getelementptr inbounds i8, ptr %113, i64 8
  store ptr %114, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %115 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %115, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 16, ptr %26, align 4, !tbaa !14
  br label %116

116:                                              ; preds = %119, %112
  %117 = load i32, ptr %26, align 4, !tbaa !14
  %118 = icmp ugt i32 %117, 0
  br i1 %118, label %119, label %132

119:                                              ; preds = %116
  %120 = load ptr, ptr %25, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %120, i32 1
  store ptr %121, ptr %25, align 8, !tbaa !5
  %122 = load i8, ptr %120, align 1, !tbaa !13
  %123 = zext i8 %122 to i32
  %124 = load ptr, ptr %24, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i32 1
  store ptr %125, ptr %24, align 8, !tbaa !5
  %126 = load i8, ptr %124, align 1, !tbaa !13
  %127 = zext i8 %126 to i32
  %128 = xor i32 %127, %123
  %129 = trunc i32 %128 to i8
  store i8 %129, ptr %124, align 1, !tbaa !13
  %130 = load i32, ptr %26, align 4, !tbaa !14
  %131 = add i32 %130, -1
  store i32 %131, ptr %26, align 4, !tbaa !14
  br label %116, !llvm.loop !18

132:                                              ; preds = %116
  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 %133

133:                                              ; preds = %132
  br label %134

134:                                              ; preds = %133
  call void @gascon_permute(ptr noundef %19, i8 noundef zeroext 0)
  br label %135

135:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load i64, ptr %13, align 8, !tbaa !9
  %138 = getelementptr inbounds i8, ptr %136, i64 %137
  store ptr %138, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %139 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %140 = getelementptr inbounds i8, ptr %139, i64 24
  store ptr %140, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %141 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %141, 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 !14
  br label %142

142:                                              ; preds = %145, %135
  %143 = load i32, ptr %30, align 4, !tbaa !14
  %144 = icmp ugt i32 %143, 0
  br i1 %144, label %145, label %160

145:                                              ; preds = %142
  %146 = load ptr, ptr %28, align 8, !tbaa !5
  %147 = getelementptr inbounds i8, ptr %146, i32 1
  store ptr %147, ptr %28, align 8, !tbaa !5
  %148 = load i8, ptr %146, align 1, !tbaa !13
  %149 = zext i8 %148 to i32
  %150 = load ptr, ptr %29, align 8, !tbaa !5
  %151 = getelementptr inbounds i8, ptr %150, i32 1
  store ptr %151, ptr %29, align 8, !tbaa !5
  %152 = load i8, ptr %150, align 1, !tbaa !13
  %153 = zext i8 %152 to i32
  %154 = xor i32 %149, %153
  %155 = trunc i32 %154 to i8
  %156 = load ptr, ptr %27, align 8, !tbaa !5
  %157 = getelementptr inbounds i8, ptr %156, i32 1
  store ptr %157, ptr %27, align 8, !tbaa !5
  store i8 %155, ptr %156, align 1, !tbaa !13
  %158 = load i32, ptr %30, align 4, !tbaa !14
  %159 = add i32 %158, -1
  store i32 %159, ptr %30, align 4, !tbaa !14
  br label %142, !llvm.loop !19

160:                                              ; preds = %142
  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 %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161
  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 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


; 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 @gascon128_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
  %12 = getelementptr inbounds i8, ptr %10, i64 4
  store i32 0, ptr %10, align 8
  store <4 x i8> <i8 6, i8 12, i8 64, i8 -128>, ptr %12, align 4, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %10, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(16) %8, i64 16, i1 false)
  %14 = getelementptr inbounds i8, ptr %10, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %14, 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
  %15 = load <16 x i8>, ptr %8, align 1, !tbaa !9
  %16 = load <16 x i8>, ptr %14, align 8, !tbaa !9
  %17 = xor <16 x i8> %16, %15
  store <16 x i8> %17, ptr %14, align 8, !tbaa !9
  %.not46 = icmp eq i64 %5, 0
  %18 = extractelement <16 x i8> %17, i64 15
  br i1 %.not46, label %20, label %19

19:                                               ; 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 %20

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