; LLVM IR from specinfo-ua/UAPKI :: library/uapki/src (cert-validator)

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.std::lock_guard" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.67" = type { ptr }
%"struct.UapkiNS::Cert::CerItem::Uris" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

declare void @_ZN7UapkiNS4Util11joinStringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEc(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(24), i8 noundef signext) #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS13CertValidator6getCrlERNS_3Crl8CrlStoreEPKNS_4Cert7CerItemES7_mPPK12ByteArray_stPPNS1_7CrlItemEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca %"class.UapkiNS::SmartBA", align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::lock_guard", align 8
  %28 = alloca %"class.std::vector", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.67", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.67", align 8
  %32 = alloca ptr, align 8
  %33 = alloca i8, align 1
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i64 %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = icmp eq ptr %35, null
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %18, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK7UapkiNS4Cert7CerItem7getUrisEv(ptr noundef nonnull align 8 dereferenceable(401) %38)
  store ptr %39, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %40 unwind label %63

40:                                               ; preds = %7
  %41 = load i8, ptr %18, align 1, !tbaa !13, !range !15, !noundef !16
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %46

43:                                               ; preds = %40
  %44 = load ptr, ptr %20, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.UapkiNS::Cert::CerItem::Uris", ptr %44, i32 0, i32 0
  br label %49

46:                                               ; preds = %40
  %47 = load ptr, ptr %20, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.UapkiNS::Cert::CerItem::Uris", ptr %47, i32 0, i32 1
  br label %49

49:                                               ; preds = %46, %43
  %50 = phi ptr [ %45, %43 ], [ %48, %46 ]
  %51 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %50)
          to label %52 unwind label %67

52:                                               ; preds = %49
  %53 = load ptr, ptr %15, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %84

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #5
  invoke void @_ZN7UapkiNS4Util11joinStringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEc(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %21, i8 noundef signext 59)
          to label %56 unwind label %71

56:                                               ; preds = %55
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  %58 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  %59 = invoke i32 @json_object_set_string(ptr noundef %57, ptr noundef @.str.32, ptr noundef %58)
          to label %60 unwind label %75

60:                                               ; preds = %56
  %61 = icmp ne i32 %59, 0
  br i1 %61, label %62, label %79

62:                                               ; preds = %60
  store i32 4113, ptr %16, align 4, !tbaa !11
  store i32 2, ptr %26, align 4
  br label %80

63:                                               ; preds = %7
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %23, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %24, align 4
  br label %341

67:                                               ; preds = %323, %321, %317, %312, %307, %303, %295, %289, %284, %279, %274, %264, %258, %96, %92, %87, %49
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %23, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %24, align 4
  br label %340

71:                                               ; preds = %55
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %23, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %24, align 4
  br label %83

75:                                               ; preds = %56
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %23, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %24, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  br label %83

79:                                               ; preds = %60
  store i32 0, ptr %26, align 4
  br label %80

80:                                               ; preds = %79, %62
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #5
  %81 = load i32, ptr %26, align 4
  switch i32 %81, label %338 [
    i32 0, label %82
    i32 2, label %336
  ]

82:                                               ; preds = %80
  br label %84

83:                                               ; preds = %75, %71
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #5
  br label %340

84:                                               ; preds = %82, %52
  %85 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  br i1 %85, label %86, label %92

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %86
  store i32 4177, ptr %16, align 4, !tbaa !11
  %88 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 931, i32 noundef %88, ptr noundef null)
          to label %89 unwind label %67

89:                                               ; preds = %87
  br label %336

90:                                               ; No predecessors!
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91, %84
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem17getAuthorityKeyIdEv(ptr noundef nonnull align 8 dereferenceable(401) %94)
          to label %96 unwind label %67

96:                                               ; preds = %92
  %97 = load i8, ptr %18, align 1, !tbaa !13, !range !15, !noundef !16
  %98 = trunc i8 %97 to i1
  %99 = zext i1 %98 to i64
  %100 = select i1 %98, i32 1, i32 2
  %101 = load ptr, ptr %20, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.UapkiNS::Cert::CerItem::Uris", ptr %101, i32 0, i32 1
  %103 = invoke noundef ptr @_ZN7UapkiNS3Crl8CrlStore6getCrlEPK12ByteArray_stNS0_4TypeERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISC_EE(ptr noundef nonnull align 8 dereferenceable(144) %93, ptr noundef %95, i32 noundef %100, ptr noundef nonnull align 8 dereferenceable(24) %102)
          to label %104 unwind label %67

104:                                              ; preds = %96
  store ptr %103, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %111

107:                                              ; preds = %104
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN7UapkiNS3Crl7CrlItem8getMutexEv(ptr noundef nonnull align 8 dereferenceable(268) %108)
          to label %110 unwind label %127

110:                                              ; preds = %107
  br label %115

111:                                              ; preds = %104
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN7UapkiNS3Crl8CrlStore24getMutexFirstDownloadingEv(ptr noundef nonnull align 8 dereferenceable(144) %112)
          to label %114 unwind label %127

114:                                              ; preds = %111
  br label %115

115:                                              ; preds = %114, %110
  %116 = phi ptr [ %109, %110 ], [ %113, %114 ]
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(40) %116)
          to label %117 unwind label %127

117:                                              ; preds = %115
  %118 = load ptr, ptr %19, align 8, !tbaa !5
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %136

120:                                              ; preds = %117
  %121 = load ptr, ptr %19, align 8, !tbaa !5
  %122 = invoke noundef i64 @_ZNK7UapkiNS3Crl7CrlItem13getNextUpdateEv(ptr noundef nonnull align 8 dereferenceable(268) %121)
          to label %123 unwind label %131

123:                                              ; preds = %120
  %124 = load i64, ptr %12, align 8, !tbaa !9
  %125 = icmp ult i64 %122, %124
  br i1 %125, label %126, label %135

126:                                              ; preds = %123
  store i32 4180, ptr %17, align 4, !tbaa !11
  store ptr null, ptr %19, align 8, !tbaa !5
  br label %135

127:                                              ; preds = %115, %111, %107
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %23, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %24, align 4
  br label %268

131:                                              ; preds = %153, %144, %140, %120
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %23, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %24, align 4
  br label %267

135:                                              ; preds = %126, %123
  br label %137

136:                                              ; preds = %117
  store i32 4179, ptr %17, align 4, !tbaa !11
  br label %137

137:                                              ; preds = %136, %135
  %138 = load ptr, ptr %19, align 8, !tbaa !5
  %139 = icmp ne ptr %138, null
  br i1 %139, label %255, label %140

140:                                              ; preds = %137
  %141 = invoke noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv()
          to label %142 unwind label %131

142:                                              ; preds = %140
  br i1 %141, label %143, label %150

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %17, align 4, !tbaa !11
  store i32 %145, ptr %16, align 4, !tbaa !11
  %146 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 959, i32 noundef %146, ptr noundef null)
          to label %147 unwind label %131

147:                                              ; preds = %144
  store i32 2, ptr %26, align 4
  br label %256

148:                                              ; No predecessors!
  br label %149

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149, %142
  %151 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  br i1 %151, label %152, label %158

152:                                              ; preds = %150
  br label %153

153:                                              ; preds = %152
  store i32 4177, ptr %16, align 4, !tbaa !11
  %154 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 962, i32 noundef %154, ptr noundef null)
          to label %155 unwind label %131

155:                                              ; preds = %153
  store i32 2, ptr %26, align 4
  br label %256

156:                                              ; No predecessors!
  br label %157

157:                                              ; preds = %156
  br label %158

158:                                              ; preds = %157, %150
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #5
  invoke void @_ZN10HttpHelper10randomURIsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %159 unwind label %169

159:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  store ptr %28, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %160 = load ptr, ptr %29, align 8, !tbaa !5
  %161 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #5
  %162 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.67", ptr %30, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %163 = load ptr, ptr %29, align 8, !tbaa !5
  %164 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %163) #5
  %165 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.67", ptr %31, i32 0, i32 0
  store ptr %164, ptr %165, align 8
  br label %166

166:                                              ; preds = %191, %159
  %167 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  br i1 %167, label %173, label %168

168:                                              ; preds = %166
  store i32 9, ptr %26, align 4
  br label %193

169:                                              ; preds = %158
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %23, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %24, align 4
  br label %254

173:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %174 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #5
  store ptr %174, ptr %32, align 8, !tbaa !5
  %175 = load ptr, ptr %32, align 8, !tbaa !5
  %176 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %177 unwind label %183

177:                                              ; preds = %173
  %178 = invoke noundef i32 @_ZN10HttpHelper3getERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(32) %175, ptr noundef %176)
          to label %179 unwind label %183

179:                                              ; preds = %177
  store i32 %178, ptr %16, align 4, !tbaa !11
  %180 = load i32, ptr %16, align 4, !tbaa !11
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %187

182:                                              ; preds = %179
  store i32 9, ptr %26, align 4
  br label %188

183:                                              ; preds = %177, %173
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %23, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %253

187:                                              ; preds = %179
  store i32 0, ptr %26, align 4
  br label %188

188:                                              ; preds = %187, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  %189 = load i32, ptr %26, align 4
  switch i32 %189, label %193 [
    i32 0, label %190
  ]

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #5
  br label %166

193:                                              ; preds = %188, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %16, align 4, !tbaa !11
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %207

197:                                              ; preds = %194
  br label %198

198:                                              ; preds = %197
  store i32 4178, ptr %16, align 4, !tbaa !11
  %199 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 976, i32 noundef %199, ptr noundef null)
          to label %200 unwind label %201

200:                                              ; preds = %198
  store i32 2, ptr %26, align 4
  br label %250

201:                                              ; preds = %198
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %23, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %24, align 4
  br label %253

205:                                              ; No predecessors!
  br label %206

206:                                              ; preds = %205
  br label %207

207:                                              ; preds = %206, %194
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #5
  br label %208

208:                                              ; preds = %207
  %209 = load ptr, ptr %9, align 8, !tbaa !5
  %210 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %211 unwind label %219

211:                                              ; preds = %208
  %212 = invoke noundef i32 @_ZN7UapkiNS3Crl8CrlStore6addCrlEPK12ByteArray_stbRbPPNS0_7CrlItemE(ptr noundef nonnull align 8 dereferenceable(144) %209, ptr noundef %210, i1 noundef zeroext true, ptr noundef nonnull align 1 dereferenceable(1) %33, ptr noundef %19)
          to label %213 unwind label %219

213:                                              ; preds = %211
  store i32 %212, ptr %16, align 4, !tbaa !11
  %214 = load i32, ptr %16, align 4, !tbaa !11
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %223

216:                                              ; preds = %213
  %217 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 985, i32 noundef %217)
          to label %218 unwind label %219

218:                                              ; preds = %216
  store i32 2, ptr %26, align 4
  br label %249

219:                                              ; preds = %243, %236, %231, %225, %216, %211, %208
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %23, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #5
  br label %253

223:                                              ; preds = %213
  br label %224

224:                                              ; preds = %223
  br label %225

225:                                              ; preds = %224
  %226 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef null)
          to label %227 unwind label %219

227:                                              ; preds = %225
  %228 = load ptr, ptr %19, align 8, !tbaa !5
  %229 = icmp ne ptr %228, null
  br i1 %229, label %236, label %230

230:                                              ; preds = %227
  br label %231

231:                                              ; preds = %230
  store i32 4179, ptr %16, align 4, !tbaa !11
  %232 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 988, i32 noundef %232, ptr noundef null)
          to label %233 unwind label %219

233:                                              ; preds = %231
  store i32 2, ptr %26, align 4
  br label %249

234:                                              ; No predecessors!
  br label %235

235:                                              ; preds = %234
  br label %236

236:                                              ; preds = %235, %227
  %237 = load ptr, ptr %19, align 8, !tbaa !5
  %238 = invoke noundef i64 @_ZNK7UapkiNS3Crl7CrlItem13getNextUpdateEv(ptr noundef nonnull align 8 dereferenceable(268) %237)
          to label %239 unwind label %219

239:                                              ; preds = %236
  %240 = load i64, ptr %12, align 8, !tbaa !9
  %241 = icmp ult i64 %238, %240
  br i1 %241, label %242, label %248

242:                                              ; preds = %239
  br label %243

243:                                              ; preds = %242
  store i32 4180, ptr %16, align 4, !tbaa !11
  %244 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 993, i32 noundef %244, ptr noundef null)
          to label %245 unwind label %219

245:                                              ; preds = %243
  store i32 2, ptr %26, align 4
  br label %249

246:                                              ; No predecessors!
  br label %247

247:                                              ; preds = %246
  br label %248

248:                                              ; preds = %247, %239
  store i32 0, ptr %26, align 4
  br label %249

249:                                              ; preds = %248, %245, %233, %218
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #5
  br label %250

250:                                              ; preds = %249, %200
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #5
  %251 = load i32, ptr %26, align 4
  switch i32 %251, label %256 [
    i32 0, label %252
  ]

252:                                              ; preds = %250
  br label %255

253:                                              ; preds = %219, %201, %183
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  br label %254

254:                                              ; preds = %253, %169
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #5
  br label %267

255:                                              ; preds = %252, %137
  store i32 0, ptr %26, align 4
  br label %256

256:                                              ; preds = %255, %250, %155, %147
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  %257 = load i32, ptr %26, align 4
  switch i32 %257, label %338 [
    i32 0, label %258
    i32 2, label %336
  ]

258:                                              ; preds = %256
  %259 = load ptr, ptr %19, align 8, !tbaa !5
  %260 = invoke noundef ptr @_ZNK7UapkiNS3Crl7CrlItem12getCrlNumberEv(ptr noundef nonnull align 8 dereferenceable(268) %259)
          to label %261 unwind label %67

261:                                              ; preds = %258
  %262 = icmp ne ptr %260, null
  br i1 %262, label %271, label %263

263:                                              ; preds = %261
  br label %264

264:                                              ; preds = %263
  store i32 4179, ptr %16, align 4, !tbaa !11
  %265 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 1000, i32 noundef %265, ptr noundef null)
          to label %266 unwind label %67

266:                                              ; preds = %264
  br label %336

267:                                              ; preds = %254, %131
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #5
  br label %268

268:                                              ; preds = %267, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %340

269:                                              ; No predecessors!
  br label %270

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270, %261
  %272 = load i8, ptr %18, align 1, !tbaa !13, !range !15, !noundef !16
  %273 = trunc i8 %272 to i1
  br i1 %273, label %274, label %279

274:                                              ; preds = %271
  %275 = load ptr, ptr %19, align 8, !tbaa !5
  %276 = invoke noundef ptr @_ZNK7UapkiNS3Crl7CrlItem12getCrlNumberEv(ptr noundef nonnull align 8 dereferenceable(268) %275)
          to label %277 unwind label %67

277:                                              ; preds = %274
  %278 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %276, ptr %278, align 8, !tbaa !5
  br label %295

279:                                              ; preds = %271
  %280 = load ptr, ptr %13, align 8, !tbaa !5
  %281 = load ptr, ptr %280, align 8, !tbaa !5
  %282 = load ptr, ptr %19, align 8, !tbaa !5
  %283 = invoke noundef ptr @_ZNK7UapkiNS3Crl7CrlItem11getDeltaCrlEv(ptr noundef nonnull align 8 dereferenceable(268) %282)
          to label %284 unwind label %67

284:                                              ; preds = %279
  %285 = invoke i32 @ba_cmp(ptr noundef %281, ptr noundef %283)
          to label %286 unwind label %67

286:                                              ; preds = %284
  %287 = icmp ne i32 %285, 0
  br i1 %287, label %288, label %294

288:                                              ; preds = %286
  br label %289

289:                                              ; preds = %288
  store i32 4179, ptr %16, align 4, !tbaa !11
  %290 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 1010, i32 noundef %290, ptr noundef null)
          to label %291 unwind label %67

291:                                              ; preds = %289
  br label %336

292:                                              ; No predecessors!
  br label %293

293:                                              ; preds = %292
  br label %294

294:                                              ; preds = %293, %286
  br label %295

295:                                              ; preds = %294, %277
  %296 = load ptr, ptr %19, align 8, !tbaa !5
  %297 = load ptr, ptr %11, align 8, !tbaa !5
  %298 = invoke noundef i32 @_ZN7UapkiNS3Crl7CrlItem6verifyEPKNS_4Cert7CerItemEb(ptr noundef nonnull align 8 dereferenceable(268) %296, ptr noundef %297, i1 noundef zeroext false)
          to label %299 unwind label %67

299:                                              ; preds = %295
  store i32 %298, ptr %16, align 4, !tbaa !11
  %300 = load ptr, ptr %15, align 8, !tbaa !5
  %301 = icmp ne ptr %300, null
  br i1 %301, label %302, label %329

302:                                              ; preds = %299
  br label %303

303:                                              ; preds = %302
  %304 = load ptr, ptr %15, align 8, !tbaa !5
  %305 = load ptr, ptr %19, align 8, !tbaa !5
  %306 = invoke noundef ptr @_ZNK7UapkiNS3Crl7CrlItem8getCrlIdEv(ptr noundef nonnull align 8 dereferenceable(268) %305)
          to label %307 unwind label %67

307:                                              ; preds = %303
  %308 = invoke i32 @json_object_set_base64(ptr noundef %304, ptr noundef @.str.34, ptr noundef %306)
          to label %309 unwind label %67

309:                                              ; preds = %307
  store i32 %308, ptr %16, align 4, !tbaa !11
  %310 = load i32, ptr %16, align 4, !tbaa !11
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %312, label %315

312:                                              ; preds = %309
  %313 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 1018, i32 noundef %313)
          to label %314 unwind label %67

314:                                              ; preds = %312
  br label %336

315:                                              ; preds = %309
  br label %316

316:                                              ; preds = %315
  br label %317

317:                                              ; preds = %316
  %318 = load ptr, ptr %15, align 8, !tbaa !5
  %319 = load ptr, ptr %19, align 8, !tbaa !5
  %320 = invoke noundef i32 @_ZNK7UapkiNS3Crl7CrlItem13getStatusSignEv(ptr noundef nonnull align 8 dereferenceable(268) %319)
          to label %321 unwind label %67

321:                                              ; preds = %317
  %322 = invoke noundef ptr @_ZN7UapkiNS4Cert17verifyStatusToStrENS0_12VerifyStatusE(i32 noundef %320)
          to label %323 unwind label %67

323:                                              ; preds = %321
  %324 = invoke i32 @json_object_set_string(ptr noundef %318, ptr noundef @.str.12, ptr noundef %322)
          to label %325 unwind label %67

325:                                              ; preds = %323
  %326 = icmp ne i32 %324, 0
  br i1 %326, label %327, label %328

327:                                              ; preds = %325
  store i32 4113, ptr %16, align 4, !tbaa !11
  br label %336

328:                                              ; preds = %325
  br label %329

329:                                              ; preds = %328, %299
  %330 = load i32, ptr %16, align 4, !tbaa !11
  %331 = icmp eq i32 %330, 0
  br i1 %331, label %332, label %335

332:                                              ; preds = %329
  %333 = load ptr, ptr %19, align 8, !tbaa !5
  %334 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %333, ptr %334, align 8, !tbaa !5
  br label %335

335:                                              ; preds = %332, %329
  br label %336

336:                                              ; preds = %335, %327, %314, %291, %266, %256, %89, %80
  %337 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %337, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %338

338:                                              ; preds = %336, %256, %80
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %339 = load i32, ptr %8, align 4
  ret i32 %339

340:                                              ; preds = %268, %83, %67
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  br label %341

341:                                              ; preds = %340, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %342

342:                                              ; preds = %341
  %343 = load ptr, ptr %23, align 8
  %344 = load i32, ptr %24, align 4
  %345 = insertvalue { ptr, i32 } poison, ptr %343, 0
  %346 = insertvalue { ptr, i32 } %345, i32 %344, 1
  resume { ptr, i32 } %346
}

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

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

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

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

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

declare noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv() #2

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

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

declare void @_ZN10HttpHelper10randomURIsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(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(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

declare noundef i32 @_ZN7UapkiNS3Crl8CrlStore6addCrlEPK12ByteArray_stbRbPPNS0_7CrlItemE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef, i1 noundef zeroext, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) #2

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

declare noundef i32 @_ZN7UapkiNS3Crl7CrlItem6verifyEPKNS_4Cert7CerItemEb(ptr noundef nonnull align 8 dereferenceable(268), ptr noundef, i1 noundef zeroext) #2

declare noundef ptr @_ZN7UapkiNS4Cert17verifyStatusToStrENS0_12VerifyStatusE(i32 noundef) #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.std::lock_guard" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.67" = type { ptr }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

declare void @_ZN7UapkiNS4Util11joinStringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEc(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(24), i8 noundef signext) 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 #0 align 2

declare i32 @ba_cmp(ptr noundef, 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 #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS13CertValidator6getCrlERNS_3Crl8CrlStoreEPKNS_4Cert7CerItemES7_mPPK12ByteArray_stPPNS1_7CrlItemEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull %1, ptr noundef %2, i64 noundef %3, ptr nocapture noundef %4, ptr nocapture noundef writeonly %5, ptr noundef %6) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.UapkiNS::SmartBA", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::lock_guard", align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.67", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.67", align 8
  %16 = alloca i8, align 1
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  store ptr null, ptr %8, align 8, !tbaa !5
  %19 = tail call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK7UapkiNS4Cert7CerItem7getUrisEv(ptr noundef nonnull align 8 dereferenceable(401) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  %21 = select i1 %18, ptr %19, ptr %20
  %22 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %23 unwind label %29

23:                                               ; preds = %7
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %36, label %24

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  invoke void @_ZN7UapkiNS4Util11joinStringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEc(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %9, i8 noundef signext 59)
          to label %25 unwind label %31

25:                                               ; preds = %24
  %26 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  %27 = invoke i32 @json_object_set_string(ptr noundef nonnull %6, ptr noundef nonnull @.str.32, ptr noundef %26)
          to label %28 unwind label %33

28:                                               ; preds = %25
  %.not79 = icmp eq i32 %27, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br i1 %.not79, label %36, label %141

29:                                               ; preds = %.invoke, %135, %131, %130, %125, %121, %114, %39, %38, %7
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %142

31:                                               ; preds = %24
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %25
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br label %142

36:                                               ; preds = %28, %23
  %37 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br i1 %37, label %38, label %39

38:                                               ; preds = %36
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 931, i32 noundef 4177, ptr noundef null)
          to label %141 unwind label %29

39:                                               ; preds = %36
  %40 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem17getAuthorityKeyIdEv(ptr noundef nonnull align 8 dereferenceable(401) %1)
  %41 = select i1 %18, i32 1, i32 2
  %42 = invoke noundef ptr @_ZN7UapkiNS3Crl8CrlStore6getCrlEPK12ByteArray_stNS0_4TypeERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISC_EE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %40, i32 noundef %41, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %43 unwind label %29

43:                                               ; preds = %39
  store ptr %42, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %.not80 = icmp eq ptr %42, null
  br i1 %.not80, label %46, label %44

44:                                               ; preds = %43
  %45 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7UapkiNS3Crl7CrlItem8getMutexEv(ptr noundef nonnull align 8 dereferenceable(268) %42)
  br label %48

46:                                               ; preds = %43
  %47 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7UapkiNS3Crl8CrlStore24getMutexFirstDownloadingEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  br label %48

48:                                               ; preds = %46, %44
  %49 = phi ptr [ %45, %44 ], [ %47, %46 ]
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(40) %49)
          to label %50 unwind label %56

50:                                               ; preds = %48
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %.not81 = icmp eq ptr %51, null
  br i1 %.not81, label %.thread, label %52

52:                                               ; preds = %50
  %53 = call noundef i64 @_ZNK7UapkiNS3Crl7CrlItem13getNextUpdateEv(ptr noundef nonnull align 8 dereferenceable(268) %51)
  %54 = icmp ult i64 %53, %3
  br i1 %54, label %55, label %60

55:                                               ; preds = %52
  store ptr null, ptr %8, align 8, !tbaa !5
  br label %.thread

56:                                               ; preds = %48
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %109

58:                                               ; preds = %66, %63, %.thread
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %108

60:                                               ; preds = %52
  %.pr = load ptr, ptr %8, align 8, !tbaa !5
  %.not82 = icmp eq ptr %.pr, null
  br i1 %.not82, label %.thread, label %.thread113

.thread113:                                       ; preds = %60
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %105

.thread:                                          ; preds = %55, %50, %60
  %.068104 = phi i32 [ 0, %60 ], [ 4179, %50 ], [ 4180, %55 ]
  %61 = invoke noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv()
          to label %62 unwind label %58

62:                                               ; preds = %.thread
  br i1 %61, label %63, label %64

63:                                               ; preds = %62
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 959, i32 noundef %.068104, ptr noundef null)
          to label %.thread109 unwind label %58

64:                                               ; preds = %62
  %65 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br i1 %65, label %66, label %67

66:                                               ; preds = %64
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 962, i32 noundef 4177, ptr noundef null)
          to label %.thread109 unwind label %58

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  invoke void @_ZN10HttpHelper10randomURIsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %68 unwind label %72

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %69 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %69, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %70 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %70, ptr %15, align 8
  %71 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %71, label %.lr.ph, label %.critedge

72:                                               ; preds = %67
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %103

.lr.ph:                                           ; preds = %68, %80
  %74 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %75 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %76 = invoke noundef i32 @_ZN10HttpHelper3getERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(32) %74, ptr noundef %75)
          to label %77 unwind label %78

77:                                               ; preds = %.lr.ph
  %.not83 = icmp eq i32 %76, 0
  br i1 %.not83, label %.thread105, label %80

.thread105:                                       ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %85

78:                                               ; preds = %.lr.ph
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %102

80:                                               ; preds = %77
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %82 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %82, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 976, i32 noundef 4178, ptr noundef null)
          to label %104 unwind label %83

83:                                               ; preds = %._crit_edge
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %102

.critedge:                                        ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %85

85:                                               ; preds = %.critedge, %.thread105
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  %86 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %87 = invoke noundef i32 @_ZN7UapkiNS3Crl8CrlStore6addCrlEPK12ByteArray_stbRbPPNS0_7CrlItemE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %86, i1 noundef zeroext true, ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull %8)
          to label %88 unwind label %90

88:                                               ; preds = %85
  %.not85 = icmp eq i32 %87, 0
  br i1 %.not85, label %92, label %89

89:                                               ; preds = %88
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 985, i32 noundef %87)
          to label %100 unwind label %90

90:                                               ; preds = %99, %95, %89, %85
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  br label %102

92:                                               ; preds = %88
  %93 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef null)
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %.not86 = icmp eq ptr %94, null
  br i1 %.not86, label %95, label %96

95:                                               ; preds = %92
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 988, i32 noundef 4179, ptr noundef null)
          to label %100 unwind label %90

96:                                               ; preds = %92
  %97 = call noundef i64 @_ZNK7UapkiNS3Crl7CrlItem13getNextUpdateEv(ptr noundef nonnull align 8 dereferenceable(268) %94)
  %98 = icmp ult i64 %97, %3
  br i1 %98, label %99, label %100

99:                                               ; preds = %96
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 993, i32 noundef 4180, ptr noundef null)
          to label %100 unwind label %90

100:                                              ; preds = %96, %99, %95, %89
  %101 = phi i1 [ false, %89 ], [ false, %95 ], [ false, %99 ], [ true, %96 ]
  %.4 = phi i32 [ %87, %89 ], [ 4179, %95 ], [ 4180, %99 ], [ 0, %96 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  br label %104

102:                                              ; preds = %90, %83, %78
  %.pn87 = phi { ptr, i32 } [ %84, %83 ], [ %91, %90 ], [ %79, %78 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  br label %103

103:                                              ; preds = %102, %72
  %.pn87.pn = phi { ptr, i32 } [ %.pn87, %102 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br label %108

.thread109:                                       ; preds = %63, %66
  %.7.ph = phi i32 [ 4177, %66 ], [ %.068104, %63 ]
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %141

104:                                              ; preds = %100, %._crit_edge
  %.354 = phi i1 [ %101, %100 ], [ false, %._crit_edge ]
  %.5 = phi i32 [ %.4, %100 ], [ 4178, %._crit_edge ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br i1 %.354, label %105, label %141

105:                                              ; preds = %.thread113, %104
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = call noundef ptr @_ZNK7UapkiNS3Crl7CrlItem12getCrlNumberEv(ptr noundef nonnull align 8 dereferenceable(268) %106)
  %.not93 = icmp eq ptr %107, null
  br i1 %.not93, label %.invoke, label %110

108:                                              ; preds = %103, %58
  %.pn90 = phi { ptr, i32 } [ %59, %58 ], [ %.pn87.pn, %103 ]
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %109

109:                                              ; preds = %108, %56
  %.pn90.pn = phi { ptr, i32 } [ %.pn90, %108 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %142

110:                                              ; preds = %105
  br i1 %18, label %111, label %114

111:                                              ; preds = %110
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = call noundef ptr @_ZNK7UapkiNS3Crl7CrlItem12getCrlNumberEv(ptr noundef nonnull align 8 dereferenceable(268) %112)
  store ptr %113, ptr %4, align 8, !tbaa !5
  br label %121

114:                                              ; preds = %110
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = call noundef ptr @_ZNK7UapkiNS3Crl7CrlItem11getDeltaCrlEv(ptr noundef nonnull align 8 dereferenceable(268) %116)
  %118 = invoke i32 @ba_cmp(ptr noundef %115, ptr noundef %117)
          to label %119 unwind label %29

119:                                              ; preds = %114
  %.not94 = icmp eq i32 %118, 0
  br i1 %.not94, label %121, label %.invoke

.invoke:                                          ; preds = %119, %105
  %120 = phi i64 [ 1000, %105 ], [ 1010, %119 ]
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef %120, i32 noundef 4179, ptr noundef null)
          to label %141 unwind label %29

121:                                              ; preds = %119, %111
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = invoke noundef i32 @_ZN7UapkiNS3Crl7CrlItem6verifyEPKNS_4Cert7CerItemEb(ptr noundef nonnull align 8 dereferenceable(268) %122, ptr noundef %2, i1 noundef zeroext false)
          to label %124 unwind label %29

124:                                              ; preds = %121
  br i1 %.not, label %138, label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = call noundef ptr @_ZNK7UapkiNS3Crl7CrlItem8getCrlIdEv(ptr noundef nonnull align 8 dereferenceable(268) %126)
  %128 = invoke i32 @json_object_set_base64(ptr noundef nonnull %6, ptr noundef nonnull @.str.34, ptr noundef %127)
          to label %129 unwind label %29

129:                                              ; preds = %125
  %.not95 = icmp eq i32 %128, 0
  br i1 %.not95, label %131, label %130

130:                                              ; preds = %129
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 1018, i32 noundef %128)
          to label %141 unwind label %29

131:                                              ; preds = %129
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = call noundef i32 @_ZNK7UapkiNS3Crl7CrlItem13getStatusSignEv(ptr noundef nonnull align 8 dereferenceable(268) %132)
  %134 = invoke noundef ptr @_ZN7UapkiNS4Cert17verifyStatusToStrENS0_12VerifyStatusE(i32 noundef %133)
          to label %135 unwind label %29

135:                                              ; preds = %131
  %136 = invoke i32 @json_object_set_string(ptr noundef nonnull %6, ptr noundef nonnull @.str.12, ptr noundef %134)
          to label %137 unwind label %29

137:                                              ; preds = %135
  %.not96 = icmp eq i32 %136, 0
  br i1 %.not96, label %.thread117, label %141

138:                                              ; preds = %124
  %139 = icmp eq i32 %123, 0
  br i1 %139, label %.thread117, label %141

.thread117:                                       ; preds = %137, %138
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %140, ptr %5, align 8, !tbaa !5
  br label %141

141:                                              ; preds = %.invoke, %.thread109, %104, %28, %38, %130, %.thread117, %138, %137
  %.0 = phi i32 [ 4113, %28 ], [ 4177, %38 ], [ %.5, %104 ], [ %128, %130 ], [ 0, %.thread117 ], [ %123, %138 ], [ 4113, %137 ], [ %.7.ph, %.thread109 ], [ 4179, %.invoke ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  ret i32 %.0

142:                                              ; preds = %109, %35, %29
  %.pn97 = phi { ptr, i32 } [ %30, %29 ], [ %.pn90.pn, %109 ], [ %.pn, %35 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  resume { ptr, i32 } %.pn97
}

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

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

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

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

declare noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv() local_unnamed_addr #2

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

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

declare void @_ZN10HttpHelper10randomURIsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

declare noundef i32 @_ZN7UapkiNS3Crl8CrlStore6addCrlEPK12ByteArray_stbRbPPNS0_7CrlItemE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef, i1 noundef zeroext, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) local_unnamed_addr #2

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

declare noundef i32 @_ZN7UapkiNS3Crl7CrlItem6verifyEPKNS_4Cert7CerItemEb(ptr noundef nonnull align 8 dereferenceable(268), ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare noundef ptr @_ZN7UapkiNS4Cert17verifyStatusToStrENS0_12VerifyStatusE(i32 noundef) local_unnamed_addr #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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