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

; 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._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 }
%struct._cpHashMethod_rmf = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr }

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

32:                                               ; preds = %7
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %185

33:                                               ; preds = %7
  %34 = load i32, ptr %11, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  store i32 -15, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %185

37:                                               ; preds = %33
  %38 = load i32, ptr %11, align 4, !tbaa !5
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %44

40:                                               ; preds = %37
  %41 = load ptr, ptr %10, align 8, !tbaa !9
  %42 = icmp ne ptr %41, null
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %185

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

47:                                               ; preds = %44
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %185

48:                                               ; preds = %44
  %49 = load ptr, ptr %13, align 8, !tbaa !9
  %50 = icmp eq ptr null, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %185

52:                                               ; preds = %48
  %53 = load ptr, ptr %15, align 8, !tbaa !9
  %54 = icmp eq ptr null, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %185

56:                                               ; preds = %52
  %57 = load ptr, ptr %13, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct._cpGFpEC, ptr %57, i32 0, i32 0
  %59 = load i32, ptr %58, align 8, !tbaa !11
  %60 = load ptr, ptr %13, align 8, !tbaa !9
  %61 = call i64 @IPP_UINT_PTR(ptr noundef %60)
  %62 = trunc i64 %61 to i32
  %63 = xor i32 %59, %62
  %64 = icmp eq i32 %63, 1129136461
  br i1 %64, label %66, label %65

65:                                               ; preds = %56
  store i32 -13, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %185

66:                                               ; preds = %56
  %67 = load ptr, ptr %13, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct._cpGFpEC, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  store ptr %69, ptr %16, align 8, !tbaa !9
  %70 = load ptr, ptr %16, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct._cpGFp, ptr %70, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !14
  store ptr %72, ptr %17, align 8, !tbaa !9
  %73 = load ptr, ptr %17, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct._gsModEngine, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !16
  %76 = icmp eq ptr %75, null
  br i1 %76, label %78, label %77

77:                                               ; preds = %66
  store i32 -5, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %185

78:                                               ; preds = %66
  %79 = load ptr, ptr %12, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct._cpGFpECPoint, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 8, !tbaa !19
  %82 = load ptr, ptr %12, align 8, !tbaa !9
  %83 = call i64 @IPP_UINT_PTR(ptr noundef %82)
  %84 = trunc i64 %83 to i32
  %85 = xor i32 %81, %84
  %86 = icmp eq i32 %85, 1129136462
  br i1 %86, label %88, label %87

87:                                               ; preds = %78
  store i32 -13, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %185

88:                                               ; preds = %78
  %89 = load ptr, ptr %12, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct._cpGFpECPoint, ptr %89, i32 0, i32 2
  %91 = load i32, ptr %90, align 8, !tbaa !21
  %92 = load ptr, ptr %17, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct._gsModEngine, ptr %92, i32 0, i32 3
  %94 = load i32, ptr %93, align 8, !tbaa !22
  %95 = icmp ne i32 %91, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %88
  store i32 -11, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %185

97:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %98 = load ptr, ptr %17, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct._gsModEngine, ptr %98, i32 0, i32 3
  %100 = load i32, ptr %99, align 8, !tbaa !22
  store i32 %100, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %101 = load ptr, ptr %17, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct._gsModEngine, ptr %101, i32 0, i32 8
  %103 = load ptr, ptr %102, align 8, !tbaa !23
  store ptr %103, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %104 = load ptr, ptr %14, align 8, !tbaa !9
  %105 = getelementptr inbounds %struct._cpHashMethod_rmf, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !24
  store i32 %106, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 232, ptr %25) #4
  %107 = load ptr, ptr %14, align 8, !tbaa !9
  %108 = call i32 @ippsHashInit_rmf(ptr noundef %25, ptr noundef %107)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %109 = load ptr, ptr %17, align 8, !tbaa !9
  %110 = call ptr @gsModPoolAlloc(ptr noundef %109, i32 noundef 1)
  store ptr %110, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = zext i32 %111 to i64
  store i64 %112, ptr %27, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %113 = getelementptr inbounds [4 x i8], ptr %28, i64 0, i64 0
  %114 = call i32 @cpToOctStr_BNU(ptr noundef %113, i32 noundef 4, ptr noundef %27, i32 noundef 1)
  %115 = getelementptr inbounds [4 x i8], ptr %28, i64 0, i64 0
  %116 = call i32 @ippsHashUpdate_rmf(ptr noundef %115, i32 noundef 4, ptr noundef %25)
  %117 = load ptr, ptr %10, align 8, !tbaa !9
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = call i32 @ippsHashUpdate_rmf(ptr noundef %117, i32 noundef %118, ptr noundef %25)
  %120 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  %121 = call i32 @ippsHashFinal_rmf(ptr noundef %120, ptr noundef %25)
  %122 = getelementptr inbounds [9 x i64], ptr %23, i64 0, i64 0
  %123 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  %124 = load i32, ptr %22, align 4, !tbaa !5
  %125 = call i32 @cpFromOctStr_BNU(ptr noundef %122, ptr noundef %123, i32 noundef %124)
  store i32 %125, ptr %24, align 4, !tbaa !5
  %126 = getelementptr inbounds [9 x i64], ptr %23, i64 0, i64 0
  %127 = load i32, ptr %24, align 4, !tbaa !5
  %128 = load ptr, ptr %20, align 8, !tbaa !9
  %129 = load i32, ptr %19, align 4, !tbaa !5
  %130 = call i32 @cpMod_BNU(ptr noundef %126, i32 noundef %127, ptr noundef %128, i32 noundef %129)
  store i32 %130, ptr %24, align 4, !tbaa !5
  %131 = load ptr, ptr %26, align 8, !tbaa !9
  %132 = getelementptr inbounds [9 x i64], ptr %23, i64 0, i64 0
  %133 = load i32, ptr %24, align 4, !tbaa !5
  %134 = load ptr, ptr %17, align 8, !tbaa !9
  %135 = call ptr @cpGFpSet(ptr noundef %131, ptr noundef %132, i32 noundef %133, ptr noundef %134)
  %136 = load ptr, ptr %12, align 8, !tbaa !9
  %137 = load ptr, ptr %26, align 8, !tbaa !9
  %138 = load ptr, ptr %13, align 8, !tbaa !9
  %139 = call i32 @gfec_MakePoint(ptr noundef %136, ptr noundef %137, ptr noundef %138)
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %179

141:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %142 = load ptr, ptr %12, align 8, !tbaa !9
  %143 = getelementptr inbounds %struct._cpGFpECPoint, ptr %142, i32 0, i32 3
  %144 = load ptr, ptr %143, align 8, !tbaa !27
  %145 = load ptr, ptr %12, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct._cpGFpECPoint, ptr %145, i32 0, i32 2
  %147 = load i32, ptr %146, align 8, !tbaa !21
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds i64, ptr %144, i64 %148
  store ptr %149, ptr %29, align 8, !tbaa !9
  %150 = load ptr, ptr %29, align 8, !tbaa !9
  %151 = getelementptr inbounds i64, ptr %150, i64 0
  %152 = load i64, ptr %151, align 8, !tbaa !26
  %153 = and i64 %152, 1
  %154 = icmp ne i64 %153, 0
  br i1 %154, label %155, label %160

155:                                              ; preds = %141
  %156 = load ptr, ptr %29, align 8, !tbaa !9
  %157 = load ptr, ptr %29, align 8, !tbaa !9
  %158 = load ptr, ptr %17, align 8, !tbaa !9
  %159 = call ptr @cpGFpNeg(ptr noundef %156, ptr noundef %157, ptr noundef %158)
  br label %160

160:                                              ; preds = %155, %141
  %161 = load ptr, ptr %13, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct._cpGFpEC, ptr %161, i32 0, i32 3
  %163 = load i32, ptr %162, align 8, !tbaa !28
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %177

165:                                              ; preds = %160
  %166 = load ptr, ptr %12, align 8, !tbaa !9
  %167 = load ptr, ptr %12, align 8, !tbaa !9
  %168 = load ptr, ptr %13, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct._cpGFpEC, ptr %168, i32 0, i32 9
  %170 = load ptr, ptr %169, align 8, !tbaa !29
  %171 = load ptr, ptr %17, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct._gsModEngine, ptr %171, i32 0, i32 3
  %173 = load i32, ptr %172, align 8, !tbaa !22
  %174 = load ptr, ptr %13, align 8, !tbaa !9
  %175 = load ptr, ptr %15, align 8, !tbaa !9
  %176 = call ptr @gfec_MulPoint(ptr noundef %166, ptr noundef %167, ptr noundef %170, i32 noundef %173, ptr noundef %174, ptr noundef %175)
  br label %177

177:                                              ; preds = %165, %160
  %178 = load ptr, ptr %17, align 8, !tbaa !9
  call void @gsModPoolFree(ptr noundef %178, i32 noundef 1)
  store i32 0, ptr %8, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  br label %180

179:                                              ; preds = %97
  store i32 0, ptr %18, align 4
  br label %180

180:                                              ; preds = %179, %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  %181 = load i32, ptr %18, align 4
  switch i32 %181, label %184 [
    i32 0, label %182
  ]

182:                                              ; preds = %180
  %183 = load ptr, ptr %17, align 8, !tbaa !9
  call void @gsModPoolFree(ptr noundef %183, i32 noundef 1)
  store i32 -1016, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %184

184:                                              ; preds = %182, %180
  call void @llvm.lifetime.end.p0(i64 232, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %185

185:                                              ; preds = %184, %96, %87, %77, %65, %55, %51, %47, %43, %36, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %186 = load i32, ptr %8, align 4
  ret i32 %186
}

; 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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @gsModPoolFree(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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_cpGFpEC", !6, i64 0, !6, i64 4, !10, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !6, i64 64, !6, 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}
!13 = !{!12, !10, i64 8}
!14 = !{!15, !10, i64 8}
!15 = !{!"_cpGFp", !6, i64 0, !6, i64 4, !10, i64 8}
!16 = !{!17, !10, i64 0}
!17 = !{!"_gsModEngine", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !18, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !6, i64 96, !6, i64 100, !10, i64 104}
!18 = !{!"long long", !7, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"_cpGFpECPoint", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16}
!21 = !{!20, !6, i64 8}
!22 = !{!17, !6, i64 16}
!23 = !{!17, !10, i64 48}
!24 = !{!25, !6, i64 4}
!25 = !{!"_cpHashMethod_rmf", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!26 = !{!18, !18, i64 0}
!27 = !{!20, !10, i64 16}
!28 = !{!12, !6, i64 16}
!29 = !{!12, !10, i64 56}


; 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] }

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1016, 1) i32 @ippsGFpECSetPointHashBackCompatible_rmf(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = alloca [64 x i8], align 16
  %9 = alloca [9 x i64], align 16
  %10 = alloca %struct._cpHashCtx_rmf, align 8
  %11 = alloca i64, align 8
  %12 = alloca [4 x i8], align 1
  %13 = icmp eq ptr %5, null
  br i1 %13, label %83, label %14

14:                                               ; preds = %7
  %15 = icmp slt i32 %2, 0
  br i1 %15, label %83, label %16

16:                                               ; preds = %14
  %17 = icmp ne i32 %2, 0
  %18 = icmp eq ptr %1, null
  %or.cond.not65 = and i1 %18, %17
  %19 = icmp eq ptr %3, null
  %or.cond60 = or i1 %or.cond.not65, %19
  %20 = icmp eq ptr %4, null
  %or.cond61 = or i1 %or.cond60, %20
  %21 = icmp eq ptr %6, null
  %or.cond62 = or i1 %or.cond61, %21
  br i1 %or.cond62, label %83, label %22

22:                                               ; preds = %16
  %23 = load i32, ptr %4, align 8, !tbaa !5
  %24 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %4)
  %25 = trunc i64 %24 to i32
  %26 = xor i32 %23, %25
  %27 = icmp eq i32 %26, 1129136461
  br i1 %27, label %28, label %83

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %4, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !12
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %83

35:                                               ; preds = %28
  %36 = load i32, ptr %3, align 8, !tbaa !17
  %37 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %3)
  %38 = trunc i64 %37 to i32
  %39 = xor i32 %36, %38
  %40 = icmp eq i32 %39, 1129136462
  br i1 %40, label %41, label %83

41:                                               ; preds = %35
  %42 = getelementptr inbounds i8, ptr %3, i64 8
  %43 = load i32, ptr %42, align 8, !tbaa !19
  %44 = getelementptr inbounds i8, ptr %32, i64 16
  %45 = load i32, ptr %44, align 8, !tbaa !20
  %.not = icmp eq i32 %43, %45
  br i1 %.not, label %46, label %83

46:                                               ; preds = %41
  %47 = getelementptr inbounds i8, ptr %32, i64 48
  %48 = load ptr, ptr %47, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #4
  %49 = getelementptr inbounds i8, ptr %5, i64 4
  %50 = load i32, ptr %49, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %10) #4
  %51 = call i32 @ippsHashInit_rmf(ptr noundef nonnull %10, ptr noundef nonnull %5) #4
  %52 = call ptr @gsModPoolAlloc(ptr noundef nonnull %32, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %53 = zext i32 %0 to i64
  store i64 %53, ptr %11, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  %54 = call i32 @cpToOctStr_BNU(ptr noundef nonnull %12, i32 noundef 4, ptr noundef nonnull %11, i32 noundef 1) #4
  %55 = call i32 @ippsHashUpdate_rmf(ptr noundef nonnull %12, i32 noundef 4, ptr noundef nonnull %10) #4
  %56 = call i32 @ippsHashUpdate_rmf(ptr noundef %1, i32 noundef %2, ptr noundef nonnull %10) #4
  %57 = call i32 @ippsHashFinal_rmf(ptr noundef nonnull %8, ptr noundef nonnull %10) #4
  %58 = call i32 @cpFromOctStr_BNU(ptr noundef nonnull %9, ptr noundef nonnull %8, i32 noundef %50) #4
  %59 = call i32 @cpMod_BNU(ptr noundef nonnull %9, i32 noundef %58, ptr noundef %48, i32 noundef %43)
  %60 = call ptr @cpGFpSet(ptr noundef %52, ptr noundef nonnull %9, i32 noundef %59, ptr noundef nonnull %32) #4
  %61 = call i32 @gfec_MakePoint(ptr noundef nonnull %3, ptr noundef %52, ptr noundef nonnull %4) #4
  %.not57 = icmp eq i32 %61, 0
  br i1 %.not57, label %81, label %62

62:                                               ; preds = %46
  %63 = getelementptr inbounds i8, ptr %3, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !25
  %65 = load i32, ptr %42, align 8, !tbaa !19
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i64, ptr %64, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !24
  %69 = and i64 %68, 1
  %.not58 = icmp eq i64 %69, 0
  br i1 %.not58, label %72, label %70

70:                                               ; preds = %62
  %71 = call ptr @cpGFpNeg(ptr noundef nonnull %67, ptr noundef nonnull %67, ptr noundef nonnull %32)
  br label %72

72:                                               ; preds = %70, %62
  %73 = getelementptr inbounds i8, ptr %4, i64 16
  %74 = load i32, ptr %73, align 8, !tbaa !26
  %.not59 = icmp eq i32 %74, 0
  br i1 %.not59, label %80, label %75

75:                                               ; preds = %72
  %76 = getelementptr inbounds i8, ptr %4, i64 56
  %77 = load ptr, ptr %76, align 8, !tbaa !27
  %78 = load i32, ptr %44, align 8, !tbaa !20
  %79 = call ptr @gfec_MulPoint(ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef %77, i32 noundef %78, ptr noundef nonnull %4, ptr noundef nonnull %6) #4
  br label %80

80:                                               ; preds = %75, %72
  call void @gsModPoolFree(ptr noundef nonnull %32, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %82

81:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @gsModPoolFree(ptr noundef nonnull %32, i32 noundef 1)
  br label %82

82:                                               ; preds = %80, %81
  %.1 = phi i32 [ -1016, %81 ], [ 0, %80 ]
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #4
  br label %83

83:                                               ; preds = %41, %35, %28, %22, %16, %14, %7, %82
  %.2 = phi i32 [ %.1, %82 ], [ -8, %7 ], [ -15, %14 ], [ -8, %16 ], [ -13, %22 ], [ -5, %28 ], [ -13, %35 ], [ -11, %41 ]
  ret i32 %.2
}

; 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

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

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

declare i32 @cpToOctStr_BNU(ptr noundef, i32 noundef, ptr noundef, i32 noundef) 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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpNeg(ptr noundef, ptr noundef, 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

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


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