; LLVM IR from albertobsd/keyhunt :: hash/sha512.ll (Z11hmac_sha512PhiS_iS_)

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

%class.CSHA512 = type { [8 x i64], [128 x i8], i64, i64 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7CSHA51210InitializeEv(ptr noundef nonnull align 8 dereferenceable(208)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7CSHA5125WriteEPKhm(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef, i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7CSHA51214WriteDirect128EPKh(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7CSHA5128FinalizeEPh(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11hmac_sha512PhiS_iS_(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca [128 x i8], align 16
  %12 = alloca [128 x i8], align 16
  %13 = alloca [64 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca %class.CSHA512, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %48, %5
  %17 = load i32, ptr %14, align 4, !tbaa !9
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = icmp slt i32 %17, %18
  br i1 %19, label %20, label %23

20:                                               ; preds = %16
  %21 = load i32, ptr %14, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 128
  br label %23

23:                                               ; preds = %20, %16
  %24 = phi i1 [ false, %16 ], [ %22, %20 ]
  br i1 %24, label %25, label %51

25:                                               ; preds = %23
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load i32, ptr %14, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i8, ptr %26, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !11
  %31 = zext i8 %30 to i32
  %32 = xor i32 %31, 54
  %33 = trunc i32 %32 to i8
  %34 = load i32, ptr %14, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 %35
  store i8 %33, ptr %36, align 1, !tbaa !11
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i8, ptr %37, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = zext i8 %41 to i32
  %43 = xor i32 %42, 92
  %44 = trunc i32 %43 to i8
  %45 = load i32, ptr %14, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 %46
  store i8 %44, ptr %47, align 1, !tbaa !11
  br label %48

48:                                               ; preds = %25
  %49 = load i32, ptr %14, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %14, align 4, !tbaa !9
  br label %16, !llvm.loop !12

51:                                               ; preds = %23
  br label %52

52:                                               ; preds = %62, %51
  %53 = load i32, ptr %14, align 4, !tbaa !9
  %54 = icmp slt i32 %53, 128
  br i1 %54, label %55, label %65

55:                                               ; preds = %52
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 %57
  store i8 54, ptr %58, align 1, !tbaa !11
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 %60
  store i8 92, ptr %61, align 1, !tbaa !11
  br label %62

62:                                               ; preds = %55
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %14, align 4, !tbaa !9
  br label %52, !llvm.loop !14

65:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 208, ptr %15) #3
  call void @_ZN7CSHA512C1Ev(ptr noundef nonnull align 8 dereferenceable(208) %15)
  %66 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
  call void @_ZN7CSHA51214WriteDirect128EPKh(ptr noundef nonnull align 8 dereferenceable(208) %15, ptr noundef %66)
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  call void @_ZN7CSHA5125WriteEPKhm(ptr noundef nonnull align 8 dereferenceable(208) %15, ptr noundef %67, i64 noundef %69)
  %70 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  call void @_ZN7CSHA5128FinalizeEPh(ptr noundef nonnull align 8 dereferenceable(208) %15, ptr noundef %70)
  call void @_ZN7CSHA51210InitializeEv(ptr noundef nonnull align 8 dereferenceable(208) %15)
  %71 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
  call void @_ZN7CSHA51214WriteDirect128EPKh(ptr noundef nonnull align 8 dereferenceable(208) %15, ptr noundef %71)
  %72 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  call void @_ZN7CSHA5125WriteEPKhm(ptr noundef nonnull align 8 dereferenceable(208) %15, ptr noundef %72, i64 noundef 64)
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7CSHA5128FinalizeEPh(ptr noundef nonnull align 8 dereferenceable(208) %15, ptr noundef %73)
  call void @llvm.lifetime.end.p0(i64 208, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %11) #3
  ret void
}

declare void @_ZN7CSHA512C1Ev(ptr)

attributes #0 = { mustprogress 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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

%class.CSHA512 = type { [8 x i64], [128 x i8], i64, i64 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7CSHA51210InitializeEv(ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7CSHA5125WriteEPKhm(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef, i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7CSHA51214WriteDirect128EPKh(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7CSHA5128FinalizeEPh(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11hmac_sha512PhiS_iS_(ptr nocapture noundef readonly %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = alloca [128 x i8], align 16
  %7 = alloca [128 x i8], align 16
  %8 = alloca [64 x i8], align 16
  %9 = alloca %class.CSHA512, align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  %10 = icmp sgt i32 %1, 0
  br i1 %10, label %iter.check, label %.lr.ph18.preheader

iter.check:                                       ; preds = %5
  %11 = add nsw i32 %1, -1
  %umin = tail call i32 @llvm.umin.i32(i32 %11, i32 127)
  %12 = add nuw nsw i32 %umin, 1
  %wide.trip.count = zext nneg i32 %12 to i64
  %min.iters.check = icmp ult i32 %1, 8
  br i1 %min.iters.check, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  %min.iters.check26 = icmp ult i32 %1, 32
  br i1 %min.iters.check26, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %wide.trip.count, 224
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %wide.load = load <16 x i8>, ptr %0, align 1, !tbaa !5
  %wide.load27 = load <16 x i8>, ptr %13, align 1, !tbaa !5
  %14 = xor <16 x i8> %wide.load, <i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54>
  %15 = xor <16 x i8> %wide.load27, <i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54>
  %16 = getelementptr inbounds i8, ptr %6, i64 16
  store <16 x i8> %14, ptr %6, align 16, !tbaa !5
  store <16 x i8> %15, ptr %16, align 16, !tbaa !5
  %17 = xor <16 x i8> %wide.load, <i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92>
  %18 = xor <16 x i8> %wide.load27, <i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92>
  %19 = getelementptr inbounds i8, ptr %7, i64 16
  store <16 x i8> %17, ptr %7, align 16, !tbaa !5
  store <16 x i8> %18, ptr %19, align 16, !tbaa !5
  %20 = icmp eq i64 %n.vec, 32
  br i1 %20, label %middle.block, label %vector.body.1, !llvm.loop !8

vector.body.1:                                    ; preds = %vector.ph
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  %22 = getelementptr inbounds i8, ptr %0, i64 48
  %wide.load.1 = load <16 x i8>, ptr %21, align 1, !tbaa !5
  %wide.load27.1 = load <16 x i8>, ptr %22, align 1, !tbaa !5
  %23 = xor <16 x i8> %wide.load.1, <i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54>
  %24 = xor <16 x i8> %wide.load27.1, <i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54>
  %25 = getelementptr inbounds i8, ptr %6, i64 32
  %26 = getelementptr inbounds i8, ptr %6, i64 48
  store <16 x i8> %23, ptr %25, align 16, !tbaa !5
  store <16 x i8> %24, ptr %26, align 16, !tbaa !5
  %27 = xor <16 x i8> %wide.load.1, <i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92>
  %28 = xor <16 x i8> %wide.load27.1, <i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92>
  %29 = getelementptr inbounds i8, ptr %7, i64 32
  %30 = getelementptr inbounds i8, ptr %7, i64 48
  store <16 x i8> %27, ptr %29, align 16, !tbaa !5
  store <16 x i8> %28, ptr %30, align 16, !tbaa !5
  %31 = icmp eq i64 %n.vec, 64
  br i1 %31, label %middle.block, label %vector.body.2, !llvm.loop !8

vector.body.2:                                    ; preds = %vector.body.1
  %32 = getelementptr inbounds i8, ptr %0, i64 64
  %33 = getelementptr inbounds i8, ptr %0, i64 80
  %wide.load.2 = load <16 x i8>, ptr %32, align 1, !tbaa !5
  %wide.load27.2 = load <16 x i8>, ptr %33, align 1, !tbaa !5
  %34 = xor <16 x i8> %wide.load.2, <i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54>
  %35 = xor <16 x i8> %wide.load27.2, <i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54>
  %36 = getelementptr inbounds i8, ptr %6, i64 64
  %37 = getelementptr inbounds i8, ptr %6, i64 80
  store <16 x i8> %34, ptr %36, align 16, !tbaa !5
  store <16 x i8> %35, ptr %37, align 16, !tbaa !5
  %38 = xor <16 x i8> %wide.load.2, <i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92>
  %39 = xor <16 x i8> %wide.load27.2, <i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92>
  %40 = getelementptr inbounds i8, ptr %7, i64 64
  %41 = getelementptr inbounds i8, ptr %7, i64 80
  store <16 x i8> %38, ptr %40, align 16, !tbaa !5
  store <16 x i8> %39, ptr %41, align 16, !tbaa !5
  %42 = icmp eq i64 %n.vec, 96
  br i1 %42, label %middle.block, label %vector.body.3, !llvm.loop !8

vector.body.3:                                    ; preds = %vector.body.2
  %43 = getelementptr inbounds i8, ptr %0, i64 96
  %44 = getelementptr inbounds i8, ptr %0, i64 112
  %wide.load.3 = load <16 x i8>, ptr %43, align 1, !tbaa !5
  %wide.load27.3 = load <16 x i8>, ptr %44, align 1, !tbaa !5
  %45 = xor <16 x i8> %wide.load.3, <i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54>
  %46 = xor <16 x i8> %wide.load27.3, <i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54>
  %47 = getelementptr inbounds i8, ptr %6, i64 96
  %48 = getelementptr inbounds i8, ptr %6, i64 112
  store <16 x i8> %45, ptr %47, align 16, !tbaa !5
  store <16 x i8> %46, ptr %48, align 16, !tbaa !5
  %49 = xor <16 x i8> %wide.load.3, <i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92>
  %50 = xor <16 x i8> %wide.load27.3, <i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92>
  %51 = getelementptr inbounds i8, ptr %7, i64 96
  %52 = getelementptr inbounds i8, ptr %7, i64 112
  store <16 x i8> %49, ptr %51, align 16, !tbaa !5
  store <16 x i8> %50, ptr %52, align 16, !tbaa !5
  br label %middle.block

middle.block:                                     ; preds = %vector.body.3, %vector.body.2, %vector.body.1, %vector.ph
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %n.vec.remaining = and i64 %wide.trip.count, 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

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %indvars.iv.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec29, %vec.epilog.middle.block ]
  br label %.lr.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.vec29 = and i64 %wide.trip.count, 248
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index30 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next32, %vec.epilog.vector.body ]
  %53 = getelementptr inbounds i8, ptr %0, i64 %index30
  %wide.load31 = load <8 x i8>, ptr %53, align 1, !tbaa !5
  %54 = xor <8 x i8> %wide.load31, <i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54, i8 54>
  %55 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 %index30
  store <8 x i8> %54, ptr %55, align 8, !tbaa !5
  %56 = xor <8 x i8> %wide.load31, <i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92, i8 92>
  %57 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %index30
  store <8 x i8> %56, ptr %57, align 8, !tbaa !5
  %index.next32 = add nuw i64 %index30, 8
  %58 = icmp eq i64 %index.next32, %n.vec29
  br i1 %58, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !12

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n33 = icmp eq i64 %n.vec29, %wide.trip.count
  br i1 %cmp.n33, label %.preheader, label %.lr.ph.preheader

.preheader:                                       ; preds = %.lr.ph, %vec.epilog.middle.block, %middle.block
  %.not = icmp ugt i32 %11, 126
  br i1 %.not, label %._crit_edge, label %.lr.ph18.preheader

.lr.ph18.preheader:                               ; preds = %5, %.preheader
  %.0.lcssa25 = phi i32 [ %12, %.preheader ], [ 0, %5 ]
  %59 = zext nneg i32 %.0.lcssa25 to i64
  %scevgep = getelementptr i8, ptr %6, i64 %59
  %narrow = sub nuw nsw i32 128, %.0.lcssa25
  %60 = zext nneg i32 %narrow to i64
  call void @llvm.memset.p0.i64(ptr align 1 %scevgep, i8 54, i64 %60, i1 false), !tbaa !5
  %scevgep20 = getelementptr i8, ptr %7, i64 %59
  call void @llvm.memset.p0.i64(ptr align 1 %scevgep20, i8 92, i64 %60, i1 false), !tbaa !5
  br label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader ]
  %61 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv
  %62 = load i8, ptr %61, align 1, !tbaa !5
  %63 = xor i8 %62, 54
  %64 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 %indvars.iv
  store i8 %63, ptr %64, align 1, !tbaa !5
  %65 = xor i8 %62, 92
  %66 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %indvars.iv
  store i8 %65, ptr %66, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph18.preheader, %.preheader
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %9) #5
  call void @_ZN7CSHA512C1Ev(ptr noundef nonnull align 8 dereferenceable(208) %9)
  call void @_ZN7CSHA51214WriteDirect128EPKh(ptr noundef nonnull align 8 dereferenceable(208) %9, ptr noundef nonnull %6)
  %67 = sext i32 %3 to i64
  call void @_ZN7CSHA5125WriteEPKhm(ptr noundef nonnull align 8 dereferenceable(208) %9, ptr noundef %2, i64 noundef %67)
  call void @_ZN7CSHA5128FinalizeEPh(ptr noundef nonnull align 8 dereferenceable(208) %9, ptr noundef nonnull %8)
  call void @_ZN7CSHA51210InitializeEv(ptr noundef nonnull align 8 dereferenceable(208) %9)
  call void @_ZN7CSHA51214WriteDirect128EPKh(ptr noundef nonnull align 8 dereferenceable(208) %9, ptr noundef nonnull %7)
  call void @_ZN7CSHA5125WriteEPKhm(ptr noundef nonnull align 8 dereferenceable(208) %9, ptr noundef nonnull %8, i64 noundef 64)
  call void @_ZN7CSHA5128FinalizeEPh(ptr noundef nonnull align 8 dereferenceable(208) %9, ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #5
  ret void
}

declare void @_ZN7CSHA512C1Ev(ptr) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { mustprogress 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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9, !10, !11}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !9, !10, !11}
!13 = distinct !{!13, !9, !11, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass