; LLVM IR from square/subzero :: core/trezor-crypto/ed25519-donna (ed25519-donna-impl-base)

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

%struct.ge25519_t = type { [10 x i32], [10 x i32], [10 x i32], [10 x i32] }

@fe_ma2 = external hidden constant [10 x i32], align 16
@fe_ma = external hidden constant [10 x i32], align 16
@fe_fffb1 = external hidden constant [10 x i32], align 16
@fe_fffb2 = external hidden constant [10 x i32], align 16
@fe_sqrtm1 = external hidden constant [10 x i32], align 16
@.str = external hidden unnamed_addr constant [59 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [107 x i8], align 1
@__PRETTY_FUNCTION__.ge25519_fromfe_frombytes_vartime = external hidden unnamed_addr constant [72 x i8], align 1
@fe_fffb3 = external hidden constant [10 x i32], align 16
@fe_fffb4 = external hidden constant [10 x i32], align 16
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@fe_d = external hidden constant [10 x i32], align 16
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1

; 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

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

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

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

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

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

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

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

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

declare i32 @curve25519_isnonzero(ptr noundef) #1

declare void @curve25519_set(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @ge25519_fromfe_frombytes_vartime(ptr noundef %0, ptr noundef %1) #3 {
  %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 [10 x i32], align 16
  %10 = alloca [10 x i32], align 16
  %11 = alloca i8, align 1
  %12 = alloca [10 x i32], align 16
  %13 = alloca [10 x i32], align 16
  %14 = alloca [10 x i32], align 16
  %15 = alloca [10 x i32], align 16
  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) #5
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #5
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #5
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #5
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #5
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #5
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %16 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void @curve25519_expand_reduce(ptr noundef %16, ptr noundef %17)
  %18 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %19 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @curve25519_square(ptr noundef %18, ptr noundef %19)
  %20 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %21 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  %22 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @curve25519_add_reduce(ptr noundef %20, ptr noundef %21, ptr noundef %22)
  %23 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  call void @curve25519_set(ptr noundef %23, i32 noundef 1)
  %24 = getelementptr inbounds [10 x i32], ptr %7, 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 @curve25519_add_reduce(ptr noundef %24, ptr noundef %25, ptr noundef %26)
  %27 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  %28 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  call void @curve25519_square(ptr noundef %27, ptr noundef %28)
  %29 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %30 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %29, ptr noundef @fe_ma2, ptr noundef %30)
  %31 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  %32 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  %33 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  call void @curve25519_add_reduce(ptr noundef %31, ptr noundef %32, ptr noundef %33)
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ge25519_t, ptr %34, i32 0, i32 0
  %36 = getelementptr inbounds [10 x i32], ptr %35, i64 0, i64 0
  %37 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %38 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  call void @curve25519_divpowm1(ptr noundef %36, ptr noundef %37, ptr noundef %38)
  %39 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ge25519_t, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds [10 x i32], ptr %41, i64 0, i64 0
  call void @curve25519_square(ptr noundef %39, ptr noundef %42)
  %43 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  %44 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %45 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %43, ptr noundef %44, ptr noundef %45)
  %46 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %47 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %48 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  call void @curve25519_sub_reduce(ptr noundef %46, ptr noundef %47, ptr noundef %48)
  %49 = getelementptr inbounds [10 x i32], ptr %10, i64 0, i64 0
  call void @curve25519_copy(ptr noundef %49, ptr noundef @fe_ma)
  %50 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %51 = call i32 @curve25519_isnonzero(ptr noundef %50)
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %69

53:                                               ; preds = %2
  %54 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %55 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %56 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  call void @curve25519_add_reduce(ptr noundef %54, ptr noundef %55, ptr noundef %56)
  %57 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %58 = call i32 @curve25519_isnonzero(ptr noundef %57)
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %61

60:                                               ; preds = %53
  br label %87

61:                                               ; preds = %53
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ge25519_t, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds [10 x i32], ptr %63, i64 0, i64 0
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ge25519_t, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds [10 x i32], ptr %66, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %64, ptr noundef %67, ptr noundef @fe_fffb1)
  br label %68

68:                                               ; preds = %61
  br label %76

69:                                               ; preds = %2
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ge25519_t, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds [10 x i32], ptr %71, i64 0, i64 0
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ge25519_t, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds [10 x i32], ptr %74, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %72, ptr noundef %75, ptr noundef @fe_fffb2)
  br label %76

76:                                               ; preds = %69, %68
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ge25519_t, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds [10 x i32], ptr %78, i64 0, i64 0
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ge25519_t, ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds [10 x i32], ptr %81, i64 0, i64 0
  %83 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %79, ptr noundef %82, ptr noundef %83)
  %84 = getelementptr inbounds [10 x i32], ptr %10, i64 0, i64 0
  %85 = getelementptr inbounds [10 x i32], ptr %10, i64 0, i64 0
  %86 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %84, ptr noundef %85, ptr noundef %86)
  store i8 0, ptr %11, align 1, !tbaa !9
  br label %121

87:                                               ; preds = %60
  %88 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  %89 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %88, ptr noundef %89, ptr noundef @fe_sqrtm1)
  %90 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %91 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %92 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  call void @curve25519_sub_reduce(ptr noundef %90, ptr noundef %91, ptr noundef %92)
  %93 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %94 = call i32 @curve25519_isnonzero(ptr noundef %93)
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %113

96:                                               ; preds = %87
  %97 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %98 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %99 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  call void @curve25519_add_reduce(ptr noundef %97, ptr noundef %98, ptr noundef %99)
  %100 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 0
  %101 = call i32 @curve25519_isnonzero(ptr noundef %100)
  %102 = icmp ne i32 %101, 0
  %103 = xor i1 %102, true
  br i1 %103, label %104, label %105

104:                                              ; preds = %96
  br label %106

105:                                              ; preds = %96
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 674, ptr noundef @__PRETTY_FUNCTION__.ge25519_fromfe_frombytes_vartime) #6
  unreachable

106:                                              ; preds = %104
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.ge25519_t, ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds [10 x i32], ptr %108, i64 0, i64 0
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.ge25519_t, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds [10 x i32], ptr %111, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %109, ptr noundef %112, ptr noundef @fe_fffb3)
  br label %120

113:                                              ; preds = %87
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ge25519_t, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds [10 x i32], ptr %115, i64 0, i64 0
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ge25519_t, ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds [10 x i32], ptr %118, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %116, ptr noundef %119, ptr noundef @fe_fffb4)
  br label %120

120:                                              ; preds = %113, %106
  store i8 1, ptr %11, align 1, !tbaa !9
  br label %121

121:                                              ; preds = %120, %76
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ge25519_t, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds [10 x i32], ptr %123, i64 0, i64 0
  %125 = call i32 @curve25519_isnegative(ptr noundef %124)
  %126 = load i8, ptr %11, align 1, !tbaa !9
  %127 = zext i8 %126 to i32
  %128 = icmp ne i32 %125, %127
  br i1 %128, label %129, label %144

129:                                              ; preds = %121
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ge25519_t, ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds [10 x i32], ptr %131, i64 0, i64 0
  %133 = call i32 @curve25519_isnonzero(ptr noundef %132)
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %136

135:                                              ; preds = %129
  br label %137

136:                                              ; preds = %129
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 684, ptr noundef @__PRETTY_FUNCTION__.ge25519_fromfe_frombytes_vartime) #6
  unreachable

137:                                              ; preds = %135
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.ge25519_t, ptr %138, i32 0, i32 0
  %140 = getelementptr inbounds [10 x i32], ptr %139, i64 0, i64 0
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.ge25519_t, ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds [10 x i32], ptr %142, i64 0, i64 0
  call void @curve25519_neg(ptr noundef %140, ptr noundef %143)
  br label %144

144:                                              ; preds = %137, %121
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ge25519_t, ptr %145, i32 0, i32 2
  %147 = getelementptr inbounds [10 x i32], ptr %146, i64 0, i64 0
  %148 = getelementptr inbounds [10 x i32], ptr %10, i64 0, i64 0
  %149 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  call void @curve25519_add_reduce(ptr noundef %147, ptr noundef %148, ptr noundef %149)
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ge25519_t, ptr %150, i32 0, i32 1
  %152 = getelementptr inbounds [10 x i32], ptr %151, i64 0, i64 0
  %153 = getelementptr inbounds [10 x i32], ptr %10, i64 0, i64 0
  %154 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  call void @curve25519_sub_reduce(ptr noundef %152, ptr noundef %153, ptr noundef %154)
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ge25519_t, ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds [10 x i32], ptr %156, i64 0, i64 0
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.ge25519_t, ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds [10 x i32], ptr %159, i64 0, i64 0
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.ge25519_t, ptr %161, i32 0, i32 2
  %163 = getelementptr inbounds [10 x i32], ptr %162, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %157, ptr noundef %160, ptr noundef %163)
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #5
  call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #5
  call void @llvm.memset.p0.i64(ptr align 16 %13, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #5
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #5
  call void @llvm.memset.p0.i64(ptr align 16 %15, i8 0, i64 40, i1 false)
  %164 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 0
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.ge25519_t, ptr %165, i32 0, i32 2
  %167 = getelementptr inbounds [10 x i32], ptr %166, i64 0, i64 0
  call void @curve25519_recip(ptr noundef %164, ptr noundef %167)
  %168 = getelementptr inbounds [10 x i32], ptr %12, i64 0, i64 0
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ge25519_t, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds [10 x i32], ptr %170, i64 0, i64 0
  %172 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %168, ptr noundef %171, ptr noundef %172)
  %173 = getelementptr inbounds [10 x i32], ptr %13, i64 0, i64 0
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ge25519_t, ptr %174, i32 0, i32 1
  %176 = getelementptr inbounds [10 x i32], ptr %175, i64 0, i64 0
  %177 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %173, ptr noundef %176, ptr noundef %177)
  %178 = getelementptr inbounds [10 x i32], ptr %12, i64 0, i64 0
  %179 = getelementptr inbounds [10 x i32], ptr %12, i64 0, i64 0
  call void @curve25519_square(ptr noundef %178, ptr noundef %179)
  %180 = getelementptr inbounds [10 x i32], ptr %13, i64 0, i64 0
  %181 = getelementptr inbounds [10 x i32], ptr %13, i64 0, i64 0
  call void @curve25519_square(ptr noundef %180, ptr noundef %181)
  %182 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  %183 = getelementptr inbounds [10 x i32], ptr %12, i64 0, i64 0
  %184 = getelementptr inbounds [10 x i32], ptr %13, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %182, ptr noundef %183, ptr noundef %184)
  %185 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  %186 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  call void @curve25519_mul(ptr noundef %185, ptr noundef @fe_d, ptr noundef %186)
  %187 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  %188 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  %189 = getelementptr inbounds [10 x i32], ptr %12, i64 0, i64 0
  call void @curve25519_add_reduce(ptr noundef %187, ptr noundef %188, ptr noundef %189)
  %190 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  %191 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  %192 = getelementptr inbounds [10 x i32], ptr %13, i64 0, i64 0
  call void @curve25519_sub_reduce(ptr noundef %190, ptr noundef %191, ptr noundef %192)
  %193 = getelementptr inbounds [10 x i32], ptr %12, i64 0, i64 0
  call void @curve25519_set(ptr noundef %193, i32 noundef 1)
  %194 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  %195 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  %196 = getelementptr inbounds [10 x i32], ptr %12, i64 0, i64 0
  call void @curve25519_add_reduce(ptr noundef %194, ptr noundef %195, ptr noundef %196)
  %197 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  %198 = call i32 @curve25519_isnonzero(ptr noundef %197)
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %201, label %200

200:                                              ; preds = %144
  br label %202

201:                                              ; preds = %144
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 712, ptr noundef @__PRETTY_FUNCTION__.ge25519_fromfe_frombytes_vartime) #6
  unreachable

202:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #5
  ret void
}

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

declare i32 @curve25519_isnegative(ptr noundef) #1

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { noreturn nounwind "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 #5 = { nounwind }
attributes #6 = { noreturn 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}


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

@fe_ma2 = external hidden constant [10 x i32], align 16
@fe_ma = external hidden constant [10 x i32], align 16
@fe_fffb1 = external hidden constant [10 x i32], align 16
@fe_fffb2 = external hidden constant [10 x i32], align 16
@fe_sqrtm1 = external hidden constant [10 x i32], align 16
@.str = external hidden unnamed_addr constant [59 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [107 x i8], align 1
@__PRETTY_FUNCTION__.ge25519_fromfe_frombytes_vartime = external hidden unnamed_addr constant [72 x i8], align 1
@fe_fffb3 = external hidden constant [10 x i32], align 16
@fe_fffb4 = external hidden constant [10 x i32], align 16
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@fe_d = external hidden constant [10 x i32], align 16
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

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

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

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

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

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

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

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

declare i32 @curve25519_isnonzero(ptr noundef) local_unnamed_addr #1

declare void @curve25519_set(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @ge25519_fromfe_frombytes_vartime(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %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
  %7 = alloca [10 x i32], align 16
  %8 = alloca [10 x i32], align 16
  %9 = alloca [10 x i32], align 16
  %10 = alloca [10 x i32], align 16
  %11 = alloca [10 x i32], align 16
  %12 = alloca [10 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %3, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %4, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %5, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %6, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %7, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %8, i8 0, i64 40, i1 false)
  call void @curve25519_expand_reduce(ptr noundef nonnull %3, ptr noundef %1) #5
  call void @curve25519_square(ptr noundef nonnull %4, ptr noundef nonnull %3) #5
  call void @curve25519_add_reduce(ptr noundef nonnull %4, ptr noundef nonnull %4, ptr noundef nonnull %4) #5
  call void @curve25519_set(ptr noundef nonnull %5, i32 noundef 1) #5
  call void @curve25519_add_reduce(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %5) #5
  call void @curve25519_square(ptr noundef nonnull %6, ptr noundef nonnull %5) #5
  call void @curve25519_mul(ptr noundef nonnull %7, ptr noundef nonnull @fe_ma2, ptr noundef nonnull %4) #5
  call void @curve25519_add_reduce(ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef nonnull %7) #5
  call void @curve25519_divpowm1(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  call void @curve25519_square(ptr noundef nonnull %7, ptr noundef %0) #5
  call void @curve25519_mul(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %6) #5
  call void @curve25519_sub_reduce(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  call void @curve25519_copy(ptr noundef nonnull %8, ptr noundef nonnull @fe_ma) #5
  %13 = call i32 @curve25519_isnonzero(ptr noundef nonnull %7) #5
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %16, label %14

14:                                               ; preds = %2
  call void @curve25519_add_reduce(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  %15 = call i32 @curve25519_isnonzero(ptr noundef nonnull %7) #5
  %.not25 = icmp eq i32 %15, 0
  br i1 %.not25, label %16, label %17

16:                                               ; preds = %2, %14
  %fe_fffb2.sink = phi ptr [ @fe_fffb1, %14 ], [ @fe_fffb2, %2 ]
  call void @curve25519_mul(ptr noundef %0, ptr noundef %0, ptr noundef nonnull %fe_fffb2.sink) #5
  call void @curve25519_mul(ptr noundef %0, ptr noundef %0, ptr noundef nonnull %3) #5
  call void @curve25519_mul(ptr noundef nonnull %8, ptr noundef nonnull %8, ptr noundef nonnull %4) #5
  br label %24

17:                                               ; preds = %14
  call void @curve25519_mul(ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef nonnull @fe_sqrtm1) #5
  call void @curve25519_sub_reduce(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  %18 = call i32 @curve25519_isnonzero(ptr noundef nonnull %7) #5
  %.not26 = icmp eq i32 %18, 0
  br i1 %.not26, label %23, label %19

19:                                               ; preds = %17
  call void @curve25519_add_reduce(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  %20 = call i32 @curve25519_isnonzero(ptr noundef nonnull %7) #5
  %.not27 = icmp eq i32 %20, 0
  br i1 %.not27, label %22, label %21

21:                                               ; preds = %19
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 674, ptr noundef nonnull @__PRETTY_FUNCTION__.ge25519_fromfe_frombytes_vartime) #6
  unreachable

22:                                               ; preds = %19
  call void @curve25519_mul(ptr noundef %0, ptr noundef %0, ptr noundef nonnull @fe_fffb3) #5
  br label %24

23:                                               ; preds = %17
  call void @curve25519_mul(ptr noundef %0, ptr noundef %0, ptr noundef nonnull @fe_fffb4) #5
  br label %24

24:                                               ; preds = %22, %23, %16
  %.0 = phi i32 [ 0, %16 ], [ 1, %23 ], [ 1, %22 ]
  %25 = call i32 @curve25519_isnegative(ptr noundef %0) #5
  %.not28 = icmp eq i32 %25, %.0
  br i1 %.not28, label %30, label %26

26:                                               ; preds = %24
  %27 = call i32 @curve25519_isnonzero(ptr noundef %0) #5
  %.not29 = icmp eq i32 %27, 0
  br i1 %.not29, label %28, label %29

28:                                               ; preds = %26
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 684, ptr noundef nonnull @__PRETTY_FUNCTION__.ge25519_fromfe_frombytes_vartime) #6
  unreachable

29:                                               ; preds = %26
  call void @curve25519_neg(ptr noundef %0, ptr noundef %0) #5
  br label %30

30:                                               ; preds = %29, %24
  %31 = getelementptr inbounds i8, ptr %0, i64 80
  call void @curve25519_add_reduce(ptr noundef nonnull %31, ptr noundef nonnull %8, ptr noundef nonnull %5) #5
  %32 = getelementptr inbounds i8, ptr %0, i64 40
  call void @curve25519_sub_reduce(ptr noundef nonnull %32, ptr noundef nonnull %8, ptr noundef nonnull %5) #5
  call void @curve25519_mul(ptr noundef %0, ptr noundef %0, ptr noundef nonnull %31) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %9, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %10, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %11, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %12, i8 0, i64 40, i1 false)
  call void @curve25519_recip(ptr noundef nonnull %11, ptr noundef nonnull %31) #5
  call void @curve25519_mul(ptr noundef nonnull %9, ptr noundef %0, ptr noundef nonnull %11) #5
  call void @curve25519_mul(ptr noundef nonnull %10, ptr noundef nonnull %32, ptr noundef nonnull %11) #5
  call void @curve25519_square(ptr noundef nonnull %9, ptr noundef nonnull %9) #5
  call void @curve25519_square(ptr noundef nonnull %10, ptr noundef nonnull %10) #5
  call void @curve25519_mul(ptr noundef nonnull %12, ptr noundef nonnull %9, ptr noundef nonnull %10) #5
  call void @curve25519_mul(ptr noundef nonnull %12, ptr noundef nonnull @fe_d, ptr noundef nonnull %12) #5
  call void @curve25519_add_reduce(ptr noundef nonnull %12, ptr noundef nonnull %12, ptr noundef nonnull %9) #5
  call void @curve25519_sub_reduce(ptr noundef nonnull %12, ptr noundef nonnull %12, ptr noundef nonnull %10) #5
  call void @curve25519_set(ptr noundef nonnull %9, i32 noundef 1) #5
  call void @curve25519_add_reduce(ptr noundef nonnull %12, ptr noundef nonnull %12, ptr noundef nonnull %9) #5
  %33 = call i32 @curve25519_isnonzero(ptr noundef nonnull %12) #5
  %.not30 = icmp eq i32 %33, 0
  br i1 %.not30, label %35, label %34

34:                                               ; preds = %30
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 712, ptr noundef nonnull @__PRETTY_FUNCTION__.ge25519_fromfe_frombytes_vartime) #6
  unreachable

35:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  ret void
}

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

declare i32 @curve25519_isnegative(ptr noundef) local_unnamed_addr #1

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { noreturn nounwind "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 #5 = { nounwind }
attributes #6 = { noreturn 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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass