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

; 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._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(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 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 i32, align 4
  %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 i32 %6, ptr %16, align 4, !tbaa !9
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %39 = load i32, ptr %16, align 4, !tbaa !9
  %40 = call i32 @cpValidHashAlg(i32 noundef %39)
  store i32 %40, ptr %16, align 4, !tbaa !9
  %41 = load i32, ptr %16, align 4, !tbaa !9
  %42 = icmp eq i32 0, %41
  br i1 %42, label %43, label %44

43:                                               ; preds = %8
  store i32 -14, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

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

47:                                               ; preds = %44
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

48:                                               ; preds = %44
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = icmp eq ptr null, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

52:                                               ; preds = %48
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = icmp eq ptr null, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

56:                                               ; preds = %52
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %63, label %59

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

62:                                               ; preds = %59
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

63:                                               ; preds = %59, %56
  %64 = load ptr, ptr %15, align 8, !tbaa !5
  %65 = icmp eq ptr null, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %63
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

67:                                               ; preds = %63
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = icmp eq ptr null, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %67
  store i32 -8, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

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

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

89:                                               ; preds = %80
  store i32 -13, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

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

95:                                               ; preds = %90
  store i32 -1013, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

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

99:                                               ; preds = %96
  store i32 -15, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

100:                                              ; preds = %96
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = call i32 @cpHashSize(i32 noundef %101)
  store i32 %102, ptr %18, align 4, !tbaa !9
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct._cpRSA_private_key, ptr %103, i32 0, i32 3
  %105 = load i32, ptr %104, align 4, !tbaa !13
  %106 = add nsw i32 %105, 7
  %107 = ashr i32 %106, 3
  %108 = load i32, ptr %18, align 4, !tbaa !9
  %109 = mul nsw i32 2, %108
  %110 = add nsw i32 %109, 2
  %111 = icmp slt i32 %107, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %100
  store i32 -15, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %405

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

166:                                              ; preds = %113
  store i32 -11, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %404

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

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

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

182:                                              ; preds = %179, %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %183 = getelementptr inbounds %struct._cpBigNum, ptr %23, i32 0, i32 5
  %184 = load ptr, ptr %183, align 8, !tbaa !22
  store ptr %184, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %185 = getelementptr inbounds %struct._cpBigNum, ptr %23, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !14
  store ptr %186, 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 %187

187:                                              ; preds = %204, %182
  %188 = load i32, ptr %26, align 4, !tbaa !9
  %189 = load i32, ptr %20, align 4, !tbaa !9
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %191, label %207

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

204:                                              ; preds = %191
  %205 = load i32, ptr %26, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %26, align 4, !tbaa !9
  br label %187, !llvm.loop !24

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

260:                                              ; preds = %297, %207
  %261 = load i32, ptr %26, align 4, !tbaa !9
  %262 = load i32, ptr %30, align 4, !tbaa !9
  %263 = icmp slt i32 %261, %262
  br i1 %263, label %264, label %300

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

297:                                              ; preds = %264
  %298 = load i32, ptr %26, align 4, !tbaa !9
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %26, align 4, !tbaa !9
  br label %260, !llvm.loop !27

300:                                              ; preds = %260
  %301 = load i64, ptr %32, align 8, !tbaa !26
  %302 = load i64, ptr %27, align 8, !tbaa !26
  %303 = and i64 %302, %301
  store i64 %303, ptr %27, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  %304 = load i64, ptr %33, align 8, !tbaa !26
  %305 = trunc i64 %304 to i32
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  %307 = load i32, ptr %30, align 4, !tbaa !9
  %308 = load i32, ptr %36, align 4, !tbaa !9
  %309 = sub nsw i32 %307, %308
  store i32 %309, 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 %310

310:                                              ; preds = %355, %300
  %311 = load i32, ptr %36, align 4, !tbaa !9
  %312 = load i32, ptr %31, align 4, !tbaa !9
  %313 = icmp slt i32 %311, %312
  br i1 %313, label %314, label %358

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

326:                                              ; preds = %351, %314
  %327 = load i32, ptr %26, align 4, !tbaa !9
  %328 = load i32, ptr %30, align 4, !tbaa !9
  %329 = load i32, ptr %36, align 4, !tbaa !9
  %330 = sub nsw i32 %328, %329
  %331 = icmp slt i32 %327, %330
  br i1 %331, label %332, label %354

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

351:                                              ; preds = %332
  %352 = load i32, ptr %26, align 4, !tbaa !9
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %26, align 4, !tbaa !9
  br label %326, !llvm.loop !28

354:                                              ; preds = %326
  br label %355

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

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

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

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

390:                                              ; preds = %363
  %391 = load i32, ptr %26, align 4, !tbaa !9
  %392 = add nsw i32 %391, 1
  store i32 %392, ptr %26, align 4, !tbaa !9
  br label %359, !llvm.loop !30

393:                                              ; preds = %359
  %394 = load i64, ptr %27, align 8, !tbaa !26
  %395 = load i32, ptr %37, align 4, !tbaa !9
  %396 = call i32 @cpSelect_ct_int(i64 noundef %394, i32 noundef %395, i32 noundef -1)
  %397 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %396, ptr %397, 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
  %398 = load ptr, ptr %24, align 8, !tbaa !5
  %399 = load i32, ptr %20, align 4, !tbaa !9
  call void @PurgeBlock(ptr noundef %398, i32 noundef %399)
  %400 = load ptr, ptr %25, align 8, !tbaa !5
  %401 = load i32, ptr %20, align 4, !tbaa !9
  call void @PurgeBlock(ptr noundef %400, i32 noundef %401)
  %402 = load i64, ptr %27, align 8, !tbaa !26
  %403 = call i32 @cpSelect_ct_int(i64 noundef %402, i32 noundef 0, i32 noundef -1005)
  store i32 %403, 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 %404

404:                                              ; preds = %393, %166
  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 %405

405:                                              ; preds = %404, %112, %99, %95, %89, %70, %66, %62, %55, %51, %47, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %406 = load i32, ptr %9, align 4
  ret i32 %406
}

; 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 i32 @cpValidHashAlg(i32 noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cpHashSize(i32 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 @ippsMGF(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #3

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

declare i32 @ippsHashMessage(ptr noundef, i32 noundef, ptr noundef, i32 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, !6, i64 16}
!15 = !{!"_cpBigNum", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!16 = !{!15, !10, i64 8}
!17 = !{!12, !6, i64 80}
!18 = !{!19, !6, i64 48}
!19 = !{!"_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, !20, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !6, i64 104}
!20 = !{!"long long", !7, i64 0}
!21 = !{!19, !10, i64 16}
!22 = !{!15, !6, i64 24}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!20, !20, i64 0}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}


; 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(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef writeonly %4, ptr noundef %5, i32 noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = alloca %struct._cpBigNum, align 8
  %10 = tail call i32 @cpValidHashAlg(i32 noundef %6)
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %182, label %12

12:                                               ; preds = %8
  %13 = icmp eq ptr %0, null
  %14 = icmp eq ptr %3, null
  %or.cond162 = or i1 %13, %14
  %15 = icmp eq ptr %4, null
  %or.cond163 = or i1 %or.cond162, %15
  br i1 %or.cond163, label %182, label %16

16:                                               ; preds = %12
  %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.cond164 = or i1 %or.cond, %19
  %20 = icmp eq ptr %7, null
  %or.cond165 = or i1 %or.cond164, %20
  br i1 %or.cond165, label %182, 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 %182

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 %182

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

39:                                               ; preds = %37
  %40 = tail call i32 @cpHashSize(i32 noundef %10)
  %41 = load i32, ptr %34, align 4, !tbaa !11
  %42 = add nsw i32 %41, 7
  %43 = ashr i32 %42, 3
  %44 = shl nsw i32 %40, 1
  %45 = add nsw i32 %44, 2
  %46 = icmp slt i32 %43, %45
  br i1 %46, label %182, label %47

47:                                               ; preds = %39
  %48 = add nsw i32 %41, 63
  %49 = sdiv i32 %48, 64
  %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 = sext 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 nsw i32 %49, 1
  %59 = sext i32 %58 to i64
  %60 = getelementptr i64, ptr %53, i64 %59
  %61 = getelementptr 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 !12
  %65 = getelementptr inbounds i8, ptr %9, i64 8
  %66 = load i32, ptr %65, align 8, !tbaa !14
  %67 = getelementptr inbounds i8, ptr %5, i64 80
  %68 = load ptr, ptr %67, align 8, !tbaa !15
  %69 = getelementptr inbounds i8, ptr %68, i64 48
  %70 = load ptr, ptr %69, align 8, !tbaa !16
  %71 = getelementptr inbounds i8, ptr %68, i64 16
  %72 = load i32, ptr %71, align 8, !tbaa !19
  %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 %181, 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 %61) #4
  br label %83

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

83:                                               ; preds = %82, %81
  %84 = getelementptr inbounds i8, ptr %9, i64 24
  %85 = load ptr, ptr %84, align 8, !tbaa !20
  %86 = load ptr, ptr %63, align 8, !tbaa !12
  %87 = icmp sgt i32 %43, 0
  br i1 %87, label %iter.check, label %._crit_edge

iter.check:                                       ; preds = %83
  %88 = zext nneg i32 %43 to i64
  %wide.trip.count = zext nneg i32 %43 to i64
  %89 = getelementptr i8, ptr %86, i64 %88
  %min.iters.check = icmp ult i32 %43, 8
  br i1 %min.iters.check, label %.lr.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %iter.check
  %scevgep = getelementptr i8, ptr %85, i64 %wide.trip.count
  %bound0 = icmp ult ptr %85, %89
  %bound1 = icmp ult ptr %86, %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.check210 = icmp ult i32 %43, 32
  br i1 %min.iters.check210, label %vec.epilog.ph, label %vector.ph

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %90 = xor i64 %index, -1
  %91 = getelementptr i8, ptr %89, i64 %90
  %92 = getelementptr i8, ptr %91, i64 -15
  %93 = getelementptr i8, ptr %91, i64 -31
  %wide.load = load <16 x i8>, ptr %92, align 1, !tbaa !21, !alias.scope !22
  %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.load211 = load <16 x i8>, ptr %93, align 1, !tbaa !21, !alias.scope !22
  %reverse212 = shufflevector <16 x i8> %wide.load211, <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>
  %94 = getelementptr inbounds i8, ptr %85, i64 %index
  %95 = getelementptr inbounds i8, ptr %94, i64 16
  store <16 x i8> %reverse, ptr %94, align 1, !tbaa !21, !alias.scope !25, !noalias !22
  store <16 x i8> %reverse212, ptr %95, align 1, !tbaa !21, !alias.scope !25, !noalias !22
  %index.next = add nuw i64 %index, 32
  %96 = icmp eq i64 %index.next, %n.vec
  br i1 %96, label %middle.block, label %vector.body, !llvm.loop !27

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.vec214 = and i64 %wide.trip.count, 2147483640
  %invariant.gep224 = getelementptr i8, ptr %89, i64 -7
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index215 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next218, %vec.epilog.vector.body ]
  %97 = xor i64 %index215, -1
  %gep = getelementptr i8, ptr %invariant.gep224, i64 %97
  %wide.load216 = load <8 x i8>, ptr %gep, align 1, !tbaa !21, !alias.scope !31
  %reverse217 = shufflevector <8 x i8> %wide.load216, <8 x i8> poison, <8 x i32> <i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
  %98 = getelementptr inbounds i8, ptr %85, i64 %index215
  store <8 x i8> %reverse217, ptr %98, align 1, !tbaa !21, !alias.scope !34, !noalias !31
  %index.next218 = add nuw i64 %index215, 8
  %99 = icmp eq i64 %index.next218, %n.vec214
  br i1 %99, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !36

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n219 = icmp eq i64 %n.vec214, %wide.trip.count
  br i1 %cmp.n219, 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.vec214, %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 ]
  %100 = xor i64 %indvars.iv.prol, -1
  %101 = getelementptr i8, ptr %89, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !21
  %103 = getelementptr inbounds i8, ptr %85, i64 %indvars.iv.prol
  store i8 %102, ptr %103, align 1, !tbaa !21
  %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 !37

.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 ]
  %104 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %105 = icmp ugt i64 %104, -4
  br i1 %105, label %._crit_edge, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.prol.loopexit
  %invariant.gep225 = getelementptr i8, ptr %85, i64 1
  %invariant.gep227 = getelementptr i8, ptr %85, i64 2
  %invariant.gep229 = getelementptr i8, ptr %85, 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 ]
  %106 = xor i64 %indvars.iv, -1
  %107 = getelementptr i8, ptr %89, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !21
  %109 = getelementptr inbounds i8, ptr %85, i64 %indvars.iv
  store i8 %108, ptr %109, align 1, !tbaa !21
  %110 = sub i64 -2, %indvars.iv
  %111 = getelementptr i8, ptr %89, i64 %110
  %112 = load i8, ptr %111, align 1, !tbaa !21
  %gep226 = getelementptr i8, ptr %invariant.gep225, i64 %indvars.iv
  store i8 %112, ptr %gep226, align 1, !tbaa !21
  %113 = sub i64 -3, %indvars.iv
  %114 = getelementptr i8, ptr %89, i64 %113
  %115 = load i8, ptr %114, align 1, !tbaa !21
  %gep228 = getelementptr i8, ptr %invariant.gep227, i64 %indvars.iv
  store i8 %115, ptr %gep228, align 1, !tbaa !21
  %116 = sub i64 -4, %indvars.iv
  %117 = getelementptr i8, ptr %89, i64 %116
  %118 = load i8, ptr %117, align 1, !tbaa !21
  %gep230 = getelementptr i8, ptr %invariant.gep229, i64 %indvars.iv
  store i8 %118, ptr %gep230, align 1, !tbaa !21
  %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 !39

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %vec.epilog.middle.block, %83
  %119 = load i8, ptr %85, align 1, !tbaa !21
  %120 = zext i8 %119 to i64
  %121 = call i64 @cpIsZero_ct(i64 noundef %120)
  %122 = getelementptr inbounds i8, ptr %85, i64 1
  %123 = sext i32 %40 to i64
  %124 = getelementptr inbounds i8, ptr %122, i64 %123
  %125 = xor i32 %40, -1
  %126 = add i32 %43, %125
  %127 = add i32 %126, %125
  %128 = call i32 @ippsMGF(ptr noundef nonnull %124, i32 noundef %126, ptr noundef %86, i32 noundef %40, i32 noundef %10) #4
  call void @XorBlock(ptr noundef nonnull %122, ptr noundef %86, ptr noundef nonnull %122, i32 noundef %40)
  %129 = call i32 @ippsMGF(ptr noundef nonnull %122, i32 noundef %40, ptr noundef %86, i32 noundef %126, i32 noundef %10) #4
  call void @XorBlock(ptr noundef nonnull %124, ptr noundef %86, ptr noundef nonnull %124, i32 noundef %126)
  %130 = call i32 @ippsHashMessage(ptr noundef %1, i32 noundef %2, ptr noundef %86, i32 noundef %10) #4
  %131 = call i64 @cpIsEquBlock_ct(ptr noundef nonnull %124, ptr noundef %86, i32 noundef %40)
  %132 = and i64 %131, %121
  %133 = icmp slt i32 %40, %126
  br i1 %133, label %.lr.ph172, label %._crit_edge173

.lr.ph172:                                        ; preds = %._crit_edge, %.lr.ph172
  %indvars.iv190 = phi i64 [ %indvars.iv.next191, %.lr.ph172 ], [ %123, %._crit_edge ]
  %.0146170 = phi i64 [ %144, %.lr.ph172 ], [ 0, %._crit_edge ]
  %.0147169 = phi i64 [ %145, %.lr.ph172 ], [ 0, %._crit_edge ]
  %.0150167 = phi i64 [ %147, %.lr.ph172 ], [ %132, %._crit_edge ]
  %134 = getelementptr inbounds i8, ptr %124, i64 %indvars.iv190
  %135 = load i8, ptr %134, align 1, !tbaa !21
  %136 = zext i8 %135 to i64
  %137 = call i64 @cpIsZero_ct(i64 noundef %136)
  %138 = load i8, ptr %134, align 1, !tbaa !21
  %139 = xor i8 %138, 1
  %140 = zext i8 %139 to i64
  %141 = call i64 @cpIsZero_ct(i64 noundef %140)
  %142 = xor i64 %.0147169, -1
  %143 = and i64 %141, %142
  %144 = call i64 @cpSelect_ct(i64 noundef %143, i64 noundef %indvars.iv190, i64 noundef %.0146170)
  %145 = or i64 %141, %.0147169
  %146 = or i64 %145, %137
  %147 = and i64 %146, %.0150167
  %indvars.iv.next191 = add nsw i64 %indvars.iv190, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next191 to i32
  %exitcond193.not = icmp eq i32 %126, %lftr.wideiv
  br i1 %exitcond193.not, label %._crit_edge173.loopexit, label %.lr.ph172, !llvm.loop !40

._crit_edge173.loopexit:                          ; preds = %.lr.ph172
  %148 = trunc i64 %144 to i32
  %149 = xor i32 %148, -1
  br label %._crit_edge173

._crit_edge173:                                   ; preds = %._crit_edge173.loopexit, %._crit_edge
  %.0150.lcssa = phi i64 [ %132, %._crit_edge ], [ %147, %._crit_edge173.loopexit ]
  %.0147.lcssa = phi i64 [ 0, %._crit_edge ], [ %145, %._crit_edge173.loopexit ]
  %.0146.lcssa = phi i32 [ -1, %._crit_edge ], [ %149, %._crit_edge173.loopexit ]
  %150 = and i64 %.0147.lcssa, %.0150.lcssa
  %151 = add i32 %126, %.0146.lcssa
  %152 = icmp sgt i32 %127, 1
  br i1 %152, label %.lr.ph183, label %.preheader

.lr.ph183:                                        ; preds = %._crit_edge173
  %153 = sub nsw i32 %127, %151
  %.2176 = add i32 %40, 1
  %154 = sext i32 %.2176 to i64
  br label %157

.preheader:                                       ; preds = %._crit_edge180, %._crit_edge173
  %155 = icmp sgt i32 %127, 0
  br i1 %155, label %.lr.ph185, label %._crit_edge186

.lr.ph185:                                        ; preds = %.preheader
  %invariant.gep = getelementptr i8, ptr %124, i64 1
  %156 = sext i32 %151 to i64
  %wide.trip.count200 = zext nneg i32 %127 to i64
  %invariant.gep206 = getelementptr i8, ptr %invariant.gep, i64 %123
  br label %172

157:                                              ; preds = %.lr.ph183, %._crit_edge180
  %.0145181 = phi i32 [ 1, %.lr.ph183 ], [ %170, %._crit_edge180 ]
  %158 = and i32 %.0145181, %153
  %159 = sext i32 %158 to i64
  %160 = sext i32 %.0145181 to i64
  %161 = call i64 @cpIsEqu_ct(i64 noundef %159, i64 noundef %160)
  %162 = sub nsw i32 %126, %.0145181
  %163 = icmp slt i32 %.2176, %162
  br i1 %163, label %.lr.ph179.preheader, label %._crit_edge180

.lr.ph179.preheader:                              ; preds = %157
  %164 = sext i32 %162 to i64
  %invariant.gep204 = getelementptr i8, ptr %124, i64 %160
  br label %.lr.ph179

.lr.ph179:                                        ; preds = %.lr.ph179.preheader, %.lr.ph179
  %indvars.iv194 = phi i64 [ %154, %.lr.ph179.preheader ], [ %indvars.iv.next195, %.lr.ph179 ]
  %gep205 = getelementptr i8, ptr %invariant.gep204, i64 %indvars.iv194
  %165 = load i8, ptr %gep205, align 1, !tbaa !21
  %166 = getelementptr inbounds i8, ptr %124, i64 %indvars.iv194
  %167 = load i8, ptr %166, align 1, !tbaa !21
  %168 = call zeroext i8 @cpSelect_ct_8u(i64 noundef %161, i8 noundef zeroext %165, i8 noundef zeroext %167)
  store i8 %168, ptr %166, align 1, !tbaa !21
  %indvars.iv.next195 = add nsw i64 %indvars.iv194, 1
  %169 = icmp slt i64 %indvars.iv.next195, %164
  br i1 %169, label %.lr.ph179, label %._crit_edge180, !llvm.loop !41

._crit_edge180:                                   ; preds = %.lr.ph179, %157
  %170 = shl i32 %.0145181, 1
  %171 = icmp slt i32 %170, %127
  br i1 %171, label %157, label %.preheader, !llvm.loop !42

172:                                              ; preds = %.lr.ph185, %172
  %indvars.iv197 = phi i64 [ 0, %.lr.ph185 ], [ %indvars.iv.next198, %172 ]
  %173 = call i64 @cpIsLt_ct(i64 noundef %indvars.iv197, i64 noundef %156)
  %174 = and i64 %173, %150
  %gep207 = getelementptr i8, ptr %invariant.gep206, i64 %indvars.iv197
  %175 = load i8, ptr %gep207, align 1, !tbaa !21
  %176 = getelementptr inbounds i8, ptr %3, i64 %indvars.iv197
  %177 = load i8, ptr %176, align 1, !tbaa !21
  %178 = call zeroext i8 @cpSelect_ct_8u(i64 noundef %174, i8 noundef zeroext %175, i8 noundef zeroext %177)
  store i8 %178, ptr %176, align 1, !tbaa !21
  %indvars.iv.next198 = add nuw nsw i64 %indvars.iv197, 1
  %exitcond201.not = icmp eq i64 %indvars.iv.next198, %wide.trip.count200
  br i1 %exitcond201.not, label %._crit_edge186, label %172, !llvm.loop !43

._crit_edge186:                                   ; preds = %172, %.preheader
  %179 = call i32 @cpSelect_ct_int(i64 noundef %150, i32 noundef %151, i32 noundef -1)
  store i32 %179, ptr %4, align 4, !tbaa !44
  call void @PurgeBlock(ptr noundef nonnull %85, i32 noundef %43)
  call void @PurgeBlock(ptr noundef %86, i32 noundef %43)
  %180 = call i32 @cpSelect_ct_int(i64 noundef %150, i32 noundef 0, i32 noundef -1005)
  br label %181

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

182:                                              ; preds = %39, %37, %33, %27, %16, %12, %8, %181
  %.1 = phi i32 [ %.0, %181 ], [ -14, %8 ], [ -8, %12 ], [ -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 i32 @cpValidHashAlg(i32 noundef) local_unnamed_addr #2

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

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


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