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

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

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

41:                                               ; preds = %8
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

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

45:                                               ; preds = %42
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

46:                                               ; preds = %42
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = icmp eq ptr null, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

50:                                               ; preds = %46
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  %52 = icmp eq ptr null, %51
  br i1 %52, label %53, label %54

53:                                               ; preds = %50
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

54:                                               ; preds = %50
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %61, label %57

57:                                               ; preds = %54
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

61:                                               ; preds = %57, %54
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  %63 = icmp eq ptr null, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %61
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

65:                                               ; preds = %61
  %66 = load ptr, ptr %17, align 8, !tbaa !5
  %67 = icmp eq ptr null, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %65
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

69:                                               ; preds = %65
  %70 = load ptr, ptr %15, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._cpRSA_private_key, ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8, !tbaa !11
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = call i64 @IPP_UINT_PTR(ptr noundef %73)
  %75 = trunc i64 %74 to i32
  %76 = xor i32 %72, %75
  %77 = icmp eq i32 %76, 1381187889
  br i1 %77, label %88, label %78

78:                                               ; preds = %69
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._cpRSA_private_key, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 8, !tbaa !11
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = call i64 @IPP_UINT_PTR(ptr noundef %82)
  %84 = trunc i64 %83 to i32
  %85 = xor i32 %81, %84
  %86 = icmp eq i32 %85, 1381187890
  br i1 %86, label %88, label %87

87:                                               ; preds = %78
  store i32 -13, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

88:                                               ; preds = %78, %69
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct._cpRSA_private_key, ptr %89, i32 0, i32 3
  %91 = load i32, ptr %90, align 4, !tbaa !13
  %92 = icmp sgt i32 %91, 0
  br i1 %92, label %94, label %93

93:                                               ; preds = %88
  store i32 -1013, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

94:                                               ; preds = %88
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = icmp slt i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  store i32 -15, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

98:                                               ; preds = %94
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._cpHashMethod_rmf, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !14
  store i32 %101, ptr %18, align 4, !tbaa !9
  %102 = load ptr, ptr %15, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct._cpRSA_private_key, ptr %102, i32 0, i32 3
  %104 = load i32, ptr %103, align 4, !tbaa !13
  %105 = add nsw i32 %104, 7
  %106 = ashr i32 %105, 3
  %107 = load i32, ptr %18, align 4, !tbaa !9
  %108 = mul nsw i32 2, %107
  %109 = add nsw i32 %108, 2
  %110 = icmp slt i32 %106, %109
  br i1 %110, label %111, label %112

111:                                              ; preds = %98
  store i32 -15, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

112:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct._cpRSA_private_key, ptr %113, i32 0, i32 3
  %115 = load i32, ptr %114, align 4, !tbaa !13
  %116 = add nsw i32 %115, 7
  %117 = ashr i32 %116, 3
  store i32 %117, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct._cpRSA_private_key, ptr %118, i32 0, i32 3
  %120 = load i32, ptr %119, align 4, !tbaa !13
  %121 = add nsw i32 %120, 64
  %122 = sub nsw i32 %121, 1
  %123 = sdiv i32 %122, 64
  store i32 %123, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = call i64 @IPP_INT_PTR(ptr noundef %125)
  %127 = and i64 %126, 7
  %128 = xor i64 %127, -1
  %129 = add nsw i64 %128, 1
  %130 = and i64 %129, 7
  %131 = getelementptr inbounds i8, ptr %124, i64 %130
  store ptr %131, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #4
  %132 = load ptr, ptr %22, align 8, !tbaa !5
  %133 = load ptr, ptr %22, align 8, !tbaa !5
  %134 = load i32, ptr %21, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i64, ptr %133, i64 %135
  %137 = getelementptr inbounds i64, ptr %136, i64 1
  %138 = load i32, ptr %21, align 4, !tbaa !9
  %139 = call ptr @BN_Make(ptr noundef %132, ptr noundef %137, i32 noundef %138, ptr noundef %23)
  %140 = load i32, ptr %21, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  %142 = mul nsw i32 %141, 2
  %143 = load ptr, ptr %22, align 8, !tbaa !5
  %144 = sext i32 %142 to i64
  %145 = getelementptr inbounds i64, ptr %143, i64 %144
  store ptr %145, ptr %22, align 8, !tbaa !5
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = load i32, ptr %20, align 4, !tbaa !9
  %148 = call i32 @ippsSetOctString_BN(ptr noundef %146, i32 noundef %147, ptr noundef %23)
  %149 = getelementptr inbounds %struct._cpBigNum, ptr %23, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !16
  %151 = getelementptr inbounds %struct._cpBigNum, ptr %23, i32 0, i32 2
  %152 = load i32, ptr %151, align 8, !tbaa !18
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct._cpRSA_private_key, ptr %153, i32 0, i32 13
  %155 = load ptr, ptr %154, align 8, !tbaa !19
  %156 = getelementptr inbounds %struct._gsModEngine, ptr %155, i32 0, i32 8
  %157 = load ptr, ptr %156, align 8, !tbaa !20
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct._cpRSA_private_key, ptr %158, i32 0, i32 13
  %160 = load ptr, ptr %159, align 8, !tbaa !19
  %161 = getelementptr inbounds %struct._gsModEngine, ptr %160, i32 0, i32 3
  %162 = load i32, ptr %161, align 8, !tbaa !23
  %163 = call i32 @cpCmp_BNU(ptr noundef %150, i32 noundef %152, ptr noundef %157, i32 noundef %162)
  %164 = icmp sle i32 0, %163
  br i1 %164, label %165, label %166

165:                                              ; preds = %112
  store i32 -11, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %403

166:                                              ; preds = %112
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct._cpRSA_private_key, ptr %167, i32 0, i32 0
  %169 = load i32, ptr %168, align 8, !tbaa !11
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = call i64 @IPP_UINT_PTR(ptr noundef %170)
  %172 = trunc i64 %171 to i32
  %173 = xor i32 %169, %172
  %174 = icmp eq i32 %173, 1381187889
  br i1 %174, label %175, label %178

175:                                              ; preds = %166
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = load ptr, ptr %22, align 8, !tbaa !5
  call void @gsRSAprv_cipher(ptr noundef %23, ptr noundef %23, ptr noundef %176, ptr noundef %177)
  br label %181

178:                                              ; preds = %166
  %179 = load ptr, ptr %15, align 8, !tbaa !5
  %180 = load ptr, ptr %22, align 8, !tbaa !5
  call void @gsRSAprv_cipher_crt(ptr noundef %23, ptr noundef %23, ptr noundef %179, ptr noundef %180)
  br label %181

181:                                              ; preds = %178, %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %182 = getelementptr inbounds %struct._cpBigNum, ptr %23, i32 0, i32 5
  %183 = load ptr, ptr %182, align 8, !tbaa !24
  store ptr %183, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %184 = getelementptr inbounds %struct._cpBigNum, ptr %23, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !16
  store ptr %185, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %203, %181
  %187 = load i32, ptr %26, align 4, !tbaa !9
  %188 = load i32, ptr %20, align 4, !tbaa !9
  %189 = icmp slt i32 %187, %188
  br i1 %189, label %190, label %206

190:                                              ; preds = %186
  %191 = load ptr, ptr %25, align 8, !tbaa !5
  %192 = load i32, ptr %20, align 4, !tbaa !9
  %193 = sub nsw i32 %192, 1
  %194 = load i32, ptr %26, align 4, !tbaa !9
  %195 = sub nsw i32 %193, %194
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds i8, ptr %191, i64 %196
  %198 = load i8, ptr %197, align 1, !tbaa !25
  %199 = load ptr, ptr %24, align 8, !tbaa !5
  %200 = load i32, ptr %26, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds i8, ptr %199, i64 %201
  store i8 %198, ptr %202, align 1, !tbaa !25
  br label %203

203:                                              ; preds = %190
  %204 = load i32, ptr %26, align 4, !tbaa !9
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %26, align 4, !tbaa !9
  br label %186, !llvm.loop !26

206:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %207 = load ptr, ptr %24, align 8, !tbaa !5
  %208 = getelementptr inbounds i8, ptr %207, i64 0
  %209 = load i8, ptr %208, align 1, !tbaa !25
  %210 = zext i8 %209 to i64
  %211 = call i64 @cpIsZero_ct(i64 noundef %210)
  store i64 %211, ptr %27, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %212 = load ptr, ptr %24, align 8, !tbaa !5
  %213 = getelementptr inbounds i8, ptr %212, i64 1
  store ptr %213, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %214 = load ptr, ptr %24, align 8, !tbaa !5
  %215 = getelementptr inbounds i8, ptr %214, i64 1
  %216 = load i32, ptr %18, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i8, ptr %215, i64 %217
  store ptr %218, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %219 = load i32, ptr %20, align 4, !tbaa !9
  %220 = sub nsw i32 %219, 1
  %221 = load i32, ptr %18, align 4, !tbaa !9
  %222 = sub nsw i32 %220, %221
  store i32 %222, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %223 = load i32, ptr %30, align 4, !tbaa !9
  %224 = load i32, ptr %18, align 4, !tbaa !9
  %225 = sub nsw i32 %223, %224
  %226 = sub nsw i32 %225, 1
  store i32 %226, ptr %31, align 4, !tbaa !9
  %227 = load ptr, ptr %29, align 8, !tbaa !5
  %228 = load i32, ptr %30, align 4, !tbaa !9
  %229 = load ptr, ptr %25, align 8, !tbaa !5
  %230 = load i32, ptr %18, align 4, !tbaa !9
  %231 = load ptr, ptr %16, align 8, !tbaa !5
  %232 = call i32 @ippsMGF1_rmf(ptr noundef %227, i32 noundef %228, ptr noundef %229, i32 noundef %230, ptr noundef %231)
  %233 = load ptr, ptr %28, align 8, !tbaa !5
  %234 = load ptr, ptr %25, align 8, !tbaa !5
  %235 = load ptr, ptr %28, align 8, !tbaa !5
  %236 = load i32, ptr %18, align 4, !tbaa !9
  call void @XorBlock(ptr noundef %233, ptr noundef %234, ptr noundef %235, i32 noundef %236)
  %237 = load ptr, ptr %28, align 8, !tbaa !5
  %238 = load i32, ptr %18, align 4, !tbaa !9
  %239 = load ptr, ptr %25, align 8, !tbaa !5
  %240 = load i32, ptr %30, align 4, !tbaa !9
  %241 = load ptr, ptr %16, align 8, !tbaa !5
  %242 = call i32 @ippsMGF1_rmf(ptr noundef %237, i32 noundef %238, ptr noundef %239, i32 noundef %240, ptr noundef %241)
  %243 = load ptr, ptr %29, align 8, !tbaa !5
  %244 = load ptr, ptr %25, align 8, !tbaa !5
  %245 = load ptr, ptr %29, align 8, !tbaa !5
  %246 = load i32, ptr %30, align 4, !tbaa !9
  call void @XorBlock(ptr noundef %243, ptr noundef %244, ptr noundef %245, i32 noundef %246)
  %247 = load ptr, ptr %11, align 8, !tbaa !5
  %248 = load i32, ptr %12, align 4, !tbaa !9
  %249 = load ptr, ptr %25, align 8, !tbaa !5
  %250 = load ptr, ptr %16, align 8, !tbaa !5
  %251 = call i32 @ippsHashMessage_rmf(ptr noundef %247, i32 noundef %248, ptr noundef %249, ptr noundef %250)
  %252 = load ptr, ptr %29, align 8, !tbaa !5
  %253 = load ptr, ptr %25, align 8, !tbaa !5
  %254 = load i32, ptr %18, align 4, !tbaa !9
  %255 = call i64 @cpIsEquBlock_ct(ptr noundef %252, ptr noundef %253, i32 noundef %254)
  %256 = load i64, ptr %27, align 8, !tbaa !28
  %257 = and i64 %256, %255
  store i64 %257, ptr %27, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  store i64 0, ptr %32, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  store i64 0, ptr %33, align 8, !tbaa !28
  %258 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %258, ptr %26, align 4, !tbaa !9
  br label %259

259:                                              ; preds = %296, %206
  %260 = load i32, ptr %26, align 4, !tbaa !9
  %261 = load i32, ptr %30, align 4, !tbaa !9
  %262 = icmp slt i32 %260, %261
  br i1 %262, label %263, label %299

263:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %264 = load ptr, ptr %29, align 8, !tbaa !5
  %265 = load i32, ptr %26, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds i8, ptr %264, i64 %266
  %268 = load i8, ptr %267, align 1, !tbaa !25
  %269 = zext i8 %268 to i64
  %270 = call i64 @cpIsZero_ct(i64 noundef %269)
  store i64 %270, ptr %34, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %271 = load ptr, ptr %29, align 8, !tbaa !5
  %272 = load i32, ptr %26, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds i8, ptr %271, i64 %273
  %275 = load i8, ptr %274, align 1, !tbaa !25
  %276 = zext i8 %275 to i32
  %277 = xor i32 %276, 1
  %278 = sext i32 %277 to i64
  %279 = call i64 @cpIsZero_ct(i64 noundef %278)
  store i64 %279, ptr %35, align 8, !tbaa !28
  %280 = load i64, ptr %32, align 8, !tbaa !28
  %281 = xor i64 %280, -1
  %282 = load i64, ptr %35, align 8, !tbaa !28
  %283 = and i64 %281, %282
  %284 = load i32, ptr %26, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = load i64, ptr %33, align 8, !tbaa !28
  %287 = call i64 @cpSelect_ct(i64 noundef %283, i64 noundef %285, i64 noundef %286)
  store i64 %287, ptr %33, align 8, !tbaa !28
  %288 = load i64, ptr %35, align 8, !tbaa !28
  %289 = load i64, ptr %32, align 8, !tbaa !28
  %290 = or i64 %289, %288
  store i64 %290, ptr %32, align 8, !tbaa !28
  %291 = load i64, ptr %32, align 8, !tbaa !28
  %292 = load i64, ptr %34, align 8, !tbaa !28
  %293 = or i64 %291, %292
  %294 = load i64, ptr %27, align 8, !tbaa !28
  %295 = and i64 %294, %293
  store i64 %295, ptr %27, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  br label %296

296:                                              ; preds = %263
  %297 = load i32, ptr %26, align 4, !tbaa !9
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %26, align 4, !tbaa !9
  br label %259, !llvm.loop !29

299:                                              ; preds = %259
  %300 = load i64, ptr %32, align 8, !tbaa !28
  %301 = load i64, ptr %27, align 8, !tbaa !28
  %302 = and i64 %301, %300
  store i64 %302, ptr %27, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  %303 = load i64, ptr %33, align 8, !tbaa !28
  %304 = trunc i64 %303 to i32
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  %306 = load i32, ptr %30, align 4, !tbaa !9
  %307 = load i32, ptr %36, align 4, !tbaa !9
  %308 = sub nsw i32 %306, %307
  store i32 %308, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  store i32 1, ptr %36, align 4, !tbaa !9
  br label %309

309:                                              ; preds = %354, %299
  %310 = load i32, ptr %36, align 4, !tbaa !9
  %311 = load i32, ptr %31, align 4, !tbaa !9
  %312 = icmp slt i32 %310, %311
  br i1 %312, label %313, label %357

313:                                              ; preds = %309
  %314 = load i32, ptr %36, align 4, !tbaa !9
  %315 = load i32, ptr %31, align 4, !tbaa !9
  %316 = load i32, ptr %37, align 4, !tbaa !9
  %317 = sub nsw i32 %315, %316
  %318 = and i32 %314, %317
  %319 = sext i32 %318 to i64
  %320 = load i32, ptr %36, align 4, !tbaa !9
  %321 = sext i32 %320 to i64
  %322 = call i64 @cpIsEqu_ct(i64 noundef %319, i64 noundef %321)
  store i64 %322, ptr %38, align 8, !tbaa !28
  %323 = load i32, ptr %18, align 4, !tbaa !9
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %26, align 4, !tbaa !9
  br label %325

325:                                              ; preds = %350, %313
  %326 = load i32, ptr %26, align 4, !tbaa !9
  %327 = load i32, ptr %30, align 4, !tbaa !9
  %328 = load i32, ptr %36, align 4, !tbaa !9
  %329 = sub nsw i32 %327, %328
  %330 = icmp slt i32 %326, %329
  br i1 %330, label %331, label %353

331:                                              ; preds = %325
  %332 = load i64, ptr %38, align 8, !tbaa !28
  %333 = load ptr, ptr %29, align 8, !tbaa !5
  %334 = load i32, ptr %26, align 4, !tbaa !9
  %335 = load i32, ptr %36, align 4, !tbaa !9
  %336 = add nsw i32 %334, %335
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds i8, ptr %333, i64 %337
  %339 = load i8, ptr %338, align 1, !tbaa !25
  %340 = load ptr, ptr %29, align 8, !tbaa !5
  %341 = load i32, ptr %26, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds i8, ptr %340, i64 %342
  %344 = load i8, ptr %343, align 1, !tbaa !25
  %345 = call zeroext i8 @cpSelect_ct_8u(i64 noundef %332, i8 noundef zeroext %339, i8 noundef zeroext %344)
  %346 = load ptr, ptr %29, align 8, !tbaa !5
  %347 = load i32, ptr %26, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds i8, ptr %346, i64 %348
  store i8 %345, ptr %349, align 1, !tbaa !25
  br label %350

350:                                              ; preds = %331
  %351 = load i32, ptr %26, align 4, !tbaa !9
  %352 = add nsw i32 %351, 1
  store i32 %352, ptr %26, align 4, !tbaa !9
  br label %325, !llvm.loop !30

353:                                              ; preds = %325
  br label %354

354:                                              ; preds = %353
  %355 = load i32, ptr %36, align 4, !tbaa !9
  %356 = shl i32 %355, 1
  store i32 %356, ptr %36, align 4, !tbaa !9
  br label %309, !llvm.loop !31

357:                                              ; preds = %309
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %358

358:                                              ; preds = %389, %357
  %359 = load i32, ptr %26, align 4, !tbaa !9
  %360 = load i32, ptr %31, align 4, !tbaa !9
  %361 = icmp slt i32 %359, %360
  br i1 %361, label %362, label %392

362:                                              ; preds = %358
  %363 = load i64, ptr %27, align 8, !tbaa !28
  %364 = load i32, ptr %26, align 4, !tbaa !9
  %365 = sext i32 %364 to i64
  %366 = load i32, ptr %37, align 4, !tbaa !9
  %367 = sext i32 %366 to i64
  %368 = call i64 @cpIsLt_ct(i64 noundef %365, i64 noundef %367)
  %369 = and i64 %363, %368
  store i64 %369, ptr %38, align 8, !tbaa !28
  %370 = load i64, ptr %38, align 8, !tbaa !28
  %371 = load ptr, ptr %29, align 8, !tbaa !5
  %372 = load i32, ptr %26, align 4, !tbaa !9
  %373 = load i32, ptr %18, align 4, !tbaa !9
  %374 = add nsw i32 %372, %373
  %375 = add nsw i32 %374, 1
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds i8, ptr %371, i64 %376
  %378 = load i8, ptr %377, align 1, !tbaa !25
  %379 = load ptr, ptr %13, align 8, !tbaa !5
  %380 = load i32, ptr %26, align 4, !tbaa !9
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds i8, ptr %379, i64 %381
  %383 = load i8, ptr %382, align 1, !tbaa !25
  %384 = call zeroext i8 @cpSelect_ct_8u(i64 noundef %370, i8 noundef zeroext %378, i8 noundef zeroext %383)
  %385 = load ptr, ptr %13, align 8, !tbaa !5
  %386 = load i32, ptr %26, align 4, !tbaa !9
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds i8, ptr %385, i64 %387
  store i8 %384, ptr %388, align 1, !tbaa !25
  br label %389

389:                                              ; preds = %362
  %390 = load i32, ptr %26, align 4, !tbaa !9
  %391 = add nsw i32 %390, 1
  store i32 %391, ptr %26, align 4, !tbaa !9
  br label %358, !llvm.loop !32

392:                                              ; preds = %358
  %393 = load i64, ptr %27, align 8, !tbaa !28
  %394 = load i32, ptr %37, align 4, !tbaa !9
  %395 = call i32 @cpSelect_ct_int(i64 noundef %393, i32 noundef %394, i32 noundef -1)
  %396 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %395, ptr %396, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  %397 = load ptr, ptr %24, align 8, !tbaa !5
  %398 = load i32, ptr %20, align 4, !tbaa !9
  call void @PurgeBlock(ptr noundef %397, i32 noundef %398)
  %399 = load ptr, ptr %25, align 8, !tbaa !5
  %400 = load i32, ptr %20, align 4, !tbaa !9
  call void @PurgeBlock(ptr noundef %399, i32 noundef %400)
  %401 = load i64, ptr %27, align 8, !tbaa !28
  %402 = call i32 @cpSelect_ct_int(i64 noundef %401, i32 noundef 0, i32 noundef -1005)
  store i32 %402, ptr %9, align 4
  store i32 1, ptr %19, align 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 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  br label %403

403:                                              ; preds = %392, %165
  call void @llvm.lifetime.end.p0(i64 32, 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 4, ptr %20) #4
  br label %404

404:                                              ; preds = %403, %111, %97, %93, %87, %68, %64, %60, %53, %49, %45, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %405 = load i32, ptr %9, align 4
  ret i32 %405
}

; 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 i64 @IPP_INT_PTR(ptr noundef) #2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @cpSelect_ct_8u(i64 noundef, i8 noundef zeroext, i8 noundef zeroext) #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @PurgeBlock(ptr noundef, i32 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_cpRSA_private_key", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!13 = !{!12, !10, i64 12}
!14 = !{!15, !10, i64 4}
!15 = !{!"_cpHashMethod_rmf", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!16 = !{!17, !6, i64 16}
!17 = !{!"_cpBigNum", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!18 = !{!17, !10, i64 8}
!19 = !{!12, !6, i64 80}
!20 = !{!21, !6, i64 48}
!21 = !{!"_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, !22, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !6, i64 104}
!22 = !{!"long long", !7, i64 0}
!23 = !{!21, !10, i64 16}
!24 = !{!17, !6, i64 24}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!22, !22, i64 0}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}
!31 = distinct !{!31, !27}
!32 = distinct !{!32, !27}


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

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsRSADecrypt_OAEP_rmf(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef writeonly %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = alloca %struct._cpBigNum, align 8
  %10 = insertelement <4 x ptr> poison, ptr %0, i64 0
  %11 = insertelement <4 x ptr> %10, ptr %3, i64 1
  %12 = insertelement <4 x ptr> %11, ptr %4, i64 2
  %13 = insertelement <4 x ptr> %12, ptr %6, i64 3
  %14 = icmp eq <4 x ptr> %13, zeroinitializer
  %15 = bitcast <4 x i1> %14 to i4
  %.not = icmp eq i4 %15, 0
  br i1 %.not, label %16, label %180

16:                                               ; preds = %8
  %17 = icmp eq ptr %1, null
  %18 = icmp ne i32 %2, 0
  %or.cond = and i1 %17, %18
  %19 = icmp eq ptr %5, null
  %or.cond165 = or i1 %or.cond, %19
  %20 = icmp eq ptr %7, null
  %or.cond166 = or i1 %or.cond165, %20
  br i1 %or.cond166, label %180, label %21

21:                                               ; preds = %16
  %22 = load i32, ptr %5, align 8, !tbaa !5
  %23 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %5)
  %24 = trunc i64 %23 to i32
  %25 = xor i32 %22, %24
  %26 = icmp eq i32 %25, 1381187889
  br i1 %26, label %33, label %27

27:                                               ; preds = %21
  %28 = load i32, ptr %5, align 8, !tbaa !5
  %29 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %5)
  %30 = trunc i64 %29 to i32
  %31 = xor i32 %28, %30
  %32 = icmp eq i32 %31, 1381187890
  br i1 %32, label %33, label %180

33:                                               ; preds = %27, %21
  %34 = getelementptr inbounds i8, ptr %5, i64 12
  %35 = load i32, ptr %34, align 4, !tbaa !11
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %37, label %180

37:                                               ; preds = %33
  %38 = icmp slt i32 %2, 0
  br i1 %38, label %180, label %39

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %6, i64 4
  %41 = load i32, ptr %40, align 4, !tbaa !12
  %42 = add nuw nsw i32 %35, 7
  %43 = lshr i32 %42, 3
  %44 = shl nsw i32 %41, 1
  %45 = add nsw i32 %44, 2
  %46 = icmp slt i32 %43, %45
  br i1 %46, label %180, label %47

47:                                               ; preds = %39
  %48 = add nuw nsw i32 %35, 63
  %49 = lshr i32 %48, 6
  %50 = tail call i64 @IPP_INT_PTR(ptr noundef nonnull %7)
  %51 = sub i64 0, %50
  %52 = and i64 %51, 7
  %53 = getelementptr inbounds i8, ptr %7, i64 %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #4
  %54 = zext nneg i32 %49 to i64
  %55 = getelementptr inbounds i64, ptr %53, i64 %54
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = call ptr @BN_Make(ptr noundef nonnull %53, ptr noundef nonnull %56, i32 noundef %49, ptr noundef nonnull %9)
  %58 = shl nuw nsw i32 %49, 1
  %59 = zext nneg i32 %58 to i64
  %60 = getelementptr inbounds i64, ptr %53, i64 %59
  %61 = getelementptr inbounds i8, ptr %60, i64 16
  %62 = call i32 @ippsSetOctString_BN(ptr noundef nonnull %0, i32 noundef %43, ptr noundef nonnull %9) #4
  %63 = getelementptr inbounds i8, ptr %9, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !14
  %65 = getelementptr inbounds i8, ptr %9, i64 8
  %66 = load i32, ptr %65, align 8, !tbaa !16
  %67 = getelementptr inbounds i8, ptr %5, i64 80
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %69 = getelementptr inbounds i8, ptr %68, i64 48
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = getelementptr inbounds i8, ptr %68, i64 16
  %72 = load i32, ptr %71, align 8, !tbaa !21
  %73 = call i32 @cpCmp_BNU(ptr noundef %64, i32 noundef %66, ptr noundef %70, i32 noundef %72)
  %74 = icmp sgt i32 %73, -1
  br i1 %74, label %179, label %75

75:                                               ; preds = %47
  %76 = load i32, ptr %5, align 8, !tbaa !5
  %77 = call i64 @IPP_UINT_PTR(ptr noundef nonnull %5)
  %78 = trunc i64 %77 to i32
  %79 = xor i32 %76, %78
  %80 = icmp eq i32 %79, 1381187889
  br i1 %80, label %81, label %82

81:                                               ; preds = %75
  call void @gsRSAprv_cipher(ptr noundef nonnull %9, ptr noundef nonnull %9, ptr noundef nonnull %5, ptr noundef nonnull %61) #4
  br label %iter.check

82:                                               ; preds = %75
  call void @gsRSAprv_cipher_crt(ptr noundef nonnull %9, ptr noundef nonnull %9, ptr noundef nonnull %5, ptr noundef nonnull %61) #4
  br label %iter.check

iter.check:                                       ; preds = %81, %82
  %83 = getelementptr inbounds i8, ptr %9, i64 24
  %84 = load ptr, ptr %83, align 8, !tbaa !22
  %85 = load ptr, ptr %63, align 8, !tbaa !14
  %86 = zext nneg i32 %43 to i64
  %wide.trip.count = zext nneg i32 %43 to i64
  %87 = getelementptr i8, ptr %85, i64 %86
  %min.iters.check = icmp ult i32 %35, 57
  br i1 %min.iters.check, label %.lr.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %iter.check
  %scevgep = getelementptr i8, ptr %84, i64 %wide.trip.count
  %bound0 = icmp ult ptr %84, %87
  %bound1 = icmp ult ptr %85, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.memcheck
  %min.iters.check211 = icmp ult i32 %35, 249
  br i1 %min.iters.check211, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %wide.trip.count, 268435424
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %88 = xor i64 %index, -1
  %89 = getelementptr i8, ptr %87, i64 %88
  %90 = getelementptr i8, ptr %89, i64 -15
  %91 = getelementptr i8, ptr %89, i64 -31
  %wide.load = load <16 x i8>, ptr %90, align 1, !tbaa !23, !alias.scope !24
  %reverse = shufflevector <16 x i8> %wide.load, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
  %wide.load212 = load <16 x i8>, ptr %91, align 1, !tbaa !23, !alias.scope !24
  %reverse213 = shufflevector <16 x i8> %wide.load212, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
  %92 = getelementptr inbounds i8, ptr %84, i64 %index
  %93 = getelementptr inbounds i8, ptr %92, i64 16
  store <16 x i8> %reverse, ptr %92, align 1, !tbaa !23, !alias.scope !27, !noalias !24
  store <16 x i8> %reverse213, ptr %93, align 1, !tbaa !23, !alias.scope !27, !noalias !24
  %index.next = add nuw i64 %index, 32
  %94 = icmp eq i64 %index.next, %n.vec
  br i1 %94, label %middle.block, label %vector.body, !llvm.loop !29

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %vec.epilog.iter.check

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

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec215 = and i64 %wide.trip.count, 268435448
  %invariant.gep225 = getelementptr i8, ptr %87, i64 -7
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index216 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next219, %vec.epilog.vector.body ]
  %95 = xor i64 %index216, -1
  %gep = getelementptr i8, ptr %invariant.gep225, i64 %95
  %wide.load217 = load <8 x i8>, ptr %gep, align 1, !tbaa !23, !alias.scope !33
  %reverse218 = shufflevector <8 x i8> %wide.load217, <8 x i8> poison, <8 x i32> <i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
  %96 = getelementptr inbounds i8, ptr %84, i64 %index216
  store <8 x i8> %reverse218, ptr %96, align 1, !tbaa !23, !alias.scope !36, !noalias !33
  %index.next219 = add nuw i64 %index216, 8
  %97 = icmp eq i64 %index.next219, %n.vec215
  br i1 %97, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !38

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

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %vector.memcheck, %iter.check, %vec.epilog.iter.check
  %indvars.iv.ph = phi i64 [ 0, %iter.check ], [ 0, %vector.memcheck ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec215, %vec.epilog.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.preheader, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %98 = xor i64 %indvars.iv.prol, -1
  %99 = getelementptr i8, ptr %87, i64 %98
  %100 = load i8, ptr %99, align 1, !tbaa !23
  %101 = getelementptr inbounds i8, ptr %84, i64 %indvars.iv.prol
  store i8 %100, ptr %101, align 1, !tbaa !23
  %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 !39

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %102 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %103 = icmp ugt i64 %102, -4
  br i1 %103, label %._crit_edge, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.prol.loopexit
  %invariant.gep226 = getelementptr i8, ptr %84, i64 1
  %invariant.gep228 = getelementptr i8, ptr %84, i64 2
  %invariant.gep230 = getelementptr i8, ptr %84, i64 3
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ %indvars.iv.unr, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %104 = xor i64 %indvars.iv, -1
  %105 = getelementptr i8, ptr %87, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !23
  %107 = getelementptr inbounds i8, ptr %84, i64 %indvars.iv
  store i8 %106, ptr %107, align 1, !tbaa !23
  %108 = sub i64 -2, %indvars.iv
  %109 = getelementptr i8, ptr %87, i64 %108
  %110 = load i8, ptr %109, align 1, !tbaa !23
  %gep227 = getelementptr i8, ptr %invariant.gep226, i64 %indvars.iv
  store i8 %110, ptr %gep227, align 1, !tbaa !23
  %111 = sub i64 -3, %indvars.iv
  %112 = getelementptr i8, ptr %87, i64 %111
  %113 = load i8, ptr %112, align 1, !tbaa !23
  %gep229 = getelementptr i8, ptr %invariant.gep228, i64 %indvars.iv
  store i8 %113, ptr %gep229, align 1, !tbaa !23
  %114 = sub i64 -4, %indvars.iv
  %115 = getelementptr i8, ptr %87, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !23
  %gep231 = getelementptr i8, ptr %invariant.gep230, i64 %indvars.iv
  store i8 %116, ptr %gep231, align 1, !tbaa !23
  %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 %._crit_edge, label %.lr.ph, !llvm.loop !41

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %vec.epilog.middle.block, %middle.block
  %117 = load i8, ptr %84, align 1, !tbaa !23
  %118 = zext i8 %117 to i64
  %119 = call i64 @cpIsZero_ct(i64 noundef %118)
  %120 = getelementptr inbounds i8, ptr %84, i64 1
  %121 = sext i32 %41 to i64
  %122 = getelementptr inbounds i8, ptr %120, i64 %121
  %123 = xor i32 %41, -1
  %124 = add i32 %43, %123
  %125 = add i32 %124, %123
  %126 = call i32 @ippsMGF1_rmf(ptr noundef nonnull %122, i32 noundef %124, ptr noundef nonnull %85, i32 noundef %41, ptr noundef nonnull %6) #4
  call void @XorBlock(ptr noundef nonnull %120, ptr noundef nonnull %85, ptr noundef nonnull %120, i32 noundef %41)
  %127 = call i32 @ippsMGF1_rmf(ptr noundef nonnull %120, i32 noundef %41, ptr noundef nonnull %85, i32 noundef %124, ptr noundef nonnull %6) #4
  call void @XorBlock(ptr noundef nonnull %122, ptr noundef nonnull %85, ptr noundef nonnull %122, i32 noundef %124)
  %128 = call i32 @ippsHashMessage_rmf(ptr noundef %1, i32 noundef %2, ptr noundef nonnull %85, ptr noundef nonnull %6) #4
  %129 = call i64 @cpIsEquBlock_ct(ptr noundef nonnull %122, ptr noundef nonnull %85, i32 noundef %41)
  %130 = and i64 %129, %119
  %131 = icmp slt i32 %41, %124
  br i1 %131, label %.lr.ph173, label %._crit_edge174

.lr.ph173:                                        ; preds = %._crit_edge, %.lr.ph173
  %indvars.iv191 = phi i64 [ %indvars.iv.next192, %.lr.ph173 ], [ %121, %._crit_edge ]
  %.0145171 = phi i64 [ %142, %.lr.ph173 ], [ 0, %._crit_edge ]
  %.0146170 = phi i64 [ %143, %.lr.ph173 ], [ 0, %._crit_edge ]
  %.0149168 = phi i64 [ %145, %.lr.ph173 ], [ %130, %._crit_edge ]
  %132 = getelementptr inbounds i8, ptr %122, i64 %indvars.iv191
  %133 = load i8, ptr %132, align 1, !tbaa !23
  %134 = zext i8 %133 to i64
  %135 = call i64 @cpIsZero_ct(i64 noundef %134)
  %136 = load i8, ptr %132, align 1, !tbaa !23
  %137 = xor i8 %136, 1
  %138 = zext i8 %137 to i64
  %139 = call i64 @cpIsZero_ct(i64 noundef %138)
  %140 = xor i64 %.0146170, -1
  %141 = and i64 %139, %140
  %142 = call i64 @cpSelect_ct(i64 noundef %141, i64 noundef %indvars.iv191, i64 noundef %.0145171)
  %143 = or i64 %139, %.0146170
  %144 = or i64 %143, %135
  %145 = and i64 %144, %.0149168
  %indvars.iv.next192 = add nsw i64 %indvars.iv191, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next192 to i32
  %exitcond194.not = icmp eq i32 %124, %lftr.wideiv
  br i1 %exitcond194.not, label %._crit_edge174.loopexit, label %.lr.ph173, !llvm.loop !42

._crit_edge174.loopexit:                          ; preds = %.lr.ph173
  %146 = trunc i64 %142 to i32
  %147 = xor i32 %146, -1
  br label %._crit_edge174

._crit_edge174:                                   ; preds = %._crit_edge174.loopexit, %._crit_edge
  %.0149.lcssa = phi i64 [ %130, %._crit_edge ], [ %145, %._crit_edge174.loopexit ]
  %.0146.lcssa = phi i64 [ 0, %._crit_edge ], [ %143, %._crit_edge174.loopexit ]
  %.0145.lcssa = phi i32 [ -1, %._crit_edge ], [ %147, %._crit_edge174.loopexit ]
  %148 = and i64 %.0146.lcssa, %.0149.lcssa
  %149 = add i32 %124, %.0145.lcssa
  %150 = icmp sgt i32 %125, 1
  br i1 %150, label %.lr.ph184, label %.preheader

.lr.ph184:                                        ; preds = %._crit_edge174
  %151 = sub nsw i32 %125, %149
  %.2177 = add i32 %41, 1
  %152 = sext i32 %.2177 to i64
  br label %155

.preheader:                                       ; preds = %._crit_edge181, %._crit_edge174
  %153 = icmp sgt i32 %125, 0
  br i1 %153, label %.lr.ph186, label %._crit_edge187

.lr.ph186:                                        ; preds = %.preheader
  %invariant.gep = getelementptr i8, ptr %122, i64 1
  %154 = sext i32 %149 to i64
  %wide.trip.count201 = zext nneg i32 %125 to i64
  %invariant.gep207 = getelementptr i8, ptr %invariant.gep, i64 %121
  br label %170

155:                                              ; preds = %.lr.ph184, %._crit_edge181
  %.0144182 = phi i32 [ 1, %.lr.ph184 ], [ %168, %._crit_edge181 ]
  %156 = and i32 %.0144182, %151
  %157 = sext i32 %156 to i64
  %158 = sext i32 %.0144182 to i64
  %159 = call i64 @cpIsEqu_ct(i64 noundef %157, i64 noundef %158)
  %160 = sub nsw i32 %124, %.0144182
  %161 = icmp slt i32 %.2177, %160
  br i1 %161, label %.lr.ph180.preheader, label %._crit_edge181

.lr.ph180.preheader:                              ; preds = %155
  %162 = sext i32 %160 to i64
  %invariant.gep205 = getelementptr i8, ptr %122, i64 %158
  br label %.lr.ph180

.lr.ph180:                                        ; preds = %.lr.ph180.preheader, %.lr.ph180
  %indvars.iv195 = phi i64 [ %152, %.lr.ph180.preheader ], [ %indvars.iv.next196, %.lr.ph180 ]
  %gep206 = getelementptr i8, ptr %invariant.gep205, i64 %indvars.iv195
  %163 = load i8, ptr %gep206, align 1, !tbaa !23
  %164 = getelementptr inbounds i8, ptr %122, i64 %indvars.iv195
  %165 = load i8, ptr %164, align 1, !tbaa !23
  %166 = call zeroext i8 @cpSelect_ct_8u(i64 noundef %159, i8 noundef zeroext %163, i8 noundef zeroext %165)
  store i8 %166, ptr %164, align 1, !tbaa !23
  %indvars.iv.next196 = add nsw i64 %indvars.iv195, 1
  %167 = icmp slt i64 %indvars.iv.next196, %162
  br i1 %167, label %.lr.ph180, label %._crit_edge181, !llvm.loop !43

._crit_edge181:                                   ; preds = %.lr.ph180, %155
  %168 = shl i32 %.0144182, 1
  %169 = icmp slt i32 %168, %125
  br i1 %169, label %155, label %.preheader, !llvm.loop !44

170:                                              ; preds = %.lr.ph186, %170
  %indvars.iv198 = phi i64 [ 0, %.lr.ph186 ], [ %indvars.iv.next199, %170 ]
  %171 = call i64 @cpIsLt_ct(i64 noundef %indvars.iv198, i64 noundef %154)
  %172 = and i64 %171, %148
  %gep208 = getelementptr i8, ptr %invariant.gep207, i64 %indvars.iv198
  %173 = load i8, ptr %gep208, align 1, !tbaa !23
  %174 = getelementptr inbounds i8, ptr %3, i64 %indvars.iv198
  %175 = load i8, ptr %174, align 1, !tbaa !23
  %176 = call zeroext i8 @cpSelect_ct_8u(i64 noundef %172, i8 noundef zeroext %173, i8 noundef zeroext %175)
  store i8 %176, ptr %174, align 1, !tbaa !23
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %exitcond202.not = icmp eq i64 %indvars.iv.next199, %wide.trip.count201
  br i1 %exitcond202.not, label %._crit_edge187, label %170, !llvm.loop !45

._crit_edge187:                                   ; preds = %170, %.preheader
  %177 = call i32 @cpSelect_ct_int(i64 noundef %148, i32 noundef %149, i32 noundef -1)
  store i32 %177, ptr %4, align 4, !tbaa !46
  call void @PurgeBlock(ptr noundef nonnull %84, i32 noundef %43)
  call void @PurgeBlock(ptr noundef %85, i32 noundef %43)
  %178 = call i32 @cpSelect_ct_int(i64 noundef %148, i32 noundef 0, i32 noundef -1005)
  br label %179

179:                                              ; preds = %47, %._crit_edge187
  %.0 = phi i32 [ %178, %._crit_edge187 ], [ -11, %47 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  br label %180

180:                                              ; preds = %39, %37, %33, %27, %16, %8, %179
  %.1 = phi i32 [ %.0, %179 ], [ -8, %8 ], [ -8, %16 ], [ -13, %27 ], [ -1013, %33 ], [ -15, %37 ], [ -15, %39 ]
  ret i32 %.1
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @cpSelect_ct(i64 noundef, i64 noundef, i64 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 i64 @cpIsEqu_ct(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @cpSelect_ct_8u(i64 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @PurgeBlock(ptr noundef, i32 noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_cpRSA_private_key", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80}
!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 12}
!12 = !{!13, !7, i64 4}
!13 = !{!"_cpHashMethod_rmf", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!14 = !{!15, !10, i64 16}
!15 = !{!"_cpBigNum", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24}
!16 = !{!15, !7, i64 8}
!17 = !{!6, !10, i64 80}
!18 = !{!19, !10, i64 48}
!19 = !{!"_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, !20, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !7, i64 96, !7, i64 100, !10, i64 104}
!20 = !{!"long long", !8, i64 0}
!21 = !{!19, !7, i64 16}
!22 = !{!15, !10, i64 24}
!23 = !{!8, !8, i64 0}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = !{!28}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !30, !31, !32}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!"llvm.loop.isvectorized", i32 1}
!32 = !{!"llvm.loop.unroll.runtime.disable"}
!33 = !{!34}
!34 = distinct !{!34, !35}
!35 = distinct !{!35, !"LVerDomain"}
!36 = !{!37}
!37 = distinct !{!37, !35}
!38 = distinct !{!38, !30, !31, !32}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.unroll.disable"}
!41 = distinct !{!41, !30, !31}
!42 = distinct !{!42, !30}
!43 = distinct !{!43, !30}
!44 = distinct !{!44, !30}
!45 = distinct !{!45, !30}
!46 = !{!7, !7, i64 0}


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