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

; 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._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 void @gfec_point_prod(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %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 i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i8, align 1
  %31 = alloca i8, align 1
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store i32 %5, ptr %14, align 4, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._cpGFpEC, ptr %34, i32 0, i32 4
  %36 = load i32, ptr %35, align 4, !tbaa !11
  store i32 %36, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 5, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 16, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %37 = load ptr, ptr %16, align 8, !tbaa !5
  %38 = load ptr, ptr %16, align 8, !tbaa !5
  %39 = call i64 @IPP_INT_PTR(ptr noundef %38)
  %40 = and i64 %39, 63
  %41 = xor i64 %40, -1
  %42 = add nsw i64 %41, 1
  %43 = and i64 %42, 63
  %44 = getelementptr inbounds i8, ptr %37, i64 %43
  store ptr %44, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %45 = load ptr, ptr %20, align 8, !tbaa !5
  %46 = load i32, ptr %17, align 4, !tbaa !9
  %47 = mul nsw i32 %46, 16
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds i64, ptr %45, i64 %48
  store ptr %49, ptr %21, align 8, !tbaa !5
  %50 = load ptr, ptr %20, align 8, !tbaa !5
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  call void @setupTable(ptr noundef %50, ptr noundef %51, ptr noundef %52)
  %53 = load ptr, ptr %21, align 8, !tbaa !5
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  call void @setupTable(ptr noundef %53, ptr noundef %54, ptr noundef %55)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._cpGFpEC, ptr %56, i32 0, i32 2
  %58 = load ptr, ptr %57, align 8, !tbaa !13
  store ptr %58, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %59 = load ptr, ptr %22, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._cpGFp, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !14
  store ptr %61, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %62 = load ptr, ptr %23, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._gsModEngine, ptr %62, i32 0, i32 3
  %64 = load i32, ptr %63, align 8, !tbaa !16
  store i32 %64, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %65 = load ptr, ptr %23, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct._gsModEngine, ptr %65, i32 0, i32 6
  %67 = load ptr, ptr %66, align 8, !tbaa !19
  %68 = getelementptr inbounds %struct._gsModMethod, ptr %67, i32 0, i32 7
  %69 = load ptr, ptr %68, align 8, !tbaa !20
  store ptr %69, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %70 = load ptr, ptr %23, align 8, !tbaa !5
  %71 = call ptr @gsModPoolAlloc(ptr noundef %70, i32 noundef 1)
  store ptr %71, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = call ptr @cpEcGFpGetPool(i32 noundef 1, ptr noundef %72)
  store ptr %73, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = call ptr @cpEcGFpGetPool(i32 noundef 1, ptr noundef %74)
  store ptr %75, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  store i32 63, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = srem i32 %77, 5
  %79 = sub nsw i32 %76, %78
  store i32 %79, ptr %33, align 4, !tbaa !9
  %80 = load i32, ptr %33, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %98

82:                                               ; preds = %8
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load i32, ptr %33, align 4, !tbaa !9
  %85 = sub nsw i32 %84, 1
  %86 = sdiv i32 %85, 8
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i8, ptr %83, i64 %87
  %89 = load i16, ptr %88, align 2, !tbaa !22
  %90 = zext i16 %89 to i32
  store i32 %90, ptr %29, align 4, !tbaa !9
  %91 = load i32, ptr %29, align 4, !tbaa !9
  %92 = load i32, ptr %33, align 4, !tbaa !9
  %93 = sub nsw i32 %92, 1
  %94 = srem i32 %93, 8
  %95 = ashr i32 %91, %94
  %96 = load i32, ptr %32, align 4, !tbaa !9
  %97 = and i32 %95, %96
  store i32 %97, ptr %29, align 4, !tbaa !9
  br label %99

98:                                               ; preds = %8
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %98, %82
  %100 = load i32, ptr %29, align 4, !tbaa !9
  %101 = trunc i32 %100 to i8
  call void @booth_recode(ptr noundef %31, ptr noundef %30, i8 noundef zeroext %101, i32 noundef 5)
  %102 = load ptr, ptr %27, align 8, !tbaa !5
  %103 = load i32, ptr %17, align 4, !tbaa !9
  %104 = load ptr, ptr %20, align 8, !tbaa !5
  %105 = load i8, ptr %30, align 1, !tbaa !24
  %106 = zext i8 %105 to i32
  %107 = sub nsw i32 %106, 1
  call void @gsScrambleGet_sscm(ptr noundef %102, i32 noundef %103, ptr noundef %104, i32 noundef %107, i32 noundef 4)
  %108 = load i32, ptr %33, align 4, !tbaa !9
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %126

110:                                              ; preds = %99
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = load i32, ptr %33, align 4, !tbaa !9
  %113 = sub nsw i32 %112, 1
  %114 = sdiv i32 %113, 8
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i8, ptr %111, i64 %115
  %117 = load i16, ptr %116, align 2, !tbaa !22
  %118 = zext i16 %117 to i32
  store i32 %118, ptr %29, align 4, !tbaa !9
  %119 = load i32, ptr %29, align 4, !tbaa !9
  %120 = load i32, ptr %33, align 4, !tbaa !9
  %121 = sub nsw i32 %120, 1
  %122 = srem i32 %121, 8
  %123 = ashr i32 %119, %122
  %124 = load i32, ptr %32, align 4, !tbaa !9
  %125 = and i32 %123, %124
  store i32 %125, ptr %29, align 4, !tbaa !9
  br label %127

126:                                              ; preds = %99
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %126, %110
  %128 = load i32, ptr %29, align 4, !tbaa !9
  %129 = trunc i32 %128 to i8
  call void @booth_recode(ptr noundef %31, ptr noundef %30, i8 noundef zeroext %129, i32 noundef 5)
  %130 = load ptr, ptr %28, align 8, !tbaa !5
  %131 = load i32, ptr %17, align 4, !tbaa !9
  %132 = load ptr, ptr %21, align 8, !tbaa !5
  %133 = load i8, ptr %30, align 1, !tbaa !24
  %134 = zext i8 %133 to i32
  %135 = sub nsw i32 %134, 1
  call void @gsScrambleGet_sscm(ptr noundef %130, i32 noundef %131, ptr noundef %132, i32 noundef %135, i32 noundef 4)
  %136 = load ptr, ptr %27, align 8, !tbaa !5
  %137 = load ptr, ptr %27, align 8, !tbaa !5
  %138 = load ptr, ptr %28, align 8, !tbaa !5
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_add(ptr noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %139)
  %140 = load i32, ptr %33, align 4, !tbaa !9
  %141 = sub nsw i32 %140, 5
  store i32 %141, ptr %33, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %251, %127
  %143 = load i32, ptr %33, align 4, !tbaa !9
  %144 = icmp sge i32 %143, 5
  br i1 %144, label %145, label %254

145:                                              ; preds = %142
  %146 = load ptr, ptr %27, align 8, !tbaa !5
  %147 = load ptr, ptr %27, align 8, !tbaa !5
  %148 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_double(ptr noundef %146, ptr noundef %147, ptr noundef %148)
  %149 = load ptr, ptr %27, align 8, !tbaa !5
  %150 = load ptr, ptr %27, align 8, !tbaa !5
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_double(ptr noundef %149, ptr noundef %150, ptr noundef %151)
  %152 = load ptr, ptr %27, align 8, !tbaa !5
  %153 = load ptr, ptr %27, align 8, !tbaa !5
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_double(ptr noundef %152, ptr noundef %153, ptr noundef %154)
  %155 = load ptr, ptr %27, align 8, !tbaa !5
  %156 = load ptr, ptr %27, align 8, !tbaa !5
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_double(ptr noundef %155, ptr noundef %156, ptr noundef %157)
  %158 = load ptr, ptr %27, align 8, !tbaa !5
  %159 = load ptr, ptr %27, align 8, !tbaa !5
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_double(ptr noundef %158, ptr noundef %159, ptr noundef %160)
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = load i32, ptr %33, align 4, !tbaa !9
  %163 = sub nsw i32 %162, 1
  %164 = sdiv i32 %163, 8
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds i8, ptr %161, i64 %165
  %167 = load i16, ptr %166, align 2, !tbaa !22
  %168 = zext i16 %167 to i32
  store i32 %168, ptr %29, align 4, !tbaa !9
  %169 = load i32, ptr %29, align 4, !tbaa !9
  %170 = load i32, ptr %33, align 4, !tbaa !9
  %171 = sub nsw i32 %170, 1
  %172 = srem i32 %171, 8
  %173 = ashr i32 %169, %172
  %174 = load i32, ptr %32, align 4, !tbaa !9
  %175 = and i32 %173, %174
  store i32 %175, ptr %29, align 4, !tbaa !9
  %176 = load i32, ptr %29, align 4, !tbaa !9
  %177 = trunc i32 %176 to i8
  call void @booth_recode(ptr noundef %31, ptr noundef %30, i8 noundef zeroext %177, i32 noundef 5)
  %178 = load ptr, ptr %28, align 8, !tbaa !5
  %179 = load i32, ptr %17, align 4, !tbaa !9
  %180 = load ptr, ptr %20, align 8, !tbaa !5
  %181 = load i8, ptr %30, align 1, !tbaa !24
  %182 = zext i8 %181 to i32
  %183 = sub nsw i32 %182, 1
  call void @gsScrambleGet_sscm(ptr noundef %178, i32 noundef %179, ptr noundef %180, i32 noundef %183, i32 noundef 4)
  %184 = load ptr, ptr %25, align 8, !tbaa !5
  %185 = load ptr, ptr %26, align 8, !tbaa !5
  %186 = load ptr, ptr %28, align 8, !tbaa !5
  %187 = load i32, ptr %24, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds i64, ptr %186, i64 %188
  %190 = load ptr, ptr %23, align 8, !tbaa !5
  %191 = call ptr %184(ptr noundef %185, ptr noundef %189, ptr noundef %190)
  %192 = load ptr, ptr %28, align 8, !tbaa !5
  %193 = load i32, ptr %24, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds i64, ptr %192, i64 %194
  %196 = load ptr, ptr %26, align 8, !tbaa !5
  %197 = load i32, ptr %24, align 4, !tbaa !9
  %198 = load i8, ptr %31, align 1, !tbaa !24
  %199 = zext i8 %198 to i64
  %200 = call i64 @cpIsZero_ct(i64 noundef %199)
  %201 = xor i64 %200, -1
  call void @cpMaskedReplace_ct(ptr noundef %195, ptr noundef %196, i32 noundef %197, i64 noundef %201)
  %202 = load ptr, ptr %27, align 8, !tbaa !5
  %203 = load ptr, ptr %27, align 8, !tbaa !5
  %204 = load ptr, ptr %28, align 8, !tbaa !5
  %205 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_add(ptr noundef %202, ptr noundef %203, ptr noundef %204, ptr noundef %205)
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = load i32, ptr %33, align 4, !tbaa !9
  %208 = sub nsw i32 %207, 1
  %209 = sdiv i32 %208, 8
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds i8, ptr %206, i64 %210
  %212 = load i16, ptr %211, align 2, !tbaa !22
  %213 = zext i16 %212 to i32
  store i32 %213, ptr %29, align 4, !tbaa !9
  %214 = load i32, ptr %29, align 4, !tbaa !9
  %215 = load i32, ptr %33, align 4, !tbaa !9
  %216 = sub nsw i32 %215, 1
  %217 = srem i32 %216, 8
  %218 = ashr i32 %214, %217
  %219 = load i32, ptr %32, align 4, !tbaa !9
  %220 = and i32 %218, %219
  store i32 %220, ptr %29, align 4, !tbaa !9
  %221 = load i32, ptr %29, align 4, !tbaa !9
  %222 = trunc i32 %221 to i8
  call void @booth_recode(ptr noundef %31, ptr noundef %30, i8 noundef zeroext %222, i32 noundef 5)
  %223 = load ptr, ptr %28, align 8, !tbaa !5
  %224 = load i32, ptr %17, align 4, !tbaa !9
  %225 = load ptr, ptr %21, align 8, !tbaa !5
  %226 = load i8, ptr %30, align 1, !tbaa !24
  %227 = zext i8 %226 to i32
  %228 = sub nsw i32 %227, 1
  call void @gsScrambleGet_sscm(ptr noundef %223, i32 noundef %224, ptr noundef %225, i32 noundef %228, i32 noundef 4)
  %229 = load ptr, ptr %25, align 8, !tbaa !5
  %230 = load ptr, ptr %26, align 8, !tbaa !5
  %231 = load ptr, ptr %28, align 8, !tbaa !5
  %232 = load i32, ptr %24, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds i64, ptr %231, i64 %233
  %235 = load ptr, ptr %23, align 8, !tbaa !5
  %236 = call ptr %229(ptr noundef %230, ptr noundef %234, ptr noundef %235)
  %237 = load ptr, ptr %28, align 8, !tbaa !5
  %238 = load i32, ptr %24, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds i64, ptr %237, i64 %239
  %241 = load ptr, ptr %26, align 8, !tbaa !5
  %242 = load i32, ptr %24, align 4, !tbaa !9
  %243 = load i8, ptr %31, align 1, !tbaa !24
  %244 = zext i8 %243 to i64
  %245 = call i64 @cpIsZero_ct(i64 noundef %244)
  %246 = xor i64 %245, -1
  call void @cpMaskedReplace_ct(ptr noundef %240, ptr noundef %241, i32 noundef %242, i64 noundef %246)
  %247 = load ptr, ptr %27, align 8, !tbaa !5
  %248 = load ptr, ptr %27, align 8, !tbaa !5
  %249 = load ptr, ptr %28, align 8, !tbaa !5
  %250 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_add(ptr noundef %247, ptr noundef %248, ptr noundef %249, ptr noundef %250)
  br label %251

251:                                              ; preds = %145
  %252 = load i32, ptr %33, align 4, !tbaa !9
  %253 = sub nsw i32 %252, 5
  store i32 %253, ptr %33, align 4, !tbaa !9
  br label %142, !llvm.loop !25

254:                                              ; preds = %142
  %255 = load ptr, ptr %27, align 8, !tbaa !5
  %256 = load ptr, ptr %27, align 8, !tbaa !5
  %257 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_double(ptr noundef %255, ptr noundef %256, ptr noundef %257)
  %258 = load ptr, ptr %27, align 8, !tbaa !5
  %259 = load ptr, ptr %27, align 8, !tbaa !5
  %260 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_double(ptr noundef %258, ptr noundef %259, ptr noundef %260)
  %261 = load ptr, ptr %27, align 8, !tbaa !5
  %262 = load ptr, ptr %27, align 8, !tbaa !5
  %263 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_double(ptr noundef %261, ptr noundef %262, ptr noundef %263)
  %264 = load ptr, ptr %27, align 8, !tbaa !5
  %265 = load ptr, ptr %27, align 8, !tbaa !5
  %266 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_double(ptr noundef %264, ptr noundef %265, ptr noundef %266)
  %267 = load ptr, ptr %27, align 8, !tbaa !5
  %268 = load ptr, ptr %27, align 8, !tbaa !5
  %269 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_double(ptr noundef %267, ptr noundef %268, ptr noundef %269)
  %270 = load ptr, ptr %11, align 8, !tbaa !5
  %271 = getelementptr inbounds i8, ptr %270, i64 0
  %272 = load i16, ptr %271, align 2, !tbaa !22
  %273 = zext i16 %272 to i32
  store i32 %273, ptr %29, align 4, !tbaa !9
  %274 = load i32, ptr %29, align 4, !tbaa !9
  %275 = shl i32 %274, 1
  %276 = load i32, ptr %32, align 4, !tbaa !9
  %277 = and i32 %275, %276
  store i32 %277, ptr %29, align 4, !tbaa !9
  %278 = load i32, ptr %29, align 4, !tbaa !9
  %279 = trunc i32 %278 to i8
  call void @booth_recode(ptr noundef %31, ptr noundef %30, i8 noundef zeroext %279, i32 noundef 5)
  %280 = load ptr, ptr %28, align 8, !tbaa !5
  %281 = load i32, ptr %17, align 4, !tbaa !9
  %282 = load ptr, ptr %20, align 8, !tbaa !5
  %283 = load i8, ptr %30, align 1, !tbaa !24
  %284 = zext i8 %283 to i32
  %285 = sub nsw i32 %284, 1
  call void @gsScrambleGet_sscm(ptr noundef %280, i32 noundef %281, ptr noundef %282, i32 noundef %285, i32 noundef 4)
  %286 = load ptr, ptr %25, align 8, !tbaa !5
  %287 = load ptr, ptr %26, align 8, !tbaa !5
  %288 = load ptr, ptr %28, align 8, !tbaa !5
  %289 = load i32, ptr %24, align 4, !tbaa !9
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds i64, ptr %288, i64 %290
  %292 = load ptr, ptr %23, align 8, !tbaa !5
  %293 = call ptr %286(ptr noundef %287, ptr noundef %291, ptr noundef %292)
  %294 = load ptr, ptr %28, align 8, !tbaa !5
  %295 = load i32, ptr %24, align 4, !tbaa !9
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds i64, ptr %294, i64 %296
  %298 = load ptr, ptr %26, align 8, !tbaa !5
  %299 = load i32, ptr %24, align 4, !tbaa !9
  %300 = load i8, ptr %31, align 1, !tbaa !24
  %301 = zext i8 %300 to i64
  %302 = call i64 @cpIsZero_ct(i64 noundef %301)
  %303 = xor i64 %302, -1
  call void @cpMaskedReplace_ct(ptr noundef %297, ptr noundef %298, i32 noundef %299, i64 noundef %303)
  %304 = load ptr, ptr %27, align 8, !tbaa !5
  %305 = load ptr, ptr %27, align 8, !tbaa !5
  %306 = load ptr, ptr %28, align 8, !tbaa !5
  %307 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_add(ptr noundef %304, ptr noundef %305, ptr noundef %306, ptr noundef %307)
  %308 = load ptr, ptr %13, align 8, !tbaa !5
  %309 = getelementptr inbounds i8, ptr %308, i64 0
  %310 = load i16, ptr %309, align 2, !tbaa !22
  %311 = zext i16 %310 to i32
  store i32 %311, ptr %29, align 4, !tbaa !9
  %312 = load i32, ptr %29, align 4, !tbaa !9
  %313 = shl i32 %312, 1
  %314 = load i32, ptr %32, align 4, !tbaa !9
  %315 = and i32 %313, %314
  store i32 %315, ptr %29, align 4, !tbaa !9
  %316 = load i32, ptr %29, align 4, !tbaa !9
  %317 = trunc i32 %316 to i8
  call void @booth_recode(ptr noundef %31, ptr noundef %30, i8 noundef zeroext %317, i32 noundef 5)
  %318 = load ptr, ptr %28, align 8, !tbaa !5
  %319 = load i32, ptr %17, align 4, !tbaa !9
  %320 = load ptr, ptr %21, align 8, !tbaa !5
  %321 = load i8, ptr %30, align 1, !tbaa !24
  %322 = zext i8 %321 to i32
  %323 = sub nsw i32 %322, 1
  call void @gsScrambleGet_sscm(ptr noundef %318, i32 noundef %319, ptr noundef %320, i32 noundef %323, i32 noundef 4)
  %324 = load ptr, ptr %25, align 8, !tbaa !5
  %325 = load ptr, ptr %26, align 8, !tbaa !5
  %326 = load ptr, ptr %28, align 8, !tbaa !5
  %327 = load i32, ptr %24, align 4, !tbaa !9
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds i64, ptr %326, i64 %328
  %330 = load ptr, ptr %23, align 8, !tbaa !5
  %331 = call ptr %324(ptr noundef %325, ptr noundef %329, ptr noundef %330)
  %332 = load ptr, ptr %28, align 8, !tbaa !5
  %333 = load i32, ptr %24, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds i64, ptr %332, i64 %334
  %336 = load ptr, ptr %26, align 8, !tbaa !5
  %337 = load i32, ptr %24, align 4, !tbaa !9
  %338 = load i8, ptr %31, align 1, !tbaa !24
  %339 = zext i8 %338 to i64
  %340 = call i64 @cpIsZero_ct(i64 noundef %339)
  %341 = xor i64 %340, -1
  call void @cpMaskedReplace_ct(ptr noundef %335, ptr noundef %336, i32 noundef %337, i64 noundef %341)
  %342 = load ptr, ptr %27, align 8, !tbaa !5
  %343 = load ptr, ptr %27, align 8, !tbaa !5
  %344 = load ptr, ptr %28, align 8, !tbaa !5
  %345 = load ptr, ptr %15, align 8, !tbaa !5
  call void @gfec_point_add(ptr noundef %342, ptr noundef %343, ptr noundef %344, ptr noundef %345)
  %346 = load ptr, ptr %9, align 8, !tbaa !5
  %347 = load ptr, ptr %27, align 8, !tbaa !5
  %348 = load i32, ptr %17, align 4, !tbaa !9
  %349 = call ptr @cpGFpElementCopy(ptr noundef %346, ptr noundef %347, i32 noundef %348)
  %350 = load ptr, ptr %15, align 8, !tbaa !5
  call void @cpEcGFpReleasePool(i32 noundef 2, ptr noundef %350)
  %351 = load ptr, ptr %23, align 8, !tbaa !5
  call void @gsModPoolFree(ptr noundef %351, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  ret void
}

; 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_INT_PTR(ptr noundef) #2

declare void @setupTable(ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

declare void @gsScrambleGet_sscm(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #3

declare void @gfec_point_add(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @gfec_point_double(ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

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

; 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 20}
!12 = !{!"_cpGFpEC", !10, i64 0, !10, i64 4, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !10, i64 68, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !6, i64 8}
!15 = !{!"_cpGFp", !10, i64 0, !10, i64 4, !6, i64 8}
!16 = !{!17, !10, i64 16}
!17 = !{!"_gsModEngine", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !18, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !6, i64 104}
!18 = !{!"long long", !7, i64 0}
!19 = !{!17, !6, i64 32}
!20 = !{!21, !6, i64 56}
!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 = !{!23, !23, i64 0}
!23 = !{!"short", !7, i64 0}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; 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 void @gfec_point_prod(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr nocapture noundef readonly %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = getelementptr inbounds i8, ptr %6, i64 20
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = tail call i64 @IPP_INT_PTR(ptr noundef %7)
  %14 = sub i64 0, %13
  %15 = and i64 %14, 63
  %16 = getelementptr inbounds i8, ptr %7, i64 %15
  %17 = shl nsw i32 %12, 4
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds i64, ptr %16, i64 %18
  tail call void @setupTable(ptr noundef %16, ptr noundef %1, ptr noundef %6) #4
  tail call void @setupTable(ptr noundef %19, ptr noundef %3, ptr noundef %6) #4
  %20 = getelementptr inbounds i8, ptr %6, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !12
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load i32, ptr %24, align 8, !tbaa !14
  %26 = getelementptr inbounds i8, ptr %23, i64 32
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %27, i64 56
  %29 = load ptr, ptr %28, align 8, !tbaa !18
  %30 = tail call ptr @gsModPoolAlloc(ptr noundef %23, i32 noundef 1)
  %31 = tail call ptr @cpEcGFpGetPool(i32 noundef 1, ptr noundef %6)
  %32 = tail call ptr @cpEcGFpGetPool(i32 noundef 1, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #4
  %33 = srem i32 %5, 5
  %34 = sub nsw i32 %5, %33
  %.not = icmp eq i32 %33, %5
  br i1 %.not, label %.critedge, label %35

35:                                               ; preds = %8
  %36 = add nsw i32 %34, -1
  %37 = sdiv i32 %36, 8
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr %2, i64 %38
  %40 = load i16, ptr %39, align 2, !tbaa !20
  %41 = zext i16 %40 to i32
  %42 = and i32 %36, 7
  %43 = lshr i32 %41, %42
  %44 = trunc i32 %43 to i8
  %45 = and i8 %44, 63
  call void @booth_recode(ptr noundef nonnull %10, ptr noundef nonnull %9, i8 noundef zeroext %45, i32 noundef 5)
  %46 = load i8, ptr %9, align 1, !tbaa !22
  %47 = zext i8 %46 to i32
  %48 = add nsw i32 %47, -1
  call void @gsScrambleGet_sscm(ptr noundef %31, i32 noundef %12, ptr noundef %16, i32 noundef %48, i32 noundef 4) #4
  %49 = getelementptr inbounds i8, ptr %4, i64 %38
  %50 = load i16, ptr %49, align 2, !tbaa !20
  %51 = zext i16 %50 to i32
  %52 = lshr i32 %51, %42
  %53 = trunc i32 %52 to i8
  %54 = and i8 %53, 63
  br label %58

.critedge:                                        ; preds = %8
  call void @booth_recode(ptr noundef nonnull %10, ptr noundef nonnull %9, i8 noundef zeroext 0, i32 noundef 5)
  %55 = load i8, ptr %9, align 1, !tbaa !22
  %56 = zext i8 %55 to i32
  %57 = add nsw i32 %56, -1
  call void @gsScrambleGet_sscm(ptr noundef %31, i32 noundef %12, ptr noundef %16, i32 noundef %57, i32 noundef 4) #4
  br label %58

58:                                               ; preds = %.critedge, %35
  %.1 = phi i8 [ %54, %35 ], [ 0, %.critedge ]
  call void @booth_recode(ptr noundef nonnull %10, ptr noundef nonnull %9, i8 noundef zeroext %.1, i32 noundef 5)
  %59 = load i8, ptr %9, align 1, !tbaa !22
  %60 = zext i8 %59 to i32
  %61 = add nsw i32 %60, -1
  call void @gsScrambleGet_sscm(ptr noundef %32, i32 noundef %12, ptr noundef %19, i32 noundef %61, i32 noundef 4) #4
  call void @gfec_point_add(ptr noundef %31, ptr noundef %31, ptr noundef %32, ptr noundef nonnull %6) #4
  %62 = icmp sgt i32 %34, 9
  %63 = sext i32 %25 to i64
  br i1 %62, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %58
  %64 = getelementptr inbounds i64, ptr %32, i64 %63
  br label %65

65:                                               ; preds = %.lr.ph, %65
  %.0.in168 = phi i32 [ %34, %.lr.ph ], [ %.0, %65 ]
  %.0 = add nsw i32 %.0.in168, -5
  call void @gfec_point_double(ptr noundef %31, ptr noundef %31, ptr noundef %6) #4
  call void @gfec_point_double(ptr noundef %31, ptr noundef %31, ptr noundef %6) #4
  call void @gfec_point_double(ptr noundef %31, ptr noundef %31, ptr noundef %6) #4
  call void @gfec_point_double(ptr noundef %31, ptr noundef %31, ptr noundef %6) #4
  call void @gfec_point_double(ptr noundef %31, ptr noundef %31, ptr noundef %6) #4
  %66 = add nsw i32 %.0.in168, -6
  %67 = lshr i32 %66, 3
  %68 = zext nneg i32 %67 to i64
  %69 = getelementptr inbounds i8, ptr %2, i64 %68
  %70 = load i16, ptr %69, align 2, !tbaa !20
  %71 = zext i16 %70 to i32
  %72 = and i32 %66, 7
  %73 = lshr i32 %71, %72
  %74 = trunc i32 %73 to i8
  %75 = and i8 %74, 63
  call void @booth_recode(ptr noundef nonnull %10, ptr noundef nonnull %9, i8 noundef zeroext %75, i32 noundef 5)
  %76 = load i8, ptr %9, align 1, !tbaa !22
  %77 = zext i8 %76 to i32
  %78 = add nsw i32 %77, -1
  call void @gsScrambleGet_sscm(ptr noundef %32, i32 noundef %12, ptr noundef %16, i32 noundef %78, i32 noundef 4) #4
  %79 = call ptr %29(ptr noundef %30, ptr noundef %64, ptr noundef %23) #4
  %80 = load i8, ptr %10, align 1, !tbaa !22
  %81 = zext i8 %80 to i64
  %82 = call i64 @cpIsZero_ct(i64 noundef %81)
  %83 = xor i64 %82, -1
  call void @cpMaskedReplace_ct(ptr noundef %64, ptr noundef %30, i32 noundef %25, i64 noundef %83)
  call void @gfec_point_add(ptr noundef %31, ptr noundef %31, ptr noundef %32, ptr noundef %6) #4
  %84 = getelementptr inbounds i8, ptr %4, i64 %68
  %85 = load i16, ptr %84, align 2, !tbaa !20
  %86 = zext i16 %85 to i32
  %87 = lshr i32 %86, %72
  %88 = trunc i32 %87 to i8
  %89 = and i8 %88, 63
  call void @booth_recode(ptr noundef nonnull %10, ptr noundef nonnull %9, i8 noundef zeroext %89, i32 noundef 5)
  %90 = load i8, ptr %9, align 1, !tbaa !22
  %91 = zext i8 %90 to i32
  %92 = add nsw i32 %91, -1
  call void @gsScrambleGet_sscm(ptr noundef %32, i32 noundef %12, ptr noundef %19, i32 noundef %92, i32 noundef 4) #4
  %93 = call ptr %29(ptr noundef %30, ptr noundef %64, ptr noundef %23) #4
  %94 = load i8, ptr %10, align 1, !tbaa !22
  %95 = zext i8 %94 to i64
  %96 = call i64 @cpIsZero_ct(i64 noundef %95)
  %97 = xor i64 %96, -1
  call void @cpMaskedReplace_ct(ptr noundef %64, ptr noundef %30, i32 noundef %25, i64 noundef %97)
  call void @gfec_point_add(ptr noundef %31, ptr noundef %31, ptr noundef %32, ptr noundef %6) #4
  %98 = icmp ugt i32 %.0.in168, 14
  br i1 %98, label %65, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %65, %58
  call void @gfec_point_double(ptr noundef %31, ptr noundef %31, ptr noundef %6) #4
  call void @gfec_point_double(ptr noundef %31, ptr noundef %31, ptr noundef %6) #4
  call void @gfec_point_double(ptr noundef %31, ptr noundef %31, ptr noundef %6) #4
  call void @gfec_point_double(ptr noundef %31, ptr noundef %31, ptr noundef %6) #4
  call void @gfec_point_double(ptr noundef %31, ptr noundef %31, ptr noundef %6) #4
  %99 = load i16, ptr %2, align 2, !tbaa !20
  %100 = trunc i16 %99 to i8
  %101 = shl i8 %100, 1
  %102 = and i8 %101, 62
  call void @booth_recode(ptr noundef nonnull %10, ptr noundef nonnull %9, i8 noundef zeroext %102, i32 noundef 5)
  %103 = load i8, ptr %9, align 1, !tbaa !22
  %104 = zext i8 %103 to i32
  %105 = add nsw i32 %104, -1
  call void @gsScrambleGet_sscm(ptr noundef %32, i32 noundef %12, ptr noundef %16, i32 noundef %105, i32 noundef 4) #4
  %106 = getelementptr inbounds i64, ptr %32, i64 %63
  %107 = call ptr %29(ptr noundef %30, ptr noundef %106, ptr noundef %23) #4
  %108 = load i8, ptr %10, align 1, !tbaa !22
  %109 = zext i8 %108 to i64
  %110 = call i64 @cpIsZero_ct(i64 noundef %109)
  %111 = xor i64 %110, -1
  call void @cpMaskedReplace_ct(ptr noundef %106, ptr noundef %30, i32 noundef %25, i64 noundef %111)
  call void @gfec_point_add(ptr noundef %31, ptr noundef %31, ptr noundef %32, ptr noundef %6) #4
  %112 = load i16, ptr %4, align 2, !tbaa !20
  %113 = trunc i16 %112 to i8
  %114 = shl i8 %113, 1
  %115 = and i8 %114, 62
  call void @booth_recode(ptr noundef nonnull %10, ptr noundef nonnull %9, i8 noundef zeroext %115, i32 noundef 5)
  %116 = load i8, ptr %9, align 1, !tbaa !22
  %117 = zext i8 %116 to i32
  %118 = add nsw i32 %117, -1
  call void @gsScrambleGet_sscm(ptr noundef %32, i32 noundef %12, ptr noundef %19, i32 noundef %118, i32 noundef 4) #4
  %119 = call ptr %29(ptr noundef %30, ptr noundef %106, ptr noundef %23) #4
  %120 = load i8, ptr %10, align 1, !tbaa !22
  %121 = zext i8 %120 to i64
  %122 = call i64 @cpIsZero_ct(i64 noundef %121)
  %123 = xor i64 %122, -1
  call void @cpMaskedReplace_ct(ptr noundef %106, ptr noundef %30, i32 noundef %25, i64 noundef %123)
  call void @gfec_point_add(ptr noundef %31, ptr noundef %31, ptr noundef %32, ptr noundef %6) #4
  %124 = call ptr @cpGFpElementCopy(ptr noundef %0, ptr noundef %31, i32 noundef %12)
  call void @cpEcGFpReleasePool(i32 noundef 2, ptr noundef %6)
  call void @gsModPoolFree(ptr noundef %23, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  ret void
}

; 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_INT_PTR(ptr noundef) local_unnamed_addr #2

declare void @setupTable(ptr noundef, 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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @booth_recode(ptr noundef, ptr noundef, i8 noundef zeroext, i32 noundef) local_unnamed_addr #2

declare void @gsScrambleGet_sscm(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @gfec_point_add(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @gfec_point_double(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

; 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 20}
!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, !7, i64 16}
!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 = !{!15, !10, i64 32}
!18 = !{!19, !10, i64 56}
!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 = !{!21, !21, i64 0}
!21 = !{!"short", !8, i64 0}
!22 = !{!8, !8, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass