; LLVM IR from specinfo-ua/UAPKI :: library/common/pkix (archive-timestamp-helper)

; 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.UapkiNS::AttributeHelper::AtsHashIndexBuilder" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = 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" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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" }

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

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 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 ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) #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 uwtable
define dso_local noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper8calcHashEv(ptr noundef nonnull align 8 dereferenceable(128) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.UapkiNS::AttributeHelper::AtsHashIndexBuilder", align 8
  %6 = alloca %"class.UapkiNS::SmartBA", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 4101, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  call void @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilderC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %25 unwind label %36

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %26

26:                                               ; preds = %25
  %27 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder4initERKNS_19AlgorithmIdentifierE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(40) %28)
          to label %30 unwind label %40

30:                                               ; preds = %26
  store i32 %29, ptr %4, align 4, !tbaa !9
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %44

33:                                               ; preds = %30
  %34 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 192, i32 noundef %34)
          to label %35 unwind label %40

35:                                               ; preds = %33
  br label %328

36:                                               ; preds = %1
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %7, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %8, align 4
  br label %333

40:                                               ; preds = %322, %317, %314, %310, %304, %298, %295, %291, %283, %278, %272, %269, %265, %257, %252, %246, %243, %239, %231, %226, %220, %217, %213, %208, %203, %199, %195, %190, %185, %181, %177, %175, %171, %166, %161, %33, %26
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %7, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %8, align 4
  br label %332

44:                                               ; preds = %30
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %47 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 2
  %48 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::ArchiveTs3Helper::ATSHashIndex", ptr %47, i32 0, i32 0
  store ptr %48, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #6
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  br label %55

55:                                               ; preds = %80, %46
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %56, label %58, label %57

57:                                               ; preds = %55
  store i32 5, ptr %14, align 4
  br label %82

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  store ptr %59, ptr %15, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %58
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder11addHashCertEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %62)
          to label %64 unwind label %70

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

67:                                               ; preds = %64
  %68 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 194, i32 noundef %68)
          to label %69 unwind label %70

69:                                               ; preds = %67
  store i32 4, ptr %14, align 4
  br label %77

70:                                               ; preds = %67, %60
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %332

74:                                               ; preds = %64
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  store i32 0, ptr %14, align 4
  br label %77

77:                                               ; preds = %76, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %78 = load i32, ptr %14, align 4
  switch i32 %78, label %82 [
    i32 0, label %79
  ]

79:                                               ; preds = %77
  br label %80

80:                                               ; preds = %79
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %55

82:                                               ; preds = %77, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %83 = load i32, ptr %14, align 4
  switch i32 %83, label %330 [
    i32 5, label %84
    i32 4, label %328
  ]

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %85 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 2
  %86 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::ArchiveTs3Helper::ATSHashIndex", ptr %85, i32 0, i32 1
  store ptr %86, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  %88 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #6
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #6
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  br label %93

93:                                               ; preds = %118, %84
  %94 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %94, label %96, label %95

95:                                               ; preds = %93
  store i32 9, ptr %14, align 4
  br label %120

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  store ptr %97, ptr %19, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %96
  %99 = load ptr, ptr %19, align 8, !tbaa !5
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder10addHashCrlEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %100)
          to label %102 unwind label %108

102:                                              ; preds = %98
  store i32 %101, ptr %4, align 4, !tbaa !9
  %103 = load i32, ptr %4, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %112

105:                                              ; preds = %102
  %106 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 197, i32 noundef %106)
          to label %107 unwind label %108

107:                                              ; preds = %105
  store i32 4, ptr %14, align 4
  br label %115

108:                                              ; preds = %105, %98
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %7, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %332

112:                                              ; preds = %102
  br label %113

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %113
  store i32 0, ptr %14, align 4
  br label %115

115:                                              ; preds = %114, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %116 = load i32, ptr %14, align 4
  switch i32 %116, label %120 [
    i32 0, label %117
  ]

117:                                              ; preds = %115
  br label %118

118:                                              ; preds = %117
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %93

120:                                              ; preds = %115, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %121 = load i32, ptr %14, align 4
  switch i32 %121, label %330 [
    i32 9, label %122
    i32 4, label %328
  ]

122:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %123 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 2
  %124 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::ArchiveTs3Helper::ATSHashIndex", ptr %123, i32 0, i32 2
  store ptr %124, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  %126 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %125) #6
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %126, ptr %127, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %128 = load ptr, ptr %20, align 8, !tbaa !5
  %129 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %128) #6
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %129, ptr %130, align 8
  br label %131

131:                                              ; preds = %156, %122
  %132 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %132, label %134, label %133

133:                                              ; preds = %131
  store i32 13, ptr %14, align 4
  br label %158

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  store ptr %135, ptr %23, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %134
  %137 = load ptr, ptr %23, align 8, !tbaa !5
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder19addHashUnsignedAttrEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %138)
          to label %140 unwind label %146

140:                                              ; preds = %136
  store i32 %139, ptr %4, align 4, !tbaa !9
  %141 = load i32, ptr %4, align 4, !tbaa !9
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %150

143:                                              ; preds = %140
  %144 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 200, i32 noundef %144)
          to label %145 unwind label %146

145:                                              ; preds = %143
  store i32 4, ptr %14, align 4
  br label %153

146:                                              ; preds = %143, %136
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %7, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %332

150:                                              ; preds = %140
  br label %151

151:                                              ; preds = %150
  br label %152

152:                                              ; preds = %151
  store i32 0, ptr %14, align 4
  br label %153

153:                                              ; preds = %152, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  %154 = load i32, ptr %14, align 4
  switch i32 %154, label %158 [
    i32 0, label %155
  ]

155:                                              ; preds = %153
  br label %156

156:                                              ; preds = %155
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br label %131

158:                                              ; preds = %153, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %159 = load i32, ptr %14, align 4
  switch i32 %159, label %330 [
    i32 13, label %160
    i32 4, label %328
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160
  %162 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder6encodeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %163 unwind label %40

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

166:                                              ; preds = %163
  %167 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 202, i32 noundef %167)
          to label %168 unwind label %40

168:                                              ; preds = %166
  br label %328

169:                                              ; preds = %163
  br label %170

170:                                              ; preds = %169
  br label %171

171:                                              ; preds = %170
  %172 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %173 = getelementptr inbounds %struct.anon, ptr %172, i32 0, i32 3
  %174 = invoke noundef ptr @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder10getEncodedEb(ptr noundef nonnull align 8 dereferenceable(24) %5, i1 noundef zeroext true)
          to label %175 unwind label %40

175:                                              ; preds = %171
  %176 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef %174)
          to label %177 unwind label %40

177:                                              ; preds = %175
  %178 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %179 = getelementptr inbounds %struct.anon, ptr %178, i32 0, i32 0
  %180 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %179)
          to label %181 unwind label %40

181:                                              ; preds = %177
  %182 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %183 = getelementptr inbounds %struct.anon, ptr %182, i32 0, i32 1
  %184 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %183)
          to label %185 unwind label %40

185:                                              ; preds = %181
  %186 = add i64 %180, %184
  %187 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %188 = getelementptr inbounds %struct.anon, ptr %187, i32 0, i32 2
  %189 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %188)
          to label %190 unwind label %40

190:                                              ; preds = %185
  %191 = add i64 %186, %189
  %192 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %193 = getelementptr inbounds %struct.anon, ptr %192, i32 0, i32 3
  %194 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %193)
          to label %195 unwind label %40

195:                                              ; preds = %190
  %196 = add i64 %191, %194
  store i64 %196, ptr %9, align 8, !tbaa !11
  %197 = load i64, ptr %9, align 8, !tbaa !11
  %198 = invoke ptr @ba_alloc_by_len(i64 noundef %197)
          to label %199 unwind label %40

199:                                              ; preds = %195
  %200 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %198)
          to label %201 unwind label %40

201:                                              ; preds = %199
  br i1 %200, label %208, label %202

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202
  store i32 4097, ptr %4, align 4, !tbaa !9
  %204 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 212, i32 noundef %204, ptr noundef null)
          to label %205 unwind label %40

205:                                              ; preds = %203
  br label %328

206:                                              ; No predecessors!
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207, %201
  %209 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %210 = getelementptr inbounds %struct.anon, ptr %209, i32 0, i32 0
  %211 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %210)
          to label %212 unwind label %40

212:                                              ; preds = %208
  store i64 %211, ptr %9, align 8, !tbaa !11
  br label %213

213:                                              ; preds = %212
  %214 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %215 = getelementptr inbounds %struct.anon, ptr %214, i32 0, i32 0
  %216 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %215)
          to label %217 unwind label %40

217:                                              ; preds = %213
  %218 = load i64, ptr %9, align 8, !tbaa !11
  %219 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %220 unwind label %40

220:                                              ; preds = %217
  %221 = load i64, ptr %10, align 8, !tbaa !11
  %222 = invoke i32 @ba_copy(ptr noundef %216, i64 noundef 0, i64 noundef %218, ptr noundef %219, i64 noundef %221)
          to label %223 unwind label %40

223:                                              ; preds = %220
  store i32 %222, ptr %4, align 4, !tbaa !9
  %224 = load i32, ptr %4, align 4, !tbaa !9
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %229

226:                                              ; preds = %223
  %227 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 216, i32 noundef %227)
          to label %228 unwind label %40

228:                                              ; preds = %226
  br label %328

229:                                              ; preds = %223
  br label %230

230:                                              ; preds = %229
  br label %231

231:                                              ; preds = %230
  %232 = load i64, ptr %9, align 8, !tbaa !11
  %233 = load i64, ptr %10, align 8, !tbaa !11
  %234 = add i64 %233, %232
  store i64 %234, ptr %10, align 8, !tbaa !11
  %235 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %236 = getelementptr inbounds %struct.anon, ptr %235, i32 0, i32 1
  %237 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %236)
          to label %238 unwind label %40

238:                                              ; preds = %231
  store i64 %237, ptr %9, align 8, !tbaa !11
  br label %239

239:                                              ; preds = %238
  %240 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %241 = getelementptr inbounds %struct.anon, ptr %240, i32 0, i32 1
  %242 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %241)
          to label %243 unwind label %40

243:                                              ; preds = %239
  %244 = load i64, ptr %9, align 8, !tbaa !11
  %245 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %246 unwind label %40

246:                                              ; preds = %243
  %247 = load i64, ptr %10, align 8, !tbaa !11
  %248 = invoke i32 @ba_copy(ptr noundef %242, i64 noundef 0, i64 noundef %244, ptr noundef %245, i64 noundef %247)
          to label %249 unwind label %40

249:                                              ; preds = %246
  store i32 %248, ptr %4, align 4, !tbaa !9
  %250 = load i32, ptr %4, align 4, !tbaa !9
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %252, label %255

252:                                              ; preds = %249
  %253 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 220, i32 noundef %253)
          to label %254 unwind label %40

254:                                              ; preds = %252
  br label %328

255:                                              ; preds = %249
  br label %256

256:                                              ; preds = %255
  br label %257

257:                                              ; preds = %256
  %258 = load i64, ptr %9, align 8, !tbaa !11
  %259 = load i64, ptr %10, align 8, !tbaa !11
  %260 = add i64 %259, %258
  store i64 %260, ptr %10, align 8, !tbaa !11
  %261 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %262 = getelementptr inbounds %struct.anon, ptr %261, i32 0, i32 2
  %263 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %262)
          to label %264 unwind label %40

264:                                              ; preds = %257
  store i64 %263, ptr %9, align 8, !tbaa !11
  br label %265

265:                                              ; preds = %264
  %266 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %267 = getelementptr inbounds %struct.anon, ptr %266, i32 0, i32 2
  %268 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %267)
          to label %269 unwind label %40

269:                                              ; preds = %265
  %270 = load i64, ptr %9, align 8, !tbaa !11
  %271 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %272 unwind label %40

272:                                              ; preds = %269
  %273 = load i64, ptr %10, align 8, !tbaa !11
  %274 = invoke i32 @ba_copy(ptr noundef %268, i64 noundef 0, i64 noundef %270, ptr noundef %271, i64 noundef %273)
          to label %275 unwind label %40

275:                                              ; preds = %272
  store i32 %274, ptr %4, align 4, !tbaa !9
  %276 = load i32, ptr %4, align 4, !tbaa !9
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %281

278:                                              ; preds = %275
  %279 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 224, i32 noundef %279)
          to label %280 unwind label %40

280:                                              ; preds = %278
  br label %328

281:                                              ; preds = %275
  br label %282

282:                                              ; preds = %281
  br label %283

283:                                              ; preds = %282
  %284 = load i64, ptr %9, align 8, !tbaa !11
  %285 = load i64, ptr %10, align 8, !tbaa !11
  %286 = add i64 %285, %284
  store i64 %286, ptr %10, align 8, !tbaa !11
  %287 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %288 = getelementptr inbounds %struct.anon, ptr %287, i32 0, i32 3
  %289 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %288)
          to label %290 unwind label %40

290:                                              ; preds = %283
  store i64 %289, ptr %9, align 8, !tbaa !11
  br label %291

291:                                              ; preds = %290
  %292 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 3
  %293 = getelementptr inbounds %struct.anon, ptr %292, i32 0, i32 3
  %294 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %293)
          to label %295 unwind label %40

295:                                              ; preds = %291
  %296 = load i64, ptr %9, align 8, !tbaa !11
  %297 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %298 unwind label %40

298:                                              ; preds = %295
  %299 = load i64, ptr %10, align 8, !tbaa !11
  %300 = invoke i32 @ba_copy(ptr noundef %294, i64 noundef 0, i64 noundef %296, ptr noundef %297, i64 noundef %299)
          to label %301 unwind label %40

301:                                              ; preds = %298
  store i32 %300, ptr %4, align 4, !tbaa !9
  %302 = load i32, ptr %4, align 4, !tbaa !9
  %303 = icmp ne i32 %302, 0
  br i1 %303, label %304, label %307

304:                                              ; preds = %301
  %305 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 228, i32 noundef %305)
          to label %306 unwind label %40

306:                                              ; preds = %304
  br label %328

307:                                              ; preds = %301
  br label %308

308:                                              ; preds = %307
  br label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309
  %311 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 1
  %312 = load i32, ptr %311, align 8, !tbaa !24
  %313 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %314 unwind label %40

314:                                              ; preds = %310
  %315 = getelementptr inbounds %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", ptr %24, i32 0, i32 4
  %316 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %315)
          to label %317 unwind label %40

317:                                              ; preds = %314
  %318 = invoke i32 @hash(i32 noundef %312, ptr noundef %313, ptr noundef %316)
          to label %319 unwind label %40

319:                                              ; preds = %317
  store i32 %318, ptr %4, align 4, !tbaa !9
  %320 = load i32, ptr %4, align 4, !tbaa !9
  %321 = icmp ne i32 %320, 0
  br i1 %321, label %322, label %325

322:                                              ; preds = %319
  %323 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 231, i32 noundef %323)
          to label %324 unwind label %40

324:                                              ; preds = %322
  br label %328

325:                                              ; preds = %319
  br label %326

326:                                              ; preds = %325
  br label %327

327:                                              ; preds = %326
  br label %328

328:                                              ; preds = %327, %324, %306, %280, %254, %228, %205, %168, %158, %120, %82, %35
  %329 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %329, ptr %2, align 4
  store i32 1, ptr %14, align 4
  br label %330

330:                                              ; preds = %328, %158, %120, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilderD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %331 = load i32, ptr %2, align 4
  ret i32 %331

332:                                              ; preds = %146, %108, %70, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %333

333:                                              ; preds = %332, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilderD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %334

334:                                              ; preds = %333
  %335 = load ptr, ptr %7, align 8
  %336 = load i32, ptr %8, align 4
  %337 = insertvalue { ptr, i32 } poison, ptr %335, 0
  %338 = insertvalue { ptr, i32 } %337, i32 %336, 1
  resume { ptr, i32 } %338
}

declare void @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilderC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_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_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder11addHashCertEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #2

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

declare noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder10addHashCrlEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #2

declare noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder19addHashUnsignedAttrEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #2

declare noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder6encodeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2

declare noundef ptr @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder10getEncodedEb(ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #2

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

declare ptr @ba_alloc_by_len(i64 noundef) #2

declare i32 @ba_copy(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef) #2

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

; Function Attrs: nounwind
declare void @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilderD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5

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 "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 #6 = { 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperE", !6, i64 0, !15, i64 8, !16, i64 16, !22, i64 88, !23, i64 120}
!15 = !{!"_ZTS7HashAlg", !7, i64 0}
!16 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3Helper12ATSHashIndexE", !17, i64 0, !17, i64 24, !17, i64 48}
!17 = !{!"_ZTSN7UapkiNS8VectorBAE", !18, i64 0}
!18 = !{!"_ZTSSt6vectorIP12ByteArray_stSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIP12ByteArray_stSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperUt_E", !23, i64 0, !23, i64 8, !23, i64 16, !23, i64 24}
!23 = !{!"_ZTSN7UapkiNS7SmartBAE", !6, i64 0}
!24 = !{!14, !15, i64 8}


; 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.UapkiNS::AttributeHelper::AtsHashIndexBuilder" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

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 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 ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) 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

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

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #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 uwtable
define dso_local noundef i32 @_ZN7UapkiNS5Pkcs716ArchiveTs3Helper8calcHashEv(ptr noundef nonnull align 8 dereferenceable(128) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.UapkiNS::AttributeHelper::AtsHashIndexBuilder", align 8
  %3 = alloca %"class.UapkiNS::SmartBA", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilderC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder4initERKNS_19AlgorithmIdentifierE(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %12 unwind label %14

12:                                               ; preds = %1
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %16, label %13

13:                                               ; preds = %12
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 192, i32 noundef %11)
          to label %128 unwind label %14

14:                                               ; preds = %127, %119, %118, %112, %110, %109, %104, %101, %100, %95, %93, %92, %87, %85, %84, %77, %75, %72, %69, %66, %62, %61, %._crit_edge126, %13, %1
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %129

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %18 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %18, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %19 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %19, ptr %5, align 8
  %20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16, %27
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  %23 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder11addHashCertEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %22)
          to label %24 unwind label %.loopexit114

24:                                               ; preds = %.lr.ph
  %.not78 = icmp eq i32 %23, 0
  br i1 %.not78, label %27, label %25

25:                                               ; preds = %24
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 194, i32 noundef %23)
          to label %30 unwind label %.loopexit.split-lp115

.loopexit114:                                     ; preds = %.lr.ph
  %lpad.loopexit116 = landingpad { ptr, i32 }
          cleanup
  br label %26

.loopexit.split-lp115:                            ; preds = %25
  %lpad.loopexit.split-lp117 = landingpad { ptr, i32 }
          cleanup
  br label %26

26:                                               ; preds = %.loopexit.split-lp115, %.loopexit114
  %lpad.phi118 = phi { ptr, i32 } [ %lpad.loopexit116, %.loopexit114 ], [ %lpad.loopexit.split-lp117, %.loopexit.split-lp115 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %129

27:                                               ; preds = %24
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %29, label %.lr.ph, label %._crit_edge

30:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %128

._crit_edge:                                      ; preds = %27, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %32 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  store ptr %32, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %33 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  store ptr %33, ptr %7, align 8
  %34 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %34, label %.lr.ph122, label %._crit_edge123

.lr.ph122:                                        ; preds = %._crit_edge, %41
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %36 = load ptr, ptr %35, align 8, !tbaa !19
  %37 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder10addHashCrlEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %36)
          to label %38 unwind label %.loopexit109

38:                                               ; preds = %.lr.ph122
  %.not79 = icmp eq i32 %37, 0
  br i1 %.not79, label %41, label %39

39:                                               ; preds = %38
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 197, i32 noundef %37)
          to label %44 unwind label %.loopexit.split-lp110

.loopexit109:                                     ; preds = %.lr.ph122
  %lpad.loopexit111 = landingpad { ptr, i32 }
          cleanup
  br label %40

.loopexit.split-lp110:                            ; preds = %39
  %lpad.loopexit.split-lp112 = landingpad { ptr, i32 }
          cleanup
  br label %40

40:                                               ; preds = %.loopexit.split-lp110, %.loopexit109
  %lpad.phi113 = phi { ptr, i32 } [ %lpad.loopexit111, %.loopexit109 ], [ %lpad.loopexit.split-lp112, %.loopexit.split-lp110 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %129

41:                                               ; preds = %38
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %43, label %.lr.ph122, label %._crit_edge123

44:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %128

._crit_edge123:                                   ; preds = %41, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %45 = getelementptr inbounds i8, ptr %0, i64 64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %46 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  store ptr %46, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %47 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  store ptr %47, ptr %9, align 8
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %48, label %.lr.ph125, label %._crit_edge126

.lr.ph125:                                        ; preds = %._crit_edge123, %55
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %50 = load ptr, ptr %49, align 8, !tbaa !19
  %51 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder19addHashUnsignedAttrEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %50)
          to label %52 unwind label %.loopexit

52:                                               ; preds = %.lr.ph125
  %.not80 = icmp eq i32 %51, 0
  br i1 %.not80, label %55, label %53

53:                                               ; preds = %52
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 200, i32 noundef %51)
          to label %58 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %.lr.ph125
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %54

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

54:                                               ; 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 %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %129

55:                                               ; preds = %52
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %57, label %.lr.ph125, label %._crit_edge126

58:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %128

._crit_edge126:                                   ; preds = %55, %._crit_edge123
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %59 = invoke noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder6encodeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %60 unwind label %14

60:                                               ; preds = %._crit_edge126
  %.not81 = icmp eq i32 %59, 0
  br i1 %.not81, label %62, label %61

61:                                               ; preds = %60
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 202, i32 noundef %59)
          to label %128 unwind label %14

62:                                               ; preds = %60
  %63 = getelementptr inbounds i8, ptr %0, i64 88
  %64 = getelementptr inbounds i8, ptr %0, i64 112
  %65 = invoke noundef ptr @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder10getEncodedEb(ptr noundef nonnull align 8 dereferenceable(24) %2, i1 noundef zeroext true)
          to label %66 unwind label %14

66:                                               ; preds = %62
  %67 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef %65)
  %68 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %69 unwind label %14

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %0, i64 96
  %71 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %70)
          to label %72 unwind label %14

72:                                               ; preds = %69
  %73 = getelementptr inbounds i8, ptr %0, i64 104
  %74 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %73)
          to label %75 unwind label %14

75:                                               ; preds = %72
  %76 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %77 unwind label %14

77:                                               ; preds = %75
  %78 = add i64 %71, %68
  %79 = add i64 %78, %74
  %80 = add i64 %79, %76
  %81 = invoke ptr @ba_alloc_by_len(i64 noundef %80)
          to label %82 unwind label %14

82:                                               ; preds = %77
  %83 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %81)
  br i1 %83, label %85, label %84

84:                                               ; preds = %82
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 212, i32 noundef 4097, ptr noundef null)
          to label %128 unwind label %14

85:                                               ; preds = %82
  %86 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %87 unwind label %14

87:                                               ; preds = %85
  %88 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
  %89 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %90 = invoke i32 @ba_copy(ptr noundef %88, i64 noundef 0, i64 noundef %86, ptr noundef %89, i64 noundef 0)
          to label %91 unwind label %14

91:                                               ; preds = %87
  %.not82 = icmp eq i32 %90, 0
  br i1 %.not82, label %93, label %92

92:                                               ; preds = %91
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 216, i32 noundef %90)
          to label %128 unwind label %14

93:                                               ; preds = %91
  %94 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %70)
          to label %95 unwind label %14

95:                                               ; preds = %93
  %96 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %70)
  %97 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %98 = invoke i32 @ba_copy(ptr noundef %96, i64 noundef 0, i64 noundef %94, ptr noundef %97, i64 noundef %86)
          to label %99 unwind label %14

99:                                               ; preds = %95
  %.not83 = icmp eq i32 %98, 0
  br i1 %.not83, label %101, label %100

100:                                              ; preds = %99
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 220, i32 noundef %98)
          to label %128 unwind label %14

101:                                              ; preds = %99
  %102 = add i64 %94, %86
  %103 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %73)
          to label %104 unwind label %14

104:                                              ; preds = %101
  %105 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %73)
  %106 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %107 = invoke i32 @ba_copy(ptr noundef %105, i64 noundef 0, i64 noundef %103, ptr noundef %106, i64 noundef %102)
          to label %108 unwind label %14

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

109:                                              ; preds = %108
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 224, i32 noundef %107)
          to label %128 unwind label %14

110:                                              ; preds = %108
  %111 = invoke noundef i64 @_ZNK7UapkiNS7SmartBA4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %112 unwind label %14

112:                                              ; preds = %110
  %113 = add i64 %103, %102
  %114 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %64)
  %115 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %116 = invoke i32 @ba_copy(ptr noundef %114, i64 noundef 0, i64 noundef %111, ptr noundef %115, i64 noundef %113)
          to label %117 unwind label %14

117:                                              ; preds = %112
  %.not85 = icmp eq i32 %116, 0
  br i1 %.not85, label %119, label %118

118:                                              ; preds = %117
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 228, i32 noundef %116)
          to label %128 unwind label %14

119:                                              ; preds = %117
  %120 = getelementptr inbounds i8, ptr %0, i64 8
  %121 = load i32, ptr %120, align 8, !tbaa !20
  %122 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %123 = getelementptr inbounds i8, ptr %0, i64 120
  %124 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %123)
  %125 = invoke i32 @hash(i32 noundef %121, ptr noundef %122, ptr noundef %124)
          to label %126 unwind label %14

126:                                              ; preds = %119
  %.not86 = icmp eq i32 %125, 0
  br i1 %.not86, label %128, label %127

127:                                              ; preds = %126
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 231, i32 noundef %125)
          to label %128 unwind label %14

128:                                              ; preds = %58, %44, %30, %13, %61, %84, %92, %100, %109, %118, %127, %126
  %.0 = phi i32 [ %11, %13 ], [ %23, %30 ], [ %37, %44 ], [ %51, %58 ], [ %59, %61 ], [ %90, %92 ], [ %98, %100 ], [ %107, %109 ], [ %116, %118 ], [ %125, %127 ], [ 0, %126 ], [ 4097, %84 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilderD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret i32 %.0

129:                                              ; preds = %54, %40, %26, %14
  %.pn = phi { ptr, i32 } [ %15, %14 ], [ %lpad.phi, %54 ], [ %lpad.phi113, %40 ], [ %lpad.phi118, %26 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilderD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn
}

declare void @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilderC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

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

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

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

declare noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder11addHashCertEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24), 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_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder10addHashCrlEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #2

declare noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder19addHashUnsignedAttrEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #2

declare noundef i32 @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder6encodeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare noundef ptr @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilder10getEncodedEb(ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #2

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

declare ptr @ba_alloc_by_len(i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind
declare void @_ZN7UapkiNS15AttributeHelper19AtsHashIndexBuilderD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5

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 "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 #6 = { 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 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperE", !7, i64 0, !10, i64 8, !11, i64 16, !17, i64 88, !18, i64 120}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS7HashAlg", !8, i64 0}
!11 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3Helper12ATSHashIndexE", !12, i64 0, !12, i64 24, !12, i64 48}
!12 = !{!"_ZTSN7UapkiNS8VectorBAE", !13, i64 0}
!13 = !{!"_ZTSSt6vectorIP12ByteArray_stSaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIP12ByteArray_stSaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!17 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperUt_E", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!18 = !{!"_ZTSN7UapkiNS7SmartBAE", !7, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!6, !10, i64 8}


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