; LLVM IR from sca-secure-library-sca25519/sca25519 :: STM32F407-ephemeral/crypto/numerics (fe25519_invert)

; 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: nounwind uwtable
define dso_local void @fe25519_invert_useProvidedScratchBuffers(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %17, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %18, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %19 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %19, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %20 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %20, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %21 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %21, ptr %16, align 8, !tbaa !5
  %22 = load ptr, ptr %16, align 8, !tbaa !5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %22, ptr noundef %23)
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %16, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %24, ptr noundef %25)
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %26, ptr noundef %27)
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %28, ptr noundef %29, ptr noundef %30)
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = load ptr, ptr %16, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %31, ptr noundef %32, ptr noundef %33)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %34, ptr noundef %35)
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %36, ptr noundef %37, ptr noundef %38)
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %39, ptr noundef %40)
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %41, ptr noundef %42)
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %43, ptr noundef %44)
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %45, ptr noundef %46)
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %47, ptr noundef %48)
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %49, ptr noundef %50, ptr noundef %51)
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %52, ptr noundef %53)
  store i8 1, ptr %15, align 1, !tbaa !9
  br label %54

54:                                               ; preds = %61, %5
  %55 = load i8, ptr %15, align 1, !tbaa !9
  %56 = zext i8 %55 to i32
  %57 = icmp slt i32 %56, 10
  br i1 %57, label %58, label %64

58:                                               ; preds = %54
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %59, ptr noundef %60)
  br label %61

61:                                               ; preds = %58
  %62 = load i8, ptr %15, align 1, !tbaa !9
  %63 = add i8 %62, 1
  store i8 %63, ptr %15, align 1, !tbaa !9
  br label %54, !llvm.loop !10

64:                                               ; preds = %54
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %65, ptr noundef %66, ptr noundef %67)
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %68, ptr noundef %69)
  store i8 1, ptr %15, align 1, !tbaa !9
  br label %70

70:                                               ; preds = %77, %64
  %71 = load i8, ptr %15, align 1, !tbaa !9
  %72 = zext i8 %71 to i32
  %73 = icmp slt i32 %72, 20
  br i1 %73, label %74, label %80

74:                                               ; preds = %70
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %75, ptr noundef %76)
  br label %77

77:                                               ; preds = %74
  %78 = load i8, ptr %15, align 1, !tbaa !9
  %79 = add i8 %78, 1
  store i8 %79, ptr %15, align 1, !tbaa !9
  br label %70, !llvm.loop !12

80:                                               ; preds = %70
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %81, ptr noundef %82, ptr noundef %83)
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %84, ptr noundef %85)
  store i8 1, ptr %15, align 1, !tbaa !9
  br label %86

86:                                               ; preds = %93, %80
  %87 = load i8, ptr %15, align 1, !tbaa !9
  %88 = zext i8 %87 to i32
  %89 = icmp slt i32 %88, 10
  br i1 %89, label %90, label %96

90:                                               ; preds = %86
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %91, ptr noundef %92)
  br label %93

93:                                               ; preds = %90
  %94 = load i8, ptr %15, align 1, !tbaa !9
  %95 = add i8 %94, 1
  store i8 %95, ptr %15, align 1, !tbaa !9
  br label %86, !llvm.loop !13

96:                                               ; preds = %86
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %97, ptr noundef %98, ptr noundef %99)
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %100, ptr noundef %101)
  store i8 1, ptr %15, align 1, !tbaa !9
  br label %102

102:                                              ; preds = %109, %96
  %103 = load i8, ptr %15, align 1, !tbaa !9
  %104 = zext i8 %103 to i32
  %105 = icmp slt i32 %104, 50
  br i1 %105, label %106, label %112

106:                                              ; preds = %102
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %107, ptr noundef %108)
  br label %109

109:                                              ; preds = %106
  %110 = load i8, ptr %15, align 1, !tbaa !9
  %111 = add i8 %110, 1
  store i8 %111, ptr %15, align 1, !tbaa !9
  br label %102, !llvm.loop !14

112:                                              ; preds = %102
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %113, ptr noundef %114, ptr noundef %115)
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %116, ptr noundef %117)
  store i8 1, ptr %15, align 1, !tbaa !9
  br label %118

118:                                              ; preds = %125, %112
  %119 = load i8, ptr %15, align 1, !tbaa !9
  %120 = zext i8 %119 to i32
  %121 = icmp slt i32 %120, 100
  br i1 %121, label %122, label %128

122:                                              ; preds = %118
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %123, ptr noundef %124)
  br label %125

125:                                              ; preds = %122
  %126 = load i8, ptr %15, align 1, !tbaa !9
  %127 = add i8 %126, 1
  store i8 %127, ptr %15, align 1, !tbaa !9
  br label %118, !llvm.loop !15

128:                                              ; preds = %118
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %129, ptr noundef %130, ptr noundef %131)
  store i8 0, ptr %15, align 1, !tbaa !9
  br label %132

132:                                              ; preds = %139, %128
  %133 = load i8, ptr %15, align 1, !tbaa !9
  %134 = zext i8 %133 to i32
  %135 = icmp slt i32 %134, 50
  br i1 %135, label %136, label %142

136:                                              ; preds = %132
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %137, ptr noundef %138)
  br label %139

139:                                              ; preds = %136
  %140 = load i8, ptr %15, align 1, !tbaa !9
  %141 = add i8 %140, 1
  store i8 %141, ptr %15, align 1, !tbaa !9
  br label %132, !llvm.loop !16

142:                                              ; preds = %132
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %143, ptr noundef %144, ptr noundef %145)
  store i8 0, ptr %15, align 1, !tbaa !9
  br label %146

146:                                              ; preds = %153, %142
  %147 = load i8, ptr %15, align 1, !tbaa !9
  %148 = zext i8 %147 to i32
  %149 = icmp slt i32 %148, 5
  br i1 %149, label %150, label %156

150:                                              ; preds = %146
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  call void @fe25519_square_asm(ptr noundef %151, ptr noundef %152)
  br label %153

153:                                              ; preds = %150
  %154 = load i8, ptr %15, align 1, !tbaa !9
  %155 = add i8 %154, 1
  store i8 %155, ptr %15, align 1, !tbaa !9
  br label %146, !llvm.loop !17

156:                                              ; preds = %146
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  call void @fe25519_mul_asm(ptr noundef %157, ptr noundef %158, ptr noundef %159)
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  ret void
}

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

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

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

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


; 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_useProvidedScratchBuffers(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  tail call void @fe25519_square_asm(ptr noundef %4, ptr noundef %1) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %4) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_mul_asm(ptr noundef %3, ptr noundef %2, ptr noundef %1) #2
  tail call void @fe25519_mul_asm(ptr noundef %0, ptr noundef %3, ptr noundef %4) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %0) #2
  tail call void @fe25519_mul_asm(ptr noundef %3, ptr noundef %2, ptr noundef %3) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %3) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_mul_asm(ptr noundef %3, ptr noundef %2, ptr noundef %3) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %3) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_mul_asm(ptr noundef %4, ptr noundef %2, ptr noundef %3) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %4) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_mul_asm(ptr noundef %2, ptr noundef %2, ptr noundef %4) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_mul_asm(ptr noundef %4, ptr noundef %2, ptr noundef %3) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %4) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_mul_asm(ptr noundef %3, ptr noundef %2, ptr noundef %4) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %3) #2
  br label %6

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

8:                                                ; preds = %6
  tail call void @fe25519_mul_asm(ptr noundef %2, ptr noundef %2, ptr noundef %3) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_mul_asm(ptr noundef %2, ptr noundef %2, ptr noundef %4) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_square_asm(ptr noundef %2, ptr noundef %2) #2
  tail call void @fe25519_mul_asm(ptr noundef %0, ptr noundef %2, ptr noundef %0) #2
  ret void
}

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

declare void @fe25519_mul_asm(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #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 = { "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 }

!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: CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass