; LLVM IR from trustwallet/wallet-core :: trezor-crypto/crypto/sodium/private (ed25519_ref10)

; 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

declare void @fe25519_sq(ptr noundef, ptr noundef) #1

declare void @fe25519_mul(ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @fe25519_pow22523(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [10 x i32], align 16
  %6 = alloca [10 x i32], align 16
  %7 = alloca [10 x i32], align 16
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %9 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  call void @fe25519_sq(ptr noundef %9, ptr noundef %10)
  %11 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %12 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %11, ptr noundef %12)
  %13 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %14 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %13, ptr noundef %14)
  %15 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %15, ptr noundef %16, ptr noundef %17)
  %18 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %19 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %20 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %18, ptr noundef %19, ptr noundef %20)
  %21 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %22 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %21, ptr noundef %22)
  %23 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %24 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %25 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %23, ptr noundef %24, ptr noundef %25)
  %26 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %27 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %26, ptr noundef %27)
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %34, %2
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = icmp slt i32 %29, 5
  br i1 %30, label %31, label %37

31:                                               ; preds = %28
  %32 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %33 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %32, ptr noundef %33)
  br label %34

34:                                               ; preds = %31
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %8, align 4, !tbaa !9
  br label %28, !llvm.loop !11

37:                                               ; preds = %28
  %38 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %39 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %40 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %38, ptr noundef %39, ptr noundef %40)
  %41 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %42 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %41, ptr noundef %42)
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %49, %37
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = icmp slt i32 %44, 10
  br i1 %45, label %46, label %52

46:                                               ; preds = %43
  %47 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %48 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %47, ptr noundef %48)
  br label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %8, align 4, !tbaa !9
  br label %43, !llvm.loop !13

52:                                               ; preds = %43
  %53 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %54 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %55 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %53, ptr noundef %54, ptr noundef %55)
  %56 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %57 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %56, ptr noundef %57)
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %64, %52
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = icmp slt i32 %59, 20
  br i1 %60, label %61, label %67

61:                                               ; preds = %58
  %62 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %63 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %62, ptr noundef %63)
  br label %64

64:                                               ; preds = %61
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %8, align 4, !tbaa !9
  br label %58, !llvm.loop !14

67:                                               ; preds = %58
  %68 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %69 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %70 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %68, ptr noundef %69, ptr noundef %70)
  %71 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %72 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %71, ptr noundef %72)
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %79, %67
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = icmp slt i32 %74, 10
  br i1 %75, label %76, label %82

76:                                               ; preds = %73
  %77 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %78 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %77, ptr noundef %78)
  br label %79

79:                                               ; preds = %76
  %80 = load i32, ptr %8, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %8, align 4, !tbaa !9
  br label %73, !llvm.loop !15

82:                                               ; preds = %73
  %83 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %84 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %85 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %83, ptr noundef %84, ptr noundef %85)
  %86 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %87 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %86, ptr noundef %87)
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %94, %82
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = icmp slt i32 %89, 50
  br i1 %90, label %91, label %97

91:                                               ; preds = %88
  %92 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %93 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %92, ptr noundef %93)
  br label %94

94:                                               ; preds = %91
  %95 = load i32, ptr %8, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %8, align 4, !tbaa !9
  br label %88, !llvm.loop !16

97:                                               ; preds = %88
  %98 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %99 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %100 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %98, ptr noundef %99, ptr noundef %100)
  %101 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %102 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %101, ptr noundef %102)
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %109, %97
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = icmp slt i32 %104, 100
  br i1 %105, label %106, label %112

106:                                              ; preds = %103
  %107 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %108 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %107, ptr noundef %108)
  br label %109

109:                                              ; preds = %106
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %8, align 4, !tbaa !9
  br label %103, !llvm.loop !17

112:                                              ; preds = %103
  %113 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %114 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %115 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %113, ptr noundef %114, ptr noundef %115)
  %116 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %117 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %116, ptr noundef %117)
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %124, %112
  %119 = load i32, ptr %8, align 4, !tbaa !9
  %120 = icmp slt i32 %119, 50
  br i1 %120, label %121, label %127

121:                                              ; preds = %118
  %122 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %123 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %122, ptr noundef %123)
  br label %124

124:                                              ; preds = %121
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %8, align 4, !tbaa !9
  br label %118, !llvm.loop !18

127:                                              ; preds = %118
  %128 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %129 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %130 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %128, ptr noundef %129, ptr noundef %130)
  %131 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %132 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %131, ptr noundef %132)
  %133 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %134 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %133, ptr noundef %134)
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  call void @fe25519_mul(ptr noundef %135, ptr noundef %136, ptr noundef %137)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #3
  ret void
}

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


; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare void @fe25519_sq(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @fe25519_mul(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @fe25519_pow22523(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca [10 x i32], align 16
  %4 = alloca [10 x i32], align 16
  %5 = alloca [10 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %3, ptr noundef %1) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_mul(ptr noundef nonnull %4, ptr noundef %1, ptr noundef nonnull %4) #3
  call void @fe25519_mul(ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %3, ptr noundef nonnull %3) #3
  call void @fe25519_mul(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_mul(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_mul(ptr noundef nonnull %4, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  call void @fe25519_mul(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_mul(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_mul(ptr noundef nonnull %4, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %4) #3
  br label %6

6:                                                ; preds = %2, %6
  %.522 = phi i32 [ 1, %2 ], [ %7, %6 ]
  call void @fe25519_sq(ptr noundef nonnull %5, ptr noundef nonnull %5) #3
  %7 = add nuw nsw i32 %.522, 1
  %exitcond.not = icmp eq i32 %7, 100
  br i1 %exitcond.not, label %8, label %6, !llvm.loop !5

8:                                                ; preds = %6
  call void @fe25519_mul(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @fe25519_mul(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %3, ptr noundef nonnull %3) #3
  call void @fe25519_sq(ptr noundef nonnull %3, ptr noundef nonnull %3) #3
  call void @fe25519_mul(ptr noundef %0, ptr noundef nonnull %3, ptr noundef %1) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #3
  ret void
}

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass