; LLVM IR from intel/cryptography-primitives :: sources/ippcp/gfpec (pcpgfpecsetpointhash_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 }
%struct._gsModMethod = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpECSetPointHash_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 %194

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 %194

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 %194

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 %194

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 %194

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 %194

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 %194

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 %194

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 %194

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 %194

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 %188

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 %17, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct._gsModEngine, ptr %150, i32 0, i32 6
  %152 = load ptr, ptr %151, align 8, !tbaa !28
  %153 = getelementptr inbounds %struct._gsModMethod, ptr %152, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8, !tbaa !29
  %155 = load ptr, ptr %26, align 8, !tbaa !9
  %156 = load ptr, ptr %29, align 8, !tbaa !9
  %157 = load ptr, ptr %17, align 8, !tbaa !9
  %158 = call ptr %154(ptr noundef %155, ptr noundef %156, ptr noundef %157)
  %159 = load ptr, ptr %26, align 8, !tbaa !9
  %160 = getelementptr inbounds i64, ptr %159, i64 0
  %161 = load i64, ptr %160, align 8, !tbaa !26
  %162 = and i64 %161, 1
  %163 = icmp ne i64 %162, 0
  br i1 %163, label %164, label %169

164:                                              ; preds = %141
  %165 = load ptr, ptr %29, align 8, !tbaa !9
  %166 = load ptr, ptr %29, align 8, !tbaa !9
  %167 = load ptr, ptr %17, align 8, !tbaa !9
  %168 = call ptr @cpGFpNeg(ptr noundef %165, ptr noundef %166, ptr noundef %167)
  br label %169

169:                                              ; preds = %164, %141
  %170 = load ptr, ptr %13, align 8, !tbaa !9
  %171 = getelementptr inbounds %struct._cpGFpEC, ptr %170, i32 0, i32 3
  %172 = load i32, ptr %171, align 8, !tbaa !31
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %186

174:                                              ; preds = %169
  %175 = load ptr, ptr %12, align 8, !tbaa !9
  %176 = load ptr, ptr %12, align 8, !tbaa !9
  %177 = load ptr, ptr %13, align 8, !tbaa !9
  %178 = getelementptr inbounds %struct._cpGFpEC, ptr %177, i32 0, i32 9
  %179 = load ptr, ptr %178, align 8, !tbaa !32
  %180 = load ptr, ptr %17, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct._gsModEngine, ptr %180, i32 0, i32 3
  %182 = load i32, ptr %181, align 8, !tbaa !22
  %183 = load ptr, ptr %13, align 8, !tbaa !9
  %184 = load ptr, ptr %15, align 8, !tbaa !9
  %185 = call ptr @gfec_MulPoint(ptr noundef %175, ptr noundef %176, ptr noundef %179, i32 noundef %182, ptr noundef %183, ptr noundef %184)
  br label %186

186:                                              ; preds = %174, %169
  %187 = load ptr, ptr %17, align 8, !tbaa !9
  call void @gsModPoolFree(ptr noundef %187, 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 %189

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

189:                                              ; preds = %188, %186
  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
  %190 = load i32, ptr %18, align 4
  switch i32 %190, label %193 [
    i32 0, label %191
  ]

191:                                              ; preds = %189
  %192 = load ptr, ptr %17, align 8, !tbaa !9
  call void @gsModPoolFree(ptr noundef %192, i32 noundef 1)
  store i32 -1016, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %193

193:                                              ; preds = %191, %189
  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 %194

194:                                              ; preds = %193, %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
  %195 = load i32, ptr %8, align 4
  ret i32 %195
}

; 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 = !{!17, !10, i64 32}
!29 = !{!30, !10, i64 8}
!30 = !{!"_gsModMethod", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80}
!31 = !{!12, !6, i64 16}
!32 = !{!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 @ippsGFpECSetPointHash_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 %88, label %14

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

16:                                               ; preds = %14
  %17 = icmp ne i32 %2, 0
  %18 = icmp eq ptr %1, null
  %or.cond.not69 = and i1 %18, %17
  %19 = icmp eq ptr %3, null
  %or.cond64 = or i1 %or.cond.not69, %19
  %20 = icmp eq ptr %4, null
  %or.cond65 = or i1 %or.cond64, %20
  %21 = icmp eq ptr %6, null
  %or.cond66 = or i1 %or.cond65, %21
  br i1 %or.cond66, label %88, 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 %88

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 %88

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 %88

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 %88

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
  %.not61 = icmp eq i32 %61, 0
  br i1 %.not61, label %86, 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 = getelementptr inbounds i8, ptr %32, i64 32
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !27
  %72 = call ptr %71(ptr noundef %52, ptr noundef %67, ptr noundef nonnull %32) #4
  %73 = load i64, ptr %52, align 8, !tbaa !24
  %74 = and i64 %73, 1
  %.not62 = icmp eq i64 %74, 0
  br i1 %.not62, label %77, label %75

75:                                               ; preds = %62
  %76 = call ptr @cpGFpNeg(ptr noundef %67, ptr noundef %67, ptr noundef nonnull %32)
  br label %77

77:                                               ; preds = %75, %62
  %78 = getelementptr inbounds i8, ptr %4, i64 16
  %79 = load i32, ptr %78, align 8, !tbaa !29
  %.not63 = icmp eq i32 %79, 0
  br i1 %.not63, label %85, label %80

80:                                               ; preds = %77
  %81 = getelementptr inbounds i8, ptr %4, i64 56
  %82 = load ptr, ptr %81, align 8, !tbaa !30
  %83 = load i32, ptr %44, align 8, !tbaa !20
  %84 = call ptr @gfec_MulPoint(ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef %82, i32 noundef %83, ptr noundef nonnull %4, ptr noundef nonnull %6) #4
  br label %85

85:                                               ; preds = %80, %77
  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 %87

86:                                               ; 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 %87

87:                                               ; preds = %85, %86
  %.1 = phi i32 [ -1016, %86 ], [ 0, %85 ]
  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 %88

88:                                               ; preds = %41, %35, %28, %22, %16, %14, %7, %87
  %.2 = phi i32 [ %.1, %87 ], [ -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 = !{!15, !10, i64 32}
!27 = !{!28, !10, i64 8}
!28 = !{!"_gsModMethod", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80}
!29 = !{!6, !7, i64 16}
!30 = !{!6, !10, i64 56}


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