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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpECInit(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = icmp eq ptr null, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %4
  store i32 -8, ptr %5, align 4
  br label %207

20:                                               ; preds = %4
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = icmp eq ptr null, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  store i32 -8, ptr %5, align 4
  br label %207

24:                                               ; preds = %20
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct._cpGFp, ptr %25, i32 0, i32 0
  %27 = load i32, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = call i64 @IPP_UINT_PTR(ptr noundef %28)
  %30 = trunc i64 %29 to i32
  %31 = xor i32 %27, %30
  %32 = icmp eq i32 %31, 1129136455
  br i1 %32, label %34, label %33

33:                                               ; preds = %24
  store i32 -13, ptr %5, align 4
  br label %207

34:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %35, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._cpGFp, ptr %36, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  store ptr %38, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct._gsModEngine, ptr %39, i32 0, i32 3
  %41 = load i32, ptr %40, align 8, !tbaa !13
  store i32 %41, ptr %12, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = call i32 @cpGFpBasicDegreeExtension(ptr noundef %42)
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = call ptr @cpGFpBasic(ptr noundef %44)
  %46 = getelementptr inbounds %struct._gsModEngine, ptr %45, i32 0, i32 2
  %47 = load i32, ptr %46, align 4, !tbaa !17
  %48 = mul nsw i32 %43, %47
  %49 = add nsw i32 1, %48
  store i32 %49, ptr %13, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %50 = load i32, ptr %13, align 4, !tbaa !16
  %51 = add nsw i32 %50, 64
  %52 = sub nsw i32 %51, 1
  %53 = sdiv i32 %52, 64
  store i32 %53, ptr %14, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %54 = load i32, ptr %13, align 4, !tbaa !16
  %55 = call i32 @gsModEngineGetSize(i32 noundef %54, i32 noundef 6, ptr noundef %15)
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = call i64 @IPP_UINT_PTR(ptr noundef %56)
  %58 = trunc i64 %57 to i32
  %59 = xor i32 1129136461, %58
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct._cpGFpEC, ptr %60, i32 0, i32 0
  store i32 %59, ptr %61, align 8, !tbaa !18
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._cpGFpEC, ptr %62, i32 0, i32 1
  store i32 4096, ptr %63, align 4, !tbaa !20
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct._cpGFpEC, ptr %65, i32 0, i32 2
  store ptr %64, ptr %66, align 8, !tbaa !21
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._cpGFpEC, ptr %67, i32 0, i32 3
  store i32 0, ptr %68, align 8, !tbaa !22
  %69 = load i32, ptr %12, align 4, !tbaa !16
  %70 = mul nsw i32 %69, 3
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._cpGFpEC, ptr %71, i32 0, i32 4
  store i32 %70, ptr %72, align 4, !tbaa !23
  %73 = load i32, ptr %13, align 4, !tbaa !16
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct._cpGFpEC, ptr %74, i32 0, i32 5
  store i32 %73, ptr %75, align 8, !tbaa !24
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._cpGFpEC, ptr %76, i32 0, i32 10
  store i32 0, ptr %77, align 8, !tbaa !25
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 136
  store ptr %79, ptr %10, align 8, !tbaa !5
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._cpGFpEC, ptr %81, i32 0, i32 6
  store ptr %80, ptr %82, align 8, !tbaa !26
  %83 = load i32, ptr %12, align 4, !tbaa !16
  %84 = mul nsw i32 %83, 8
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = sext i32 %84 to i64
  %87 = getelementptr inbounds i8, ptr %85, i64 %86
  store ptr %87, ptr %10, align 8, !tbaa !5
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct._cpGFpEC, ptr %89, i32 0, i32 7
  store ptr %88, ptr %90, align 8, !tbaa !27
  %91 = load i32, ptr %12, align 4, !tbaa !16
  %92 = mul nsw i32 %91, 8
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = sext i32 %92 to i64
  %95 = getelementptr inbounds i8, ptr %93, i64 %94
  store ptr %95, ptr %10, align 8, !tbaa !5
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._cpGFpEC, ptr %97, i32 0, i32 8
  store ptr %96, ptr %98, align 8, !tbaa !28
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._cpGFpEC, ptr %99, i32 0, i32 4
  %101 = load i32, ptr %100, align 4, !tbaa !23
  %102 = mul nsw i32 %101, 8
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = sext i32 %102 to i64
  %105 = getelementptr inbounds i8, ptr %103, i64 %104
  store ptr %105, ptr %10, align 8, !tbaa !5
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct._cpGFpEC, ptr %106, i32 0, i32 12
  store ptr null, ptr %107, align 8, !tbaa !29
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct._cpGFpEC, ptr %109, i32 0, i32 13
  store ptr %108, ptr %110, align 8, !tbaa !30
  %111 = load i32, ptr %15, align 4, !tbaa !16
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = sext i32 %111 to i64
  %114 = getelementptr inbounds i8, ptr %112, i64 %113
  store ptr %114, ptr %10, align 8, !tbaa !5
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct._cpGFpEC, ptr %116, i32 0, i32 9
  store ptr %115, ptr %117, align 8, !tbaa !31
  %118 = load i32, ptr %12, align 4, !tbaa !16
  %119 = mul nsw i32 %118, 8
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = sext i32 %119 to i64
  %122 = getelementptr inbounds i8, ptr %120, i64 %121
  store ptr %122, ptr %10, align 8, !tbaa !5
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct._cpGFpEC, ptr %124, i32 0, i32 15
  store ptr %123, ptr %125, align 8, !tbaa !32
  %126 = load i32, ptr %12, align 4, !tbaa !16
  %127 = mul nsw i32 3, %126
  %128 = mul nsw i32 %127, 8
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = sext i32 %128 to i64
  %131 = getelementptr inbounds i8, ptr %129, i64 %130
  store ptr %131, ptr %10, align 8, !tbaa !5
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._cpGFpEC, ptr %133, i32 0, i32 16
  store ptr %132, ptr %134, align 8, !tbaa !33
  %135 = load i32, ptr %12, align 4, !tbaa !16
  %136 = mul nsw i32 3, %135
  %137 = mul nsw i32 %136, 8
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = sext i32 %137 to i64
  %140 = getelementptr inbounds i8, ptr %138, i64 %139
  store ptr %140, ptr %10, align 8, !tbaa !5
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct._cpGFpEC, ptr %142, i32 0, i32 17
  store ptr %141, ptr %143, align 8, !tbaa !34
  %144 = load i32, ptr %14, align 4, !tbaa !16
  %145 = mul nsw i32 %144, 8
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = sext i32 %145 to i64
  %148 = getelementptr inbounds i8, ptr %146, i64 %147
  store ptr %148, ptr %10, align 8, !tbaa !5
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._cpGFpEC, ptr %150, i32 0, i32 18
  store ptr %149, ptr %151, align 8, !tbaa !35
  %152 = load i32, ptr %14, align 4, !tbaa !16
  %153 = mul nsw i32 %152, 8
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = sext i32 %153 to i64
  %156 = getelementptr inbounds i8, ptr %154, i64 %155
  store ptr %156, ptr %10, align 8, !tbaa !5
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct._cpGFpEC, ptr %157, i32 0, i32 19
  store ptr null, ptr %158, align 8, !tbaa !36
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct._cpGFpEC, ptr %160, i32 0, i32 14
  store ptr %159, ptr %161, align 8, !tbaa !37
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct._cpGFpEC, ptr %162, i32 0, i32 6
  %164 = load ptr, ptr %163, align 8, !tbaa !26
  %165 = load i32, ptr %12, align 4, !tbaa !16
  %166 = call ptr @cpGFpElementPad(ptr noundef %164, i32 noundef %165, i64 noundef 0)
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct._cpGFpEC, ptr %167, i32 0, i32 7
  %169 = load ptr, ptr %168, align 8, !tbaa !27
  %170 = load i32, ptr %12, align 4, !tbaa !16
  %171 = call ptr @cpGFpElementPad(ptr noundef %169, i32 noundef %170, i64 noundef 0)
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct._cpGFpEC, ptr %172, i32 0, i32 8
  %174 = load ptr, ptr %173, align 8, !tbaa !28
  %175 = load i32, ptr %12, align 4, !tbaa !16
  %176 = mul nsw i32 %175, 3
  %177 = call ptr @cpGFpElementPad(ptr noundef %174, i32 noundef %176, i64 noundef 0)
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct._cpGFpEC, ptr %178, i32 0, i32 13
  %180 = load ptr, ptr %179, align 8, !tbaa !30
  %181 = load i32, ptr %13, align 4, !tbaa !16
  %182 = call i32 @gsModEngineInit(ptr noundef %180, ptr noundef null, i32 noundef %181, i32 noundef 6, ptr noundef null)
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct._cpGFpEC, ptr %183, i32 0, i32 9
  %185 = load ptr, ptr %184, align 8, !tbaa !31
  %186 = load i32, ptr %12, align 4, !tbaa !16
  %187 = call ptr @cpGFpElementPad(ptr noundef %185, i32 noundef %186, i64 noundef 0)
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct._cpGFpEC, ptr %188, i32 0, i32 14
  %190 = load ptr, ptr %189, align 8, !tbaa !37
  %191 = load i32, ptr %12, align 4, !tbaa !16
  %192 = mul nsw i32 %191, 3
  %193 = mul nsw i32 %192, 10
  %194 = call ptr @cpGFpElementPad(ptr noundef %190, i32 noundef %193, i64 noundef 0)
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = icmp ne ptr %195, null
  br i1 %196, label %197, label %205

197:                                              ; preds = %34
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = icmp ne ptr %198, null
  br i1 %199, label %200, label %205

200:                                              ; preds = %197
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = call i32 @ippsGFpECSet(ptr noundef %201, ptr noundef %202, ptr noundef %203)
  store i32 %204, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %206

205:                                              ; preds = %197, %34
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %206

206:                                              ; preds = %205, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %207

207:                                              ; preds = %206, %33, %23, %19
  %208 = load i32, ptr %5, align 4
  ret i32 %208
}

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpBasic(ptr noundef) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpElementPad(ptr noundef, i32 noundef, i64 noundef) #1

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_cpGFp", !11, i64 0, !11, i64 4, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!14, !11, i64 16}
!14 = !{!"_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, !15, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !11, i64 100, !6, i64 104}
!15 = !{!"long long", !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!14, !11, i64 12}
!18 = !{!19, !11, i64 0}
!19 = !{!"_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}
!20 = !{!19, !11, i64 4}
!21 = !{!19, !6, i64 8}
!22 = !{!19, !11, i64 16}
!23 = !{!19, !11, i64 20}
!24 = !{!19, !11, i64 24}
!25 = !{!19, !11, i64 64}
!26 = !{!19, !6, i64 32}
!27 = !{!19, !6, i64 40}
!28 = !{!19, !6, i64 48}
!29 = !{!19, !6, i64 72}
!30 = !{!19, !6, i64 80}
!31 = !{!19, !6, i64 56}
!32 = !{!19, !6, i64 96}
!33 = !{!19, !6, i64 104}
!34 = !{!19, !6, i64 112}
!35 = !{!19, !6, i64 120}
!36 = !{!19, !6, i64 128}
!37 = !{!19, !6, i64 88}


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

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpECInit(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = alloca i32, align 4
  %6 = icmp eq ptr %0, null
  %7 = icmp eq ptr %3, null
  %or.cond84 = or i1 %6, %7
  br i1 %or.cond84, label %85, label %8

8:                                                ; preds = %4
  %9 = load i32, ptr %0, align 8, !tbaa !5
  %10 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %0)
  %11 = trunc i64 %10 to i32
  %12 = xor i32 %9, %11
  %13 = icmp eq i32 %12, 1129136455
  br i1 %13, label %14, label %85

14:                                               ; preds = %8
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load i32, ptr %17, align 8, !tbaa !12
  %19 = tail call i32 @cpGFpBasicDegreeExtension(ptr noundef %16)
  %20 = tail call ptr @cpGFpBasic(ptr noundef %16)
  %21 = getelementptr inbounds i8, ptr %20, i64 12
  %22 = load i32, ptr %21, align 4, !tbaa !15
  %23 = mul nsw i32 %22, %19
  %24 = add nsw i32 %23, 1
  %25 = add nsw i32 %23, 64
  %26 = sdiv i32 %25, 64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %27 = call i32 @gsModEngineGetSize(i32 noundef %24, i32 noundef 6, ptr noundef nonnull %5) #4
  %28 = call i64 @IPP_UINT_PTR(ptr noundef nonnull %3)
  %29 = trunc i64 %28 to i32
  %30 = xor i32 %29, 1129136461
  store i32 %30, ptr %3, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 4096, ptr %31, align 4, !tbaa !18
  %32 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %0, ptr %32, align 8, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 0, ptr %33, align 8, !tbaa !20
  %34 = mul nsw i32 %18, 3
  %35 = getelementptr inbounds i8, ptr %3, i64 20
  store i32 %34, ptr %35, align 4, !tbaa !21
  %36 = getelementptr inbounds i8, ptr %3, i64 24
  store i32 %24, ptr %36, align 8, !tbaa !22
  %37 = getelementptr inbounds i8, ptr %3, i64 64
  store i32 0, ptr %37, align 8, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %3, i64 136
  %39 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr %38, ptr %39, align 8, !tbaa !24
  %40 = shl nsw i32 %18, 3
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i8, ptr %38, i64 %41
  %43 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %42, ptr %43, align 8, !tbaa !25
  %44 = getelementptr inbounds i8, ptr %42, i64 %41
  %45 = getelementptr inbounds i8, ptr %3, i64 48
  store ptr %44, ptr %45, align 8, !tbaa !26
  %46 = mul i32 %18, 24
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i8, ptr %44, i64 %47
  %49 = getelementptr inbounds i8, ptr %3, i64 72
  store ptr null, ptr %49, align 8, !tbaa !27
  %50 = getelementptr inbounds i8, ptr %3, i64 80
  store ptr %48, ptr %50, align 8, !tbaa !28
  %51 = load i32, ptr %5, align 4, !tbaa !29
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i8, ptr %48, i64 %52
  %54 = getelementptr inbounds i8, ptr %3, i64 56
  store ptr %53, ptr %54, align 8, !tbaa !30
  %55 = getelementptr inbounds i8, ptr %53, i64 %41
  %56 = getelementptr inbounds i8, ptr %3, i64 96
  store ptr %55, ptr %56, align 8, !tbaa !31
  %57 = getelementptr inbounds i8, ptr %55, i64 %47
  %58 = getelementptr inbounds i8, ptr %3, i64 104
  store ptr %57, ptr %58, align 8, !tbaa !32
  %59 = getelementptr inbounds i8, ptr %57, i64 %47
  %60 = getelementptr inbounds i8, ptr %3, i64 112
  store ptr %59, ptr %60, align 8, !tbaa !33
  %61 = shl nsw i32 %26, 3
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i8, ptr %59, i64 %62
  %64 = getelementptr inbounds i8, ptr %3, i64 120
  store ptr %63, ptr %64, align 8, !tbaa !34
  %65 = getelementptr inbounds i8, ptr %63, i64 %62
  %66 = getelementptr inbounds i8, ptr %3, i64 128
  store ptr null, ptr %66, align 8, !tbaa !35
  %67 = getelementptr inbounds i8, ptr %3, i64 88
  store ptr %65, ptr %67, align 8, !tbaa !36
  %68 = call ptr @cpGFpElementPad(ptr noundef nonnull %38, i32 noundef %18, i64 noundef 0)
  %69 = load ptr, ptr %43, align 8, !tbaa !25
  %70 = call ptr @cpGFpElementPad(ptr noundef %69, i32 noundef %18, i64 noundef 0)
  %71 = load ptr, ptr %45, align 8, !tbaa !26
  %72 = call ptr @cpGFpElementPad(ptr noundef %71, i32 noundef %34, i64 noundef 0)
  %73 = load ptr, ptr %50, align 8, !tbaa !28
  %74 = call i32 @gsModEngineInit(ptr noundef %73, ptr noundef null, i32 noundef %24, i32 noundef 6, ptr noundef null) #4
  %75 = load ptr, ptr %54, align 8, !tbaa !30
  %76 = call ptr @cpGFpElementPad(ptr noundef %75, i32 noundef %18, i64 noundef 0)
  %77 = load ptr, ptr %67, align 8, !tbaa !36
  %78 = mul i32 %18, 30
  %79 = call ptr @cpGFpElementPad(ptr noundef %77, i32 noundef %78, i64 noundef 0)
  %80 = icmp ne ptr %1, null
  %81 = icmp ne ptr %2, null
  %or.cond = and i1 %80, %81
  br i1 %or.cond, label %82, label %84

82:                                               ; preds = %14
  %83 = call i32 @ippsGFpECSet(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3) #4
  br label %84

84:                                               ; preds = %14, %82
  %.0 = phi i32 [ %83, %82 ], [ 0, %14 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %85

85:                                               ; preds = %8, %4, %84
  %.1 = phi i32 [ %.0, %84 ], [ -8, %4 ], [ -13, %8 ]
  ret i32 %.1
}

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpBasic(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpElementPad(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_cpGFp", !7, i64 0, !7, i64 4, !10, i64 8}
!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, !7, i64 16}
!13 = !{!"_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, !14, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !7, i64 96, !7, i64 100, !10, i64 104}
!14 = !{!"long long", !8, i64 0}
!15 = !{!13, !7, i64 12}
!16 = !{!17, !7, i64 0}
!17 = !{!"_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}
!18 = !{!17, !7, i64 4}
!19 = !{!17, !10, i64 8}
!20 = !{!17, !7, i64 16}
!21 = !{!17, !7, i64 20}
!22 = !{!17, !7, i64 24}
!23 = !{!17, !7, i64 64}
!24 = !{!17, !10, i64 32}
!25 = !{!17, !10, i64 40}
!26 = !{!17, !10, i64 48}
!27 = !{!17, !10, i64 72}
!28 = !{!17, !10, i64 80}
!29 = !{!7, !7, i64 0}
!30 = !{!17, !10, i64 56}
!31 = !{!17, !10, i64 96}
!32 = !{!17, !10, i64 104}
!33 = !{!17, !10, i64 112}
!34 = !{!17, !10, i64 120}
!35 = !{!17, !10, i64 128}
!36 = !{!17, !10, i64 88}


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