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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpECSignDSA(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca i32, align 4
  %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 i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %struct._cpGFpECPoint, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = 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 ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = icmp eq ptr null, %40
  br i1 %41, label %42, label %43

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

43:                                               ; preds = %7
  %44 = load ptr, ptr %15, align 8, !tbaa !5
  %45 = icmp eq ptr null, %44
  br i1 %45, label %46, label %47

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

47:                                               ; preds = %43
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._cpGFpEC, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !9
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = call i64 @IPP_UINT_PTR(ptr noundef %51)
  %53 = trunc i64 %52 to i32
  %54 = xor i32 %50, %53
  %55 = icmp eq i32 %54, 1129136461
  br i1 %55, label %57, label %56

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

57:                                               ; preds = %47
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._cpGFpEC, ptr %58, i32 0, i32 3
  %60 = load i32, ptr %59, align 8, !tbaa !12
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %63, label %62

62:                                               ; preds = %57
  store i32 -13, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

63:                                               ; preds = %57
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._cpGFpEC, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !13
  store ptr %66, ptr %16, align 8, !tbaa !5
  %67 = load ptr, ptr %16, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._cpGFp, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !14
  store ptr %69, ptr %17, align 8, !tbaa !5
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._gsModEngine, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 8, !tbaa !16
  %73 = icmp slt i32 1, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %63
  store i32 -14, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

75:                                               ; preds = %63
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = icmp eq ptr null, %76
  br i1 %77, label %78, label %79

78:                                               ; preds = %75
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

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

88:                                               ; preds = %79
  store i32 -13, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

89:                                               ; preds = %79
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._cpBigNum, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 4, !tbaa !21
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %95

94:                                               ; preds = %89
  store i32 -1010, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

95:                                               ; preds = %89
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct._cpGFpEC, ptr %96, i32 0, i32 5
  %98 = load i32, ptr %97, align 8, !tbaa !22
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = call i32 @cpBN_bitsize(ptr noundef %99)
  %101 = icmp slt i32 %98, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %95
  store i32 -1010, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

103:                                              ; preds = %95
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = icmp eq ptr null, %104
  br i1 %105, label %106, label %107

106:                                              ; preds = %103
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

107:                                              ; preds = %103
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = icmp eq ptr null, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %107
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

111:                                              ; preds = %107
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct._cpBigNum, ptr %112, i32 0, i32 0
  %114 = load i32, ptr %113, align 8, !tbaa !19
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = call i64 @IPP_UINT_PTR(ptr noundef %115)
  %117 = trunc i64 %116 to i32
  %118 = xor i32 %114, %117
  %119 = icmp eq i32 %118, 1112098638
  br i1 %119, label %121, label %120

120:                                              ; preds = %111
  store i32 -13, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

121:                                              ; preds = %111
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct._cpBigNum, ptr %122, i32 0, i32 0
  %124 = load i32, ptr %123, align 8, !tbaa !19
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = call i64 @IPP_UINT_PTR(ptr noundef %125)
  %127 = trunc i64 %126 to i32
  %128 = xor i32 %124, %127
  %129 = icmp eq i32 %128, 1112098638
  br i1 %129, label %131, label %130

130:                                              ; preds = %121
  store i32 -13, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

131:                                              ; preds = %121
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct._cpBigNum, ptr %132, i32 0, i32 3
  %134 = load i32, ptr %133, align 4, !tbaa !23
  %135 = mul nsw i32 %134, 64
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct._cpGFpEC, ptr %136, i32 0, i32 5
  %138 = load i32, ptr %137, align 8, !tbaa !22
  %139 = icmp slt i32 %135, %138
  br i1 %139, label %140, label %141

140:                                              ; preds = %131
  store i32 -7, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

141:                                              ; preds = %131
  %142 = load ptr, ptr %13, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct._cpBigNum, ptr %142, i32 0, i32 3
  %144 = load i32, ptr %143, align 4, !tbaa !23
  %145 = mul nsw i32 %144, 64
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct._cpGFpEC, ptr %146, i32 0, i32 5
  %148 = load i32, ptr %147, align 8, !tbaa !22
  %149 = icmp slt i32 %145, %148
  br i1 %149, label %150, label %151

150:                                              ; preds = %141
  store i32 -7, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

151:                                              ; preds = %141
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = icmp eq ptr null, %152
  br i1 %153, label %154, label %155

154:                                              ; preds = %151
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

155:                                              ; preds = %151
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = icmp eq ptr null, %156
  br i1 %157, label %158, label %159

158:                                              ; preds = %155
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

159:                                              ; preds = %155
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct._cpBigNum, ptr %160, i32 0, i32 0
  %162 = load i32, ptr %161, align 8, !tbaa !19
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = call i64 @IPP_UINT_PTR(ptr noundef %163)
  %165 = trunc i64 %164 to i32
  %166 = xor i32 %162, %165
  %167 = icmp eq i32 %166, 1112098638
  br i1 %167, label %169, label %168

168:                                              ; preds = %159
  store i32 -13, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

169:                                              ; preds = %159
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct._cpBigNum, ptr %170, i32 0, i32 1
  %172 = load i32, ptr %171, align 4, !tbaa !21
  %173 = icmp eq i32 %172, 0
  br i1 %173, label %174, label %175

174:                                              ; preds = %169
  store i32 -1008, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

175:                                              ; preds = %169
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct._cpBigNum, ptr %176, i32 0, i32 0
  %178 = load i32, ptr %177, align 8, !tbaa !19
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = call i64 @IPP_UINT_PTR(ptr noundef %179)
  %181 = trunc i64 %180 to i32
  %182 = xor i32 %178, %181
  %183 = icmp eq i32 %182, 1112098638
  br i1 %183, label %185, label %184

184:                                              ; preds = %175
  store i32 -13, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

185:                                              ; preds = %175
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct._cpBigNum, ptr %186, i32 0, i32 1
  %188 = load i32, ptr %187, align 4, !tbaa !21
  %189 = icmp eq i32 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %185
  store i32 -1011, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %484

191:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct._cpGFpEC, ptr %192, i32 0, i32 13
  %194 = load ptr, ptr %193, align 8, !tbaa !24
  store ptr %194, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %195 = load ptr, ptr %19, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct._gsModEngine, ptr %195, i32 0, i32 8
  %197 = load ptr, ptr %196, align 8, !tbaa !25
  store ptr %197, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %198 = load ptr, ptr %19, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct._gsModEngine, ptr %198, i32 0, i32 3
  %200 = load i32, ptr %199, align 8, !tbaa !26
  store i32 %200, ptr %21, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %201 = load ptr, ptr %12, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct._cpBigNum, ptr %201, i32 0, i32 4
  %203 = load ptr, ptr %202, align 8, !tbaa !28
  store ptr %203, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct._cpBigNum, ptr %204, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !28
  store ptr %206, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct._cpBigNum, ptr %207, i32 0, i32 5
  %209 = load ptr, ptr %208, align 8, !tbaa !29
  store ptr %209, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %210 = load ptr, ptr %13, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct._cpBigNum, ptr %210, i32 0, i32 5
  %212 = load ptr, ptr %211, align 8, !tbaa !29
  store ptr %212, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct._cpBigNum, ptr %213, i32 0, i32 4
  %215 = load ptr, ptr %214, align 8, !tbaa !28
  store ptr %215, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct._cpBigNum, ptr %216, i32 0, i32 2
  %218 = load i32, ptr %217, align 8, !tbaa !30
  store i32 %218, ptr %27, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct._cpBigNum, ptr %219, i32 0, i32 4
  %221 = load ptr, ptr %220, align 8, !tbaa !28
  store ptr %221, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %222 = load ptr, ptr %11, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct._cpBigNum, ptr %222, i32 0, i32 2
  %224 = load i32, ptr %223, align 8, !tbaa !30
  store i32 %224, ptr %29, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct._cpBigNum, ptr %225, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !28
  store ptr %227, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct._cpBigNum, ptr %228, i32 0, i32 2
  %230 = load i32, ptr %229, align 8, !tbaa !30
  store i32 %230, ptr %31, align 4, !tbaa !27
  %231 = load ptr, ptr %26, align 8, !tbaa !5
  %232 = load i32, ptr %27, align 4, !tbaa !27
  %233 = call i32 @cpEqu_BNU_CHUNK(ptr noundef %231, i32 noundef %232, i64 noundef 0)
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %242, label %235

235:                                              ; preds = %191
  %236 = load ptr, ptr %26, align 8, !tbaa !5
  %237 = load i32, ptr %27, align 4, !tbaa !27
  %238 = load ptr, ptr %20, align 8, !tbaa !5
  %239 = load i32, ptr %21, align 4, !tbaa !27
  %240 = call i32 @cpCmp_BNU(ptr noundef %236, i32 noundef %237, ptr noundef %238, i32 noundef %239)
  %241 = icmp sle i32 0, %240
  br i1 %241, label %242, label %243

242:                                              ; preds = %235, %191
  store i32 -1008, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %483

243:                                              ; preds = %235
  %244 = load ptr, ptr %28, align 8, !tbaa !5
  %245 = load i32, ptr %29, align 4, !tbaa !27
  %246 = call i32 @cpEqu_BNU_CHUNK(ptr noundef %244, i32 noundef %245, i64 noundef 0)
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %255, label %248

248:                                              ; preds = %243
  %249 = load ptr, ptr %28, align 8, !tbaa !5
  %250 = load i32, ptr %29, align 4, !tbaa !27
  %251 = load ptr, ptr %20, align 8, !tbaa !5
  %252 = load i32, ptr %21, align 4, !tbaa !27
  %253 = call i32 @cpCmp_BNU(ptr noundef %249, i32 noundef %250, ptr noundef %251, i32 noundef %252)
  %254 = icmp sle i32 0, %253
  br i1 %254, label %255, label %256

255:                                              ; preds = %248, %243
  store i32 -1011, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %483

256:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  store i32 -1011, ptr %32, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %257 = load ptr, ptr %17, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct._gsModEngine, ptr %257, i32 0, i32 3
  %259 = load i32, ptr %258, align 8, !tbaa !26
  store i32 %259, ptr %33, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #4
  %260 = load ptr, ptr %14, align 8, !tbaa !5
  %261 = call ptr @cpEcGFpGetPool(i32 noundef 1, ptr noundef %260)
  %262 = load ptr, ptr %14, align 8, !tbaa !5
  %263 = call ptr @cpEcGFpInitPoint(ptr noundef %35, ptr noundef %261, i32 noundef 0, ptr noundef %262)
  %264 = load ptr, ptr %11, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct._cpBigNum, ptr %264, i32 0, i32 4
  %266 = load ptr, ptr %265, align 8, !tbaa !28
  %267 = load ptr, ptr %11, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct._cpBigNum, ptr %267, i32 0, i32 2
  %269 = load i32, ptr %268, align 8, !tbaa !30
  %270 = load ptr, ptr %14, align 8, !tbaa !5
  %271 = load ptr, ptr %15, align 8, !tbaa !5
  %272 = call ptr @gfec_MulBasePoint(ptr noundef %35, ptr noundef %266, i32 noundef %269, ptr noundef %270, ptr noundef %271)
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  %273 = load ptr, ptr %17, align 8, !tbaa !5
  %274 = call ptr @gsModPoolAlloc(ptr noundef %273, i32 noundef 1)
  store ptr %274, ptr %36, align 8, !tbaa !5
  %275 = load ptr, ptr %36, align 8, !tbaa !5
  %276 = icmp eq ptr null, %275
  br i1 %276, label %277, label %278

277:                                              ; preds = %256
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %302

278:                                              ; preds = %256
  %279 = load ptr, ptr %36, align 8, !tbaa !5
  %280 = load ptr, ptr %14, align 8, !tbaa !5
  %281 = call i32 @gfec_GetPoint(ptr noundef %279, ptr noundef null, ptr noundef %35, ptr noundef %280)
  %282 = load ptr, ptr %17, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct._gsModEngine, ptr %282, i32 0, i32 6
  %284 = load ptr, ptr %283, align 8, !tbaa !31
  %285 = getelementptr inbounds %struct._gsModMethod, ptr %284, i32 0, i32 1
  %286 = load ptr, ptr %285, align 8, !tbaa !32
  %287 = load ptr, ptr %36, align 8, !tbaa !5
  %288 = load ptr, ptr %36, align 8, !tbaa !5
  %289 = load ptr, ptr %17, align 8, !tbaa !5
  %290 = call ptr %286(ptr noundef %287, ptr noundef %288, ptr noundef %289)
  %291 = load ptr, ptr %36, align 8, !tbaa !5
  %292 = load i32, ptr %33, align 4, !tbaa !27
  %293 = load ptr, ptr %20, align 8, !tbaa !5
  %294 = load i32, ptr %21, align 4, !tbaa !27
  %295 = call i32 @cpMod_BNU(ptr noundef %291, i32 noundef %292, ptr noundef %293, i32 noundef %294)
  store i32 %295, ptr %34, align 4, !tbaa !27
  %296 = load ptr, ptr %22, align 8, !tbaa !5
  %297 = load i32, ptr %21, align 4, !tbaa !27
  %298 = load ptr, ptr %36, align 8, !tbaa !5
  %299 = load i32, ptr %34, align 4, !tbaa !27
  %300 = call ptr @cpGFpElementCopyPad(ptr noundef %296, i32 noundef %297, ptr noundef %298, i32 noundef %299)
  %301 = load ptr, ptr %17, align 8, !tbaa !5
  call void @gsModPoolFree(ptr noundef %301, i32 noundef 1)
  store i32 0, ptr %18, align 4
  br label %302

302:                                              ; preds = %278, %277
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  %303 = load i32, ptr %18, align 4
  switch i32 %303, label %476 [
    i32 0, label %304
  ]

304:                                              ; preds = %302
  %305 = load ptr, ptr %14, align 8, !tbaa !5
  call void @cpEcGFpReleasePool(i32 noundef 1, ptr noundef %305)
  %306 = load ptr, ptr %22, align 8, !tbaa !5
  %307 = load i32, ptr %21, align 4, !tbaa !27
  %308 = call i32 @cpGFpElementIsEquChunk(ptr noundef %306, i32 noundef %307, i64 noundef 0)
  %309 = icmp ne i32 %308, 0
  br i1 %309, label %475, label %310

310:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  store i32 0, ptr %37, align 4, !tbaa !27
  br label %311

311:                                              ; preds = %325, %310
  %312 = load i32, ptr %37, align 4, !tbaa !27
  %313 = load i32, ptr %31, align 4, !tbaa !27
  %314 = icmp slt i32 %312, %313
  br i1 %314, label %315, label %328

315:                                              ; preds = %311
  %316 = load ptr, ptr %30, align 8, !tbaa !5
  %317 = load i32, ptr %37, align 4, !tbaa !27
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds i64, ptr %316, i64 %318
  %320 = load i64, ptr %319, align 8, !tbaa !34
  %321 = load ptr, ptr %24, align 8, !tbaa !5
  %322 = load i32, ptr %37, align 4, !tbaa !27
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds i64, ptr %321, i64 %323
  store i64 %320, ptr %324, align 8, !tbaa !34
  br label %325

325:                                              ; preds = %315
  %326 = load i32, ptr %37, align 4, !tbaa !27
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %37, align 4, !tbaa !27
  br label %311, !llvm.loop !35

328:                                              ; preds = %311
  br label %329

329:                                              ; preds = %338, %328
  %330 = load i32, ptr %37, align 4, !tbaa !27
  %331 = load i32, ptr %21, align 4, !tbaa !27
  %332 = icmp slt i32 %330, %331
  br i1 %332, label %333, label %341

333:                                              ; preds = %329
  %334 = load ptr, ptr %24, align 8, !tbaa !5
  %335 = load i32, ptr %37, align 4, !tbaa !27
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds i64, ptr %334, i64 %336
  store i64 0, ptr %337, align 8, !tbaa !34
  br label %338

338:                                              ; preds = %333
  %339 = load i32, ptr %37, align 4, !tbaa !27
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %37, align 4, !tbaa !27
  br label %329, !llvm.loop !37

341:                                              ; preds = %329
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  %342 = load ptr, ptr %24, align 8, !tbaa !5
  %343 = load ptr, ptr %24, align 8, !tbaa !5
  %344 = load ptr, ptr %20, align 8, !tbaa !5
  %345 = load ptr, ptr %20, align 8, !tbaa !5
  %346 = load i32, ptr %21, align 4, !tbaa !27
  %347 = load ptr, ptr %25, align 8, !tbaa !5
  %348 = call ptr @cpModSub_BNU(ptr noundef %342, ptr noundef %343, ptr noundef %344, ptr noundef %345, i32 noundef %346, ptr noundef %347)
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  store i32 0, ptr %38, align 4, !tbaa !27
  br label %349

349:                                              ; preds = %363, %341
  %350 = load i32, ptr %38, align 4, !tbaa !27
  %351 = load i32, ptr %27, align 4, !tbaa !27
  %352 = icmp slt i32 %350, %351
  br i1 %352, label %353, label %366

353:                                              ; preds = %349
  %354 = load ptr, ptr %26, align 8, !tbaa !5
  %355 = load i32, ptr %38, align 4, !tbaa !27
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds i64, ptr %354, i64 %356
  %358 = load i64, ptr %357, align 8, !tbaa !34
  %359 = load ptr, ptr %23, align 8, !tbaa !5
  %360 = load i32, ptr %38, align 4, !tbaa !27
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds i64, ptr %359, i64 %361
  store i64 %358, ptr %362, align 8, !tbaa !34
  br label %363

363:                                              ; preds = %353
  %364 = load i32, ptr %38, align 4, !tbaa !27
  %365 = add nsw i32 %364, 1
  store i32 %365, ptr %38, align 4, !tbaa !27
  br label %349, !llvm.loop !38

366:                                              ; preds = %349
  br label %367

367:                                              ; preds = %376, %366
  %368 = load i32, ptr %38, align 4, !tbaa !27
  %369 = load i32, ptr %21, align 4, !tbaa !27
  %370 = icmp slt i32 %368, %369
  br i1 %370, label %371, label %379

371:                                              ; preds = %367
  %372 = load ptr, ptr %23, align 8, !tbaa !5
  %373 = load i32, ptr %38, align 4, !tbaa !27
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds i64, ptr %372, i64 %374
  store i64 0, ptr %375, align 8, !tbaa !34
  br label %376

376:                                              ; preds = %371
  %377 = load i32, ptr %38, align 4, !tbaa !27
  %378 = add nsw i32 %377, 1
  store i32 %378, ptr %38, align 4, !tbaa !27
  br label %367, !llvm.loop !39

379:                                              ; preds = %367
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  %380 = load ptr, ptr %19, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct._gsModEngine, ptr %380, i32 0, i32 6
  %382 = load ptr, ptr %381, align 8, !tbaa !31
  %383 = getelementptr inbounds %struct._gsModMethod, ptr %382, i32 0, i32 0
  %384 = load ptr, ptr %383, align 8, !tbaa !40
  %385 = load ptr, ptr %23, align 8, !tbaa !5
  %386 = load ptr, ptr %23, align 8, !tbaa !5
  %387 = load ptr, ptr %19, align 8, !tbaa !5
  %388 = call ptr %384(ptr noundef %385, ptr noundef %386, ptr noundef %387)
  %389 = load ptr, ptr %19, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct._gsModEngine, ptr %389, i32 0, i32 6
  %391 = load ptr, ptr %390, align 8, !tbaa !31
  %392 = getelementptr inbounds %struct._gsModMethod, ptr %391, i32 0, i32 2
  %393 = load ptr, ptr %392, align 8, !tbaa !41
  %394 = load ptr, ptr %23, align 8, !tbaa !5
  %395 = load ptr, ptr %23, align 8, !tbaa !5
  %396 = load ptr, ptr %22, align 8, !tbaa !5
  %397 = load ptr, ptr %19, align 8, !tbaa !5
  %398 = call ptr %393(ptr noundef %394, ptr noundef %395, ptr noundef %396, ptr noundef %397)
  %399 = load ptr, ptr %23, align 8, !tbaa !5
  %400 = load ptr, ptr %23, align 8, !tbaa !5
  %401 = load ptr, ptr %24, align 8, !tbaa !5
  %402 = load ptr, ptr %20, align 8, !tbaa !5
  %403 = load i32, ptr %21, align 4, !tbaa !27
  %404 = load ptr, ptr %25, align 8, !tbaa !5
  %405 = call ptr @cpModAdd_BNU(ptr noundef %399, ptr noundef %400, ptr noundef %401, ptr noundef %402, i32 noundef %403, ptr noundef %404)
  %406 = load ptr, ptr %23, align 8, !tbaa !5
  %407 = load i32, ptr %21, align 4, !tbaa !27
  %408 = call i32 @cpGFpElementIsEquChunk(ptr noundef %406, i32 noundef %407, i64 noundef 0)
  %409 = icmp ne i32 %408, 0
  br i1 %409, label %474, label %410

410:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  store i32 0, ptr %39, align 4, !tbaa !27
  br label %411

411:                                              ; preds = %425, %410
  %412 = load i32, ptr %39, align 4, !tbaa !27
  %413 = load i32, ptr %29, align 4, !tbaa !27
  %414 = icmp slt i32 %412, %413
  br i1 %414, label %415, label %428

415:                                              ; preds = %411
  %416 = load ptr, ptr %28, align 8, !tbaa !5
  %417 = load i32, ptr %39, align 4, !tbaa !27
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds i64, ptr %416, i64 %418
  %420 = load i64, ptr %419, align 8, !tbaa !34
  %421 = load ptr, ptr %25, align 8, !tbaa !5
  %422 = load i32, ptr %39, align 4, !tbaa !27
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds i64, ptr %421, i64 %423
  store i64 %420, ptr %424, align 8, !tbaa !34
  br label %425

425:                                              ; preds = %415
  %426 = load i32, ptr %39, align 4, !tbaa !27
  %427 = add nsw i32 %426, 1
  store i32 %427, ptr %39, align 4, !tbaa !27
  br label %411, !llvm.loop !42

428:                                              ; preds = %411
  br label %429

429:                                              ; preds = %438, %428
  %430 = load i32, ptr %39, align 4, !tbaa !27
  %431 = load i32, ptr %21, align 4, !tbaa !27
  %432 = icmp slt i32 %430, %431
  br i1 %432, label %433, label %441

433:                                              ; preds = %429
  %434 = load ptr, ptr %25, align 8, !tbaa !5
  %435 = load i32, ptr %39, align 4, !tbaa !27
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds i64, ptr %434, i64 %436
  store i64 0, ptr %437, align 8, !tbaa !34
  br label %438

438:                                              ; preds = %433
  %439 = load i32, ptr %39, align 4, !tbaa !27
  %440 = add nsw i32 %439, 1
  store i32 %440, ptr %39, align 4, !tbaa !27
  br label %429, !llvm.loop !43

441:                                              ; preds = %429
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  %442 = load ptr, ptr %25, align 8, !tbaa !5
  %443 = load ptr, ptr %25, align 8, !tbaa !5
  %444 = load ptr, ptr %19, align 8, !tbaa !5
  %445 = call ptr @gs_mont_inv(ptr noundef %442, ptr noundef %443, ptr noundef %444, ptr noundef @alm_mont_inv_ct)
  %446 = load ptr, ptr %19, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct._gsModEngine, ptr %446, i32 0, i32 6
  %448 = load ptr, ptr %447, align 8, !tbaa !31
  %449 = getelementptr inbounds %struct._gsModMethod, ptr %448, i32 0, i32 2
  %450 = load ptr, ptr %449, align 8, !tbaa !41
  %451 = load ptr, ptr %23, align 8, !tbaa !5
  %452 = load ptr, ptr %23, align 8, !tbaa !5
  %453 = load ptr, ptr %25, align 8, !tbaa !5
  %454 = load ptr, ptr %19, align 8, !tbaa !5
  %455 = call ptr %450(ptr noundef %451, ptr noundef %452, ptr noundef %453, ptr noundef %454)
  %456 = load i32, ptr %21, align 4, !tbaa !27
  store i32 %456, ptr %34, align 4, !tbaa !27
  %457 = load ptr, ptr %22, align 8, !tbaa !5
  %458 = load i32, ptr %34, align 4, !tbaa !27
  %459 = call i32 @cpFix_BNU(ptr noundef %457, i32 noundef %458)
  store i32 %459, ptr %34, align 4, !tbaa !27
  %460 = load ptr, ptr %12, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct._cpBigNum, ptr %460, i32 0, i32 1
  store i32 1, ptr %461, align 4, !tbaa !21
  %462 = load i32, ptr %34, align 4, !tbaa !27
  %463 = load ptr, ptr %12, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct._cpBigNum, ptr %463, i32 0, i32 2
  store i32 %462, ptr %464, align 8, !tbaa !30
  %465 = load i32, ptr %21, align 4, !tbaa !27
  store i32 %465, ptr %34, align 4, !tbaa !27
  %466 = load ptr, ptr %23, align 8, !tbaa !5
  %467 = load i32, ptr %34, align 4, !tbaa !27
  %468 = call i32 @cpFix_BNU(ptr noundef %466, i32 noundef %467)
  store i32 %468, ptr %34, align 4, !tbaa !27
  %469 = load ptr, ptr %13, align 8, !tbaa !5
  %470 = getelementptr inbounds %struct._cpBigNum, ptr %469, i32 0, i32 1
  store i32 1, ptr %470, align 4, !tbaa !21
  %471 = load i32, ptr %34, align 4, !tbaa !27
  %472 = load ptr, ptr %13, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct._cpBigNum, ptr %472, i32 0, i32 2
  store i32 %471, ptr %473, align 8, !tbaa !30
  store i32 0, ptr %32, align 4, !tbaa !27
  br label %474

474:                                              ; preds = %441, %379
  br label %475

475:                                              ; preds = %474, %304
  store i32 0, ptr %18, align 4
  br label %476

476:                                              ; preds = %475, %302
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  %477 = load i32, ptr %18, align 4
  switch i32 %477, label %482 [
    i32 0, label %478
  ]

478:                                              ; preds = %476
  %479 = load ptr, ptr %11, align 8, !tbaa !5
  %480 = call ptr @cpBN_zero(ptr noundef %479)
  %481 = load i32, ptr %32, align 4, !tbaa !27
  store i32 %481, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %482

482:                                              ; preds = %478, %476
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  br label %483

483:                                              ; preds = %482, %255, %242
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 4, 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 8, 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 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %484

484:                                              ; preds = %483, %190, %184, %174, %168, %158, %154, %150, %140, %130, %120, %110, %106, %102, %94, %88, %78, %74, %62, %56, %46, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %485 = load i32, ptr %8, align 4
  ret i32 %485
}

; 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare ptr @gs_mont_inv(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpBN_zero(ptr noundef) #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 = { 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, !11, i64 0}
!10 = !{!"_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}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = !{!10, !6, i64 8}
!14 = !{!15, !6, i64 8}
!15 = !{!"_cpGFp", !11, i64 0, !11, i64 4, !6, i64 8}
!16 = !{!17, !11, i64 8}
!17 = !{!"_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, !18, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !11, i64 100, !6, i64 104}
!18 = !{!"long long", !7, i64 0}
!19 = !{!20, !11, i64 0}
!20 = !{!"_cpBigNum", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24}
!21 = !{!20, !11, i64 4}
!22 = !{!10, !11, i64 24}
!23 = !{!20, !11, i64 12}
!24 = !{!10, !6, i64 80}
!25 = !{!17, !6, i64 48}
!26 = !{!17, !11, i64 16}
!27 = !{!11, !11, i64 0}
!28 = !{!20, !6, i64 16}
!29 = !{!20, !6, i64 24}
!30 = !{!20, !11, i64 8}
!31 = !{!17, !6, i64 32}
!32 = !{!33, !6, i64 8}
!33 = !{!"_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}
!34 = !{!18, !18, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = distinct !{!38, !36}
!39 = distinct !{!39, !36}
!40 = !{!33, !6, i64 0}
!41 = !{!33, !6, i64 16}
!42 = distinct !{!42, !36}
!43 = distinct !{!43, !36}


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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1011, 1) i32 @ippsGFpECSignDSA(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = alloca %struct._cpGFpECPoint, align 8
  %9 = icmp eq ptr %5, null
  %10 = icmp eq ptr %6, null
  %or.cond = or i1 %9, %10
  br i1 %or.cond, label %275, label %11

11:                                               ; preds = %7
  %12 = load i32, ptr %5, align 8, !tbaa !5
  %13 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %5)
  %14 = trunc i64 %13 to i32
  %15 = xor i32 %12, %14
  %16 = icmp eq i32 %15, 1129136461
  br i1 %16, label %17, label %275

17:                                               ; preds = %11
  %18 = getelementptr inbounds i8, ptr %5, i64 16
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %275, label %20

20:                                               ; preds = %17
  %21 = getelementptr inbounds i8, ptr %5, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !12
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = load i32, ptr %25, align 8, !tbaa !15
  %27 = icmp sgt i32 %26, 1
  br i1 %27, label %275, label %28

28:                                               ; preds = %20
  %29 = icmp eq ptr %0, null
  br i1 %29, label %275, label %30

30:                                               ; preds = %28
  %31 = load i32, ptr %0, align 8, !tbaa !18
  %32 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %0)
  %33 = trunc i64 %32 to i32
  %34 = xor i32 %31, %33
  %35 = icmp eq i32 %34, 1112098638
  br i1 %35, label %36, label %275

36:                                               ; preds = %30
  %37 = getelementptr inbounds i8, ptr %0, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !20
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %275, label %40

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %5, i64 24
  %42 = load i32, ptr %41, align 8, !tbaa !21
  %43 = tail call i32 @cpBN_bitsize(ptr noundef nonnull %0)
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %275, label %45

45:                                               ; preds = %40
  %46 = icmp eq ptr %3, null
  %47 = icmp eq ptr %4, null
  %or.cond193 = or i1 %46, %47
  br i1 %or.cond193, label %275, label %48

48:                                               ; preds = %45
  %49 = load i32, ptr %3, align 8, !tbaa !18
  %50 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %3)
  %51 = trunc i64 %50 to i32
  %52 = xor i32 %49, %51
  %53 = icmp eq i32 %52, 1112098638
  br i1 %53, label %54, label %275

54:                                               ; preds = %48
  %55 = load i32, ptr %4, align 8, !tbaa !18
  %56 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %4)
  %57 = trunc i64 %56 to i32
  %58 = xor i32 %55, %57
  %59 = icmp eq i32 %58, 1112098638
  br i1 %59, label %60, label %275

60:                                               ; preds = %54
  %61 = getelementptr inbounds i8, ptr %3, i64 12
  %62 = load i32, ptr %61, align 4, !tbaa !22
  %63 = shl nsw i32 %62, 6
  %64 = load i32, ptr %41, align 8, !tbaa !21
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %275, label %66

66:                                               ; preds = %60
  %67 = getelementptr inbounds i8, ptr %4, i64 12
  %68 = load i32, ptr %67, align 4, !tbaa !22
  %69 = shl nsw i32 %68, 6
  %70 = icmp slt i32 %69, %64
  br i1 %70, label %275, label %71

71:                                               ; preds = %66
  %72 = icmp eq ptr %1, null
  %73 = icmp eq ptr %2, null
  %or.cond194 = or i1 %72, %73
  br i1 %or.cond194, label %275, label %74

74:                                               ; preds = %71
  %75 = load i32, ptr %1, align 8, !tbaa !18
  %76 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %1)
  %77 = trunc i64 %76 to i32
  %78 = xor i32 %75, %77
  %79 = icmp eq i32 %78, 1112098638
  br i1 %79, label %80, label %275

