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

; 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.xoodoo_state_t = type { [3 x [4 x i32]] }

; Function Attrs: nounwind uwtable
define dso_local i32 @xoodyak_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.xoodoo_state_t, align 4
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %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 48, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %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
  %35 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 0
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 1 %36, i64 16, i1 false)
  %37 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 0
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  call void @llvm.memset.p0.i64(ptr align 1 %38, i8 0, i64 32, i1 false)
  %39 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 17
  store i8 1, ptr %39, align 1, !tbaa !11
  %40 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 47
  store i8 2, ptr %40, align 1, !tbaa !11
  store i8 1, ptr %20, align 1, !tbaa !11
  %41 = load ptr, ptr %17, align 8, !tbaa !5
  call void @xoodyak_absorb(ptr noundef %19, ptr noundef %20, ptr noundef %41, i64 noundef 16)
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = load i64, ptr %15, align 8, !tbaa !9
  call void @xoodyak_absorb(ptr noundef %19, ptr noundef %20, ptr noundef %42, i64 noundef %43)
  store i8 -128, ptr %21, align 1, !tbaa !11
  br label %44

44:                                               ; preds = %79, %9
  %45 = load i64, ptr %13, align 8, !tbaa !9
  %46 = icmp ugt i64 %45, 24
  br i1 %46, label %47, label %91

47:                                               ; preds = %44
  %48 = load i8, ptr %21, align 1, !tbaa !11
  %49 = zext i8 %48 to i32
  %50 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 47
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = zext i8 %51 to i32
  %53 = xor i32 %52, %49
  %54 = trunc i32 %53 to i8
  store i8 %54, ptr %50, align 1, !tbaa !11
  call void @xoodoo_permute(ptr noundef %19)
  br label %55

55:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %56, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %57 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 0
  store ptr %57, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %58, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 24, ptr %26, align 4, !tbaa !12
  br label %59

59:                                               ; preds = %62, %55
  %60 = load i32, ptr %26, align 4, !tbaa !12
  %61 = icmp ugt i32 %60, 0
  br i1 %61, label %62, label %77

62:                                               ; preds = %59
  %63 = load ptr, ptr %25, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i32 1
  store ptr %64, ptr %25, align 8, !tbaa !5
  %65 = load i8, ptr %63, align 1, !tbaa !11
  %66 = zext i8 %65 to i32
  %67 = load ptr, ptr %24, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i32 1
  store ptr %68, ptr %24, align 8, !tbaa !5
  %69 = load i8, ptr %67, align 1, !tbaa !11
  %70 = zext i8 %69 to i32
  %71 = xor i32 %70, %66
  %72 = trunc i32 %71 to i8
  store i8 %72, ptr %67, align 1, !tbaa !11
  %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
  store i8 %72, ptr %73, align 1, !tbaa !11
  %75 = load i32, ptr %26, align 4, !tbaa !12
  %76 = add i32 %75, -1
  store i32 %76, ptr %26, align 4, !tbaa !12
  br label %59, !llvm.loop !14

77:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  %80 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 24
  %81 = load i8, ptr %80, align 4, !tbaa !11
  %82 = zext i8 %81 to i32
  %83 = xor i32 %82, 1
  %84 = trunc i32 %83 to i8
  store i8 %84, ptr %80, align 4, !tbaa !11
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 24
  store ptr %86, ptr %10, align 8, !tbaa !5
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 24
  store ptr %88, ptr %12, align 8, !tbaa !5
  %89 = load i64, ptr %13, align 8, !tbaa !9
  %90 = sub i64 %89, 24
  store i64 %90, ptr %13, align 8, !tbaa !9
  store i8 0, ptr %21, align 1, !tbaa !11
  br label %44, !llvm.loop !16

91:                                               ; preds = %44
  %92 = load i8, ptr %21, align 1, !tbaa !11
  %93 = zext i8 %92 to i32
  %94 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 47
  %95 = load i8, ptr %94, align 1, !tbaa !11
  %96 = zext i8 %95 to i32
  %97 = xor i32 %96, %93
  %98 = trunc i32 %97 to i8
  store i8 %98, ptr %94, align 1, !tbaa !11
  call void @xoodoo_permute(ptr noundef %19)
  %99 = load i64, ptr %13, align 8, !tbaa !9
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %22, align 4, !tbaa !12
  br label %101

101:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %102, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %103 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 0
  store ptr %103, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %104, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %105 = load i32, ptr %22, align 4, !tbaa !12
  store i32 %105, ptr %30, align 4, !tbaa !12
  br label %106

106:                                              ; preds = %109, %101
  %107 = load i32, ptr %30, align 4, !tbaa !12
  %108 = icmp ugt i32 %107, 0
  br i1 %108, label %109, label %124

109:                                              ; preds = %106
  %110 = load ptr, ptr %29, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i32 1
  store ptr %111, ptr %29, align 8, !tbaa !5
  %112 = load i8, ptr %110, align 1, !tbaa !11
  %113 = zext i8 %112 to i32
  %114 = load ptr, ptr %28, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i32 1
  store ptr %115, ptr %28, align 8, !tbaa !5
  %116 = load i8, ptr %114, align 1, !tbaa !11
  %117 = zext i8 %116 to i32
  %118 = xor i32 %117, %113
  %119 = trunc i32 %118 to i8
  store i8 %119, ptr %114, align 1, !tbaa !11
  %120 = load ptr, ptr %27, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %120, i32 1
  store ptr %121, ptr %27, align 8, !tbaa !5
  store i8 %119, ptr %120, align 1, !tbaa !11
  %122 = load i32, ptr %30, align 4, !tbaa !12
  %123 = add i32 %122, -1
  store i32 %123, ptr %30, align 4, !tbaa !12
  br label %106, !llvm.loop !17

124:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %22, align 4, !tbaa !12
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 %128
  %130 = load i8, ptr %129, align 1, !tbaa !11
  %131 = zext i8 %130 to i32
  %132 = xor i32 %131, 1
  %133 = trunc i32 %132 to i8
  store i8 %133, ptr %129, align 1, !tbaa !11
  %134 = load i32, ptr %22, align 4, !tbaa !12
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = zext i32 %134 to i64
  %137 = getelementptr inbounds i8, ptr %135, i64 %136
  store ptr %137, ptr %10, align 8, !tbaa !5
  %138 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 47
  %139 = load i8, ptr %138, align 1, !tbaa !11
  %140 = zext i8 %139 to i32
  %141 = xor i32 %140, 64
  %142 = trunc i32 %141 to i8
  store i8 %142, ptr %138, align 1, !tbaa !11
  call void @xoodoo_permute(ptr noundef %19)
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = getelementptr inbounds [48 x i8], ptr %19, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %143, ptr align 4 %144, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #5
  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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

declare void @xoodoo_permute(ptr noundef) #4

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "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 #5 = { 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 = !{!"int", !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.xoodoo_state_t = type { [3 x [4 x i32]] }

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @xoodyak_aead_encrypt(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef readonly %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr nocapture noundef readnone %6, ptr noundef %7, ptr nocapture noundef readonly %8) local_unnamed_addr #0 {
  %10 = alloca %union.xoodoo_state_t, align 4
  %11 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  %12 = add i64 %3, 16
  store i64 %12, 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 1 dereferenceable(16) %8, i64 16, i1 false)
  %13 = getelementptr inbounds i8, ptr %10, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %13, i8 0, i64 32, i1 false)
  %14 = getelementptr inbounds i8, ptr %10, i64 17
  store i8 1, ptr %14, align 1, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %10, i64 47
  store i8 2, ptr %15, align 1, !tbaa !9
  store i8 1, ptr %11, align 1, !tbaa !9
  call void @xoodyak_absorb(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %7, i64 noundef 16)
  call void @xoodyak_absorb(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %4, i64 noundef %5)
  %16 = icmp ugt i64 %3, 24
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %9
  %17 = getelementptr inbounds i8, ptr %10, i64 24
  %18 = load i8, ptr %15, align 1, !tbaa !9
  %19 = xor i8 %18, -128
  store i8 %19, ptr %15, align 1, !tbaa !9
  call void @xoodoo_permute(ptr noundef nonnull %10) #5
  %20 = getelementptr inbounds i8, ptr %2, i64 1
  %21 = load i8, ptr %2, align 1, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %10, i64 1
  %23 = load i8, ptr %10, align 4, !tbaa !9
  %24 = xor i8 %23, %21
  store i8 %24, ptr %10, align 4, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %0, i64 1
  store i8 %24, ptr %0, align 1, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %2, i64 2
  %27 = load i8, ptr %20, align 1, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %10, i64 2
  %29 = load i8, ptr %22, align 1, !tbaa !9
  %30 = xor i8 %29, %27
  store i8 %30, ptr %22, align 1, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %0, i64 2
  store i8 %30, ptr %25, align 1, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %2, i64 3
  %33 = load i8, ptr %26, align 1, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %10, i64 3
  %35 = load i8, ptr %28, align 2, !tbaa !9
  %36 = xor i8 %35, %33
  store i8 %36, ptr %28, align 2, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %0, i64 3
  store i8 %36, ptr %31, align 1, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %2, i64 4
  %39 = load i8, ptr %32, align 1, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %10, i64 4
  %41 = load i8, ptr %34, align 1, !tbaa !9
  %42 = xor i8 %41, %39
  store i8 %42, ptr %34, align 1, !tbaa !9
  %43 = getelementptr inbounds i8, ptr %0, i64 4
  store i8 %42, ptr %37, align 1, !tbaa !9
  %44 = getelementptr inbounds i8, ptr %2, i64 5
  %45 = load i8, ptr %38, align 1, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %10, i64 5
  %47 = load i8, ptr %40, align 4, !tbaa !9
  %48 = xor i8 %47, %45
  store i8 %48, ptr %40, align 4, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %0, i64 5
  store i8 %48, ptr %43, align 1, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %2, i64 6
  %51 = load i8, ptr %44, align 1, !tbaa !9
  %52 = getelementptr inbounds i8, ptr %10, i64 6
  %53 = load i8, ptr %46, align 1, !tbaa !9
  %54 = xor i8 %53, %51
  store i8 %54, ptr %46, align 1, !tbaa !9
  %55 = getelementptr inbounds i8, ptr %0, i64 6
  store i8 %54, ptr %49, align 1, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %2, i64 7
  %57 = load i8, ptr %50, align 1, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %10, i64 7
  %59 = load i8, ptr %52, align 2, !tbaa !9
  %60 = xor i8 %59, %57
  store i8 %60, ptr %52, align 2, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %0, i64 7
  store i8 %60, ptr %55, align 1, !tbaa !9
  %62 = getelementptr inbounds i8, ptr %2, i64 8
  %63 = load i8, ptr %56, align 1, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %10, i64 8
  %65 = load i8, ptr %58, align 1, !tbaa !9
  %66 = xor i8 %65, %63
  store i8 %66, ptr %58, align 1, !tbaa !9
  %67 = getelementptr inbounds i8, ptr %0, i64 8
  store i8 %66, ptr %61, align 1, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %2, i64 9
  %69 = load i8, ptr %62, align 1, !tbaa !9
  %70 = getelementptr inbounds i8, ptr %10, i64 9
  %71 = load i8, ptr %64, align 4, !tbaa !9
  %72 = xor i8 %71, %69
  store i8 %72, ptr %64, align 4, !tbaa !9
  %73 = getelementptr inbounds i8, ptr %0, i64 9
  store i8 %72, ptr %67, align 1, !tbaa !9
  %74 = getelementptr inbounds i8, ptr %2, i64 10
  %75 = load i8, ptr %68, align 1, !tbaa !9
  %76 = getelementptr inbounds i8, ptr %10, i64 10
  %77 = load i8, ptr %70, align 1, !tbaa !9
  %78 = xor i8 %77, %75
  store i8 %78, ptr %70, align 1, !tbaa !9
  %79 = getelementptr inbounds i8, ptr %0, i64 10
  store i8 %78, ptr %73, align 1, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %2, i64 11
  %81 = load i8, ptr %74, align 1, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %10, i64 11
  %83 = load i8, ptr %76, align 2, !tbaa !9
  %84 = xor i8 %83, %81
  store i8 %84, ptr %76, align 2, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %0, i64 11
  store i8 %84, ptr %79, align 1, !tbaa !9
  %86 = getelementptr inbounds i8, ptr %2, i64 12
  %87 = load i8, ptr %80, align 1, !tbaa !9
  %88 = getelementptr inbounds i8, ptr %10, i64 12
  %89 = load i8, ptr %82, align 1, !tbaa !9
  %90 = xor i8 %89, %87
  store i8 %90, ptr %82, align 1, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %0, i64 12
  store i8 %90, ptr %85, align 1, !tbaa !9
  %92 = getelementptr inbounds i8, ptr %2, i64 13
  %93 = load i8, ptr %86, align 1, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %10, i64 13
  %95 = load i8, ptr %88, align 4, !tbaa !9
  %96 = xor i8 %95, %93
  store i8 %96, ptr %88, align 4, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %0, i64 13
  store i8 %96, ptr %91, align 1, !tbaa !9
  %98 = getelementptr inbounds i8, ptr %2, i64 14
  %99 = load i8, ptr %92, align 1, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %10, i64 14
  %101 = load i8, ptr %94, align 1, !tbaa !9
  %102 = xor i8 %101, %99
  store i8 %102, ptr %94, align 1, !tbaa !9
  %103 = getelementptr inbounds i8, ptr %0, i64 14
  store i8 %102, ptr %97, align 1, !tbaa !9
  %104 = getelementptr inbounds i8, ptr %2, i64 15
  %105 = load i8, ptr %98, align 1, !tbaa !9
  %106 = getelementptr inbounds i8, ptr %10, i64 15
  %107 = load i8, ptr %100, align 2, !tbaa !9
  %108 = xor i8 %107, %105
  store i8 %108, ptr %100, align 2, !tbaa !9
  %109 = getelementptr inbounds i8, ptr %0, i64 15
  store i8 %108, ptr %103, align 1, !tbaa !9
  %110 = getelementptr inbounds i8, ptr %2, i64 16
  %111 = load i8, ptr %104, align 1, !tbaa !9
  %112 = getelementptr inbounds i8, ptr %10, i64 16
  %113 = load i8, ptr %106, align 1, !tbaa !9
  %114 = xor i8 %113, %111
  store i8 %114, ptr %106, align 1, !tbaa !9
  %115 = getelementptr inbounds i8, ptr %0, i64 16
  store i8 %114, ptr %109, align 1, !tbaa !9
  %116 = getelementptr inbounds i8, ptr %2, i64 17
  %117 = load i8, ptr %110, align 1, !tbaa !9
  %118 = getelementptr inbounds i8, ptr %10, i64 17
  %119 = load i8, ptr %112, align 4, !tbaa !9
  %120 = xor i8 %119, %117
  store i8 %120, ptr %112, align 4, !tbaa !9
  %121 = getelementptr inbounds i8, ptr %0, i64 17
  store i8 %120, ptr %115, align 1, !tbaa !9
  %122 = getelementptr inbounds i8, ptr %2, i64 18
  %123 = load i8, ptr %116, align 1, !tbaa !9
  %124 = getelementptr inbounds i8, ptr %10, i64 18
  %125 = load i8, ptr %118, align 1, !tbaa !9
  %126 = xor i8 %125, %123
  store i8 %126, ptr %118, align 1, !tbaa !9
  %127 = getelementptr inbounds i8, ptr %0, i64 18
  store i8 %126, ptr %121, align 1, !tbaa !9
  %128 = getelementptr inbounds i8, ptr %2, i64 19
  %129 = load i8, ptr %122, align 1, !tbaa !9
  %130 = getelementptr inbounds i8, ptr %10, i64 19
  %131 = load i8, ptr %124, align 2, !tbaa !9
  %132 = xor i8 %131, %129
  store i8 %132, ptr %124, align 2, !tbaa !9
  %133 = getelementptr inbounds i8, ptr %0, i64 19
  store i8 %132, ptr %127, align 1, !tbaa !9
  %134 = getelementptr inbounds i8, ptr %2, i64 20
  %135 = load i8, ptr %128, align 1, !tbaa !9
  %136 = getelementptr inbounds i8, ptr %10, i64 20
  %137 = load i8, ptr %130, align 1, !tbaa !9
  %138 = xor i8 %137, %135
  store i8 %138, ptr %130, align 1, !tbaa !9
  %139 = getelementptr inbounds i8, ptr %0, i64 20
  store i8 %138, ptr %133, align 1, !tbaa !9
  %140 = getelementptr inbounds i8, ptr %2, i64 21
  %141 = load i8, ptr %134, align 1, !tbaa !9
  %142 = getelementptr inbounds i8, ptr %10, i64 21
  %143 = load i8, ptr %136, align 4, !tbaa !9
  %144 = xor i8 %143, %141
  store i8 %144, ptr %136, align 4, !tbaa !9
  %145 = getelementptr inbounds i8, ptr %0, i64 21
  store i8 %144, ptr %139, align 1, !tbaa !9
  %146 = getelementptr inbounds i8, ptr %2, i64 22
  %147 = load i8, ptr %140, align 1, !tbaa !9
  %148 = getelementptr inbounds i8, ptr %10, i64 22
  %149 = load i8, ptr %142, align 1, !tbaa !9
  %150 = xor i8 %149, %147
  store i8 %150, ptr %142, align 1, !tbaa !9
  %151 = getelementptr inbounds i8, ptr %0, i64 22
  store i8 %150, ptr %145, align 1, !tbaa !9
  %152 = getelementptr inbounds i8, ptr %2, i64 23
  %153 = load i8, ptr %146, align 1, !tbaa !9
  %154 = getelementptr inbounds i8, ptr %10, i64 23
  %155 = load i8, ptr %148, align 2, !tbaa !9
  %156 = xor i8 %155, %153
  store i8 %156, ptr %148, align 2, !tbaa !9
  %157 = getelementptr inbounds i8, ptr %0, i64 23
  store i8 %156, ptr %151, align 1, !tbaa !9
  %158 = load i8, ptr %152, align 1, !tbaa !9
  %159 = load i8, ptr %154, align 1, !tbaa !9
  %160 = xor i8 %159, %158
  store i8 %160, ptr %154, align 1, !tbaa !9
  store i8 %160, ptr %157, align 1, !tbaa !9
  %161 = load i8, ptr %17, align 4, !tbaa !9
  %162 = xor i8 %161, 1
  store i8 %162, ptr %17, align 4, !tbaa !9
  %163 = getelementptr inbounds i8, ptr %0, i64 24
  %164 = getelementptr inbounds i8, ptr %2, i64 24
  %165 = add i64 %3, -24
  %166 = icmp ugt i64 %165, 24
  br i1 %166, label %.peel.next, label %._crit_edge

.peel.next:                                       ; preds = %.lr.ph, %.peel.next
  %.03951 = phi ptr [ %287, %.peel.next ], [ %163, %.lr.ph ]
  %.04149 = phi ptr [ %288, %.peel.next ], [ %164, %.lr.ph ]
  %.04248 = phi i64 [ %289, %.peel.next ], [ %165, %.lr.ph ]
  call void @xoodoo_permute(ptr noundef nonnull %10) #5
  %167 = getelementptr inbounds i8, ptr %.04149, i64 1
  %168 = load i8, ptr %.04149, align 1, !tbaa !9
  %169 = load i8, ptr %10, align 4, !tbaa !9
  %170 = xor i8 %169, %168
  store i8 %170, ptr %10, align 4, !tbaa !9
  %171 = getelementptr inbounds i8, ptr %.03951, i64 1
  store i8 %170, ptr %.03951, align 1, !tbaa !9
  %172 = getelementptr inbounds i8, ptr %.04149, i64 2
  %173 = load i8, ptr %167, align 1, !tbaa !9
  %174 = load i8, ptr %22, align 1, !tbaa !9
  %175 = xor i8 %174, %173
  store i8 %175, ptr %22, align 1, !tbaa !9
  %176 = getelementptr inbounds i8, ptr %.03951, i64 2
  store i8 %175, ptr %171, align 1, !tbaa !9
  %177 = getelementptr inbounds i8, ptr %.04149, i64 3
  %178 = load i8, ptr %172, align 1, !tbaa !9
  %179 = load i8, ptr %28, align 2, !tbaa !9
  %180 = xor i8 %179, %178
  store i8 %180, ptr %28, align 2, !tbaa !9
  %181 = getelementptr inbounds i8, ptr %.03951, i64 3
  store i8 %180, ptr %176, align 1, !tbaa !9
  %182 = getelementptr inbounds i8, ptr %.04149, i64 4
  %183 = load i8, ptr %177, align 1, !tbaa !9
  %184 = load i8, ptr %34, align 1, !tbaa !9
  %185 = xor i8 %184, %183
  store i8 %185, ptr %34, align 1, !tbaa !9
  %186 = getelementptr inbounds i8, ptr %.03951, i64 4
  store i8 %185, ptr %181, align 1, !tbaa !9
  %187 = getelementptr inbounds i8, ptr %.04149, i64 5
  %188 = load i8, ptr %182, align 1, !tbaa !9
  %189 = load i8, ptr %40, align 4, !tbaa !9
  %190 = xor i8 %189, %188
  store i8 %190, ptr %40, align 4, !tbaa !9
  %191 = getelementptr inbounds i8, ptr %.03951, i64 5
  store i8 %190, ptr %186, align 1, !tbaa !9
  %192 = getelementptr inbounds i8, ptr %.04149, i64 6
  %193 = load i8, ptr %187, align 1, !tbaa !9
  %194 = load i8, ptr %46, align 1, !tbaa !9
  %195 = xor i8 %194, %193
  store i8 %195, ptr %46, align 1, !tbaa !9
  %196 = getelementptr inbounds i8, ptr %.03951, i64 6
  store i8 %195, ptr %191, align 1, !tbaa !9
  %197 = getelementptr inbounds i8, ptr %.04149, i64 7
  %198 = load i8, ptr %192, align 1, !tbaa !9
  %199 = load i8, ptr %52, align 2, !tbaa !9
  %200 = xor i8 %199, %198
  store i8 %200, ptr %52, align 2, !tbaa !9
  %201 = getelementptr inbounds i8, ptr %.03951, i64 7
  store i8 %200, ptr %196, align 1, !tbaa !9
  %202 = getelementptr inbounds i8, ptr %.04149, i64 8
  %203 = load i8, ptr %197, align 1, !tbaa !9
  %204 = load i8, ptr %58, align 1, !tbaa !9
  %205 = xor i8 %204, %203
  store i8 %205, ptr %58, align 1, !tbaa !9
  %206 = getelementptr inbounds i8, ptr %.03951, i64 8
  store i8 %205, ptr %201, align 1, !tbaa !9
  %207 = getelementptr inbounds i8, ptr %.04149, i64 9
  %208 = load i8, ptr %202, align 1, !tbaa !9
  %209 = load i8, ptr %64, align 4, !tbaa !9
  %210 = xor i8 %209, %208
  store i8 %210, ptr %64, align 4, !tbaa !9
  %211 = getelementptr inbounds i8, ptr %.03951, i64 9
  store i8 %210, ptr %206, align 1, !tbaa !9
  %212 = getelementptr inbounds i8, ptr %.04149, i64 10
  %213 = load i8, ptr %207, align 1, !tbaa !9
  %214 = load i8, ptr %70, align 1, !tbaa !9
  %215 = xor i8 %214, %213
  store i8 %215, ptr %70, align 1, !tbaa !9
  %216 = getelementptr inbounds i8, ptr %.03951, i64 10
  store i8 %215, ptr %211, align 1, !tbaa !9
  %217 = getelementptr inbounds i8, ptr %.04149, i64 11
  %218 = load i8, ptr %212, align 1, !tbaa !9
  %219 = load i8, ptr %76, align 2, !tbaa !9
  %220 = xor i8 %219, %218
  store i8 %220, ptr %76, align 2, !tbaa !9
  %221 = getelementptr inbounds i8, ptr %.03951, i64 11
  store i8 %220, ptr %216, align 1, !tbaa !9
  %222 = getelementptr inbounds i8, ptr %.04149, i64 12
  %223 = load i8, ptr %217, align 1, !tbaa !9
  %224 = load i8, ptr %82, align 1, !tbaa !9
  %225 = xor i8 %224, %223
  store i8 %225, ptr %82, align 1, !tbaa !9
  %226 = getelementptr inbounds i8, ptr %.03951, i64 12
  store i8 %225, ptr %221, align 1, !tbaa !9
  %227 = getelementptr inbounds i8, ptr %.04149, i64 13
  %228 = load i8, ptr %222, align 1, !tbaa !9
  %229 = load i8, ptr %88, align 4, !tbaa !9
  %230 = xor i8 %229, %228
  store i8 %230, ptr %88, align 4, !tbaa !9
  %231 = getelementptr inbounds i8, ptr %.03951, i64 13
  store i8 %230, ptr %226, align 1, !tbaa !9
  %232 = getelementptr inbounds i8, ptr %.04149, i64 14
  %233 = load i8, ptr %227, align 1, !tbaa !9
  %234 = load i8, ptr %94, align 1, !tbaa !9
  %235 = xor i8 %234, %233
  store i8 %235, ptr %94, align 1, !tbaa !9
  %236 = getelementptr inbounds i8, ptr %.03951, i64 14
  store i8 %235, ptr %231, align 1, !tbaa !9
  %237 = getelementptr inbounds i8, ptr %.04149, i64 15
  %238 = load i8, ptr %232, align 1, !tbaa !9
  %239 = load i8, ptr %100, align 2, !tbaa !9
  %240 = xor i8 %239, %238
  store i8 %240, ptr %100, align 2, !tbaa !9
  %241 = getelementptr inbounds i8, ptr %.03951, i64 15
  store i8 %240, ptr %236, align 1, !tbaa !9
  %242 = getelementptr inbounds i8, ptr %.04149, i64 16
  %243 = load i8, ptr %237, align 1, !tbaa !9
  %244 = load i8, ptr %106, align 1, !tbaa !9
  %245 = xor i8 %244, %243
  store i8 %245, ptr %106, align 1, !tbaa !9
  %246 = getelementptr inbounds i8, ptr %.03951, i64 16
  store i8 %245, ptr %241, align 1, !tbaa !9
  %247 = getelementptr inbounds i8, ptr %.04149, i64 17
  %248 = load i8, ptr %242, align 1, !tbaa !9
  %249 = load i8, ptr %112, align 4, !tbaa !9
  %250 = xor i8 %249, %248
  store i8 %250, ptr %112, align 4, !tbaa !9
  %251 = getelementptr inbounds i8, ptr %.03951, i64 17
  store i8 %250, ptr %246, align 1, !tbaa !9
  %252 = getelementptr inbounds i8, ptr %.04149, i64 18
  %253 = load i8, ptr %247, align 1, !tbaa !9
  %254 = load i8, ptr %118, align 1, !tbaa !9
  %255 = xor i8 %254, %253
  store i8 %255, ptr %118, align 1, !tbaa !9
  %256 = getelementptr inbounds i8, ptr %.03951, i64 18
  store i8 %255, ptr %251, align 1, !tbaa !9
  %257 = getelementptr inbounds i8, ptr %.04149, i64 19
  %258 = load i8, ptr %252, align 1, !tbaa !9
  %259 = load i8, ptr %124, align 2, !tbaa !9
  %260 = xor i8 %259, %258
  store i8 %260, ptr %124, align 2, !tbaa !9
  %261 = getelementptr inbounds i8, ptr %.03951, i64 19
  store i8 %260, ptr %256, align 1, !tbaa !9
  %262 = getelementptr inbounds i8, ptr %.04149, i64 20
  %263 = load i8, ptr %257, align 1, !tbaa !9
  %264 = load i8, ptr %130, align 1, !tbaa !9
  %265 = xor i8 %264, %263
  store i8 %265, ptr %130, align 1, !tbaa !9
  %266 = getelementptr inbounds i8, ptr %.03951, i64 20
  store i8 %265, ptr %261, align 1, !tbaa !9
  %267 = getelementptr inbounds i8, ptr %.04149, i64 21
  %268 = load i8, ptr %262, align 1, !tbaa !9
  %269 = load i8, ptr %136, align 4, !tbaa !9
  %270 = xor i8 %269, %268
  store i8 %270, ptr %136, align 4, !tbaa !9
  %271 = getelementptr inbounds i8, ptr %.03951, i64 21
  store i8 %270, ptr %266, align 1, !tbaa !9
  %272 = getelementptr inbounds i8, ptr %.04149, i64 22
  %273 = load i8, ptr %267, align 1, !tbaa !9
  %274 = load i8, ptr %142, align 1, !tbaa !9
  %275 = xor i8 %274, %273
  store i8 %275, ptr %142, align 1, !tbaa !9
  %276 = getelementptr inbounds i8, ptr %.03951, i64 22
  store i8 %275, ptr %271, align 1, !tbaa !9
  %277 = getelementptr inbounds i8, ptr %.04149, i64 23
  %278 = load i8, ptr %272, align 1, !tbaa !9
  %279 = load i8, ptr %148, align 2, !tbaa !9
  %280 = xor i8 %279, %278
  store i8 %280, ptr %148, align 2, !tbaa !9
  %281 = getelementptr inbounds i8, ptr %.03951, i64 23
  store i8 %280, ptr %276, align 1, !tbaa !9
  %282 = load i8, ptr %277, align 1, !tbaa !9
  %283 = load i8, ptr %154, align 1, !tbaa !9
  %284 = xor i8 %283, %282
  store i8 %284, ptr %154, align 1, !tbaa !9
  store i8 %284, ptr %281, align 1, !tbaa !9
  %285 = load i8, ptr %17, align 4, !tbaa !9
  %286 = xor i8 %285, 1
  store i8 %286, ptr %17, align 4, !tbaa !9
  %287 = getelementptr inbounds i8, ptr %.03951, i64 24
  %288 = getelementptr inbounds i8, ptr %.04149, i64 24
  %289 = add i64 %.04248, -24
  %290 = icmp ugt i64 %289, 24
  br i1 %290, label %.peel.next, label %._crit_edge, !llvm.loop !10

._crit_edge:                                      ; preds = %.peel.next, %.lr.ph, %9
  %.042.lcssa = phi i64 [ %3, %9 ], [ %165, %.lr.ph ], [ %289, %.peel.next ]
  %.041.lcssa = phi ptr [ %2, %9 ], [ %164, %.lr.ph ], [ %288, %.peel.next ]
  %.040.lcssa = phi i8 [ -128, %9 ], [ 0, %.lr.ph ], [ 0, %.peel.next ]
  %.039.lcssa = phi ptr [ %0, %9 ], [ %163, %.lr.ph ], [ %287, %.peel.next ]
  %291 = load i8, ptr %15, align 1, !tbaa !9
  %292 = xor i8 %291, %.040.lcssa
  store i8 %292, ptr %15, align 1, !tbaa !9
  call void @xoodoo_permute(ptr noundef nonnull %10) #5
  %.not55 = icmp eq i64 %.042.lcssa, 0
  br i1 %.not55, label %._crit_edge62, label %iter.check

iter.check:                                       ; preds = %._crit_edge
  %293 = trunc nuw i64 %.042.lcssa to i32
  %294 = add nuw nsw i64 %.042.lcssa, 4294967295
  %295 = and i64 %294, 4294967295
  %296 = add nuw nsw i64 %295, 1
  %min.iters.check = icmp ult i64 %295, 7
  br i1 %min.iters.check, label %.lr.ph61.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %iter.check
  %297 = add nuw nsw i64 %.042.lcssa, 4294967295
  %298 = and i64 %297, 4294967295
  %299 = add nuw nsw i64 %298, 1
  %scevgep = getelementptr i8, ptr %10, i64 %299
  %scevgep70 = getelementptr i8, ptr %.039.lcssa, i64 %299
  %scevgep71 = getelementptr i8, ptr %.041.lcssa, i64 %299
  %bound0 = icmp ult ptr %10, %scevgep70
  %bound1 = icmp ult ptr %.039.lcssa, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound072 = icmp ult ptr %10, %scevgep71
  %bound173 = icmp ult ptr %.041.lcssa, %scevgep
  %found.conflict74 = and i1 %bound072, %bound173
  %conflict.rdx = or i1 %found.conflict, %found.conflict74
  %bound075 = icmp ult ptr %.039.lcssa, %scevgep71
  %bound176 = icmp ult ptr %.041.lcssa, %scevgep70
  %found.conflict77 = and i1 %bound075, %bound176
  %conflict.rdx78 = or i1 %conflict.rdx, %found.conflict77
  br i1 %conflict.rdx78, label %.lr.ph61.preheader, label %vector.main.loop.iter.check

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

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %296, 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 %.041.lcssa, i64 %index
  %next.gep81 = getelementptr i8, ptr %10, i64 %index
  %next.gep83 = getelementptr i8, ptr %.039.lcssa, i64 %index
  %300 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load = load <16 x i8>, ptr %next.gep, align 1, !tbaa !9, !alias.scope !13
  %wide.load85 = load <16 x i8>, ptr %300, align 1, !tbaa !9, !alias.scope !13
  %301 = getelementptr i8, ptr %next.gep81, i64 16
  %wide.load86 = load <16 x i8>, ptr %next.gep81, align 4, !tbaa !9, !alias.scope !16, !noalias !18
  %wide.load87 = load <16 x i8>, ptr %301, align 4, !tbaa !9, !alias.scope !16, !noalias !18
  %302 = xor <16 x i8> %wide.load86, %wide.load
  %303 = xor <16 x i8> %wide.load87, %wide.load85
  store <16 x i8> %302, ptr %next.gep81, align 4, !tbaa !9, !alias.scope !16, !noalias !18
  store <16 x i8> %303, ptr %301, align 4, !tbaa !9, !alias.scope !16, !noalias !18
  %304 = getelementptr i8, ptr %next.gep83, i64 16
  store <16 x i8> %302, ptr %next.gep83, align 1, !tbaa !9, !alias.scope !20, !noalias !13
  store <16 x i8> %303, ptr %304, align 1, !tbaa !9, !alias.scope !20, !noalias !13
  %index.next = add nuw i64 %index, 32
  %305 = icmp eq i64 %index.next, %n.vec
  br i1 %305, label %middle.block, label %vector.body, !llvm.loop !21

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

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end99 = getelementptr i8, ptr %.039.lcssa, i64 %n.vec
  %ind.end96 = getelementptr i8, ptr %10, i64 %n.vec
  %ind.end93 = getelementptr i8, ptr %.041.lcssa, i64 %n.vec
  %.cast90 = trunc i64 %n.vec to i32
  %ind.end91 = sub i32 %293, %.cast90
  %n.vec.remaining = and i64 %296, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph61.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.vec89 = and i64 %296, 8589934584
  %.cast = trunc i64 %n.vec89 to i32
  %ind.end = sub i32 %293, %.cast
  %ind.end92 = getelementptr i8, ptr %.041.lcssa, i64 %n.vec89
  %ind.end95 = getelementptr i8, ptr %10, i64 %n.vec89
  %ind.end98 = getelementptr i8, ptr %.039.lcssa, i64 %n.vec89
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index101 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next107, %vec.epilog.vector.body ]
  %next.gep102 = getelementptr i8, ptr %.041.lcssa, i64 %index101
  %next.gep103 = getelementptr i8, ptr %10, i64 %index101
  %next.gep104 = getelementptr i8, ptr %.039.lcssa, i64 %index101
  %wide.load105 = load <8 x i8>, ptr %next.gep102, align 1, !tbaa !9, !alias.scope !24
  %wide.load106 = load <8 x i8>, ptr %next.gep103, align 4, !tbaa !9, !alias.scope !27, !noalias !29
  %306 = xor <8 x i8> %wide.load106, %wide.load105
  store <8 x i8> %306, ptr %next.gep103, align 4, !tbaa !9, !alias.scope !27, !noalias !29
  store <8 x i8> %306, ptr %next.gep104, align 1, !tbaa !9, !alias.scope !31, !noalias !24
  %index.next107 = add nuw i64 %index101, 8
  %307 = icmp eq i64 %index.next107, %n.vec89
  br i1 %307, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !32

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n108 = icmp eq i64 %296, %n.vec89
  br i1 %cmp.n108, label %._crit_edge62, label %.lr.ph61.preheader

.lr.ph61.preheader:                               ; preds = %vec.epilog.middle.block, %vector.memcheck, %iter.check, %vec.epilog.iter.check
  %.059.ph = phi i32 [ %293, %iter.check ], [ %293, %vector.memcheck ], [ %ind.end91, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  %.03258.ph = phi ptr [ %.041.lcssa, %iter.check ], [ %.041.lcssa, %vector.memcheck ], [ %ind.end93, %vec.epilog.iter.check ], [ %ind.end92, %vec.epilog.middle.block ]
  %.03357.ph = phi ptr [ %10, %iter.check ], [ %10, %vector.memcheck ], [ %ind.end96, %vec.epilog.iter.check ], [ %ind.end95, %vec.epilog.middle.block ]
  %.03456.ph = phi ptr [ %.039.lcssa, %iter.check ], [ %.039.lcssa, %vector.memcheck ], [ %ind.end99, %vec.epilog.iter.check ], [ %ind.end98, %vec.epilog.middle.block ]
  %308 = add nsw i32 %.059.ph, -1
  %xtraiter = and i32 %.059.ph, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph61.prol.loopexit, label %.lr.ph61.prol

.lr.ph61.prol:                                    ; preds = %.lr.ph61.preheader, %.lr.ph61.prol
  %.059.prol = phi i32 [ %315, %.lr.ph61.prol ], [ %.059.ph, %.lr.ph61.preheader ]
  %.03258.prol = phi ptr [ %309, %.lr.ph61.prol ], [ %.03258.ph, %.lr.ph61.preheader ]
  %.03357.prol = phi ptr [ %311, %.lr.ph61.prol ], [ %.03357.ph, %.lr.ph61.preheader ]
  %.03456.prol = phi ptr [ %314, %.lr.ph61.prol ], [ %.03456.ph, %.lr.ph61.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph61.prol ], [ 0, %.lr.ph61.preheader ]
  %309 = getelementptr inbounds i8, ptr %.03258.prol, i64 1
  %310 = load i8, ptr %.03258.prol, align 1, !tbaa !9
  %311 = getelementptr inbounds i8, ptr %.03357.prol, i64 1
  %312 = load i8, ptr %.03357.prol, align 1, !tbaa !9
  %313 = xor i8 %312, %310
  store i8 %313, ptr %.03357.prol, align 1, !tbaa !9
  %314 = getelementptr inbounds i8, ptr %.03456.prol, i64 1
  store i8 %313, ptr %.03456.prol, align 1, !tbaa !9
  %315 = add nsw i32 %.059.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.ph61.prol.loopexit, label %.lr.ph61.prol, !llvm.loop !33

.lr.ph61.prol.loopexit:                           ; preds = %.lr.ph61.prol, %.lr.ph61.preheader
  %.059.unr = phi i32 [ %.059.ph, %.lr.ph61.preheader ], [ %315, %.lr.ph61.prol ]
  %.03258.unr = phi ptr [ %.03258.ph, %.lr.ph61.preheader ], [ %309, %.lr.ph61.prol ]
  %.03357.unr = phi ptr [ %.03357.ph, %.lr.ph61.preheader ], [ %311, %.lr.ph61.prol ]
  %.03456.unr = phi ptr [ %.03456.ph, %.lr.ph61.preheader ], [ %314, %.lr.ph61.prol ]
  %316 = icmp ult i32 %308, 3
  br i1 %316, label %._crit_edge62, label %.lr.ph61

.lr.ph61:                                         ; preds = %.lr.ph61.prol.loopexit, %.lr.ph61
  %.059 = phi i32 [ %341, %.lr.ph61 ], [ %.059.unr, %.lr.ph61.prol.loopexit ]
  %.03258 = phi ptr [ %335, %.lr.ph61 ], [ %.03258.unr, %.lr.ph61.prol.loopexit ]
  %.03357 = phi ptr [ %337, %.lr.ph61 ], [ %.03357.unr, %.lr.ph61.prol.loopexit ]
  %.03456 = phi ptr [ %340, %.lr.ph61 ], [ %.03456.unr, %.lr.ph61.prol.loopexit ]
  %317 = getelementptr inbounds i8, ptr %.03258, i64 1
  %318 = load i8, ptr %.03258, align 1, !tbaa !9
  %319 = getelementptr inbounds i8, ptr %.03357, i64 1
  %320 = load i8, ptr %.03357, align 1, !tbaa !9
  %321 = xor i8 %320, %318
  store i8 %321, ptr %.03357, align 1, !tbaa !9
  %322 = getelementptr inbounds i8, ptr %.03456, i64 1
  store i8 %321, ptr %.03456, align 1, !tbaa !9
  %323 = getelementptr inbounds i8, ptr %.03258, i64 2
  %324 = load i8, ptr %317, align 1, !tbaa !9
  %325 = getelementptr inbounds i8, ptr %.03357, i64 2
  %326 = load i8, ptr %319, align 1, !tbaa !9
  %327 = xor i8 %326, %324
  store i8 %327, ptr %319, align 1, !tbaa !9
  %328 = getelementptr inbounds i8, ptr %.03456, i64 2
  store i8 %327, ptr %322, align 1, !tbaa !9
  %329 = getelementptr inbounds i8, ptr %.03258, i64 3
  %330 = load i8, ptr %323, align 1, !tbaa !9
  %331 = getelementptr inbounds i8, ptr %.03357, i64 3
  %332 = load i8, ptr %325, align 1, !tbaa !9
  %333 = xor i8 %332, %330
  store i8 %333, ptr %325, align 1, !tbaa !9
  %334 = getelementptr inbounds i8, ptr %.03456, i64 3
  store i8 %333, ptr %328, align 1, !tbaa !9
  %335 = getelementptr inbounds i8, ptr %.03258, i64 4
  %336 = load i8, ptr %329, align 1, !tbaa !9
  %337 = getelementptr inbounds i8, ptr %.03357, i64 4
  %338 = load i8, ptr %331, align 1, !tbaa !9
  %339 = xor i8 %338, %336
  store i8 %339, ptr %331, align 1, !tbaa !9
  %340 = getelementptr inbounds i8, ptr %.03456, i64 4
  store i8 %339, ptr %334, align 1, !tbaa !9
  %341 = add nsw i32 %.059, -4
  %.not.3 = icmp eq i32 %341, 0
  br i1 %.not.3, label %._crit_edge62, label %.lr.ph61, !llvm.loop !35

._crit_edge62:                                    ; preds = %.lr.ph61.prol.loopexit, %.lr.ph61, %middle.block, %vec.epilog.middle.block, %._crit_edge
  %342 = getelementptr inbounds [48 x i8], ptr %10, i64 0, i64 %.042.lcssa
  %343 = load i8, ptr %342, align 1, !tbaa !9
  %344 = xor i8 %343, 1
  store i8 %344, ptr %342, align 1, !tbaa !9
  %345 = getelementptr inbounds i8, ptr %.039.lcssa, i64 %.042.lcssa
  %346 = load i8, ptr %15, align 1, !tbaa !9
  %347 = xor i8 %346, 64
  store i8 %347, ptr %15, align 1, !tbaa !9
  call void @xoodoo_permute(ptr noundef nonnull %10) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %345, ptr noundef nonnull align 4 dereferenceable(16) %10, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #5
  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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

declare void @xoodoo_permute(ptr noundef) local_unnamed_addr #4

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "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 #5 = { 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, !12}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!"llvm.loop.peeled.count", i32 1}
!13 = !{!14}
!14 = distinct !{!14, !15}
!15 = distinct !{!15, !"LVerDomain"}
!16 = !{!17}
!17 = distinct !{!17, !15}
!18 = !{!19, !14}
!19 = distinct !{!19, !15}
!20 = !{!19}
!21 = distinct !{!21, !11, !22, !23}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = !{!28}
!28 = distinct !{!28, !26}
!29 = !{!30, !25}
!30 = distinct !{!30, !26}
!31 = !{!30}
!32 = distinct !{!32, !11, !22, !23}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.unroll.disable"}
!35 = distinct !{!35, !11, !22}


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