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

29:                                               ; preds = %35, %2
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = icmp slt i32 %30, 5
  br i1 %31, label %32, label %38

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

35:                                               ; preds = %32
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %9, align 4, !tbaa !9
  br label %29, !llvm.loop !11

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

44:                                               ; preds = %50, %38
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = icmp slt i32 %45, 10
  br i1 %46, label %47, label %53

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

50:                                               ; preds = %47
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %9, align 4, !tbaa !9
  br label %44, !llvm.loop !13

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

59:                                               ; preds = %65, %53
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = icmp slt i32 %60, 20
  br i1 %61, label %62, label %68

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

65:                                               ; preds = %62
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %9, align 4, !tbaa !9
  br label %59, !llvm.loop !14

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

74:                                               ; preds = %80, %68
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = icmp slt i32 %75, 10
  br i1 %76, label %77, label %83

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

80:                                               ; preds = %77
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %9, align 4, !tbaa !9
  br label %74, !llvm.loop !15

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

89:                                               ; preds = %95, %83
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = icmp slt i32 %90, 50
  br i1 %91, label %92, label %98

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

95:                                               ; preds = %92
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %9, align 4, !tbaa !9
  br label %89, !llvm.loop !16

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

104:                                              ; preds = %110, %98
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = icmp slt i32 %105, 100
  br i1 %106, label %107, label %113

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

110:                                              ; preds = %107
  %111 = load i32, ptr %9, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %9, align 4, !tbaa !9
  br label %104, !llvm.loop !17

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

119:                                              ; preds = %125, %113
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = icmp slt i32 %120, 50
  br i1 %121, label %122, label %128

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

125:                                              ; preds = %122
  %126 = load i32, ptr %9, align 4, !tbaa !9
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %9, align 4, !tbaa !9
  br label %119, !llvm.loop !18

128:                                              ; preds = %119
  %129 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %130 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %131 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %129, ptr noundef %130, ptr noundef %131)
  %132 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %133 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %132, ptr noundef %133)
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %140, %128
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = icmp slt i32 %135, 5
  br i1 %136, label %137, label %143

137:                                              ; preds = %134
  %138 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %139 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @fe25519_sq(ptr noundef %138, ptr noundef %139)
  br label %140

140:                                              ; preds = %137
  %141 = load i32, ptr %9, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %9, align 4, !tbaa !9
  br label %134, !llvm.loop !19

143:                                              ; preds = %134
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %146 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @fe25519_mul(ptr noundef %144, ptr noundef %145, ptr noundef %146)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 40, 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
}

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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}
!19 = distinct !{!19, !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: nounwind uwtable
define dso_local void @fe25519_invert(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [10 x i32], align 16
  %4 = alloca [10 x i32], align 16
  %5 = alloca [10 x i32], align 16
  %6 = 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 @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #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 %5, ptr noundef nonnull %3) #3
  call void @fe25519_mul(ptr noundef nonnull %4, ptr noundef nonnull %4, ptr noundef nonnull %5) #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_mul(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %4) #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_mul(ptr noundef nonnull %5, ptr noundef nonnull %5, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %5) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %6) #3
  call void @fe25519_mul(ptr noundef nonnull %5, ptr noundef nonnull %6, 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 %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_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_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 %5, ptr noundef nonnull %5, ptr noundef nonnull %4) #3
  call void @fe25519_sq(ptr noundef nonnull %6, ptr noundef nonnull %5) #3
  br label %7

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

9:                                                ; preds = %7
  call void @fe25519_mul(ptr noundef nonnull %5, ptr noundef nonnull %6, 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_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_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_mul(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #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
}

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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