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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct._cpGFpECPoint = type { i32, i32, i32, ptr }
%struct._cpGFpEC = type { i32, i32, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._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._gsModMethod = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @gfec_IsPointOnCurve(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca 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 ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._cpGFpECPoint, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %22 = and i32 %21, 2
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %25, label %24

24:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  br label %185

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct._cpGFpEC, ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  store ptr %28, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct._cpGFp, ptr %29, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  store ptr %31, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct._gsModEngine, ptr %32, i32 0, i32 6
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = getelementptr inbounds %struct._gsModMethod, ptr %34, i32 0, i32 2
  %36 = load ptr, ptr %35, align 8, !tbaa !20
  store ptr %36, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._gsModEngine, ptr %37, i32 0, i32 6
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = getelementptr inbounds %struct._gsModMethod, ptr %39, i32 0, i32 3
  %41 = load ptr, ptr %40, align 8, !tbaa !22
  store ptr %41, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._gsModEngine, ptr %42, i32 0, i32 6
  %44 = load ptr, ptr %43, align 8, !tbaa !17
  %45 = getelementptr inbounds %struct._gsModMethod, ptr %44, i32 0, i32 6
  %46 = load ptr, ptr %45, align 8, !tbaa !23
  store ptr %46, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._cpGFpECPoint, ptr %47, i32 0, i32 3
  %49 = load ptr, ptr %48, align 8, !tbaa !24
  store ptr %49, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._cpGFpECPoint, ptr %50, i32 0, i32 3
  %52 = load ptr, ptr %51, align 8, !tbaa !24
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._cpGFpECPoint, ptr %53, i32 0, i32 2
  %55 = load i32, ptr %54, align 8, !tbaa !25
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i64, ptr %52, i64 %56
  store ptr %57, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._cpGFpECPoint, ptr %58, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !24
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._cpGFpECPoint, ptr %61, i32 0, i32 2
  %63 = load i32, ptr %62, align 8, !tbaa !25
  %64 = mul nsw i32 %63, 2
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i64, ptr %60, i64 %65
  store ptr %66, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store ptr null, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store ptr null, ptr %18, align 8, !tbaa !5
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = call ptr @gsModPoolAlloc(ptr noundef %67, i32 noundef 1)
  store ptr %68, ptr %15, align 8, !tbaa !5
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = call ptr @gsModPoolAlloc(ptr noundef %69, i32 noundef 1)
  store ptr %70, ptr %16, align 8, !tbaa !5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = call ptr %71(ptr noundef %72, ptr noundef %73, ptr noundef %74)
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = call ptr %76(ptr noundef %77, ptr noundef %78, ptr noundef %79)
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = call ptr %81(ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85)
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = call ptr %87(ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91)
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct._cpGFpECPoint, ptr %93, i32 0, i32 1
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = and i32 %95, 1
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %121

98:                                               ; preds = %25
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct._cpGFpEC, ptr %102, i32 0, i32 6
  %104 = load ptr, ptr %103, align 8, !tbaa !26
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = call ptr %99(ptr noundef %100, ptr noundef %101, ptr noundef %104, ptr noundef %105)
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = call ptr %107(ptr noundef %108, ptr noundef %109, ptr noundef %110, ptr noundef %111)
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct._cpGFpEC, ptr %116, i32 0, i32 7
  %118 = load ptr, ptr %117, align 8, !tbaa !27
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = call ptr %113(ptr noundef %114, ptr noundef %115, ptr noundef %118, ptr noundef %119)
  br label %177

121:                                              ; preds = %25
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = call ptr @gsModPoolAlloc(ptr noundef %122, i32 noundef 1)
  store ptr %123, ptr %17, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = call ptr @gsModPoolAlloc(ptr noundef %124, i32 noundef 1)
  store ptr %125, ptr %18, align 8, !tbaa !5
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = call ptr %126(ptr noundef %127, ptr noundef %128, ptr noundef %129)
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  %133 = load ptr, ptr %18, align 8, !tbaa !5
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = call ptr %131(ptr noundef %132, ptr noundef %133, ptr noundef %134)
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  %138 = load ptr, ptr %18, align 8, !tbaa !5
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = call ptr %136(ptr noundef %137, ptr noundef %138, ptr noundef %139, ptr noundef %140)
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = load ptr, ptr %17, align 8, !tbaa !5
  %144 = load ptr, ptr %17, align 8, !tbaa !5
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = call ptr %142(ptr noundef %143, ptr noundef %144, ptr noundef %145, ptr noundef %146)
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = load ptr, ptr %17, align 8, !tbaa !5
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct._cpGFpEC, ptr %151, i32 0, i32 6
  %153 = load ptr, ptr %152, align 8, !tbaa !26
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = call ptr %148(ptr noundef %149, ptr noundef %150, ptr noundef %153, ptr noundef %154)
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = load ptr, ptr %18, align 8, !tbaa !5
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct._cpGFpEC, ptr %159, i32 0, i32 7
  %161 = load ptr, ptr %160, align 8, !tbaa !27
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = call ptr %156(ptr noundef %157, ptr noundef %158, ptr noundef %161, ptr noundef %162)
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = load ptr, ptr %15, align 8, !tbaa !5
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = call ptr %164(ptr noundef %165, ptr noundef %166, ptr noundef %167, ptr noundef %168)
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = load ptr, ptr %15, align 8, !tbaa !5
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = load ptr, ptr %18, align 8, !tbaa !5
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = call ptr %170(ptr noundef %171, ptr noundef %172, ptr noundef %173, ptr noundef %174)
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  call void @gsModPoolFree(ptr noundef %176, i32 noundef 2)
  br label %177

177:                                              ; preds = %121, %98
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct._gsModEngine, ptr %179, i32 0, i32 3
  %181 = load i32, ptr %180, align 8, !tbaa !28
  %182 = call i32 @cpGFpElementIsEquChunk(ptr noundef %178, i32 noundef %181, i64 noundef 0)
  store i32 %182, ptr %6, align 4, !tbaa !12
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  call void @gsModPoolFree(ptr noundef %183, i32 noundef 2)
  %184 = load i32, ptr %6, align 4, !tbaa !12
  store i32 %184, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %185

185:                                              ; preds = %177, %24
  %186 = load i32, ptr %3, 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 ptr @gsModPoolAlloc(ptr noundef, i32 noundef) #2

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

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


; 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 @gfec_IsPointOnCurve(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 4
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = and i32 %4, 2
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %63, label %6

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %8, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %10, i64 32
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !18
  %15 = getelementptr inbounds i8, ptr %12, i64 24
  %16 = load ptr, ptr %15, align 8, !tbaa !20
  %17 = getelementptr inbounds i8, ptr %12, i64 48
  %18 = load ptr, ptr %17, align 8, !tbaa !21
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !22
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load i32, ptr %21, align 8, !tbaa !23
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds i64, ptr %20, i64 %23
  %25 = tail call ptr @gsModPoolAlloc(ptr noundef %10, i32 noundef 1)
  %26 = tail call ptr @gsModPoolAlloc(ptr noundef %10, i32 noundef 1)
  %27 = tail call ptr %16(ptr noundef %25, ptr noundef %24, ptr noundef %10) #2
  %28 = tail call ptr %16(ptr noundef %26, ptr noundef %20, ptr noundef %10) #2
  %29 = tail call ptr %14(ptr noundef %26, ptr noundef %20, ptr noundef %26, ptr noundef %10) #2
  %30 = tail call ptr %18(ptr noundef %25, ptr noundef %25, ptr noundef %26, ptr noundef %10) #2
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = and i32 %31, 1
  %.not92 = icmp eq i32 %32, 0
  br i1 %.not92, label %41, label %33

33:                                               ; preds = %6
  %34 = getelementptr inbounds i8, ptr %1, i64 32
  %35 = load ptr, ptr %34, align 8, !tbaa !24
  %36 = tail call ptr %14(ptr noundef %26, ptr noundef %20, ptr noundef %35, ptr noundef nonnull %10) #2
  %37 = tail call ptr %18(ptr noundef %25, ptr noundef %25, ptr noundef %26, ptr noundef nonnull %10) #2
  %38 = getelementptr inbounds i8, ptr %1, i64 40
  %39 = load ptr, ptr %38, align 8, !tbaa !25
  %40 = tail call ptr %18(ptr noundef %25, ptr noundef %25, ptr noundef %39, ptr noundef nonnull %10) #2
  br label %59

41:                                               ; preds = %6
  %42 = shl nsw i32 %22, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i64, ptr %20, i64 %43
  %45 = tail call ptr @gsModPoolAlloc(ptr noundef nonnull %10, i32 noundef 1)
  %46 = tail call ptr @gsModPoolAlloc(ptr noundef nonnull %10, i32 noundef 1)
  %47 = tail call ptr %16(ptr noundef %46, ptr noundef %44, ptr noundef nonnull %10) #2
  %48 = tail call ptr %16(ptr noundef %45, ptr noundef %46, ptr noundef nonnull %10) #2
  %49 = tail call ptr %14(ptr noundef %46, ptr noundef %46, ptr noundef %45, ptr noundef nonnull %10) #2
  %50 = tail call ptr %14(ptr noundef %45, ptr noundef %45, ptr noundef %20, ptr noundef nonnull %10) #2
  %51 = getelementptr inbounds i8, ptr %1, i64 32
  %52 = load ptr, ptr %51, align 8, !tbaa !24
  %53 = tail call ptr %14(ptr noundef %45, ptr noundef %45, ptr noundef %52, ptr noundef nonnull %10) #2
  %54 = getelementptr inbounds i8, ptr %1, i64 40
  %55 = load ptr, ptr %54, align 8, !tbaa !25
  %56 = tail call ptr %14(ptr noundef %46, ptr noundef %46, ptr noundef %55, ptr noundef nonnull %10) #2
  %57 = tail call ptr %18(ptr noundef %25, ptr noundef %25, ptr noundef %45, ptr noundef nonnull %10) #2
  %58 = tail call ptr %18(ptr noundef %25, ptr noundef %25, ptr noundef %46, ptr noundef nonnull %10) #2
  tail call void @gsModPoolFree(ptr noundef nonnull %10, i32 noundef 2)
  br label %59

59:                                               ; preds = %41, %33
  %60 = getelementptr inbounds i8, ptr %10, i64 16
  %61 = load i32, ptr %60, align 8, !tbaa !26
  %62 = tail call i32 @cpGFpElementIsEquChunk(ptr noundef %25, i32 noundef %61, i64 noundef 0)
  tail call void @gsModPoolFree(ptr noundef nonnull %10, i32 noundef 2)
  br label %63

63:                                               ; preds = %2, %59
  %.0 = phi i32 [ %62, %59 ], [ 0, %2 ]
  ret i32 %.0
}

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

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

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


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