; LLVM IR from specinfo-ua/UAPKI :: library/uapki/src/doc-sign.ll (ZN7UapkiNS3Doc4Sign10SigningDoc23buildUnsignedAttributesEv)

; 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.UapkiNS::Attribute" = type { %"class.std::__cxx11::basic_string", 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.__gnu_cxx::__normal_iterator.23" = type { ptr }
%"class.UapkiNS::Doc::Sign::SigningDoc" = type { ptr, %"class.UapkiNS::Pkcs7::SignedDataBuilder", ptr, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, %"class.UapkiNS::ContentHasher", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", %"class.std::__cxx11::basic_string", %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", %"class.std::vector.3", %"class.std::vector.18", %"class.std::vector.18" }
%"class.UapkiNS::Pkcs7::SignedDataBuilder" = type { ptr, %"class.std::vector.8", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<UapkiNS::Pkcs7::SignedDataBuilder::SignerInfo *, std::allocator<UapkiNS::Pkcs7::SignedDataBuilder::SignerInfo *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Pkcs7::SignedDataBuilder::SignerInfo *, std::allocator<UapkiNS::Pkcs7::SignedDataBuilder::SignerInfo *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Pkcs7::SignedDataBuilder::SignerInfo *, std::allocator<UapkiNS::Pkcs7::SignedDataBuilder::SignerInfo *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Pkcs7::SignedDataBuilder::SignerInfo *, std::allocator<UapkiNS::Pkcs7::SignedDataBuilder::SignerInfo *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::ContentHasher" = type { i32, i32, ptr, i8, %"class.std::__cxx11::basic_string", ptr, i64, %"class.UapkiNS::SmartBA" }
%"class.UapkiNS::SmartBA" = type { 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" }
%"class.UapkiNS::VectorBA" = type { %"class.std::vector.13" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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 }
%struct.anon = type { %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<UapkiNS::Doc::Sign::SigningDoc::CerDataItem *, std::allocator<UapkiNS::Doc::Sign::SigningDoc::CerDataItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Doc::Sign::SigningDoc::CerDataItem *, std::allocator<UapkiNS::Doc::Sign::SigningDoc::CerDataItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Doc::Sign::SigningDoc::CerDataItem *, std::allocator<UapkiNS::Doc::Sign::SigningDoc::CerDataItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Doc::Sign::SigningDoc::CerDataItem *, std::allocator<UapkiNS::Doc::Sign::SigningDoc::CerDataItem *>>::_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::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::Doc::Sign::SigningDoc::SignParams" = type { i32, i8, i8, i32, i32, %"struct.UapkiNS::AlgorithmIdentifier", %"struct.UapkiNS::AlgorithmIdentifier", %"struct.UapkiNS::Doc::Sign::SigningDoc::CerDataItem", %"class.UapkiNS::SmartBA", i8, i8, i8, i8, i8, i8, %"struct.UapkiNS::LibraryConfig::OcspParams", %"struct.UapkiNS::LibraryConfig::TspParams", %"struct.UapkiNS::Attribute", %"struct.UapkiNS::Attribute", %"class.std::vector.3" }
%"struct.UapkiNS::AlgorithmIdentifier" = type { %"class.std::__cxx11::basic_string", ptr }
%"struct.UapkiNS::Doc::Sign::SigningDoc::CerDataItem" = type { ptr, ptr, i8, %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", ptr, ptr }
%"struct.UapkiNS::LibraryConfig::OcspParams" = type { i64 }
%"struct.UapkiNS::LibraryConfig::TspParams" = type { i8, i8, i64, %"class.std::__cxx11::basic_string", %"class.std::vector" }
%"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 }

@.str = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7UapkiNS5Pkcs716ArchiveTs3Helper9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

declare noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(40)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7UapkiNS9Attribute9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc23buildUnsignedAttributesEv(ptr noundef nonnull align 8 dereferenceable(464) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"struct.UapkiNS::Attribute", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.UapkiNS::Attribute", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"struct.UapkiNS::Attribute", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"struct.UapkiNS::Attribute", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  invoke void @_ZN7UapkiNS9AttributeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef null)
          to label %21 unwind label %29

21:                                               ; preds = %1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  invoke void @_ZN7UapkiNS9AttributeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef null)
          to label %22 unwind label %33

22:                                               ; preds = %21
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  invoke void @_ZN7UapkiNS9AttributeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef null)
          to label %23 unwind label %37

23:                                               ; preds = %22
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  invoke void @_ZN7UapkiNS9AttributeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef null)
          to label %24 unwind label %41

24:                                               ; preds = %23
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  %25 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %"struct.UapkiNS::Doc::Sign::SigningDoc::SignParams", ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !42
  switch i32 %28, label %117 [
    i32 5, label %45
    i32 6, label %72
    i32 7, label %72
  ]

29:                                               ; preds = %1
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %7, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  br label %283

33:                                               ; preds = %21
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %7, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  br label %282

37:                                               ; preds = %22
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %7, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  br label %281

41:                                               ; preds = %23
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %7, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  br label %280

45:                                               ; preds = %24
  br label %46

46:                                               ; preds = %45
  %47 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc21encodeCertificateRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %20, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %48 unwind label %54

48:                                               ; preds = %46
  store i32 %47, ptr %4, align 4, !tbaa !9
  %49 = load i32, ptr %4, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %58

51:                                               ; preds = %48
  %52 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 331, i32 noundef %52)
          to label %53 unwind label %54

53:                                               ; preds = %51
  br label %275

54:                                               ; preds = %268, %262, %256, %251, %246, %240, %235, %230, %225, %180, %173, %169, %163, %156, %152, %146, %139, %135, %129, %122, %118, %111, %106, %100, %95, %89, %84, %78, %73, %66, %61, %51, %46
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  br label %279

58:                                               ; preds = %48
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  %62 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc20encodeRevocationRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %20, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %63 unwind label %54

63:                                               ; preds = %61
  store i32 %62, ptr %4, align 4, !tbaa !9
  %64 = load i32, ptr %4, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %69

66:                                               ; preds = %63
  %67 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 332, i32 noundef %67)
          to label %68 unwind label %54

