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

; 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.ParsonHelper = type { 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::LibraryConfig::OcspParams" = type { i64 }
%"struct.UapkiNS::LibraryConfig::TspParams" = type { i8, i8, i64, %"class.std::__cxx11::basic_string", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local i32 @uapki_init(ptr noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %class.ParsonHelper, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @_ZN12ParsonHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %26 = invoke noundef ptr @_ZN7UapkiNS10get_configEv()
          to label %27 unwind label %47

27:                                               ; preds = %2
  store ptr %26, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %28 = invoke noundef ptr @_ZN7UapkiNS12get_cerstoreEv()
          to label %29 unwind label %51

29:                                               ; preds = %27
  store ptr %28, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %30 = invoke noundef ptr @_ZN7UapkiNS12get_crlstoreEv()
          to label %31 unwind label %55

31:                                               ; preds = %29
  store ptr %30, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  invoke void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef %32, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %33 unwind label %59

33:                                               ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %34, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %43

37:                                               ; preds = %33
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %43

40:                                               ; preds = %37
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %69, label %43

43:                                               ; preds = %40, %37, %33
  br label %44

44:                                               ; preds = %43
  store i32 4097, ptr %6, align 4, !tbaa !9
  %45 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str.1, i64 noundef 219, i32 noundef %45, ptr noundef null)
          to label %46 unwind label %63

46:                                               ; preds = %44
  br label %425

47:                                               ; preds = %2
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %9, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %10, align 4
  br label %441

51:                                               ; preds = %27
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %9, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %10, align 4
  br label %440

55:                                               ; preds = %29
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %9, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %10, align 4
  br label %439

59:                                               ; preds = %31
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %9, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  br label %438

63:                                               ; preds = %431, %430, %429, %428, %419, %415, %339, %334, %331, %324, %321, %315, %310, %307, %280, %275, %272, %264, %258, %255, %250, %246, %238, %235, %232, %227, %224, %216, %208, %205, %202, %193, %190, %188, %187, %183, %165, %160, %156, %150, %147, %142, %137, %133, %127, %122, %119, %113, %108, %105, %99, %94, %91, %87, %82, %77, %69, %44
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %9, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %10, align 4
  br label %437

67:                                               ; No predecessors!
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68, %40
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = invoke noundef zeroext i1 @_ZNK7UapkiNS13LibraryConfig13isInitializedEv(ptr noundef nonnull align 8 dereferenceable(97) %70)
          to label %72 unwind label %63

72:                                               ; preds = %69
  br i1 %71, label %73, label %74

73:                                               ; preds = %72
  store i32 4106, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %435

74:                                               ; preds = %72
  %75 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br i1 %75, label %90, label %76

76:                                               ; preds = %74
  br label %77

77:                                               ; preds = %76
  %78 = invoke noundef i32 @_ZL11load_configR12ParsonHelperRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %79 unwind label %63

79:                                               ; preds = %77
  store i32 %78, ptr %6, align 4, !tbaa !9
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %85

82:                                               ; preds = %79
  %83 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 225, i32 noundef %83)
          to label %84 unwind label %63

84:                                               ; preds = %82
  br label %425

85:                                               ; preds = %79
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = invoke noundef ptr @_ZNK12ParsonHelper10rootObjectEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %89 unwind label %63

89:                                               ; preds = %87
  store ptr %88, ptr %15, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %89, %74
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = invoke ptr @json_object_get_object(ptr noundef %92, ptr noundef @.str.2)
          to label %94 unwind label %63

94:                                               ; preds = %91
  %95 = invoke noundef i32 @_ZL18setup_cm_providersP13json_object_t(ptr noundef %93)
          to label %96 unwind label %63

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

99:                                               ; preds = %96
  %100 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 230, i32 noundef %100)
          to label %101 unwind label %63

101:                                              ; preds = %99
  br label %425

102:                                              ; preds = %96
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = invoke ptr @json_object_get_object(ptr noundef %106, ptr noundef @.str.3)
          to label %108 unwind label %63

108:                                              ; preds = %105
  %109 = invoke noundef i32 @_ZL16setup_cert_cacheP13json_object_t(ptr noundef %107)
          to label %110 unwind label %63

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

113:                                              ; preds = %110
  %114 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 232, i32 noundef %114)
          to label %115 unwind label %63

115:                                              ; preds = %113
  br label %425

116:                                              ; preds = %110
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = invoke ptr @json_object_get_object(ptr noundef %120, ptr noundef @.str.4)
          to label %122 unwind label %63

122:                                              ; preds = %119
  %123 = invoke noundef i32 @_ZL15setup_crl_cacheP13json_object_t(ptr noundef %121)
          to label %124 unwind label %63

124:                                              ; preds = %122
  store i32 %123, ptr %6, align 4, !tbaa !9
  %125 = load i32, ptr %6, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %124
  %128 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 234, i32 noundef %128)
          to label %129 unwind label %63

129:                                              ; preds = %127
  br label %425

130:                                              ; preds = %124
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = invoke ptr @json_object_get_object(ptr noundef %135, ptr noundef @.str.5)
          to label %137 unwind label %63

137:                                              ; preds = %133
  %138 = invoke noundef i32 @_ZL10setup_ocspRN7UapkiNS13LibraryConfigEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(97) %134, ptr noundef %136)
          to label %139 unwind label %63

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

142:                                              ; preds = %139
  %143 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 236, i32 noundef %143)
          to label %144 unwind label %63

144:                                              ; preds = %142
  br label %425

145:                                              ; preds = %139
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %15, align 8, !tbaa !5
  %149 = invoke noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %148, ptr noundef @.str.6, i1 noundef zeroext false)
          to label %150 unwind label %63

150:                                              ; preds = %147
  %151 = zext i1 %149 to i8
  store i8 %151, ptr %20, align 1, !tbaa !11
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %154 = trunc i8 %153 to i1
  invoke void @_ZN7UapkiNS13LibraryConfig10setOfflineEb(ptr noundef nonnull align 8 dereferenceable(97) %152, i1 noundef zeroext %154)
          to label %155 unwind label %63

155:                                              ; preds = %150
  br label %156

156:                                              ; preds = %155
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = invoke ptr @json_object_get_object(ptr noundef %158, ptr noundef @.str.7)
          to label %160 unwind label %63

160:                                              ; preds = %156
  %161 = invoke noundef i32 @_ZL9setup_tspRN7UapkiNS13LibraryConfigEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(97) %157, ptr noundef %159)
          to label %162 unwind label %63

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

165:                                              ; preds = %162
  %166 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 241, i32 noundef %166)
          to label %167 unwind label %63

167:                                              ; preds = %165
  br label %425

168:                                              ; preds = %162
  br label %169

169:                                              ; preds = %168
  br label %170

170:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %171 = load ptr, ptr %15, align 8, !tbaa !5
  %172 = invoke ptr @json_object_get_object(ptr noundef %171, ptr noundef @.str.8)
          to label %173 unwind label %198

173:                                              ; preds = %170
  store ptr %172, ptr %22, align 8, !tbaa !5
  %174 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %175 = trunc i8 %174 to i1
  %176 = load ptr, ptr %22, align 8, !tbaa !5
  %177 = invoke ptr @json_object_get_string(ptr noundef %176, ptr noundef @.str.9)
          to label %178 unwind label %198

178:                                              ; preds = %173
  %179 = load ptr, ptr %22, align 8, !tbaa !5
  %180 = invoke ptr @json_object_get_string(ptr noundef %179, ptr noundef @.str.10)
          to label %181 unwind label %198

181:                                              ; preds = %178
  %182 = invoke noundef i32 @_ZN10HttpHelper4initEbPKcS1_(i1 noundef zeroext %175, ptr noundef %177, ptr noundef %180)
          to label %183 unwind label %198

183:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = load ptr, ptr %15, align 8, !tbaa !5
  %186 = invoke noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %185, ptr noundef @.str.11, i1 noundef zeroext false)
          to label %187 unwind label %63

187:                                              ; preds = %183
  invoke void @_ZN7UapkiNS13LibraryConfig18setValidationByCrlEb(ptr noundef nonnull align 8 dereferenceable(97) %184, i1 noundef zeroext %186)
          to label %188 unwind label %63

188:                                              ; preds = %187
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN7UapkiNS13LibraryConfig14setInitializedEb(ptr noundef nonnull align 8 dereferenceable(97) %189, i1 noundef zeroext true)
          to label %190 unwind label %63

190:                                              ; preds = %188
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = invoke ptr @json_value_init_object()
          to label %193 unwind label %63

193:                                              ; preds = %190
  %194 = invoke i32 @json_object_set_value(ptr noundef %191, ptr noundef @.str.3, ptr noundef %192)
          to label %195 unwind label %63

195:                                              ; preds = %193
  %196 = icmp ne i32 %194, 0
  br i1 %196, label %197, label %202

197:                                              ; preds = %195
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

198:                                              ; preds = %181, %178, %173, %170
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %9, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %437

202:                                              ; preds = %195
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = invoke ptr @json_object_get_object(ptr noundef %203, ptr noundef @.str.3)
          to label %205 unwind label %63

205:                                              ; preds = %202
  store ptr %204, ptr %16, align 8, !tbaa !5
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore8getCountERmS2_(ptr noundef nonnull align 8 dereferenceable(96) %206, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %208 unwind label %63

208:                                              ; preds = %205
  %209 = load ptr, ptr %16, align 8, !tbaa !5
  %210 = load i64, ptr %17, align 8, !tbaa !15
  %211 = trunc i64 %210 to i32
  %212 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef %209, ptr noundef @.str.12, i32 noundef %211)
          to label %213 unwind label %63

213:                                              ; preds = %208
  %214 = icmp ne i32 %212, 0
  br i1 %214, label %215, label %216

215:                                              ; preds = %213
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

216:                                              ; preds = %213
  %217 = load ptr, ptr %16, align 8, !tbaa !5
  %218 = load i64, ptr %19, align 8, !tbaa !15
  %219 = trunc i64 %218 to i32
  %220 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef %217, ptr noundef @.str.13, i32 noundef %219)
          to label %221 unwind label %63

221:                                              ; preds = %216
  %222 = icmp ne i32 %220, 0
  br i1 %222, label %223, label %224

223:                                              ; preds = %221
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

224:                                              ; preds = %221
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = invoke ptr @json_value_init_object()
          to label %227 unwind label %63

227:                                              ; preds = %224
  %228 = invoke i32 @json_object_set_value(ptr noundef %225, ptr noundef @.str.4, ptr noundef %226)
          to label %229 unwind label %63

229:                                              ; preds = %227
  %230 = icmp ne i32 %228, 0
  br i1 %230, label %231, label %232

231:                                              ; preds = %229
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

232:                                              ; preds = %229
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = invoke ptr @json_object_get_object(ptr noundef %233, ptr noundef @.str.4)
          to label %235 unwind label %63

235:                                              ; preds = %232
  store ptr %234, ptr %16, align 8, !tbaa !5
  %236 = load ptr, ptr %12, align 8, !tbaa !5
  %237 = invoke noundef i32 @_ZN7UapkiNS3Crl8CrlStore8getCountERm(ptr noundef nonnull align 8 dereferenceable(144) %236, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %238 unwind label %63

238:                                              ; preds = %235
  %239 = load ptr, ptr %16, align 8, !tbaa !5
  %240 = load i64, ptr %18, align 8, !tbaa !15
  %241 = trunc i64 %240 to i32
  %242 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef %239, ptr noundef @.str.14, i32 noundef %241)
          to label %243 unwind label %63

243:                                              ; preds = %238
  %244 = icmp ne i32 %242, 0
  br i1 %244, label %245, label %246

245:                                              ; preds = %243
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

246:                                              ; preds = %243
  %247 = load ptr, ptr %16, align 8, !tbaa !5
  %248 = load ptr, ptr %12, align 8, !tbaa !5
  %249 = invoke noundef zeroext i1 @_ZNK7UapkiNS3Crl8CrlStore11useDeltaCrlEv(ptr noundef nonnull align 8 dereferenceable(144) %248)
          to label %250 unwind label %63

250:                                              ; preds = %246
  %251 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %247, ptr noundef @.str.15, i1 noundef zeroext %249)
          to label %252 unwind label %63

252:                                              ; preds = %250
  %253 = icmp ne i32 %251, 0
  br i1 %253, label %254, label %255

254:                                              ; preds = %252
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

255:                                              ; preds = %252
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  %257 = invoke noundef i64 @_ZN11CmProviders5countEv()
          to label %258 unwind label %63

258:                                              ; preds = %255
  %259 = trunc i64 %257 to i32
  %260 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef %256, ptr noundef @.str.16, i32 noundef %259)
          to label %261 unwind label %63

261:                                              ; preds = %258
  %262 = icmp ne i32 %260, 0
  br i1 %262, label %263, label %264

263:                                              ; preds = %261
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

264:                                              ; preds = %261
  %265 = load ptr, ptr %5, align 8, !tbaa !5
  %266 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %267 = trunc i8 %266 to i1
  %268 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %265, ptr noundef @.str.6, i1 noundef zeroext %267)
          to label %269 unwind label %63

269:                                              ; preds = %264
  %270 = icmp ne i32 %268, 0
  br i1 %270, label %271, label %272

271:                                              ; preds = %269
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

272:                                              ; preds = %269
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = invoke ptr @json_value_init_object()
          to label %275 unwind label %63

275:                                              ; preds = %272
  %276 = invoke i32 @json_object_set_value(ptr noundef %273, ptr noundef @.str.5, ptr noundef %274)
          to label %277 unwind label %63

277:                                              ; preds = %275
  %278 = icmp ne i32 %276, 0
  br i1 %278, label %279, label %280

279:                                              ; preds = %277
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

280:                                              ; preds = %277
  %281 = load ptr, ptr %5, align 8, !tbaa !5
  %282 = invoke ptr @json_object_get_object(ptr noundef %281, ptr noundef @.str.5)
          to label %283 unwind label %63

283:                                              ; preds = %280
  store ptr %282, ptr %16, align 8, !tbaa !5
  %284 = load ptr, ptr %16, align 8, !tbaa !5
  %285 = icmp ne ptr %284, null
  br i1 %285, label %286, label %307

286:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %287 = load ptr, ptr %8, align 8, !tbaa !5
  %288 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7UapkiNS13LibraryConfig7getOcspEv(ptr noundef nonnull align 8 dereferenceable(97) %287)
          to label %289 unwind label %299

289:                                              ; preds = %286
  store ptr %288, ptr %23, align 8, !tbaa !5
  %290 = load ptr, ptr %16, align 8, !tbaa !5
  %291 = load ptr, ptr %23, align 8, !tbaa !5
  %292 = getelementptr inbounds %"struct.UapkiNS::LibraryConfig::OcspParams", ptr %291, i32 0, i32 0
  %293 = load i64, ptr %292, align 8, !tbaa !17
  %294 = trunc i64 %293 to i32
  %295 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef %290, ptr noundef @.str.17, i32 noundef %294)
          to label %296 unwind label %299

296:                                              ; preds = %289
  %297 = icmp ne i32 %295, 0
  br i1 %297, label %298, label %303

298:                                              ; preds = %296
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %21, align 4
  br label %304

299:                                              ; preds = %289, %286
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %9, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %437

303:                                              ; preds = %296
  store i32 0, ptr %21, align 4
  br label %304

304:                                              ; preds = %303, %298
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  %305 = load i32, ptr %21, align 4
  switch i32 %305, label %435 [
    i32 0, label %306
    i32 4, label %425
  ]

306:                                              ; preds = %304
  br label %307

307:                                              ; preds = %306, %283
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = invoke ptr @json_value_init_object()
          to label %310 unwind label %63

310:                                              ; preds = %307
  %311 = invoke i32 @json_object_set_value(ptr noundef %308, ptr noundef @.str.8, ptr noundef %309)
          to label %312 unwind label %63

312:                                              ; preds = %310
  %313 = icmp ne i32 %311, 0
  br i1 %313, label %314, label %315

314:                                              ; preds = %312
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

315:                                              ; preds = %312
  %316 = load ptr, ptr %5, align 8, !tbaa !5
  %317 = invoke ptr @json_object_get_object(ptr noundef %316, ptr noundef @.str.8)
          to label %318 unwind label %63

318:                                              ; preds = %315
  store ptr %317, ptr %16, align 8, !tbaa !5
  %319 = load ptr, ptr %16, align 8, !tbaa !5
  %320 = icmp ne ptr %319, null
  br i1 %320, label %321, label %331

321:                                              ; preds = %318
  %322 = load ptr, ptr %16, align 8, !tbaa !5
  %323 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN10HttpHelper11getProxyUrlB5cxx11Ev()
          to label %324 unwind label %63

324:                                              ; preds = %321
  %325 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %323) #5
  %326 = invoke i32 @json_object_set_string(ptr noundef %322, ptr noundef @.str.9, ptr noundef %325)
          to label %327 unwind label %63

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

329:                                              ; preds = %327
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

330:                                              ; preds = %327
  br label %331

331:                                              ; preds = %330, %318
  %332 = load ptr, ptr %5, align 8, !tbaa !5
  %333 = invoke ptr @json_value_init_object()
          to label %334 unwind label %63

334:                                              ; preds = %331
  %335 = invoke i32 @json_object_set_value(ptr noundef %332, ptr noundef @.str.7, ptr noundef %333)
          to label %336 unwind label %63

336:                                              ; preds = %334
  %337 = icmp ne i32 %335, 0
  br i1 %337, label %338, label %339

338:                                              ; preds = %336
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

339:                                              ; preds = %336
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = invoke ptr @json_object_get_object(ptr noundef %340, ptr noundef @.str.7)
          to label %342 unwind label %63

342:                                              ; preds = %339
  store ptr %341, ptr %16, align 8, !tbaa !5
  %343 = load ptr, ptr %16, align 8, !tbaa !5
  %344 = icmp ne ptr %343, null
  br i1 %344, label %345, label %415

345:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %346 = load ptr, ptr %8, align 8, !tbaa !5
  %347 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZNK7UapkiNS13LibraryConfig6getTspEv(ptr noundef nonnull align 8 dereferenceable(97) %346)
          to label %348 unwind label %361

348:                                              ; preds = %345
  store ptr %347, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #5
  %349 = load ptr, ptr %24, align 8, !tbaa !5
  %350 = getelementptr inbounds %"struct.UapkiNS::LibraryConfig::TspParams", ptr %349, i32 0, i32 4
  invoke void @_ZN7UapkiNS4Util11joinStringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEc(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %350, i8 noundef signext 59)
          to label %351 unwind label %365

351:                                              ; preds = %348
  %352 = load ptr, ptr %16, align 8, !tbaa !5
  %353 = load ptr, ptr %24, align 8, !tbaa !5
  %354 = getelementptr inbounds %"struct.UapkiNS::LibraryConfig::TspParams", ptr %353, i32 0, i32 0
  %355 = load i8, ptr %354, align 8, !tbaa !19, !range !13, !noundef !14
  %356 = trunc i8 %355 to i1
  %357 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %352, ptr noundef @.str.18, i1 noundef zeroext %356)
          to label %358 unwind label %369

358:                                              ; preds = %351
  %359 = icmp ne i32 %357, 0
  br i1 %359, label %360, label %373

360:                                              ; preds = %358
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %21, align 4
  br label %410

361:                                              ; preds = %345
  %362 = landingpad { ptr, i32 }
          cleanup
  %363 = extractvalue { ptr, i32 } %362, 0
  store ptr %363, ptr %9, align 8
  %364 = extractvalue { ptr, i32 } %362, 1
  store i32 %364, ptr %10, align 4
  br label %414

365:                                              ; preds = %348
  %366 = landingpad { ptr, i32 }
          cleanup
  %367 = extractvalue { ptr, i32 } %366, 0
  store ptr %367, ptr %9, align 8
  %368 = extractvalue { ptr, i32 } %366, 1
  store i32 %368, ptr %10, align 4
  br label %413

369:                                              ; preds = %402, %393, %383, %373, %351
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %9, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  br label %413

373:                                              ; preds = %358
  %374 = load ptr, ptr %16, align 8, !tbaa !5
  %375 = load ptr, ptr %24, align 8, !tbaa !5
  %376 = getelementptr inbounds %"struct.UapkiNS::LibraryConfig::TspParams", ptr %375, i32 0, i32 1
  %377 = load i8, ptr %376, align 1, !tbaa !27, !range !13, !noundef !14
  %378 = trunc i8 %377 to i1
  %379 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %374, ptr noundef @.str.19, i1 noundef zeroext %378)
          to label %380 unwind label %369

380:                                              ; preds = %373
  %381 = icmp ne i32 %379, 0
  br i1 %381, label %382, label %383

382:                                              ; preds = %380
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %21, align 4
  br label %410

383:                                              ; preds = %380
  %384 = load ptr, ptr %16, align 8, !tbaa !5
  %385 = load ptr, ptr %24, align 8, !tbaa !5
  %386 = getelementptr inbounds %"struct.UapkiNS::LibraryConfig::TspParams", ptr %385, i32 0, i32 2
  %387 = load i64, ptr %386, align 8, !tbaa !28
  %388 = trunc i64 %387 to i32
  %389 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef %384, ptr noundef @.str.17, i32 noundef %388)
          to label %390 unwind label %369

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

392:                                              ; preds = %390
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %21, align 4
  br label %410

393:                                              ; preds = %390
  %394 = load ptr, ptr %16, align 8, !tbaa !5
  %395 = load ptr, ptr %24, align 8, !tbaa !5
  %396 = getelementptr inbounds %"struct.UapkiNS::LibraryConfig::TspParams", ptr %395, i32 0, i32 3
  %397 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %396) #5
  %398 = invoke i32 @json_object_set_string(ptr noundef %394, ptr noundef @.str.20, ptr noundef %397)
          to label %399 unwind label %369

399:                                              ; preds = %393
  %400 = icmp ne i32 %398, 0
  br i1 %400, label %401, label %402

401:                                              ; preds = %399
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %21, align 4
  br label %410

402:                                              ; preds = %399
  %403 = load ptr, ptr %16, align 8, !tbaa !5
  %404 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  %405 = invoke i32 @json_object_set_string(ptr noundef %403, ptr noundef @.str.9, ptr noundef %404)
          to label %406 unwind label %369

406:                                              ; preds = %402
  %407 = icmp ne i32 %405, 0
  br i1 %407, label %408, label %409

408:                                              ; preds = %406
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %21, align 4
  br label %410

409:                                              ; preds = %406
  store i32 0, ptr %21, align 4
  br label %410

410:                                              ; preds = %409, %408, %401, %392, %382, %360
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  %411 = load i32, ptr %21, align 4
  switch i32 %411, label %435 [
    i32 0, label %412
    i32 4, label %425
  ]

412:                                              ; preds = %410
  br label %415

413:                                              ; preds = %369, %365
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #5
  br label %414

414:                                              ; preds = %413, %361
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %437

415:                                              ; preds = %412, %342
  %416 = load ptr, ptr %5, align 8, !tbaa !5
  %417 = load ptr, ptr %8, align 8, !tbaa !5
  %418 = invoke noundef zeroext i1 @_ZNK7UapkiNS13LibraryConfig18getValidationByCrlEv(ptr noundef nonnull align 8 dereferenceable(97) %417)
          to label %419 unwind label %63

419:                                              ; preds = %415
  %420 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %416, ptr noundef @.str.11, i1 noundef zeroext %418)
          to label %421 unwind label %63

421:                                              ; preds = %419
  %422 = icmp ne i32 %420, 0
  br i1 %422, label %423, label %424

423:                                              ; preds = %421
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %425

424:                                              ; preds = %421
  br label %425

425:                                              ; preds = %424, %423, %410, %338, %329, %314, %304, %279, %271, %263, %254, %245, %231, %223, %215, %197, %167, %144, %129, %115, %101, %84, %46
  %426 = load i32, ptr %6, align 4, !tbaa !9
  %427 = icmp ne i32 %426, 0
  br i1 %427, label %428, label %433

428:                                              ; preds = %425
  invoke void @_ZN7UapkiNS14release_configEv()
          to label %429 unwind label %63

429:                                              ; preds = %428
  invoke void @_ZN11CmProviders6deinitEv()
          to label %430 unwind label %63

430:                                              ; preds = %429
  invoke void @_ZN7UapkiNS14release_storesEv()
          to label %431 unwind label %63

431:                                              ; preds = %430
  invoke void @_ZN10HttpHelper6deinitEv()
          to label %432 unwind label %63

432:                                              ; preds = %431
  br label %433

433:                                              ; preds = %432, %425
  %434 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %434, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %435

435:                                              ; preds = %433, %410, %304, %73
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZN12ParsonHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %436 = load i32, ptr %3, align 4
  ret i32 %436

437:                                              ; preds = %414, %299, %198, %63
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %438

438:                                              ; preds = %437, %59
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  br label %439

439:                                              ; preds = %438, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %440

440:                                              ; preds = %439, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %441

441:                                              ; preds = %440, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZN12ParsonHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %442

442:                                              ; preds = %441
  %443 = load ptr, ptr %9, align 8
  %444 = load i32, ptr %10, align 4
  %445 = insertvalue { ptr, i32 } poison, ptr %443, 0
  %446 = insertvalue { ptr, i32 } %445, i32 %444, 1
  resume { ptr, i32 } %446
}

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

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

declare noundef ptr @_ZN7UapkiNS10get_configEv() #2

declare i32 @__gxx_personality_v0(...)

declare noundef ptr @_ZN7UapkiNS12get_cerstoreEv() #2

declare noundef ptr @_ZN7UapkiNS12get_crlstoreEv() #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 void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL18setup_cm_providersP13json_object_t(ptr noundef) #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16setup_cert_cacheP13json_object_t(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15setup_crl_cacheP13json_object_t(ptr noundef) #0

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

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

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

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

declare noundef i32 @_ZN10HttpHelper4initEbPKcS1_(i1 noundef zeroext, ptr noundef, ptr noundef) #2

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

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

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

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

declare ptr @json_value_init_object() #2

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

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

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

declare noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

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

declare noundef i64 @_ZN11CmProviders5countEv() #2

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

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10HttpHelper11getProxyUrlB5cxx11Ev() #2

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

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

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

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

declare void @_ZN7UapkiNS14release_configEv() #2

declare void @_ZN11CmProviders6deinitEv() #2

declare void @_ZN7UapkiNS14release_storesEv() #2

declare void @_ZN10HttpHelper6deinitEv() #2

; Function Attrs: nounwind
declare void @_ZN12ParsonHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !16, i64 0}
!18 = !{!"_ZTSN7UapkiNS13LibraryConfig10OcspParamsE", !16, i64 0}
!19 = !{!20, !12, i64 0}
!20 = !{!"_ZTSN7UapkiNS13LibraryConfig9TspParamsE", !12, i64 0, !12, i64 1, !16, i64 8, !21, i64 16, !23, i64 48}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !16, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!20, !12, i64 1}
!28 = !{!20, !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.ParsonHelper = type { 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] }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @uapki_init(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.ParsonHelper, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN12ParsonHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %10 = invoke noundef ptr @_ZN7UapkiNS10get_configEv()
          to label %11 unwind label %21

11:                                               ; preds = %2
  %12 = invoke noundef ptr @_ZN7UapkiNS12get_cerstoreEv()
          to label %13 unwind label %23

13:                                               ; preds = %11
  %14 = invoke noundef ptr @_ZN7UapkiNS12get_crlstoreEv()
          to label %15 unwind label %25

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

16:                                               ; preds = %15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %17 = icmp ne ptr %10, null
  %18 = icmp ne ptr %12, null
  %or.cond = and i1 %17, %18
  %19 = icmp ne ptr %14, null
  %or.cond3 = and i1 %or.cond, %19
  br i1 %or.cond3, label %31, label %20

20:                                               ; preds = %16
  invoke void @stacktrace_create(ptr noundef nonnull @.str.1, i64 noundef 219, i32 noundef 4097, ptr noundef null)
          to label %.thread156 unwind label %29

21:                                               ; preds = %2
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %213

23:                                               ; preds = %11
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %213

25:                                               ; preds = %13
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %213

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

29:                                               ; preds = %210, %209, %208, %.thread156, %204, %166, %163, %161, %157, %155, %152, %149, %147, %136, %133, %131, %128, %124, %122, %118, %113, %111, %109, %106, %104, %99, %94, %92, %90, %85, %83, %81, %72, %69, %67, %65, %64, %61, %59, %58, %55, %53, %52, %49, %47, %46, %43, %41, %38, %35, %20
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %211

31:                                               ; preds = %16
  %32 = call noundef zeroext i1 @_ZNK7UapkiNS13LibraryConfig13isInitializedEv(ptr noundef nonnull align 8 dereferenceable(97) %10)
  br i1 %32, label %select.unfold154, label %33

33:                                               ; preds = %31
  %34 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br i1 %34, label %41, label %35

35:                                               ; preds = %33
  %36 = invoke noundef i32 @_ZL11load_configR12ParsonHelperRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %37 unwind label %29

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

38:                                               ; preds = %37
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 225, i32 noundef %36)
          to label %.thread156 unwind label %29

39:                                               ; preds = %37
  %40 = call noundef ptr @_ZNK12ParsonHelper10rootObjectEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  br label %41

41:                                               ; preds = %33, %39
  %.099 = phi ptr [ %0, %33 ], [ %40, %39 ]
  %42 = invoke ptr @json_object_get_object(ptr noundef %.099, ptr noundef nonnull @.str.2)
          to label %43 unwind label %29

43:                                               ; preds = %41
  %44 = invoke noundef i32 @_ZL18setup_cm_providersP13json_object_t(ptr noundef %42)
          to label %45 unwind label %29

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

46:                                               ; preds = %45
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 230, i32 noundef %44)
          to label %.thread156 unwind label %29

47:                                               ; preds = %45
  %48 = invoke ptr @json_object_get_object(ptr noundef %.099, ptr noundef nonnull @.str.3)
          to label %49 unwind label %29

49:                                               ; preds = %47
  %50 = invoke noundef i32 @_ZL16setup_cert_cacheP13json_object_t(ptr noundef %48)
          to label %51 unwind label %29

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

52:                                               ; preds = %51
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 232, i32 noundef %50)
          to label %.thread156 unwind label %29

53:                                               ; preds = %51
  %54 = invoke ptr @json_object_get_object(ptr noundef %.099, ptr noundef nonnull @.str.4)
          to label %55 unwind label %29

55:                                               ; preds = %53
  %56 = invoke noundef i32 @_ZL15setup_crl_cacheP13json_object_t(ptr noundef %54)
          to label %57 unwind label %29

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

58:                                               ; preds = %57
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 234, i32 noundef %56)
          to label %.thread156 unwind label %29

59:                                               ; preds = %57
  %60 = invoke ptr @json_object_get_object(ptr noundef %.099, ptr noundef nonnull @.str.5)
          to label %61 unwind label %29

61:                                               ; preds = %59
  %62 = invoke noundef i32 @_ZL10setup_ocspRN7UapkiNS13LibraryConfigEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(97) %10, ptr noundef %60)
          to label %63 unwind label %29

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

64:                                               ; preds = %63
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 236, i32 noundef %62)
          to label %.thread156 unwind label %29

65:                                               ; preds = %63
  %66 = invoke noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %.099, ptr noundef nonnull @.str.6, i1 noundef zeroext false)
          to label %67 unwind label %29

67:                                               ; preds = %65
  call void @_ZN7UapkiNS13LibraryConfig10setOfflineEb(ptr noundef nonnull align 8 dereferenceable(97) %10, i1 noundef zeroext %66)
  %68 = invoke ptr @json_object_get_object(ptr noundef %.099, ptr noundef nonnull @.str.7)
          to label %69 unwind label %29

69:                                               ; preds = %67
  %70 = invoke noundef i32 @_ZL9setup_tspRN7UapkiNS13LibraryConfigEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(97) %10, ptr noundef %68)
          to label %71 unwind label %29

71:                                               ; preds = %69
  %.not117 = icmp eq i32 %70, 0
  br i1 %.not117, label %73, label %72

72:                                               ; preds = %71
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 241, i32 noundef %70)
          to label %.thread156 unwind label %29

73:                                               ; preds = %71
  %74 = invoke ptr @json_object_get_object(ptr noundef %.099, ptr noundef nonnull @.str.8)
          to label %75 unwind label %88

75:                                               ; preds = %73
  %76 = invoke ptr @json_object_get_string(ptr noundef %74, ptr noundef nonnull @.str.9)
          to label %77 unwind label %88

77:                                               ; preds = %75
  %78 = invoke ptr @json_object_get_string(ptr noundef %74, ptr noundef nonnull @.str.10)
          to label %79 unwind label %88

79:                                               ; preds = %77
  %80 = invoke noundef i32 @_ZN10HttpHelper4initEbPKcS1_(i1 noundef zeroext %66, ptr noundef %76, ptr noundef %78)
          to label %81 unwind label %88

81:                                               ; preds = %79
  %82 = invoke noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %.099, ptr noundef nonnull @.str.11, i1 noundef zeroext false)
          to label %83 unwind label %29

83:                                               ; preds = %81
  call void @_ZN7UapkiNS13LibraryConfig18setValidationByCrlEb(ptr noundef nonnull align 8 dereferenceable(97) %10, i1 noundef zeroext %82)
  call void @_ZN7UapkiNS13LibraryConfig14setInitializedEb(ptr noundef nonnull align 8 dereferenceable(97) %10, i1 noundef zeroext true)
  %84 = invoke ptr @json_value_init_object()
          to label %85 unwind label %29

85:                                               ; preds = %83
  %86 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.3, ptr noundef %84)
          to label %87 unwind label %29

87:                                               ; preds = %85
  %.not118 = icmp eq i32 %86, 0
  br i1 %.not118, label %90, label %.thread156

88:                                               ; preds = %79, %77, %75, %73
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %211

90:                                               ; preds = %87
  %91 = invoke ptr @json_object_get_object(ptr noundef %1, ptr noundef nonnull @.str.3)
          to label %92 unwind label %29

92:                                               ; preds = %90
  %93 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore8getCountERmS2_(ptr noundef nonnull align 8 dereferenceable(96) %12, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %94 unwind label %29

94:                                               ; preds = %92
  %95 = load i64, ptr %6, align 8, !tbaa !5
  %96 = trunc i64 %95 to i32
  %97 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef %91, ptr noundef nonnull @.str.12, i32 noundef %96)
          to label %98 unwind label %29

98:                                               ; preds = %94
  %.not119 = icmp eq i32 %97, 0
  br i1 %.not119, label %99, label %.thread156

99:                                               ; preds = %98
  %100 = load i64, ptr %8, align 8, !tbaa !5
  %101 = trunc i64 %100 to i32
  %102 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef %91, ptr noundef nonnull @.str.13, i32 noundef %101)
          to label %103 unwind label %29

103:                                              ; preds = %99
  %.not120 = icmp eq i32 %102, 0
  br i1 %.not120, label %104, label %.thread156

104:                                              ; preds = %103
  %105 = invoke ptr @json_value_init_object()
          to label %106 unwind label %29

106:                                              ; preds = %104
  %107 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.4, ptr noundef %105)
          to label %108 unwind label %29

108:                                              ; preds = %106
  %.not121 = icmp eq i32 %107, 0
  br i1 %.not121, label %109, label %.thread156

109:                                              ; preds = %108
  %110 = invoke ptr @json_object_get_object(ptr noundef %1, ptr noundef nonnull @.str.4)
          to label %111 unwind label %29

111:                                              ; preds = %109
  %112 = invoke noundef i32 @_ZN7UapkiNS3Crl8CrlStore8getCountERm(ptr noundef nonnull align 8 dereferenceable(144) %14, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %113 unwind label %29

113:                                              ; preds = %111
  %114 = load i64, ptr %7, align 8, !tbaa !5
  %115 = trunc i64 %114 to i32
  %116 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef %110, ptr noundef nonnull @.str.14, i32 noundef %115)
          to label %117 unwind label %29

117:                                              ; preds = %113
  %.not122 = icmp eq i32 %116, 0
  br i1 %.not122, label %118, label %.thread156

118:                                              ; preds = %117
  %119 = call noundef zeroext i1 @_ZNK7UapkiNS3Crl8CrlStore11useDeltaCrlEv(ptr noundef nonnull align 8 dereferenceable(144) %14)
  %120 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %110, ptr noundef nonnull @.str.15, i1 noundef zeroext %119)
          to label %121 unwind label %29

121:                                              ; preds = %118
  %.not123 = icmp eq i32 %120, 0
  br i1 %.not123, label %122, label %.thread156

122:                                              ; preds = %121
  %123 = invoke noundef i64 @_ZN11CmProviders5countEv()
          to label %124 unwind label %29

124:                                              ; preds = %122
  %125 = trunc i64 %123 to i32
  %126 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef %1, ptr noundef nonnull @.str.16, i32 noundef %125)
          to label %127 unwind label %29

127:                                              ; preds = %124
  %.not124 = icmp eq i32 %126, 0
  br i1 %.not124, label %128, label %.thread156

128:                                              ; preds = %127
  %129 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %1, ptr noundef nonnull @.str.6, i1 noundef zeroext %66)
          to label %130 unwind label %29

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

131:                                              ; preds = %130
  %132 = invoke ptr @json_value_init_object()
          to label %133 unwind label %29

133:                                              ; preds = %131
  %134 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.5, ptr noundef %132)
          to label %135 unwind label %29

135:                                              ; preds = %133
  %.not126 = icmp eq i32 %134, 0
  br i1 %.not126, label %136, label %.thread156

136:                                              ; preds = %135
  %137 = invoke ptr @json_object_get_object(ptr noundef %1, ptr noundef nonnull @.str.5)
          to label %138 unwind label %29

138:                                              ; preds = %136
  %.not127 = icmp eq ptr %137, null
  br i1 %.not127, label %147, label %139

139:                                              ; preds = %138
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7UapkiNS13LibraryConfig7getOcspEv(ptr noundef nonnull align 8 dereferenceable(97) %10)
  %141 = load i64, ptr %140, align 8, !tbaa !9
  %142 = trunc i64 %141 to i32
  %143 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef nonnull %137, ptr noundef nonnull @.str.17, i32 noundef %142)
          to label %144 unwind label %145

144:                                              ; preds = %139
  %.not128 = icmp eq i32 %143, 0
  br i1 %.not128, label %147, label %.thread156

145:                                              ; preds = %139
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %211

147:                                              ; preds = %144, %138
  %148 = invoke ptr @json_value_init_object()
          to label %149 unwind label %29

149:                                              ; preds = %147
  %150 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.8, ptr noundef %148)
          to label %151 unwind label %29

151:                                              ; preds = %149
  %.not129 = icmp eq i32 %150, 0
  br i1 %.not129, label %152, label %.thread156

152:                                              ; preds = %151
  %153 = invoke ptr @json_object_get_object(ptr noundef %1, ptr noundef nonnull @.str.8)
          to label %154 unwind label %29

154:                                              ; preds = %152
  %.not130 = icmp eq ptr %153, null
  br i1 %.not130, label %161, label %155

155:                                              ; preds = %154
  %156 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN10HttpHelper11getProxyUrlB5cxx11Ev()
          to label %157 unwind label %29

157:                                              ; preds = %155
  %158 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %156) #5
  %159 = invoke i32 @json_object_set_string(ptr noundef nonnull %153, ptr noundef nonnull @.str.9, ptr noundef %158)
          to label %160 unwind label %29

160:                                              ; preds = %157
  %.not131 = icmp eq i32 %159, 0
  br i1 %.not131, label %161, label %.thread156

161:                                              ; preds = %160, %154
  %162 = invoke ptr @json_value_init_object()
          to label %163 unwind label %29

163:                                              ; preds = %161
  %164 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.7, ptr noundef %162)
          to label %165 unwind label %29

165:                                              ; preds = %163
  %.not132 = icmp eq i32 %164, 0
  br i1 %.not132, label %166, label %.thread156

166:                                              ; preds = %165
  %167 = invoke ptr @json_object_get_object(ptr noundef %1, ptr noundef nonnull @.str.7)
          to label %168 unwind label %29

168:                                              ; preds = %166
  %.not133 = icmp eq ptr %167, null
  br i1 %.not133, label %204, label %169

169:                                              ; preds = %168
  %170 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK7UapkiNS13LibraryConfig6getTspEv(ptr noundef nonnull align 8 dereferenceable(97) %10)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %171 = getelementptr inbounds i8, ptr %170, i64 48
  invoke void @_ZN7UapkiNS4Util11joinStringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEc(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %171, i8 noundef signext 59)
          to label %172 unwind label %177

172:                                              ; preds = %169
  %173 = load i8, ptr %170, align 8, !tbaa !11, !range !21, !noundef !22
  %174 = trunc nuw i8 %173 to i1
  %175 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef nonnull %167, ptr noundef nonnull @.str.18, i1 noundef zeroext %174)
          to label %176 unwind label %179

176:                                              ; preds = %172
  %.not134 = icmp eq i32 %175, 0
  br i1 %.not134, label %181, label %.thread

177:                                              ; preds = %169
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %203

179:                                              ; preds = %198, %193, %187, %181, %172
  %180 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %203

181:                                              ; preds = %176
  %182 = getelementptr inbounds i8, ptr %170, i64 1
  %183 = load i8, ptr %182, align 1, !tbaa !23, !range !21, !noundef !22
  %184 = trunc nuw i8 %183 to i1
  %185 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef nonnull %167, ptr noundef nonnull @.str.19, i1 noundef zeroext %184)
          to label %186 unwind label %179

186:                                              ; preds = %181
  %.not135 = icmp eq i32 %185, 0
  br i1 %.not135, label %187, label %.thread

187:                                              ; preds = %186
  %188 = getelementptr inbounds i8, ptr %170, i64 8
  %189 = load i64, ptr %188, align 8, !tbaa !24
  %190 = trunc i64 %189 to i32
  %191 = invoke noundef i32 @_ZN12ParsonHelper19jsonObjectSetUint32EP13json_object_tPKcj(ptr noundef nonnull %167, ptr noundef nonnull @.str.17, i32 noundef %190)
          to label %192 unwind label %179

192:                                              ; preds = %187
  %.not136 = icmp eq i32 %191, 0
  br i1 %.not136, label %193, label %.thread

193:                                              ; preds = %192
  %194 = getelementptr inbounds i8, ptr %170, i64 16
  %195 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %194) #5
  %196 = invoke i32 @json_object_set_string(ptr noundef nonnull %167, ptr noundef nonnull @.str.20, ptr noundef %195)
          to label %197 unwind label %179

197:                                              ; preds = %193
  %.not137 = icmp eq i32 %196, 0
  br i1 %.not137, label %198, label %.thread

198:                                              ; preds = %197
  %199 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  %200 = invoke i32 @json_object_set_string(ptr noundef nonnull %167, ptr noundef nonnull @.str.9, ptr noundef %199)
          to label %201 unwind label %179

201:                                              ; preds = %198
  %.not139 = icmp eq i32 %200, 0
  br i1 %.not139, label %202, label %.thread

.thread:                                          ; preds = %176, %186, %192, %197, %201
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %.thread156

202:                                              ; preds = %201
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %204

203:                                              ; preds = %179, %177
  %.pn = phi { ptr, i32 } [ %180, %179 ], [ %178, %177 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %211

204:                                              ; preds = %202, %168
  %205 = call noundef zeroext i1 @_ZNK7UapkiNS13LibraryConfig18getValidationByCrlEv(ptr noundef nonnull align 8 dereferenceable(97) %10)
  %206 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %1, ptr noundef nonnull @.str.11, i1 noundef zeroext %205)
          to label %207 unwind label %29

207:                                              ; preds = %204
  %.not140 = icmp eq i32 %206, 0
  br i1 %.not140, label %select.unfold154, label %.thread156

.thread156:                                       ; preds = %.thread, %144, %207, %165, %160, %151, %135, %130, %127, %121, %117, %108, %103, %98, %87, %20, %38, %72, %64, %58, %52, %46
  %.4159 = phi i32 [ 4113, %207 ], [ 4113, %165 ], [ 4113, %160 ], [ 4113, %151 ], [ 4113, %135 ], [ 4113, %130 ], [ 4113, %127 ], [ 4113, %121 ], [ 4113, %117 ], [ 4113, %108 ], [ 4113, %103 ], [ 4113, %98 ], [ 4113, %87 ], [ 4097, %20 ], [ %36, %38 ], [ %70, %72 ], [ %62, %64 ], [ %56, %58 ], [ %50, %52 ], [ %44, %46 ], [ 4113, %144 ], [ 4113, %.thread ]
  invoke void @_ZN7UapkiNS14release_configEv()
          to label %208 unwind label %29

208:                                              ; preds = %.thread156
  invoke void @_ZN11CmProviders6deinitEv()
          to label %209 unwind label %29

209:                                              ; preds = %208
  invoke void @_ZN7UapkiNS14release_storesEv()
          to label %210 unwind label %29

210:                                              ; preds = %209
  invoke void @_ZN10HttpHelper6deinitEv()
          to label %select.unfold154 unwind label %29

select.unfold154:                                 ; preds = %207, %210, %31
  %.0 = phi i32 [ 4106, %31 ], [ %.4159, %210 ], [ 0, %207 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZN12ParsonHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  ret i32 %.0

211:                                              ; preds = %203, %145, %88, %29
  %.pn142 = phi { ptr, i32 } [ %30, %29 ], [ %.pn, %203 ], [ %146, %145 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %212

212:                                              ; preds = %211, %27
  %.pn142.pn = phi { ptr, i32 } [ %.pn142, %211 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %213

213:                                              ; preds = %23, %212, %25, %21
  %.pn142.pn.pn.pn.pn = phi { ptr, i32 } [ %22, %21 ], [ %24, %23 ], [ %.pn142.pn, %212 ], [ %26, %25 ]
  call void @_ZN12ParsonHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn142.pn.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 @_ZN12ParsonHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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

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 void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #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

; 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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL18setup_cm_providersP13json_object_t(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16setup_cert_cacheP13json_object_t(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15setup_crl_cacheP13json_object_t(ptr noundef) local_unnamed_addr #0

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

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

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

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

declare noundef i32 @_ZN10HttpHelper4initEbPKcS1_(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

declare ptr @json_value_init_object() local_unnamed_addr #2

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

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

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

declare noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

declare noundef i64 @_ZN11CmProviders5countEv() local_unnamed_addr #2

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

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10HttpHelper11getProxyUrlB5cxx11Ev() 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

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

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

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

declare void @_ZN7UapkiNS14release_configEv() local_unnamed_addr #2

declare void @_ZN11CmProviders6deinitEv() local_unnamed_addr #2

declare void @_ZN7UapkiNS14release_storesEv() local_unnamed_addr #2

declare void @_ZN10HttpHelper6deinitEv() local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN12ParsonHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN7UapkiNS13LibraryConfig10OcspParamsE", !6, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN7UapkiNS13LibraryConfig9TspParamsE", !13, i64 0, !13, i64 1, !6, i64 8, !14, i64 16, !17, i64 48}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !6, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!12, !13, i64 1}
!24 = !{!12, !6, i64 8}


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