; LLVM IR from specinfo-ua/UAPKI :: library/uapki/src (doc-verify)

; 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"

%"class.__gnu_cxx::__normal_iterator.64" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.70" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.81" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.UapkiNS::Doc::Verify::VerifiedSignerInfo" = type { %"class.UapkiNS::CertValidator::CertValidator", i8, i32, %"class.UapkiNS::Pkcs7::SignedDataParser::SignerInfo", ptr, i32, i32, i32, i64, %"class.std::vector.13", i32, %"class.std::__cxx11::basic_string", %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", %"struct.UapkiNS::Doc::Verify::CadesXlInfo", %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", i32, i8, i8, i64, %"class.std::vector.44", %"struct.UapkiNS::Doc::Verify::VerifiedSignerInfo::ListAddedCerts" }
%"class.UapkiNS::CertValidator::CertValidator" = type { ptr, ptr, ptr, %"class.std::vector.34", %"class.std::vector.39", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::Pkcs7::SignedDataParser::SignerInfo" = type { ptr, i32, i64, %"class.UapkiNS::SmartBA", %"struct.UapkiNS::AlgorithmIdentifier", %"class.std::vector.8", %"struct.UapkiNS::AlgorithmIdentifier", %"class.UapkiNS::SmartBA", %"class.std::vector.8", %"class.UapkiNS::SmartBA", %"struct.UapkiNS::Pkcs7::SignedDataParser::SignerInfo::MandatoryAttrs" }
%"struct.UapkiNS::AlgorithmIdentifier" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Pkcs7::SignedDataParser::SignerInfo::MandatoryAttrs" = type { %"class.std::__cxx11::basic_string", %"class.UapkiNS::SmartBA" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<UapkiNS::AttrCertId, std::allocator<UapkiNS::AttrCertId>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::AttrCertId, std::allocator<UapkiNS::AttrCertId>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::AttrCertId, std::allocator<UapkiNS::AttrCertId>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::AttrCertId, std::allocator<UapkiNS::AttrCertId>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Doc::Verify::CadesXlInfo" = type { i8, i8, i8, i8, %"class.std::vector.13", %"class.UapkiNS::VectorBA", %"class.UapkiNS::AttributeHelper::RevocationRefsParser", %"class.UapkiNS::AttributeHelper::RevocationValuesParser", %"class.UapkiNS::VectorBA", i32, %"class.std::vector.18" }
%"class.UapkiNS::AttributeHelper::RevocationRefsParser" = type { ptr, i64 }
%"class.UapkiNS::AttributeHelper::RevocationValuesParser" = type { %"class.UapkiNS::VectorBA", %"class.UapkiNS::VectorBA", %"struct.UapkiNS::Attribute" }
%"struct.UapkiNS::Attribute" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.UapkiNS::VectorBA" = type { %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<UapkiNS::VerifyStatus, std::allocator<UapkiNS::VerifyStatus>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::VerifyStatus, std::allocator<UapkiNS::VerifyStatus>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::VerifyStatus, std::allocator<UapkiNS::VerifyStatus>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::VerifyStatus, std::allocator<UapkiNS::VerifyStatus>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Doc::Verify::AttrTimeStamp" = type { %"class.UapkiNS::Tsp::TsTokenParser", %"class.UapkiNS::Pkcs7::SignedDataParser::SignerInfo", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.UapkiNS::SmartBA", i64, ptr, i32, i32 }
%"class.UapkiNS::Tsp::TsTokenParser" = type { %"class.UapkiNS::Pkcs7::SignedDataParser", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", ptr, ptr, i64, i8, i8, ptr }
%"class.UapkiNS::Pkcs7::SignedDataParser" = type { ptr, i32, %"class.std::vector", %"struct.UapkiNS::Pkcs7::EncapsulatedContentInfo", %"class.UapkiNS::VectorBA", %"class.UapkiNS::VectorBA", i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Pkcs7::EncapsulatedContentInfo" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.UapkiNS::Pkcs7::ArchiveTs3Helper" = type { ptr, i32, %"struct.UapkiNS::Pkcs7::ArchiveTs3Helper::ATSHashIndex", %struct.anon, %"class.UapkiNS::SmartBA" }
%"struct.UapkiNS::Pkcs7::ArchiveTs3Helper::ATSHashIndex" = type { %"class.UapkiNS::VectorBA", %"class.UapkiNS::VectorBA", %"class.UapkiNS::VectorBA" }
%struct.anon = type { %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::CertChainItem *, std::allocator<UapkiNS::CertValidator::CertChainItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::CertChainItem *, std::allocator<UapkiNS::CertValidator::CertChainItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::CertChainItem *, std::allocator<UapkiNS::CertValidator::CertChainItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::CertChainItem *, std::allocator<UapkiNS::CertValidator::CertChainItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Doc::Verify::VerifiedSignerInfo::ListAddedCerts" = type { %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.24" }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerItem *, std::allocator<UapkiNS::Cert::CerItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerItem *, std::allocator<UapkiNS::Cert::CerItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerItem *, std::allocator<UapkiNS::Cert::CerItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerItem *, std::allocator<UapkiNS::Cert::CerItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@OID_ETSI_ARCHIVE_TIMESTAMP_V3 = external global ptr, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo18getDigestAlgorithmEv(ptr noundef nonnull align 8 dereferenceable(216)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare i32 @ba_cmp(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo16getMessageDigestEv(ptr noundef nonnull align 8 dereferenceable(216)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS4Cert7CerItem10getEncodedEv(ptr noundef nonnull align 8 dereferenceable(401)) #0 align 2

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo16getUnsignedAttrsEv(ptr noundef nonnull align 8 dereferenceable(216)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo22verifyArchiveTimeStampERKSt6vectorIPNS_4Cert7CerItemESaIS6_EERKS3_IPNS_3Crl7CrlItemESaISD_EE(ptr noundef nonnull align 8 dereferenceable(2568) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.64", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.64", align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.70", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.70", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.81", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.81", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.0", align 1
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.UapkiNS::SmartBA", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  %28 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 17
  %29 = load i32, ptr %28, align 8, !tbaa !11
  %30 = icmp eq i32 %29, 7
  br i1 %30, label %31, label %247

31:                                               ; preds = %3
  br label %32

32:                                               ; preds = %31
  %33 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 16
  %34 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 3
  %35 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo18getDigestAlgorithmEv(ptr noundef nonnull align 8 dereferenceable(216) %34)
  %36 = call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper4initEPKNS_19AlgorithmIdentifierE(ptr noundef nonnull align 8 dereferenceable(128) %33, ptr noundef %35)
  store i32 %36, ptr %8, align 4, !tbaa !9
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %32
  %40 = load i32, ptr %8, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 832, i32 noundef %40)
  br label %248

41:                                               ; preds = %32
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 16
  %46 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 3
  %47 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo14getContentTypeB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(216) %46)
  %48 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 3
  %49 = call noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo16getMessageDigestEv(ptr noundef nonnull align 8 dereferenceable(216) %48)
  %50 = call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper14setHashContentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128) %45, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef %49)
  store i32 %50, ptr %8, align 4, !tbaa !9
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %55

53:                                               ; preds = %44
  %54 = load i32, ptr %8, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 834, i32 noundef %54)
  br label %248

55:                                               ; preds = %44
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  %59 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 16
  %60 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 3
  %61 = call noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo11getAsn1DataEv(ptr noundef nonnull align 8 dereferenceable(216) %60)
  %62 = call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper13setSignerInfoEPK10SignerInfo(ptr noundef nonnull align 8 dereferenceable(128) %59, ptr noundef %61)
  store i32 %62, ptr %8, align 4, !tbaa !9
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %58
  %66 = load i32, ptr %8, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 836, i32 noundef %66)
  br label %248

67:                                               ; preds = %58
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %70, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = call ptr @_ZNKSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #5
  %73 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.64", ptr %10, i32 0, i32 0
  store ptr %72, ptr %73, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = call ptr @_ZNKSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #5
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.64", ptr %11, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  br label %77

77:                                               ; preds = %98, %69
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %78, label %80, label %79

79:                                               ; preds = %77
  store i32 9, ptr %12, align 4
  br label %100

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store ptr %81, ptr %13, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %80
  %83 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 16
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem10getEncodedEv(ptr noundef nonnull align 8 dereferenceable(401) %85)
  %87 = call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper14addCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128) %83, ptr noundef %86)
  store i32 %87, ptr %8, align 4, !tbaa !9
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %92

90:                                               ; preds = %82
  %91 = load i32, ptr %8, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 839, i32 noundef %91)
  store i32 4, ptr %12, align 4
  br label %95

92:                                               ; preds = %82
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  store i32 0, ptr %12, align 4
  br label %95

95:                                               ; preds = %94, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %96 = load i32, ptr %12, align 4
  switch i32 %96, label %100 [
    i32 0, label %97
  ]

97:                                               ; preds = %95
  br label %98

98:                                               ; preds = %97
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %77

100:                                              ; preds = %95, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %101 = load i32, ptr %12, align 4
  switch i32 %101, label %250 [
    i32 9, label %102
    i32 4, label %248
  ]

102:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %103, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = call ptr @_ZNKSt6vectorIPN7UapkiNS3Crl7CrlItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #5
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.70", ptr %15, i32 0, i32 0
  store ptr %105, ptr %106, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = call ptr @_ZNKSt6vectorIPN7UapkiNS3Crl7CrlItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #5
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.70", ptr %16, i32 0, i32 0
  store ptr %108, ptr %109, align 8
  br label %110

110:                                              ; preds = %131, %102
  %111 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br i1 %111, label %113, label %112

112:                                              ; preds = %110
  store i32 13, ptr %12, align 4
  br label %133

113:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  store ptr %114, ptr %17, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %113
  %116 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 16
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = call noundef ptr @_ZNK7UapkiNS3Crl7CrlItem10getEncodedEv(ptr noundef nonnull align 8 dereferenceable(268) %118)
  %120 = call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper6addCrlEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128) %116, ptr noundef %119)
  store i32 %120, ptr %8, align 4, !tbaa !9
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %115
  %124 = load i32, ptr %8, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 842, i32 noundef %124)
  store i32 4, ptr %12, align 4
  br label %128

125:                                              ; preds = %115
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  store i32 0, ptr %12, align 4
  br label %128

128:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %129 = load i32, ptr %12, align 4
  switch i32 %129, label %133 [
    i32 0, label %130
  ]

130:                                              ; preds = %128
  br label %131

131:                                              ; preds = %130
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %110

133:                                              ; preds = %128, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %134 = load i32, ptr %12, align 4
  switch i32 %134, label %250 [
    i32 13, label %135
    i32 4, label %248
  ]

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %136 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 3
  %137 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo16getUnsignedAttrsEv(ptr noundef nonnull align 8 dereferenceable(216) %136)
  store ptr %137, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %138 = load ptr, ptr %18, align 8, !tbaa !5
  %139 = call ptr @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #5
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.81", ptr %19, i32 0, i32 0
  store ptr %139, ptr %140, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %141 = load ptr, ptr %18, align 8, !tbaa !5
  %142 = call ptr @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %141) #5
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.81", ptr %20, i32 0, i32 0
  store ptr %142, ptr %143, align 8
  br label %144

144:                                              ; preds = %198, %135
  %145 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br i1 %145, label %147, label %146

146:                                              ; preds = %144
  store i32 17, ptr %12, align 4
  br label %201

147:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %148 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  store ptr %148, ptr %21, align 8, !tbaa !5
  %149 = load ptr, ptr %21, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.UapkiNS::Attribute", ptr %149, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  %151 = load ptr, ptr @OID_ETSI_ARCHIVE_TIMESTAMP_V3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef %151, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %152 unwind label %166

152:                                              ; preds = %147
  %153 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32) %150, ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br i1 %153, label %154, label %194

154:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26)
  br label %155

155:                                              ; preds = %154
  %156 = load ptr, ptr %21, align 8, !tbaa !5
  %157 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %158 unwind label %170

158:                                              ; preds = %155
  %159 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper15encodeAttributeERKNS_9AttributeEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %156, ptr noundef %157)
          to label %160 unwind label %170

160:                                              ; preds = %158
  store i32 %159, ptr %8, align 4, !tbaa !9
  %161 = load i32, ptr %8, align 4, !tbaa !9
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %174

163:                                              ; preds = %160
  %164 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 847, i32 noundef %164)
          to label %165 unwind label %170

165:                                              ; preds = %163
  store i32 4, ptr %12, align 4
  br label %191

166:                                              ; preds = %147
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %24, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %25, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %200

170:                                              ; preds = %185, %180, %177, %163, %158, %155
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %24, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %25, align 4
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %200

174:                                              ; preds = %160
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175
  br label %177

177:                                              ; preds = %176
  %178 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 16
  %179 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %180 unwind label %170

180:                                              ; preds = %177
  %181 = invoke noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper15addUnsignedAttrEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128) %178, ptr noundef %179)
          to label %182 unwind label %170

182:                                              ; preds = %180
  store i32 %181, ptr %8, align 4, !tbaa !9
  %183 = load i32, ptr %8, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %188

185:                                              ; preds = %182
  %186 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 848, i32 noundef %186)
          to label %187 unwind label %170

187:                                              ; preds = %185
  store i32 4, ptr %12, align 4
  br label %191

188:                                              ; preds = %182
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  store i32 0, ptr %12, align 4
  br label %191

191:                                              ; preds = %190, %187, %165
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  %192 = load i32, ptr %12, align 4
  switch i32 %192, label %195 [
    i32 0, label %193
  ]

193:                                              ; preds = %191
  br label %194

194:                                              ; preds = %193, %152
  store i32 0, ptr %12, align 4
  br label %195

195:                                              ; preds = %194, %191
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %196 = load i32, ptr %12, align 4
  switch i32 %196, label %201 [
    i32 0, label %197
  ]

197:                                              ; preds = %195
  br label %198

198:                                              ; preds = %197
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br label %144

200:                                              ; preds = %170, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %252

201:                                              ; preds = %195, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %202 = load i32, ptr %12, align 4
  switch i32 %202, label %250 [
    i32 17, label %203
    i32 4, label %248
  ]

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  %205 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 16
  %206 = call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper8calcHashEv(ptr noundef nonnull align 8 dereferenceable(128) %205)
  store i32 %206, ptr %8, align 4, !tbaa !9
  %207 = load i32, ptr %8, align 4, !tbaa !9
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %211