68:                                               ; preds = %66
  br label %275

69:                                               ; preds = %63
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  br label %118

72:                                               ; preds = %24, %24
  br label %73

73:                                               ; preds = %72
  %74 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc21encodeCertificateRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %20, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %75 unwind label %54

75:                                               ; preds = %73
  store i32 %74, ptr %4, align 4, !tbaa !9
  %76 = load i32, ptr %4, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 336, i32 noundef %79)
          to label %80 unwind label %54

80:                                               ; preds = %78
  br label %275

81:                                               ; preds = %75
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  %85 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc20encodeRevocationRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %20, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %86 unwind label %54

86:                                               ; preds = %84
  store i32 %85, ptr %4, align 4, !tbaa !9
  %87 = load i32, ptr %4, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %86
  %90 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 337, i32 noundef %90)
          to label %91 unwind label %54

91:                                               ; preds = %89
  br label %275

92:                                               ; preds = %86
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc16encodeCertValuesERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %20, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %97 unwind label %54

97:                                               ; preds = %95
  store i32 %96, ptr %4, align 4, !tbaa !9
  %98 = load i32, ptr %4, align 4, !tbaa !9
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %103

100:                                              ; preds = %97
  %101 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 338, i32 noundef %101)
          to label %102 unwind label %54

102:                                              ; preds = %100
  br label %275

103:                                              ; preds = %97
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  %107 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc22encodeRevocationValuesERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %20, ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %108 unwind label %54

108:                                              ; preds = %106
  store i32 %107, ptr %4, align 4, !tbaa !9
  %109 = load i32, ptr %4, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %114

111:                                              ; preds = %108
  %112 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 339, i32 noundef %112)
          to label %113 unwind label %54

113:                                              ; preds = %111
  br label %275

114:                                              ; preds = %108
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115
  br label %118

117:                                              ; preds = %24
  br label %118

118:                                              ; preds = %117, %116, %71
  %119 = invoke noundef zeroext i1 @_ZNK7UapkiNS9Attribute9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %120 unwind label %54

120:                                              ; preds = %118
  br i1 %119, label %121, label %135

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  %123 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 2
  %124 = load ptr, ptr %123, align 8, !tbaa !54
  %125 = invoke noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80) %124, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %126 unwind label %54

126:                                              ; preds = %122
  store i32 %125, ptr %4, align 4, !tbaa !9
  %127 = load i32, ptr %4, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %132

129:                                              ; preds = %126
  %130 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 347, i32 noundef %130)
          to label %131 unwind label %54

131:                                              ; preds = %129
  br label %275

132:                                              ; preds = %126
  br label %133

133:                                              ; preds = %132
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134, %120
  %136 = invoke noundef zeroext i1 @_ZNK7UapkiNS9Attribute9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %137 unwind label %54

137:                                              ; preds = %135
  br i1 %136, label %138, label %152

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  %140 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 2
  %141 = load ptr, ptr %140, align 8, !tbaa !54
  %142 = invoke noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80) %141, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %143 unwind label %54

143:                                              ; preds = %139
  store i32 %142, ptr %4, align 4, !tbaa !9
  %144 = load i32, ptr %4, align 4, !tbaa !9
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %149

146:                                              ; preds = %143
  %147 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 350, i32 noundef %147)
          to label %148 unwind label %54

148:                                              ; preds = %146
  br label %275

149:                                              ; preds = %143
  br label %150

150:                                              ; preds = %149
  br label %151

151:                                              ; preds = %150
  br label %152

152:                                              ; preds = %151, %137
  %153 = invoke noundef zeroext i1 @_ZNK7UapkiNS9Attribute9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %154 unwind label %54

154:                                              ; preds = %152
  br i1 %153, label %155, label %169

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  %157 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !54
  %159 = invoke noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80) %158, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %160 unwind label %54

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

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

165:                                              ; preds = %163
  br label %275

166:                                              ; preds = %160
  br label %167

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167
  br label %169

169:                                              ; preds = %168, %154
  %170 = invoke noundef zeroext i1 @_ZNK7UapkiNS9Attribute9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %171 unwind label %54

171:                                              ; preds = %169
  br i1 %170, label %172, label %186

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172
  %174 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 2
  %175 = load ptr, ptr %174, align 8, !tbaa !54
  %176 = invoke noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80) %175, ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %177 unwind label %54

177:                                              ; preds = %173
  store i32 %176, ptr %4, align 4, !tbaa !9
  %178 = load i32, ptr %4, align 4, !tbaa !9
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %183

180:                                              ; preds = %177
  %181 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 356, i32 noundef %181)
          to label %182 unwind label %54

182:                                              ; preds = %180
  br label %275

183:                                              ; preds = %177
  br label %184

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185, %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %187 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 14
  store ptr %187, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %188 = load ptr, ptr %15, align 8, !tbaa !5
  %189 = call ptr @_ZNSt6vectorIPN7UapkiNS9AttributeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %188) #5
  %190 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %16, i32 0, i32 0
  store ptr %189, ptr %190, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %191 = load ptr, ptr %15, align 8, !tbaa !5
  %192 = call ptr @_ZNSt6vectorIPN7UapkiNS9AttributeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %191) #5
  %193 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %17, i32 0, i32 0
  store ptr %192, ptr %193, align 8
  br label %194

194:                                              ; preds = %221, %186
  %195 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS9AttributeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br i1 %195, label %197, label %196

196:                                              ; preds = %194
  store i32 24, ptr %18, align 4
  br label %223

197:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS9AttributeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  store ptr %198, ptr %19, align 8, !tbaa !5
  br label %199

199:                                              ; preds = %197
  %200 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 2
  %201 = load ptr, ptr %200, align 8, !tbaa !54
  %202 = load ptr, ptr %19, align 8, !tbaa !5
  %203 = load ptr, ptr %202, align 8, !tbaa !5
  %204 = invoke noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80) %201, ptr noundef nonnull align 8 dereferenceable(40) %203)
          to label %205 unwind label %211

205:                                              ; preds = %199
  store i32 %204, ptr %4, align 4, !tbaa !9
  %206 = load i32, ptr %4, align 4, !tbaa !9
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %215

208:                                              ; preds = %205
  %209 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 361, i32 noundef %209)
          to label %210 unwind label %211

210:                                              ; preds = %208
  store i32 5, ptr %18, align 4
  br label %218

211:                                              ; preds = %208, %199
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %7, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %279

215:                                              ; preds = %205
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  store i32 0, ptr %18, align 4
  br label %218

218:                                              ; preds = %217, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %219 = load i32, ptr %18, align 4
  switch i32 %219, label %223 [
    i32 0, label %220
  ]

220:                                              ; preds = %218
  br label %221

221:                                              ; preds = %220
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS9AttributeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br label %194

223:                                              ; preds = %218, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %224 = load i32, ptr %18, align 4
  switch i32 %224, label %277 [
    i32 24, label %225
    i32 5, label %275
  ]

225:                                              ; preds = %223
  %226 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 11
  %227 = invoke noundef zeroext i1 @_ZNK7UapkiNS5Pkcs716ArchiveTs3Helper9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(128) %226)
          to label %228 unwind label %54

228:                                              ; preds = %225
  br i1 %227, label %229, label %274

229:                                              ; preds = %228
  br label %230

230:                                              ; preds = %229
  %231 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 11
  %232 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 2
  %233 = load ptr, ptr %232, align 8, !tbaa !54
  %234 = invoke noundef ptr @_ZNK7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo11getAsn1DataEv(ptr noundef nonnull align 8 dereferenceable(80) %233)
          to label %235 unwind label %54

235:                                              ; preds = %230
  %236 = invoke noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper13setSignerInfoEPK10SignerInfo(ptr noundef nonnull align 8 dereferenceable(128) %231, ptr noundef %234)
          to label %237 unwind label %54

237:                                              ; preds = %235
  store i32 %236, ptr %4, align 4, !tbaa !9
  %238 = load i32, ptr %4, align 4, !tbaa !9
  %239 = icmp ne i32 %238, 0
  br i1 %239, label %240, label %243

240:                                              ; preds = %237
  %241 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 365, i32 noundef %241)
          to label %242 unwind label %54

242:                                              ; preds = %240
  br label %275

243:                                              ; preds = %237
  br label %244

244:                                              ; preds = %243
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  %247 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 11
  %248 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 2
  %249 = load ptr, ptr %248, align 8, !tbaa !54
  %250 = invoke noundef ptr @_ZNK7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo16getUnsignedAttrsEv(ptr noundef nonnull align 8 dereferenceable(80) %249)
          to label %251 unwind label %54

251:                                              ; preds = %246
  %252 = invoke noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper16setUnsignedAttrsEPK10Attributes(ptr noundef nonnull align 8 dereferenceable(128) %247, ptr noundef %250)
          to label %253 unwind label %54

253:                                              ; preds = %251
  store i32 %252, ptr %4, align 4, !tbaa !9
  %254 = load i32, ptr %4, align 4, !tbaa !9
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %259

256:                                              ; preds = %253
  %257 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 366, i32 noundef %257)
          to label %258 unwind label %54

258:                                              ; preds = %256
  br label %275

259:                                              ; preds = %253
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261
  %263 = getelementptr inbounds %"class.UapkiNS::Doc::Sign::SigningDoc", ptr %20, i32 0, i32 11
  %264 = invoke noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper8calcHashEv(ptr noundef nonnull align 8 dereferenceable(128) %263)
          to label %265 unwind label %54

265:                                              ; preds = %262
  store i32 %264, ptr %4, align 4, !tbaa !9
  %266 = load i32, ptr %4, align 4, !tbaa !9
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %268, label %271

268:                                              ; preds = %265
  %269 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 367, i32 noundef %269)
          to label %270 unwind label %54

270:                                              ; preds = %268
  br label %275

271:                                              ; preds = %265
  br label %272

272:                                              ; preds = %271
  br label %273

273:                                              ; preds = %272
  br label %274

274:                                              ; preds = %273, %228
  br label %275

275:                                              ; preds = %274, %270, %258, %242, %223, %182, %165, %148, %131, %113, %102, %91, %80, %68, %53
  %276 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %276, ptr %2, align 4
  store i32 1, ptr %18, align 4
  br label %277

277:                                              ; preds = %275, %223
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %278 = load i32, ptr %2, align 4
  ret i32 %278

279:                                              ; preds = %211, %54
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  br label %280

280:                                              ; preds = %279, %41
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  br label %281

281:                                              ; preds = %280, %37
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #5
  br label %282

282:                                              ; preds = %281, %33
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  br label %283

283:                                              ; preds = %282, %29
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %284

284:                                              ; preds = %283
  %285 = load ptr, ptr %7, align 8
  %286 = load i32, ptr %8, align 4
  %287 = insertvalue { ptr, i32 } poison, ptr %285, 0
  %288 = insertvalue { ptr, i32 } %287, i32 %286, 1
  resume { ptr, i32 } %288
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc21encodeCertificateRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464), ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc20encodeRevocationRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464), ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc16encodeCertValuesERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464), ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc22encodeRevocationValuesERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464), ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

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

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

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper16setUnsignedAttrsEPK10Attributes(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #4

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { "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, !6, i64 0}
!12 = !{!"_ZTSN7UapkiNS3Doc4Sign10SigningDocE", !6, i64 0, !13, i64 8, !6, i64 48, !18, i64 56, !18, i64 88, !21, i64 120, !22, i64 128, !25, i64 208, !25, i64 216, !25, i64 224, !18, i64 232, !26, i64 264, !34, i64 392, !38, i64 416, !38, i64 440}
!13 = !{!"_ZTSN7UapkiNS5Pkcs717SignedDataBuilderE", !6, i64 0, !14, i64 8, !6, i64 32}
!14 = !{!"_ZTSSt6vectorIPN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfoESaIS4_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfoESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfoESaIS4_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfoESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !20, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSN7UapkiNS13ContentHasherE", !23, i64 0, !24, i64 4, !6, i64 8, !21, i64 16, !18, i64 24, !6, i64 56, !20, i64 64, !25, i64 72}
!23 = !{!"_ZTSN7UapkiNS13ContentHasher10SourceTypeE", !7, i64 0}
!24 = !{!"_ZTS7HashAlg", !7, i64 0}
!25 = !{!"_ZTSN7UapkiNS7SmartBAE", !6, i64 0}
!26 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperE", !6, i64 0, !24, i64 8, !27, i64 16, !33, i64 88, !25, i64 120}
!27 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3Helper12ATSHashIndexE", !28, i64 0, !28, i64 24, !28, i64 48}
!28 = !{!"_ZTSN7UapkiNS8VectorBAE", !29, i64 0}
!29 = !{!"_ZTSSt6vectorIP12ByteArray_stSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIP12ByteArray_stSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperUt_E", !25, i64 0, !25, i64 8, !25, i64 16, !25, i64 24}
!34 = !{!"_ZTSSt6vectorIPN7UapkiNS3Doc4Sign10SigningDoc11CerDataItemESaIS5_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS3Doc4Sign10SigningDoc11CerDataItemESaIS5_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS3Doc4Sign10SigningDoc11CerDataItemESaIS5_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS3Doc4Sign10SigningDoc11CerDataItemESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSSt6vectorIPN7UapkiNS9AttributeESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS9AttributeESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS9AttributeESaIS2_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS9AttributeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!43, !44, i64 0}
!43 = !{!"_ZTSN7UapkiNS3Doc4Sign10SigningDoc10SignParamsE", !44, i64 0, !21, i64 4, !21, i64 5, !24, i64 8, !24, i64 12, !45, i64 16, !45, i64 56, !46, i64 96, !25, i64 160, !21, i64 168, !21, i64 169, !21, i64 170, !21, i64 171, !21, i64 172, !21, i64 173, !47, i64 176, !48, i64 184, !53, i64 256, !53, i64 296, !34, i64 336}
!44 = !{!"_ZTSN7UapkiNS15SignatureFormatE", !7, i64 0}
!45 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !18, i64 0, !6, i64 32}
!46 = !{!"_ZTSN7UapkiNS3Doc4Sign10SigningDoc11CerDataItemE", !6, i64 0, !6, i64 8, !21, i64 16, !25, i64 24, !25, i64 32, !25, i64 40, !6, i64 48, !6, i64 56}
!47 = !{!"_ZTSN7UapkiNS13LibraryConfig10OcspParamsE", !20, i64 0}
!48 = !{!"_ZTSN7UapkiNS13LibraryConfig9TspParamsE", !21, i64 0, !21, i64 1, !20, i64 8, !18, i64 16, !49, i64 48}
!49 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"_ZTSN7UapkiNS9AttributeE", !18, i64 0, !6, i64 32}
!54 = !{!12, !6, i64 48}


; 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.UapkiNS::Attribute" = type { %"class.std::__cxx11::basic_string", 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.__gnu_cxx::__normal_iterator.23" = type { ptr }

@.str = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7UapkiNS5Pkcs716ArchiveTs3Helper9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

declare noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7UapkiNS9Attribute9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc23buildUnsignedAttributesEv(ptr noundef nonnull align 8 dereferenceable(464) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.UapkiNS::Attribute", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"struct.UapkiNS::Attribute", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"struct.UapkiNS::Attribute", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"struct.UapkiNS::Attribute", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  invoke void @_ZN7UapkiNS9AttributeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef null)
          to label %12 unwind label %18

12:                                               ; preds = %1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  invoke void @_ZN7UapkiNS9AttributeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef null)
          to label %13 unwind label %20

13:                                               ; preds = %12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  invoke void @_ZN7UapkiNS9AttributeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef null)
          to label %14 unwind label %22

14:                                               ; preds = %13
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  invoke void @_ZN7UapkiNS9AttributeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef null)
          to label %15 unwind label %24

15:                                               ; preds = %14
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  %16 = load ptr, ptr %0, align 8, !tbaa !5
  %17 = load i32, ptr %16, align 8, !tbaa !39
  switch i32 %17, label %52 [
    i32 5, label %26
    i32 6, label %36
    i32 7, label %36
  ]

18:                                               ; preds = %1
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  br label %126

20:                                               ; preds = %12
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %125

22:                                               ; preds = %13
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  br label %124

24:                                               ; preds = %14
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %123

26:                                               ; preds = %15
  %27 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc21encodeCertificateRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %0, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %28 unwind label %30

28:                                               ; preds = %26
  %.not74 = icmp eq i32 %27, 0
  br i1 %.not74, label %32, label %29

29:                                               ; preds = %28
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 331, i32 noundef %27)
          to label %121 unwind label %30

30:                                               ; preds = %120, %117, %116, %111, %110, %104, %83, %78, %75, %70, %67, %62, %59, %54, %51, %48, %47, %44, %43, %40, %39, %36, %35, %32, %29, %26
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %122

32:                                               ; preds = %28
  %33 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc20encodeRevocationRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %0, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %34 unwind label %30

34:                                               ; preds = %32
  %.not75 = icmp eq i32 %33, 0
  br i1 %.not75, label %52, label %35

35:                                               ; preds = %34
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 332, i32 noundef %33)
          to label %121 unwind label %30

36:                                               ; preds = %15, %15
  %37 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc21encodeCertificateRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %0, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %38 unwind label %30

38:                                               ; preds = %36
  %.not = icmp eq i32 %37, 0
  br i1 %.not, label %40, label %39

39:                                               ; preds = %38
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 336, i32 noundef %37)
          to label %121 unwind label %30

40:                                               ; preds = %38
  %41 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc20encodeRevocationRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %0, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %42 unwind label %30

42:                                               ; preds = %40
  %.not71 = icmp eq i32 %41, 0
  br i1 %.not71, label %44, label %43

43:                                               ; preds = %42
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 337, i32 noundef %41)
          to label %121 unwind label %30

44:                                               ; preds = %42
  %45 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc16encodeCertValuesERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %0, ptr noundef nonnull align 8 dereferenceable(40) %6)
          to label %46 unwind label %30

46:                                               ; preds = %44
  %.not72 = icmp eq i32 %45, 0
  br i1 %.not72, label %48, label %47

47:                                               ; preds = %46
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 338, i32 noundef %45)
          to label %121 unwind label %30

48:                                               ; preds = %46
  %49 = invoke noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc22encodeRevocationValuesERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464) %0, ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %50 unwind label %30

50:                                               ; preds = %48
  %.not73 = icmp eq i32 %49, 0
  br i1 %.not73, label %52, label %51

51:                                               ; preds = %50
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 339, i32 noundef %49)
          to label %121 unwind label %30

52:                                               ; preds = %15, %50, %34
  %53 = call noundef zeroext i1 @_ZNK7UapkiNS9Attribute9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
  br i1 %53, label %54, label %60

54:                                               ; preds = %52
  %55 = getelementptr inbounds i8, ptr %0, i64 48
  %56 = load ptr, ptr %55, align 8, !tbaa !51
  %57 = invoke noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80) %56, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %58 unwind label %30

58:                                               ; preds = %54
  %.not76 = icmp eq i32 %57, 0
  br i1 %.not76, label %60, label %59

59:                                               ; preds = %58
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 347, i32 noundef %57)
          to label %121 unwind label %30

60:                                               ; preds = %58, %52
  %61 = call noundef zeroext i1 @_ZNK7UapkiNS9Attribute9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %4)
  br i1 %61, label %62, label %68

62:                                               ; preds = %60
  %63 = getelementptr inbounds i8, ptr %0, i64 48
  %64 = load ptr, ptr %63, align 8, !tbaa !51
  %65 = invoke noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80) %64, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %66 unwind label %30

66:                                               ; preds = %62
  %.not77 = icmp eq i32 %65, 0
  br i1 %.not77, label %68, label %67

67:                                               ; preds = %66
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 350, i32 noundef %65)
          to label %121 unwind label %30

68:                                               ; preds = %66, %60
  %69 = call noundef zeroext i1 @_ZNK7UapkiNS9Attribute9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %6)
  br i1 %69, label %70, label %76

70:                                               ; preds = %68
  %71 = getelementptr inbounds i8, ptr %0, i64 48
  %72 = load ptr, ptr %71, align 8, !tbaa !51
  %73 = invoke noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80) %72, ptr noundef nonnull align 8 dereferenceable(40) %6)
          to label %74 unwind label %30

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

75:                                               ; preds = %74
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 353, i32 noundef %73)
          to label %121 unwind label %30

76:                                               ; preds = %74, %68
  %77 = call noundef zeroext i1 @_ZNK7UapkiNS9Attribute9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %8)
  br i1 %77, label %78, label %84

78:                                               ; preds = %76
  %79 = getelementptr inbounds i8, ptr %0, i64 48
  %80 = load ptr, ptr %79, align 8, !tbaa !51
  %81 = invoke noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80) %80, ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %82 unwind label %30

82:                                               ; preds = %78
  %.not79 = icmp eq i32 %81, 0
  br i1 %.not79, label %84, label %83

83:                                               ; preds = %82
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 356, i32 noundef %81)
          to label %121 unwind label %30

84:                                               ; preds = %82, %76
  %85 = getelementptr inbounds i8, ptr %0, i64 440
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %86 = call ptr @_ZNSt6vectorIPN7UapkiNS9AttributeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #5
  store ptr %86, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %87 = call ptr @_ZNSt6vectorIPN7UapkiNS9AttributeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #5
  store ptr %87, ptr %11, align 8
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS9AttributeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %88, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %84
  %89 = getelementptr inbounds i8, ptr %0, i64 48
  br label %90

90:                                               ; preds = %.lr.ph, %98
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS9AttributeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %92 = load ptr, ptr %89, align 8, !tbaa !51
  %93 = load ptr, ptr %91, align 8, !tbaa !52
  %94 = invoke noundef i32 @_ZN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo15addUnsignedAttrERKNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(80) %92, ptr noundef nonnull align 8 dereferenceable(40) %93)
          to label %95 unwind label %.loopexit

95:                                               ; preds = %90
  %.not80 = icmp eq i32 %94, 0
  br i1 %.not80, label %98, label %96

96:                                               ; preds = %95
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 361, i32 noundef %94)
          to label %101 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %90
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %97

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

97:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %122

98:                                               ; preds = %95
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS9AttributeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS9AttributeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %100, label %90, label %._crit_edge

101:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %121

._crit_edge:                                      ; preds = %98, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %102 = getelementptr inbounds i8, ptr %0, i64 264
  %103 = call noundef zeroext i1 @_ZNK7UapkiNS5Pkcs716ArchiveTs3Helper9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(128) %102)
  br i1 %103, label %104, label %121

104:                                              ; preds = %._crit_edge
  %105 = getelementptr inbounds i8, ptr %0, i64 48
  %106 = load ptr, ptr %105, align 8, !tbaa !51
  %107 = call noundef ptr @_ZNK7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo11getAsn1DataEv(ptr noundef nonnull align 8 dereferenceable(80) %106)
  %108 = invoke noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper13setSignerInfoEPK10SignerInfo(ptr noundef nonnull align 8 dereferenceable(128) %102, ptr noundef %107)
          to label %109 unwind label %30

109:                                              ; preds = %104
  %.not81 = icmp eq i32 %108, 0
  br i1 %.not81, label %111, label %110

110:                                              ; preds = %109
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 365, i32 noundef %108)
          to label %121 unwind label %30

111:                                              ; preds = %109
  %112 = load ptr, ptr %105, align 8, !tbaa !51
  %113 = call noundef ptr @_ZNK7UapkiNS5Pkcs717SignedDataBuilder10SignerInfo16getUnsignedAttrsEv(ptr noundef nonnull align 8 dereferenceable(80) %112)
  %114 = invoke noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper16setUnsignedAttrsEPK10Attributes(ptr noundef nonnull align 8 dereferenceable(128) %102, ptr noundef %113)
          to label %115 unwind label %30

115:                                              ; preds = %111
  %.not82 = icmp eq i32 %114, 0
  br i1 %.not82, label %117, label %116

116:                                              ; preds = %115
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 366, i32 noundef %114)
          to label %121 unwind label %30

117:                                              ; preds = %115
  %118 = invoke noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper8calcHashEv(ptr noundef nonnull align 8 dereferenceable(128) %102)
          to label %119 unwind label %30

119:                                              ; preds = %117
  %.not83 = icmp eq i32 %118, 0
  br i1 %.not83, label %121, label %120

120:                                              ; preds = %119
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 367, i32 noundef %118)
          to label %121 unwind label %30

121:                                              ; preds = %101, %29, %35, %39, %43, %47, %51, %59, %67, %75, %83, %110, %116, %120, %119, %._crit_edge
  %.0 = phi i32 [ %57, %59 ], [ %65, %67 ], [ %73, %75 ], [ %81, %83 ], [ %94, %101 ], [ %108, %110 ], [ %114, %116 ], [ %118, %120 ], [ 0, %119 ], [ 0, %._crit_edge ], [ %37, %39 ], [ %41, %43 ], [ %45, %47 ], [ %49, %51 ], [ %27, %29 ], [ %33, %35 ]
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #5
  ret i32 %.0

122:                                              ; preds = %97, %30
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %lpad.phi, %97 ]
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  br label %123

123:                                              ; preds = %122, %24
  %.pn.pn = phi { ptr, i32 } [ %.pn, %122 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  br label %124

124:                                              ; preds = %123, %22
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %123 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  br label %125

125:                                              ; preds = %124, %20
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %124 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  call void @_ZN7UapkiNS9AttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #5
  br label %126

126:                                              ; preds = %125, %18
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %125 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc21encodeCertificateRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc20encodeRevocationRefsERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc16encodeCertValuesERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc4Sign10SigningDoc22encodeRevocationValuesERNS_9AttributeE(ptr noundef nonnull align 8 dereferenceable(464), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

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

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

declare noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper16setUnsignedAttrsEPK10Attributes(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #4

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { "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, !7, i64 0}
!6 = !{!"_ZTSN7UapkiNS3Doc4Sign10SigningDocE", !7, i64 0, !10, i64 8, !7, i64 48, !15, i64 56, !15, i64 88, !18, i64 120, !19, i64 128, !22, i64 208, !22, i64 216, !22, i64 224, !15, i64 232, !23, i64 264, !31, i64 392, !35, i64 416, !35, i64 440}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7UapkiNS5Pkcs717SignedDataBuilderE", !7, i64 0, !11, i64 8, !7, i64 32}
!11 = !{!"_ZTSSt6vectorIPN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfoESaIS4_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfoESaIS4_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfoESaIS4_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs717SignedDataBuilder10SignerInfoESaIS4_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !8, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!"bool", !8, i64 0}
!19 = !{!"_ZTSN7UapkiNS13ContentHasherE", !20, i64 0, !21, i64 4, !7, i64 8, !18, i64 16, !15, i64 24, !7, i64 56, !17, i64 64, !22, i64 72}
!20 = !{!"_ZTSN7UapkiNS13ContentHasher10SourceTypeE", !8, i64 0}
!21 = !{!"_ZTS7HashAlg", !8, i64 0}
!22 = !{!"_ZTSN7UapkiNS7SmartBAE", !7, i64 0}
!23 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperE", !7, i64 0, !21, i64 8, !24, i64 16, !30, i64 88, !22, i64 120}
!24 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3Helper12ATSHashIndexE", !25, i64 0, !25, i64 24, !25, i64 48}
!25 = !{!"_ZTSN7UapkiNS8VectorBAE", !26, i64 0}
!26 = !{!"_ZTSSt6vectorIP12ByteArray_stSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIP12ByteArray_stSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!30 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperUt_E", !22, i64 0, !22, i64 8, !22, i64 16, !22, i64 24}
!31 = !{!"_ZTSSt6vectorIPN7UapkiNS3Doc4Sign10SigningDoc11CerDataItemESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS3Doc4Sign10SigningDoc11CerDataItemESaIS5_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS3Doc4Sign10SigningDoc11CerDataItemESaIS5_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS3Doc4Sign10SigningDoc11CerDataItemESaIS5_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!35 = !{!"_ZTSSt6vectorIPN7UapkiNS9AttributeESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS9AttributeESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS9AttributeESaIS2_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS9AttributeESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!39 = !{!40, !41, i64 0}
!40 = !{!"_ZTSN7UapkiNS3Doc4Sign10SigningDoc10SignParamsE", !41, i64 0, !18, i64 4, !18, i64 5, !21, i64 8, !21, i64 12, !42, i64 16, !42, i64 56, !43, i64 96, !22, i64 160, !18, i64 168, !18, i64 169, !18, i64 170, !18, i64 171, !18, i64 172, !18, i64 173, !44, i64 176, !45, i64 184, !50, i64 256, !50, i64 296, !31, i64 336}
!41 = !{!"_ZTSN7UapkiNS15SignatureFormatE", !8, i64 0}
!42 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !15, i64 0, !7, i64 32}
!43 = !{!"_ZTSN7UapkiNS3Doc4Sign10SigningDoc11CerDataItemE", !7, i64 0, !7, i64 8, !18, i64 16, !22, i64 24, !22, i64 32, !22, i64 40, !7, i64 48, !7, i64 56}
!44 = !{!"_ZTSN7UapkiNS13LibraryConfig10OcspParamsE", !17, i64 0}
!45 = !{!"_ZTSN7UapkiNS13LibraryConfig9TspParamsE", !18, i64 0, !18, i64 1, !17, i64 8, !15, i64 16, !46, i64 48}
!46 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!50 = !{!"_ZTSN7UapkiNS9AttributeE", !15, i64 0, !7, i64 32}
!51 = !{!6, !7, i64 48}
!52 = !{!7, !7, i64 0}


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