80:                                               ; preds = %74
  %81 = getelementptr inbounds i8, ptr %1, i64 4
  %82 = load i32, ptr %81, align 4, !tbaa !20
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %275, label %84

84:                                               ; preds = %80
  %85 = load i32, ptr %2, align 8, !tbaa !18
  %86 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %2)
  %87 = trunc i64 %86 to i32
  %88 = xor i32 %85, %87
  %89 = icmp eq i32 %88, 1112098638
  br i1 %89, label %90, label %275

90:                                               ; preds = %84
  %91 = getelementptr inbounds i8, ptr %2, i64 4
  %92 = load i32, ptr %91, align 4, !tbaa !20
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %275, label %94

94:                                               ; preds = %90
  %95 = getelementptr inbounds i8, ptr %5, i64 80
  %96 = load ptr, ptr %95, align 8, !tbaa !23
  %97 = getelementptr inbounds i8, ptr %96, i64 48
  %98 = load ptr, ptr %97, align 8, !tbaa !24
  %99 = getelementptr inbounds i8, ptr %96, i64 16
  %100 = load i32, ptr %99, align 8, !tbaa !25
  %101 = getelementptr inbounds i8, ptr %3, i64 16
  %102 = load ptr, ptr %101, align 8, !tbaa !26
  %103 = getelementptr inbounds i8, ptr %4, i64 16
  %104 = load ptr, ptr %103, align 8, !tbaa !26
  %105 = ptrtoint ptr %104 to i64
  %106 = getelementptr inbounds i8, ptr %3, i64 24
  %107 = load ptr, ptr %106, align 8, !tbaa !27
  %108 = ptrtoint ptr %107 to i64
  %109 = getelementptr inbounds i8, ptr %4, i64 24
  %110 = load ptr, ptr %109, align 8, !tbaa !27
  %111 = ptrtoint ptr %110 to i64
  %112 = getelementptr inbounds i8, ptr %1, i64 16
  %113 = load ptr, ptr %112, align 8, !tbaa !26
  %114 = ptrtoint ptr %113 to i64
  %115 = getelementptr inbounds i8, ptr %1, i64 8
  %116 = load i32, ptr %115, align 8, !tbaa !28
  %117 = getelementptr inbounds i8, ptr %2, i64 16
  %118 = load ptr, ptr %117, align 8, !tbaa !26
  %119 = ptrtoint ptr %118 to i64
  %120 = getelementptr inbounds i8, ptr %2, i64 8
  %121 = load i32, ptr %120, align 8, !tbaa !28
  %122 = getelementptr inbounds i8, ptr %0, i64 16
  %123 = load ptr, ptr %122, align 8, !tbaa !26
  %124 = ptrtoint ptr %123 to i64
  %125 = getelementptr inbounds i8, ptr %0, i64 8
  %126 = load i32, ptr %125, align 8, !tbaa !28
  %127 = tail call i32 @cpEqu_BNU_CHUNK(ptr noundef %113, i32 noundef %116, i64 noundef 0)
  %.not188 = icmp eq i32 %127, 0
  br i1 %.not188, label %128, label %275

128:                                              ; preds = %94
  %129 = tail call i32 @cpCmp_BNU(ptr noundef %113, i32 noundef %116, ptr noundef %98, i32 noundef %100)
  %130 = icmp sgt i32 %129, -1
  br i1 %130, label %275, label %131

131:                                              ; preds = %128
  %132 = tail call i32 @cpEqu_BNU_CHUNK(ptr noundef %118, i32 noundef %121, i64 noundef 0)
  %.not189 = icmp eq i32 %132, 0
  br i1 %.not189, label %133, label %275

133:                                              ; preds = %131
  %134 = tail call i32 @cpCmp_BNU(ptr noundef %118, i32 noundef %121, ptr noundef %98, i32 noundef %100)
  %135 = icmp sgt i32 %134, -1
  br i1 %135, label %275, label %136

136:                                              ; preds = %133
  %137 = getelementptr inbounds i8, ptr %24, i64 16
  %138 = load i32, ptr %137, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  %139 = tail call ptr @cpEcGFpGetPool(i32 noundef 1, ptr noundef nonnull %5)
  %140 = call ptr @cpEcGFpInitPoint(ptr noundef nonnull %8, ptr noundef %139, i32 noundef 0, ptr noundef nonnull %5)
  %141 = load ptr, ptr %117, align 8, !tbaa !26
  %142 = load i32, ptr %120, align 8, !tbaa !28
  %143 = call ptr @gfec_MulBasePoint(ptr noundef nonnull %8, ptr noundef %141, i32 noundef %142, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  %144 = call ptr @gsModPoolAlloc(ptr noundef nonnull %24, i32 noundef 1)
  %.not190.not = icmp eq ptr %144, null
  br i1 %.not190.not, label %.critedge.thread, label %145

.critedge.thread:                                 ; preds = %136
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %275

145:                                              ; preds = %136
  %146 = call i32 @gfec_GetPoint(ptr noundef nonnull %144, ptr noundef null, ptr noundef nonnull %8, ptr noundef nonnull %5) #5
  %147 = getelementptr inbounds i8, ptr %24, i64 32
  %148 = load ptr, ptr %147, align 8, !tbaa !29
  %149 = getelementptr inbounds i8, ptr %148, i64 8
  %150 = load ptr, ptr %149, align 8, !tbaa !30
  %151 = call ptr %150(ptr noundef nonnull %144, ptr noundef nonnull %144, ptr noundef nonnull %24) #5
  %152 = call i32 @cpMod_BNU(ptr noundef nonnull %144, i32 noundef %138, ptr noundef %98, i32 noundef %100)
  %153 = call ptr @cpGFpElementCopyPad(ptr noundef %102, i32 noundef %100, ptr noundef nonnull %144, i32 noundef %152)
  call void @gsModPoolFree(ptr noundef nonnull %24, i32 noundef 1)
  call void @cpEcGFpReleasePool(i32 noundef 1, ptr noundef nonnull %5)
  %154 = call i32 @cpGFpElementIsEquChunk(ptr noundef %102, i32 noundef %100, i64 noundef 0)
  %.not191 = icmp eq i32 %154, 0
  br i1 %.not191, label %.preheader202, label %.critedge.thread196

.preheader202:                                    ; preds = %145
  %155 = icmp sgt i32 %126, 0
  br i1 %155, label %.lr.ph.preheader, label %.preheader201

.lr.ph.preheader:                                 ; preds = %.preheader202
  %wide.trip.count = zext nneg i32 %126 to i64
  %min.iters.check = icmp ult i32 %126, 6
  %156 = sub i64 %108, %124
  %diff.check = icmp ult i64 %156, 32
  %or.cond274 = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond274, label %.lr.ph.preheader279, label %vector.ph

.lr.ph.preheader279:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader279, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader279 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader279 ]
  %157 = getelementptr inbounds i64, ptr %123, i64 %indvars.iv.prol
  %158 = load i64, ptr %157, align 8, !tbaa !32
  %159 = getelementptr inbounds i64, ptr %107, i64 %indvars.iv.prol
  store i64 %158, ptr %159, align 8, !tbaa !32
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !33

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader279
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader279 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %160 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %161 = icmp ugt i64 %160, -4
  br i1 %161, label %.preheader201, label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %162 = getelementptr inbounds i64, ptr %123, i64 %index
  %163 = getelementptr inbounds i8, ptr %162, i64 16
  %wide.load = load <2 x i64>, ptr %162, align 8, !tbaa !32
  %wide.load243 = load <2 x i64>, ptr %163, align 8, !tbaa !32
  %164 = getelementptr inbounds i64, ptr %107, i64 %index
  %165 = getelementptr inbounds i8, ptr %164, i64 16
  store <2 x i64> %wide.load, ptr %164, align 8, !tbaa !32
  store <2 x i64> %wide.load243, ptr %165, align 8, !tbaa !32
  %index.next = add nuw i64 %index, 4
  %166 = icmp eq i64 %index.next, %n.vec
  br i1 %166, label %middle.block, label %vector.body, !llvm.loop !35

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader201, label %.lr.ph.preheader279

.critedge.thread196:                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %273

.preheader201:                                    ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %.preheader202
  %.0170.lcssa = phi i32 [ 0, %.preheader202 ], [ %126, %middle.block ], [ %126, %.lr.ph ], [ %126, %.lr.ph.prol.loopexit ]
  %167 = icmp slt i32 %.0170.lcssa, %100
  br i1 %167, label %.lr.ph205.preheader, label %._crit_edge

.lr.ph205.preheader:                              ; preds = %.preheader201
  %168 = zext nneg i32 %.0170.lcssa to i64
  %169 = shl nuw nsw i64 %168, 3
  %scevgep = getelementptr i8, ptr %107, i64 %169
  %170 = xor i32 %.0170.lcssa, -1
  %171 = add i32 %100, %170
  %172 = zext i32 %171 to i64
  %173 = shl nuw nsw i64 %172, 3
  %174 = add nuw nsw i64 %173, 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %scevgep, i8 0, i64 %174, i1 false), !tbaa !32
  br label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %175 = getelementptr inbounds i64, ptr %123, i64 %indvars.iv
  %176 = load i64, ptr %175, align 8, !tbaa !32
  %177 = getelementptr inbounds i64, ptr %107, i64 %indvars.iv
  store i64 %176, ptr %177, align 8, !tbaa !32
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %178 = getelementptr inbounds i64, ptr %123, i64 %indvars.iv.next
  %179 = load i64, ptr %178, align 8, !tbaa !32
  %180 = getelementptr inbounds i64, ptr %107, i64 %indvars.iv.next
  store i64 %179, ptr %180, align 8, !tbaa !32
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %181 = getelementptr inbounds i64, ptr %123, i64 %indvars.iv.next.1
  %182 = load i64, ptr %181, align 8, !tbaa !32
  %183 = getelementptr inbounds i64, ptr %107, i64 %indvars.iv.next.1
  store i64 %182, ptr %183, align 8, !tbaa !32
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %184 = getelementptr inbounds i64, ptr %123, i64 %indvars.iv.next.2
  %185 = load i64, ptr %184, align 8, !tbaa !32
  %186 = getelementptr inbounds i64, ptr %107, i64 %indvars.iv.next.2
  store i64 %185, ptr %186, align 8, !tbaa !32
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.preheader201, label %.lr.ph, !llvm.loop !39

._crit_edge:                                      ; preds = %.lr.ph205.preheader, %.preheader201
  %187 = call ptr @cpModSub_BNU(ptr noundef %107, ptr noundef %107, ptr noundef %98, ptr noundef %98, i32 noundef %100, ptr noundef %110)
  %188 = icmp sgt i32 %116, 0
  br i1 %188, label %.lr.ph208.preheader, label %.preheader200

.lr.ph208.preheader:                              ; preds = %._crit_edge
  %wide.trip.count228 = zext nneg i32 %116 to i64
  %min.iters.check248 = icmp ult i32 %116, 6
  %189 = sub i64 %105, %114
  %diff.check245 = icmp ult i64 %189, 32
  %or.cond275 = select i1 %min.iters.check248, i1 true, i1 %diff.check245
  br i1 %or.cond275, label %.lr.ph208.preheader278, label %vector.ph249

.lr.ph208.preheader278:                           ; preds = %middle.block246, %.lr.ph208.preheader
  %indvars.iv225.ph = phi i64 [ 0, %.lr.ph208.preheader ], [ %n.vec251, %middle.block246 ]
  %xtraiter280 = and i64 %wide.trip.count228, 3
  %lcmp.mod281.not = icmp eq i64 %xtraiter280, 0
  br i1 %lcmp.mod281.not, label %.lr.ph208.prol.loopexit, label %.lr.ph208.prol

.lr.ph208.prol:                                   ; preds = %.lr.ph208.preheader278, %.lr.ph208.prol
  %indvars.iv225.prol = phi i64 [ %indvars.iv.next226.prol, %.lr.ph208.prol ], [ %indvars.iv225.ph, %.lr.ph208.preheader278 ]
  %prol.iter282 = phi i64 [ %prol.iter282.next, %.lr.ph208.prol ], [ 0, %.lr.ph208.preheader278 ]
  %190 = getelementptr inbounds i64, ptr %113, i64 %indvars.iv225.prol
  %191 = load i64, ptr %190, align 8, !tbaa !32
  %192 = getelementptr inbounds i64, ptr %104, i64 %indvars.iv225.prol
  store i64 %191, ptr %192, align 8, !tbaa !32
  %indvars.iv.next226.prol = add nuw nsw i64 %indvars.iv225.prol, 1
  %prol.iter282.next = add i64 %prol.iter282, 1
  %prol.iter282.cmp.not = icmp eq i64 %prol.iter282.next, %xtraiter280
  br i1 %prol.iter282.cmp.not, label %.lr.ph208.prol.loopexit, label %.lr.ph208.prol, !llvm.loop !40

.lr.ph208.prol.loopexit:                          ; preds = %.lr.ph208.prol, %.lr.ph208.preheader278
  %indvars.iv225.unr = phi i64 [ %indvars.iv225.ph, %.lr.ph208.preheader278 ], [ %indvars.iv.next226.prol, %.lr.ph208.prol ]
  %193 = sub nsw i64 %indvars.iv225.ph, %wide.trip.count228
  %194 = icmp ugt i64 %193, -4
  br i1 %194, label %.preheader200, label %.lr.ph208

vector.ph249:                                     ; preds = %.lr.ph208.preheader
  %n.vec251 = and i64 %wide.trip.count228, 2147483644
  br label %vector.body253

vector.body253:                                   ; preds = %vector.body253, %vector.ph249
  %index254 = phi i64 [ 0, %vector.ph249 ], [ %index.next257, %vector.body253 ]
  %195 = getelementptr inbounds i64, ptr %113, i64 %index254
  %196 = getelementptr inbounds i8, ptr %195, i64 16
  %wide.load255 = load <2 x i64>, ptr %195, align 8, !tbaa !32
  %wide.load256 = load <2 x i64>, ptr %196, align 8, !tbaa !32
  %197 = getelementptr inbounds i64, ptr %104, i64 %index254
  %198 = getelementptr inbounds i8, ptr %197, i64 16
  store <2 x i64> %wide.load255, ptr %197, align 8, !tbaa !32
  store <2 x i64> %wide.load256, ptr %198, align 8, !tbaa !32
  %index.next257 = add nuw i64 %index254, 4
  %199 = icmp eq i64 %index.next257, %n.vec251
  br i1 %199, label %middle.block246, label %vector.body253, !llvm.loop !41

middle.block246:                                  ; preds = %vector.body253
  %cmp.n258 = icmp eq i64 %n.vec251, %wide.trip.count228
  br i1 %cmp.n258, label %.preheader200, label %.lr.ph208.preheader278

.preheader200:                                    ; preds = %.lr.ph208.prol.loopexit, %.lr.ph208, %middle.block246, %._crit_edge
  %.0168.lcssa = phi i32 [ 0, %._crit_edge ], [ %116, %middle.block246 ], [ %116, %.lr.ph208 ], [ %116, %.lr.ph208.prol.loopexit ]
  %200 = icmp slt i32 %.0168.lcssa, %100
  br i1 %200, label %.lr.ph211.preheader, label %._crit_edge212

.lr.ph211.preheader:                              ; preds = %.preheader200
  %201 = zext nneg i32 %.0168.lcssa to i64
  %202 = shl nuw nsw i64 %201, 3
  %scevgep230 = getelementptr i8, ptr %104, i64 %202
  %203 = xor i32 %.0168.lcssa, -1
  %204 = add i32 %100, %203
  %205 = zext i32 %204 to i64
  %206 = shl nuw nsw i64 %205, 3
  %207 = add nuw nsw i64 %206, 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %scevgep230, i8 0, i64 %207, i1 false), !tbaa !32
  br label %._crit_edge212

.lr.ph208:                                        ; preds = %.lr.ph208.prol.loopexit, %.lr.ph208
  %indvars.iv225 = phi i64 [ %indvars.iv.next226.3, %.lr.ph208 ], [ %indvars.iv225.unr, %.lr.ph208.prol.loopexit ]
  %208 = getelementptr inbounds i64, ptr %113, i64 %indvars.iv225
  %209 = load i64, ptr %208, align 8, !tbaa !32
  %210 = getelementptr inbounds i64, ptr %104, i64 %indvars.iv225
  store i64 %209, ptr %210, align 8, !tbaa !32
  %indvars.iv.next226 = add nuw nsw i64 %indvars.iv225, 1
  %211 = getelementptr inbounds i64, ptr %113, i64 %indvars.iv.next226
  %212 = load i64, ptr %211, align 8, !tbaa !32
  %213 = getelementptr inbounds i64, ptr %104, i64 %indvars.iv.next226
  store i64 %212, ptr %213, align 8, !tbaa !32
  %indvars.iv.next226.1 = add nuw nsw i64 %indvars.iv225, 2
  %214 = getelementptr inbounds i64, ptr %113, i64 %indvars.iv.next226.1
  %215 = load i64, ptr %214, align 8, !tbaa !32
  %216 = getelementptr inbounds i64, ptr %104, i64 %indvars.iv.next226.1
  store i64 %215, ptr %216, align 8, !tbaa !32
  %indvars.iv.next226.2 = add nuw nsw i64 %indvars.iv225, 3
  %217 = getelementptr inbounds i64, ptr %113, i64 %indvars.iv.next226.2
  %218 = load i64, ptr %217, align 8, !tbaa !32
  %219 = getelementptr inbounds i64, ptr %104, i64 %indvars.iv.next226.2
  store i64 %218, ptr %219, align 8, !tbaa !32
  %indvars.iv.next226.3 = add nuw nsw i64 %indvars.iv225, 4
  %exitcond229.not.3 = icmp eq i64 %indvars.iv.next226.3, %wide.trip.count228
  br i1 %exitcond229.not.3, label %.preheader200, label %.lr.ph208, !llvm.loop !42

._crit_edge212:                                   ; preds = %.lr.ph211.preheader, %.preheader200
  %220 = getelementptr inbounds i8, ptr %96, i64 32
  %221 = load ptr, ptr %220, align 8, !tbaa !29
  %222 = load ptr, ptr %221, align 8, !tbaa !43
  %223 = call ptr %222(ptr noundef %104, ptr noundef %104, ptr noundef %96) #5
  %224 = load ptr, ptr %220, align 8, !tbaa !29
  %225 = getelementptr inbounds i8, ptr %224, i64 16
  %226 = load ptr, ptr %225, align 8, !tbaa !44
  %227 = call ptr %226(ptr noundef %104, ptr noundef %104, ptr noundef %102, ptr noundef %96) #5
  %228 = call ptr @cpModAdd_BNU(ptr noundef %104, ptr noundef %104, ptr noundef %107, ptr noundef %98, i32 noundef %100, ptr noundef %110)
  %229 = call i32 @cpGFpElementIsEquChunk(ptr noundef %104, i32 noundef %100, i64 noundef 0)
  %.not192 = icmp eq i32 %229, 0
  br i1 %.not192, label %.preheader199, label %.critedge

.preheader199:                                    ; preds = %._crit_edge212
  %230 = icmp sgt i32 %121, 0
  br i1 %230, label %.lr.ph214.preheader, label %.preheader

.lr.ph214.preheader:                              ; preds = %.preheader199
  %wide.trip.count237 = zext nneg i32 %121 to i64
  %min.iters.check263 = icmp ult i32 %121, 6
  %231 = sub i64 %111, %119
  %diff.check260 = icmp ult i64 %231, 32
  %or.cond276 = select i1 %min.iters.check263, i1 true, i1 %diff.check260
  br i1 %or.cond276, label %.lr.ph214.preheader277, label %vector.ph264

.lr.ph214.preheader277:                           ; preds = %middle.block261, %.lr.ph214.preheader
  %indvars.iv234.ph = phi i64 [ 0, %.lr.ph214.preheader ], [ %n.vec266, %middle.block261 ]
  %xtraiter283 = and i64 %wide.trip.count237, 3
  %lcmp.mod284.not = icmp eq i64 %xtraiter283, 0
  br i1 %lcmp.mod284.not, label %.lr.ph214.prol.loopexit, label %.lr.ph214.prol

.lr.ph214.prol:                                   ; preds = %.lr.ph214.preheader277, %.lr.ph214.prol
  %indvars.iv234.prol = phi i64 [ %indvars.iv.next235.prol, %.lr.ph214.prol ], [ %indvars.iv234.ph, %.lr.ph214.preheader277 ]
  %prol.iter285 = phi i64 [ %prol.iter285.next, %.lr.ph214.prol ], [ 0, %.lr.ph214.preheader277 ]
  %232 = getelementptr inbounds i64, ptr %118, i64 %indvars.iv234.prol
  %233 = load i64, ptr %232, align 8, !tbaa !32
  %234 = getelementptr inbounds i64, ptr %110, i64 %indvars.iv234.prol
  store i64 %233, ptr %234, align 8, !tbaa !32
  %indvars.iv.next235.prol = add nuw nsw i64 %indvars.iv234.prol, 1
  %prol.iter285.next = add i64 %prol.iter285, 1
  %prol.iter285.cmp.not = icmp eq i64 %prol.iter285.next, %xtraiter283
  br i1 %prol.iter285.cmp.not, label %.lr.ph214.prol.loopexit, label %.lr.ph214.prol, !llvm.loop !45

.lr.ph214.prol.loopexit:                          ; preds = %.lr.ph214.prol, %.lr.ph214.preheader277
  %indvars.iv234.unr = phi i64 [ %indvars.iv234.ph, %.lr.ph214.preheader277 ], [ %indvars.iv.next235.prol, %.lr.ph214.prol ]
  %235 = sub nsw i64 %indvars.iv234.ph, %wide.trip.count237
  %236 = icmp ugt i64 %235, -4
  br i1 %236, label %.preheader, label %.lr.ph214

vector.ph264:                                     ; preds = %.lr.ph214.preheader
  %n.vec266 = and i64 %wide.trip.count237, 2147483644
  br label %vector.body268

vector.body268:                                   ; preds = %vector.body268, %vector.ph264
  %index269 = phi i64 [ 0, %vector.ph264 ], [ %index.next272, %vector.body268 ]
  %237 = getelementptr inbounds i64, ptr %118, i64 %index269
  %238 = getelementptr inbounds i8, ptr %237, i64 16
  %wide.load270 = load <2 x i64>, ptr %237, align 8, !tbaa !32
  %wide.load271 = load <2 x i64>, ptr %238, align 8, !tbaa !32
  %239 = getelementptr inbounds i64, ptr %110, i64 %index269
  %240 = getelementptr inbounds i8, ptr %239, i64 16
  store <2 x i64> %wide.load270, ptr %239, align 8, !tbaa !32
  store <2 x i64> %wide.load271, ptr %240, align 8, !tbaa !32
  %index.next272 = add nuw i64 %index269, 4
  %241 = icmp eq i64 %index.next272, %n.vec266
  br i1 %241, label %middle.block261, label %vector.body268, !llvm.loop !46

middle.block261:                                  ; preds = %vector.body268
  %cmp.n273 = icmp eq i64 %n.vec266, %wide.trip.count237
  br i1 %cmp.n273, label %.preheader, label %.lr.ph214.preheader277

.preheader:                                       ; preds = %.lr.ph214.prol.loopexit, %.lr.ph214, %middle.block261, %.preheader199
  %.0.lcssa = phi i32 [ 0, %.preheader199 ], [ %121, %middle.block261 ], [ %121, %.lr.ph214 ], [ %121, %.lr.ph214.prol.loopexit ]
  %242 = icmp slt i32 %.0.lcssa, %100
  br i1 %242, label %.lr.ph217.preheader, label %._crit_edge218

.lr.ph217.preheader:                              ; preds = %.preheader
  %243 = zext nneg i32 %.0.lcssa to i64
  %244 = shl nuw nsw i64 %243, 3
  %scevgep239 = getelementptr i8, ptr %110, i64 %244
  %245 = xor i32 %.0.lcssa, -1
  %246 = add i32 %100, %245
  %247 = zext i32 %246 to i64
  %248 = shl nuw nsw i64 %247, 3
  %249 = add nuw nsw i64 %248, 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %scevgep239, i8 0, i64 %249, i1 false), !tbaa !32
  br label %._crit_edge218

.lr.ph214:                                        ; preds = %.lr.ph214.prol.loopexit, %.lr.ph214
  %indvars.iv234 = phi i64 [ %indvars.iv.next235.3, %.lr.ph214 ], [ %indvars.iv234.unr, %.lr.ph214.prol.loopexit ]
  %250 = getelementptr inbounds i64, ptr %118, i64 %indvars.iv234
  %251 = load i64, ptr %250, align 8, !tbaa !32
  %252 = getelementptr inbounds i64, ptr %110, i64 %indvars.iv234
  store i64 %251, ptr %252, align 8, !tbaa !32
  %indvars.iv.next235 = add nuw nsw i64 %indvars.iv234, 1
  %253 = getelementptr inbounds i64, ptr %118, i64 %indvars.iv.next235
  %254 = load i64, ptr %253, align 8, !tbaa !32
  %255 = getelementptr inbounds i64, ptr %110, i64 %indvars.iv.next235
  store i64 %254, ptr %255, align 8, !tbaa !32
  %indvars.iv.next235.1 = add nuw nsw i64 %indvars.iv234, 2
  %256 = getelementptr inbounds i64, ptr %118, i64 %indvars.iv.next235.1
  %257 = load i64, ptr %256, align 8, !tbaa !32
  %258 = getelementptr inbounds i64, ptr %110, i64 %indvars.iv.next235.1
  store i64 %257, ptr %258, align 8, !tbaa !32
  %indvars.iv.next235.2 = add nuw nsw i64 %indvars.iv234, 3
  %259 = getelementptr inbounds i64, ptr %118, i64 %indvars.iv.next235.2
  %260 = load i64, ptr %259, align 8, !tbaa !32
  %261 = getelementptr inbounds i64, ptr %110, i64 %indvars.iv.next235.2
  store i64 %260, ptr %261, align 8, !tbaa !32
  %indvars.iv.next235.3 = add nuw nsw i64 %indvars.iv234, 4
  %exitcond238.not.3 = icmp eq i64 %indvars.iv.next235.3, %wide.trip.count237
  br i1 %exitcond238.not.3, label %.preheader, label %.lr.ph214, !llvm.loop !47

._crit_edge218:                                   ; preds = %.lr.ph217.preheader, %.preheader
  %262 = call ptr @gs_mont_inv(ptr noundef %110, ptr noundef %110, ptr noundef %96, ptr noundef nonnull @alm_mont_inv_ct) #5
  %263 = load ptr, ptr %220, align 8, !tbaa !29
  %264 = getelementptr inbounds i8, ptr %263, i64 16
  %265 = load ptr, ptr %264, align 8, !tbaa !44
  %266 = call ptr %265(ptr noundef %104, ptr noundef %104, ptr noundef %110, ptr noundef %96) #5
  %267 = call i32 @cpFix_BNU(ptr noundef %102, i32 noundef %100)
  %268 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 1, ptr %268, align 4, !tbaa !20
  %269 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %267, ptr %269, align 8, !tbaa !28
  %270 = call i32 @cpFix_BNU(ptr noundef %104, i32 noundef %100)
  %271 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 1, ptr %271, align 4, !tbaa !20
  %272 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 %270, ptr %272, align 8, !tbaa !28
  br label %.critedge

.critedge:                                        ; preds = %._crit_edge218, %._crit_edge212
  %.1177 = phi i32 [ -1011, %._crit_edge212 ], [ 0, %._crit_edge218 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %273

273:                                              ; preds = %.critedge, %.critedge.thread196
  %.1177198 = phi i32 [ -1011, %.critedge.thread196 ], [ %.1177, %.critedge ]
  %274 = call ptr @cpBN_zero(ptr noundef nonnull %2)
  br label %275

275:                                              ; preds = %.critedge.thread, %128, %94, %133, %131, %273, %90, %84, %80, %74, %71, %66, %60, %54, %48, %45, %40, %36, %30, %28, %20, %17, %11, %7
  %.3 = phi i32 [ -8, %7 ], [ -13, %11 ], [ -13, %17 ], [ -14, %20 ], [ -8, %28 ], [ -13, %30 ], [ -1010, %36 ], [ -1010, %40 ], [ -8, %45 ], [ -13, %48 ], [ -13, %54 ], [ -7, %60 ], [ -7, %66 ], [ -8, %71 ], [ -13, %74 ], [ -1008, %80 ], [ -13, %84 ], [ -1011, %90 ], [ -1008, %128 ], [ -1008, %94 ], [ -1011, %133 ], [ -1011, %131 ], [ %.1177198, %273 ], [ -8, %.critedge.thread ]
  ret i32 %.3
}

; 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

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

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

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

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

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

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

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

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

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

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

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

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

declare ptr @gs_mont_inv(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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, !7, i64 16}
!12 = !{!6, !10, i64 8}
!13 = !{!14, !10, i64 8}
!14 = !{!"_cpGFp", !7, i64 0, !7, i64 4, !10, i64 8}
!15 = !{!16, !7, i64 8}
!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, !7, i64 0}
!19 = !{!"_cpBigNum", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24}
!20 = !{!19, !7, i64 4}
!21 = !{!6, !7, i64 24}
!22 = !{!19, !7, i64 12}
!23 = !{!6, !10, i64 80}
!24 = !{!16, !10, i64 48}
!25 = !{!16, !7, i64 16}
!26 = !{!19, !10, i64 16}
!27 = !{!19, !10, i64 24}
!28 = !{!19, !7, i64 8}
!29 = !{!16, !10, i64 32}
!30 = !{!31, !10, i64 8}
!31 = !{!"_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}
!32 = !{!17, !17, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.unroll.disable"}
!35 = distinct !{!35, !36, !37, !38}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!"llvm.loop.isvectorized", i32 1}
!38 = !{!"llvm.loop.unroll.runtime.disable"}
!39 = distinct !{!39, !36, !37}
!40 = distinct !{!40, !34}
!41 = distinct !{!41, !36, !37, !38}
!42 = distinct !{!42, !36, !37}
!43 = !{!31, !10, i64 0}
!44 = !{!31, !10, i64 16}
!45 = distinct !{!45, !34}
!46 = distinct !{!46, !36, !37, !38}
!47 = distinct !{!47, !36, !37}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass