; LLVM IR from intel/cryptography-primitives :: sources/ippcp/gfpec (pcpgfpeckeys)

; 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._cpGFpECPoint = type { i32, i32, i32, ptr }
%struct._cpGFpEC = type { i32, i32, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._cpBigNum = type { i32, i32, i32, i32, ptr, ptr }
%struct._cpGFp = type { i32, i32, ptr }
%struct._gsModEngine = type { ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr, i32, i32, ptr }

; Function Attrs: nounwind uwtable
declare dso_local i32 @gfec_CheckPrivateKey(ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpECTstKeyPair(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %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 %struct._cpGFpECPoint, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %13 = load ptr, ptr %8, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %19, label %15

15:                                               ; preds = %5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  store i32 -8, ptr %6, align 4
  br label %151

19:                                               ; preds = %15, %5
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  %21 = icmp eq ptr null, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %19
  store i32 -8, ptr %6, align 4
  br label %151

23:                                               ; preds = %19
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = icmp eq ptr null, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  store i32 -8, ptr %6, align 4
  br label %151

27:                                               ; preds = %23
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct._cpGFpEC, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !9
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = call i64 @IPP_UINT_PTR(ptr noundef %31)
  %33 = trunc i64 %32 to i32
  %34 = xor i32 %30, %33
  %35 = icmp eq i32 %34, 1129136461
  br i1 %35, label %37, label %36

36:                                               ; preds = %27
  store i32 -13, ptr %6, align 4
  br label %151

37:                                               ; preds = %27
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._cpGFpEC, ptr %38, i32 0, i32 3
  %40 = load i32, ptr %39, align 8, !tbaa !12
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  store i32 -13, ptr %6, align 4
  br label %151

43:                                               ; preds = %37
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = icmp eq ptr null, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  store i32 -8, ptr %6, align 4
  br label %151

47:                                               ; preds = %43
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %48, align 4, !tbaa !13
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %69

51:                                               ; preds = %47
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct._cpBigNum, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !14
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = call i64 @IPP_UINT_PTR(ptr noundef %55)
  %57 = trunc i64 %56 to i32
  %58 = xor i32 %54, %57
  %59 = icmp eq i32 %58, 1112098638
  br i1 %59, label %61, label %60

60:                                               ; preds = %51
  store i32 -13, ptr %6, align 4
  br label %151

61:                                               ; preds = %51
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = call i32 @gfec_CheckPrivateKey(ptr noundef %62, ptr noundef %63)
  %65 = icmp eq i32 0, %64
  br i1 %65, label %66, label %68

66:                                               ; preds = %61
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 9, ptr %67, align 4, !tbaa !13
  store i32 0, ptr %6, align 4
  br label %151

68:                                               ; preds = %61
  br label %69

69:                                               ; preds = %68, %47
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %150

72:                                               ; preds = %69
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._cpGFpECPoint, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !16
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = call i64 @IPP_UINT_PTR(ptr noundef %76)
  %78 = trunc i64 %77 to i32
  %79 = xor i32 %75, %78
  %80 = icmp eq i32 %79, 1129136462
  br i1 %80, label %82, label %81

81:                                               ; preds = %72
  store i32 -13, ptr %6, align 4
  br label %151

82:                                               ; preds = %72
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._cpGFpECPoint, ptr %83, i32 0, i32 2
  %85 = load i32, ptr %84, align 8, !tbaa !18
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct._cpGFpEC, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !19
  %89 = getelementptr inbounds %struct._cpGFp, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !20
  %91 = getelementptr inbounds %struct._gsModEngine, ptr %90, i32 0, i32 3
  %92 = load i32, ptr %91, align 8, !tbaa !22
  %93 = icmp slt i32 %85, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %82
  store i32 -7, ptr %6, align 4
  br label %151

95:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = call ptr @cpEcGFpGetPool(i32 noundef 1, ptr noundef %96)
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = call ptr @cpEcGFpInitPoint(ptr noundef %12, ptr noundef %97, i32 noundef 0, ptr noundef %98)
  br label %100

100:                                              ; preds = %95
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = call i32 @gfec_IsPointAtInfinity(ptr noundef %101)
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %106

104:                                              ; preds = %100
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 13, ptr %105, align 4, !tbaa !13
  br label %148

106:                                              ; preds = %100
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._cpGFpEC, ptr %108, i32 0, i32 13
  %110 = load ptr, ptr %109, align 8, !tbaa !25
  %111 = getelementptr inbounds %struct._gsModEngine, ptr %110, i32 0, i32 8
  %112 = load ptr, ptr %111, align 8, !tbaa !26
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct._cpGFpEC, ptr %113, i32 0, i32 5
  %115 = load i32, ptr %114, align 8, !tbaa !27
  %116 = add nsw i32 %115, 64
  %117 = sub nsw i32 %116, 1
  %118 = sdiv i32 %117, 64
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = call ptr @gfec_MulPoint(ptr noundef %12, ptr noundef %107, ptr noundef %112, i32 noundef %118, ptr noundef %119, ptr noundef %120)
  %122 = call i32 @gfec_IsPointAtInfinity(ptr noundef %12)
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %126, label %124

124:                                              ; preds = %106
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 10, ptr %125, align 4, !tbaa !13
  br label %148

126:                                              ; preds = %106
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %146

129:                                              ; preds = %126
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct._cpBigNum, ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !28
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._cpBigNum, ptr %133, i32 0, i32 2
  %135 = load i32, ptr %134, align 8, !tbaa !29
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = call ptr @gfec_MulBasePoint(ptr noundef %12, ptr noundef %132, i32 noundef %135, ptr noundef %136, ptr noundef %137)
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = call i32 @gfec_ComparePoint(ptr noundef %12, ptr noundef %139, ptr noundef %140)
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %145, label %143

143:                                              ; preds = %129
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 11, ptr %144, align 4, !tbaa !13
  br label %145

145:                                              ; preds = %143, %129
  br label %146

146:                                              ; preds = %145, %126
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147, %124, %104
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  call void @cpEcGFpReleasePool(i32 noundef 1, ptr noundef %149)
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  br label %150

150:                                              ; preds = %148, %69
  store i32 0, ptr %6, align 4
  br label %151

151:                                              ; preds = %150, %94, %81, %66, %60, %46, %42, %36, %26, %22, %18
  %152 = load i32, ptr %6, align 4
  ret i32 %152
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_UINT_PTR(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpEcGFpInitPoint(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpEcGFpGetPool(i32 noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @gfec_IsPointAtInfinity(ptr noundef) #2

declare ptr @gfec_MulPoint(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare ptr @gfec_MulBasePoint(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare i32 @gfec_ComparePoint(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cpEcGFpReleasePool(i32 noundef, ptr noundef) #2

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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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, !11, i64 0}
!10 = !{!"_cpGFpEC", !11, i64 0, !11, i64 4, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !11, i64 68, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"_cpBigNum", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24}
!16 = !{!17, !11, i64 0}
!17 = !{!"_cpGFpECPoint", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16}
!18 = !{!17, !11, i64 8}
!19 = !{!10, !6, i64 8}
!20 = !{!21, !6, i64 8}
!21 = !{!"_cpGFp", !11, i64 0, !11, i64 4, !6, i64 8}
!22 = !{!23, !11, i64 16}
!23 = !{!"_gsModEngine", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !24, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !11, i64 100, !6, i64 104}
!24 = !{!"long long", !7, i64 0}
!25 = !{!10, !6, i64 80}
!26 = !{!23, !6, i64 48}
!27 = !{!10, !11, i64 24}
!28 = !{!15, !6, i64 16}
!29 = !{!15, !11, i64 8}


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

%struct._cpGFpECPoint = type { i32, i32, i32, ptr }

; Function Attrs: nounwind uwtable
declare dso_local i32 @gfec_CheckPrivateKey(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -13, 1) i32 @ippsGFpECTstKeyPair(ptr noundef %0, ptr noundef %1, ptr noundef writeonly %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca %struct._cpGFpECPoint, align 8
  %7 = icmp eq ptr %1, null
  %8 = icmp eq ptr %0, null
  %or.cond.not52 = and i1 %8, %7
  %9 = icmp eq ptr %3, null
  %or.cond48 = or i1 %or.cond.not52, %9
  %10 = icmp eq ptr %4, null
  %or.cond49 = or i1 %or.cond48, %10
  br i1 %or.cond49, label %74, label %11

11:                                               ; preds = %5
  %12 = load i32, ptr %3, align 8, !tbaa !5
  %13 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %3)
  %14 = trunc i64 %13 to i32
  %15 = xor i32 %12, %14
  %16 = icmp eq i32 %15, 1129136461
  br i1 %16, label %17, label %74

17:                                               ; preds = %11
  %18 = getelementptr inbounds i8, ptr %3, i64 16
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %74, label %20

20:                                               ; preds = %17
  %21 = icmp eq ptr %2, null
  br i1 %21, label %74, label %22

22:                                               ; preds = %20
  store i32 0, ptr %2, align 4, !tbaa !12
  br i1 %8, label %33, label %23

23:                                               ; preds = %22
  %24 = load i32, ptr %0, align 8, !tbaa !13
  %25 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %0)
  %26 = trunc i64 %25 to i32
  %27 = xor i32 %24, %26
  %28 = icmp eq i32 %27, 1112098638
  br i1 %28, label %29, label %74

29:                                               ; preds = %23
  %30 = tail call i32 @gfec_CheckPrivateKey(ptr noundef nonnull %0, ptr noundef nonnull %3)
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  store i32 9, ptr %2, align 4, !tbaa !12
  br label %74

33:                                               ; preds = %29, %22
  br i1 %7, label %74, label %34

34:                                               ; preds = %33
  %35 = load i32, ptr %1, align 8, !tbaa !15
  %36 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %1)
  %37 = trunc i64 %36 to i32
  %38 = xor i32 %35, %37
  %39 = icmp eq i32 %38, 1129136462
  br i1 %39, label %40, label %74

40:                                               ; preds = %34
  %41 = getelementptr inbounds i8, ptr %1, i64 8
  %42 = load i32, ptr %41, align 8, !tbaa !17
  %43 = getelementptr inbounds i8, ptr %3, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %48 = load i32, ptr %47, align 8, !tbaa !21
  %49 = icmp slt i32 %42, %48
  br i1 %49, label %74, label %50

50:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  %51 = tail call ptr @cpEcGFpGetPool(i32 noundef 1, ptr noundef nonnull %3)
  %52 = call ptr @cpEcGFpInitPoint(ptr noundef nonnull %6, ptr noundef %51, i32 noundef 0, ptr noundef nonnull %3)
  %53 = call i32 @gfec_IsPointAtInfinity(ptr noundef nonnull %1)
  %.not45 = icmp eq i32 %53, 0
  br i1 %.not45, label %54, label %.sink.split

54:                                               ; preds = %50
  %55 = getelementptr inbounds i8, ptr %3, i64 80
  %56 = load ptr, ptr %55, align 8, !tbaa !24
  %57 = getelementptr inbounds i8, ptr %56, i64 48
  %58 = load ptr, ptr %57, align 8, !tbaa !25
  %59 = getelementptr inbounds i8, ptr %3, i64 24
  %60 = load i32, ptr %59, align 8, !tbaa !26
  %61 = add nsw i32 %60, 63
  %62 = sdiv i32 %61, 64
  %63 = call ptr @gfec_MulPoint(ptr noundef nonnull %6, ptr noundef nonnull %1, ptr noundef %58, i32 noundef %62, ptr noundef nonnull %3, ptr noundef nonnull %4) #4
  %64 = call i32 @gfec_IsPointAtInfinity(ptr noundef nonnull %6)
  %.not46 = icmp eq i32 %64, 0
  br i1 %.not46, label %.sink.split, label %65

65:                                               ; preds = %54
  br i1 %8, label %73, label %66

66:                                               ; preds = %65
  %67 = getelementptr inbounds i8, ptr %0, i64 16
  %68 = load ptr, ptr %67, align 8, !tbaa !27
  %69 = getelementptr inbounds i8, ptr %0, i64 8
  %70 = load i32, ptr %69, align 8, !tbaa !28
  %71 = call ptr @gfec_MulBasePoint(ptr noundef nonnull %6, ptr noundef %68, i32 noundef %70, ptr noundef nonnull %3, ptr noundef nonnull %4) #4
  %72 = call i32 @gfec_ComparePoint(ptr noundef nonnull %6, ptr noundef nonnull %1, ptr noundef nonnull %3) #4
  %.not47 = icmp eq i32 %72, 0
  br i1 %.not47, label %.sink.split, label %73

.sink.split:                                      ; preds = %66, %54, %50
  %.sink = phi i32 [ 13, %50 ], [ 10, %54 ], [ 11, %66 ]
  store i32 %.sink, ptr %2, align 4, !tbaa !12
  br label %73

73:                                               ; preds = %.sink.split, %66, %65
  call void @cpEcGFpReleasePool(i32 noundef 1, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  br label %74

74:                                               ; preds = %33, %73, %40, %34, %23, %20, %17, %11, %5, %32
  %.0 = phi i32 [ 0, %32 ], [ -8, %5 ], [ -13, %11 ], [ -13, %17 ], [ -8, %20 ], [ -13, %23 ], [ -13, %34 ], [ -7, %40 ], [ 0, %73 ], [ 0, %33 ]
  ret i32 %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_UINT_PTR(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpEcGFpInitPoint(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpEcGFpGetPool(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @gfec_IsPointAtInfinity(ptr noundef) local_unnamed_addr #2

declare ptr @gfec_MulPoint(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @gfec_MulBasePoint(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @gfec_ComparePoint(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cpEcGFpReleasePool(i32 noundef, ptr noundef) local_unnamed_addr #2

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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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, !7, i64 0}
!6 = !{!"_cpGFpEC", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !7, i64 68, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_cpBigNum", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24}
!15 = !{!16, !7, i64 0}
!16 = !{!"_cpGFpECPoint", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!17 = !{!16, !7, i64 8}
!18 = !{!6, !10, i64 8}
!19 = !{!20, !10, i64 8}
!20 = !{!"_cpGFp", !7, i64 0, !7, i64 4, !10, i64 8}
!21 = !{!22, !7, i64 16}
!22 = !{!"_gsModEngine", !10, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !23, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !7, i64 96, !7, i64 100, !10, i64 104}
!23 = !{!"long long", !8, i64 0}
!24 = !{!6, !10, i64 80}
!25 = !{!22, !10, i64 48}
!26 = !{!6, !7, i64 24}
!27 = !{!14, !10, i64 16}
!28 = !{!14, !7, i64 8}


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