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

; 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.drysponge256_state_t = type { %union.gascon256_state_t, %union.drysponge256_rate_t, %union.drysponge256_x_t, i32, i32 }
%union.gascon256_state_t = type { [9 x i64] }
%union.drysponge256_rate_t = type { [2 x i64] }
%union.drysponge256_x_t = type { [2 x i64] }

; Function Attrs: nounwind uwtable
define dso_local i32 @drygascon256_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 %struct.drysponge256_state_t, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = 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 112, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %29 = load ptr, ptr %16, align 8, !tbaa !5
  %30 = load i64, ptr %13, align 8, !tbaa !9
  %31 = add i64 %30, 32
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %31, ptr %32, align 8, !tbaa !9
  %33 = load ptr, ptr %18, align 8, !tbaa !5
  %34 = load ptr, ptr %17, align 8, !tbaa !5
  %35 = load i64, ptr %15, align 8, !tbaa !9
  %36 = icmp eq i64 %35, 0
  br i1 %36, label %37, label %40

37:                                               ; preds = %9
  %38 = load i64, ptr %13, align 8, !tbaa !9
  %39 = icmp eq i64 %38, 0
  br label %40

40:                                               ; preds = %37, %9
  %41 = phi i1 [ false, %9 ], [ %39, %37 ]
  %42 = zext i1 %41 to i32
  call void @drysponge256_setup(ptr noundef %19, ptr noundef %33, ptr noundef %34, i32 noundef %42)
  %43 = load i64, ptr %15, align 8, !tbaa !9
  %44 = icmp ugt i64 %43, 0
  br i1 %44, label %45, label %51

45:                                               ; preds = %40
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = load i64, ptr %15, align 8, !tbaa !9
  %48 = load i64, ptr %13, align 8, !tbaa !9
  %49 = icmp eq i64 %48, 0
  %50 = zext i1 %49 to i32
  call void @drygascon256_process_ad(ptr noundef %19, ptr noundef %46, i64 noundef %47, i32 noundef %50)
  br label %51

51:                                               ; preds = %45, %40
  %52 = load i64, ptr %13, align 8, !tbaa !9
  %53 = icmp ugt i64 %52, 0
  br i1 %53, label %54, label %136

54:                                               ; preds = %51
  br label %55

55:                                               ; preds = %85, %54
  %56 = load i64, ptr %13, align 8, !tbaa !9
  %57 = icmp ugt i64 %56, 16
  br i1 %57, label %58, label %92

58:                                               ; preds = %55
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  call void @drysponge256_f_absorb(ptr noundef %19, ptr noundef %59, i32 noundef 16)
  br label %60

60:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %61, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %62, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %63 = getelementptr inbounds %struct.drysponge256_state_t, ptr %19, i32 0, i32 1
  %64 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 0
  store ptr %64, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 16, ptr %24, align 4, !tbaa !11
  br label %65

65:                                               ; preds = %68, %60
  %66 = load i32, ptr %24, align 4, !tbaa !11
  %67 = icmp ugt i32 %66, 0
  br i1 %67, label %68, label %83

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

83:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  call void @drysponge256_g(ptr noundef %19)
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 16
  store ptr %87, ptr %10, align 8, !tbaa !5
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 16
  store ptr %89, ptr %12, align 8, !tbaa !5
  %90 = load i64, ptr %13, align 8, !tbaa !9
  %91 = sub i64 %90, 16
  store i64 %91, ptr %13, align 8, !tbaa !9
  br label %55, !llvm.loop !16

92:                                               ; preds = %55
  %93 = getelementptr inbounds %struct.drysponge256_state_t, ptr %19, i32 0, i32 3
  store i32 56, ptr %93, align 8, !tbaa !17
  %94 = load i64, ptr %13, align 8, !tbaa !9
  %95 = icmp ult i64 %94, 16
  br i1 %95, label %96, label %100

96:                                               ; preds = %92
  %97 = getelementptr inbounds %struct.drysponge256_state_t, ptr %19, i32 0, i32 3
  %98 = load i32, ptr %97, align 8, !tbaa !17
  %99 = or i32 %98, 4
  store i32 %99, ptr %97, align 8, !tbaa !17
  br label %100

100:                                              ; preds = %96, %92
  %101 = load i64, ptr %13, align 8, !tbaa !9
  %102 = trunc i64 %101 to i32
  store i32 %102, ptr %20, align 4, !tbaa !11
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load i32, ptr %20, align 4, !tbaa !11
  call void @drysponge256_f_absorb(ptr noundef %19, ptr noundef %103, i32 noundef %104)
  br label %105

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %106, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %107, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %108 = getelementptr inbounds %struct.drysponge256_state_t, ptr %19, i32 0, i32 1
  %109 = getelementptr inbounds [16 x i8], ptr %108, i64 0, i64 0
  store ptr %109, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %110 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %110, ptr %28, align 4, !tbaa !11
  br label %111

111:                                              ; preds = %114, %105
  %112 = load i32, ptr %28, align 4, !tbaa !11
  %113 = icmp ugt i32 %112, 0
  br i1 %113, label %114, label %129

114:                                              ; preds = %111
  %115 = load ptr, ptr %26, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i32 1
  store ptr %116, ptr %26, align 8, !tbaa !5
  %117 = load i8, ptr %115, align 1, !tbaa !13
  %118 = zext i8 %117 to i32
  %119 = load ptr, ptr %27, align 8, !tbaa !5
  %120 = getelementptr inbounds i8, ptr %119, i32 1
  store ptr %120, ptr %27, align 8, !tbaa !5
  %121 = load i8, ptr %119, align 1, !tbaa !13
  %122 = zext i8 %121 to i32
  %123 = xor i32 %118, %122
  %124 = trunc i32 %123 to i8
  %125 = load ptr, ptr %25, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i32 1
  store ptr %126, ptr %25, align 8, !tbaa !5
  store i8 %124, ptr %125, align 1, !tbaa !13
  %127 = load i32, ptr %28, align 4, !tbaa !11
  %128 = add i32 %127, -1
  store i32 %128, ptr %28, align 4, !tbaa !11
  br label %111, !llvm.loop !19

129:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  call void @drysponge256_g(ptr noundef %19)
  %132 = load i32, ptr %20, align 4, !tbaa !11
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = zext i32 %132 to i64
  %135 = getelementptr inbounds i8, ptr %133, i64 %134
  store ptr %135, ptr %10, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %131, %51
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.drysponge256_state_t, ptr %19, i32 0, i32 1
  %139 = getelementptr inbounds [16 x i8], ptr %138, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %137, ptr align 8 %139, i64 16, i1 false)
  call void @drysponge256_g(ptr noundef %19)
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 16
  %142 = getelementptr inbounds %struct.drysponge256_state_t, ptr %19, i32 0, i32 1
  %143 = getelementptr inbounds [16 x i8], ptr %142, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %141, ptr align 8 %143, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 112, 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare void @drysponge256_setup(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

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

declare void @drysponge256_f_absorb(ptr noundef, ptr noundef, i32 noundef) #3

declare void @drysponge256_g(ptr noundef) #3

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 = !{!18, !12, i64 104}
!18 = !{!"", !7, i64 0, !7, i64 72, !7, i64 88, !12, i64 104, !12, i64 108}
!19 = distinct !{!19, !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"

%struct.drysponge256_state_t = type { %union.gascon256_state_t, %union.drysponge256_rate_t, %union.drysponge256_x_t, i32, i32 }
%union.gascon256_state_t = type { [9 x i64] }
%union.drysponge256_rate_t = type { [2 x i64] }
%union.drysponge256_x_t = type { [2 x i64] }

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @drygascon256_aead_encrypt(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr nocapture noundef readnone %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca %struct.drysponge256_state_t, align 8
  %11 = ptrtoint ptr %10 to i64
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %10) #4
  %12 = add i64 %3, 32
  store i64 %12, ptr %1, align 8, !tbaa !5
  %13 = or i64 %5, %3
  %14 = icmp eq i64 %13, 0
  %15 = zext i1 %14 to i32
  call void @drysponge256_setup(ptr noundef nonnull %10, ptr noundef %8, ptr noundef %7, i32 noundef %15) #4
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %19, label %16

16:                                               ; preds = %9
  %17 = icmp eq i64 %3, 0
  %18 = zext i1 %17 to i32
  call void @drygascon256_process_ad(ptr noundef nonnull %10, ptr noundef %4, i64 noundef %5, i32 noundef %18)
  br label %19

19:                                               ; preds = %16, %9
  %.not51 = icmp eq i64 %3, 0
  br i1 %.not51, label %172, label %.preheader

.preheader:                                       ; preds = %19
  %20 = icmp ugt i64 %3, 16
  br i1 %20, label %.lr.ph, label %iter.check

.lr.ph:                                           ; preds = %.preheader
  %21 = getelementptr inbounds i8, ptr %10, i64 72
  %22 = getelementptr inbounds i8, ptr %10, i64 73
  %23 = getelementptr inbounds i8, ptr %10, i64 74
  %24 = getelementptr inbounds i8, ptr %10, i64 75
  %25 = getelementptr inbounds i8, ptr %10, i64 76
  %26 = getelementptr inbounds i8, ptr %10, i64 77
  %27 = getelementptr inbounds i8, ptr %10, i64 78
  %28 = getelementptr inbounds i8, ptr %10, i64 79
  %29 = getelementptr inbounds i8, ptr %10, i64 80
  %30 = getelementptr inbounds i8, ptr %10, i64 81
  %31 = getelementptr inbounds i8, ptr %10, i64 82
  %32 = getelementptr inbounds i8, ptr %10, i64 83
  %33 = getelementptr inbounds i8, ptr %10, i64 84
  %34 = getelementptr inbounds i8, ptr %10, i64 85
  %35 = getelementptr inbounds i8, ptr %10, i64 86
  %36 = getelementptr inbounds i8, ptr %10, i64 87
  br label %37

37:                                               ; preds = %.lr.ph, %37
  %.04661 = phi ptr [ %0, %.lr.ph ], [ %116, %37 ]
  %.04760 = phi ptr [ %2, %.lr.ph ], [ %117, %37 ]
  %.04859 = phi i64 [ %3, %.lr.ph ], [ %118, %37 ]
  call void @drysponge256_f_absorb(ptr noundef nonnull %10, ptr noundef %.04760, i32 noundef 16) #4
  %38 = getelementptr inbounds i8, ptr %.04760, i64 1
  %39 = load i8, ptr %.04760, align 1, !tbaa !9
  %40 = load i8, ptr %21, align 8, !tbaa !9
  %41 = xor i8 %40, %39
  %42 = getelementptr inbounds i8, ptr %.04661, i64 1
  store i8 %41, ptr %.04661, align 1, !tbaa !9
  %43 = getelementptr inbounds i8, ptr %.04760, i64 2
  %44 = load i8, ptr %38, align 1, !tbaa !9
  %45 = load i8, ptr %22, align 1, !tbaa !9
  %46 = xor i8 %45, %44
  %47 = getelementptr inbounds i8, ptr %.04661, i64 2
  store i8 %46, ptr %42, align 1, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %.04760, i64 3
  %49 = load i8, ptr %43, align 1, !tbaa !9
  %50 = load i8, ptr %23, align 2, !tbaa !9
  %51 = xor i8 %50, %49
  %52 = getelementptr inbounds i8, ptr %.04661, i64 3
  store i8 %51, ptr %47, align 1, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %.04760, i64 4
  %54 = load i8, ptr %48, align 1, !tbaa !9
  %55 = load i8, ptr %24, align 1, !tbaa !9
  %56 = xor i8 %55, %54
  %57 = getelementptr inbounds i8, ptr %.04661, i64 4
  store i8 %56, ptr %52, align 1, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %.04760, i64 5
  %59 = load i8, ptr %53, align 1, !tbaa !9
  %60 = load i8, ptr %25, align 4, !tbaa !9
  %61 = xor i8 %60, %59
  %62 = getelementptr inbounds i8, ptr %.04661, i64 5
  store i8 %61, ptr %57, align 1, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %.04760, i64 6
  %64 = load i8, ptr %58, align 1, !tbaa !9
  %65 = load i8, ptr %26, align 1, !tbaa !9
  %66 = xor i8 %65, %64
  %67 = getelementptr inbounds i8, ptr %.04661, i64 6
  store i8 %66, ptr %62, align 1, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %.04760, i64 7
  %69 = load i8, ptr %63, align 1, !tbaa !9
  %70 = load i8, ptr %27, align 2, !tbaa !9
  %71 = xor i8 %70, %69
  %72 = getelementptr inbounds i8, ptr %.04661, i64 7
  store i8 %71, ptr %67, align 1, !tbaa !9
  %73 = getelementptr inbounds i8, ptr %.04760, i64 8
  %74 = load i8, ptr %68, align 1, !tbaa !9
  %75 = load i8, ptr %28, align 1, !tbaa !9
  %76 = xor i8 %75, %74
  %77 = getelementptr inbounds i8, ptr %.04661, i64 8
  store i8 %76, ptr %72, align 1, !tbaa !9
  %78 = getelementptr inbounds i8, ptr %.04760, i64 9
  %79 = load i8, ptr %73, align 1, !tbaa !9
  %80 = load i8, ptr %29, align 8, !tbaa !9
  %81 = xor i8 %80, %79
  %82 = getelementptr inbounds i8, ptr %.04661, i64 9
  store i8 %81, ptr %77, align 1, !tbaa !9
  %83 = getelementptr inbounds i8, ptr %.04760, i64 10
  %84 = load i8, ptr %78, align 1, !tbaa !9
  %85 = load i8, ptr %30, align 1, !tbaa !9
  %86 = xor i8 %85, %84
  %87 = getelementptr inbounds i8, ptr %.04661, i64 10
  store i8 %86, ptr %82, align 1, !tbaa !9
  %88 = getelementptr inbounds i8, ptr %.04760, i64 11
  %89 = load i8, ptr %83, align 1, !tbaa !9
  %90 = load i8, ptr %31, align 2, !tbaa !9
  %91 = xor i8 %90, %89
  %92 = getelementptr inbounds i8, ptr %.04661, i64 11
  store i8 %91, ptr %87, align 1, !tbaa !9
  %93 = getelementptr inbounds i8, ptr %.04760, i64 12
  %94 = load i8, ptr %88, align 1, !tbaa !9
  %95 = load i8, ptr %32, align 1, !tbaa !9
  %96 = xor i8 %95, %94
  %97 = getelementptr inbounds i8, ptr %.04661, i64 12
  store i8 %96, ptr %92, align 1, !tbaa !9
  %98 = getelementptr inbounds i8, ptr %.04760, i64 13
  %99 = load i8, ptr %93, align 1, !tbaa !9
  %100 = load i8, ptr %33, align 4, !tbaa !9
  %101 = xor i8 %100, %99
  %102 = getelementptr inbounds i8, ptr %.04661, i64 13
  store i8 %101, ptr %97, align 1, !tbaa !9
  %103 = getelementptr inbounds i8, ptr %.04760, i64 14
  %104 = load i8, ptr %98, align 1, !tbaa !9
  %105 = load i8, ptr %34, align 1, !tbaa !9
  %106 = xor i8 %105, %104
  %107 = getelementptr inbounds i8, ptr %.04661, i64 14
  store i8 %106, ptr %102, align 1, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %.04760, i64 15
  %109 = load i8, ptr %103, align 1, !tbaa !9
  %110 = load i8, ptr %35, align 2, !tbaa !9
  %111 = xor i8 %110, %109
  %112 = getelementptr inbounds i8, ptr %.04661, i64 15
  store i8 %111, ptr %107, align 1, !tbaa !9
  %113 = load i8, ptr %108, align 1, !tbaa !9
  %114 = load i8, ptr %36, align 1, !tbaa !9
  %115 = xor i8 %114, %113
  store i8 %115, ptr %112, align 1, !tbaa !9
  call void @drysponge256_g(ptr noundef nonnull %10) #4
  %116 = getelementptr inbounds i8, ptr %.04661, i64 16
  %117 = getelementptr inbounds i8, ptr %.04760, i64 16
  %118 = add i64 %.04859, -16
  %119 = icmp ugt i64 %118, 16
  br i1 %119, label %37, label %iter.check, !llvm.loop !10

iter.check:                                       ; preds = %37, %.preheader
  %.048.lcssa = phi i64 [ %3, %.preheader ], [ %118, %37 ]
  %.047.lcssa = phi ptr [ %2, %.preheader ], [ %117, %37 ]
  %.046.lcssa = phi ptr [ %0, %.preheader ], [ %116, %37 ]
  %120 = getelementptr inbounds i8, ptr %10, i64 104
  %.not52 = icmp eq i64 %.048.lcssa, 16
  %spec.select = select i1 %.not52, i32 56, i32 60
  store i32 %spec.select, ptr %120, align 8, !tbaa !12
  %121 = trunc nuw nsw i64 %.048.lcssa to i32
  call void @drysponge256_f_absorb(ptr noundef nonnull %10, ptr noundef %.047.lcssa, i32 noundef %121) #4
  %122 = getelementptr inbounds i8, ptr %10, i64 72
  %123 = add nuw nsw i64 %.048.lcssa, 4294967295
  %124 = and i64 %123, 4294967295
  %125 = add nuw nsw i64 %124, 1
  %min.iters.check = icmp ult i64 %124, 7
  br i1 %min.iters.check, label %.lr.ph70.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %iter.check
  %.047.lcssa79 = ptrtoint ptr %.047.lcssa to i64
  %.046.lcssa78 = ptrtoint ptr %.046.lcssa to i64
  %126 = sub i64 %.046.lcssa78, %.047.lcssa79
  %diff.check = icmp ult i64 %126, 32
  %127 = add i64 %.046.lcssa78, -72
  %128 = sub i64 %127, %11
  %diff.check80 = icmp ult i64 %128, 32
  %conflict.rdx = or i1 %diff.check, %diff.check80
  br i1 %conflict.rdx, label %.lr.ph70.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.memcheck
  %min.iters.check81 = icmp ult i64 %124, 31
  br i1 %min.iters.check81, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %125, 8589934560
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %next.gep = getelementptr i8, ptr %122, i64 %index
  %next.gep83 = getelementptr i8, ptr %.047.lcssa, i64 %index
  %next.gep85 = getelementptr i8, ptr %.046.lcssa, i64 %index
  %129 = getelementptr i8, ptr %next.gep83, i64 16
  %wide.load = load <16 x i8>, ptr %next.gep83, align 1, !tbaa !9
  %wide.load87 = load <16 x i8>, ptr %129, align 1, !tbaa !9
  %130 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load88 = load <16 x i8>, ptr %next.gep, align 8, !tbaa !9
  %wide.load89 = load <16 x i8>, ptr %130, align 8, !tbaa !9
  %131 = xor <16 x i8> %wide.load88, %wide.load
  %132 = xor <16 x i8> %wide.load89, %wide.load87
  %133 = getelementptr i8, ptr %next.gep85, i64 16
  store <16 x i8> %131, ptr %next.gep85, align 1, !tbaa !9
  store <16 x i8> %132, ptr %133, align 1, !tbaa !9
  %index.next = add nuw i64 %index, 32
  %134 = icmp eq i64 %index.next, %n.vec
  br i1 %134, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %125, %n.vec
  br i1 %cmp.n, label %._crit_edge71, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end101 = getelementptr i8, ptr %.046.lcssa, i64 %n.vec
  %ind.end98 = getelementptr i8, ptr %.047.lcssa, i64 %n.vec
  %ind.end95 = getelementptr i8, ptr %122, i64 %n.vec
  %.cast92 = trunc i64 %n.vec to i32
  %ind.end93 = sub i32 %121, %.cast92
  %n.vec.remaining = and i64 %125, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph70.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec91 = and i64 %125, 8589934584
  %.cast = trunc i64 %n.vec91 to i32
  %ind.end = sub i32 %121, %.cast
  %ind.end94 = getelementptr i8, ptr %122, i64 %n.vec91
  %ind.end97 = getelementptr i8, ptr %.047.lcssa, i64 %n.vec91
  %ind.end100 = getelementptr i8, ptr %.046.lcssa, i64 %n.vec91
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index103 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next109, %vec.epilog.vector.body ]
  %next.gep104 = getelementptr i8, ptr %122, i64 %index103
  %next.gep105 = getelementptr i8, ptr %.047.lcssa, i64 %index103
  %next.gep106 = getelementptr i8, ptr %.046.lcssa, i64 %index103
  %wide.load107 = load <8 x i8>, ptr %next.gep105, align 1, !tbaa !9
  %wide.load108 = load <8 x i8>, ptr %next.gep104, align 8, !tbaa !9
  %135 = xor <8 x i8> %wide.load108, %wide.load107
  store <8 x i8> %135, ptr %next.gep106, align 1, !tbaa !9
  %index.next109 = add nuw i64 %index103, 8
  %136 = icmp eq i64 %index.next109, %n.vec91
  br i1 %136, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !18

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n110 = icmp eq i64 %125, %n.vec91
  br i1 %cmp.n110, label %._crit_edge71, label %.lr.ph70.preheader

.lr.ph70.preheader:                               ; preds = %vec.epilog.middle.block, %vector.memcheck, %iter.check, %vec.epilog.iter.check
  %.068.ph = phi i32 [ %121, %iter.check ], [ %121, %vector.memcheck ], [ %ind.end93, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  %.03967.ph = phi ptr [ %122, %iter.check ], [ %122, %vector.memcheck ], [ %ind.end95, %vec.epilog.iter.check ], [ %ind.end94, %vec.epilog.middle.block ]
  %.04066.ph = phi ptr [ %.047.lcssa, %iter.check ], [ %.047.lcssa, %vector.memcheck ], [ %ind.end98, %vec.epilog.iter.check ], [ %ind.end97, %vec.epilog.middle.block ]
  %.04165.ph = phi ptr [ %.046.lcssa, %iter.check ], [ %.046.lcssa, %vector.memcheck ], [ %ind.end101, %vec.epilog.iter.check ], [ %ind.end100, %vec.epilog.middle.block ]
  %137 = add nsw i32 %.068.ph, -1
  %xtraiter = and i32 %.068.ph, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph70.prol.loopexit, label %.lr.ph70.prol

.lr.ph70.prol:                                    ; preds = %.lr.ph70.preheader, %.lr.ph70.prol
  %.068.prol = phi i32 [ %144, %.lr.ph70.prol ], [ %.068.ph, %.lr.ph70.preheader ]
  %.03967.prol = phi ptr [ %140, %.lr.ph70.prol ], [ %.03967.ph, %.lr.ph70.preheader ]
  %.04066.prol = phi ptr [ %138, %.lr.ph70.prol ], [ %.04066.ph, %.lr.ph70.preheader ]
  %.04165.prol = phi ptr [ %143, %.lr.ph70.prol ], [ %.04165.ph, %.lr.ph70.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph70.prol ], [ 0, %.lr.ph70.preheader ]
  %138 = getelementptr inbounds i8, ptr %.04066.prol, i64 1
  %139 = load i8, ptr %.04066.prol, align 1, !tbaa !9
  %140 = getelementptr inbounds i8, ptr %.03967.prol, i64 1
  %141 = load i8, ptr %.03967.prol, align 1, !tbaa !9
  %142 = xor i8 %141, %139
  %143 = getelementptr inbounds i8, ptr %.04165.prol, i64 1
  store i8 %142, ptr %.04165.prol, align 1, !tbaa !9
  %144 = add nsw i32 %.068.prol, -1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph70.prol.loopexit, label %.lr.ph70.prol, !llvm.loop !19

.lr.ph70.prol.loopexit:                           ; preds = %.lr.ph70.prol, %.lr.ph70.preheader
  %.068.unr = phi i32 [ %.068.ph, %.lr.ph70.preheader ], [ %144, %.lr.ph70.prol ]
  %.03967.unr = phi ptr [ %.03967.ph, %.lr.ph70.preheader ], [ %140, %.lr.ph70.prol ]
  %.04066.unr = phi ptr [ %.04066.ph, %.lr.ph70.preheader ], [ %138, %.lr.ph70.prol ]
  %.04165.unr = phi ptr [ %.04165.ph, %.lr.ph70.preheader ], [ %143, %.lr.ph70.prol ]
  %145 = icmp ult i32 %137, 3
  br i1 %145, label %._crit_edge71, label %.lr.ph70

.lr.ph70:                                         ; preds = %.lr.ph70.prol.loopexit, %.lr.ph70
  %.068 = phi i32 [ %170, %.lr.ph70 ], [ %.068.unr, %.lr.ph70.prol.loopexit ]
  %.03967 = phi ptr [ %166, %.lr.ph70 ], [ %.03967.unr, %.lr.ph70.prol.loopexit ]
  %.04066 = phi ptr [ %164, %.lr.ph70 ], [ %.04066.unr, %.lr.ph70.prol.loopexit ]
  %.04165 = phi ptr [ %169, %.lr.ph70 ], [ %.04165.unr, %.lr.ph70.prol.loopexit ]
  %146 = getelementptr inbounds i8, ptr %.04066, i64 1
  %147 = load i8, ptr %.04066, align 1, !tbaa !9
  %148 = getelementptr inbounds i8, ptr %.03967, i64 1
  %149 = load i8, ptr %.03967, align 1, !tbaa !9
  %150 = xor i8 %149, %147
  %151 = getelementptr inbounds i8, ptr %.04165, i64 1
  store i8 %150, ptr %.04165, align 1, !tbaa !9
  %152 = getelementptr inbounds i8, ptr %.04066, i64 2
  %153 = load i8, ptr %146, align 1, !tbaa !9
  %154 = getelementptr inbounds i8, ptr %.03967, i64 2
  %155 = load i8, ptr %148, align 1, !tbaa !9
  %156 = xor i8 %155, %153
  %157 = getelementptr inbounds i8, ptr %.04165, i64 2
  store i8 %156, ptr %151, align 1, !tbaa !9
  %158 = getelementptr inbounds i8, ptr %.04066, i64 3
  %159 = load i8, ptr %152, align 1, !tbaa !9
  %160 = getelementptr inbounds i8, ptr %.03967, i64 3
  %161 = load i8, ptr %154, align 1, !tbaa !9
  %162 = xor i8 %161, %159
  %163 = getelementptr inbounds i8, ptr %.04165, i64 3
  store i8 %162, ptr %157, align 1, !tbaa !9
  %164 = getelementptr inbounds i8, ptr %.04066, i64 4
  %165 = load i8, ptr %158, align 1, !tbaa !9
  %166 = getelementptr inbounds i8, ptr %.03967, i64 4
  %167 = load i8, ptr %160, align 1, !tbaa !9
  %168 = xor i8 %167, %165
  %169 = getelementptr inbounds i8, ptr %.04165, i64 4
  store i8 %168, ptr %163, align 1, !tbaa !9
  %170 = add nsw i32 %.068, -4
  %.not53.3 = icmp eq i32 %170, 0
  br i1 %.not53.3, label %._crit_edge71, label %.lr.ph70, !llvm.loop !21

._crit_edge71:                                    ; preds = %.lr.ph70.prol.loopexit, %.lr.ph70, %vec.epilog.middle.block, %middle.block
  call void @drysponge256_g(ptr noundef nonnull %10) #4
  %171 = getelementptr inbounds i8, ptr %.046.lcssa, i64 %.048.lcssa
  br label %172

172:                                              ; preds = %._crit_edge71, %19
  %.1 = phi ptr [ %171, %._crit_edge71 ], [ %0, %19 ]
  %173 = getelementptr inbounds i8, ptr %10, i64 72
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %.1, ptr noundef nonnull align 8 dereferenceable(16) %173, i64 16, i1 false)
  call void @drysponge256_g(ptr noundef nonnull %10) #4
  %174 = getelementptr inbounds i8, ptr %.1, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %174, ptr noundef nonnull align 8 dereferenceable(16) %173, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 112, 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare void @drysponge256_setup(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare void @drysponge256_f_absorb(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @drysponge256_g(ptr noundef) local_unnamed_addr #3

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}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !14, i64 104}
!13 = !{!"", !7, i64 0, !7, i64 72, !7, i64 88, !14, i64 104, !14, i64 108}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !11, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !11, !16, !17}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !11, !16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass