; LLVM IR from intel/cryptography-primitives :: sources/ippcp (pcprsaverify_pss_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._cpHashMethod_rmf = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr }
%struct._cpRSA_public_key = type { i32, i32, i32, i32, i32, ptr, ptr }

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

44:                                               ; preds = %7
  %45 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %45, ptr %8, align 4
  store i32 1, ptr %17, align 4
  br label %244

46:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._cpHashMethod_rmf, ptr %47, i32 0, i32 1
  %49 = load i32, ptr %48, align 4, !tbaa !11
  store i32 %49, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._cpRSA_public_key, ptr %50, i32 0, i32 3
  %52 = load i32, ptr %51, align 4, !tbaa !13
  store i32 %52, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %53 = load i32, ptr %20, align 4, !tbaa !9
  %54 = add nsw i32 %53, 7
  %55 = ashr i32 %54, 3
  store i32 %55, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %56 = load i32, ptr %20, align 4, !tbaa !9
  %57 = add nsw i32 %56, 64
  %58 = sub nsw i32 %57, 1
  %59 = sdiv i32 %58, 64
  store i32 %59, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = call i64 @IPP_INT_PTR(ptr noundef %61)
  %63 = and i64 %62, 7
  %64 = xor i64 %63, -1
  %65 = add nsw i64 %64, 1
  %66 = and i64 %65, 7
  %67 = getelementptr inbounds i8, ptr %60, i64 %66
  store ptr %67, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %68 = load i32, ptr %20, align 4, !tbaa !9
  %69 = sub nsw i32 %68, 1
  store i32 %69, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %70 = load i32, ptr %26, align 4, !tbaa !9
  %71 = add nsw i32 %70, 7
  %72 = ashr i32 %71, 3
  store i32 %72, ptr %27, align 4, !tbaa !9
  %73 = load i32, ptr %21, align 4, !tbaa !9
  %74 = load i32, ptr %19, align 4, !tbaa !9
  %75 = add nsw i32 %74, 2
  %76 = icmp sle i32 %73, %75
  br i1 %76, label %77, label %78

77:                                               ; preds = %46
  store i32 -15, ptr %8, align 4
  store i32 1, ptr %17, align 4
  br label %243

78:                                               ; preds = %46
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = getelementptr inbounds [64 x i8], ptr %18, i64 0, i64 0
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = call i32 @ippsHashMessage_rmf(ptr noundef %79, i32 noundef %80, ptr noundef %81, ptr noundef %82)
  %84 = load ptr, ptr %23, align 8, !tbaa !5
  %85 = load ptr, ptr %23, align 8, !tbaa !5
  %86 = load i32, ptr %22, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i64, ptr %85, i64 %87
  %89 = getelementptr inbounds i64, ptr %88, i64 1
  %90 = load i32, ptr %22, align 4, !tbaa !9
  %91 = call ptr @BN_Make(ptr noundef %84, ptr noundef %89, i32 noundef %90, ptr noundef %24)
  %92 = load i32, ptr %22, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  %94 = mul nsw i32 %93, 2
  %95 = load ptr, ptr %23, align 8, !tbaa !5
  %96 = sext i32 %94 to i64
  %97 = getelementptr inbounds i64, ptr %95, i64 %96
  store ptr %97, ptr %23, align 8, !tbaa !5
  %98 = load ptr, ptr %23, align 8, !tbaa !5
  %99 = load ptr, ptr %23, align 8, !tbaa !5
  %100 = load i32, ptr %22, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i64, ptr %99, i64 %101
  %103 = getelementptr inbounds i64, ptr %102, i64 1
  %104 = load i32, ptr %22, align 4, !tbaa !9
  %105 = call ptr @BN_Make(ptr noundef %98, ptr noundef %103, i32 noundef %104, ptr noundef %25)
  %106 = load i32, ptr %22, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  %108 = mul nsw i32 %107, 2
  %109 = load ptr, ptr %23, align 8, !tbaa !5
  %110 = sext i32 %108 to i64
  %111 = getelementptr inbounds i64, ptr %109, i64 %110
  store ptr %111, ptr %23, align 8, !tbaa !5
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load i32, ptr %21, align 4, !tbaa !9
  %114 = call i32 @ippsSetOctString_BN(ptr noundef %112, i32 noundef %113, ptr noundef %25)
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = load ptr, ptr %23, align 8, !tbaa !5
  call void @gsRSApub_cipher(ptr noundef %24, ptr noundef %25, ptr noundef %115, ptr noundef %116)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %117 = getelementptr inbounds %struct._cpBigNum, ptr %24, i32 0, i32 5
  %118 = load ptr, ptr %117, align 8, !tbaa !15
  store ptr %118, ptr %28, align 8, !tbaa !5
  %119 = load ptr, ptr %28, align 8, !tbaa !5
  %120 = load i32, ptr %27, align 4, !tbaa !9
  %121 = call i32 @ippsGetOctString_BN(ptr noundef %119, i32 noundef %120, ptr noundef %24)
  %122 = load ptr, ptr %28, align 8, !tbaa !5
  %123 = load i32, ptr %27, align 4, !tbaa !9
  %124 = sub nsw i32 %123, 1
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i8, ptr %122, i64 %125
  %127 = load i8, ptr %126, align 1, !tbaa !17
  %128 = zext i8 %127 to i32
  %129 = icmp eq i32 188, %128
  br i1 %129, label %130, label %242

130:                                              ; preds = %78
  %131 = load ptr, ptr %28, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 0
  %133 = load i8, ptr %132, align 1, !tbaa !17
  %134 = zext i8 %133 to i32
  %135 = load i32, ptr %27, align 4, !tbaa !9
  %136 = mul nsw i32 8, %135
  %137 = load i32, ptr %26, align 4, !tbaa !9
  %138 = sub nsw i32 %136, %137
  %139 = sub nsw i32 8, %138
  %140 = ashr i32 %134, %139
  %141 = icmp eq i32 0, %140
  br i1 %141, label %142, label %242

142:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %143 = getelementptr inbounds %struct._cpBigNum, ptr %25, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !18
  store ptr %144, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %145 = load i32, ptr %27, align 4, !tbaa !9
  %146 = load i32, ptr %19, align 4, !tbaa !9
  %147 = sub nsw i32 %145, %146
  %148 = sub nsw i32 %147, 1
  store i32 %148, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %149 = load ptr, ptr %28, align 8, !tbaa !5
  store ptr %149, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %150 = load ptr, ptr %28, align 8, !tbaa !5
  %151 = load i32, ptr %31, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds i8, ptr %150, i64 %152
  store ptr %153, ptr %33, align 8, !tbaa !5
  %154 = load ptr, ptr %33, align 8, !tbaa !5
  %155 = load i32, ptr %19, align 4, !tbaa !9
  %156 = load ptr, ptr %30, align 8, !tbaa !5
  %157 = load i32, ptr %31, align 4, !tbaa !9
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = call i32 @ippsMGF1_rmf(ptr noundef %154, i32 noundef %155, ptr noundef %156, i32 noundef %157, ptr noundef %158)
  %160 = load ptr, ptr %32, align 8, !tbaa !5
  %161 = load ptr, ptr %30, align 8, !tbaa !5
  %162 = load ptr, ptr %32, align 8, !tbaa !5
  %163 = load i32, ptr %31, align 4, !tbaa !9
  call void @XorBlock(ptr noundef %160, ptr noundef %161, ptr noundef %162, i32 noundef %163)
  %164 = load i32, ptr %27, align 4, !tbaa !9
  %165 = mul nsw i32 8, %164
  %166 = sub nsw i32 8, %165
  %167 = load i32, ptr %26, align 4, !tbaa !9
  %168 = add nsw i32 %166, %167
  %169 = and i32 %168, 31
  %170 = sub nsw i32 32, %169
  %171 = and i32 %170, 31
  %172 = lshr i32 -1, %171
  %173 = load ptr, ptr %32, align 8, !tbaa !5
  %174 = getelementptr inbounds i8, ptr %173, i64 0
  %175 = load i8, ptr %174, align 1, !tbaa !17
  %176 = zext i8 %175 to i32
  %177 = and i32 %176, %172
  %178 = trunc i32 %177 to i8
  store i8 %178, ptr %174, align 1, !tbaa !17
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %192, %142
  %180 = load i32, ptr %29, align 4, !tbaa !9
  %181 = load i32, ptr %31, align 4, !tbaa !9
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %183, label %195

183:                                              ; preds = %179
  %184 = load ptr, ptr %32, align 8, !tbaa !5
  %185 = load i32, ptr %29, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds i8, ptr %184, i64 %186
  %188 = load i8, ptr %187, align 1, !tbaa !17
  %189 = icmp ne i8 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %183
  br label %195

191:                                              ; preds = %183
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %29, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %29, align 4, !tbaa !9
  br label %179, !llvm.loop !19

195:                                              ; preds = %190, %179
  %196 = load i32, ptr %29, align 4, !tbaa !9
  %197 = load i32, ptr %31, align 4, !tbaa !9
  %198 = icmp slt i32 %196, %197
  br i1 %198, label %199, label %241

199:                                              ; preds = %195
  %200 = load ptr, ptr %28, align 8, !tbaa !5
  %201 = load i32, ptr %29, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds i8, ptr %200, i64 %202
  %204 = load i8, ptr %203, align 1, !tbaa !17
  %205 = zext i8 %204 to i32
  %206 = icmp eq i32 1, %205
  br i1 %206, label %207, label %241

207:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  %208 = load i32, ptr %31, align 4, !tbaa !9
  %209 = sub nsw i32 %208, 1
  %210 = load i32, ptr %29, align 4, !tbaa !9
  %211 = sub nsw i32 %209, %210
  store i32 %211, ptr %34, align 4, !tbaa !9
  %212 = load ptr, ptr %30, align 8, !tbaa !5
  call void @PadBlock(i8 noundef zeroext 0, ptr noundef %212, i32 noundef 8)
  %213 = getelementptr inbounds [64 x i8], ptr %18, i64 0, i64 0
  %214 = load ptr, ptr %30, align 8, !tbaa !5
  %215 = getelementptr inbounds i8, ptr %214, i64 8
  %216 = load i32, ptr %19, align 4, !tbaa !9
  call void @CopyBlock(ptr noundef %213, ptr noundef %215, i32 noundef %216)
  %217 = load ptr, ptr %32, align 8, !tbaa !5
  %218 = load i32, ptr %29, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds i8, ptr %217, i64 %219
  %221 = getelementptr inbounds i8, ptr %220, i64 1
  %222 = load ptr, ptr %30, align 8, !tbaa !5
  %223 = getelementptr inbounds i8, ptr %222, i64 8
  %224 = load i32, ptr %19, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds i8, ptr %223, i64 %225
  %227 = load i32, ptr %34, align 4, !tbaa !9
  call void @CopyBlock(ptr noundef %221, ptr noundef %226, i32 noundef %227)
  %228 = load ptr, ptr %30, align 8, !tbaa !5
  %229 = load i32, ptr %19, align 4, !tbaa !9
  %230 = add nsw i32 8, %229
  %231 = load i32, ptr %34, align 4, !tbaa !9
  %232 = add nsw i32 %230, %231
  %233 = load ptr, ptr %30, align 8, !tbaa !5
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = call i32 @ippsHashMessage_rmf(ptr noundef %228, i32 noundef %232, ptr noundef %233, ptr noundef %234)
  %236 = load ptr, ptr %33, align 8, !tbaa !5
  %237 = load ptr, ptr %30, align 8, !tbaa !5
  %238 = load i32, ptr %19, align 4, !tbaa !9
  %239 = call i32 @EquBlock(ptr noundef %236, ptr noundef %237, i32 noundef %238)
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 %239, ptr %240, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  br label %241

241:                                              ; preds = %207, %199, %195
  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 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %242

242:                                              ; preds = %241, %130, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  store i32 0, ptr %8, align 4
  store i32 1, ptr %17, align 4
  br label %243

243:                                              ; preds = %242, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  br label %244

244:                                              ; preds = %243, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  %245 = load i32, ptr %8, align 4
  ret i32 %245
}

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

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

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

; 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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_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}
!13 = !{!14, !10, i64 12}
!14 = !{!"_cpRSA_public_key", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32}
!15 = !{!16, !6, i64 24}
!16 = !{!"_cpBigNum", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!17 = !{!7, !7, i64 0}
!18 = !{!16, !6, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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

%struct._cpBigNum = type { i32, i32, i32, i32, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsRSAVerify_PSS_rmf(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = alloca ptr, align 8
  %9 = alloca [64 x i8], align 16
  %10 = alloca %struct._cpBigNum, align 8
  %11 = alloca %struct._cpBigNum, align 8
  store ptr %4, ptr %8, align 8, !tbaa !5
  %12 = call i32 @SingleVerifyPssRmfPreproc(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull %8, ptr noundef %5, ptr noundef %6)
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %93

13:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  %14 = getelementptr inbounds i8, ptr %5, i64 4
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 12
  %18 = load i32, ptr %17, align 4, !tbaa !12
  %19 = add nsw i32 %18, 7
  %20 = ashr i32 %19, 3
  %21 = call i64 @IPP_INT_PTR(ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #4
  %22 = add nsw i32 %18, 6
  %23 = ashr i32 %22, 3
  %24 = add nsw i32 %15, 2
  %.not91 = icmp sgt i32 %20, %24
  br i1 %.not91, label %25, label %.critedge

25:                                               ; preds = %13
  %26 = sub i64 0, %21
  %27 = and i64 %26, 7
  %28 = getelementptr inbounds i8, ptr %6, i64 %27
  %29 = add nsw i32 %18, 63
  %30 = sdiv i32 %29, 64
  %31 = call i32 @ippsHashMessage_rmf(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %9, ptr noundef nonnull %5) #4
  %32 = sext i32 %30 to i64
  %33 = getelementptr inbounds i64, ptr %28, i64 %32
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %35 = call ptr @BN_Make(ptr noundef %28, ptr noundef nonnull %34, i32 noundef %30, ptr noundef nonnull %10)
  %36 = shl nsw i32 %30, 1
  %37 = add nsw i32 %36, 2
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i64, ptr %28, i64 %38
  %40 = getelementptr inbounds i64, ptr %39, i64 %32
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = call ptr @BN_Make(ptr noundef %39, ptr noundef nonnull %41, i32 noundef %30, ptr noundef nonnull %11)
  %43 = getelementptr inbounds i64, ptr %39, i64 %38
  %44 = call i32 @ippsSetOctString_BN(ptr noundef %2, i32 noundef %20, ptr noundef nonnull %11) #4
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  call void @gsRSApub_cipher(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %45, ptr noundef %43) #4
  %46 = getelementptr inbounds i8, ptr %10, i64 24
  %47 = load ptr, ptr %46, align 8, !tbaa !14
  %48 = call i32 @ippsGetOctString_BN(ptr noundef %47, i32 noundef %23, ptr noundef nonnull %10) #4
  %49 = sext i32 %23 to i64
  %50 = getelementptr i8, ptr %47, i64 %49
  %51 = getelementptr i8, ptr %50, i64 -1
  %52 = load i8, ptr %51, align 1, !tbaa !16
  %53 = icmp eq i8 %52, -68
  br i1 %53, label %54, label %.critedge

54:                                               ; preds = %25
  %55 = load i8, ptr %47, align 1, !tbaa !16
  %56 = zext i8 %55 to i32
  %57 = and i32 %22, -8
  %58 = xor i32 %57, -1
  %.neg = add i32 %18, 8
  %59 = add i32 %.neg, %58
  %60 = lshr i32 %56, %59
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %.critedge

62:                                               ; preds = %54
  %63 = getelementptr inbounds i8, ptr %11, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = xor i32 %15, -1
  %66 = add i32 %23, %65
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i8, ptr %47, i64 %67
  %69 = call i32 @ippsMGF1_rmf(ptr noundef nonnull %68, i32 noundef %15, ptr noundef %64, i32 noundef %66, ptr noundef nonnull %5) #4
  call void @XorBlock(ptr noundef nonnull %47, ptr noundef %64, ptr noundef nonnull %47, i32 noundef %66)
  %reass.sub = sub i32 %57, %18
  %70 = add i32 %reass.sub, 25
  %71 = and i32 %70, 31
  %72 = lshr i32 -1, %71
  %73 = load i8, ptr %47, align 1, !tbaa !16
  %74 = trunc i32 %72 to i8
  %75 = and i8 %73, %74
  store i8 %75, ptr %47, align 1, !tbaa !16
  %76 = icmp sgt i32 %66, 0
  br i1 %76, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %62
  %wide.trip.count = zext nneg i32 %66 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %79
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %79 ]
  %77 = getelementptr inbounds i8, ptr %47, i64 %indvars.iv
  %78 = load i8, ptr %77, align 1, !tbaa !16
  switch i8 %78, label %.critedge [
    i8 0, label %79
    i8 1, label %80
  ]

79:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.lr.ph, !llvm.loop !18

80:                                               ; preds = %.lr.ph
  %81 = getelementptr inbounds i8, ptr %47, i64 %indvars.iv
  %82 = trunc nuw nsw i64 %indvars.iv to i32
  %83 = xor i32 %82, -1
  %84 = add nsw i32 %66, %83
  call void @PadBlock(i8 noundef zeroext 0, ptr noundef %64, i32 noundef 8)
  %85 = getelementptr inbounds i8, ptr %64, i64 8
  call void @CopyBlock(ptr noundef nonnull %9, ptr noundef nonnull %85, i32 noundef %15)
  %86 = getelementptr inbounds i8, ptr %81, i64 1
  %87 = sext i32 %15 to i64
  %88 = getelementptr inbounds i8, ptr %85, i64 %87
  call void @CopyBlock(ptr noundef nonnull %86, ptr noundef nonnull %88, i32 noundef %84)
  %89 = add nsw i32 %15, 8
  %90 = add nsw i32 %89, %84
  %91 = call i32 @ippsHashMessage_rmf(ptr noundef %64, i32 noundef %90, ptr noundef %64, ptr noundef %5) #4
  %92 = call i32 @EquBlock(ptr noundef nonnull %68, ptr noundef %64, i32 noundef %15)
  store i32 %92, ptr %3, align 4, !tbaa !20
  br label %.critedge

.critedge:                                        ; preds = %79, %.lr.ph, %62, %25, %54, %80, %13
  %.0 = phi i32 [ -15, %13 ], [ 0, %80 ], [ 0, %54 ], [ 0, %25 ], [ 0, %62 ], [ 0, %.lr.ph ], [ 0, %79 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  br label %93

93:                                               ; preds = %7, %.critedge
  %.1 = phi i32 [ %.0, %.critedge ], [ %12, %7 ]
  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 @SingleVerifyPssRmfPreproc(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_INT_PTR(ptr 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 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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_cpHashMethod_rmf", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 12}
!13 = !{!"_cpRSA_public_key", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32}
!14 = !{!15, !6, i64 24}
!15 = !{!"_cpBigNum", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24}
!16 = !{!7, !7, i64 0}
!17 = !{!15, !6, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!11, !11, i64 0}


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