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

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

%struct._cpHashCtx_rmf = type { i32, ptr, i32, [128 x i8], i64, i64, [8 x i64] }
%struct._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 }

@ippsGFpECDecryptSM2_Ext.ctx = external hidden global %struct._cpHashCtx_rmf, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpECDecryptSM2_Ext(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca %struct._cpGFpECPoint, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca [32 x i8], align 16
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i32 %4, ptr %14, align 4, !tbaa !9
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  %46 = icmp eq ptr null, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %8
  store i32 -8, ptr %9, align 4
  br label %357

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

57:                                               ; preds = %48
  store i32 -13, ptr %9, align 4
  br label %357

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

63:                                               ; preds = %58
  store i32 -13, ptr %9, align 4
  br label %357

64:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct._cpGFpEC, ptr %65, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = getelementptr inbounds %struct._cpGFp, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  store ptr %69, ptr %18, align 8, !tbaa !5
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._gsModEngine, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 8, !tbaa !17
  %73 = icmp slt i32 1, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %64
  store i32 -14, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %356

75:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._cpGFpEC, ptr %76, i32 0, i32 13
  %78 = load ptr, ptr %77, align 8, !tbaa !20
  store ptr %78, ptr %20, align 8, !tbaa !5
  %79 = load ptr, ptr %20, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._gsModEngine, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 8, !tbaa !17
  %82 = icmp slt i32 1, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %75
  store i32 -14, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %355

84:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._gsModEngine, ptr %85, i32 0, i32 2
  %87 = load i32, ptr %86, align 4, !tbaa !21
  store i32 %87, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %88 = load i32, ptr %21, align 4, !tbaa !9
  %89 = add nsw i32 %88, 7
  %90 = sdiv i32 %89, 8
  store i32 %90, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._gsModEngine, ptr %91, i32 0, i32 3
  %93 = load i32, ptr %92, align 8, !tbaa !22
  store i32 %93, ptr %23, align 4, !tbaa !9
  %94 = load ptr, ptr %17, align 8, !tbaa !5
  %95 = icmp eq ptr null, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %84
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %354

97:                                               ; preds = %84
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = icmp eq ptr null, %98
  br i1 %99, label %100, label %101

100:                                              ; preds = %97
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %354

101:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 1, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %102 = load i32, ptr %23, align 4, !tbaa !9
  %103 = mul nsw i32 16, %102
  store i32 %103, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 32, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %104 = load i32, ptr %25, align 4, !tbaa !9
  %105 = add nsw i32 1, %104
  %106 = add nsw i32 %105, 32
  store i32 %106, ptr %27, align 4, !tbaa !9
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = load i32, ptr %27, align 4, !tbaa !9
  %109 = icmp sge i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %101
  store i32 -11, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %353

111:                                              ; preds = %101
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = icmp eq ptr null, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %111
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %353

115:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = load i32, ptr %27, align 4, !tbaa !9
  %118 = sub nsw i32 %116, %117
  store i32 %118, ptr %28, align 4, !tbaa !9
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = load i32, ptr %28, align 4, !tbaa !9
  %121 = icmp sge i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %115
  store i32 -11, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %352

123:                                              ; preds = %115
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = icmp eq ptr null, %124
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %352

127:                                              ; preds = %123
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 0, ptr %128, align 4, !tbaa !9
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = icmp eq ptr null, %129
  br i1 %130, label %131, label %132

131:                                              ; preds = %127
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %352

132:                                              ; preds = %127
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._cpBigNum, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !23
  %136 = load ptr, ptr %15, align 8, !tbaa !5
  %137 = call i64 @IPP_UINT_PTR(ptr noundef %136)
  %138 = trunc i64 %137 to i32
  %139 = xor i32 %135, %138
  %140 = icmp eq i32 %139, 1112098638
  br i1 %140, label %142, label %141

141:                                              ; preds = %132
  store i32 -13, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %352

142:                                              ; preds = %132
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct._cpBigNum, ptr %143, i32 0, i32 1
  %145 = load i32, ptr %144, align 4, !tbaa !25
  %146 = icmp eq i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %142
  store i32 -1008, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %352

148:                                              ; preds = %142
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = load ptr, ptr %16, align 8, !tbaa !5
  %151 = call i32 @gfec_CheckPrivateKey(ptr noundef %149, ptr noundef %150)
  %152 = icmp eq i32 0, %151
  br i1 %152, label %153, label %154

153:                                              ; preds = %148
  store i32 -1008, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %352

154:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  store i32 -1017, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  store i32 0, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %155, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %156 = load ptr, ptr %31, align 8, !tbaa !5
  %157 = getelementptr inbounds i8, ptr %156, i64 1
  store ptr %157, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %158 = load ptr, ptr %32, align 8, !tbaa !5
  %159 = load i32, ptr %25, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds i8, ptr %158, i64 %160
  store ptr %161, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %162 = load ptr, ptr %33, align 8, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %162, i64 32
  store ptr %163, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #4
  %164 = load ptr, ptr %16, align 8, !tbaa !5
  %165 = call ptr @cpEcGFpGetPool(i32 noundef 1, ptr noundef %164)
  %166 = load ptr, ptr %16, align 8, !tbaa !5
  %167 = call ptr @cpEcGFpInitPoint(ptr noundef %35, ptr noundef %165, i32 noundef 0, ptr noundef %166)
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  %168 = load ptr, ptr %18, align 8, !tbaa !5
  %169 = call ptr @gsModPoolAlloc(ptr noundef %168, i32 noundef 2)
  store ptr %169, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  %170 = load ptr, ptr %36, align 8, !tbaa !5
  store ptr %170, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %171 = load ptr, ptr %37, align 8, !tbaa !5
  %172 = load i32, ptr %23, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds i64, ptr %171, i64 %173
  store ptr %174, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %189, %154
  %176 = load i32, ptr %39, align 4, !tbaa !9
  %177 = load i32, ptr %23, align 4, !tbaa !9
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %179, label %192

179:                                              ; preds = %175
  %180 = load ptr, ptr %32, align 8, !tbaa !5
  %181 = load i32, ptr %39, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds i64, ptr %180, i64 %182
  %184 = load i64, ptr %183, align 8, !tbaa !26
  %185 = load ptr, ptr %37, align 8, !tbaa !5
  %186 = load i32, ptr %39, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds i64, ptr %185, i64 %187
  store i64 %184, ptr %188, align 8, !tbaa !26
  br label %189

189:                                              ; preds = %179
  %190 = load i32, ptr %39, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %39, align 4, !tbaa !9
  br label %175, !llvm.loop !27

192:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %193

193:                                              ; preds = %210, %192
  %194 = load i32, ptr %40, align 4, !tbaa !9
  %195 = load i32, ptr %23, align 4, !tbaa !9
  %196 = icmp slt i32 %194, %195
  br i1 %196, label %197, label %213

197:                                              ; preds = %193
  %198 = load ptr, ptr %32, align 8, !tbaa !5
  %199 = load i32, ptr %22, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i8, ptr %198, i64 %200
  %202 = load i32, ptr %40, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds i64, ptr %201, i64 %203
  %205 = load i64, ptr %204, align 8, !tbaa !26
  %206 = load ptr, ptr %38, align 8, !tbaa !5
  %207 = load i32, ptr %40, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds i64, ptr %206, i64 %208
  store i64 %205, ptr %209, align 8, !tbaa !26
  br label %210

210:                                              ; preds = %197
  %211 = load i32, ptr %40, align 4, !tbaa !9
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %40, align 4, !tbaa !9
  br label %193, !llvm.loop !29

213:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  %214 = load ptr, ptr %37, align 8, !tbaa !5
  %215 = load i32, ptr %22, align 4, !tbaa !9
  call void @cpSM2KE_reverse_inplace(ptr noundef %214, i32 noundef %215)
  %216 = load ptr, ptr %38, align 8, !tbaa !5
  %217 = load i32, ptr %22, align 4, !tbaa !9
  call void @cpSM2KE_reverse_inplace(ptr noundef %216, i32 noundef %217)
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct._gsModEngine, ptr %218, i32 0, i32 6
  %220 = load ptr, ptr %219, align 8, !tbaa !30
  %221 = getelementptr inbounds %struct._gsModMethod, ptr %220, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8, !tbaa !31
  %223 = load ptr, ptr %37, align 8, !tbaa !5
  %224 = load ptr, ptr %37, align 8, !tbaa !5
  %225 = load ptr, ptr %18, align 8, !tbaa !5
  %226 = call ptr %222(ptr noundef %223, ptr noundef %224, ptr noundef %225)
  %227 = load ptr, ptr %18, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct._gsModEngine, ptr %227, i32 0, i32 6
  %229 = load ptr, ptr %228, align 8, !tbaa !30
  %230 = getelementptr inbounds %struct._gsModMethod, ptr %229, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8, !tbaa !31
  %232 = load ptr, ptr %38, align 8, !tbaa !5
  %233 = load ptr, ptr %38, align 8, !tbaa !5
  %234 = load ptr, ptr %18, align 8, !tbaa !5
  %235 = call ptr %231(ptr noundef %232, ptr noundef %233, ptr noundef %234)
  %236 = getelementptr inbounds %struct._cpGFpECPoint, ptr %35, i32 0, i32 3
  %237 = load ptr, ptr %236, align 8, !tbaa !33
  %238 = load ptr, ptr %37, align 8, !tbaa !5
  %239 = load ptr, ptr %38, align 8, !tbaa !5
  %240 = load ptr, ptr %16, align 8, !tbaa !5
  %241 = call i32 @gfec_SetPoint(ptr noundef %237, ptr noundef %238, ptr noundef %239, ptr noundef %240)
  store i32 %241, ptr %30, align 4, !tbaa !9
  %242 = load i32, ptr %30, align 4, !tbaa !9
  %243 = icmp ne i32 %242, 0
  %244 = zext i1 %243 to i64
  %245 = select i1 %243, i32 3, i32 0
  %246 = getelementptr inbounds %struct._cpGFpECPoint, ptr %35, i32 0, i32 1
  store i32 %245, ptr %246, align 4, !tbaa !35
  %247 = load i32, ptr %30, align 4, !tbaa !9
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %249, label %348

249:                                              ; preds = %213
  %250 = load ptr, ptr %16, align 8, !tbaa !5
  %251 = call i32 @gfec_IsPointOnCurve(ptr noundef %35, ptr noundef %250)
  %252 = icmp ne i32 0, %251
  br i1 %252, label %253, label %348

253:                                              ; preds = %249
  store i32 0, ptr %29, align 4, !tbaa !9
  %254 = load ptr, ptr %15, align 8, !tbaa !5
  %255 = load ptr, ptr %16, align 8, !tbaa !5
  %256 = load ptr, ptr %17, align 8, !tbaa !5
  %257 = call i32 @ippsGFpECMulPoint(ptr noundef %35, ptr noundef %254, ptr noundef %35, ptr noundef %255, ptr noundef %256)
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  %258 = load ptr, ptr %36, align 8, !tbaa !5
  store ptr %258, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  %259 = load ptr, ptr %41, align 8, !tbaa !5
  %260 = load i32, ptr %23, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds i64, ptr %259, i64 %261
  store ptr %262, ptr %42, align 8, !tbaa !5
  %263 = load ptr, ptr %41, align 8, !tbaa !5
  %264 = load ptr, ptr %42, align 8, !tbaa !5
  %265 = load ptr, ptr %16, align 8, !tbaa !5
  %266 = call i32 @gfec_GetPoint(ptr noundef %263, ptr noundef %264, ptr noundef %35, ptr noundef %265)
  %267 = load ptr, ptr %18, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct._gsModEngine, ptr %267, i32 0, i32 6
  %269 = load ptr, ptr %268, align 8, !tbaa !30
  %270 = getelementptr inbounds %struct._gsModMethod, ptr %269, i32 0, i32 1
  %271 = load ptr, ptr %270, align 8, !tbaa !36
  %272 = load ptr, ptr %41, align 8, !tbaa !5
  %273 = load ptr, ptr %41, align 8, !tbaa !5
  %274 = load ptr, ptr %18, align 8, !tbaa !5
  %275 = call ptr %271(ptr noundef %272, ptr noundef %273, ptr noundef %274)
  %276 = load ptr, ptr %18, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct._gsModEngine, ptr %276, i32 0, i32 6
  %278 = load ptr, ptr %277, align 8, !tbaa !30
  %279 = getelementptr inbounds %struct._gsModMethod, ptr %278, i32 0, i32 1
  %280 = load ptr, ptr %279, align 8, !tbaa !36
  %281 = load ptr, ptr %42, align 8, !tbaa !5
  %282 = load ptr, ptr %42, align 8, !tbaa !5
  %283 = load ptr, ptr %18, align 8, !tbaa !5
  %284 = call ptr %280(ptr noundef %281, ptr noundef %282, ptr noundef %283)
  %285 = load ptr, ptr %41, align 8, !tbaa !5
  %286 = load i32, ptr %22, align 4, !tbaa !9
  call void @cpSM2KE_reverse_inplace(ptr noundef %285, i32 noundef %286)
  %287 = load ptr, ptr %42, align 8, !tbaa !5
  %288 = load i32, ptr %22, align 4, !tbaa !9
  call void @cpSM2KE_reverse_inplace(ptr noundef %287, i32 noundef %288)
  %289 = load ptr, ptr %10, align 8, !tbaa !5
  %290 = load i32, ptr %28, align 4, !tbaa !9
  %291 = load ptr, ptr %36, align 8, !tbaa !5
  %292 = load i32, ptr %22, align 4, !tbaa !9
  %293 = mul nsw i32 2, %292
  %294 = call i32 @KDF_sm3(ptr noundef %289, i32 noundef %290, ptr noundef %291, i32 noundef %293)
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  store i32 0, ptr %43, align 4, !tbaa !9
  br label %295

295:                                              ; preds = %319, %253
  %296 = load i32, ptr %43, align 4, !tbaa !9
  %297 = load i32, ptr %28, align 4, !tbaa !9
  %298 = icmp slt i32 %296, %297
  br i1 %298, label %300, label %299

299:                                              ; preds = %295
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  br label %322

300:                                              ; preds = %295
  %301 = load ptr, ptr %10, align 8, !tbaa !5
  %302 = load i32, ptr %43, align 4, !tbaa !9
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds i8, ptr %301, i64 %303
  %305 = load i8, ptr %304, align 1, !tbaa !37
  %306 = zext i8 %305 to i32
  %307 = load ptr, ptr %34, align 8, !tbaa !5
  %308 = load i32, ptr %43, align 4, !tbaa !9
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds i8, ptr %307, i64 %309
  %311 = load i8, ptr %310, align 1, !tbaa !37
  %312 = zext i8 %311 to i32
  %313 = xor i32 %306, %312
  %314 = trunc i32 %313 to i8
  %315 = load ptr, ptr %10, align 8, !tbaa !5
  %316 = load i32, ptr %43, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds i8, ptr %315, i64 %317
  store i8 %314, ptr %318, align 1, !tbaa !37
  br label %319

319:                                              ; preds = %300
  %320 = load i32, ptr %43, align 4, !tbaa !9
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %43, align 4, !tbaa !9
  br label %295, !llvm.loop !38

322:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #4
  %323 = call ptr @ippsHashMethod_SM3_TT()
  %324 = call i32 @ippsHashInit_rmf(ptr noundef @ippsGFpECDecryptSM2_Ext.ctx, ptr noundef %323)
  %325 = load ptr, ptr %41, align 8, !tbaa !5
  %326 = load i32, ptr %22, align 4, !tbaa !9
  %327 = call i32 @ippsHashUpdate_rmf(ptr noundef %325, i32 noundef %326, ptr noundef @ippsGFpECDecryptSM2_Ext.ctx)
  %328 = load ptr, ptr %10, align 8, !tbaa !5
  %329 = load i32, ptr %28, align 4, !tbaa !9
  %330 = call i32 @ippsHashUpdate_rmf(ptr noundef %328, i32 noundef %329, ptr noundef @ippsGFpECDecryptSM2_Ext.ctx)
  %331 = load ptr, ptr %42, align 8, !tbaa !5
  %332 = load i32, ptr %22, align 4, !tbaa !9
  %333 = call i32 @ippsHashUpdate_rmf(ptr noundef %331, i32 noundef %332, ptr noundef @ippsGFpECDecryptSM2_Ext.ctx)
  %334 = getelementptr inbounds [32 x i8], ptr %44, i64 0, i64 0
  %335 = call i32 @ippsHashFinal_rmf(ptr noundef %334, ptr noundef @ippsGFpECDecryptSM2_Ext.ctx)
  %336 = getelementptr inbounds [32 x i8], ptr %44, i64 0, i64 0
  %337 = load ptr, ptr %33, align 8, !tbaa !5
  %338 = call i32 @EquBlock(ptr noundef %336, ptr noundef %337, i32 noundef 32)
  %339 = icmp eq i32 0, %338
  br i1 %339, label %340, label %343

340:                                              ; preds = %322
  %341 = load ptr, ptr %10, align 8, !tbaa !5
  %342 = load i32, ptr %28, align 4, !tbaa !9
  call void @PurgeBlock(ptr noundef %341, i32 noundef %342)
  br label %346

343:                                              ; preds = %322
  %344 = load i32, ptr %28, align 4, !tbaa !9
  %345 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 %344, ptr %345, align 4, !tbaa !9
  br label %346

346:                                              ; preds = %343, %340
  %347 = getelementptr inbounds [32 x i8], ptr %44, i64 0, i64 0
  call void @PurgeBlock(ptr noundef %347, i32 noundef 32)
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  br label %348

348:                                              ; preds = %346, %249, %213
  %349 = load ptr, ptr %18, align 8, !tbaa !5
  call void @gsModPoolFree(ptr noundef %349, i32 noundef 2)
  %350 = load ptr, ptr %16, align 8, !tbaa !5
  call void @cpEcGFpReleasePool(i32 noundef 1, ptr noundef %350)
  %351 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %351, ptr %9, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %352

352:                                              ; preds = %348, %153, %147, %141, %131, %126, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %353

353:                                              ; preds = %352, %114, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %354

354:                                              ; preds = %353, %100, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %355

355:                                              ; preds = %354, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %356

356:                                              ; preds = %355, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %357

357:                                              ; preds = %356, %63, %57, %47
  %358 = load i32, ptr %9, align 4
  ret i32 %358
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare ptr @ippsHashMethod_SM3_TT() #3

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

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!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, !10, i64 16}
!14 = !{!12, !6, i64 8}
!15 = !{!16, !6, i64 8}
!16 = !{!"_cpGFp", !10, i64 0, !10, i64 4, !6, i64 8}
!17 = !{!18, !10, i64 8}
!18 = !{!"_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, !19, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !6, i64 104}
!19 = !{!"long long", !7, i64 0}
!20 = !{!12, !6, i64 80}
!21 = !{!18, !10, i64 12}
!22 = !{!18, !10, i64 16}
!23 = !{!24, !10, i64 0}
!24 = !{!"_cpBigNum", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!25 = !{!24, !10, i64 4}
!26 = !{!19, !19, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!18, !6, i64 32}
!31 = !{!32, !6, i64 0}
!32 = !{!"_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}
!33 = !{!34, !6, i64 16}
!34 = !{!"_cpGFpECPoint", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16}
!35 = !{!34, !10, i64 4}
!36 = !{!32, !6, i64 8}
!37 = !{!7, !7, i64 0}
!38 = distinct !{!38, !28}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct._cpHashCtx_rmf = type { i32, ptr, i32, [128 x i8], i64, i64, [8 x i64] }
%struct._cpGFpECPoint = type { i32, i32, i32, ptr }

@ippsGFpECDecryptSM2_Ext.ctx = external hidden global %struct._cpHashCtx_rmf, align 8

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1017, 1) i32 @ippsGFpECDecryptSM2_Ext(ptr noundef %0, i32 noundef %1, ptr noundef writeonly %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = ptrtoint ptr %3 to i64
  %10 = alloca %struct._cpGFpECPoint, align 8
  %11 = alloca [32 x i8], align 16
  %12 = icmp eq ptr %6, null
  br i1 %12, label %212, label %13

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

19:                                               ; preds = %13
  %20 = getelementptr inbounds i8, ptr %6, i64 16
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %212, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %6, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = load i32, ptr %27, align 8, !tbaa !15
  %29 = icmp sgt i32 %28, 1
  br i1 %29, label %212, label %30

30:                                               ; preds = %22
  %31 = getelementptr inbounds i8, ptr %6, i64 80
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !15
  %35 = icmp sgt i32 %34, 1
  br i1 %35, label %212, label %36

36:                                               ; preds = %30
  %37 = getelementptr inbounds i8, ptr %26, i64 12
  %38 = load i32, ptr %37, align 4, !tbaa !19
  %39 = add nsw i32 %38, 7
  %40 = sdiv i32 %39, 8
  %41 = getelementptr inbounds i8, ptr %26, i64 16
  %42 = load i32, ptr %41, align 8, !tbaa !20
  %43 = icmp eq ptr %7, null
  %44 = icmp eq ptr %3, null
  %or.cond = or i1 %44, %43
  br i1 %or.cond, label %212, label %45

45:                                               ; preds = %36
  %46 = shl nsw i32 %42, 4
  %47 = add nsw i32 %46, 33
  %.not136 = icmp sgt i32 %47, %4
  br i1 %.not136, label %212, label %48

48:                                               ; preds = %45
  %49 = icmp eq ptr %0, null
  br i1 %49, label %212, label %50

50:                                               ; preds = %48
  %51 = sub nsw i32 %4, %47
  %.not137 = icmp sgt i32 %51, %1
  br i1 %.not137, label %212, label %52

52:                                               ; preds = %50
  %53 = icmp eq ptr %2, null
  br i1 %53, label %212, label %54

54:                                               ; preds = %52
  store i32 0, ptr %2, align 4, !tbaa !21
  %55 = icmp eq ptr %5, null
  br i1 %55, label %212, label %56

56:                                               ; preds = %54
  %57 = load i32, ptr %5, align 8, !tbaa !22
  %58 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %5)
  %59 = trunc i64 %58 to i32
  %60 = xor i32 %57, %59
  %61 = icmp eq i32 %60, 1112098638
  br i1 %61, label %62, label %212

62:                                               ; preds = %56
  %63 = getelementptr inbounds i8, ptr %5, i64 4
  %64 = load i32, ptr %63, align 4, !tbaa !24
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %212, label %66

66:                                               ; preds = %62
  %67 = tail call i32 @gfec_CheckPrivateKey(ptr noundef nonnull %5, ptr noundef nonnull %6) #4
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %212, label %69

69:                                               ; preds = %66
  %70 = getelementptr i8, ptr %3, i64 1
  %71 = sext i32 %46 to i64
  %72 = getelementptr i8, ptr %70, i64 %71
  %73 = getelementptr i8, ptr %72, i64 32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #4
  %74 = tail call ptr @cpEcGFpGetPool(i32 noundef 1, ptr noundef nonnull %6)
  %75 = call ptr @cpEcGFpInitPoint(ptr noundef nonnull %10, ptr noundef %74, i32 noundef 0, ptr noundef nonnull %6)
  %76 = call ptr @gsModPoolAlloc(ptr noundef nonnull %26, i32 noundef 2)
  %77 = ptrtoint ptr %76 to i64
  %78 = sext i32 %42 to i64
  %79 = getelementptr i64, ptr %76, i64 %78
  %80 = icmp sgt i32 %42, 0
  br i1 %80, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %69
  %wide.trip.count = zext nneg i32 %42 to i64
  %min.iters.check = icmp ult i32 %42, 8
  %81 = sub i64 %9, %77
  %diff.check = icmp ugt i64 %81, -33
  %or.cond200 = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond200, label %.lr.ph.preheader201, label %vector.ph

.lr.ph.preheader201:                              ; 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.preheader201, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader201 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader201 ]
  %82 = getelementptr inbounds i64, ptr %70, i64 %indvars.iv.prol
  %83 = load i64, ptr %82, align 8, !tbaa !25
  %84 = getelementptr inbounds i64, ptr %76, i64 %indvars.iv.prol
  store i64 %83, ptr %84, align 8, !tbaa !25
  %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 !26

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader201
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader201 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %85 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %86 = icmp ugt i64 %85, -4
  br i1 %86, label %.preheader, 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 ]
  %87 = getelementptr inbounds i64, ptr %70, i64 %index
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %wide.load = load <2 x i64>, ptr %87, align 8, !tbaa !25
  %wide.load158 = load <2 x i64>, ptr %88, align 8, !tbaa !25
  %89 = getelementptr inbounds i64, ptr %76, i64 %index
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  store <2 x i64> %wide.load, ptr %89, align 8, !tbaa !25
  store <2 x i64> %wide.load158, ptr %90, align 8, !tbaa !25
  %index.next = add nuw i64 %index, 4
  %91 = icmp eq i64 %index.next, %n.vec
  br i1 %91, label %middle.block, label %vector.body, !llvm.loop !28

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

.preheader:                                       ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block
  br i1 %80, label %.lr.ph142, label %._crit_edge

.lr.ph142:                                        ; preds = %.preheader
  %92 = sext i32 %40 to i64
  %93 = getelementptr inbounds i8, ptr %70, i64 %92
  %wide.trip.count151 = zext nneg i32 %42 to i64
  %min.iters.check163 = icmp ult i32 %42, 16
  br i1 %min.iters.check163, label %scalar.ph162.preheader, label %vector.memcheck159

scalar.ph162.preheader:                           ; preds = %middle.block161, %vector.memcheck159, %.lr.ph142
  %indvars.iv148.ph = phi i64 [ 0, %vector.memcheck159 ], [ 0, %.lr.ph142 ], [ %n.vec166, %middle.block161 ]
  %xtraiter202 = and i64 %wide.trip.count, 3
  %lcmp.mod203.not = icmp eq i64 %xtraiter202, 0
  br i1 %lcmp.mod203.not, label %scalar.ph162.prol.loopexit, label %scalar.ph162.prol

scalar.ph162.prol:                                ; preds = %scalar.ph162.preheader, %scalar.ph162.prol
  %indvars.iv148.prol = phi i64 [ %indvars.iv.next149.prol, %scalar.ph162.prol ], [ %indvars.iv148.ph, %scalar.ph162.preheader ]
  %prol.iter204 = phi i64 [ %prol.iter204.next, %scalar.ph162.prol ], [ 0, %scalar.ph162.preheader ]
  %94 = getelementptr inbounds i64, ptr %93, i64 %indvars.iv148.prol
  %95 = load i64, ptr %94, align 8, !tbaa !25
  %96 = getelementptr inbounds i64, ptr %79, i64 %indvars.iv148.prol
  store i64 %95, ptr %96, align 8, !tbaa !25
  %indvars.iv.next149.prol = add nuw nsw i64 %indvars.iv148.prol, 1
  %prol.iter204.next = add i64 %prol.iter204, 1
  %prol.iter204.cmp.not = icmp eq i64 %prol.iter204.next, %xtraiter202
  br i1 %prol.iter204.cmp.not, label %scalar.ph162.prol.loopexit, label %scalar.ph162.prol, !llvm.loop !32

scalar.ph162.prol.loopexit:                       ; preds = %scalar.ph162.prol, %scalar.ph162.preheader
  %indvars.iv148.unr = phi i64 [ %indvars.iv148.ph, %scalar.ph162.preheader ], [ %indvars.iv.next149.prol, %scalar.ph162.prol ]
  %97 = sub nsw i64 %indvars.iv148.ph, %wide.trip.count
  %98 = icmp ugt i64 %97, -4
  br i1 %98, label %._crit_edge, label %scalar.ph162

vector.memcheck159:                               ; preds = %.lr.ph142
  %99 = shl nuw nsw i64 %78, 3
  %100 = add i64 %99, %77
  %101 = sub i64 %9, %100
  %102 = add i64 %101, %92
  %diff.check160 = icmp ugt i64 %102, -33
  br i1 %diff.check160, label %scalar.ph162.preheader, label %vector.ph164

vector.ph164:                                     ; preds = %vector.memcheck159
  %n.vec166 = and i64 %wide.trip.count, 2147483644
  br label %vector.body168

vector.body168:                                   ; preds = %vector.body168, %vector.ph164
  %index169 = phi i64 [ 0, %vector.ph164 ], [ %index.next172, %vector.body168 ]
  %103 = getelementptr inbounds i64, ptr %93, i64 %index169
  %104 = getelementptr inbounds i8, ptr %103, i64 16
  %wide.load170 = load <2 x i64>, ptr %103, align 8, !tbaa !25
  %wide.load171 = load <2 x i64>, ptr %104, align 8, !tbaa !25
  %105 = getelementptr inbounds i64, ptr %79, i64 %index169
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  store <2 x i64> %wide.load170, ptr %105, align 8, !tbaa !25
  store <2 x i64> %wide.load171, ptr %106, align 8, !tbaa !25
  %index.next172 = add nuw i64 %index169, 4
  %107 = icmp eq i64 %index.next172, %n.vec166
  br i1 %107, label %middle.block161, label %vector.body168, !llvm.loop !33

middle.block161:                                  ; preds = %vector.body168
  %cmp.n173 = icmp eq i64 %n.vec166, %wide.trip.count
  br i1 %cmp.n173, label %._crit_edge, label %scalar.ph162.preheader

.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 ]
  %108 = getelementptr inbounds i64, ptr %70, i64 %indvars.iv
  %109 = load i64, ptr %108, align 8, !tbaa !25
  %110 = getelementptr inbounds i64, ptr %76, i64 %indvars.iv
  store i64 %109, ptr %110, align 8, !tbaa !25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %111 = getelementptr inbounds i64, ptr %70, i64 %indvars.iv.next
  %112 = load i64, ptr %111, align 8, !tbaa !25
  %113 = getelementptr inbounds i64, ptr %76, i64 %indvars.iv.next
  store i64 %112, ptr %113, align 8, !tbaa !25
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %114 = getelementptr inbounds i64, ptr %70, i64 %indvars.iv.next.1
  %115 = load i64, ptr %114, align 8, !tbaa !25
  %116 = getelementptr inbounds i64, ptr %76, i64 %indvars.iv.next.1
  store i64 %115, ptr %116, align 8, !tbaa !25
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %117 = getelementptr inbounds i64, ptr %70, i64 %indvars.iv.next.2
  %118 = load i64, ptr %117, align 8, !tbaa !25
  %119 = getelementptr inbounds i64, ptr %76, i64 %indvars.iv.next.2
  store i64 %118, ptr %119, align 8, !tbaa !25
  %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 %.preheader, label %.lr.ph, !llvm.loop !34

scalar.ph162:                                     ; preds = %scalar.ph162.prol.loopexit, %scalar.ph162
  %indvars.iv148 = phi i64 [ %indvars.iv.next149.3, %scalar.ph162 ], [ %indvars.iv148.unr, %scalar.ph162.prol.loopexit ]
  %120 = getelementptr inbounds i64, ptr %93, i64 %indvars.iv148
  %121 = load i64, ptr %120, align 8, !tbaa !25
  %122 = getelementptr inbounds i64, ptr %79, i64 %indvars.iv148
  store i64 %121, ptr %122, align 8, !tbaa !25
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %123 = getelementptr inbounds i64, ptr %93, i64 %indvars.iv.next149
  %124 = load i64, ptr %123, align 8, !tbaa !25
  %125 = getelementptr inbounds i64, ptr %79, i64 %indvars.iv.next149
  store i64 %124, ptr %125, align 8, !tbaa !25
  %indvars.iv.next149.1 = add nuw nsw i64 %indvars.iv148, 2
  %126 = getelementptr inbounds i64, ptr %93, i64 %indvars.iv.next149.1
  %127 = load i64, ptr %126, align 8, !tbaa !25
  %128 = getelementptr inbounds i64, ptr %79, i64 %indvars.iv.next149.1
  store i64 %127, ptr %128, align 8, !tbaa !25
  %indvars.iv.next149.2 = add nuw nsw i64 %indvars.iv148, 3
  %129 = getelementptr inbounds i64, ptr %93, i64 %indvars.iv.next149.2
  %130 = load i64, ptr %129, align 8, !tbaa !25
  %131 = getelementptr inbounds i64, ptr %79, i64 %indvars.iv.next149.2
  store i64 %130, ptr %131, align 8, !tbaa !25
  %indvars.iv.next149.3 = add nuw nsw i64 %indvars.iv148, 4
  %exitcond152.not.3 = icmp eq i64 %indvars.iv.next149.3, %wide.trip.count151
  br i1 %exitcond152.not.3, label %._crit_edge, label %scalar.ph162, !llvm.loop !35

._crit_edge:                                      ; preds = %scalar.ph162.prol.loopexit, %scalar.ph162, %middle.block161, %69, %.preheader
  call void @cpSM2KE_reverse_inplace(ptr noundef %76, i32 noundef %40)
  call void @cpSM2KE_reverse_inplace(ptr noundef %79, i32 noundef %40)
  %132 = getelementptr inbounds i8, ptr %26, i64 32
  %133 = load ptr, ptr %132, align 8, !tbaa !36
  %134 = load ptr, ptr %133, align 8, !tbaa !37
  %135 = call ptr %134(ptr noundef %76, ptr noundef %76, ptr noundef %26) #4
  %136 = load ptr, ptr %132, align 8, !tbaa !36
  %137 = load ptr, ptr %136, align 8, !tbaa !37
  %138 = call ptr %137(ptr noundef %79, ptr noundef %79, ptr noundef %26) #4
  %139 = getelementptr inbounds i8, ptr %10, i64 16
  %140 = load ptr, ptr %139, align 8, !tbaa !39
  %141 = call i32 @gfec_SetPoint(ptr noundef %140, ptr noundef %76, ptr noundef %79, ptr noundef nonnull %6) #4
  %.not138 = icmp eq i32 %141, 0
  %142 = select i1 %.not138, i32 0, i32 3
  %143 = getelementptr inbounds i8, ptr %10, i64 4
  store i32 %142, ptr %143, align 4, !tbaa !41
  br i1 %.not138, label %211, label %144

144:                                              ; preds = %._crit_edge
  %145 = call i32 @gfec_IsPointOnCurve(ptr noundef nonnull %10, ptr noundef nonnull %6) #4
  %.not139 = icmp eq i32 %145, 0
  br i1 %.not139, label %211, label %146

146:                                              ; preds = %144
  %147 = call i32 @ippsGFpECMulPoint(ptr noundef nonnull %10, ptr noundef nonnull %5, ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %148 = call i32 @gfec_GetPoint(ptr noundef %76, ptr noundef %79, ptr noundef nonnull %10, ptr noundef nonnull %6) #4
  %149 = load ptr, ptr %132, align 8, !tbaa !36
  %150 = getelementptr inbounds i8, ptr %149, i64 8
  %151 = load ptr, ptr %150, align 8, !tbaa !42
  %152 = call ptr %151(ptr noundef %76, ptr noundef %76, ptr noundef nonnull %26) #4
  %153 = load ptr, ptr %132, align 8, !tbaa !36
  %154 = getelementptr inbounds i8, ptr %153, i64 8
  %155 = load ptr, ptr %154, align 8, !tbaa !42
  %156 = call ptr %155(ptr noundef %79, ptr noundef %79, ptr noundef nonnull %26) #4
  call void @cpSM2KE_reverse_inplace(ptr noundef %76, i32 noundef %40)
  call void @cpSM2KE_reverse_inplace(ptr noundef %79, i32 noundef %40)
  %157 = shl nsw i32 %40, 1
  %158 = call i32 @KDF_sm3(ptr noundef nonnull %0, i32 noundef %51, ptr noundef %76, i32 noundef %157) #4
  %159 = icmp sgt i32 %51, 0
  br i1 %159, label %iter.check, label %._crit_edge146

iter.check:                                       ; preds = %146
  %wide.trip.count156 = zext nneg i32 %51 to i64
  %min.iters.check178 = icmp ult i32 %51, 8
  br i1 %min.iters.check178, label %.lr.ph145.preheader, label %vector.memcheck174

vector.memcheck174:                               ; preds = %iter.check
  %scevgep = getelementptr i8, ptr %0, i64 %wide.trip.count156
  %160 = getelementptr i8, ptr %3, i64 %71
  %161 = getelementptr i8, ptr %160, i64 %wide.trip.count156
  %scevgep175 = getelementptr i8, ptr %161, i64 33
  %bound0 = icmp ugt ptr %scevgep175, %0
  %bound1 = icmp ult ptr %73, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph145.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.memcheck174
  %min.iters.check180 = icmp ult i32 %51, 32
  br i1 %min.iters.check180, label %vec.epilog.ph, label %vector.ph181

vector.ph181:                                     ; preds = %vector.main.loop.iter.check
  %n.vec183 = and i64 %wide.trip.count156, 2147483616
  br label %vector.body184

vector.body184:                                   ; preds = %vector.body184, %vector.ph181
  %index185 = phi i64 [ 0, %vector.ph181 ], [ %index.next190, %vector.body184 ]
  %162 = getelementptr inbounds i8, ptr %0, i64 %index185
  %163 = getelementptr inbounds i8, ptr %162, i64 16
  %wide.load186 = load <16 x i8>, ptr %162, align 1, !tbaa !43, !alias.scope !44, !noalias !47
  %wide.load187 = load <16 x i8>, ptr %163, align 1, !tbaa !43, !alias.scope !44, !noalias !47
  %164 = getelementptr inbounds i8, ptr %73, i64 %index185
  %165 = getelementptr inbounds i8, ptr %164, i64 16
  %wide.load188 = load <16 x i8>, ptr %164, align 1, !tbaa !43, !alias.scope !47
  %wide.load189 = load <16 x i8>, ptr %165, align 1, !tbaa !43, !alias.scope !47
  %166 = xor <16 x i8> %wide.load188, %wide.load186
  %167 = xor <16 x i8> %wide.load189, %wide.load187
  store <16 x i8> %166, ptr %162, align 1, !tbaa !43, !alias.scope !44, !noalias !47
  store <16 x i8> %167, ptr %163, align 1, !tbaa !43, !alias.scope !44, !noalias !47
  %index.next190 = add nuw i64 %index185, 32
  %168 = icmp eq i64 %index.next190, %n.vec183
  br i1 %168, label %middle.block176, label %vector.body184, !llvm.loop !49

middle.block176:                                  ; preds = %vector.body184
  %cmp.n191 = icmp eq i64 %n.vec183, %wide.trip.count156
  br i1 %cmp.n191, label %._crit_edge146, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block176
  %n.vec.remaining = and i64 %wide.trip.count156, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph145.preheader, label %vec.epilog.ph

.lr.ph145.preheader:                              ; preds = %vec.epilog.middle.block, %vector.memcheck174, %iter.check, %vec.epilog.iter.check
  %indvars.iv153.ph = phi i64 [ 0, %iter.check ], [ 0, %vector.memcheck174 ], [ %n.vec183, %vec.epilog.iter.check ], [ %n.vec193, %vec.epilog.middle.block ]
  %xtraiter205 = and i64 %wide.trip.count156, 3
  %lcmp.mod206.not = icmp eq i64 %xtraiter205, 0
  br i1 %lcmp.mod206.not, label %.lr.ph145.prol.loopexit, label %.lr.ph145.prol

.lr.ph145.prol:                                   ; preds = %.lr.ph145.preheader, %.lr.ph145.prol
  %indvars.iv153.prol = phi i64 [ %indvars.iv.next154.prol, %.lr.ph145.prol ], [ %indvars.iv153.ph, %.lr.ph145.preheader ]
  %prol.iter207 = phi i64 [ %prol.iter207.next, %.lr.ph145.prol ], [ 0, %.lr.ph145.preheader ]
  %169 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv153.prol
  %170 = load i8, ptr %169, align 1, !tbaa !43
  %171 = getelementptr inbounds i8, ptr %73, i64 %indvars.iv153.prol
  %172 = load i8, ptr %171, align 1, !tbaa !43
  %173 = xor i8 %172, %170
  store i8 %173, ptr %169, align 1, !tbaa !43
  %indvars.iv.next154.prol = add nuw nsw i64 %indvars.iv153.prol, 1
  %prol.iter207.next = add i64 %prol.iter207, 1
  %prol.iter207.cmp.not = icmp eq i64 %prol.iter207.next, %xtraiter205
  br i1 %prol.iter207.cmp.not, label %.lr.ph145.prol.loopexit, label %.lr.ph145.prol, !llvm.loop !50

.lr.ph145.prol.loopexit:                          ; preds = %.lr.ph145.prol, %.lr.ph145.preheader
  %indvars.iv153.unr = phi i64 [ %indvars.iv153.ph, %.lr.ph145.preheader ], [ %indvars.iv.next154.prol, %.lr.ph145.prol ]
  %174 = sub nsw i64 %indvars.iv153.ph, %wide.trip.count156
  %175 = icmp ugt i64 %174, -4
  br i1 %175, label %._crit_edge146, label %.lr.ph145

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec183, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec193 = and i64 %wide.trip.count156, 2147483640
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index195 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next198, %vec.epilog.vector.body ]
  %176 = getelementptr inbounds i8, ptr %0, i64 %index195
  %wide.load196 = load <8 x i8>, ptr %176, align 1, !tbaa !43, !alias.scope !51, !noalias !54
  %177 = getelementptr inbounds i8, ptr %73, i64 %index195
  %wide.load197 = load <8 x i8>, ptr %177, align 1, !tbaa !43, !alias.scope !54
  %178 = xor <8 x i8> %wide.load197, %wide.load196
  store <8 x i8> %178, ptr %176, align 1, !tbaa !43, !alias.scope !51, !noalias !54
  %index.next198 = add nuw i64 %index195, 8
  %179 = icmp eq i64 %index.next198, %n.vec193
  br i1 %179, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !56

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n199 = icmp eq i64 %n.vec193, %wide.trip.count156
  br i1 %cmp.n199, label %._crit_edge146, label %.lr.ph145.preheader

._crit_edge146:                                   ; preds = %.lr.ph145.prol.loopexit, %.lr.ph145, %middle.block176, %vec.epilog.middle.block, %146
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #4
  %180 = call ptr @ippsHashMethod_SM3_TT() #4
  %181 = call i32 @ippsHashInit_rmf(ptr noundef nonnull @ippsGFpECDecryptSM2_Ext.ctx, ptr noundef %180) #4
  %182 = call i32 @ippsHashUpdate_rmf(ptr noundef %76, i32 noundef %40, ptr noundef nonnull @ippsGFpECDecryptSM2_Ext.ctx) #4
  %183 = call i32 @ippsHashUpdate_rmf(ptr noundef nonnull %0, i32 noundef %51, ptr noundef nonnull @ippsGFpECDecryptSM2_Ext.ctx) #4
  %184 = call i32 @ippsHashUpdate_rmf(ptr noundef %79, i32 noundef %40, ptr noundef nonnull @ippsGFpECDecryptSM2_Ext.ctx) #4
  %185 = call i32 @ippsHashFinal_rmf(ptr noundef nonnull %11, ptr noundef nonnull @ippsGFpECDecryptSM2_Ext.ctx) #4
  %186 = call i32 @EquBlock(ptr noundef nonnull %11, ptr noundef nonnull %72, i32 noundef 32)
  %187 = icmp eq i32 %186, 0
  br i1 %187, label %208, label %209

.lr.ph145:                                        ; preds = %.lr.ph145.prol.loopexit, %.lr.ph145
  %indvars.iv153 = phi i64 [ %indvars.iv.next154.3, %.lr.ph145 ], [ %indvars.iv153.unr, %.lr.ph145.prol.loopexit ]
  %188 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv153
  %189 = load i8, ptr %188, align 1, !tbaa !43
  %190 = getelementptr inbounds i8, ptr %73, i64 %indvars.iv153
  %191 = load i8, ptr %190, align 1, !tbaa !43
  %192 = xor i8 %191, %189
  store i8 %192, ptr %188, align 1, !tbaa !43
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %193 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv.next154
  %194 = load i8, ptr %193, align 1, !tbaa !43
  %195 = getelementptr inbounds i8, ptr %73, i64 %indvars.iv.next154
  %196 = load i8, ptr %195, align 1, !tbaa !43
  %197 = xor i8 %196, %194
  store i8 %197, ptr %193, align 1, !tbaa !43
  %indvars.iv.next154.1 = add nuw nsw i64 %indvars.iv153, 2
  %198 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv.next154.1
  %199 = load i8, ptr %198, align 1, !tbaa !43
  %200 = getelementptr inbounds i8, ptr %73, i64 %indvars.iv.next154.1
  %201 = load i8, ptr %200, align 1, !tbaa !43
  %202 = xor i8 %201, %199
  store i8 %202, ptr %198, align 1, !tbaa !43
  %indvars.iv.next154.2 = add nuw nsw i64 %indvars.iv153, 3
  %203 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv.next154.2
  %204 = load i8, ptr %203, align 1, !tbaa !43
  %205 = getelementptr inbounds i8, ptr %73, i64 %indvars.iv.next154.2
  %206 = load i8, ptr %205, align 1, !tbaa !43
  %207 = xor i8 %206, %204
  store i8 %207, ptr %203, align 1, !tbaa !43
  %indvars.iv.next154.3 = add nuw nsw i64 %indvars.iv153, 4
  %exitcond157.not.3 = icmp eq i64 %indvars.iv.next154.3, %wide.trip.count156
  br i1 %exitcond157.not.3, label %._crit_edge146, label %.lr.ph145, !llvm.loop !57

208:                                              ; preds = %._crit_edge146
  call void @PurgeBlock(ptr noundef nonnull %0, i32 noundef %51)
  br label %210

209:                                              ; preds = %._crit_edge146
  store i32 %51, ptr %2, align 4, !tbaa !21
  br label %210

210:                                              ; preds = %209, %208
  call void @PurgeBlock(ptr noundef nonnull %11, i32 noundef 32)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #4
  br label %211

211:                                              ; preds = %210, %144, %._crit_edge
  %.0125 = phi i32 [ 0, %210 ], [ -1017, %144 ], [ -1017, %._crit_edge ]
  call void @gsModPoolFree(ptr noundef %26, i32 noundef 2)
  call void @cpEcGFpReleasePool(i32 noundef 1, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  br label %212

212:                                              ; preds = %22, %36, %211, %50, %52, %54, %56, %62, %66, %48, %45, %30, %19, %13, %8
  %.5 = phi i32 [ -8, %8 ], [ -13, %13 ], [ -13, %19 ], [ -14, %22 ], [ -14, %30 ], [ -8, %36 ], [ -11, %45 ], [ -8, %48 ], [ %.0125, %211 ], [ -11, %50 ], [ -8, %52 ], [ -8, %54 ], [ -13, %56 ], [ -1008, %62 ], [ -1008, %66 ]
  ret i32 %.5
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare ptr @ippsHashMethod_SM3_TT() local_unnamed_addr #3

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

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_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 = !{!6, !10, i64 80}
!19 = !{!16, !7, i64 12}
!20 = !{!16, !7, i64 16}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !7, i64 0}
!23 = !{!"_cpBigNum", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24}
!24 = !{!23, !7, i64 4}
!25 = !{!17, !17, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.unroll.disable"}
!28 = distinct !{!28, !29, !30, !31}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!"llvm.loop.isvectorized", i32 1}
!31 = !{!"llvm.loop.unroll.runtime.disable"}
!32 = distinct !{!32, !27}
!33 = distinct !{!33, !29, !30, !31}
!34 = distinct !{!34, !29, !30}
!35 = distinct !{!35, !29, !30}
!36 = !{!16, !10, i64 32}
!37 = !{!38, !10, i64 0}
!38 = !{!"_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}
!39 = !{!40, !10, i64 16}
!40 = !{!"_cpGFpECPoint", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!41 = !{!40, !7, i64 4}
!42 = !{!38, !10, i64 8}
!43 = !{!8, !8, i64 0}
!44 = !{!45}
!45 = distinct !{!45, !46}
!46 = distinct !{!46, !"LVerDomain"}
!47 = !{!48}
!48 = distinct !{!48, !46}
!49 = distinct !{!49, !29, !30, !31}
!50 = distinct !{!50, !27}
!51 = !{!52}
!52 = distinct !{!52, !53}
!53 = distinct !{!53, !"LVerDomain"}
!54 = !{!55}
!55 = distinct !{!55, !53}
!56 = distinct !{!56, !29, !30, !31}
!57 = distinct !{!57, !29, !30}


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