; LLVM IR from specinfo-ua/UAPKI :: library/uapki/src/api (decrypt)

; 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::Pkcs7::EnvelopedDataParser" = type { ptr, i32, %"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo", %"class.std::vector.0", %"struct.UapkiNS::Pkcs7::EncryptedContentInfo", %"class.std::vector.8" }
%"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo" = type { %"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 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<RecipientInfo_PR, std::allocator<RecipientInfo_PR>>::_Vector_impl" }
%"struct.std::_Vector_base<RecipientInfo_PR, std::allocator<RecipientInfo_PR>>::_Vector_impl" = type { %"struct.std::_Vector_base<RecipientInfo_PR, std::allocator<RecipientInfo_PR>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RecipientInfo_PR, std::allocator<RecipientInfo_PR>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Pkcs7::EncryptedContentInfo" = type { %"class.std::__cxx11::basic_string", %"struct.UapkiNS::AlgorithmIdentifier", 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] }
%"struct.UapkiNS::AlgorithmIdentifier" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.ExpectedCerts = type <{ %"class.std::vector.13", i8, i8, [6 x i8] }>
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.UapkiNS::Pkcs7::EnvelopedDataParser::KeyAgreeRecipientInfo" = type { i32, i32, ptr, ptr, %"struct.UapkiNS::AlgorithmIdentifier", %"class.std::vector.38" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<UapkiNS::Pkcs7::RecipientEncryptedKey, std::allocator<UapkiNS::Pkcs7::RecipientEncryptedKey>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Pkcs7::RecipientEncryptedKey, std::allocator<UapkiNS::Pkcs7::RecipientEncryptedKey>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Pkcs7::RecipientEncryptedKey, std::allocator<UapkiNS::Pkcs7::RecipientEncryptedKey>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Pkcs7::RecipientEncryptedKey, std::allocator<UapkiNS::Pkcs7::RecipientEncryptedKey>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.43" = type { ptr }
%"class.UapkiNS::Pkcs7::EnvelopedDataParser::KeyAgreeRecipientIdentifier" = type { ptr }
%"struct.UapkiNS::Cert::CerStore::AddedCerItem" = type <{ i32, [4 x i8], ptr, i8, [7 x i8] }>
%"struct.UapkiNS::Pkcs7::RecipientEncryptedKey" = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local i32 @uapki_decrypt(ptr noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.UapkiNS::Pkcs7::EnvelopedDataParser", align 8
  %10 = alloca %class.ExpectedCerts, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.UapkiNS::SmartBA", align 8
  %14 = alloca %"class.UapkiNS::SmartBA", align 8
  %15 = alloca %"class.UapkiNS::SmartBA", align 8
  %16 = alloca %"class.UapkiNS::SmartBA", align 8
  %17 = alloca %"class.std::vector.0", align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca %"class.std::vector.18", align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca ptr, align 8
  %29 = alloca i64, align 8
  %30 = alloca %"class.UapkiNS::Pkcs7::EnvelopedDataParser::KeyAgreeRecipientInfo", align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %39 = alloca ptr, align 8
  %40 = alloca %"class.UapkiNS::Pkcs7::EnvelopedDataParser::KeyAgreeRecipientIdentifier", align 8
  %41 = alloca ptr, align 8
  %42 = alloca %"class.UapkiNS::SmartBA", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %43 = call noundef ptr @_ZN7UapkiNS12get_cerstoreEv()
  store ptr %43, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 192, ptr %9) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParserC1Ev(ptr noundef nonnull align 8 dereferenceable(192) %9)
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  invoke void @_ZN13ExpectedCertsC2Ev(ptr noundef nonnull align 8 dereferenceable(26) %10)
          to label %44 unwind label %52

44:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %45 unwind label %56

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %46 unwind label %60

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %47 unwind label %64

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %48 unwind label %68

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  call void @_ZNSt6vectorI16RecipientInfo_PRSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store i64 0, ptr %20, align 8, !tbaa !11
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = icmp ne ptr %49, null
  br i1 %50, label %72, label %51

51:                                               ; preds = %48
  store i32 4097, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %605

52:                                               ; preds = %2
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %11, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %12, align 4
  br label %611

56:                                               ; preds = %44
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %11, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %12, align 4
  br label %610

60:                                               ; preds = %45
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %11, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %12, align 4
  br label %609

64:                                               ; preds = %46
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %11, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %12, align 4
  br label %608

68:                                               ; preds = %47
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %11, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %12, align 4
  br label %607

72:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = invoke noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %73, ptr noundef @.str, i1 noundef zeroext false)
          to label %75 unwind label %86

75:                                               ; preds = %72
  %76 = zext i1 %74 to i8
  store i8 %76, ptr %22, align 1, !tbaa !13
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = invoke ptr @json_object_get_base64(ptr noundef %77, ptr noundef @.str.1)
          to label %79 unwind label %86

79:                                               ; preds = %75
  %80 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %78)
          to label %81 unwind label %86

81:                                               ; preds = %79
  br i1 %80, label %92, label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  store i32 4101, ptr %6, align 4, !tbaa !9
  %84 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str.2, i64 noundef 383, i32 noundef %84, ptr noundef null)
          to label %85 unwind label %86

85:                                               ; preds = %83
  br label %601

86:                                               ; preds = %594, %591, %583, %577, %290, %288, %204, %199, %196, %191, %188, %183, %180, %173, %170, %167, %162, %159, %154, %149, %147, %139, %134, %131, %126, %121, %115, %110, %107, %101, %95, %83, %79, %75, %72
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %11, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %12, align 4
  br label %604

90:                                               ; No predecessors!
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91, %81
  %93 = load i8, ptr %22, align 1, !tbaa !13, !range !15, !noundef !16
  %94 = trunc i8 %93 to i1
  br i1 %94, label %121, label %95

95:                                               ; preds = %92
  %96 = invoke noundef ptr @_ZN11CmProviders13openedStorageEv()
          to label %97 unwind label %86

97:                                               ; preds = %95
  store ptr %96, ptr %8, align 8, !tbaa !5
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = icmp ne ptr %98, null
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  store i32 4121, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %603

101:                                              ; preds = %97
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = invoke noundef zeroext i1 @_ZNK14CmStorageProxy13keyIsSelectedEv(ptr noundef nonnull align 8 dereferenceable(168) %102)
          to label %104 unwind label %86

104:                                              ; preds = %101
  br i1 %103, label %106, label %105

105:                                              ; preds = %104
  store i32 4108, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %603

106:                                              ; preds = %104
  br label %107

107:                                              ; preds = %106
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %110 unwind label %86

110:                                              ; preds = %107
  %111 = invoke noundef i32 @_ZN14CmStorageProxy10keyGetInfoEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168) %108, ptr noundef %109)
          to label %112 unwind label %86

112:                                              ; preds = %110
  store i32 %111, ptr %6, align 4, !tbaa !9
  %113 = load i32, ptr %6, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %118

115:                                              ; preds = %112
  %116 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 390, i32 noundef %116)
          to label %117 unwind label %86

117:                                              ; preds = %115
  br label %601

118:                                              ; preds = %112
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  br label %146

121:                                              ; preds = %92
  %122 = invoke noundef ptr @_ZN11CmProviders13openedStorageEv()
          to label %123 unwind label %86

123:                                              ; preds = %121
  store ptr %122, ptr %8, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = icmp ne ptr %124, null
  br i1 %125, label %126, label %145

126:                                              ; preds = %123
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = invoke noundef zeroext i1 @_ZNK14CmStorageProxy13keyIsSelectedEv(ptr noundef nonnull align 8 dereferenceable(168) %127)
          to label %129 unwind label %86

129:                                              ; preds = %126
  br i1 %128, label %130, label %145

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %134 unwind label %86

134:                                              ; preds = %131
  %135 = invoke noundef i32 @_ZN14CmStorageProxy10keyGetInfoEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168) %132, ptr noundef %133)
          to label %136 unwind label %86

136:                                              ; preds = %134
  store i32 %135, ptr %6, align 4, !tbaa !9
  %137 = load i32, ptr %6, align 4, !tbaa !9
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %142

139:                                              ; preds = %136
  %140 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 395, i32 noundef %140)
          to label %141 unwind label %86

141:                                              ; preds = %139
  br label %601

142:                                              ; preds = %136
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144, %129, %123
  br label %146

146:                                              ; preds = %145, %120
  br label %147

147:                                              ; preds = %146
  %148 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %149 unwind label %86

149:                                              ; preds = %147
  %150 = invoke noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser5parseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(192) %9, ptr noundef %148)
          to label %151 unwind label %86

151:                                              ; preds = %149
  store i32 %150, ptr %6, align 4, !tbaa !9
  %152 = load i32, ptr %6, align 4, !tbaa !9
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %157

154:                                              ; preds = %151
  %155 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 399, i32 noundef %155)
          to label %156 unwind label %86

156:                                              ; preds = %154
  br label %601

157:                                              ; preds = %151
  br label %158

158:                                              ; preds = %157
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = invoke ptr @json_value_init_object()
          to label %162 unwind label %86

162:                                              ; preds = %159
  %163 = invoke i32 @json_object_set_value(ptr noundef %160, ptr noundef @.str.3, ptr noundef %161)
          to label %164 unwind label %86

164:                                              ; preds = %162
  %165 = icmp ne i32 %163, 0
  br i1 %165, label %166, label %167

166:                                              ; preds = %164
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %601

167:                                              ; preds = %164
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = invoke ptr @json_object_get_object(ptr noundef %168, ptr noundef @.str.3)
          to label %170 unwind label %86

170:                                              ; preds = %167
  store ptr %169, ptr %19, align 8, !tbaa !5
  %171 = load ptr, ptr %19, align 8, !tbaa !5
  %172 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser23getEncryptedContentInfoEv(ptr noundef nonnull align 8 dereferenceable(192) %9)
          to label %173 unwind label %86

173:                                              ; preds = %170
  %174 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::EncryptedContentInfo", ptr %172, i32 0, i32 0
  %175 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %174) #6
  %176 = invoke i32 @json_object_set_string(ptr noundef %171, ptr noundef @.str.4, ptr noundef %175)
          to label %177 unwind label %86

177:                                              ; preds = %173
  %178 = icmp ne i32 %176, 0
  br i1 %178, label %179, label %180

179:                                              ; preds = %177
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %601

180:                                              ; preds = %177
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = invoke ptr @json_value_init_array()
          to label %183 unwind label %86

183:                                              ; preds = %180
  %184 = invoke i32 @json_object_set_value(ptr noundef %181, ptr noundef @.str.5, ptr noundef %182)
          to label %185 unwind label %86

185:                                              ; preds = %183
  %186 = icmp ne i32 %184, 0
  br i1 %186, label %187, label %188

187:                                              ; preds = %185
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %601

188:                                              ; preds = %185
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = invoke ptr @json_object_get_array(ptr noundef %189, ptr noundef @.str.5)
          to label %191 unwind label %86

191:                                              ; preds = %188
  store ptr %190, ptr %18, align 8, !tbaa !5
  %192 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser19getUnprotectedAttrsEv(ptr noundef nonnull align 8 dereferenceable(192) %9)
          to label %193 unwind label %86

193:                                              ; preds = %191
  %194 = call noundef zeroext i1 @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %192) #6
  br i1 %194, label %210, label %195

195:                                              ; preds = %193
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser19getUnprotectedAttrsEv(ptr noundef nonnull align 8 dereferenceable(192) %9)
          to label %199 unwind label %86

199:                                              ; preds = %196
  %200 = invoke noundef i32 @_ZL25result_set_list_unprattrsP13json_object_tPKcRKSt6vectorIN7UapkiNS9AttributeESaIS5_EE(ptr noundef %197, ptr noundef @.str.6, ptr noundef nonnull align 8 dereferenceable(24) %198)
          to label %201 unwind label %86

201:                                              ; preds = %199
  store i32 %200, ptr %6, align 4, !tbaa !9
  %202 = load i32, ptr %6, align 4, !tbaa !9
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %207

204:                                              ; preds = %201
  %205 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 408, i32 noundef %205)
          to label %206 unwind label %86

206:                                              ; preds = %204
  br label %601

207:                                              ; preds = %201
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209, %193
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store ptr null, ptr %24, align 8, !tbaa !5
  br label %211

211:                                              ; preds = %210
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7UapkiNS5Pkcs719EnvelopedDataParser18getOriginatorCertsEv(ptr noundef nonnull align 8 dereferenceable(192) %9)
          to label %214 unwind label %222

214:                                              ; preds = %211
  %215 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore8addCertsEbbRKNS_8VectorBAERSt6vectorINS1_12AddedCerItemESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(96) %212, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(24) %213, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %216 unwind label %222

216:                                              ; preds = %214
  store i32 %215, ptr %6, align 4, !tbaa !9
  %217 = load i32, ptr %6, align 4, !tbaa !9
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %226

219:                                              ; preds = %216
  %220 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 420, i32 noundef %220)
          to label %221 unwind label %222

221:                                              ; preds = %219
  store i32 4, ptr %21, align 4
  br label %286

222:                                              ; preds = %236, %231, %228, %219, %214, %211
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %11, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %12, align 4
  br label %298

226:                                              ; preds = %216
  br label %227

227:                                              ; preds = %226
  br label %228

228:                                              ; preds = %227
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = invoke ptr @json_value_init_array()
          to label %231 unwind label %222

231:                                              ; preds = %228
  %232 = invoke i32 @json_object_set_value(ptr noundef %229, ptr noundef @.str.7, ptr noundef %230)
          to label %233 unwind label %222

233:                                              ; preds = %231
  %234 = icmp ne i32 %232, 0
  br i1 %234, label %235, label %236

235:                                              ; preds = %233
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %21, align 4
  br label %286

236:                                              ; preds = %233
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = invoke ptr @json_object_get_array(ptr noundef %237, ptr noundef @.str.7)
          to label %239 unwind label %222

239:                                              ; preds = %236
  store ptr %238, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store ptr %23, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %240 = load ptr, ptr %25, align 8, !tbaa !5
  %241 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %240) #6
  %242 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %241, ptr %242, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %243 = load ptr, ptr %25, align 8, !tbaa !5
  %244 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #6
  %245 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %244, ptr %245, align 8
  br label %246

246:                                              ; preds = %281, %239
  %247 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  br i1 %247, label %249, label %248

248:                                              ; preds = %246
  store i32 15, ptr %21, align 4
  br label %283

249:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %250 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  store ptr %250, ptr %28, align 8, !tbaa !5
  %251 = load ptr, ptr %28, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.UapkiNS::Cert::CerStore::AddedCerItem", ptr %251, i32 0, i32 2
  %253 = load ptr, ptr %252, align 8, !tbaa !17
  %254 = icmp ne ptr %253, null
  br i1 %254, label %255, label %277

255:                                              ; preds = %249
  br label %256

256:                                              ; preds = %255
  %257 = load ptr, ptr %24, align 8, !tbaa !5
  %258 = load ptr, ptr %28, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.UapkiNS::Cert::CerStore::AddedCerItem", ptr %258, i32 0, i32 2
  %260 = load ptr, ptr %259, align 8, !tbaa !17
  %261 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %260)
          to label %262 unwind label %270

262:                                              ; preds = %256
  %263 = invoke i32 @json_array_append_base64(ptr noundef %257, ptr noundef %261)
          to label %264 unwind label %270

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

267:                                              ; preds = %264
  %268 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 426, i32 noundef %268)
          to label %269 unwind label %270

269:                                              ; preds = %267
  store i32 4, ptr %21, align 4
  br label %278

270:                                              ; preds = %267, %262, %256
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %11, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %298

274:                                              ; preds = %264
  br label %275

275:                                              ; preds = %274
  br label %276

276:                                              ; preds = %275
  br label %277

277:                                              ; preds = %276, %249
  store i32 0, ptr %21, align 4
  br label %278

278:                                              ; preds = %277, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  %279 = load i32, ptr %21, align 4
  switch i32 %279, label %283 [
    i32 0, label %280
  ]

280:                                              ; preds = %278
  br label %281

281:                                              ; preds = %280
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br label %246

283:                                              ; preds = %278, %248
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  %284 = load i32, ptr %21, align 4
  switch i32 %284, label %286 [
    i32 15, label %285
  ]

285:                                              ; preds = %283
  store i32 0, ptr %21, align 4
  br label %286

286:                                              ; preds = %285, %283, %235, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  %287 = load i32, ptr %21, align 4
  switch i32 %287, label %603 [
    i32 0, label %288
    i32 4, label %601
  ]

288:                                              ; preds = %286
  %289 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser21getRecipientInfoTypesEv(ptr noundef nonnull align 8 dereferenceable(192) %9)
          to label %290 unwind label %86

290:                                              ; preds = %288
  %291 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI16RecipientInfo_PRSaIS0_EEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %289)
          to label %292 unwind label %86

292:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  store i64 0, ptr %29, align 8, !tbaa !11
  br label %293

293:                                              ; preds = %570, %292
  %294 = load i64, ptr %29, align 8, !tbaa !11
  %295 = call noundef i64 @_ZNKSt6vectorI16RecipientInfo_PRSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %296 = icmp ult i64 %294, %295
  br i1 %296, label %299, label %297

297:                                              ; preds = %293
  store i32 19, ptr %21, align 4
  br label %573

298:                                              ; preds = %270, %222
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  br label %604

299:                                              ; preds = %293
  %300 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser21getRecipientInfoTypesEv(ptr noundef nonnull align 8 dereferenceable(192) %9)
          to label %301 unwind label %317

301:                                              ; preds = %299
  %302 = load i64, ptr %29, align 8, !tbaa !11
  %303 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorI16RecipientInfo_PRSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %300, i64 noundef %302) #6
  %304 = load i32, ptr %303, align 4, !tbaa !19
  %305 = icmp eq i32 %304, 2
  br i1 %305, label %306, label %569

306:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 88, ptr %30) #6
  invoke void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %30)
          to label %307 unwind label %321

307:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  store ptr null, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  store ptr null, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  br label %308

308:                                              ; preds = %307
  %309 = load i64, ptr %29, align 8, !tbaa !11
  %310 = invoke noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser26parseKeyAgreeRecipientInfoEmRNS1_21KeyAgreeRecipientInfoE(ptr noundef nonnull align 8 dereferenceable(192) %9, i64 noundef %309, ptr noundef nonnull align 8 dereferenceable(88) %30)
          to label %311 unwind label %325

311:                                              ; preds = %308
  store i32 %310, ptr %6, align 4, !tbaa !9
  %312 = load i32, ptr %6, align 4, !tbaa !9
  %313 = icmp ne i32 %312, 0
  br i1 %313, label %314, label %329

314:                                              ; preds = %311
  %315 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 439, i32 noundef %315)
          to label %316 unwind label %325

316:                                              ; preds = %314
  store i32 4, ptr %21, align 4
  br label %563

317:                                              ; preds = %299
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %11, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %12, align 4
  br label %575

321:                                              ; preds = %306
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %11, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %12, align 4
  br label %568

325:                                              ; preds = %370, %365, %363, %356, %351, %347, %338, %332, %314, %308
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %11, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %12, align 4
  br label %567

329:                                              ; preds = %311
  br label %330

330:                                              ; preds = %329
  br label %331

331:                                              ; preds = %330
  br label %332

332:                                              ; preds = %331
  %333 = load ptr, ptr %7, align 8, !tbaa !5
  %334 = invoke noundef i32 @_ZL19get_originator_spkiRN7UapkiNS4Cert8CerStoreERKNS_5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoER13ExpectedCertsPPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %333, ptr noundef nonnull align 8 dereferenceable(88) %30, ptr noundef nonnull align 8 dereferenceable(26) %10, ptr noundef %32, ptr noundef %31)
          to label %335 unwind label %325

335:                                              ; preds = %332
  store i32 %334, ptr %6, align 4, !tbaa !9
  %336 = load i32, ptr %6, align 4, !tbaa !9
  %337 = icmp ne i32 %336, 0
  br i1 %337, label %338, label %341

338:                                              ; preds = %335
  %339 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 447, i32 noundef %339)
          to label %340 unwind label %325

340:                                              ; preds = %338
  store i32 4, ptr %21, align 4
  br label %563

341:                                              ; preds = %335
  br label %342

342:                                              ; preds = %341
  br label %343

343:                                              ; preds = %342
  %344 = load ptr, ptr %31, align 8, !tbaa !5
  %345 = icmp ne ptr %344, null
  br i1 %345, label %346, label %362

346:                                              ; preds = %343
  br label %347

347:                                              ; preds = %346
  %348 = load ptr, ptr %5, align 8, !tbaa !5
  %349 = load ptr, ptr %31, align 8, !tbaa !5
  %350 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %349)
          to label %351 unwind label %325

351:                                              ; preds = %347
  %352 = invoke i32 @json_object_set_base64(ptr noundef %348, ptr noundef @.str.8, ptr noundef %350)
          to label %353 unwind label %325

353:                                              ; preds = %351
  store i32 %352, ptr %6, align 4, !tbaa !9
  %354 = load i32, ptr %6, align 4, !tbaa !9
  %355 = icmp ne i32 %354, 0
  br i1 %355, label %356, label %359

356:                                              ; preds = %353
  %357 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 449, i32 noundef %357)
          to label %358 unwind label %325

358:                                              ; preds = %356
  store i32 4, ptr %21, align 4
  br label %563

359:                                              ; preds = %353
  br label %360

360:                                              ; preds = %359
  br label %361

361:                                              ; preds = %360
  br label %362

362:                                              ; preds = %361, %343
  br label %363

363:                                              ; preds = %362
  %364 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfo25getKeyEncryptionAlgorithmEv(ptr noundef nonnull align 8 dereferenceable(88) %30)
          to label %365 unwind label %325

365:                                              ; preds = %363
  %366 = invoke noundef i32 @_ZL24parse_keyencryption_algoRKN7UapkiNS19AlgorithmIdentifierERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_(ptr noundef nonnull align 8 dereferenceable(40) %364, ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %367 unwind label %325

367:                                              ; preds = %365
  store i32 %366, ptr %6, align 4, !tbaa !9
  %368 = load i32, ptr %6, align 4, !tbaa !9
  %369 = icmp ne i32 %368, 0
  br i1 %369, label %370, label %373

370:                                              ; preds = %367
  %371 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 452, i32 noundef %371)
          to label %372 unwind label %325

372:                                              ; preds = %370
  store i32 4, ptr %21, align 4
  br label %563

373:                                              ; preds = %367
  br label %374

374:                                              ; preds = %373
  br label %375

375:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %376 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfo25getRecipientEncryptedKeysEv(ptr noundef nonnull align 8 dereferenceable(88) %30)
          to label %377 unwind label %388

377:                                              ; preds = %375
  store ptr %376, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %378 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %378, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %379 = load ptr, ptr %36, align 8, !tbaa !5
  %380 = call ptr @_ZNKSt6vectorIN7UapkiNS5Pkcs721RecipientEncryptedKeyESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %379) #6
  %381 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %37, i32 0, i32 0
  store ptr %380, ptr %381, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %382 = load ptr, ptr %36, align 8, !tbaa !5
  %383 = call ptr @_ZNKSt6vectorIN7UapkiNS5Pkcs721RecipientEncryptedKeyESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %382) #6
  %384 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %38, i32 0, i32 0
  store ptr %383, ptr %384, align 8
  br label %385

385:                                              ; preds = %555, %377
  %386 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #6
  br i1 %386, label %392, label %387

387:                                              ; preds = %385
  store i32 30, ptr %21, align 4
  br label %559

388:                                              ; preds = %375
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %11, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %12, align 4
  br label %566

392:                                              ; preds = %385
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %393 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #6
  store ptr %393, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  invoke void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %394 unwind label %407

394:                                              ; preds = %392
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  store ptr null, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %395 unwind label %411

395:                                              ; preds = %394
  br label %396

396:                                              ; preds = %395
  %397 = load ptr, ptr %39, align 8, !tbaa !5
  %398 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::RecipientEncryptedKey", ptr %397, i32 0, i32 0
  %399 = load ptr, ptr %398, align 8, !tbaa !21
  %400 = invoke noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifier5parseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef %399)
          to label %401 unwind label %415

401:                                              ; preds = %396
  store i32 %400, ptr %6, align 4, !tbaa !9
  %402 = load i32, ptr %6, align 4, !tbaa !9
  %403 = icmp ne i32 %402, 0
  br i1 %403, label %404, label %419

404:                                              ; preds = %401
  %405 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 461, i32 noundef %405)
          to label %406 unwind label %415

406:                                              ; preds = %404
  store i32 4, ptr %21, align 4
  br label %549

407:                                              ; preds = %392
  %408 = landingpad { ptr, i32 }
          cleanup
  %409 = extractvalue { ptr, i32 } %408, 0
  store ptr %409, ptr %11, align 8
  %410 = extractvalue { ptr, i32 } %408, 1
  store i32 %410, ptr %12, align 4
  br label %558

411:                                              ; preds = %394
  %412 = landingpad { ptr, i32 }
          cleanup
  %413 = extractvalue { ptr, i32 } %412, 0
  store ptr %413, ptr %11, align 8
  %414 = extractvalue { ptr, i32 } %412, 1
  store i32 %414, ptr %12, align 4
  br label %557

415:                                              ; preds = %542, %537, %534, %526, %521, %518, %512, %507, %505, %503, %501, %495, %490, %485, %481, %474, %467, %465, %463, %460, %455, %449, %444, %438, %435, %430, %425, %422, %404, %396
  %416 = landingpad { ptr, i32 }
          cleanup
  %417 = extractvalue { ptr, i32 } %416, 0
  store ptr %417, ptr %11, align 8
  %418 = extractvalue { ptr, i32 } %416, 1
  store i32 %418, ptr %12, align 4
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  br label %557

419:                                              ; preds = %401
  br label %420

420:                                              ; preds = %419
  br label %421

421:                                              ; preds = %420
  br label %422

422:                                              ; preds = %421
  %423 = load ptr, ptr %7, align 8, !tbaa !5
  %424 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %425 unwind label %415

425:                                              ; preds = %422
  %426 = invoke noundef i32 @_ZL15get_recipekeyidRN7UapkiNS4Cert8CerStoreERKNS_5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierER13ExpectedCertsPP12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %423, ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(26) %10, ptr noundef %424, ptr noundef %41)
          to label %427 unwind label %415

427:                                              ; preds = %425
  store i32 %426, ptr %6, align 4, !tbaa !9
  %428 = load i32, ptr %6, align 4, !tbaa !9
  %429 = icmp ne i32 %428, 0
  br i1 %429, label %430, label %433

430:                                              ; preds = %427
  %431 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 469, i32 noundef %431)
          to label %432 unwind label %415

432:                                              ; preds = %430
  store i32 4, ptr %21, align 4
  br label %549

433:                                              ; preds = %427
  br label %434

434:                                              ; preds = %433
  br label %435

435:                                              ; preds = %434
  %436 = load ptr, ptr %18, align 8, !tbaa !5
  %437 = invoke ptr @json_value_init_object()
          to label %438 unwind label %415

438:                                              ; preds = %435
  %439 = invoke i32 @json_array_append_value(ptr noundef %436, ptr noundef %437)
          to label %440 unwind label %415

440:                                              ; preds = %438
  %441 = icmp ne i32 %439, 0
  br i1 %441, label %442, label %443

442:                                              ; preds = %440
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %21, align 4
  br label %549

443:                                              ; preds = %440
  br label %444

444:                                              ; preds = %443
  %445 = load ptr, ptr %18, align 8, !tbaa !5
  %446 = load i64, ptr %20, align 8, !tbaa !11
  %447 = add i64 %446, 1
  store i64 %447, ptr %20, align 8, !tbaa !11
  %448 = invoke ptr @json_array_get_object(ptr noundef %445, i64 noundef %446)
          to label %449 unwind label %415

449:                                              ; preds = %444
  %450 = load ptr, ptr %41, align 8, !tbaa !5
  %451 = invoke noundef i32 @_ZL27result_recipientkey_to_jsonP13json_object_tRKN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierEPKNS1_4Cert7CerItemE(ptr noundef %448, ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef %450)
          to label %452 unwind label %415

452:                                              ; preds = %449
  store i32 %451, ptr %6, align 4, !tbaa !9
  %453 = load i32, ptr %6, align 4, !tbaa !9
  %454 = icmp ne i32 %453, 0
  br i1 %454, label %455, label %458

455:                                              ; preds = %452
  %456 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 476, i32 noundef %456)
          to label %457 unwind label %415

457:                                              ; preds = %455
  store i32 4, ptr %21, align 4
  br label %549

458:                                              ; preds = %452
  br label %459

459:                                              ; preds = %458
  br label %460

460:                                              ; preds = %459
  %461 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %462 unwind label %415

462:                                              ; preds = %460
  br i1 %461, label %548, label %463

463:                                              ; preds = %462
  %464 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %465 unwind label %415

465:                                              ; preds = %463
  %466 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %467 unwind label %415

467:                                              ; preds = %465
  %468 = invoke i32 @ba_cmp(ptr noundef %464, ptr noundef %466)
          to label %469 unwind label %415

469:                                              ; preds = %467
  %470 = icmp eq i32 %468, 0
  br i1 %470, label %471, label %548

471:                                              ; preds = %469
  %472 = load i8, ptr %22, align 1, !tbaa !13, !range !15, !noundef !16
  %473 = trunc i8 %472 to i1
  br i1 %473, label %533, label %474

474:                                              ; preds = %471
  %475 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %476 unwind label %415

476:                                              ; preds = %474
  br i1 %475, label %477, label %532

477:                                              ; preds = %476
  %478 = load ptr, ptr %32, align 8, !tbaa !5
  %479 = icmp ne ptr %478, null
  br i1 %479, label %480, label %532

480:                                              ; preds = %477
  br label %481

481:                                              ; preds = %480
  %482 = load ptr, ptr %8, align 8, !tbaa !5
  %483 = load ptr, ptr %32, align 8, !tbaa !5
  %484 = invoke noundef ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfo6getUkmEv(ptr noundef nonnull align 8 dereferenceable(88) %30)
          to label %485 unwind label %415

485:                                              ; preds = %481
  %486 = load ptr, ptr %39, align 8, !tbaa !5
  %487 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::RecipientEncryptedKey", ptr %486, i32 0, i32 1
  %488 = load ptr, ptr %487, align 8, !tbaa !23
  %489 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %490 unwind label %415

490:                                              ; preds = %485
  %491 = invoke noundef i32 @_ZN14CmStorageProxy14keyDhUnwrapKeyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_PK12ByteArray_stSA_SA_PPS8_(ptr noundef nonnull align 8 dereferenceable(168) %482, ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef %483, ptr noundef %484, ptr noundef %488, ptr noundef %489)
          to label %492 unwind label %415

492:                                              ; preds = %490
  store i32 %491, ptr %6, align 4, !tbaa !9
  %493 = load i32, ptr %6, align 4, !tbaa !9
  %494 = icmp ne i32 %493, 0
  br i1 %494, label %495, label %498

495:                                              ; preds = %492
  %496 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 491, i32 noundef %496)
          to label %497 unwind label %415

497:                                              ; preds = %495
  store i32 4, ptr %21, align 4
  br label %549

498:                                              ; preds = %492
  br label %499

499:                                              ; preds = %498
  br label %500

500:                                              ; preds = %499
  br label %501

501:                                              ; preds = %500
  %502 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser23getEncryptedContentInfoEv(ptr noundef nonnull align 8 dereferenceable(192) %9)
          to label %503 unwind label %415

503:                                              ; preds = %501
  %504 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %505 unwind label %415

505:                                              ; preds = %503
  %506 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %507 unwind label %415

507:                                              ; preds = %505
  %508 = invoke noundef i32 @_ZL15decrypt_contentRKN7UapkiNS5Pkcs720EncryptedContentInfoEPK12ByteArray_stPPS4_(ptr noundef nonnull align 8 dereferenceable(80) %502, ptr noundef %504, ptr noundef %506)
          to label %509 unwind label %415

509:                                              ; preds = %507
  store i32 %508, ptr %6, align 4, !tbaa !9
  %510 = load i32, ptr %6, align 4, !tbaa !9
  %511 = icmp ne i32 %510, 0
  br i1 %511, label %512, label %515

512:                                              ; preds = %509
  %513 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 494, i32 noundef %513)
          to label %514 unwind label %415

514:                                              ; preds = %512
  store i32 4, ptr %21, align 4
  br label %549

515:                                              ; preds = %509
  br label %516

516:                                              ; preds = %515
  br label %517

517:                                              ; preds = %516
  br label %518

518:                                              ; preds = %517
  %519 = load ptr, ptr %19, align 8, !tbaa !5
  %520 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %521 unwind label %415

521:                                              ; preds = %518
  %522 = invoke i32 @json_object_set_base64(ptr noundef %519, ptr noundef @.str.1, ptr noundef %520)
          to label %523 unwind label %415

523:                                              ; preds = %521
  store i32 %522, ptr %6, align 4, !tbaa !9
  %524 = load i32, ptr %6, align 4, !tbaa !9
  %525 = icmp ne i32 %524, 0
  br i1 %525, label %526, label %529

526:                                              ; preds = %523
  %527 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 495, i32 noundef %527)
          to label %528 unwind label %415

528:                                              ; preds = %526
  store i32 4, ptr %21, align 4
  br label %549

529:                                              ; preds = %523
  br label %530

530:                                              ; preds = %529
  br label %531

531:                                              ; preds = %530
  br label %532

532:                                              ; preds = %531, %477, %476
  br label %533

533:                                              ; preds = %532, %471
  br label %534

534:                                              ; preds = %533
  %535 = load ptr, ptr %5, align 8, !tbaa !5
  %536 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %537 unwind label %415

537:                                              ; preds = %534
  %538 = invoke i32 @json_object_set_hex(ptr noundef %535, ptr noundef @.str.9, ptr noundef %536)
          to label %539 unwind label %415

539:                                              ; preds = %537
  store i32 %538, ptr %6, align 4, !tbaa !9
  %540 = load i32, ptr %6, align 4, !tbaa !9
  %541 = icmp ne i32 %540, 0
  br i1 %541, label %542, label %545

542:                                              ; preds = %539
  %543 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 498, i32 noundef %543)
          to label %544 unwind label %415

544:                                              ; preds = %542
  store i32 4, ptr %21, align 4
  br label %549

545:                                              ; preds = %539
  br label %546

546:                                              ; preds = %545
  br label %547

547:                                              ; preds = %546
  br label %548

548:                                              ; preds = %547, %469, %462
  store i32 0, ptr %21, align 4
  br label %549

549:                                              ; preds = %548, %544, %528, %514, %497, %457, %442, %432, %406
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  %550 = load i32, ptr %21, align 4
  switch i32 %550, label %552 [
    i32 0, label %551
  ]

551:                                              ; preds = %549
  store i32 0, ptr %21, align 4
  br label %552

552:                                              ; preds = %551, %549
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  %553 = load i32, ptr %21, align 4
  switch i32 %553, label %559 [
    i32 0, label %554
  ]

554:                                              ; preds = %552
  br label %555

555:                                              ; preds = %554
  %556 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #6
  br label %385

557:                                              ; preds = %415, %411
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #6
  br label %558

558:                                              ; preds = %557, %407
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %566

559:                                              ; preds = %552, %387
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  %560 = load i32, ptr %21, align 4
  switch i32 %560, label %562 [
    i32 30, label %561
  ]

561:                                              ; preds = %559
  store i32 0, ptr %21, align 4
  br label %562

562:                                              ; preds = %561, %559
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %563

563:                                              ; preds = %562, %372, %358, %340, %316
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %30) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %30) #6
  %564 = load i32, ptr %21, align 4
  switch i32 %564, label %573 [
    i32 0, label %565
  ]

565:                                              ; preds = %563
  br label %569

566:                                              ; preds = %558, %388
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %567

567:                                              ; preds = %566, %325
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %30) #6
  br label %568

568:                                              ; preds = %567, %321
  call void @llvm.lifetime.end.p0(i64 88, ptr %30) #6
  br label %575

569:                                              ; preds = %565, %301
  br label %570

570:                                              ; preds = %569
  %571 = load i64, ptr %29, align 8, !tbaa !11
  %572 = add i64 %571, 1
  store i64 %572, ptr %29, align 8, !tbaa !11
  br label %293, !llvm.loop !24

573:                                              ; preds = %563, %297
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  %574 = load i32, ptr %21, align 4
  switch i32 %574, label %603 [
    i32 19, label %576
    i32 4, label %601
  ]

575:                                              ; preds = %568, %317
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %604

576:                                              ; preds = %573
  br label %577

577:                                              ; preds = %576
  %578 = load ptr, ptr %5, align 8, !tbaa !5
  %579 = invoke noundef i32 @_ZN13ExpectedCerts6toJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(26) %10, ptr noundef %578, ptr noundef @.str.10)
          to label %580 unwind label %86

580:                                              ; preds = %577
  store i32 %579, ptr %6, align 4, !tbaa !9
  %581 = load i32, ptr %6, align 4, !tbaa !9
  %582 = icmp ne i32 %581, 0
  br i1 %582, label %583, label %586

583:                                              ; preds = %580
  %584 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 504, i32 noundef %584)
          to label %585 unwind label %86

585:                                              ; preds = %583
  br label %601

586:                                              ; preds = %580
  br label %587

587:                                              ; preds = %586
  br label %588

588:                                              ; preds = %587
  %589 = load i8, ptr %22, align 1, !tbaa !13, !range !15, !noundef !16
  %590 = trunc i8 %589 to i1
  br i1 %590, label %600, label %591

591:                                              ; preds = %588
  %592 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %593 unwind label %86

593:                                              ; preds = %591
  br i1 %592, label %594, label %599

594:                                              ; preds = %593
  %595 = invoke noundef zeroext i1 @_ZNK13ExpectedCerts9isPresentEv(ptr noundef nonnull align 8 dereferenceable(26) %10)
          to label %596 unwind label %86

596:                                              ; preds = %594
  %597 = zext i1 %595 to i64
  %598 = select i1 %595, i32 4161, i32 4154
  store i32 %598, ptr %6, align 4, !tbaa !9
  br label %599

599:                                              ; preds = %596, %593
  br label %600

600:                                              ; preds = %599, %588
  br label %601

601:                                              ; preds = %600, %585, %573, %286, %206, %187, %179, %166, %156, %141, %117, %85
  %602 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %602, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %603

603:                                              ; preds = %601, %573, %286, %105, %100
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  br label %605

604:                                              ; preds = %575, %298, %86
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZNSt6vectorI16RecipientInfo_PRSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %607

605:                                              ; preds = %603, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZNSt6vectorI16RecipientInfo_PRSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN13ExpectedCertsD2Ev(ptr noundef nonnull align 8 dereferenceable(26) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParserD1Ev(ptr noundef nonnull align 8 dereferenceable(192) %9) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %606 = load i32, ptr %3, align 4
  ret i32 %606

607:                                              ; preds = %604, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br label %608

608:                                              ; preds = %607, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %609

609:                                              ; preds = %608, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %610

610:                                              ; preds = %609, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN13ExpectedCertsD2Ev(ptr noundef nonnull align 8 dereferenceable(26) %10) #6
  br label %611

611:                                              ; preds = %610, %52
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParserD1Ev(ptr noundef nonnull align 8 dereferenceable(192) %9) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %612

612:                                              ; preds = %611
  %613 = load ptr, ptr %11, align 8
  %614 = load i32, ptr %12, align 4
  %615 = insertvalue { ptr, i32 } poison, ptr %613, 0
  %616 = insertvalue { ptr, i32 } %615, i32 %614, 1
  resume { ptr, i32 } %616
}

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

declare noundef ptr @_ZN7UapkiNS12get_cerstoreEv() #2

declare void @_ZN7UapkiNS5Pkcs719EnvelopedDataParserC1Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

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

declare ptr @json_object_get_base64(ptr noundef, ptr noundef) #2

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

declare noundef ptr @_ZN11CmProviders13openedStorageEv() #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK14CmStorageProxy13keyIsSelectedEv(ptr noundef nonnull align 8 dereferenceable(168)) #3 align 2

declare noundef i32 @_ZN14CmStorageProxy10keyGetInfoEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) #2

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

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

declare noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser5parseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef) #2

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

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

declare ptr @json_value_init_object() #2

declare ptr @json_object_get_object(ptr noundef, ptr noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

declare ptr @json_value_init_array() #2

declare ptr @json_object_get_array(ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL25result_set_list_unprattrsP13json_object_tPKcRKSt6vectorIN7UapkiNS9AttributeESaIS5_EE(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorI16RecipientInfo_PRSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

declare void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoC1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2

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

declare noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser26parseKeyAgreeRecipientInfoEmRNS1_21KeyAgreeRecipientInfoE(ptr noundef nonnull align 8 dereferenceable(192), i64 noundef, ptr noundef nonnull align 8 dereferenceable(88)) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL19get_originator_spkiRN7UapkiNS4Cert8CerStoreERKNS_5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoER13ExpectedCertsPPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(26), ptr noundef, ptr noundef) #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL24parse_keyencryption_algoRKN7UapkiNS19AlgorithmIdentifierERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #0

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15get_recipekeyidRN7UapkiNS4Cert8CerStoreERKNS_5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierER13ExpectedCertsPP12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(26), ptr noundef, ptr noundef) #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL27result_recipientkey_to_jsonP13json_object_tRKN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierEPKNS1_4Cert7CerItemE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0

declare ptr @json_array_get_object(ptr noundef, i64 noundef) #2

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

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

declare noundef i32 @_ZN14CmStorageProxy14keyDhUnwrapKeyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_PK12ByteArray_stSA_SA_PPS8_(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15decrypt_contentRKN7UapkiNS5Pkcs720EncryptedContentInfoEPK12ByteArray_stPPS4_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef, ptr noundef) #0

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13ExpectedCerts6toJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(26), ptr noundef, ptr noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK13ExpectedCerts9isPresentEv(ptr noundef nonnull align 8 dereferenceable(26)) #3 align 2

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

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

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

attributes #0 = { 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 #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 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 = { 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, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !6, i64 8}
!18 = !{!"_ZTSN7UapkiNS4Cert8CerStore12AddedCerItemE", !10, i64 0, !6, i64 8, !14, i64 16}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS16RecipientInfo_PR", !7, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSN7UapkiNS5Pkcs721RecipientEncryptedKeyE", !6, i64 0, !6, i64 8}
!23 = !{!22, !6, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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

%"class.UapkiNS::Pkcs7::EnvelopedDataParser" = type { ptr, i32, %"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo", %"class.std::vector.0", %"struct.UapkiNS::Pkcs7::EncryptedContentInfo", %"class.std::vector.8" }
%"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo" = type { %"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 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<RecipientInfo_PR, std::allocator<RecipientInfo_PR>>::_Vector_impl" }
%"struct.std::_Vector_base<RecipientInfo_PR, std::allocator<RecipientInfo_PR>>::_Vector_impl" = type { %"struct.std::_Vector_base<RecipientInfo_PR, std::allocator<RecipientInfo_PR>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RecipientInfo_PR, std::allocator<RecipientInfo_PR>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Pkcs7::EncryptedContentInfo" = type { %"class.std::__cxx11::basic_string", %"struct.UapkiNS::AlgorithmIdentifier", 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] }
%"struct.UapkiNS::AlgorithmIdentifier" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.ExpectedCerts = type <{ %"class.std::vector.13", i8, i8, [6 x i8] }>
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.UapkiNS::Pkcs7::EnvelopedDataParser::KeyAgreeRecipientInfo" = type { i32, i32, ptr, ptr, %"struct.UapkiNS::AlgorithmIdentifier", %"class.std::vector.38" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<UapkiNS::Pkcs7::RecipientEncryptedKey, std::allocator<UapkiNS::Pkcs7::RecipientEncryptedKey>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Pkcs7::RecipientEncryptedKey, std::allocator<UapkiNS::Pkcs7::RecipientEncryptedKey>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Pkcs7::RecipientEncryptedKey, std::allocator<UapkiNS::Pkcs7::RecipientEncryptedKey>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Pkcs7::RecipientEncryptedKey, std::allocator<UapkiNS::Pkcs7::RecipientEncryptedKey>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.43" = type { ptr }
%"class.UapkiNS::Pkcs7::EnvelopedDataParser::KeyAgreeRecipientIdentifier" = type { ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local i32 @uapki_decrypt(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.UapkiNS::Pkcs7::EnvelopedDataParser", align 8
  %4 = alloca %class.ExpectedCerts, align 8
  %5 = alloca %"class.UapkiNS::SmartBA", align 8
  %6 = alloca %"class.UapkiNS::SmartBA", align 8
  %7 = alloca %"class.UapkiNS::SmartBA", align 8
  %8 = alloca %"class.UapkiNS::SmartBA", align 8
  %9 = alloca %"class.std::vector.0", align 8
  %10 = alloca %"class.std::vector.18", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.UapkiNS::Pkcs7::EnvelopedDataParser::KeyAgreeRecipientInfo", align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %20 = alloca %"class.UapkiNS::Pkcs7::EnvelopedDataParser::KeyAgreeRecipientIdentifier", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.UapkiNS::SmartBA", align 8
  %23 = tail call noundef ptr @_ZN7UapkiNS12get_cerstoreEv()
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %3) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParserC1Ev(ptr noundef nonnull align 8 dereferenceable(192) %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN13ExpectedCertsC2Ev(ptr noundef nonnull align 8 dereferenceable(26) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorI16RecipientInfo_PRSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %.not = icmp eq ptr %23, null
  br i1 %.not, label %.loopexit, label %24

24:                                               ; preds = %2
  %25 = invoke noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %0, ptr noundef nonnull @.str, i1 noundef zeroext false)
          to label %26 unwind label %31

26:                                               ; preds = %24
  %27 = invoke ptr @json_object_get_base64(ptr noundef %0, ptr noundef nonnull @.str.1)
          to label %28 unwind label %31

28:                                               ; preds = %26
  %29 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %27)
  br i1 %29, label %33, label %30

30:                                               ; preds = %28
  invoke void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 383, i32 noundef 4101, ptr noundef null)
          to label %.loopexit unwind label %31

31:                                               ; preds = %240, %238, %._crit_edge239, %._crit_edge, %85, %81, %76, %73, %71, %66, %64, %61, %59, %58, %54, %53, %49, %44, %43, %39, %34, %30, %26, %24
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %246

33:                                               ; preds = %28
  br i1 %25, label %44, label %34

34:                                               ; preds = %33
  %35 = invoke noundef ptr @_ZN11CmProviders13openedStorageEv()
          to label %36 unwind label %31

36:                                               ; preds = %34
  %.not159 = icmp eq ptr %35, null
  br i1 %.not159, label %.loopexit, label %37

37:                                               ; preds = %36
  %38 = call noundef zeroext i1 @_ZNK14CmStorageProxy13keyIsSelectedEv(ptr noundef nonnull align 8 dereferenceable(168) %35)
  br i1 %38, label %39, label %.loopexit

39:                                               ; preds = %37
  %40 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %41 = invoke noundef i32 @_ZN14CmStorageProxy10keyGetInfoEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168) %35, ptr noundef %40)
          to label %42 unwind label %31

42:                                               ; preds = %39
  %.not160 = icmp eq i32 %41, 0
  br i1 %.not160, label %54, label %43

43:                                               ; preds = %42
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 390, i32 noundef %41)
          to label %.loopexit unwind label %31

44:                                               ; preds = %33
  %45 = invoke noundef ptr @_ZN11CmProviders13openedStorageEv()
          to label %46 unwind label %31

46:                                               ; preds = %44
  %.not161 = icmp eq ptr %45, null
  br i1 %.not161, label %54, label %47

47:                                               ; preds = %46
  %48 = call noundef zeroext i1 @_ZNK14CmStorageProxy13keyIsSelectedEv(ptr noundef nonnull align 8 dereferenceable(168) %45)
  br i1 %48, label %49, label %54

49:                                               ; preds = %47
  %50 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %51 = invoke noundef i32 @_ZN14CmStorageProxy10keyGetInfoEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168) %45, ptr noundef %50)
          to label %52 unwind label %31

52:                                               ; preds = %49
  %.not162 = icmp eq i32 %51, 0
  br i1 %.not162, label %54, label %53

53:                                               ; preds = %52
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 395, i32 noundef %51)
          to label %.loopexit unwind label %31

54:                                               ; preds = %42, %52, %47, %46
  %.0103 = phi ptr [ %45, %52 ], [ %45, %47 ], [ null, %46 ], [ %35, %42 ]
  %55 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %56 = invoke noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser5parseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(192) %3, ptr noundef %55)
          to label %57 unwind label %31

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

58:                                               ; preds = %57
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 399, i32 noundef %56)
          to label %.loopexit unwind label %31

59:                                               ; preds = %57
  %60 = invoke ptr @json_value_init_object()
          to label %61 unwind label %31

61:                                               ; preds = %59
  %62 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.3, ptr noundef %60)
          to label %63 unwind label %31

63:                                               ; preds = %61
  %.not164 = icmp eq i32 %62, 0
  br i1 %.not164, label %64, label %.loopexit

64:                                               ; preds = %63
  %65 = invoke ptr @json_object_get_object(ptr noundef %1, ptr noundef nonnull @.str.3)
          to label %66 unwind label %31

66:                                               ; preds = %64
  %67 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser23getEncryptedContentInfoEv(ptr noundef nonnull align 8 dereferenceable(192) %3)
  %68 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  %69 = invoke i32 @json_object_set_string(ptr noundef %65, ptr noundef nonnull @.str.4, ptr noundef %68)
          to label %70 unwind label %31

70:                                               ; preds = %66
  %.not165 = icmp eq i32 %69, 0
  br i1 %.not165, label %71, label %.loopexit

71:                                               ; preds = %70
  %72 = invoke ptr @json_value_init_array()
          to label %73 unwind label %31

73:                                               ; preds = %71
  %74 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.5, ptr noundef %72)
          to label %75 unwind label %31

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

76:                                               ; preds = %75
  %77 = invoke ptr @json_object_get_array(ptr noundef %1, ptr noundef nonnull @.str.5)
          to label %78 unwind label %31

78:                                               ; preds = %76
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser19getUnprotectedAttrsEv(ptr noundef nonnull align 8 dereferenceable(192) %3)
  %80 = call noundef zeroext i1 @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #6
  br i1 %80, label %86, label %81

81:                                               ; preds = %78
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser19getUnprotectedAttrsEv(ptr noundef nonnull align 8 dereferenceable(192) %3)
  %83 = invoke noundef i32 @_ZL25result_set_list_unprattrsP13json_object_tPKcRKSt6vectorIN7UapkiNS9AttributeESaIS5_EE(ptr noundef %1, ptr noundef nonnull @.str.6, ptr noundef nonnull align 8 dereferenceable(24) %82)
          to label %84 unwind label %31

84:                                               ; preds = %81
  %.not167 = icmp eq i32 %83, 0
  br i1 %.not167, label %86, label %85

85:                                               ; preds = %84
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 408, i32 noundef %83)
          to label %.loopexit unwind label %31

86:                                               ; preds = %84, %78
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7UapkiNS5Pkcs719EnvelopedDataParser18getOriginatorCertsEv(ptr noundef nonnull align 8 dereferenceable(192) %3)
  %88 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore8addCertsEbbRKNS_8VectorBAERSt6vectorINS1_12AddedCerItemESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(96) %23, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %89 unwind label %91

89:                                               ; preds = %86
  %.not168 = icmp eq i32 %88, 0
  br i1 %.not168, label %93, label %90

90:                                               ; preds = %89
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 420, i32 noundef %88)
          to label %.thread207 unwind label %91

91:                                               ; preds = %98, %95, %93, %90, %86
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %120

93:                                               ; preds = %89
  %94 = invoke ptr @json_value_init_array()
          to label %95 unwind label %91

95:                                               ; preds = %93
  %96 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.7, ptr noundef %94)
          to label %97 unwind label %91

97:                                               ; preds = %95
  %.not169 = icmp eq i32 %96, 0
  br i1 %.not169, label %98, label %.thread207

98:                                               ; preds = %97
  %99 = invoke ptr @json_object_get_array(ptr noundef %1, ptr noundef nonnull @.str.7)
          to label %100 unwind label %91

100:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %101 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %101, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %102 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %102, ptr %12, align 8
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %103, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %100, %113
  %104 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %105 = getelementptr inbounds i8, ptr %104, i64 8
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %.not170 = icmp eq ptr %106, null
  br i1 %.not170, label %113, label %107

107:                                              ; preds = %.lr.ph
  %108 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %106)
  %109 = invoke i32 @json_array_append_base64(ptr noundef %99, ptr noundef %108)
          to label %110 unwind label %.loopexit224

110:                                              ; preds = %107
  %.not171 = icmp eq i32 %109, 0
  br i1 %.not171, label %113, label %111

111:                                              ; preds = %110
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 426, i32 noundef %109)
          to label %116 unwind label %.loopexit.split-lp

.loopexit224:                                     ; preds = %107
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %112

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

112:                                              ; preds = %.loopexit.split-lp, %.loopexit224
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit224 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %120

113:                                              ; preds = %110, %.lr.ph
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %115 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %115, label %.lr.ph, label %._crit_edge

116:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %.thread207

.thread207:                                       ; preds = %90, %97, %116
  %.4.ph = phi i32 [ %109, %116 ], [ 4113, %97 ], [ %88, %90 ]
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %.loopexit

._crit_edge:                                      ; preds = %113, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  %117 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser21getRecipientInfoTypesEv(ptr noundef nonnull align 8 dereferenceable(192) %3)
  %118 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI16RecipientInfo_PRSaIS0_EEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %117)
          to label %.preheader unwind label %31

.preheader:                                       ; preds = %._crit_edge
  %119 = call noundef i64 @_ZNKSt6vectorI16RecipientInfo_PRSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %.not240 = icmp eq i64 %119, 0
  br i1 %.not240, label %._crit_edge239, label %.lr.ph238

120:                                              ; preds = %112, %91
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %lpad.phi, %112 ]
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %246

.lr.ph238:                                        ; preds = %.preheader, %232
  %.0104237 = phi i64 [ %233, %232 ], [ 0, %.preheader ]
  %.0122236 = phi i64 [ %.5127, %232 ], [ 0, %.preheader ]
  %121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser21getRecipientInfoTypesEv(ptr noundef nonnull align 8 dereferenceable(192) %3)
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorI16RecipientInfo_PRSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %.0104237) #6
  %123 = load i32, ptr %122, align 4, !tbaa !12
  %124 = icmp eq i32 %123, 2
  br i1 %124, label %125, label %232

125:                                              ; preds = %.lr.ph238
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %13) #6
  invoke void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %13)
          to label %126 unwind label %130

126:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store ptr null, ptr %14, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  store ptr null, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  %127 = invoke noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser26parseKeyAgreeRecipientInfoEmRNS1_21KeyAgreeRecipientInfoE(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef %.0104237, ptr noundef nonnull align 8 dereferenceable(88) %13)
          to label %128 unwind label %132

128:                                              ; preds = %126
  %.not173 = icmp eq i32 %127, 0
  br i1 %.not173, label %134, label %129

129:                                              ; preds = %128
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 439, i32 noundef %127)
          to label %229 unwind label %132

130:                                              ; preds = %125
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %231

132:                                              ; preds = %149, %145, %144, %140, %137, %134, %129, %126
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %230

134:                                              ; preds = %128
  %135 = invoke noundef i32 @_ZL19get_originator_spkiRN7UapkiNS4Cert8CerStoreERKNS_5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoER13ExpectedCertsPPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %23, ptr noundef nonnull align 8 dereferenceable(88) %13, ptr noundef nonnull align 8 dereferenceable(26) %4, ptr noundef nonnull %15, ptr noundef nonnull %14)
          to label %136 unwind label %132

136:                                              ; preds = %134
  %.not174 = icmp eq i32 %135, 0
  br i1 %.not174, label %138, label %137

137:                                              ; preds = %136
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 447, i32 noundef %135)
          to label %229 unwind label %132

138:                                              ; preds = %136
  %139 = load ptr, ptr %14, align 8, !tbaa !14
  %.not175 = icmp eq ptr %139, null
  br i1 %.not175, label %145, label %140

140:                                              ; preds = %138
  %141 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %139)
  %142 = invoke i32 @json_object_set_base64(ptr noundef %1, ptr noundef nonnull @.str.8, ptr noundef %141)
          to label %143 unwind label %132

143:                                              ; preds = %140
  %.not176 = icmp eq i32 %142, 0
  br i1 %.not176, label %145, label %144

144:                                              ; preds = %143
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 449, i32 noundef %142)
          to label %229 unwind label %132

145:                                              ; preds = %138, %143
  %146 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfo25getKeyEncryptionAlgorithmEv(ptr noundef nonnull align 8 dereferenceable(88) %13)
  %147 = invoke noundef i32 @_ZL24parse_keyencryption_algoRKN7UapkiNS19AlgorithmIdentifierERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_(ptr noundef nonnull align 8 dereferenceable(40) %146, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %148 unwind label %132

148:                                              ; preds = %145
  %.not177 = icmp eq i32 %147, 0
  br i1 %.not177, label %150, label %149

149:                                              ; preds = %148
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 452, i32 noundef %147)
          to label %229 unwind label %132

150:                                              ; preds = %148
  %151 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfo25getRecipientEncryptedKeysEv(ptr noundef nonnull align 8 dereferenceable(88) %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %152 = call ptr @_ZNKSt6vectorIN7UapkiNS5Pkcs721RecipientEncryptedKeyESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #6
  store ptr %152, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %153 = call ptr @_ZNKSt6vectorIN7UapkiNS5Pkcs721RecipientEncryptedKeyESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #6
  store ptr %153, ptr %19, align 8
  %154 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br i1 %154, label %.lr.ph233, label %._crit_edge234

.lr.ph233:                                        ; preds = %150, %224
  %.1123231 = phi i64 [ %.2124, %224 ], [ %.0122236, %150 ]
  %155 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  invoke void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %156 unwind label %161

156:                                              ; preds = %.lr.ph233
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  store ptr null, ptr %21, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %157 = load ptr, ptr %155, align 8, !tbaa !15
  %158 = invoke noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifier5parseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %157)
          to label %159 unwind label %163

159:                                              ; preds = %156
  %.not178 = icmp eq i32 %158, 0
  br i1 %.not178, label %165, label %160

160:                                              ; preds = %159
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 461, i32 noundef %158)
          to label %223 unwind label %163

161:                                              ; preds = %.lr.ph233
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %227

163:                                              ; preds = %222, %218, %217, %213, %212, %206, %205, %198, %193, %186, %183, %182, %178, %175, %172, %170, %169, %165, %160, %156
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br label %227

165:                                              ; preds = %159
  %166 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %167 = invoke noundef i32 @_ZL15get_recipekeyidRN7UapkiNS4Cert8CerStoreERKNS_5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierER13ExpectedCertsPP12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %23, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(26) %4, ptr noundef %166, ptr noundef nonnull %21)
          to label %168 unwind label %163

168:                                              ; preds = %165
  %.not179 = icmp eq i32 %167, 0
  br i1 %.not179, label %170, label %169

169:                                              ; preds = %168
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 469, i32 noundef %167)
          to label %223 unwind label %163

170:                                              ; preds = %168
  %171 = invoke ptr @json_value_init_object()
          to label %172 unwind label %163

172:                                              ; preds = %170
  %173 = invoke i32 @json_array_append_value(ptr noundef %77, ptr noundef %171)
          to label %174 unwind label %163

174:                                              ; preds = %172
  %.not180 = icmp eq i32 %173, 0
  br i1 %.not180, label %175, label %223

175:                                              ; preds = %174
  %176 = add i64 %.1123231, 1
  %177 = invoke ptr @json_array_get_object(ptr noundef %77, i64 noundef %.1123231)
          to label %178 unwind label %163

178:                                              ; preds = %175
  %179 = load ptr, ptr %21, align 8, !tbaa !14
  %180 = invoke noundef i32 @_ZL27result_recipientkey_to_jsonP13json_object_tRKN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierEPKNS1_4Cert7CerItemE(ptr noundef %177, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %179)
          to label %181 unwind label %163

181:                                              ; preds = %178
  %.not181 = icmp eq i32 %180, 0
  br i1 %.not181, label %183, label %182

182:                                              ; preds = %181
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 476, i32 noundef %180)
          to label %223 unwind label %163

183:                                              ; preds = %181
  %184 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %185 unwind label %163

185:                                              ; preds = %183
  br i1 %184, label %223, label %186

186:                                              ; preds = %185
  %187 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %188 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %189 = invoke i32 @ba_cmp(ptr noundef %187, ptr noundef %188)
          to label %190 unwind label %163

190:                                              ; preds = %186
  %191 = icmp eq i32 %189, 0
  br i1 %191, label %192, label %223

192:                                              ; preds = %190
  br i1 %25, label %218, label %193

193:                                              ; preds = %192
  %194 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %195 unwind label %163

195:                                              ; preds = %193
  %196 = load ptr, ptr %15, align 8
  %197 = icmp ne ptr %196, null
  %or.cond = select i1 %194, i1 %197, i1 false
  br i1 %or.cond, label %198, label %218

198:                                              ; preds = %195
  %199 = call noundef ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfo6getUkmEv(ptr noundef nonnull align 8 dereferenceable(88) %13)
  %200 = getelementptr inbounds i8, ptr %155, i64 8
  %201 = load ptr, ptr %200, align 8, !tbaa !17
  %202 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %203 = invoke noundef i32 @_ZN14CmStorageProxy14keyDhUnwrapKeyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_PK12ByteArray_stSA_SA_PPS8_(ptr noundef nonnull align 8 dereferenceable(168) %.0103, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull %196, ptr noundef %199, ptr noundef %201, ptr noundef %202)
          to label %204 unwind label %163

204:                                              ; preds = %198
  %.not182 = icmp eq i32 %203, 0
  br i1 %.not182, label %206, label %205

205:                                              ; preds = %204
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 491, i32 noundef %203)
          to label %223 unwind label %163

206:                                              ; preds = %204
  %207 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK7UapkiNS5Pkcs719EnvelopedDataParser23getEncryptedContentInfoEv(ptr noundef nonnull align 8 dereferenceable(192) %3)
  %208 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %209 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %210 = invoke noundef i32 @_ZL15decrypt_contentRKN7UapkiNS5Pkcs720EncryptedContentInfoEPK12ByteArray_stPPS4_(ptr noundef nonnull align 8 dereferenceable(80) %207, ptr noundef %208, ptr noundef %209)
          to label %211 unwind label %163

211:                                              ; preds = %206
  %.not183 = icmp eq i32 %210, 0
  br i1 %.not183, label %213, label %212

212:                                              ; preds = %211
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 494, i32 noundef %210)
          to label %223 unwind label %163

213:                                              ; preds = %211
  %214 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %215 = invoke i32 @json_object_set_base64(ptr noundef %65, ptr noundef nonnull @.str.1, ptr noundef %214)
          to label %216 unwind label %163

216:                                              ; preds = %213
  %.not184 = icmp eq i32 %215, 0
  br i1 %.not184, label %218, label %217

217:                                              ; preds = %216
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 495, i32 noundef %215)
          to label %223 unwind label %163

218:                                              ; preds = %192, %216, %195
  %219 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %220 = invoke i32 @json_object_set_hex(ptr noundef %1, ptr noundef nonnull @.str.9, ptr noundef %219)
          to label %221 unwind label %163

221:                                              ; preds = %218
  %.not185 = icmp eq i32 %220, 0
  br i1 %.not185, label %223, label %222

222:                                              ; preds = %221
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 498, i32 noundef %220)
          to label %223 unwind label %163

223:                                              ; preds = %185, %190, %221, %222, %217, %212, %205, %182, %174, %169, %160
  %.2124 = phi i64 [ %.1123231, %160 ], [ %.1123231, %169 ], [ %.1123231, %174 ], [ %176, %182 ], [ %176, %205 ], [ %176, %212 ], [ %176, %217 ], [ %176, %222 ], [ %176, %221 ], [ %176, %190 ], [ %176, %185 ]
  %cond3 = phi i1 [ false, %160 ], [ false, %169 ], [ false, %174 ], [ false, %182 ], [ false, %205 ], [ false, %212 ], [ false, %217 ], [ false, %222 ], [ true, %221 ], [ true, %190 ], [ true, %185 ]
  %.3118 = phi i32 [ 4, %160 ], [ 4, %169 ], [ 4, %174 ], [ 4, %182 ], [ 4, %205 ], [ 4, %212 ], [ 4, %217 ], [ 4, %222 ], [ 0, %221 ], [ 0, %190 ], [ 0, %185 ]
  %.8 = phi i32 [ %158, %160 ], [ %167, %169 ], [ 4113, %174 ], [ %180, %182 ], [ %203, %205 ], [ %210, %212 ], [ %215, %217 ], [ %220, %222 ], [ 0, %221 ], [ 0, %190 ], [ 0, %185 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br i1 %cond3, label %224, label %228

224:                                              ; preds = %223
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  %226 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br i1 %226, label %.lr.ph233, label %._crit_edge234

227:                                              ; preds = %163, %161
  %.pn186 = phi { ptr, i32 } [ %164, %163 ], [ %162, %161 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %230

228:                                              ; preds = %223
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %229

._crit_edge234:                                   ; preds = %224, %150
  %.1123.lcssa = phi i64 [ %.0122236, %150 ], [ %.2124, %224 ]
  %.6.lcssa = phi i32 [ 0, %150 ], [ %.8, %224 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %229

229:                                              ; preds = %._crit_edge234, %228, %149, %144, %137, %129
  %.4126 = phi i64 [ %.0122236, %129 ], [ %.0122236, %137 ], [ %.0122236, %144 ], [ %.0122236, %149 ], [ %.1123.lcssa, %._crit_edge234 ], [ %.2124, %228 ]
  %.5120 = phi i32 [ 4, %129 ], [ 4, %137 ], [ 4, %144 ], [ 4, %149 ], [ 0, %._crit_edge234 ], [ %.3118, %228 ]
  %.10 = phi i32 [ %127, %129 ], [ %135, %137 ], [ %142, %144 ], [ %147, %149 ], [ %.6.lcssa, %._crit_edge234 ], [ %.8, %228 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %13) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %13) #6
  %cond2 = icmp eq i32 %.5120, 0
  br i1 %cond2, label %232, label %.loopexit

230:                                              ; preds = %227, %132
  %.pn188 = phi { ptr, i32 } [ %133, %132 ], [ %.pn186, %227 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %13) #6
  br label %231

231:                                              ; preds = %230, %130
  %.pn188.pn = phi { ptr, i32 } [ %.pn188, %230 ], [ %131, %130 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %13) #6
  br label %246

232:                                              ; preds = %.lr.ph238, %229
  %.5127 = phi i64 [ %.4126, %229 ], [ %.0122236, %.lr.ph238 ]
  %233 = add nuw i64 %.0104237, 1
  %234 = call noundef i64 @_ZNKSt6vectorI16RecipientInfo_PRSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %235 = icmp ult i64 %233, %234
  br i1 %235, label %.lr.ph238, label %._crit_edge239, !llvm.loop !18

._crit_edge239:                                   ; preds = %232, %.preheader
  %236 = invoke noundef i32 @_ZN13ExpectedCerts6toJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(26) %4, ptr noundef %1, ptr noundef nonnull @.str.10)
          to label %237 unwind label %31

237:                                              ; preds = %._crit_edge239
  %.not191 = icmp eq i32 %236, 0
  br i1 %.not191, label %239, label %238

238:                                              ; preds = %237
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 504, i32 noundef %236)
          to label %.loopexit unwind label %31

239:                                              ; preds = %237
  br i1 %25, label %.loopexit, label %240

240:                                              ; preds = %239
  %241 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %242 unwind label %31

242:                                              ; preds = %240
  br i1 %241, label %243, label %.loopexit

243:                                              ; preds = %242
  %244 = call noundef zeroext i1 @_ZNK13ExpectedCerts9isPresentEv(ptr noundef nonnull align 8 dereferenceable(26) %4)
  %245 = select i1 %244, i32 4161, i32 4154
  br label %.loopexit

246:                                              ; preds = %231, %120, %31
  %.pn192 = phi { ptr, i32 } [ %32, %31 ], [ %.pn188.pn, %231 ], [ %.pn, %120 ]
  call void @_ZNSt6vectorI16RecipientInfo_PRSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN13ExpectedCertsD2Ev(ptr noundef nonnull align 8 dereferenceable(26) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParserD1Ev(ptr noundef nonnull align 8 dereferenceable(192) %3) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn192

.loopexit:                                        ; preds = %229, %.thread207, %36, %37, %75, %70, %63, %239, %243, %242, %238, %85, %58, %53, %43, %30, %2
  %.1 = phi i32 [ 4097, %2 ], [ 4121, %36 ], [ 4108, %37 ], [ %51, %53 ], [ %56, %58 ], [ %236, %238 ], [ 0, %239 ], [ %245, %243 ], [ 0, %242 ], [ %83, %85 ], [ %41, %43 ], [ 4101, %30 ], [ 4113, %63 ], [ 4113, %70 ], [ 4113, %75 ], [ %.4.ph, %.thread207 ], [ %.10, %229 ]
  call void @_ZNSt6vectorI16RecipientInfo_PRSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN13ExpectedCertsD2Ev(ptr noundef nonnull align 8 dereferenceable(26) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN7UapkiNS5Pkcs719EnvelopedDataParserD1Ev(ptr noundef nonnull align 8 dereferenceable(192) %3) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %3) #6
  ret i32 %.1
}

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

declare noundef ptr @_ZN7UapkiNS12get_cerstoreEv() local_unnamed_addr #2

declare void @_ZN7UapkiNS5Pkcs719EnvelopedDataParserC1Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #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 #3 align 2

declare ptr @json_object_get_base64(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare noundef ptr @_ZN11CmProviders13openedStorageEv() local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK14CmStorageProxy13keyIsSelectedEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #3 align 2

declare noundef i32 @_ZN14CmStorageProxy10keyGetInfoEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) local_unnamed_addr #2

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

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

declare noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser5parseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(192), ptr 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 #3 align 2

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

declare ptr @json_value_init_object() local_unnamed_addr #2

declare ptr @json_object_get_object(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

declare ptr @json_value_init_array() local_unnamed_addr #2

declare ptr @json_object_get_array(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIN7UapkiNS9AttributeESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL25result_set_list_unprattrsP13json_object_tPKcRKSt6vectorIN7UapkiNS9AttributeESaIS5_EE(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorI16RecipientInfo_PRSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

declare void @_ZN7UapkiNS5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoC1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2

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

declare noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser26parseKeyAgreeRecipientInfoEmRNS1_21KeyAgreeRecipientInfoE(ptr noundef nonnull align 8 dereferenceable(192), i64 noundef, ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL19get_originator_spkiRN7UapkiNS4Cert8CerStoreERKNS_5Pkcs719EnvelopedDataParser21KeyAgreeRecipientInfoER13ExpectedCertsPPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(26), ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL24parse_keyencryption_algoRKN7UapkiNS19AlgorithmIdentifierERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7UapkiNS5Pkcs721RecipientEncryptedKeyESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15get_recipekeyidRN7UapkiNS4Cert8CerStoreERKNS_5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierER13ExpectedCertsPP12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(26), ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL27result_recipientkey_to_jsonP13json_object_tRKN7UapkiNS5Pkcs719EnvelopedDataParser27KeyAgreeRecipientIdentifierEPKNS1_4Cert7CerItemE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0

declare ptr @json_array_get_object(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15decrypt_contentRKN7UapkiNS5Pkcs720EncryptedContentInfoEPK12ByteArray_stPPS4_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13ExpectedCerts6toJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(26), ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK13ExpectedCerts9isPresentEv(ptr noundef nonnull align 8 dereferenceable(26)) local_unnamed_addr #3 align 2

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

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

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

attributes #0 = { 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 #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 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 = { 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, !10, i64 8}
!6 = !{!"_ZTSN7UapkiNS4Cert8CerStore12AddedCerItemE", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTS16RecipientInfo_PR", !8, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTSN7UapkiNS5Pkcs721RecipientEncryptedKeyE", !10, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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