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

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

@ace_hash_iv = external hidden constant [40 x i8], align 16

; Function Attrs: nounwind uwtable
define dso_local i32 @ace_hash(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca [40 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %15 = getelementptr inbounds [40 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @ace_hash_iv, i64 40, i1 false)
  br label %16

16:                                               ; preds = %41, %3
  %17 = load i64, ptr %6, align 8, !tbaa !9
  %18 = icmp uge i64 %17, 8
  br i1 %18, label %19, label %47

19:                                               ; preds = %16
  br label %20

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

23:                                               ; preds = %26, %20
  %24 = load i32, ptr %11, align 4, !tbaa !11
  %25 = icmp ugt i32 %24, 0
  br i1 %25, label %26, label %39

26:                                               ; preds = %23
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i32 1
  store ptr %28, ptr %10, align 8, !tbaa !5
  %29 = load i8, ptr %27, align 1, !tbaa !13
  %30 = zext i8 %29 to i32
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i32 1
  store ptr %32, ptr %9, align 8, !tbaa !5
  %33 = load i8, ptr %31, align 1, !tbaa !13
  %34 = zext i8 %33 to i32
  %35 = xor i32 %34, %30
  %36 = trunc i32 %35 to i8
  store i8 %36, ptr %31, align 1, !tbaa !13
  %37 = load i32, ptr %11, align 4, !tbaa !11
  %38 = add i32 %37, -1
  store i32 %38, ptr %11, align 4, !tbaa !11
  br label %23, !llvm.loop !14

39:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  %42 = getelementptr inbounds [40 x i8], ptr %7, i64 0, i64 0
  call void @sliscp_light320_permute(ptr noundef %42)
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  store ptr %44, ptr %5, align 8, !tbaa !5
  %45 = load i64, ptr %6, align 8, !tbaa !9
  %46 = sub i64 %45, 8
  store i64 %46, ptr %6, align 8, !tbaa !9
  br label %16, !llvm.loop !16

47:                                               ; preds = %16
  %48 = load i64, ptr %6, align 8, !tbaa !9
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %8, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %51 = getelementptr inbounds [40 x i8], ptr %7, i64 0, i64 0
  store ptr %51, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %52, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %53 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %53, ptr %14, align 4, !tbaa !11
  br label %54

54:                                               ; preds = %57, %50
  %55 = load i32, ptr %14, align 4, !tbaa !11
  %56 = icmp ugt i32 %55, 0
  br i1 %56, label %57, label %70

57:                                               ; preds = %54
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i32 1
  store ptr %59, ptr %13, align 8, !tbaa !5
  %60 = load i8, ptr %58, align 1, !tbaa !13
  %61 = zext i8 %60 to i32
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i32 1
  store ptr %63, ptr %12, align 8, !tbaa !5
  %64 = load i8, ptr %62, align 1, !tbaa !13
  %65 = zext i8 %64 to i32
  %66 = xor i32 %65, %61
  %67 = trunc i32 %66 to i8
  store i8 %67, ptr %62, align 1, !tbaa !13
  %68 = load i32, ptr %14, align 4, !tbaa !11
  %69 = add i32 %68, -1
  store i32 %69, ptr %14, align 4, !tbaa !11
  br label %54, !llvm.loop !17

70:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %8, align 4, !tbaa !11
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds [40 x i8], ptr %7, i64 0, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !13
  %77 = zext i8 %76 to i32
  %78 = xor i32 %77, 128
  %79 = trunc i32 %78 to i8
  store i8 %79, ptr %75, align 1, !tbaa !13
  %80 = getelementptr inbounds [40 x i8], ptr %7, i64 0, i64 0
  call void @sliscp_light320_permute(ptr noundef %80)
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds [40 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %81, ptr align 16 %82, i64 8, i1 false)
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %83

83:                                               ; preds = %92, %72
  %84 = load i32, ptr %8, align 4, !tbaa !11
  %85 = icmp ult i32 %84, 3
  br i1 %85, label %86, label %95

86:                                               ; preds = %83
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 8
  store ptr %88, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds [40 x i8], ptr %7, i64 0, i64 0
  call void @sliscp_light320_permute(ptr noundef %89)
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds [40 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %90, ptr align 16 %91, i64 8, i1 false)
  br label %92

92:                                               ; preds = %86
  %93 = load i32, ptr %8, align 4, !tbaa !11
  %94 = add i32 %93, 1
  store i32 %94, ptr %8, align 4, !tbaa !11
  br label %83, !llvm.loop !18

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

declare void @sliscp_light320_permute(ptr noundef) #2

; 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) #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 = { "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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !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"

@ace_hash_iv = external hidden local_unnamed_addr constant [40 x i8], align 16

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @ace_hash(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = alloca [40 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %4, ptr noundef nonnull align 16 dereferenceable(40) @ace_hash_iv, i64 40, i1 false)
  %5 = icmp ugt i64 %2, 7
  br i1 %5, label %.preheader, label %._crit_edge

.preheader:                                       ; preds = %3, %.preheader
  %.02634 = phi i64 [ %10, %.preheader ], [ %2, %3 ]
  %.02733 = phi ptr [ %9, %.preheader ], [ %1, %3 ]
  %6 = load <8 x i8>, ptr %.02733, align 1, !tbaa !5
  %7 = load <8 x i8>, ptr %4, align 16, !tbaa !5
  %8 = xor <8 x i8> %7, %6
  store <8 x i8> %8, ptr %4, align 16, !tbaa !5
  call void @sliscp_light320_permute(ptr noundef nonnull %4) #4
  %9 = getelementptr inbounds i8, ptr %.02733, i64 8
  %10 = add i64 %.02634, -8
  %11 = icmp ugt i64 %10, 7
  br i1 %11, label %.preheader, label %._crit_edge, !llvm.loop !8

._crit_edge:                                      ; preds = %.preheader, %3
  %.027.lcssa = phi ptr [ %1, %3 ], [ %9, %.preheader ]
  %.026.lcssa = phi i64 [ %2, %3 ], [ %10, %.preheader ]
  %.not36 = icmp eq i64 %.026.lcssa, 0
  br i1 %.not36, label %._crit_edge41, label %iter.check

iter.check:                                       ; preds = %._crit_edge
  %12 = trunc nuw i64 %.026.lcssa to i32
  %13 = add nuw nsw i64 %.026.lcssa, 4294967295
  %14 = and i64 %13, 4294967295
  %15 = add nuw nsw i64 %14, 1
  %min.iters.check = icmp ult i64 %14, 7
  br i1 %min.iters.check, label %.lr.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %iter.check
  %16 = add nuw nsw i64 %.026.lcssa, 4294967295
  %17 = and i64 %16, 4294967295
  %18 = add nuw nsw i64 %17, 1
  %scevgep = getelementptr i8, ptr %4, i64 %18
  %scevgep47 = getelementptr i8, ptr %.027.lcssa, i64 %18
  %bound0 = icmp ult ptr %4, %scevgep47
  %bound1 = icmp ult ptr %.027.lcssa, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader, label %vector.main.loop.iter.check

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

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %15, 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 %.027.lcssa, i64 %index
  %next.gep50 = getelementptr i8, ptr %4, i64 %index
  %19 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load = load <16 x i8>, ptr %next.gep, align 1, !tbaa !5, !alias.scope !10
  %wide.load52 = load <16 x i8>, ptr %19, align 1, !tbaa !5, !alias.scope !10
  %20 = getelementptr i8, ptr %next.gep50, i64 16
  %wide.load53 = load <16 x i8>, ptr %next.gep50, align 16, !tbaa !5, !alias.scope !13, !noalias !10
  %wide.load54 = load <16 x i8>, ptr %20, align 16, !tbaa !5, !alias.scope !13, !noalias !10
  %21 = xor <16 x i8> %wide.load53, %wide.load
  %22 = xor <16 x i8> %wide.load54, %wide.load52
  store <16 x i8> %21, ptr %next.gep50, align 16, !tbaa !5, !alias.scope !13, !noalias !10
  store <16 x i8> %22, ptr %20, align 16, !tbaa !5, !alias.scope !13, !noalias !10
  %index.next = add nuw i64 %index, 32
  %23 = icmp eq i64 %index.next, %n.vec
  br i1 %23, label %middle.block, label %vector.body, !llvm.loop !15

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

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end63 = getelementptr i8, ptr %4, i64 %n.vec
  %ind.end60 = getelementptr i8, ptr %.027.lcssa, i64 %n.vec
  %.cast57 = trunc i64 %n.vec to i32
  %ind.end58 = sub i32 %12, %.cast57
  %n.vec.remaining = and i64 %15, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.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.vec56 = and i64 %15, 8589934584
  %.cast = trunc i64 %n.vec56 to i32
  %ind.end = sub i32 %12, %.cast
  %ind.end59 = getelementptr i8, ptr %.027.lcssa, i64 %n.vec56
  %ind.end62 = getelementptr i8, ptr %4, i64 %n.vec56
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index65 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next70, %vec.epilog.vector.body ]
  %next.gep66 = getelementptr i8, ptr %.027.lcssa, i64 %index65
  %next.gep67 = getelementptr i8, ptr %4, i64 %index65
  %wide.load68 = load <8 x i8>, ptr %next.gep66, align 1, !tbaa !5, !alias.scope !18
  %wide.load69 = load <8 x i8>, ptr %next.gep67, align 8, !tbaa !5, !alias.scope !21, !noalias !18
  %24 = xor <8 x i8> %wide.load69, %wide.load68
  store <8 x i8> %24, ptr %next.gep67, align 8, !tbaa !5, !alias.scope !21, !noalias !18
  %index.next70 = add nuw i64 %index65, 8
  %25 = icmp eq i64 %index.next70, %n.vec56
  br i1 %25, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !23

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n71 = icmp eq i64 %15, %n.vec56
  br i1 %cmp.n71, label %._crit_edge41, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %vector.memcheck, %iter.check, %vec.epilog.iter.check
  %.039.ph = phi i32 [ %12, %iter.check ], [ %12, %vector.memcheck ], [ %ind.end58, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  %.02038.ph = phi ptr [ %.027.lcssa, %iter.check ], [ %.027.lcssa, %vector.memcheck ], [ %ind.end60, %vec.epilog.iter.check ], [ %ind.end59, %vec.epilog.middle.block ]
  %.02137.ph = phi ptr [ %4, %iter.check ], [ %4, %vector.memcheck ], [ %ind.end63, %vec.epilog.iter.check ], [ %ind.end62, %vec.epilog.middle.block ]
  %26 = add nsw i32 %.039.ph, -1
  %xtraiter = and i32 %.039.ph, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.039.prol = phi i32 [ %32, %.lr.ph.prol ], [ %.039.ph, %.lr.ph.preheader ]
  %.02038.prol = phi ptr [ %27, %.lr.ph.prol ], [ %.02038.ph, %.lr.ph.preheader ]
  %.02137.prol = phi ptr [ %29, %.lr.ph.prol ], [ %.02137.ph, %.lr.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %27 = getelementptr inbounds i8, ptr %.02038.prol, i64 1
  %28 = load i8, ptr %.02038.prol, align 1, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %.02137.prol, i64 1
  %30 = load i8, ptr %.02137.prol, align 1, !tbaa !5
  %31 = xor i8 %30, %28
  store i8 %31, ptr %.02137.prol, align 1, !tbaa !5
  %32 = add nsw i32 %.039.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.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !24

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.039.unr = phi i32 [ %.039.ph, %.lr.ph.preheader ], [ %32, %.lr.ph.prol ]
  %.02038.unr = phi ptr [ %.02038.ph, %.lr.ph.preheader ], [ %27, %.lr.ph.prol ]
  %.02137.unr = phi ptr [ %.02137.ph, %.lr.ph.preheader ], [ %29, %.lr.ph.prol ]
  %33 = icmp ult i32 %26, 3
  br i1 %33, label %._crit_edge41, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.039 = phi i32 [ %54, %.lr.ph ], [ %.039.unr, %.lr.ph.prol.loopexit ]
  %.02038 = phi ptr [ %49, %.lr.ph ], [ %.02038.unr, %.lr.ph.prol.loopexit ]
  %.02137 = phi ptr [ %51, %.lr.ph ], [ %.02137.unr, %.lr.ph.prol.loopexit ]
  %34 = getelementptr inbounds i8, ptr %.02038, i64 1
  %35 = load i8, ptr %.02038, align 1, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %.02137, i64 1
  %37 = load i8, ptr %.02137, align 1, !tbaa !5
  %38 = xor i8 %37, %35
  store i8 %38, ptr %.02137, align 1, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %.02038, i64 2
  %40 = load i8, ptr %34, align 1, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %.02137, i64 2
  %42 = load i8, ptr %36, align 1, !tbaa !5
  %43 = xor i8 %42, %40
  store i8 %43, ptr %36, align 1, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %.02038, i64 3
  %45 = load i8, ptr %39, align 1, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %.02137, i64 3
  %47 = load i8, ptr %41, align 1, !tbaa !5
  %48 = xor i8 %47, %45
  store i8 %48, ptr %41, align 1, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %.02038, i64 4
  %50 = load i8, ptr %44, align 1, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %.02137, i64 4
  %52 = load i8, ptr %46, align 1, !tbaa !5
  %53 = xor i8 %52, %50
  store i8 %53, ptr %46, align 1, !tbaa !5
  %54 = add nsw i32 %.039, -4
  %.not.3 = icmp eq i32 %54, 0
  br i1 %.not.3, label %._crit_edge41, label %.lr.ph, !llvm.loop !26

._crit_edge41:                                    ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %vec.epilog.middle.block, %._crit_edge
  %55 = getelementptr inbounds [40 x i8], ptr %4, i64 0, i64 %.026.lcssa
  %56 = load i8, ptr %55, align 1, !tbaa !5
  %57 = xor i8 %56, -128
  store i8 %57, ptr %55, align 1, !tbaa !5
  call void @sliscp_light320_permute(ptr noundef nonnull %4) #4
  %58 = load i64, ptr %4, align 16
  store i64 %58, ptr %0, align 1
  %59 = getelementptr inbounds i8, ptr %0, i64 8
  call void @sliscp_light320_permute(ptr noundef nonnull %4) #4
  %60 = load i64, ptr %4, align 16
  store i64 %60, ptr %59, align 1
  %61 = getelementptr inbounds i8, ptr %0, i64 16
  call void @sliscp_light320_permute(ptr noundef nonnull %4) #4
  %62 = load i64, ptr %4, align 16
  store i64 %62, ptr %61, align 1
  %63 = getelementptr inbounds i8, ptr %0, i64 24
  call void @sliscp_light320_permute(ptr noundef nonnull %4) #4
  %64 = load i64, ptr %4, align 16
  store i64 %64, ptr %63, align 1
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #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

declare void @sliscp_light320_permute(ptr noundef) local_unnamed_addr #2

; 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) #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 = { "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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11}
!11 = distinct !{!11, !12}
!12 = distinct !{!12, !"LVerDomain"}
!13 = !{!14}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !9, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !9, !16, !17}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.unroll.disable"}
!26 = distinct !{!26, !9, !16}


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