; LLVM IR from gem5/gem5 :: src/arch/arm/insts/crypto.ll (ZN4gem56ArmISA6Crypto8sha256OpEPjS2_S2_)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4gem56ArmISA6Crypto8sha256OpEPjS2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %114, %4
  %16 = load i32, ptr %13, align 4, !tbaa !9
  %17 = icmp slt i32 %16, 4
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %117

19:                                               ; preds = %15
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds i32, ptr %20, i64 0
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds i32, ptr %23, i64 1
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds i32, ptr %26, i64 2
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = call noundef i32 @_ZN4gem56ArmISA6Crypto6chooseEjjj(ptr noundef nonnull align 1 dereferenceable(1) %14, i32 noundef %22, i32 noundef %25, i32 noundef %28)
  store i32 %29, ptr %9, align 4, !tbaa !9
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds i32, ptr %30, i64 0
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds i32, ptr %33, i64 1
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds i32, ptr %36, i64 2
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = call noundef i32 @_ZN4gem56ArmISA6Crypto8majorityEjjj(ptr noundef nonnull align 1 dereferenceable(1) %14, i32 noundef %32, i32 noundef %35, i32 noundef %38)
  store i32 %39, ptr %10, align 4, !tbaa !9
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds i32, ptr %40, i64 3
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds i32, ptr %43, i64 0
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = call noundef i32 @_ZN4gem56ArmISA6Crypto6sigma1Ej(ptr noundef nonnull align 1 dereferenceable(1) %14, i32 noundef %45)
  %47 = add i32 %42, %46
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = add i32 %47, %48
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i32, ptr %50, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = add i32 %49, %54
  store i32 %55, ptr %11, align 4, !tbaa !9
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds i32, ptr %57, i64 3
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = add i32 %56, %59
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds i32, ptr %61, i64 3
  store i32 %60, ptr %62, align 4, !tbaa !9
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds i32, ptr %64, i64 0
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = call noundef i32 @_ZN4gem56ArmISA6Crypto6sigma0Ej(ptr noundef nonnull align 1 dereferenceable(1) %14, i32 noundef %66)
  %68 = add i32 %63, %67
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = add i32 %68, %69
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds i32, ptr %71, i64 3
  store i32 %70, ptr %72, align 4, !tbaa !9
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds i32, ptr %73, i64 3
  %75 = load i32, ptr %74, align 4, !tbaa !9
  store i32 %75, ptr %12, align 4, !tbaa !9
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds i32, ptr %76, i64 2
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds i32, ptr %79, i64 3
  store i32 %78, ptr %80, align 4, !tbaa !9
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds i32, ptr %81, i64 1
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds i32, ptr %84, i64 2
  store i32 %83, ptr %85, align 4, !tbaa !9
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds i32, ptr %86, i64 0
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds i32, ptr %89, i64 1
  store i32 %88, ptr %90, align 4, !tbaa !9
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds i32, ptr %91, i64 3
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds i32, ptr %94, i64 0
  store i32 %93, ptr %95, align 4, !tbaa !9
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds i32, ptr %96, i64 2
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds i32, ptr %99, i64 3
  store i32 %98, ptr %100, align 4, !tbaa !9
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds i32, ptr %101, i64 1
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds i32, ptr %104, i64 2
  store i32 %103, ptr %105, align 4, !tbaa !9
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds i32, ptr %106, i64 0
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds i32, ptr %109, i64 1
  store i32 %108, ptr %110, align 4, !tbaa !9
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds i32, ptr %112, i64 0
  store i32 %111, ptr %113, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %19
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %13, align 4, !tbaa !9
  br label %15, !llvm.loop !11

117:                                              ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4gem56ArmISA6Crypto6chooseEjjj(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4gem56ArmISA6Crypto8majorityEjjj(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4gem56ArmISA6Crypto6sigma1Ej(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4gem56ArmISA6Crypto6sigma0Ej(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4gem56ArmISA6Crypto8sha256OpEPjS2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %2, i64 4
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = getelementptr inbounds i8, ptr %2, i64 12
  %10 = getelementptr inbounds i8, ptr %1, i64 12
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = load i32, ptr %6, align 4, !tbaa !5
  %14 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6chooseEjjj(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %11, i32 noundef %12, i32 noundef %13)
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = load i32, ptr %7, align 4, !tbaa !5
  %17 = load i32, ptr %8, align 4, !tbaa !5
  %18 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto8majorityEjjj(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %15, i32 noundef %16, i32 noundef %17)
  %19 = load i32, ptr %9, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6sigma1Ej(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %20)
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = add i32 %19, %14
  %24 = add i32 %23, %21
  %25 = add i32 %24, %22
  %26 = load i32, ptr %10, align 4, !tbaa !5
  %27 = add i32 %25, %26
  store i32 %27, ptr %10, align 4, !tbaa !5
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6sigma0Ej(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %28)
  %30 = add i32 %25, %18
  %31 = add i32 %30, %29
  %32 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %32, ptr %9, align 4, !tbaa !5
  %33 = load <2 x i32>, ptr %2, align 4, !tbaa !5
  store <2 x i32> %33, ptr %5, align 4, !tbaa !5
  %34 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %34, ptr %2, align 4, !tbaa !5
  %35 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %35, ptr %10, align 4, !tbaa !5
  %36 = load <2 x i32>, ptr %1, align 4, !tbaa !5
  store <2 x i32> %36, ptr %7, align 4, !tbaa !5
  store i32 %31, ptr %1, align 4, !tbaa !5
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6chooseEjjj(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %37, i32 noundef %38, i32 noundef %39)
  %41 = load i32, ptr %1, align 4, !tbaa !5
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto8majorityEjjj(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %41, i32 noundef %42, i32 noundef %43)
  %45 = load i32, ptr %9, align 4, !tbaa !5
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6sigma1Ej(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %46)
  %48 = getelementptr inbounds i8, ptr %3, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = add i32 %45, %40
  %51 = add i32 %50, %47
  %52 = add i32 %51, %49
  %53 = load i32, ptr %10, align 4, !tbaa !5
  %54 = add i32 %52, %53
  store i32 %54, ptr %10, align 4, !tbaa !5
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %56 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6sigma0Ej(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %55)
  %57 = add i32 %52, %44
  %58 = add i32 %57, %56
  %59 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %59, ptr %9, align 4, !tbaa !5
  %60 = load <2 x i32>, ptr %2, align 4, !tbaa !5
  store <2 x i32> %60, ptr %5, align 4, !tbaa !5
  %61 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %61, ptr %2, align 4, !tbaa !5
  %62 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %62, ptr %10, align 4, !tbaa !5
  %63 = load <2 x i32>, ptr %1, align 4, !tbaa !5
  store <2 x i32> %63, ptr %7, align 4, !tbaa !5
  store i32 %58, ptr %1, align 4, !tbaa !5
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6chooseEjjj(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %64, i32 noundef %65, i32 noundef %66)
  %68 = load i32, ptr %1, align 4, !tbaa !5
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto8majorityEjjj(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %68, i32 noundef %69, i32 noundef %70)
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6sigma1Ej(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %73)
  %75 = getelementptr inbounds i8, ptr %3, i64 8
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = add i32 %72, %67
  %78 = add i32 %77, %74
  %79 = add i32 %78, %76
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = add i32 %79, %80
  store i32 %81, ptr %10, align 4, !tbaa !5
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6sigma0Ej(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %82)
  %84 = add i32 %79, %71
  %85 = add i32 %84, %83
  %86 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %86, ptr %9, align 4, !tbaa !5
  %87 = load <2 x i32>, ptr %2, align 4, !tbaa !5
  store <2 x i32> %87, ptr %5, align 4, !tbaa !5
  %88 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %88, ptr %2, align 4, !tbaa !5
  %89 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %89, ptr %10, align 4, !tbaa !5
  %90 = load <2 x i32>, ptr %1, align 4, !tbaa !5
  store <2 x i32> %90, ptr %7, align 4, !tbaa !5
  store i32 %85, ptr %1, align 4, !tbaa !5
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6chooseEjjj(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %91, i32 noundef %92, i32 noundef %93)
  %95 = load i32, ptr %1, align 4, !tbaa !5
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto8majorityEjjj(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %95, i32 noundef %96, i32 noundef %97)
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load i32, ptr %2, align 4, !tbaa !5
  %101 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6sigma1Ej(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %100)
  %102 = getelementptr inbounds i8, ptr %3, i64 12
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = add i32 %99, %94
  %105 = add i32 %104, %101
  %106 = add i32 %105, %103
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = add i32 %106, %107
  store i32 %108, ptr %10, align 4, !tbaa !5
  %109 = load i32, ptr %1, align 4, !tbaa !5
  %110 = tail call noundef i32 @_ZN4gem56ArmISA6Crypto6sigma0Ej(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %109)
  %111 = add i32 %106, %98
  %112 = add i32 %111, %110
  %113 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %113, ptr %9, align 4, !tbaa !5
  %114 = load <2 x i32>, ptr %2, align 4, !tbaa !5
  store <2 x i32> %114, ptr %5, align 4, !tbaa !5
  %115 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %115, ptr %2, align 4, !tbaa !5
  %116 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %116, ptr %10, align 4, !tbaa !5
  %117 = load <2 x i32>, ptr %1, align 4, !tbaa !5
  store <2 x i32> %117, ptr %7, align 4, !tbaa !5
  store i32 %112, ptr %1, align 4, !tbaa !5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4gem56ArmISA6Crypto6chooseEjjj(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4gem56ArmISA6Crypto8majorityEjjj(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4gem56ArmISA6Crypto6sigma1Ej(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4gem56ArmISA6Crypto6sigma0Ej(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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" }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass