; LLVM IR from specinfo-ua/UAPKI :: library/uapki/src/api (cert-status-by-ocsp)

; 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::CertValidator::CertValidator" = type { ptr, ptr, ptr, %"class.std::vector", %"class.std::vector.0", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.UapkiNS::Ocsp::OcspHelper" = type <{ %"class.std::vector.13", ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, [4 x i8] }>
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" = type { ptr, ptr, 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::lock_guard" = type { ptr }
%"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo" = type <{ i32, [4 x i8], i64, i64, i64, i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZN10HttpHelper25CONTENT_TYPE_OCSP_REQUESTE = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local i32 @uapki_cert_status_by_ocsp(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 %"class.UapkiNS::CertValidator::CertValidator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.UapkiNS::Ocsp::OcspHelper", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, 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.UapkiNS::SmartBA", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.UapkiNS::AlgorithmIdentifier", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.UapkiNS::SmartBA", align 8
  %24 = alloca %"class.UapkiNS::SmartBA", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::lock_guard", align 8
  %29 = alloca %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"class.std::lock_guard", 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 88, ptr %6) #5
  call void @_ZN7UapkiNS13CertValidator13CertValidatorC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %6)
  %32 = invoke noundef ptr @_ZN7UapkiNS10get_configEv()
          to label %33 unwind label %41

33:                                               ; preds = %2
  %34 = invoke noundef ptr @_ZN7UapkiNS12get_cerstoreEv()
          to label %35 unwind label %41

35:                                               ; preds = %33
  %36 = invoke noundef ptr @_ZN7UapkiNS12get_crlstoreEv()
          to label %37 unwind label %41

37:                                               ; preds = %35
  %38 = invoke noundef zeroext i1 @_ZN7UapkiNS13CertValidator13CertValidator4initEPNS_13LibraryConfigEPNS_4Cert8CerStoreEPNS_3Crl8CrlStoreE(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef %32, ptr noundef %34, ptr noundef %36)
          to label %39 unwind label %41

39:                                               ; preds = %37
  br i1 %38, label %45, label %40

40:                                               ; preds = %39
  store i32 4097, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %520

41:                                               ; preds = %47, %45, %37, %35, %33, %2
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %7, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %8, align 4
  br label %522

45:                                               ; preds = %39
  %46 = invoke noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator12getLibConfigEv(ptr noundef nonnull align 8 dereferenceable(88) %6)
          to label %47 unwind label %41

47:                                               ; preds = %45
  %48 = invoke noundef zeroext i1 @_ZNK7UapkiNS13LibraryConfig13isInitializedEv(ptr noundef nonnull align 8 dereferenceable(97) %46)
          to label %49 unwind label %41

49:                                               ; preds = %47
  br i1 %48, label %51, label %50

50:                                               ; preds = %49
  store i32 4105, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %520

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 96, ptr %11) #5
  invoke void @_ZN7UapkiNS4Ocsp10OcspHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(92) %11)
          to label %52 unwind label %77

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %53 = invoke noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %6)
          to label %54 unwind label %81

54:                                               ; preds = %52
  store ptr %53, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %55 unwind label %85

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %56 unwind label %89

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %57 unwind label %93

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %58 unwind label %97

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #5
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  invoke void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef %59, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %60 unwind label %101

60:                                               ; preds = %58
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectGetUint32EP13json_object_tPKcj(ptr noundef %61, ptr noundef @.str.1, i32 noundef 0)
          to label %63 unwind label %105

63:                                               ; preds = %60
  store i32 %62, ptr %20, align 4, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = invoke ptr @json_object_get_base64(ptr noundef %64, ptr noundef @.str.2)
          to label %66 unwind label %105

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

68:                                               ; preds = %66
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = invoke ptr @json_object_get_hex(ptr noundef %69, ptr noundef @.str.3)
          to label %71 unwind label %105

71:                                               ; preds = %68
  %72 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef %70)
          to label %73 unwind label %105

73:                                               ; preds = %71
  %74 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %75 unwind label %105

75:                                               ; preds = %73
  br i1 %74, label %76, label %109

76:                                               ; preds = %75
  store i32 4101, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %511

77:                                               ; preds = %51
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  br label %519

81:                                               ; preds = %52
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %7, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %8, align 4
  br label %518

85:                                               ; preds = %54
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %7, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %8, align 4
  br label %517

89:                                               ; preds = %55
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %7, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %8, align 4
  br label %516

93:                                               ; preds = %56
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %7, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %8, align 4
  br label %515

97:                                               ; preds = %57
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %7, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %8, align 4
  br label %514

101:                                              ; preds = %58
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  br label %513

105:                                              ; preds = %325, %321, %314, %309, %306, %300, %295, %288, %281, %146, %141, %138, %132, %127, %124, %120, %115, %110, %73, %71, %68, %66, %63, %60
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %7, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %8, align 4
  br label %512

109:                                              ; preds = %75
  br label %110

110:                                              ; preds = %109
  %111 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper4initEv(ptr noundef nonnull align 8 dereferenceable(92) %11)
          to label %112 unwind label %105

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

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

117:                                              ; preds = %115
  br label %509

118:                                              ; preds = %112
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  %121 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %122 unwind label %105

122:                                              ; preds = %120
  br i1 %121, label %152, label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %127 unwind label %105

127:                                              ; preds = %124
  %128 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore15getCertByCertIdEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %125, ptr noundef %126, ptr noundef %13)
          to label %129 unwind label %105

129:                                              ; preds = %127
  store i32 %128, ptr %10, align 4, !tbaa !9
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %135

132:                                              ; preds = %129
  %133 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 68, i32 noundef %133)
          to label %134 unwind label %105

134:                                              ; preds = %132
  br label %509

135:                                              ; preds = %129
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %141 unwind label %105

141:                                              ; preds = %138
  %142 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper14addIssuerAndSNEPKNS_4Cert7CerItemEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %11, ptr noundef %139, ptr noundef %140)
          to label %143 unwind label %105

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

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

148:                                              ; preds = %146
  br label %509

149:                                              ; preds = %143
  br label %150

150:                                              ; preds = %149
  br label %151

151:                                              ; preds = %150
  br label %272

152:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  invoke void @_ZN7UapkiNS19AlgorithmIdentifierC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef null)
          to label %153 unwind label %184

153:                                              ; preds = %152
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %154 unwind label %188

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %155 unwind label %192

155:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #5
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  invoke void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef %156, ptr noundef @.str.5, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %157 unwind label %196

157:                                              ; preds = %155
  %158 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %21, i32 0, i32 0
  %159 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %158, ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #5
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = invoke ptr @json_object_get_base64(ptr noundef %160, ptr noundef @.str.6)
          to label %162 unwind label %200

162:                                              ; preds = %157
  %163 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %161)
          to label %164 unwind label %200

164:                                              ; preds = %162
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = invoke ptr @json_object_get_hex(ptr noundef %165, ptr noundef @.str.7)
          to label %167 unwind label %200

167:                                              ; preds = %164
  %168 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef %166)
          to label %169 unwind label %200

169:                                              ; preds = %167
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = invoke ptr @json_object_get_hex(ptr noundef %170, ptr noundef @.str.8)
          to label %172 unwind label %200

172:                                              ; preds = %169
  %173 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef %171)
          to label %174 unwind label %200

174:                                              ; preds = %172
  %175 = invoke noundef zeroext i1 @_ZNK7UapkiNS19AlgorithmIdentifier9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %21)
          to label %176 unwind label %200

176:                                              ; preds = %174
  br i1 %175, label %177, label %180

177:                                              ; preds = %176
  %178 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %179 unwind label %200

179:                                              ; preds = %177
  br i1 %178, label %180, label %206

180:                                              ; preds = %179, %176
  br label %181

181:                                              ; preds = %180
  store i32 4101, ptr %10, align 4, !tbaa !9
  %182 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str.4, i64 noundef 84, i32 noundef %182, ptr noundef null)
          to label %183 unwind label %200

183:                                              ; preds = %181
  store i32 4, ptr %9, align 4
  br label %265

184:                                              ; preds = %152
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %7, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %271

188:                                              ; preds = %153
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %7, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %8, align 4
  br label %270

192:                                              ; preds = %154
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %7, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %8, align 4
  br label %269

196:                                              ; preds = %155
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %7, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #5
  br label %268

200:                                              ; preds = %259, %254, %252, %250, %248, %206, %181, %177, %174, %172, %169, %167, %164, %162, %157
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %7, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %8, align 4
  br label %268

204:                                              ; No predecessors!
  br label %205

205:                                              ; preds = %204
  br label %247

206:                                              ; preds = %179
  %207 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %208 unwind label %200

208:                                              ; preds = %206
  br i1 %207, label %209, label %246

209:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %210 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %21, i32 0, i32 0
  %211 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %210) #5
  %212 = invoke i32 @hash_from_oid(ptr noundef %211)
          to label %213 unwind label %220

213:                                              ; preds = %209
  store i32 %212, ptr %27, align 4, !tbaa !11
  %214 = load i32, ptr %27, align 4, !tbaa !11
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %216, label %226

216:                                              ; preds = %213
  br label %217

217:                                              ; preds = %216
  store i32 4110, ptr %10, align 4, !tbaa !9
  %218 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str.4, i64 noundef 89, i32 noundef %218, ptr noundef null)
          to label %219 unwind label %220

219:                                              ; preds = %217
  store i32 4, ptr %9, align 4
  br label %243

220:                                              ; preds = %237, %232, %230, %227, %217, %209
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %7, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %268

224:                                              ; No predecessors!
  br label %225

225:                                              ; preds = %224
  br label %226

226:                                              ; preds = %225, %213
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %27, align 4, !tbaa !11
  %229 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %230 unwind label %220

230:                                              ; preds = %227
  %231 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %232 unwind label %220

232:                                              ; preds = %230
  %233 = invoke i32 @hash(i32 noundef %228, ptr noundef %229, ptr noundef %231)
          to label %234 unwind label %220

234:                                              ; preds = %232
  store i32 %233, ptr %10, align 4, !tbaa !9
  %235 = load i32, ptr %10, align 4, !tbaa !9
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %240

237:                                              ; preds = %234
  %238 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 91, i32 noundef %238)
          to label %239 unwind label %220

239:                                              ; preds = %237
  store i32 4, ptr %9, align 4
  br label %243

240:                                              ; preds = %234
  br label %241

241:                                              ; preds = %240
  br label %242

242:                                              ; preds = %241
  store i32 0, ptr %9, align 4
  br label %243

243:                                              ; preds = %242, %239, %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  %244 = load i32, ptr %9, align 4
  switch i32 %244, label %265 [
    i32 0, label %245
  ]

245:                                              ; preds = %243
  br label %246

246:                                              ; preds = %245, %208
  br label %247

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

248:                                              ; preds = %247
  %249 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %250 unwind label %200

250:                                              ; preds = %248
  %251 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %252 unwind label %200

252:                                              ; preds = %250
  %253 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %254 unwind label %200

254:                                              ; preds = %252
  %255 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper9addCertIdERKNS_19AlgorithmIdentifierEPK12ByteArray_stS7_S7_(ptr noundef nonnull align 8 dereferenceable(92) %11, ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef %249, ptr noundef %251, ptr noundef %253)
          to label %256 unwind label %200

256:                                              ; preds = %254
  store i32 %255, ptr %10, align 4, !tbaa !9
  %257 = load i32, ptr %10, align 4, !tbaa !9
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %262

259:                                              ; preds = %256
  %260 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 99, i32 noundef %260)
          to label %261 unwind label %200

261:                                              ; preds = %259
  store i32 4, ptr %9, align 4
  br label %265

262:                                              ; preds = %256
  br label %263

263:                                              ; preds = %262
  br label %264

264:                                              ; preds = %263
  store i32 0, ptr %9, align 4
  br label %265

265:                                              ; preds = %264, %261, %243, %183
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @_ZN7UapkiNS19AlgorithmIdentifierD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #5
  %266 = load i32, ptr %9, align 4
  switch i32 %266, label %511 [
    i32 0, label %267
    i32 4, label %509
  ]

267:                                              ; preds = %265
  br label %272

268:                                              ; preds = %220, %200, %196
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  br label %269

269:                                              ; preds = %268, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  br label %270

270:                                              ; preds = %269, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @_ZN7UapkiNS19AlgorithmIdentifierD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  br label %271

271:                                              ; preds = %270, %184
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #5
  br label %512

272:                                              ; preds = %267, %151
  %273 = load i32, ptr %20, align 4, !tbaa !9
  %274 = zext i32 %273 to i64
  %275 = icmp uge i64 %274, 8
  br i1 %275, label %276, label %294

276:                                              ; preds = %272
  %277 = load i32, ptr %20, align 4, !tbaa !9
  %278 = zext i32 %277 to i64
  %279 = icmp ule i64 %278, 64
  br i1 %279, label %280, label %294

280:                                              ; preds = %276
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %20, align 4, !tbaa !9
  %283 = zext i32 %282 to i64
  %284 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper8genNonceEm(ptr noundef nonnull align 8 dereferenceable(92) %11, i64 noundef %283)
          to label %285 unwind label %105

285:                                              ; preds = %281
  store i32 %284, ptr %10, align 4, !tbaa !9
  %286 = load i32, ptr %10, align 4, !tbaa !9
  %287 = icmp ne i32 %286, 0
  br i1 %287, label %288, label %291

288:                                              ; preds = %285
  %289 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 103, i32 noundef %289)
          to label %290 unwind label %105

290:                                              ; preds = %288
  br label %509

291:                                              ; preds = %285
  br label %292

292:                                              ; preds = %291
  br label %293

293:                                              ; preds = %292
  br label %294

294:                                              ; preds = %293, %276, %272
  br label %295

295:                                              ; preds = %294
  %296 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper13encodeRequestEv(ptr noundef nonnull align 8 dereferenceable(92) %11)
          to label %297 unwind label %105

297:                                              ; preds = %295
  store i32 %296, ptr %10, align 4, !tbaa !9
  %298 = load i32, ptr %10, align 4, !tbaa !9
  %299 = icmp ne i32 %298, 0
  br i1 %299, label %300, label %303

300:                                              ; preds = %297
  %301 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 106, i32 noundef %301)
          to label %302 unwind label %105

302:                                              ; preds = %300
  br label %509

303:                                              ; preds = %297
  br label %304

304:                                              ; preds = %303
  br label %305

305:                                              ; preds = %304
  br label %306

306:                                              ; preds = %305
  %307 = load ptr, ptr %5, align 8, !tbaa !5
  %308 = invoke noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper17getRequestEncodedEb(ptr noundef nonnull align 8 dereferenceable(92) %11, i1 noundef zeroext false)
          to label %309 unwind label %105

309:                                              ; preds = %306
  %310 = invoke i32 @json_object_set_base64(ptr noundef %307, ptr noundef @.str.9, ptr noundef %308)
          to label %311 unwind label %105

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

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

316:                                              ; preds = %314
  br label %509

317:                                              ; preds = %311
  br label %318

318:                                              ; preds = %317
  br label %319

319:                                              ; preds = %318
  %320 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  br i1 %320, label %508, label %321

321:                                              ; preds = %319
  %322 = invoke noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv()
          to label %323 unwind label %105

323:                                              ; preds = %321
  br i1 %322, label %324, label %330

324:                                              ; preds = %323
  br label %325

325:                                              ; preds = %324
  store i32 4120, ptr %10, align 4, !tbaa !9
  %326 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str.4, i64 noundef 112, i32 noundef %326, ptr noundef null)
          to label %327 unwind label %105

327:                                              ; preds = %325
  br label %509

328:                                              ; No predecessors!
  br label %329

329:                                              ; preds = %328
  br label %330

330:                                              ; preds = %329, %323
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %331 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN10HttpHelper7lockUriERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %332 unwind label %347

332:                                              ; preds = %330
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(40) %331)
          to label %333 unwind label %347

333:                                              ; preds = %332
  br label %334

334:                                              ; preds = %333
  %335 = load ptr, ptr @_ZN10HttpHelper25CONTENT_TYPE_OCSP_REQUESTE, align 8, !tbaa !5
  %336 = invoke noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper17getRequestEncodedEb(ptr noundef nonnull align 8 dereferenceable(92) %11, i1 noundef zeroext false)
          to label %337 unwind label %351

337:                                              ; preds = %334
  %338 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %339 unwind label %351

339:                                              ; preds = %337
  %340 = invoke noundef i32 @_ZN10HttpHelper4postERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPK12ByteArray_stPPSA_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef %335, ptr noundef %336, ptr noundef %338)
          to label %341 unwind label %351

341:                                              ; preds = %339
  store i32 %340, ptr %10, align 4, !tbaa !9
  %342 = load i32, ptr %10, align 4, !tbaa !9
  %343 = icmp ne i32 %342, 0
  br i1 %343, label %344, label %355

344:                                              ; preds = %341
  %345 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 122, i32 noundef %345)
          to label %346 unwind label %351

346:                                              ; preds = %344
  store i32 4, ptr %9, align 4
  br label %503

347:                                              ; preds = %332, %330
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %7, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %8, align 4
  br label %507

351:                                              ; preds = %397, %389, %387, %384, %382, %380, %375, %370, %367, %361, %357, %344, %339, %337, %334
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %7, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %8, align 4
  br label %506

355:                                              ; preds = %341
  br label %356

356:                                              ; preds = %355
  br label %357

357:                                              ; preds = %356
  %358 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %359 unwind label %351

359:                                              ; preds = %357
  br i1 %358, label %360, label %366

360:                                              ; preds = %359
  br label %361

361:                                              ; preds = %360
  store i32 4198, ptr %10, align 4, !tbaa !9
  %362 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str.4, i64 noundef 125, i32 noundef %362, ptr noundef null)
          to label %363 unwind label %351

363:                                              ; preds = %361
  store i32 4, ptr %9, align 4
  br label %503

364:                                              ; No predecessors!
  br label %365

365:                                              ; preds = %364
  br label %366

366:                                              ; preds = %365, %359
  br label %367

367:                                              ; preds = %366
  %368 = load ptr, ptr %5, align 8, !tbaa !5
  %369 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %370 unwind label %351

370:                                              ; preds = %367
  %371 = invoke i32 @json_object_set_base64(ptr noundef %368, ptr noundef @.str.10, ptr noundef %369)
          to label %372 unwind label %351

372:                                              ; preds = %370
  store i32 %371, ptr %10, align 4, !tbaa !9
  %373 = load i32, ptr %10, align 4, !tbaa !9
  %374 = icmp ne i32 %373, 0
  br i1 %374, label %375, label %378

375:                                              ; preds = %372
  %376 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 127, i32 noundef %376)
          to label %377 unwind label %351

377:                                              ; preds = %375
  store i32 4, ptr %9, align 4
  br label %503

378:                                              ; preds = %372
  br label %379

379:                                              ; preds = %378
  br label %380

380:                                              ; preds = %379
  %381 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %382 unwind label %351

382:                                              ; preds = %380
  %383 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper13parseResponseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %11, ptr noundef %381)
          to label %384 unwind label %351

384:                                              ; preds = %382
  store i32 %383, ptr %10, align 4, !tbaa !9
  %385 = load ptr, ptr %5, align 8, !tbaa !5
  %386 = invoke noundef i32 @_ZNK7UapkiNS4Ocsp10OcspHelper17getResponseStatusEv(ptr noundef nonnull align 8 dereferenceable(92) %11)
          to label %387 unwind label %351

387:                                              ; preds = %384
  %388 = invoke noundef ptr @_ZN7UapkiNS4Ocsp19responseStatusToStrENS0_14ResponseStatusE(i32 noundef %386)
          to label %389 unwind label %351

389:                                              ; preds = %387
  %390 = invoke i32 @json_object_set_string(ptr noundef %385, ptr noundef @.str.11, ptr noundef %388)
          to label %391 unwind label %351

391:                                              ; preds = %389
  %392 = icmp ne i32 %390, 0
  br i1 %392, label %393, label %394

393:                                              ; preds = %391
  store i32 4113, ptr %10, align 4, !tbaa !9
  store i32 4, ptr %9, align 4
  br label %503

394:                                              ; preds = %391
  %395 = load i32, ptr %10, align 4, !tbaa !9
  %396 = icmp eq i32 %395, 0
  br i1 %396, label %397, label %502

397:                                              ; preds = %394
  %398 = invoke noundef i32 @_ZNK7UapkiNS4Ocsp10OcspHelper17getResponseStatusEv(ptr noundef nonnull align 8 dereferenceable(92) %11)
          to label %399 unwind label %351

399:                                              ; preds = %397
  %400 = icmp eq i32 %398, 0
  br i1 %400, label %401, label %502

401:                                              ; preds = %399
  call void @llvm.lifetime.start.p0(i64 40, ptr %29) #5
  invoke void @_ZN7UapkiNS4Ocsp10OcspHelper18SingleResponseInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %29)
          to label %402 unwind label %412

402:                                              ; preds = %401
  br label %403

403:                                              ; preds = %402
  %404 = load ptr, ptr %5, align 8, !tbaa !5
  %405 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator19processResponseDataERNS_4Ocsp10OcspHelperERNS3_18SingleResponseInfoEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef nonnull align 8 dereferenceable(92) %11, ptr noundef nonnull align 8 dereferenceable(36) %29, ptr noundef %404)
          to label %406 unwind label %412

406:                                              ; preds = %403
  store i32 %405, ptr %10, align 4, !tbaa !9
  %407 = load i32, ptr %10, align 4, !tbaa !9
  %408 = icmp ne i32 %407, 0
  br i1 %408, label %409, label %416

409:                                              ; preds = %406
  %410 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 138, i32 noundef %410)
          to label %411 unwind label %412

411:                                              ; preds = %409
  store i32 4, ptr %9, align 4
  br label %498

412:                                              ; preds = %421, %409, %403, %401
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %7, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %8, align 4
  br label %501

416:                                              ; preds = %406
  br label %417

417:                                              ; preds = %416
  br label %418

418:                                              ; preds = %417
  %419 = load ptr, ptr %13, align 8, !tbaa !5
  %420 = icmp ne ptr %419, null
  br i1 %420, label %424, label %421

421:                                              ; preds = %418
  %422 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %423 unwind label %412

423:                                              ; preds = %421
  br i1 %422, label %497, label %424

424:                                              ; preds = %423, %418
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  store ptr null, ptr %30, align 8, !tbaa !5
  %425 = load ptr, ptr %13, align 8, !tbaa !5
  %426 = icmp ne ptr %425, null
  br i1 %426, label %427, label %440

427:                                              ; preds = %424
  %428 = load ptr, ptr %12, align 8, !tbaa !5
  %429 = load ptr, ptr %13, align 8, !tbaa !5
  %430 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem10getSubjectEv(ptr noundef nonnull align 8 dereferenceable(401) %429)
          to label %431 unwind label %436

431:                                              ; preds = %427
  %432 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %433 unwind label %436

433:                                              ; preds = %431
  %434 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore20getCertByIssuerAndSNEPK12ByteArray_stS4_PPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %428, ptr noundef %430, ptr noundef %432, ptr noundef %30)
          to label %435 unwind label %436

435:                                              ; preds = %433
  store i32 %434, ptr %10, align 4, !tbaa !9
  br label %448

436:                                              ; preds = %445, %443, %440, %433, %431, %427
  %437 = landingpad { ptr, i32 }
          cleanup
  %438 = extractvalue { ptr, i32 } %437, 0
  store ptr %438, ptr %7, align 8
  %439 = extractvalue { ptr, i32 } %437, 1
  store i32 %439, ptr %8, align 4
  br label %496

440:                                              ; preds = %424
  %441 = load ptr, ptr %12, align 8, !tbaa !5
  %442 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %443 unwind label %436

443:                                              ; preds = %440
  %444 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %445 unwind label %436

445:                                              ; preds = %443
  %446 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore20getCertByIssuerAndSNEPK12ByteArray_stS4_PPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %441, ptr noundef %442, ptr noundef %444, ptr noundef %30)
          to label %447 unwind label %436

447:                                              ; preds = %445
  store i32 %446, ptr %10, align 4, !tbaa !9
  br label %448

448:                                              ; preds = %447, %435
  %449 = load i32, ptr %10, align 4, !tbaa !9
  %450 = icmp eq i32 %449, 0
  br i1 %450, label %451, label %492

451:                                              ; preds = %448
  %452 = load ptr, ptr %30, align 8, !tbaa !5
  %453 = icmp ne ptr %452, null
  br i1 %453, label %454, label %492

454:                                              ; preds = %451
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %455 = load ptr, ptr %30, align 8, !tbaa !5
  %456 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN7UapkiNS4Cert7CerItem8getMutexEv(ptr noundef nonnull align 8 dereferenceable(401) %455)
          to label %457 unwind label %477

457:                                              ; preds = %454
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(40) %456)
          to label %458 unwind label %477

458:                                              ; preds = %457
  br label %459

459:                                              ; preds = %458
  %460 = load ptr, ptr %30, align 8, !tbaa !5
  %461 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN7UapkiNS4Cert7CerItem19getCertStatusByOcspEv(ptr noundef nonnull align 8 dereferenceable(401) %460)
          to label %462 unwind label %481

462:                                              ; preds = %459
  %463 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %29, i32 0, i32 0
  %464 = load i32, ptr %463, align 8, !tbaa !13
  %465 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %29, i32 0, i32 2
  %466 = load i64, ptr %465, align 8, !tbaa !18
  %467 = add i64 %466, 1800000
  %468 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %469 unwind label %481

469:                                              ; preds = %462
  %470 = invoke noundef i32 @_ZN7UapkiNS4Cert14CertStatusInfo3setENS_10CertStatusEmPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(32) %461, i32 noundef %464, i64 noundef %467, ptr noundef %468)
          to label %471 unwind label %481

471:                                              ; preds = %469
  store i32 %470, ptr %10, align 4, !tbaa !9
  %472 = load i32, ptr %10, align 4, !tbaa !9
  %473 = icmp ne i32 %472, 0
  br i1 %473, label %474, label %485

474:                                              ; preds = %471
  %475 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 154, i32 noundef %475)
          to label %476 unwind label %481

476:                                              ; preds = %474
  store i32 4, ptr %9, align 4
  br label %488

477:                                              ; preds = %457, %454
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %7, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %8, align 4
  br label %491

481:                                              ; preds = %474, %469, %462, %459
  %482 = landingpad { ptr, i32 }
          cleanup
  %483 = extractvalue { ptr, i32 } %482, 0
  store ptr %483, ptr %7, align 8
  %484 = extractvalue { ptr, i32 } %482, 1
  store i32 %484, ptr %8, align 4
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  br label %491

485:                                              ; preds = %471
  br label %486

486:                                              ; preds = %485
  br label %487

487:                                              ; preds = %486
  store i32 0, ptr %9, align 4
  br label %488

488:                                              ; preds = %487, %476
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  %489 = load i32, ptr %9, align 4
  switch i32 %489, label %493 [
    i32 0, label %490
  ]

490:                                              ; preds = %488
  br label %492

491:                                              ; preds = %481, %477
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %496

492:                                              ; preds = %490, %451, %448
  store i32 0, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %9, align 4
  br label %493

493:                                              ; preds = %492, %488
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  %494 = load i32, ptr %9, align 4
  switch i32 %494, label %498 [
    i32 0, label %495
  ]

495:                                              ; preds = %493
  br label %497

496:                                              ; preds = %491, %436
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  br label %501

497:                                              ; preds = %495, %423
  store i32 0, ptr %9, align 4
  br label %498

498:                                              ; preds = %497, %493, %411
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #5
  %499 = load i32, ptr %9, align 4
  switch i32 %499, label %503 [
    i32 0, label %500
  ]

500:                                              ; preds = %498
  br label %502

501:                                              ; preds = %496, %412
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #5
  br label %506

502:                                              ; preds = %500, %399, %394
  store i32 0, ptr %9, align 4
  br label %503

503:                                              ; preds = %502, %498, %393, %377, %363, %346
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  %504 = load i32, ptr %9, align 4
  switch i32 %504, label %511 [
    i32 0, label %505
    i32 4, label %509
  ]

505:                                              ; preds = %503
  br label %508

506:                                              ; preds = %501, %351
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  br label %507

507:                                              ; preds = %506, %347
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %512

508:                                              ; preds = %505, %319
  br label %509

509:                                              ; preds = %508, %503, %327, %316, %302, %290, %265, %148, %134, %117
  %510 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %510, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %511

511:                                              ; preds = %509, %503, %265, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %11) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %520

512:                                              ; preds = %507, %271, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  br label %513

513:                                              ; preds = %512, %101
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br label %514

514:                                              ; preds = %513, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br label %515

515:                                              ; preds = %514, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %516

516:                                              ; preds = %515, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br label %517

517:                                              ; preds = %516, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %518

518:                                              ; preds = %517, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %11) #5
  br label %519

519:                                              ; preds = %518, %77
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %522

520:                                              ; preds = %511, %50, %40
  call void @_ZN7UapkiNS13CertValidator13CertValidatorD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #5
  call void @llvm.lifetime.end.p0(i64 88, ptr %6) #5
  %521 = load i32, ptr %3, align 4
  ret i32 %521

522:                                              ; preds = %519, %41
  call void @_ZN7UapkiNS13CertValidator13CertValidatorD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #5
  call void @llvm.lifetime.end.p0(i64 88, ptr %6) #5
  br label %523

523:                                              ; preds = %522
  %524 = load ptr, ptr %7, align 8
  %525 = load i32, ptr %8, align 4
  %526 = insertvalue { ptr, i32 } poison, ptr %524, 0
  %527 = insertvalue { ptr, i32 } %526, i32 %525, 1
  resume { ptr, i32 } %527
}

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

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

declare noundef zeroext i1 @_ZN7UapkiNS13CertValidator13CertValidator4initEPNS_13LibraryConfigEPNS_4Cert8CerStoreEPNS_3Crl8CrlStoreE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, ptr noundef) #2

declare noundef ptr @_ZN7UapkiNS10get_configEv() #2

declare i32 @__gxx_personality_v0(...)

declare noundef ptr @_ZN7UapkiNS12get_cerstoreEv() #2

declare noundef ptr @_ZN7UapkiNS12get_crlstoreEv() #2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare noundef i32 @_ZN12ParsonHelper19jsonObjectGetUint32EP13json_object_tPKcj(ptr noundef, ptr noundef, i32 noundef) #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 ptr @json_object_get_hex(ptr noundef, ptr noundef) #2

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

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper4initEv(ptr noundef nonnull align 8 dereferenceable(92)) #2

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

declare noundef i32 @_ZN7UapkiNS4Cert8CerStore15getCertByCertIdEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, 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 noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper14addIssuerAndSNEPKNS_4Cert7CerItemEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92), ptr noundef, ptr noundef) #2

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

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

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

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

declare i32 @hash_from_oid(ptr noundef) #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 i32 @hash(i32 noundef, ptr noundef, 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 noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper9addCertIdERKNS_19AlgorithmIdentifierEPK12ByteArray_stS7_S7_(ptr noundef nonnull align 8 dereferenceable(92), ptr noundef nonnull align 8 dereferenceable(40), 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: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS19AlgorithmIdentifierD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper8genNonceEm(ptr noundef nonnull align 8 dereferenceable(92), i64 noundef) #2

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper13encodeRequestEv(ptr noundef nonnull align 8 dereferenceable(92)) #2

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

declare noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper17getRequestEncodedEb(ptr noundef nonnull align 8 dereferenceable(92), i1 noundef zeroext) #2

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

declare noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv() #2

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

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

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

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

declare noundef ptr @_ZN7UapkiNS4Ocsp19responseStatusToStrENS0_14ResponseStatusE(i32 noundef) #2

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

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

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator19processResponseDataERNS_4Ocsp10OcspHelperERNS3_18SingleResponseInfoEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(92), ptr noundef nonnull align 8 dereferenceable(36), ptr noundef) #2

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #4

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

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 = { 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 #5 = { nounwind }

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

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


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

%"class.UapkiNS::CertValidator::CertValidator" = type { ptr, ptr, ptr, %"class.std::vector", %"class.std::vector.0", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.UapkiNS::Ocsp::OcspHelper" = type <{ %"class.std::vector.13", ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, [4 x i8] }>
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" = type { ptr, ptr, 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::lock_guard" = type { ptr }
%"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo" = type <{ i32, [4 x i8], i64, i64, i64, i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZN10HttpHelper25CONTENT_TYPE_OCSP_REQUESTE = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local i32 @uapki_cert_status_by_ocsp(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.UapkiNS::CertValidator::CertValidator", align 8
  %4 = alloca %"class.UapkiNS::Ocsp::OcspHelper", align 8
  %5 = alloca ptr, 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.UapkiNS::SmartBA", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"struct.UapkiNS::AlgorithmIdentifier", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.UapkiNS::SmartBA", align 8
  %15 = alloca %"class.UapkiNS::SmartBA", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::lock_guard", align 8
  %19 = alloca %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.std::lock_guard", align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %3) #5
  call void @_ZN7UapkiNS13CertValidator13CertValidatorC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %3)
  %22 = invoke noundef ptr @_ZN7UapkiNS10get_configEv()
          to label %23 unwind label %30

23:                                               ; preds = %2
  %24 = invoke noundef ptr @_ZN7UapkiNS12get_cerstoreEv()
          to label %25 unwind label %30

25:                                               ; preds = %23
  %26 = invoke noundef ptr @_ZN7UapkiNS12get_crlstoreEv()
          to label %27 unwind label %30

27:                                               ; preds = %25
  %28 = invoke noundef zeroext i1 @_ZN7UapkiNS13CertValidator13CertValidator4initEPNS_13LibraryConfigEPNS_4Cert8CerStoreEPNS_3Crl8CrlStoreE(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef %22, ptr noundef %24, ptr noundef %26)
          to label %29 unwind label %30

29:                                               ; preds = %27
  br i1 %28, label %32, label %240

30:                                               ; preds = %27, %25, %23, %2
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %241

32:                                               ; preds = %29
  %33 = call noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator12getLibConfigEv(ptr noundef nonnull align 8 dereferenceable(88) %3)
  %34 = call noundef zeroext i1 @_ZNK7UapkiNS13LibraryConfig13isInitializedEv(ptr noundef nonnull align 8 dereferenceable(97) %33)
  br i1 %34, label %35, label %240

35:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  invoke void @_ZN7UapkiNS4Ocsp10OcspHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(92) %4)
          to label %36 unwind label %49

36:                                               ; preds = %35
  %37 = call noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  invoke void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %38 unwind label %51

38:                                               ; preds = %36
  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
  %39 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectGetUint32EP13json_object_tPKcj(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 0)
          to label %40 unwind label %53

40:                                               ; preds = %38
  %41 = invoke ptr @json_object_get_base64(ptr noundef %0, ptr noundef nonnull @.str.2)
          to label %42 unwind label %53

42:                                               ; preds = %40
  %43 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %41)
  %44 = invoke ptr @json_object_get_hex(ptr noundef %0, ptr noundef nonnull @.str.3)
          to label %45 unwind label %53

45:                                               ; preds = %42
  %46 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %44)
  %47 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %48 unwind label %53

48:                                               ; preds = %45
  br i1 %47, label %236, label %55

49:                                               ; preds = %35
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %239

51:                                               ; preds = %36
  %52 = landingpad { ptr, i32 }
          cleanup
  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 label %238

53:                                               ; preds = %145, %142, %139, %136, %134, %133, %130, %129, %125, %72, %67, %66, %62, %59, %58, %55, %45, %42, %40, %38
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %237

55:                                               ; preds = %48
  %56 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper4initEv(ptr noundef nonnull align 8 dereferenceable(92) %4)
          to label %57 unwind label %53

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

58:                                               ; preds = %57
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 65, i32 noundef %56)
          to label %236 unwind label %53

59:                                               ; preds = %57
  %60 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %61 unwind label %53

61:                                               ; preds = %59
  br i1 %60, label %73, label %62

62:                                               ; preds = %61
  %63 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %64 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore15getCertByCertIdEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %37, ptr noundef %63, ptr noundef nonnull %5)
          to label %65 unwind label %53

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

66:                                               ; preds = %65
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 68, i32 noundef %64)
          to label %236 unwind label %53

67:                                               ; preds = %65
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %70 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper14addIssuerAndSNEPKNS_4Cert7CerItemEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %4, ptr noundef %68, ptr noundef %69)
          to label %71 unwind label %53

71:                                               ; preds = %67
  %.not116 = icmp eq i32 %70, 0
  br i1 %.not116, label %123, label %72

72:                                               ; preds = %71
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 69, i32 noundef %70)
          to label %236 unwind label %53

73:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  invoke void @_ZN7UapkiNS19AlgorithmIdentifierC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef null)
          to label %74 unwind label %91

74:                                               ; preds = %73
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  invoke void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef %0, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %75 unwind label %93

75:                                               ; preds = %74
  %76 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  %77 = invoke ptr @json_object_get_base64(ptr noundef %0, ptr noundef nonnull @.str.6)
          to label %78 unwind label %95

78:                                               ; preds = %75
  %79 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %77)
  %80 = invoke ptr @json_object_get_hex(ptr noundef %0, ptr noundef nonnull @.str.7)
          to label %81 unwind label %95

81:                                               ; preds = %78
  %82 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef %80)
  %83 = invoke ptr @json_object_get_hex(ptr noundef %0, ptr noundef nonnull @.str.8)
          to label %84 unwind label %95

84:                                               ; preds = %81
  %85 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef %83)
  %86 = call noundef zeroext i1 @_ZNK7UapkiNS19AlgorithmIdentifier9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
  br i1 %86, label %87, label %90

87:                                               ; preds = %84
  %88 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %89 unwind label %95

89:                                               ; preds = %87
  br i1 %88, label %90, label %97

90:                                               ; preds = %84, %89
  invoke void @stacktrace_create(ptr noundef nonnull @.str.4, i64 noundef 84, i32 noundef 4101, ptr noundef null)
          to label %.thread unwind label %95

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

93:                                               ; preds = %74
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  br label %121

95:                                               ; preds = %120, %114, %97, %90, %87, %81, %78, %75
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %121

97:                                               ; preds = %89
  %98 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %99 unwind label %95

99:                                               ; preds = %97
  br i1 %98, label %100, label %114

100:                                              ; preds = %99
  %101 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  %102 = invoke i32 @hash_from_oid(ptr noundef %101)
          to label %103 unwind label %106

103:                                              ; preds = %100
  %104 = icmp eq i32 %102, 0
  br i1 %104, label %105, label %108

105:                                              ; preds = %103
  invoke void @stacktrace_create(ptr noundef nonnull @.str.4, i64 noundef 89, i32 noundef 4110, ptr noundef null)
          to label %.thread unwind label %106

106:                                              ; preds = %113, %108, %105, %100
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %121

108:                                              ; preds = %103
  %109 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %110 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %111 = invoke i32 @hash(i32 noundef %102, ptr noundef %109, ptr noundef %110)
          to label %112 unwind label %106

112:                                              ; preds = %108
  %.not117 = icmp eq i32 %111, 0
  br i1 %.not117, label %114, label %113

113:                                              ; preds = %112
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 91, i32 noundef %111)
          to label %.thread unwind label %106

114:                                              ; preds = %112, %99
  %115 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %116 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %117 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %118 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper9addCertIdERKNS_19AlgorithmIdentifierEPK12ByteArray_stS7_S7_(ptr noundef nonnull align 8 dereferenceable(92) %4, ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef %115, ptr noundef %116, ptr noundef %117)
          to label %119 unwind label %95

119:                                              ; preds = %114
  %.not118 = icmp eq i32 %118, 0
  br i1 %.not118, label %.thread, label %120

120:                                              ; preds = %119
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 99, i32 noundef %118)
          to label %.thread unwind label %95

.thread:                                          ; preds = %113, %105, %119, %120, %90
  %cond144 = phi i1 [ false, %90 ], [ false, %120 ], [ true, %119 ], [ false, %105 ], [ false, %113 ]
  %.180 = phi i32 [ 4101, %90 ], [ %118, %120 ], [ 0, %119 ], [ 4110, %105 ], [ %111, %113 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @_ZN7UapkiNS19AlgorithmIdentifierD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  br i1 %cond144, label %123, label %236

121:                                              ; preds = %106, %95, %93
  %.pn = phi { ptr, i32 } [ %96, %95 ], [ %107, %106 ], [ %94, %93 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @_ZN7UapkiNS19AlgorithmIdentifierD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  br label %122

122:                                              ; preds = %121, %91
  %.pn.pn = phi { ptr, i32 } [ %.pn, %121 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  br label %237

123:                                              ; preds = %.thread, %71
  %124 = add i32 %39, -8
  %or.cond = icmp ult i32 %124, 57
  br i1 %or.cond, label %125, label %130

125:                                              ; preds = %123
  %126 = zext nneg i32 %39 to i64
  %127 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper8genNonceEm(ptr noundef nonnull align 8 dereferenceable(92) %4, i64 noundef %126)
          to label %128 unwind label %53

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

129:                                              ; preds = %128
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 103, i32 noundef %127)
          to label %236 unwind label %53

130:                                              ; preds = %123, %128
  %131 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper13encodeRequestEv(ptr noundef nonnull align 8 dereferenceable(92) %4)
          to label %132 unwind label %53

132:                                              ; preds = %130
  %.not122 = icmp eq i32 %131, 0
  br i1 %.not122, label %134, label %133

133:                                              ; preds = %132
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 106, i32 noundef %131)
          to label %236 unwind label %53

134:                                              ; preds = %132
  %135 = invoke noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper17getRequestEncodedEb(ptr noundef nonnull align 8 dereferenceable(92) %4, i1 noundef zeroext false)
          to label %136 unwind label %53

136:                                              ; preds = %134
  %137 = invoke i32 @json_object_set_base64(ptr noundef %1, ptr noundef nonnull @.str.9, ptr noundef %135)
          to label %138 unwind label %53

138:                                              ; preds = %136
  %.not123 = icmp eq i32 %137, 0
  br i1 %.not123, label %140, label %139

139:                                              ; preds = %138
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 108, i32 noundef %137)
          to label %236 unwind label %53

140:                                              ; preds = %138
  %141 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br i1 %141, label %236, label %142

142:                                              ; preds = %140
  %143 = invoke noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv()
          to label %144 unwind label %53

144:                                              ; preds = %142
  br i1 %143, label %145, label %146

145:                                              ; preds = %144
  invoke void @stacktrace_create(ptr noundef nonnull @.str.4, i64 noundef 112, i32 noundef 4120, ptr noundef null)
          to label %236 unwind label %53

146:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  %147 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN10HttpHelper7lockUriERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %148 unwind label %157

148:                                              ; preds = %146
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(40) %147)
          to label %149 unwind label %157

149:                                              ; preds = %148
  %150 = load ptr, ptr @_ZN10HttpHelper25CONTENT_TYPE_OCSP_REQUESTE, align 8, !tbaa !5
  %151 = invoke noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper17getRequestEncodedEb(ptr noundef nonnull align 8 dereferenceable(92) %4, i1 noundef zeroext false)
          to label %152 unwind label %159

152:                                              ; preds = %149
  %153 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %154 = invoke noundef i32 @_ZN10HttpHelper4postERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPK12ByteArray_stPPSA_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %150, ptr noundef %151, ptr noundef %153)
          to label %155 unwind label %159

155:                                              ; preds = %152
  %.not124 = icmp eq i32 %154, 0
  br i1 %.not124, label %161, label %156

156:                                              ; preds = %155
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 122, i32 noundef %154)
          to label %233 unwind label %159

157:                                              ; preds = %148, %146
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %235

159:                                              ; preds = %176, %173, %170, %169, %165, %164, %161, %156, %152, %149
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %234

161:                                              ; preds = %155
  %162 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %163 unwind label %159

163:                                              ; preds = %161
  br i1 %162, label %164, label %165

164:                                              ; preds = %163
  invoke void @stacktrace_create(ptr noundef nonnull @.str.4, i64 noundef 125, i32 noundef 4198, ptr noundef null)
          to label %233 unwind label %159

165:                                              ; preds = %163
  %166 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %167 = invoke i32 @json_object_set_base64(ptr noundef %1, ptr noundef nonnull @.str.10, ptr noundef %166)
          to label %168 unwind label %159

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

169:                                              ; preds = %168
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 127, i32 noundef %167)
          to label %233 unwind label %159

170:                                              ; preds = %168
  %171 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %172 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper13parseResponseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %4, ptr noundef %171)
          to label %173 unwind label %159

173:                                              ; preds = %170
  %174 = call noundef i32 @_ZNK7UapkiNS4Ocsp10OcspHelper17getResponseStatusEv(ptr noundef nonnull align 8 dereferenceable(92) %4)
  %175 = invoke noundef ptr @_ZN7UapkiNS4Ocsp19responseStatusToStrENS0_14ResponseStatusE(i32 noundef %174)
          to label %176 unwind label %159

176:                                              ; preds = %173
  %177 = invoke i32 @json_object_set_string(ptr noundef %1, ptr noundef nonnull @.str.11, ptr noundef %175)
          to label %178 unwind label %159

178:                                              ; preds = %176
  %.not126 = icmp eq i32 %177, 0
  br i1 %.not126, label %179, label %233

179:                                              ; preds = %178
  %180 = icmp eq i32 %172, 0
  br i1 %180, label %181, label %233

181:                                              ; preds = %179
  %182 = call noundef i32 @_ZNK7UapkiNS4Ocsp10OcspHelper17getResponseStatusEv(ptr noundef nonnull align 8 dereferenceable(92) %4)
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %233

184:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #5
  call void @_ZN7UapkiNS4Ocsp10OcspHelper18SingleResponseInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19)
  %185 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator19processResponseDataERNS_4Ocsp10OcspHelperERNS3_18SingleResponseInfoEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef nonnull align 8 dereferenceable(92) %4, ptr noundef nonnull align 8 dereferenceable(36) %19, ptr noundef %1)
          to label %186 unwind label %188

186:                                              ; preds = %184
  %.not127 = icmp eq i32 %185, 0
  br i1 %.not127, label %190, label %187

187:                                              ; preds = %186
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 138, i32 noundef %185)
          to label %231 unwind label %188

188:                                              ; preds = %192, %187, %184
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %232

190:                                              ; preds = %186
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %.not128 = icmp eq ptr %191, null
  br i1 %.not128, label %192, label %.thread149

.thread149:                                       ; preds = %190
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  store ptr null, ptr %20, align 8, !tbaa !5
  br label %196

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

194:                                              ; preds = %192
  br i1 %193, label %231, label %195

195:                                              ; preds = %194
  %.pr = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  store ptr null, ptr %20, align 8, !tbaa !5
  %.not129 = icmp eq ptr %.pr, null
  br i1 %.not129, label %201, label %196

196:                                              ; preds = %.thread149, %195
  %197 = phi ptr [ %191, %.thread149 ], [ %.pr, %195 ]
  %198 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem10getSubjectEv(ptr noundef nonnull align 8 dereferenceable(401) %197)
  br label %.invoke

199:                                              ; preds = %.invoke
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %230

201:                                              ; preds = %195
  %202 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  br label %.invoke

.invoke:                                          ; preds = %196, %201
  %203 = phi ptr [ %202, %201 ], [ %198, %196 ]
  %204 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %205 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore20getCertByIssuerAndSNEPK12ByteArray_stS4_PPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %37, ptr noundef %203, ptr noundef %204, ptr noundef nonnull %20)
          to label %206 unwind label %199

206:                                              ; preds = %.invoke
  %207 = icmp eq i32 %205, 0
  %208 = load ptr, ptr %20, align 8
  %209 = icmp ne ptr %208, null
  %or.cond7 = select i1 %207, i1 %209, i1 false
  br i1 %or.cond7, label %210, label %229

210:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  %211 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7UapkiNS4Cert7CerItem8getMutexEv(ptr noundef nonnull align 8 dereferenceable(401) %208)
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(40) %211)
          to label %212 unwind label %223

212:                                              ; preds = %210
  %213 = load ptr, ptr %20, align 8, !tbaa !5
  %214 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN7UapkiNS4Cert7CerItem19getCertStatusByOcspEv(ptr noundef nonnull align 8 dereferenceable(401) %213)
  %215 = load i32, ptr %19, align 8, !tbaa !9
  %216 = getelementptr inbounds i8, ptr %19, i64 8
  %217 = load i64, ptr %216, align 8, !tbaa !14
  %218 = add i64 %217, 1800000
  %219 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %220 = invoke noundef i32 @_ZN7UapkiNS4Cert14CertStatusInfo3setENS_10CertStatusEmPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(32) %214, i32 noundef %215, i64 noundef %218, ptr noundef %219)
          to label %221 unwind label %225

221:                                              ; preds = %212
  %.not130 = icmp eq i32 %220, 0
  br i1 %.not130, label %.critedge, label %222

222:                                              ; preds = %221
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 154, i32 noundef %220)
          to label %227 unwind label %225

223:                                              ; preds = %210
  %224 = landingpad { ptr, i32 }
          cleanup
  br label %228

225:                                              ; preds = %222, %212
  %226 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  br label %228

227:                                              ; preds = %222
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  br label %229

228:                                              ; preds = %225, %223
  %.pn131 = phi { ptr, i32 } [ %226, %225 ], [ %224, %223 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  br label %230

.critedge:                                        ; preds = %221
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  br label %229

229:                                              ; preds = %206, %.critedge, %227
  %.382 = phi i32 [ %220, %227 ], [ 0, %.critedge ], [ 0, %206 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  br label %231

230:                                              ; preds = %228, %199
  %.pn131.pn = phi { ptr, i32 } [ %.pn131, %228 ], [ %200, %199 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  br label %232

231:                                              ; preds = %229, %194, %187
  %.584 = phi i32 [ %185, %187 ], [ 0, %194 ], [ %.382, %229 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #5
  br label %233

232:                                              ; preds = %230, %188
  %.pn134 = phi { ptr, i32 } [ %189, %188 ], [ %.pn131.pn, %230 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #5
  br label %234

233:                                              ; preds = %231, %179, %181, %178, %169, %164, %156
  %.786 = phi i32 [ %154, %156 ], [ 4198, %164 ], [ %167, %169 ], [ 4113, %178 ], [ 0, %181 ], [ %172, %179 ], [ %.584, %231 ]
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  br label %236

234:                                              ; preds = %232, %159
  %.pn136 = phi { ptr, i32 } [ %160, %159 ], [ %.pn134, %232 ]
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br label %235

235:                                              ; preds = %234, %157
  %.pn136.pn = phi { ptr, i32 } [ %.pn136, %234 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  br label %237

236:                                              ; preds = %233, %.thread, %58, %66, %72, %129, %133, %139, %145, %140, %48
  %.0 = phi i32 [ 4101, %48 ], [ %56, %58 ], [ %.180, %.thread ], [ %127, %129 ], [ %131, %133 ], [ %137, %139 ], [ 0, %140 ], [ 4120, %145 ], [ %.786, %233 ], [ %64, %66 ], [ %70, %72 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %240

237:                                              ; preds = %235, %122, %53
  %.pn139 = phi { ptr, i32 } [ %54, %53 ], [ %.pn136.pn, %235 ], [ %.pn.pn, %122 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %238

238:                                              ; preds = %237, %51
  %.pn139.pn = phi { ptr, i32 } [ %.pn139, %237 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %4) #5
  br label %239

239:                                              ; preds = %238, %49
  %.pn139.pn.pn = phi { ptr, i32 } [ %.pn139.pn, %238 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %241

240:                                              ; preds = %32, %29, %236
  %.1 = phi i32 [ %.0, %236 ], [ 4097, %29 ], [ 4105, %32 ]
  call void @_ZN7UapkiNS13CertValidator13CertValidatorD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #5
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #5
  ret i32 %.1

241:                                              ; preds = %239, %30
  %.pn139.pn.pn.pn = phi { ptr, i32 } [ %.pn139.pn.pn, %239 ], [ %31, %30 ]
  call void @_ZN7UapkiNS13CertValidator13CertValidatorD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #5
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn139.pn.pn.pn
}

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

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

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

declare noundef ptr @_ZN7UapkiNS10get_configEv() local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare noundef ptr @_ZN7UapkiNS12get_cerstoreEv() local_unnamed_addr #2

declare noundef ptr @_ZN7UapkiNS12get_crlstoreEv() local_unnamed_addr #2

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

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

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

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

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

declare void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_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

; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare noundef i32 @_ZN12ParsonHelper19jsonObjectGetUint32EP13json_object_tPKcj(ptr noundef, ptr noundef, i32 noundef) 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 ptr @json_object_get_hex(ptr noundef, ptr 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 noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper4initEv(ptr noundef nonnull align 8 dereferenceable(92)) local_unnamed_addr #2

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

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

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

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

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

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

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

declare i32 @hash_from_oid(ptr noundef) local_unnamed_addr #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 i32 @hash(i32 noundef, ptr noundef, 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 noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper9addCertIdERKNS_19AlgorithmIdentifierEPK12ByteArray_stS7_S7_(ptr noundef nonnull align 8 dereferenceable(92), ptr noundef nonnull align 8 dereferenceable(40), 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: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS19AlgorithmIdentifierD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper8genNonceEm(ptr noundef nonnull align 8 dereferenceable(92), i64 noundef) local_unnamed_addr #2

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper13encodeRequestEv(ptr noundef nonnull align 8 dereferenceable(92)) local_unnamed_addr #2

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

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

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

declare noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv() local_unnamed_addr #2

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

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

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

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

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

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

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

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator19processResponseDataERNS_4Ocsp10OcspHelperERNS3_18SingleResponseInfoEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(92), ptr noundef nonnull align 8 dereferenceable(36), ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #4

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

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 = { 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 #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, !11, i64 0}
!10 = !{!"_ZTSN7UapkiNS4Ocsp10OcspHelper18SingleResponseInfoE", !11, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!11 = !{!"_ZTSN7UapkiNS10CertStatusE", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN7UapkiNS9CrlReasonE", !7, i64 0}
!14 = !{!10, !12, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass