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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.std::allocator" = type { i8 }
%struct.SubjectDirectoryAttributes = type { %struct.anon.9, %struct.asn_struct_ctx_s }
%struct.anon.9 = type { ptr, i32, i32, ptr }
%struct.asn_struct_ctx_s = type { i16, i16, i32, ptr, i64 }
%struct.Attribute = type { %struct.ASN__PRIMITIVE_TYPE_s, %"struct.Attribute::value", %struct.asn_struct_ctx_s }
%struct.ASN__PRIMITIVE_TYPE_s = type { ptr, i32 }
%"struct.Attribute::value" = type { %struct.anon.10, %struct.asn_struct_ctx_s }
%struct.anon.10 = type { ptr, i32, i32, ptr }
%struct.ANY = type { ptr, i32, %struct.asn_struct_ctx_s }

@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [13 x i8], align 1
@OID_PDS_UKRAINE_DRFO = external global ptr, align 8
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@OID_PDS_UKRAINE_EDRPOU = external global ptr, align 8
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1
@OID_PDS_UKRAINE_EDDR = external global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@OID_PDS_UKRAINE_NBU = external global ptr, align 8
@OID_PDS_UKRAINE_SPMF = external global ptr, align 8
@OID_PDS_UKRAINE_ORG = external global ptr, align 8
@OID_PDS_UKRAINE_UNIT = external global ptr, align 8
@OID_PDS_UKRAINE_USER = external global ptr, align 8

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

declare ptr @asn_decode_ba_with_alloc(ptr noundef, ptr noundef) #1

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

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

declare ptr @json_value_init_array() #1

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

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

declare ptr @json_value_init_object() #1

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

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

declare noundef i32 @_ZN7UapkiNS4Util11oidFromAsn1EPK21ASN__PRIMITIVE_TYPE_sRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare void @asn_free(ptr noundef, ptr noundef) #1

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

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

declare ptr @ba_alloc_from_uint8(ptr noundef, i64 noundef) #1

declare noundef i32 @_ZN7UapkiNS4Util15decodeAnyStringEPK12ByteArray_stRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS15ExtensionHelper18DecodeToJsonObject26subjectDirectoryAttributesEPK12ByteArray_stP13json_object_t(ptr noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.UapkiNS::SmartBA", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca i1, align 1
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca i1, align 1
  %32 = alloca i1, align 1
  %33 = alloca i1, align 1
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca i1, align 1
  %36 = alloca %"class.std::allocator", align 1
  %37 = alloca i1, align 1
  %38 = alloca i1, align 1
  %39 = alloca i1, align 1
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca i1, align 1
  %42 = alloca %"class.std::allocator", align 1
  %43 = alloca i1, align 1
  %44 = alloca i1, align 1
  %45 = alloca i1, align 1
  %46 = alloca %"class.std::__cxx11::basic_string", align 8
  %47 = alloca i1, align 1
  %48 = alloca %"class.std::allocator", align 1
  %49 = alloca i1, align 1
  %50 = alloca i1, align 1
  %51 = alloca i1, align 1
  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 8, ptr %7) #5
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr null, ptr %8, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %2
  %53 = call ptr @get_SubjectDirectoryAttributes_desc()
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = call ptr @asn_decode_ba_with_alloc(ptr noundef %53, ptr noundef %54)
  store ptr %55, ptr %7, align 8, !tbaa !5
  %56 = icmp eq ptr null, %55
  br i1 %56, label %57, label %59

57:                                               ; preds = %52
  store i32 2, ptr %6, align 4, !tbaa !9
  %58 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 476, i32 noundef %58)
  br label %484

59:                                               ; preds = %52
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = call ptr @json_value_init_array()
  %64 = call i32 @json_object_set_value(ptr noundef %62, ptr noundef @.str.23, ptr noundef %63)
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %484

67:                                               ; preds = %61
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call ptr @json_object_get_array(ptr noundef %68, ptr noundef @.str.23)
  store ptr %69, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %475, %67
  %71 = load i32, ptr %9, align 4, !tbaa !9
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.SubjectDirectoryAttributes, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds %struct.anon.9, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 8, !tbaa !11
  %76 = icmp slt i32 %71, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %70
  store i32 5, ptr %10, align 4
  br label %481

78:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.SubjectDirectoryAttributes, ptr %79, i32 0, i32 0
  %81 = getelementptr inbounds %struct.anon.9, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !17
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds ptr, ptr %82, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  store ptr %86, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %87 unwind label %95

87:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store ptr null, ptr %17, align 8, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = invoke ptr @json_value_init_object()
          to label %90 unwind label %99

90:                                               ; preds = %87
  %91 = invoke i32 @json_array_append_value(ptr noundef %88, ptr noundef %89)
          to label %92 unwind label %99

92:                                               ; preds = %90
  %93 = icmp ne i32 %91, 0
  br i1 %93, label %94, label %103

94:                                               ; preds = %92
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %10, align 4
  br label %472

95:                                               ; preds = %78
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %15, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %16, align 4
  br label %480

99:                                               ; preds = %90, %87
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %15, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %16, align 4
  br label %479

103:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = invoke ptr @json_array_get_object(ptr noundef %104, i64 noundef %106)
          to label %108 unwind label %119

108:                                              ; preds = %103
  store ptr %107, ptr %18, align 8, !tbaa !5
  br label %109

109:                                              ; preds = %108
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.Attribute, ptr %110, i32 0, i32 0
  %112 = invoke noundef i32 @_ZN7UapkiNS4Util11oidFromAsn1EPK21ASN__PRIMITIVE_TYPE_sRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %111, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %113 unwind label %119

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

116:                                              ; preds = %113
  %117 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 490, i32 noundef %117)
          to label %118 unwind label %119

118:                                              ; preds = %116
  store i32 4, ptr %10, align 4
  br label %471

119:                                              ; preds = %459, %385, %380, %378, %299, %292, %283, %278, %276, %263, %256, %247, %242, %240, %227, %220, %211, %206, %204, %191, %186, %125, %116, %109, %103
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %15, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %16, align 4
  br label %478

123:                                              ; preds = %113
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  %127 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  %128 = invoke i32 @json_object_set_string(ptr noundef %126, ptr noundef @.str.24, ptr noundef %127)
          to label %129 unwind label %119

129:                                              ; preds = %125
  %130 = icmp ne i32 %128, 0
  br i1 %130, label %131, label %132

131:                                              ; preds = %129
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %10, align 4
  br label %471

132:                                              ; preds = %129
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.Attribute, ptr %133, i32 0, i32 1
  %135 = getelementptr inbounds %"struct.Attribute::value", ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %struct.anon.10, ptr %135, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !18
  %138 = icmp sgt i32 %137, 0
  br i1 %138, label %139, label %186

139:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.Attribute, ptr %140, i32 0, i32 1
  %142 = getelementptr inbounds %"struct.Attribute::value", ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds %struct.anon.10, ptr %142, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8, !tbaa !23
  %145 = getelementptr inbounds ptr, ptr %144, i64 0
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  store ptr %146, ptr %19, align 8, !tbaa !5
  %147 = load ptr, ptr %19, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ANY, ptr %147, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !24
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ANY, ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 8, !tbaa !26
  %153 = sext i32 %152 to i64
  %154 = invoke ptr @ba_alloc_from_uint8(ptr noundef %149, i64 noundef %153)
          to label %155 unwind label %162

155:                                              ; preds = %139
  %156 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef %154)
          to label %157 unwind label %162

157:                                              ; preds = %155
  br i1 %156, label %168, label %158

158:                                              ; preds = %157
  br label %159

159:                                              ; preds = %158
  store i32 4097, ptr %6, align 4, !tbaa !9
  %160 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 495, i32 noundef %160, ptr noundef null)
          to label %161 unwind label %162

161:                                              ; preds = %159
  store i32 4, ptr %10, align 4
  br label %183

162:                                              ; preds = %177, %172, %169, %159, %155, %139
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %15, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %478

166:                                              ; No predecessors!
  br label %167

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167, %157
  br label %169

169:                                              ; preds = %168
  %170 = load ptr, ptr %18, align 8, !tbaa !5
  %171 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %172 unwind label %162

172:                                              ; preds = %169
  %173 = invoke i32 @json_object_set_base64(ptr noundef %170, ptr noundef @.str.25, ptr noundef %171)
          to label %174 unwind label %162

174:                                              ; preds = %172
  store i32 %173, ptr %6, align 4, !tbaa !9
  %175 = load i32, ptr %6, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %180

177:                                              ; preds = %174
  %178 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 497, i32 noundef %178)
          to label %179 unwind label %162

179:                                              ; preds = %177
  store i32 4, ptr %10, align 4
  br label %183

180:                                              ; preds = %174
  br label %181

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181
  store i32 0, ptr %10, align 4
  br label %183

183:                                              ; preds = %182, %179, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %184 = load i32, ptr %10, align 4
  switch i32 %184, label %471 [
    i32 0, label %185
  ]

185:                                              ; preds = %183
  br label %186

186:                                              ; preds = %185, %132
  %187 = invoke noundef ptr @_ZN7UapkiNSL21friendlyname_from_oidERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %188 unwind label %119

188:                                              ; preds = %186
  store ptr %187, ptr %17, align 8, !tbaa !5
  %189 = load ptr, ptr %17, align 8, !tbaa !5
  %190 = icmp ne ptr %189, null
  br i1 %190, label %191, label %199

191:                                              ; preds = %188
  %192 = load ptr, ptr %18, align 8, !tbaa !5
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  %194 = invoke i32 @json_object_set_string(ptr noundef %192, ptr noundef @.str.26, ptr noundef %193)
          to label %195 unwind label %119

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

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

198:                                              ; preds = %195
  br label %199

199:                                              ; preds = %198, %188
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #5
  %200 = load ptr, ptr @OID_PDS_UKRAINE_DRFO, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef %200, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %201 unwind label %214

201:                                              ; preds = %199
  %202 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  br i1 %202, label %203, label %235

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  %205 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %206 unwind label %119

206:                                              ; preds = %204
  %207 = invoke noundef i32 @_ZN7UapkiNS4Util15decodeAnyStringEPK12ByteArray_stRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %205, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %208 unwind label %119

208:                                              ; preds = %206
  store i32 %207, ptr %6, align 4, !tbaa !9
  %209 = load i32, ptr %6, align 4, !tbaa !9
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %218

211:                                              ; preds = %208
  %212 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 505, i32 noundef %212)
          to label %213 unwind label %119

213:                                              ; preds = %211
  store i32 4, ptr %10, align 4
  br label %471

214:                                              ; preds = %199
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %15, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %16, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  br label %478

218:                                              ; preds = %208
  br label %219

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219
  %221 = load ptr, ptr %18, align 8, !tbaa !5
  %222 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %223 = invoke i32 @json_object_set_string(ptr noundef %221, ptr noundef @.str.27, ptr noundef %222)
          to label %224 unwind label %119

224:                                              ; preds = %220
  %225 = icmp ne i32 %223, 0
  br i1 %225, label %226, label %227

226:                                              ; preds = %224
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %10, align 4
  br label %471

227:                                              ; preds = %224
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  %229 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %230 = invoke i32 @json_object_set_string(ptr noundef %228, ptr noundef @.str.28, ptr noundef %229)
          to label %231 unwind label %119

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

233:                                              ; preds = %231
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %10, align 4
  br label %471

234:                                              ; preds = %231
  br label %470

235:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  %236 = load ptr, ptr @OID_PDS_UKRAINE_EDRPOU, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef %236, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %237 unwind label %250

237:                                              ; preds = %235
  %238 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br i1 %238, label %239, label %271

239:                                              ; preds = %237
  br label %240

240:                                              ; preds = %239
  %241 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %242 unwind label %119

242:                                              ; preds = %240
  %243 = invoke noundef i32 @_ZN7UapkiNS4Util15decodeAnyStringEPK12ByteArray_stRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %241, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %244 unwind label %119

244:                                              ; preds = %242
  store i32 %243, ptr %6, align 4, !tbaa !9
  %245 = load i32, ptr %6, align 4, !tbaa !9
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %254

247:                                              ; preds = %244
  %248 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 510, i32 noundef %248)
          to label %249 unwind label %119

249:                                              ; preds = %247
  store i32 4, ptr %10, align 4
  br label %471

250:                                              ; preds = %235
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %15, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %16, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %478

254:                                              ; preds = %244
  br label %255

255:                                              ; preds = %254
  br label %256

256:                                              ; preds = %255
  %257 = load ptr, ptr %18, align 8, !tbaa !5
  %258 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %259 = invoke i32 @json_object_set_string(ptr noundef %257, ptr noundef @.str.27, ptr noundef %258)
          to label %260 unwind label %119

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

262:                                              ; preds = %260
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %10, align 4
  br label %471

263:                                              ; preds = %260
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  %265 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %266 = invoke i32 @json_object_set_string(ptr noundef %264, ptr noundef @.str.29, ptr noundef %265)
          to label %267 unwind label %119

267:                                              ; preds = %263
  %268 = icmp ne i32 %266, 0
  br i1 %268, label %269, label %270

269:                                              ; preds = %267
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %10, align 4
  br label %471

270:                                              ; preds = %267
  br label %469

271:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #5
  %272 = load ptr, ptr @OID_PDS_UKRAINE_EDDR, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef %272, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %273 unwind label %286

273:                                              ; preds = %271
  %274 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  br i1 %274, label %275, label %307

275:                                              ; preds = %273
  br label %276

276:                                              ; preds = %275
  %277 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %278 unwind label %119

278:                                              ; preds = %276
  %279 = invoke noundef i32 @_ZN7UapkiNS4Util15decodeAnyStringEPK12ByteArray_stRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %277, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %280 unwind label %119

280:                                              ; preds = %278
  store i32 %279, ptr %6, align 4, !tbaa !9
  %281 = load i32, ptr %6, align 4, !tbaa !9
  %282 = icmp ne i32 %281, 0
  br i1 %282, label %283, label %290

283:                                              ; preds = %280
  %284 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 515, i32 noundef %284)
          to label %285 unwind label %119

285:                                              ; preds = %283
  store i32 4, ptr %10, align 4
  br label %471

286:                                              ; preds = %271
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %15, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %16, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  br label %478

290:                                              ; preds = %280
  br label %291

291:                                              ; preds = %290
  br label %292

292:                                              ; preds = %291
  %293 = load ptr, ptr %18, align 8, !tbaa !5
  %294 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %295 = invoke i32 @json_object_set_string(ptr noundef %293, ptr noundef @.str.27, ptr noundef %294)
          to label %296 unwind label %119

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

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

299:                                              ; preds = %296
  %300 = load ptr, ptr %5, align 8, !tbaa !5
  %301 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %302 = invoke i32 @json_object_set_string(ptr noundef %300, ptr noundef @.str.30, ptr noundef %301)
          to label %303 unwind label %119

303:                                              ; preds = %299
  %304 = icmp ne i32 %302, 0
  br i1 %304, label %305, label %306

305:                                              ; preds = %303
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %10, align 4
  br label %471

306:                                              ; preds = %303
  br label %468

307:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #5
  %308 = load ptr, ptr @OID_PDS_UKRAINE_NBU, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #5
  store i1 false, ptr %29, align 1
  store i1 false, ptr %31, align 1
  store i1 false, ptr %32, align 1
  store i1 false, ptr %33, align 1
  store i1 false, ptr %35, align 1
  store i1 false, ptr %37, align 1
  store i1 false, ptr %38, align 1
  store i1 false, ptr %39, align 1
  store i1 false, ptr %41, align 1
  store i1 false, ptr %43, align 1
  store i1 false, ptr %44, align 1
  store i1 false, ptr %45, align 1
  store i1 false, ptr %47, align 1
  store i1 false, ptr %49, align 1
  store i1 false, ptr %50, align 1
  store i1 false, ptr %51, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef %308, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %309 unwind label %388

309:                                              ; preds = %307
  %310 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  br i1 %310, label %327, label %311

311:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #5
  store i1 true, ptr %29, align 1
  %312 = load ptr, ptr @OID_PDS_UKRAINE_SPMF, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #5
  store i1 true, ptr %31, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #5
  store i1 true, ptr %32, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef %312, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %313 unwind label %392

313:                                              ; preds = %311
  store i1 true, ptr %33, align 1
  %314 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  br i1 %314, label %327, label %315

315:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #5
  store i1 true, ptr %35, align 1
  %316 = load ptr, ptr @OID_PDS_UKRAINE_ORG, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #5
  store i1 true, ptr %37, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #5
  store i1 true, ptr %38, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef %316, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %317 unwind label %396

317:                                              ; preds = %315
  store i1 true, ptr %39, align 1
  %318 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %34) #5
  br i1 %318, label %327, label %319

319:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #5
  store i1 true, ptr %41, align 1
  %320 = load ptr, ptr @OID_PDS_UKRAINE_UNIT, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #5
  store i1 true, ptr %43, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #5
  store i1 true, ptr %44, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef %320, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %321 unwind label %400

321:                                              ; preds = %319
  store i1 true, ptr %45, align 1
  %322 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %40) #5
  br i1 %322, label %327, label %323

323:                                              ; preds = %321
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #5
  store i1 true, ptr %47, align 1
  %324 = load ptr, ptr @OID_PDS_UKRAINE_USER, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #5
  store i1 true, ptr %49, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #5
  store i1 true, ptr %50, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef %324, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %325 unwind label %404