209:                                              ; preds = %204
  %210 = load i32, ptr %8, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 852, i32 noundef %210)
  br label %248

211:                                              ; preds = %204
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212
  %214 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 15
  %215 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %214, i32 0, i32 4
  %216 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %215)
  %217 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 16
  %218 = call noundef ptr @_ZNK7UapkiNS5Pkcs716ArchiveTs3Helper12getHashValueEv(ptr noundef nonnull align 8 dereferenceable(128) %217)
  %219 = call i32 @ba_cmp(ptr noundef %216, ptr noundef %218)
  %220 = icmp eq i32 %219, 0
  %221 = zext i1 %220 to i64
  %222 = select i1 %220, i32 5, i32 4
  %223 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 15
  %224 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %223, i32 0, i32 7
  store i32 %222, ptr %224, align 8, !tbaa !76
  %225 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 15
  %226 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %225, i32 0, i32 7
  %227 = load i32, ptr %226, align 8, !tbaa !76
  %228 = icmp eq i32 %227, 4
  br i1 %228, label %229, label %231

229:                                              ; preds = %213
  %230 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 2
  store i32 4153, ptr %230, align 4, !tbaa !77
  br label %231

231:                                              ; preds = %229, %213
  %232 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 15
  %233 = call noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo19verifyAttrTimestampERNS1_13AttrTimeStampE(ptr noundef nonnull align 8 dereferenceable(2568) %27, ptr noundef nonnull align 8 dereferenceable(552) %232)
  store i32 %233, ptr %8, align 4, !tbaa !9
  %234 = load i32, ptr %8, align 4, !tbaa !9
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %246

236:                                              ; preds = %231
  %237 = load i32, ptr %8, align 4, !tbaa !9
  %238 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %27, i32 0, i32 2
  store i32 %237, ptr %238, align 4, !tbaa !77
  %239 = load i32, ptr %8, align 4, !tbaa !9
  %240 = icmp eq i32 %239, 4161
  br i1 %240, label %241, label %242

241:                                              ; preds = %236
  br label %244

242:                                              ; preds = %236
  %243 = load i32, ptr %8, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %242, %241
  %245 = phi i32 [ 0, %241 ], [ %243, %242 ]
  store i32 %245, ptr %8, align 4, !tbaa !9
  br label %246

246:                                              ; preds = %244, %231
  br label %247

247:                                              ; preds = %246, %3
  br label %248

248:                                              ; preds = %247, %209, %201, %133, %100, %65, %53, %39
  %249 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %249, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %250

250:                                              ; preds = %248, %201, %133, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %251 = load i32, ptr %4, align 4
  ret i32 %251

252:                                              ; preds = %200
  %253 = load ptr, ptr %24, align 8
  %254 = load i32, ptr %25, align 4
  %255 = insertvalue { ptr, i32 } poison, ptr %253, 0
  %256 = insertvalue { ptr, i32 } %255, i32 %254, 1
  resume { ptr, i32 } %256
}

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper4initEPKNS_19AlgorithmIdentifierE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper14setHashContentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo14getContentTypeB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(216)) #0 align 2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper13setSignerInfoEPK10SignerInfo(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo11getAsn1DataEv(ptr noundef nonnull align 8 dereferenceable(216)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper14addCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPN7UapkiNS3Crl7CrlItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPN7UapkiNS3Crl7CrlItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper6addCrlEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS3Crl7CrlItem10getEncodedEv(ptr noundef nonnull align 8 dereferenceable(268)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare noundef i32 @_ZN7UapkiNS15AttributeHelper15encodeAttributeERKNS_9AttributeEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper15addUnsignedAttrEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper8calcHashEv(ptr noundef nonnull align 8 dereferenceable(128)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS5Pkcs716ArchiveTs3Helper12getHashValueEv(ptr noundef nonnull align 8 dereferenceable(128)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo19verifyAttrTimestampERNS1_13AttrTimeStampE(ptr noundef nonnull align 8 dereferenceable(2568), ptr noundef nonnull align 8 dereferenceable(552)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

