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

; 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._cpHashCtx_rmf = type { i32, ptr, i32, [128 x i8], i64, i64, [8 x i64] }
%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 }
%struct._cpGFpECPoint = type { i32, i32, i32, ptr }

@ippsGFpECMessageRepresentationSM2.ctx = external hidden global %struct._cpHashCtx_rmf, align 8

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

25:                                               ; preds = %8
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

26:                                               ; preds = %8
  %27 = load ptr, ptr %17, align 8, !tbaa !5
  %28 = icmp eq ptr null, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

30:                                               ; preds = %26
  %31 = load ptr, ptr %16, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._cpGFpEC, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = load ptr, ptr %16, align 8, !tbaa !5
  %35 = call i64 @IPP_UINT_PTR(ptr noundef %34)
  %36 = trunc i64 %35 to i32
  %37 = xor i32 %33, %36
  %38 = icmp eq i32 %37, 1129136461
  br i1 %38, label %40, label %39

39:                                               ; preds = %30
  store i32 -13, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

40:                                               ; preds = %30
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._cpGFpEC, ptr %41, i32 0, i32 3
  %43 = load i32, ptr %42, align 8, !tbaa !13
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %40
  store i32 -13, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

46:                                               ; preds = %40
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = icmp eq ptr null, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

50:                                               ; preds = %46
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  store i32 -11, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

54:                                               ; preds = %50
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = icmp eq ptr null, %55
  br i1 %56, label %57, label %58

57:                                               ; preds = %54
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

58:                                               ; preds = %54
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._cpBigNum, ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 8, !tbaa !14
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = call i64 @IPP_UINT_PTR(ptr noundef %62)
  %64 = trunc i64 %63 to i32
  %65 = xor i32 %61, %64
  %66 = icmp eq i32 %65, 1112098638
  br i1 %66, label %68, label %67

67:                                               ; preds = %58
  store i32 -13, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

68:                                               ; preds = %58
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = call i32 @cpBN_bitsize(ptr noundef %69)
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._cpGFpEC, ptr %71, i32 0, i32 5
  %73 = load i32, ptr %72, align 8, !tbaa !16
  %74 = icmp sle i32 %70, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %68
  store i32 -1010, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

76:                                               ; preds = %68
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = icmp eq ptr null, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %76
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

80:                                               ; preds = %76
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  store i32 -11, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

84:                                               ; preds = %80
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._cpGFpEC, ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  store ptr %87, ptr %18, align 8, !tbaa !5
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._cpGFp, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  store ptr %90, ptr %19, align 8, !tbaa !5
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._gsModEngine, ptr %91, i32 0, i32 1
  %93 = load i32, ptr %92, align 8, !tbaa !20
  %94 = icmp slt i32 1, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %84
  store i32 -14, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

96:                                               ; preds = %84
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = icmp eq ptr null, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %96
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

100:                                              ; preds = %96
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct._cpGFpECPoint, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !23
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = call i64 @IPP_UINT_PTR(ptr noundef %104)
  %106 = trunc i64 %105 to i32
  %107 = xor i32 %103, %106
  %108 = icmp eq i32 %107, 1129136462
  br i1 %108, label %110, label %109

109:                                              ; preds = %100
  store i32 -13, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

110:                                              ; preds = %100
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct._cpGFpECPoint, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 8, !tbaa !25
  %114 = load ptr, ptr %19, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct._gsModEngine, ptr %114, i32 0, i32 3
  %116 = load i32, ptr %115, align 8, !tbaa !26
  %117 = icmp ne i32 %113, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %110
  store i32 -11, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %147

119:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %120 = getelementptr inbounds [32 x i8], ptr %21, i64 0, i64 0
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = load ptr, ptr %16, align 8, !tbaa !5
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = call i32 @ippsGFpECUserIDHashSM2(ptr noundef %120, ptr noundef %121, i32 noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %125)
  store i32 %126, ptr %22, align 4, !tbaa !9
  %127 = load i32, ptr %22, align 4, !tbaa !9
  %128 = icmp ne i32 0, %127
  br i1 %128, label %129, label %131

129:                                              ; preds = %119
  %130 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %130, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %146

131:                                              ; preds = %119
  %132 = call ptr @ippsHashMethod_SM3_TT()
  %133 = call i32 @ippsHashInit_rmf(ptr noundef @ippsGFpECMessageRepresentationSM2.ctx, ptr noundef %132)
  %134 = getelementptr inbounds [32 x i8], ptr %21, i64 0, i64 0
  %135 = call i32 @ippsHashUpdate_rmf(ptr noundef %134, i32 noundef 32, ptr noundef @ippsGFpECMessageRepresentationSM2.ctx)
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = call i32 @ippsHashUpdate_rmf(ptr noundef %136, i32 noundef %137, ptr noundef @ippsGFpECMessageRepresentationSM2.ctx)
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct._cpBigNum, ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !27
  %142 = call i32 @ippsHashFinal_rmf(ptr noundef %141, ptr noundef @ippsGFpECMessageRepresentationSM2.ctx)
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct._cpBigNum, ptr %143, i32 0, i32 1
  store i32 1, ptr %144, align 4, !tbaa !28
  %145 = getelementptr inbounds [32 x i8], ptr %21, i64 0, i64 0
  call void @PurgeBlock(ptr noundef %145, i32 noundef 32)
  store i32 0, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %146

146:                                              ; preds = %131, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #4
  br label %147

147:                                              ; preds = %146, %118, %109, %99, %95, %83, %79, %75, %67, %57, %53, %49, %45, %39, %29, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  %148 = load i32, ptr %9, align 4
  ret i32 %148
}

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

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

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

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

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

declare ptr @ippsHashMethod_SM3_TT() #3

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @PurgeBlock(ptr noundef, i32 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 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_cpGFpEC", !10, i64 0, !10, i64 4, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !10, 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}
!13 = !{!12, !10, i64 16}
!14 = !{!15, !10, i64 0}
!15 = !{!"_cpBigNum", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!16 = !{!12, !10, i64 24}
!17 = !{!12, !6, i64 8}
!18 = !{!19, !6, i64 8}
!19 = !{!"_cpGFp", !10, i64 0, !10, i64 4, !6, i64 8}
!20 = !{!21, !10, i64 8}
!21 = !{!"_gsModEngine", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !22, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !6, i64 104}
!22 = !{!"long long", !7, i64 0}
!23 = !{!24, !10, i64 0}
!24 = !{!"_cpGFpECPoint", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16}
!25 = !{!24, !10, i64 8}
!26 = !{!21, !10, i64 16}
!27 = !{!15, !6, i64 16}
!28 = !{!15, !10, i64 4}


; 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._cpHashCtx_rmf = type { i32, ptr, i32, [128 x i8], i64, i64, [8 x i64] }

@ippsGFpECMessageRepresentationSM2.ctx = external hidden global %struct._cpHashCtx_rmf, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpECMessageRepresentationSM2(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = alloca [32 x i8], align 16
  %10 = icmp eq ptr %6, null
  %11 = icmp eq ptr %7, null
  %or.cond = or i1 %10, %11
  br i1 %or.cond, label %74, label %12

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

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

21:                                               ; preds = %18
  %22 = icmp eq ptr %1, null
  br i1 %22, label %74, label %23

23:                                               ; preds = %21
  %24 = icmp sgt i32 %2, 0
  br i1 %24, label %25, label %74

25:                                               ; preds = %23
  %26 = icmp eq ptr %0, null
  br i1 %26, label %74, label %27

27:                                               ; preds = %25
  %28 = load i32, ptr %0, align 8, !tbaa !12
  %29 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %0)
  %30 = trunc i64 %29 to i32
  %31 = xor i32 %28, %30
  %32 = icmp eq i32 %31, 1112098638
  br i1 %32, label %33, label %74

33:                                               ; preds = %27
  %34 = tail call i32 @cpBN_bitsize(ptr noundef nonnull %0)
  %35 = getelementptr inbounds i8, ptr %6, i64 24
  %36 = load i32, ptr %35, align 8, !tbaa !14
  %.not42 = icmp sgt i32 %34, %36
  br i1 %.not42, label %74, label %37

37:                                               ; preds = %33
  %38 = icmp eq ptr %3, null
  br i1 %38, label %74, label %39

39:                                               ; preds = %37
  %40 = icmp sgt i32 %4, 0
  br i1 %40, label %41, label %74

41:                                               ; preds = %39
  %42 = getelementptr inbounds i8, ptr %6, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  %45 = load ptr, ptr %44, align 8, !tbaa !16
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load i32, ptr %46, align 8, !tbaa !18
  %48 = icmp sgt i32 %47, 1
  br i1 %48, label %74, label %49

49:                                               ; preds = %41
  %50 = icmp eq ptr %5, null
  br i1 %50, label %74, label %51

51:                                               ; preds = %49
  %52 = load i32, ptr %5, align 8, !tbaa !21
  %53 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %5)
  %54 = trunc i64 %53 to i32
  %55 = xor i32 %52, %54
  %56 = icmp eq i32 %55, 1129136462
  br i1 %56, label %57, label %74

57:                                               ; preds = %51
  %58 = getelementptr inbounds i8, ptr %5, i64 8
  %59 = load i32, ptr %58, align 8, !tbaa !23
  %60 = getelementptr inbounds i8, ptr %45, i64 16
  %61 = load i32, ptr %60, align 8, !tbaa !24
  %.not43 = icmp eq i32 %59, %61
  br i1 %.not43, label %62, label %74

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #4
  %63 = call i32 @ippsGFpECUserIDHashSM2(ptr noundef nonnull %9, ptr noundef nonnull %3, i32 noundef %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not44 = icmp eq i32 %63, 0
  br i1 %.not44, label %64, label %73

64:                                               ; preds = %62
  %65 = call ptr @ippsHashMethod_SM3_TT() #4
  %66 = call i32 @ippsHashInit_rmf(ptr noundef nonnull @ippsGFpECMessageRepresentationSM2.ctx, ptr noundef %65) #4
  %67 = call i32 @ippsHashUpdate_rmf(ptr noundef nonnull %9, i32 noundef 32, ptr noundef nonnull @ippsGFpECMessageRepresentationSM2.ctx) #4
  %68 = call i32 @ippsHashUpdate_rmf(ptr noundef nonnull %1, i32 noundef %2, ptr noundef nonnull @ippsGFpECMessageRepresentationSM2.ctx) #4
  %69 = getelementptr inbounds i8, ptr %0, i64 16
  %70 = load ptr, ptr %69, align 8, !tbaa !25
  %71 = call i32 @ippsHashFinal_rmf(ptr noundef %70, ptr noundef nonnull @ippsGFpECMessageRepresentationSM2.ctx) #4
  %72 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 1, ptr %72, align 4, !tbaa !26
  call void @PurgeBlock(ptr noundef nonnull %9, i32 noundef 32)
  br label %73

73:                                               ; preds = %62, %64
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  br label %74

74:                                               ; preds = %57, %51, %49, %41, %39, %37, %33, %27, %25, %23, %21, %18, %12, %8, %73
  %.1 = phi i32 [ %63, %73 ], [ -8, %8 ], [ -13, %12 ], [ -13, %18 ], [ -8, %21 ], [ -11, %23 ], [ -8, %25 ], [ -13, %27 ], [ -1010, %33 ], [ -8, %37 ], [ -11, %39 ], [ -14, %41 ], [ -8, %49 ], [ -13, %51 ], [ -11, %57 ]
  ret i32 %.1
}

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

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

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

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

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

declare ptr @ippsHashMethod_SM3_TT() local_unnamed_addr #3

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @PurgeBlock(ptr noundef, i32 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 = { 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 = !{!13, !7, i64 0}
!13 = !{!"_cpBigNum", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24}
!14 = !{!6, !7, i64 24}
!15 = !{!6, !10, i64 8}
!16 = !{!17, !10, i64 8}
!17 = !{!"_cpGFp", !7, i64 0, !7, i64 4, !10, i64 8}
!18 = !{!19, !7, i64 8}
!19 = !{!"_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, !20, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !7, i64 96, !7, i64 100, !10, i64 104}
!20 = !{!"long long", !8, i64 0}
!21 = !{!22, !7, i64 0}
!22 = !{!"_cpGFpECPoint", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!23 = !{!22, !7, i64 8}
!24 = !{!19, !7, i64 16}
!25 = !{!13, !10, i64 16}
!26 = !{!13, !7, i64 4}


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