325:                                              ; preds = %323
  store i1 true, ptr %51, align 1
  %326 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %46) #5
  br label %327

327:                                              ; preds = %325, %321, %317, %313, %309
  %328 = phi i1 [ true, %321 ], [ true, %317 ], [ true, %313 ], [ true, %309 ], [ %326, %325 ]
  %329 = load i1, ptr %51, align 1
  br i1 %329, label %330, label %331

330:                                              ; preds = %327
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #5
  br label %331

331:                                              ; preds = %330, %327
  %332 = load i1, ptr %50, align 1
  br i1 %332, label %333, label %334

333:                                              ; preds = %331
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #5
  br label %334

334:                                              ; preds = %333, %331
  %335 = load i1, ptr %49, align 1
  br i1 %335, label %336, label %337

336:                                              ; preds = %334
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #5
  br label %337

337:                                              ; preds = %336, %334
  %338 = load i1, ptr %47, align 1
  br i1 %338, label %339, label %340

339:                                              ; preds = %337
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #5
  br label %340

340:                                              ; preds = %339, %337
  %341 = load i1, ptr %45, align 1
  br i1 %341, label %342, label %343

342:                                              ; preds = %340
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #5
  br label %343

343:                                              ; preds = %342, %340
  %344 = load i1, ptr %44, align 1
  br i1 %344, label %345, label %346

345:                                              ; preds = %343
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #5
  br label %346

346:                                              ; preds = %345, %343
  %347 = load i1, ptr %43, align 1
  br i1 %347, label %348, label %349

348:                                              ; preds = %346
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #5
  br label %349

349:                                              ; preds = %348, %346
  %350 = load i1, ptr %41, align 1
  br i1 %350, label %351, label %352

351:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #5
  br label %352

352:                                              ; preds = %351, %349
  %353 = load i1, ptr %39, align 1
  br i1 %353, label %354, label %355

354:                                              ; preds = %352
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #5
  br label %355

355:                                              ; preds = %354, %352
  %356 = load i1, ptr %38, align 1
  br i1 %356, label %357, label %358

357:                                              ; preds = %355
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #5
  br label %358

358:                                              ; preds = %357, %355
  %359 = load i1, ptr %37, align 1
  br i1 %359, label %360, label %361

360:                                              ; preds = %358
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #5
  br label %361

361:                                              ; preds = %360, %358
  %362 = load i1, ptr %35, align 1
  br i1 %362, label %363, label %364

363:                                              ; preds = %361
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #5
  br label %364

364:                                              ; preds = %363, %361
  %365 = load i1, ptr %33, align 1
  br i1 %365, label %366, label %367

366:                                              ; preds = %364
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  br label %367

367:                                              ; preds = %366, %364
  %368 = load i1, ptr %32, align 1
  br i1 %368, label %369, label %370

369:                                              ; preds = %367
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #5
  br label %370

370:                                              ; preds = %369, %367
  %371 = load i1, ptr %31, align 1
  br i1 %371, label %372, label %373

372:                                              ; preds = %370
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #5
  br label %373

373:                                              ; preds = %372, %370
  %374 = load i1, ptr %29, align 1
  br i1 %374, label %375, label %376

375:                                              ; preds = %373
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  br label %376

376:                                              ; preds = %375, %373
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  br i1 %328, label %377, label %467

377:                                              ; preds = %376
  br label %378

378:                                              ; preds = %377
  %379 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %380 unwind label %119

380:                                              ; preds = %378
  %381 = invoke noundef i32 @_ZN7UapkiNS4Util15decodeAnyStringEPK12ByteArray_stRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %379, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %382 unwind label %119

382:                                              ; preds = %380
  store i32 %381, ptr %6, align 4, !tbaa !9
  %383 = load i32, ptr %6, align 4, !tbaa !9
  %384 = icmp ne i32 %383, 0
  br i1 %384, label %385, label %457

385:                                              ; preds = %382
  %386 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 526, i32 noundef %386)
          to label %387 unwind label %119

387:                                              ; preds = %385
  store i32 4, ptr %10, align 4
  br label %471

388:                                              ; preds = %307
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %15, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %16, align 4
  br label %456

392:                                              ; preds = %311
  %393 = landingpad { ptr, i32 }
          cleanup
  %394 = extractvalue { ptr, i32 } %393, 0
  store ptr %394, ptr %15, align 8
  %395 = extractvalue { ptr, i32 } %393, 1
  store i32 %395, ptr %16, align 4
  br label %446

396:                                              ; preds = %315
  %397 = landingpad { ptr, i32 }
          cleanup
  %398 = extractvalue { ptr, i32 } %397, 0
  store ptr %398, ptr %15, align 8
  %399 = extractvalue { ptr, i32 } %397, 1
  store i32 %399, ptr %16, align 4
  br label %433

400:                                              ; preds = %319
  %401 = landingpad { ptr, i32 }
          cleanup
  %402 = extractvalue { ptr, i32 } %401, 0
  store ptr %402, ptr %15, align 8
  %403 = extractvalue { ptr, i32 } %401, 1
  store i32 %403, ptr %16, align 4
  br label %420

404:                                              ; preds = %323
  %405 = landingpad { ptr, i32 }
          cleanup
  %406 = extractvalue { ptr, i32 } %405, 0
  store ptr %406, ptr %15, align 8
  %407 = extractvalue { ptr, i32 } %405, 1
  store i32 %407, ptr %16, align 4
  %408 = load i1, ptr %50, align 1
  br i1 %408, label %409, label %410

409:                                              ; preds = %404
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #5
  br label %410

410:                                              ; preds = %409, %404
  %411 = load i1, ptr %49, align 1
  br i1 %411, label %412, label %413

412:                                              ; preds = %410
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #5
  br label %413

413:                                              ; preds = %412, %410
  %414 = load i1, ptr %47, align 1
  br i1 %414, label %415, label %416

415:                                              ; preds = %413
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #5
  br label %416

416:                                              ; preds = %415, %413
  %417 = load i1, ptr %45, align 1
  br i1 %417, label %418, label %419

418:                                              ; preds = %416
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #5
  br label %419

419:                                              ; preds = %418, %416
  br label %420

420:                                              ; preds = %419, %400
  %421 = load i1, ptr %44, align 1
  br i1 %421, label %422, label %423

422:                                              ; preds = %420
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #5
  br label %423

423:                                              ; preds = %422, %420
  %424 = load i1, ptr %43, align 1
  br i1 %424, label %425, label %426

425:                                              ; preds = %423
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #5
  br label %426

426:                                              ; preds = %425, %423
  %427 = load i1, ptr %41, align 1
  br i1 %427, label %428, label %429

428:                                              ; preds = %426
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #5
  br label %429

429:                                              ; preds = %428, %426
  %430 = load i1, ptr %39, align 1
  br i1 %430, label %431, label %432

431:                                              ; preds = %429
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #5
  br label %432

432:                                              ; preds = %431, %429
  br label %433

433:                                              ; preds = %432, %396
  %434 = load i1, ptr %38, align 1
  br i1 %434, label %435, label %436

435:                                              ; preds = %433
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #5
  br label %436

436:                                              ; preds = %435, %433
  %437 = load i1, ptr %37, align 1
  br i1 %437, label %438, label %439

438:                                              ; preds = %436
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #5
  br label %439

439:                                              ; preds = %438, %436
  %440 = load i1, ptr %35, align 1
  br i1 %440, label %441, label %442

441:                                              ; preds = %439
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #5
  br label %442

442:                                              ; preds = %441, %439
  %443 = load i1, ptr %33, align 1
  br i1 %443, label %444, label %445

444:                                              ; preds = %442
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  br label %445

445:                                              ; preds = %444, %442
  br label %446

446:                                              ; preds = %445, %392
  %447 = load i1, ptr %32, align 1
  br i1 %447, label %448, label %449

448:                                              ; preds = %446
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #5
  br label %449

449:                                              ; preds = %448, %446
  %450 = load i1, ptr %31, align 1
  br i1 %450, label %451, label %452

451:                                              ; preds = %449
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #5
  br label %452

452:                                              ; preds = %451, %449
  %453 = load i1, ptr %29, align 1
  br i1 %453, label %454, label %455

454:                                              ; preds = %452
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  br label %455

455:                                              ; preds = %454, %452
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  br label %456

456:                                              ; preds = %455, %388
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  br label %478

457:                                              ; preds = %382
  br label %458

458:                                              ; preds = %457
  br label %459

459:                                              ; preds = %458
  %460 = load ptr, ptr %18, align 8, !tbaa !5
  %461 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %462 = invoke i32 @json_object_set_string(ptr noundef %460, ptr noundef @.str.27, ptr noundef %461)
          to label %463 unwind label %119

463:                                              ; preds = %459
  %464 = icmp ne i32 %462, 0
  br i1 %464, label %465, label %466

465:                                              ; preds = %463
  store i32 4113, ptr %6, align 4, !tbaa !9
  store i32 4, ptr %10, align 4
  br label %471

466:                                              ; preds = %463
  br label %467

467:                                              ; preds = %466, %376
  br label %468

468:                                              ; preds = %467, %306
  br label %469

469:                                              ; preds = %468, %270
  br label %470

470:                                              ; preds = %469, %234
  store i32 0, ptr %10, align 4
  br label %471

471:                                              ; preds = %470, %465, %387, %305, %298, %285, %269, %262, %249, %233, %226, %213, %197, %183, %131, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %472

472:                                              ; preds = %471, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @_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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %473 = load i32, ptr %10, align 4
  switch i32 %473, label %481 [
    i32 0, label %474
  ]

474:                                              ; preds = %472
  br label %475

475:                                              ; preds = %474
  %476 = load i32, ptr %9, align 4, !tbaa !9
  %477 = add nsw i32 %476, 1
  store i32 %477, ptr %9, align 4, !tbaa !9
  br label %70, !llvm.loop !27

478:                                              ; preds = %456, %286, %250, %214, %162, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %479

479:                                              ; preds = %478, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br label %480

480:                                              ; preds = %479, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %490

481:                                              ; preds = %472, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %482 = load i32, ptr %10, align 4
  switch i32 %482, label %488 [
    i32 5, label %483
    i32 4, label %484
  ]

483:                                              ; preds = %481
  br label %484

484:                                              ; preds = %483, %481, %66, %57
  %485 = call ptr @get_SubjectDirectoryAttributes_desc()
  %486 = load ptr, ptr %7, align 8, !tbaa !5
  call void @asn_free(ptr noundef %485, ptr noundef %486)
  %487 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %487, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %488

488:                                              ; preds = %484, %481
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %489 = load i32, ptr %3, align 4
  ret i32 %489

490:                                              ; preds = %480
  %491 = load ptr, ptr %15, align 8
  %492 = load i32, ptr %16, align 4
  %493 = insertvalue { ptr, i32 } poison, ptr %491, 0
  %494 = insertvalue { ptr, i32 } %493, i32 %492, 1
  resume { ptr, i32 } %494
}

declare ptr @get_SubjectDirectoryAttributes_desc() #1

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZN7UapkiNSL21friendlyname_from_oidERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTS26SubjectDirectoryAttributes", !13, i64 0, !14, i64 24}
!13 = !{!"_ZTSN26SubjectDirectoryAttributesUt_E", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16}
!14 = !{!"_ZTS16asn_struct_ctx_s", !15, i64 0, !15, i64 2, !10, i64 4, !6, i64 8, !16, i64 16}
!15 = !{!"short", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!12, !6, i64 0}
!18 = !{!19, !10, i64 24}
!19 = !{!"_ZTS9Attribute", !20, i64 0, !21, i64 16, !14, i64 64}
!20 = !{!"_ZTS21ASN__PRIMITIVE_TYPE_s", !6, i64 0, !10, i64 8}
!21 = !{!"_ZTSN9Attribute5valueE", !22, i64 0, !14, i64 24}
!22 = !{!"_ZTSN9Attribute5valueUt_E", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16}
!23 = !{!19, !6, i64 16}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTS3ANY", !6, i64 0, !10, i64 8, !14, i64 16}
!26 = !{!25, !10, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [13 x i8], align 1
@OID_PDS_UKRAINE_DRFO = external local_unnamed_addr global ptr, align 8
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@OID_PDS_UKRAINE_EDRPOU = external local_unnamed_addr global ptr, align 8
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1
@OID_PDS_UKRAINE_EDDR = external local_unnamed_addr global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@OID_PDS_UKRAINE_NBU = external local_unnamed_addr global ptr, align 8
@OID_PDS_UKRAINE_SPMF = external local_unnamed_addr global ptr, align 8
@OID_PDS_UKRAINE_ORG = external local_unnamed_addr global ptr, align 8
@OID_PDS_UKRAINE_UNIT = external local_unnamed_addr global ptr, align 8
@OID_PDS_UKRAINE_USER = external local_unnamed_addr global ptr, align 8

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

declare ptr @asn_decode_ba_with_alloc(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare ptr @json_value_init_array() local_unnamed_addr #1

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

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

declare ptr @json_value_init_object() local_unnamed_addr #1

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

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

declare noundef i32 @_ZN7UapkiNS4Util11oidFromAsn1EPK21ASN__PRIMITIVE_TYPE_sRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare void @asn_free(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare ptr @ba_alloc_from_uint8(ptr noundef, i64 noundef) local_unnamed_addr #1

declare noundef i32 @_ZN7UapkiNS4Util15decodeAnyStringEPK12ByteArray_stRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS15ExtensionHelper18DecodeToJsonObject26subjectDirectoryAttributesEPK12ByteArray_stP13json_object_t(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.UapkiNS::SmartBA", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = tail call ptr @get_SubjectDirectoryAttributes_desc()
  %23 = tail call ptr @asn_decode_ba_with_alloc(ptr noundef %22, ptr noundef %0)
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %2
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 476, i32 noundef 2)
  br label %193

26:                                               ; preds = %2
  %27 = tail call ptr @json_value_init_array()
  %28 = tail call i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.23, ptr noundef %27)
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %29, label %193

29:                                               ; preds = %26
  %30 = tail call ptr @json_object_get_array(ptr noundef %1, ptr noundef nonnull @.str.23)
  %31 = getelementptr inbounds i8, ptr %23, i64 8
  %32 = load i32, ptr %31, align 8, !tbaa !5
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph, label %._crit_edge

34:                                               ; preds = %.thread
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = load i32, ptr %31, align 8, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %indvars.iv.next, %36
  br i1 %37, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !15

.lr.ph:                                           ; preds = %29, %34
  %indvars.iv = phi i64 [ %indvars.iv.next, %34 ], [ 0, %29 ]
  %38 = load ptr, ptr %23, align 8, !tbaa !17
  %39 = getelementptr inbounds ptr, ptr %38, i64 %indvars.iv
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %41 = invoke ptr @json_value_init_object()
          to label %42 unwind label %45

42:                                               ; preds = %.lr.ph
  %43 = invoke i32 @json_array_append_value(ptr noundef %30, ptr noundef %41)
          to label %44 unwind label %45

44:                                               ; preds = %42
  %.not129 = icmp eq i32 %43, 0
  br i1 %.not129, label %47, label %.thread

45:                                               ; preds = %42, %.lr.ph
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %190

47:                                               ; preds = %44
  %48 = invoke ptr @json_array_get_object(ptr noundef %30, i64 noundef %indvars.iv)
          to label %49 unwind label %53

49:                                               ; preds = %47
  %50 = invoke noundef i32 @_ZN7UapkiNS4Util11oidFromAsn1EPK21ASN__PRIMITIVE_TYPE_sRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %51 unwind label %53

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

52:                                               ; preds = %51
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 490, i32 noundef %50)
          to label %.thread unwind label %53

53:                                               ; preds = %185, %170, %166, %141, %137, %134, %130, %122, %118, %115, %111, %103, %99, %96, %92, %85, %82, %55, %52, %49, %47
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %190

55:                                               ; preds = %51
  %56 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %57 = invoke i32 @json_object_set_string(ptr noundef %48, ptr noundef nonnull @.str.24, ptr noundef %56)
          to label %58 unwind label %53

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

59:                                               ; preds = %58
  %60 = getelementptr inbounds i8, ptr %40, i64 24
  %61 = load i32, ptr %60, align 8, !tbaa !19
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %63, label %82

63:                                               ; preds = %59
  %64 = getelementptr inbounds i8, ptr %40, i64 16
  %65 = load ptr, ptr %64, align 8, !tbaa !24
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  %67 = load ptr, ptr %66, align 8, !tbaa !25
  %68 = getelementptr inbounds i8, ptr %66, i64 8
  %69 = load i32, ptr %68, align 8, !tbaa !27
  %70 = sext i32 %69 to i64
  %71 = invoke ptr @ba_alloc_from_uint8(ptr noundef %67, i64 noundef %70)
          to label %72 unwind label %75

72:                                               ; preds = %63
  %73 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %71)
  br i1 %73, label %77, label %74

74:                                               ; preds = %72
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 495, i32 noundef 4097, ptr noundef null)
          to label %.thread unwind label %75

75:                                               ; preds = %81, %77, %74, %63
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %190

77:                                               ; preds = %72
  %78 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %79 = invoke i32 @json_object_set_base64(ptr noundef %48, ptr noundef nonnull @.str.25, ptr noundef %78)
          to label %80 unwind label %75

80:                                               ; preds = %77
  %.not132 = icmp eq i32 %79, 0
  br i1 %.not132, label %82, label %81

81:                                               ; preds = %80
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 497, i32 noundef %79)
          to label %.thread unwind label %75

82:                                               ; preds = %80, %59
  %83 = invoke noundef ptr @_ZN7UapkiNSL21friendlyname_from_oidERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %84 unwind label %53

84:                                               ; preds = %82
  %.not133 = icmp eq ptr %83, null
  br i1 %.not133, label %88, label %85

85:                                               ; preds = %84
  %86 = invoke i32 @json_object_set_string(ptr noundef %48, ptr noundef nonnull @.str.26, ptr noundef nonnull %83)
          to label %87 unwind label %53

87:                                               ; preds = %85
  %.not134 = icmp eq i32 %86, 0
  br i1 %.not134, label %88, label %.thread

88:                                               ; preds = %87, %84
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %89 = load ptr, ptr @OID_PDS_UKRAINE_DRFO, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef %89, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %90 unwind label %97

90:                                               ; preds = %88
  %91 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br i1 %91, label %92, label %107

92:                                               ; preds = %90
  %93 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %94 = invoke noundef i32 @_ZN7UapkiNS4Util15decodeAnyStringEPK12ByteArray_stRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %93, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %95 unwind label %53

95:                                               ; preds = %92
  %.not147 = icmp eq i32 %94, 0
  br i1 %.not147, label %99, label %96

96:                                               ; preds = %95
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 505, i32 noundef %94)
          to label %.thread unwind label %53

97:                                               ; preds = %88
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %190

99:                                               ; preds = %95
  %100 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %101 = invoke i32 @json_object_set_string(ptr noundef %48, ptr noundef nonnull @.str.27, ptr noundef %100)
          to label %102 unwind label %53

102:                                              ; preds = %99
  %.not148 = icmp eq i32 %101, 0
  br i1 %.not148, label %103, label %.thread

103:                                              ; preds = %102
  %104 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %105 = invoke i32 @json_object_set_string(ptr noundef %1, ptr noundef nonnull @.str.28, ptr noundef %104)
          to label %106 unwind label %53

106:                                              ; preds = %103
  %.not149 = icmp eq i32 %105, 0
  br i1 %.not149, label %189, label %.thread

107:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  %108 = load ptr, ptr @OID_PDS_UKRAINE_EDRPOU, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef %108, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %109 unwind label %116

109:                                              ; preds = %107
  %110 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br i1 %110, label %111, label %126

111:                                              ; preds = %109
  %112 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %113 = invoke noundef i32 @_ZN7UapkiNS4Util15decodeAnyStringEPK12ByteArray_stRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %112, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %114 unwind label %53

114:                                              ; preds = %111
  %.not144 = icmp eq i32 %113, 0
  br i1 %.not144, label %118, label %115

115:                                              ; preds = %114
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 510, i32 noundef %113)
          to label %.thread unwind label %53

116:                                              ; preds = %107
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %190

118:                                              ; preds = %114
  %119 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %120 = invoke i32 @json_object_set_string(ptr noundef %48, ptr noundef nonnull @.str.27, ptr noundef %119)
          to label %121 unwind label %53

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

122:                                              ; preds = %121
  %123 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %124 = invoke i32 @json_object_set_string(ptr noundef %1, ptr noundef nonnull @.str.29, ptr noundef %123)
          to label %125 unwind label %53

125:                                              ; preds = %122
  %.not146 = icmp eq i32 %124, 0
  br i1 %.not146, label %189, label %.thread

126:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  %127 = load ptr, ptr @OID_PDS_UKRAINE_EDDR, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %127, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %128 unwind label %135

128:                                              ; preds = %126
  %129 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br i1 %129, label %130, label %145

130:                                              ; preds = %128
  %131 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %132 = invoke noundef i32 @_ZN7UapkiNS4Util15decodeAnyStringEPK12ByteArray_stRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %131, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %133 unwind label %53

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

134:                                              ; preds = %133
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 515, i32 noundef %132)
          to label %.thread unwind label %53

135:                                              ; preds = %126
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %190

137:                                              ; preds = %133
  %138 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %139 = invoke i32 @json_object_set_string(ptr noundef %48, ptr noundef nonnull @.str.27, ptr noundef %138)
          to label %140 unwind label %53

140:                                              ; preds = %137
  %.not142 = icmp eq i32 %139, 0
  br i1 %.not142, label %141, label %.thread

141:                                              ; preds = %140
  %142 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %143 = invoke i32 @json_object_set_string(ptr noundef %1, ptr noundef nonnull @.str.30, ptr noundef %142)
          to label %144 unwind label %53

144:                                              ; preds = %141
  %.not143 = icmp eq i32 %143, 0
  br i1 %.not143, label %189, label %.thread

145:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  %146 = load ptr, ptr @OID_PDS_UKRAINE_NBU, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef %146, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %147 unwind label %171

147:                                              ; preds = %145
  %148 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br i1 %148, label %.critedge, label %149

149:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #6
  %150 = load ptr, ptr @OID_PDS_UKRAINE_SPMF, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef %150, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %151 unwind label %173

151:                                              ; preds = %149
  %152 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br i1 %152, label %.critedge188, label %153

153:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #6
  %154 = load ptr, ptr @OID_PDS_UKRAINE_ORG, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef %154, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %155 unwind label %175

155:                                              ; preds = %153
  %156 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br i1 %156, label %.critedge162.thread, label %157

157:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #6
  %158 = load ptr, ptr @OID_PDS_UKRAINE_UNIT, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef %158, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %159 unwind label %177

159:                                              ; preds = %157
  %160 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br i1 %160, label %.critedge158.thread, label %161

161:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #6
  %162 = load ptr, ptr @OID_PDS_UKRAINE_USER, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef %162, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %.critedge154.thread unwind label %179

.critedge154.thread:                              ; preds = %161
  %163 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  br label %.critedge158.thread

.critedge158.thread:                              ; preds = %.critedge154.thread, %159
  %164 = phi i1 [ %163, %.critedge154.thread ], [ true, %159 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  br label %.critedge162.thread

.critedge162.thread:                              ; preds = %.critedge158.thread, %155
  %165 = phi i1 [ %164, %.critedge158.thread ], [ true, %155 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br i1 %165, label %166, label %189

.critedge:                                        ; preds = %147
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %166

.critedge188:                                     ; preds = %151
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %166

166:                                              ; preds = %.critedge188, %.critedge, %.critedge162.thread
  %167 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %168 = invoke noundef i32 @_ZN7UapkiNS4Util15decodeAnyStringEPK12ByteArray_stRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %167, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %169 unwind label %53

169:                                              ; preds = %166
  %.not139 = icmp eq i32 %168, 0
  br i1 %.not139, label %185, label %170

170:                                              ; preds = %169
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 526, i32 noundef %168)
          to label %.thread unwind label %53

171:                                              ; preds = %145
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %184

173:                                              ; preds = %149
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %183

175:                                              ; preds = %153
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %182

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

179:                                              ; preds = %161
  %180 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %181

181:                                              ; preds = %177, %179
  %.pn = phi { ptr, i32 } [ %180, %179 ], [ %178, %177 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %182

182:                                              ; preds = %175, %181
  %.pn.pn = phi { ptr, i32 } [ %.pn, %181 ], [ %176, %175 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %183

183:                                              ; preds = %173, %182
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %182 ], [ %174, %173 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %184

184:                                              ; preds = %183, %171
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %183 ], [ %172, %171 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %190

185:                                              ; preds = %169
  %186 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %187 = invoke i32 @json_object_set_string(ptr noundef %48, ptr noundef nonnull @.str.27, ptr noundef %186)
          to label %188 unwind label %53

188:                                              ; preds = %185
  %.not140 = icmp eq i32 %187, 0
  br i1 %.not140, label %189, label %.thread

189:                                              ; preds = %125, %.critedge162.thread, %188, %144, %106
  br label %.thread

.thread:                                          ; preds = %81, %74, %189, %52, %58, %87, %96, %102, %106, %115, %121, %125, %134, %140, %144, %170, %188, %44
  %cond = phi i1 [ false, %44 ], [ true, %189 ], [ false, %52 ], [ false, %58 ], [ false, %87 ], [ false, %96 ], [ false, %102 ], [ false, %106 ], [ false, %115 ], [ false, %121 ], [ false, %125 ], [ false, %134 ], [ false, %140 ], [ false, %144 ], [ false, %170 ], [ false, %188 ], [ false, %74 ], [ false, %81 ]
  %.2112 = phi i32 [ 4, %44 ], [ 0, %189 ], [ 4, %52 ], [ 4, %58 ], [ 4, %87 ], [ 4, %96 ], [ 4, %102 ], [ 4, %106 ], [ 4, %115 ], [ 4, %121 ], [ 4, %125 ], [ 4, %134 ], [ 4, %140 ], [ 4, %144 ], [ 4, %170 ], [ 4, %188 ], [ 4, %74 ], [ 4, %81 ]
  %.5 = phi i32 [ 4113, %44 ], [ 0, %189 ], [ %50, %52 ], [ 4113, %58 ], [ 4113, %87 ], [ %94, %96 ], [ 4113, %102 ], [ 4113, %106 ], [ %113, %115 ], [ 4113, %121 ], [ 4113, %125 ], [ %132, %134 ], [ 4113, %140 ], [ 4113, %144 ], [ %168, %170 ], [ 4113, %188 ], [ 4097, %74 ], [ %79, %81 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %cond, label %34, label %._crit_edge.loopexit

190:                                              ; preds = %53, %75, %97, %116, %135, %184, %45
  %.pn150.pn = phi { ptr, i32 } [ %46, %45 ], [ %54, %53 ], [ %.pn.pn.pn.pn, %184 ], [ %136, %135 ], [ %117, %116 ], [ %98, %97 ], [ %76, %75 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn150.pn

._crit_edge.loopexit:                             ; preds = %34, %.thread
  %.3113.ph = phi i32 [ %.2112, %.thread ], [ 5, %34 ]
  %191 = and i32 %.3113.ph, -2
  %192 = icmp eq i32 %191, 4
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %29
  %.3113 = phi i1 [ true, %29 ], [ %192, %._crit_edge.loopexit ]
  %.6 = phi i32 [ 0, %29 ], [ %.5, %._crit_edge.loopexit ]
  call void @llvm.assume(i1 %.3113)
  br label %193

193:                                              ; preds = %._crit_edge, %26, %25
  %.7 = phi i32 [ 2, %25 ], [ %.6, %._crit_edge ], [ 4113, %26 ]
  %194 = call ptr @get_SubjectDirectoryAttributes_desc()
  call void @asn_free(ptr noundef %194, ptr noundef %23)
  ret i32 %.7
}

declare ptr @get_SubjectDirectoryAttributes_desc() local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 8}
!6 = !{!"_ZTS26SubjectDirectoryAttributes", !7, i64 0, !12, i64 24}
!7 = !{!"_ZTSN26SubjectDirectoryAttributesUt_E", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTS16asn_struct_ctx_s", !13, i64 0, !13, i64 2, !11, i64 4, !8, i64 8, !14, i64 16}
!13 = !{!"short", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !8, i64 0}
!18 = !{!8, !8, i64 0}
!19 = !{!20, !11, i64 24}
!20 = !{!"_ZTS9Attribute", !21, i64 0, !22, i64 16, !12, i64 64}
!21 = !{!"_ZTS21ASN__PRIMITIVE_TYPE_s", !8, i64 0, !11, i64 8}
!22 = !{!"_ZTSN9Attribute5valueE", !23, i64 0, !12, i64 24}
!23 = !{!"_ZTSN9Attribute5valueUt_E", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16}
!24 = !{!20, !8, i64 16}
!25 = !{!26, !8, i64 0}
!26 = !{!"_ZTS3ANY", !8, i64 0, !11, i64 8, !12, i64 16}
!27 = !{!26, !11, i64 8}


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