attributes #0 = { mustprogress 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 = { "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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !66, i64 2408}
!12 = !{!"_ZTSN7UapkiNS3Doc6Verify18VerifiedSignerInfoE", !13, i64 0, !23, i64 88, !10, i64 92, !24, i64 96, !6, i64 312, !35, i64 320, !36, i64 324, !36, i64 328, !29, i64 336, !37, i64 344, !36, i64 368, !27, i64 376, !41, i64 408, !41, i64 960, !54, i64 1512, !41, i64 1728, !62, i64 2280, !66, i64 2408, !23, i64 2412, !23, i64 2413, !29, i64 2416, !67, i64 2424, !71, i64 2448}
!13 = !{!"_ZTSN7UapkiNS13CertValidator13CertValidatorE", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !18, i64 48, !22, i64 72, !22, i64 80}
!14 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN7UapkiNS7SmartBAE", !6, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParser10SignerInfoE", !6, i64 0, !10, i64 8, !25, i64 16, !22, i64 24, !26, i64 32, !30, i64 72, !26, i64 96, !22, i64 136, !30, i64 144, !22, i64 168, !34, i64 176}
!25 = !{!"_ZTSN7UapkiNS5Pkcs720SignerIdentifierTypeE", !7, i64 0}
!26 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !27, i64 0, !6, i64 32}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !28, i64 0, !29, i64 8, !7, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!29 = !{!"long", !7, i64 0}
!30 = !{!"_ZTSSt6vectorIN7UapkiNS9AttributeESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParser10SignerInfo14MandatoryAttrsE", !27, i64 0, !22, i64 32}
!35 = !{!"_ZTSN7UapkiNS3Doc6Verify16ValidationStatusE", !7, i64 0}
!36 = !{!"_ZTSN7UapkiNS12VerifyStatusE", !7, i64 0}
!37 = !{!"_ZTSSt6vectorIN7UapkiNS10AttrCertIdESaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"_ZTSN7UapkiNS3Doc6Verify13AttrTimeStampE", !42, i64 0, !24, i64 240, !27, i64 456, !27, i64 488, !22, i64 520, !29, i64 528, !6, i64 536, !36, i64 544, !36, i64 548}
!42 = !{!"_ZTSN7UapkiNS3Tsp13TsTokenParserE", !43, i64 0, !27, i64 136, !27, i64 168, !6, i64 200, !6, i64 208, !29, i64 216, !23, i64 224, !23, i64 225, !6, i64 232}
!43 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParserE", !6, i64 0, !10, i64 8, !44, i64 16, !48, i64 40, !49, i64 80, !49, i64 104, !29, i64 128}
!44 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!"_ZTSN7UapkiNS5Pkcs723EncapsulatedContentInfoE", !27, i64 0, !6, i64 32}
!49 = !{!"_ZTSN7UapkiNS8VectorBAE", !50, i64 0}
!50 = !{!"_ZTSSt6vectorIP12ByteArray_stSaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseIP12ByteArray_stSaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!54 = !{!"_ZTSN7UapkiNS3Doc6Verify11CadesXlInfoE", !23, i64 0, !23, i64 1, !23, i64 2, !23, i64 3, !37, i64 8, !49, i64 32, !55, i64 56, !56, i64 72, !49, i64 160, !36, i64 184, !58, i64 192}
!55 = !{!"_ZTSN7UapkiNS15AttributeHelper20RevocationRefsParserE", !6, i64 0, !29, i64 8}
!56 = !{!"_ZTSN7UapkiNS15AttributeHelper22RevocationValuesParserE", !49, i64 0, !49, i64 24, !57, i64 48}
!57 = !{!"_ZTSN7UapkiNS9AttributeE", !27, i64 0, !6, i64 32}
!58 = !{!"_ZTSSt6vectorIN7UapkiNS12VerifyStatusESaIS1_EE", !59, i64 0}
!59 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE12_Vector_implE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!62 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperE", !6, i64 0, !63, i64 8, !64, i64 16, !65, i64 88, !22, i64 120}
!63 = !{!"_ZTS7HashAlg", !7, i64 0}
!64 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3Helper12ATSHashIndexE", !49, i64 0, !49, i64 24, !49, i64 48}
!65 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperUt_E", !22, i64 0, !22, i64 8, !22, i64 16, !22, i64 24}
!66 = !{!"_ZTSN7UapkiNS15SignatureFormatE", !7, i64 0}
!67 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE", !68, i64 0}
!68 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE", !69, i64 0}
!69 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE12_Vector_implE", !70, i64 0}
!70 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!71 = !{!"_ZTSN7UapkiNS3Doc6Verify18VerifiedSignerInfo14ListAddedCertsE", !72, i64 0, !72, i64 24, !72, i64 48, !72, i64 72, !72, i64 96}
!72 = !{!"_ZTSSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE", !73, i64 0}
!73 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE", !74, i64 0}
!74 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE12_Vector_implE", !75, i64 0}
!75 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!76 = !{!12, !36, i64 2272}
!77 = !{!12, !10, i64 92}


; 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"

%"class.__gnu_cxx::__normal_iterator.64" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.70" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.81" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.UapkiNS::SmartBA" = type { ptr }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@OID_ETSI_ARCHIVE_TIMESTAMP_V3 = external local_unnamed_addr global ptr, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo18getDigestAlgorithmEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #0 align 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: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare i32 @ba_cmp(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo16getMessageDigestEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS4Cert7CerItem10getEncodedEv(ptr noundef nonnull align 8 dereferenceable(401)) local_unnamed_addr #0 align 2

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo16getUnsignedAttrsEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo22verifyArchiveTimeStampERKSt6vectorIPNS_4Cert7CerItemESaIS6_EERKS3_IPNS_3Crl7CrlItemESaISD_EE(ptr noundef nonnull align 8 dereferenceable(2568) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.64", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.64", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.70", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.70", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.81", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.81", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.0", align 1
  %12 = alloca %"class.UapkiNS::SmartBA", align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 2408
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %15 = icmp eq i32 %14, 7
  br i1 %15, label %16, label %99

16:                                               ; preds = %3
  %17 = getelementptr inbounds i8, ptr %0, i64 2280
  %18 = getelementptr inbounds i8, ptr %0, i64 96
  %19 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo18getDigestAlgorithmEv(ptr noundef nonnull align 8 dereferenceable(216) %18)
  %20 = tail call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper4initEPKNS_19AlgorithmIdentifierE(ptr noundef nonnull align 8 dereferenceable(128) %17, ptr noundef nonnull %19)
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %22, label %21

21:                                               ; preds = %16
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 832, i32 noundef %20)
  br label %99

22:                                               ; preds = %16
  %23 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo14getContentTypeB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(216) %18)
  %24 = tail call noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo16getMessageDigestEv(ptr noundef nonnull align 8 dereferenceable(216) %18)
  %25 = tail call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper14setHashContentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128) %17, ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef %24)
  %.not68 = icmp eq i32 %25, 0
  br i1 %.not68, label %27, label %26

26:                                               ; preds = %22
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 834, i32 noundef %25)
  br label %99

27:                                               ; preds = %22
  %28 = tail call noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo11getAsn1DataEv(ptr noundef nonnull align 8 dereferenceable(216) %18)
  %29 = tail call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper13setSignerInfoEPK10SignerInfo(ptr noundef nonnull align 8 dereferenceable(128) %17, ptr noundef %28)
  %.not69 = icmp eq i32 %29, 0
  br i1 %.not69, label %31, label %30

30:                                               ; preds = %27
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 836, i32 noundef %29)
  br label %99

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %32 = tail call ptr @_ZNKSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %32, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %33 = tail call ptr @_ZNKSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %33, ptr %5, align 8
  %34 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %34, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %31, %39
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %36 = load ptr, ptr %35, align 8, !tbaa !74
  %37 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem10getEncodedEv(ptr noundef nonnull align 8 dereferenceable(401) %36)
  %38 = call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper14addCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128) %17, ptr noundef %37)
  %.not70 = icmp eq i32 %38, 0
  br i1 %.not70, label %39, label %42

39:                                               ; preds = %.lr.ph
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %41 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %41, label %.lr.ph, label %._crit_edge

42:                                               ; preds = %.lr.ph
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 839, i32 noundef %38)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %99

._crit_edge:                                      ; preds = %39, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %43 = call ptr @_ZNKSt6vectorIPN7UapkiNS3Crl7CrlItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %43, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %44 = call ptr @_ZNKSt6vectorIPN7UapkiNS3Crl7CrlItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %44, ptr %7, align 8
  %45 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %45, label %.lr.ph114, label %._crit_edge115

.lr.ph114:                                        ; preds = %._crit_edge, %50
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %47 = load ptr, ptr %46, align 8, !tbaa !74
  %48 = call noundef ptr @_ZNK7UapkiNS3Crl7CrlItem10getEncodedEv(ptr noundef nonnull align 8 dereferenceable(268) %47)
  %49 = call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper6addCrlEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128) %17, ptr noundef %48)
  %.not71 = icmp eq i32 %49, 0
  br i1 %.not71, label %50, label %53

50:                                               ; preds = %.lr.ph114
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %52, label %.lr.ph114, label %._crit_edge115

53:                                               ; preds = %.lr.ph114
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 842, i32 noundef %49)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %99

._crit_edge115:                                   ; preds = %50, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo16getUnsignedAttrsEv(ptr noundef nonnull align 8 dereferenceable(216) %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %55 = call ptr @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #5
  store ptr %55, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %56 = call ptr @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #5
  store ptr %56, ptr %9, align 8
  %57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %57, label %.lr.ph117, label %._crit_edge118

.lr.ph117:                                        ; preds = %._crit_edge115, %76
  %58 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  %59 = load ptr, ptr @OID_ETSI_ARCHIVE_TIMESTAMP_V3, align 8, !tbaa !74
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %59, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %60 unwind label %67

60:                                               ; preds = %.lr.ph117
  %61 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br i1 %61, label %62, label %76

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %63 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %64 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper15encodeAttributeERKNS_9AttributeEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %58, ptr noundef %63)
          to label %65 unwind label %.loopexit

65:                                               ; preds = %62
  %.not72 = icmp eq i32 %64, 0
  br i1 %.not72, label %70, label %66

66:                                               ; preds = %65
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 847, i32 noundef %64)
          to label %80 unwind label %.loopexit.split-lp

67:                                               ; preds = %.lr.ph117
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %79

.loopexit:                                        ; preds = %62, %70
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %69

.loopexit.split-lp:                               ; preds = %66, %74
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %69

69:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %79

70:                                               ; preds = %65
  %71 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %72 = invoke noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper15addUnsignedAttrEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128) %17, ptr noundef %71)
          to label %73 unwind label %.loopexit

73:                                               ; preds = %70
  %.not73 = icmp eq i32 %72, 0
  br i1 %.not73, label %75, label %74

74:                                               ; preds = %73
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 848, i32 noundef %72)
          to label %80 unwind label %.loopexit.split-lp

75:                                               ; preds = %73
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %76

76:                                               ; preds = %60, %75
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %78, label %.lr.ph117, label %._crit_edge118

79:                                               ; preds = %69, %67
  %.pn = phi { ptr, i32 } [ %lpad.phi, %69 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  resume { ptr, i32 } %.pn

80:                                               ; preds = %74, %66
  %.5.ph = phi i32 [ %72, %74 ], [ %64, %66 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %99

._crit_edge118:                                   ; preds = %76, %._crit_edge115
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %81 = call noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper8calcHashEv(ptr noundef nonnull align 8 dereferenceable(128) %17)
  %.not75 = icmp eq i32 %81, 0
  br i1 %.not75, label %83, label %82

82:                                               ; preds = %._crit_edge118
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 852, i32 noundef %81)
  br label %99

83:                                               ; preds = %._crit_edge118
  %84 = getelementptr inbounds i8, ptr %0, i64 1728
  %85 = getelementptr inbounds i8, ptr %0, i64 2248
  %86 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %85)
  %87 = call noundef ptr @_ZNK7UapkiNS5Pkcs716ArchiveTs3Helper12getHashValueEv(ptr noundef nonnull align 8 dereferenceable(128) %17)
  %88 = call i32 @ba_cmp(ptr noundef %86, ptr noundef %87)
  %.not76 = icmp eq i32 %88, 0
  %89 = select i1 %.not76, i32 5, i32 4
  %90 = getelementptr inbounds i8, ptr %0, i64 2272
  store i32 %89, ptr %90, align 8, !tbaa !75
  br i1 %.not76, label %93, label %91

91:                                               ; preds = %83
  %92 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 4153, ptr %92, align 4, !tbaa !76
  br label %93

93:                                               ; preds = %91, %83
  %94 = call noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo19verifyAttrTimestampERNS1_13AttrTimeStampE(ptr noundef nonnull align 8 dereferenceable(2568) %0, ptr noundef nonnull align 8 dereferenceable(552) %84)
  %.not77 = icmp eq i32 %94, 0
  br i1 %.not77, label %99, label %95

95:                                               ; preds = %93
  %96 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %94, ptr %96, align 4, !tbaa !76
  %97 = icmp eq i32 %94, 4161
  %98 = select i1 %97, i32 0, i32 %94
  br label %99

99:                                               ; preds = %80, %53, %42, %21, %26, %30, %82, %93, %95, %3
  %.047 = phi i32 [ %20, %21 ], [ %25, %26 ], [ %29, %30 ], [ %38, %42 ], [ %49, %53 ], [ %.5.ph, %80 ], [ %81, %82 ], [ %98, %95 ], [ 0, %93 ], [ 0, %3 ]
  ret i32 %.047
}

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper4initEPKNS_19AlgorithmIdentifierE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper14setHashContentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo14getContentTypeB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper13setSignerInfoEPK10SignerInfo(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo11getAsn1DataEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper14addCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPN7UapkiNS3Crl7CrlItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPN7UapkiNS3Crl7CrlItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper6addCrlEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS3Crl7CrlItem10getEncodedEv(ptr noundef nonnull align 8 dereferenceable(268)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN7UapkiNS3Crl7CrlItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare noundef i32 @_ZN7UapkiNS15AttributeHelper15encodeAttributeERKNS_9AttributeEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper15addUnsignedAttrEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7UapkiNS9AttributeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper8calcHashEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS5Pkcs716ArchiveTs3Helper12getHashValueEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo19verifyAttrTimestampERNS1_13AttrTimeStampE(ptr noundef nonnull align 8 dereferenceable(2568), ptr noundef nonnull align 8 dereferenceable(552)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

attributes #0 = { mustprogress 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 = { "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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !64, i64 2408}
!6 = !{!"_ZTSN7UapkiNS3Doc6Verify18VerifiedSignerInfoE", !7, i64 0, !20, i64 88, !21, i64 92, !22, i64 96, !8, i64 312, !33, i64 320, !34, i64 324, !34, i64 328, !27, i64 336, !35, i64 344, !34, i64 368, !25, i64 376, !39, i64 408, !39, i64 960, !52, i64 1512, !39, i64 1728, !60, i64 2280, !64, i64 2408, !20, i64 2412, !20, i64 2413, !27, i64 2416, !65, i64 2424, !69, i64 2448}
!7 = !{!"_ZTSN7UapkiNS13CertValidator13CertValidatorE", !8, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !15, i64 48, !19, i64 72, !19, i64 80}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!15 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!19 = !{!"_ZTSN7UapkiNS7SmartBAE", !8, i64 0}
!20 = !{!"bool", !9, i64 0}
!21 = !{!"int", !9, i64 0}
!22 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParser10SignerInfoE", !8, i64 0, !21, i64 8, !23, i64 16, !19, i64 24, !24, i64 32, !28, i64 72, !24, i64 96, !19, i64 136, !28, i64 144, !19, i64 168, !32, i64 176}
!23 = !{!"_ZTSN7UapkiNS5Pkcs720SignerIdentifierTypeE", !9, i64 0}
!24 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !25, i64 0, !8, i64 32}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !27, i64 8, !9, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !8, i64 0}
!27 = !{!"long", !9, i64 0}
!28 = !{!"_ZTSSt6vectorIN7UapkiNS9AttributeESaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!32 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParser10SignerInfo14MandatoryAttrsE", !25, i64 0, !19, i64 32}
!33 = !{!"_ZTSN7UapkiNS3Doc6Verify16ValidationStatusE", !9, i64 0}
!34 = !{!"_ZTSN7UapkiNS12VerifyStatusE", !9, i64 0}
!35 = !{!"_ZTSSt6vectorIN7UapkiNS10AttrCertIdESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!39 = !{!"_ZTSN7UapkiNS3Doc6Verify13AttrTimeStampE", !40, i64 0, !22, i64 240, !25, i64 456, !25, i64 488, !19, i64 520, !27, i64 528, !8, i64 536, !34, i64 544, !34, i64 548}
!40 = !{!"_ZTSN7UapkiNS3Tsp13TsTokenParserE", !41, i64 0, !25, i64 136, !25, i64 168, !8, i64 200, !8, i64 208, !27, i64 216, !20, i64 224, !20, i64 225, !8, i64 232}
!41 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParserE", !8, i64 0, !21, i64 8, !42, i64 16, !46, i64 40, !47, i64 80, !47, i64 104, !27, i64 128}
!42 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!46 = !{!"_ZTSN7UapkiNS5Pkcs723EncapsulatedContentInfoE", !25, i64 0, !8, i64 32}
!47 = !{!"_ZTSN7UapkiNS8VectorBAE", !48, i64 0}
!48 = !{!"_ZTSSt6vectorIP12ByteArray_stSaIS1_EE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseIP12ByteArray_stSaIS1_EE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!52 = !{!"_ZTSN7UapkiNS3Doc6Verify11CadesXlInfoE", !20, i64 0, !20, i64 1, !20, i64 2, !20, i64 3, !35, i64 8, !47, i64 32, !53, i64 56, !54, i64 72, !47, i64 160, !34, i64 184, !56, i64 192}
!53 = !{!"_ZTSN7UapkiNS15AttributeHelper20RevocationRefsParserE", !8, i64 0, !27, i64 8}
!54 = !{!"_ZTSN7UapkiNS15AttributeHelper22RevocationValuesParserE", !47, i64 0, !47, i64 24, !55, i64 48}
!55 = !{!"_ZTSN7UapkiNS9AttributeE", !25, i64 0, !8, i64 32}
!56 = !{!"_ZTSSt6vectorIN7UapkiNS12VerifyStatusESaIS1_EE", !57, i64 0}
!57 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE12_Vector_implE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!60 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperE", !8, i64 0, !61, i64 8, !62, i64 16, !63, i64 88, !19, i64 120}
!61 = !{!"_ZTS7HashAlg", !9, i64 0}
!62 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3Helper12ATSHashIndexE", !47, i64 0, !47, i64 24, !47, i64 48}
!63 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperUt_E", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24}
!64 = !{!"_ZTSN7UapkiNS15SignatureFormatE", !9, i64 0}
!65 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE", !66, i64 0}
!66 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE", !67, i64 0}
!67 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE12_Vector_implE", !68, i64 0}
!68 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!69 = !{!"_ZTSN7UapkiNS3Doc6Verify18VerifiedSignerInfo14ListAddedCertsE", !70, i64 0, !70, i64 24, !70, i64 48, !70, i64 72, !70, i64 96}
!70 = !{!"_ZTSSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE", !71, i64 0}
!71 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE", !72, i64 0}
!72 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE12_Vector_implE", !73, i64 0}
!73 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!74 = !{!8, !8, i64 0}
!75 = !{!6, !34, i64 2272}
!76 = !{!6, !21, i64 92}


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