; LLVM IR from specinfo-ua/UAPKI :: library/cm-pkcs12/src/storage/file-storage.ll (ZN11FileStorage9decodeJksEPKc)

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

%"class.UapkiNS::SmartBA" = type { ptr }
%class.FileStorage = type { ptr, %"class.std::__cxx11::basic_string", i8, i8, %"class.std::__cxx11::basic_string", i8, %"class.std::vector", ptr, %struct.FileStorageParam }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<StoreBag *, std::allocator<StoreBag *>>::_Vector_impl" }
%"struct.std::_Vector_base<StoreBag *, std::allocator<StoreBag *>>::_Vector_impl" = type { %"struct.std::_Vector_base<StoreBag *, std::allocator<StoreBag *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<StoreBag *, std::allocator<StoreBag *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.FileStorageParam = type { ptr, ptr, ptr, i64 }
%struct.JksEntry_st = type { i32, ptr, i64, %union.anon.10, ptr }
%union.anon.10 = type { ptr }
%struct.JksCertificaties_st = type { ptr, i32 }
%struct.JksCertificate_st = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11FileStorage9decodeJksEPKc(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1) #0 align 2 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 ptr, align 8
  %10 = alloca [2 x ptr], align 16
  %11 = alloca ptr, align 8
  %12 = alloca %"class.UapkiNS::SmartBA", align 8
  %13 = alloca %"class.UapkiNS::SmartBA", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #9
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %23 unwind label %33

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %23
  %25 = getelementptr inbounds %class.FileStorage, ptr %22, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = invoke ptr @jks_buffer_alloc_ba(ptr noundef %26)
          to label %28 unwind label %37

28:                                               ; preds = %24
  store ptr %27, ptr %8, align 8, !tbaa !5
  %29 = icmp eq ptr null, %27
  br i1 %29, label %30, label %41

30:                                               ; preds = %28
  store i32 2, ptr %6, align 4, !tbaa !9
  %31 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 337, i32 noundef %31)
          to label %32 unwind label %37

32:                                               ; preds = %30
  br label %344

33:                                               ; preds = %2
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %14, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %15, align 4
  br label %369

37:                                               ; preds = %361, %358, %356, %354, %352, %338, %333, %331, %329, %324, %319, %315, %309, %303, %297, %292, %289, %59, %50, %44, %30, %24
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %14, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %15, align 4
  br label %368

41:                                               ; preds = %28
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = invoke i32 @jks_read_header(ptr noundef %45, ptr noundef %16, ptr noundef %17)
          to label %47 unwind label %37

47:                                               ; preds = %44
  store i32 %46, ptr %6, align 4, !tbaa !9
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %53

50:                                               ; preds = %47
  %51 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 338, i32 noundef %51)
          to label %52 unwind label %37

52:                                               ; preds = %50
  br label %344

53:                                               ; preds = %47
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  %56 = load i32, ptr %17, align 4, !tbaa !9
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %64

58:                                               ; preds = %55
  br label %59

59:                                               ; preds = %58
  store i32 1043, ptr %6, align 4, !tbaa !9
  %60 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 340, i32 noundef %60, ptr noundef null)
          to label %61 unwind label %37

61:                                               ; preds = %59
  br label %344

62:                                               ; No predecessors!
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63, %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %282, %64
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = icmp ult i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  store i32 9, ptr %19, align 4
  br label %285

70:                                               ; preds = %65
  br label %71

71:                                               ; preds = %70
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = invoke i32 @jks_entry_read(ptr noundef %72, i32 noundef %73, ptr noundef %9)
          to label %75 unwind label %81

75:                                               ; preds = %71
  store i32 %74, ptr %6, align 4, !tbaa !9
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %85

78:                                               ; preds = %75
  %79 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 344, i32 noundef %79)
          to label %80 unwind label %81

80:                                               ; preds = %78
  store i32 4, ptr %19, align 4
  br label %285

81:                                               ; preds = %279, %184, %181, %175, %166, %157, %152, %143, %141, %138, %132, %123, %118, %108, %98, %93, %78, %71
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %14, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %15, align 4
  br label %287

85:                                               ; preds = %75
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.JksEntry_st, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !22
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %92, label %279

92:                                               ; preds = %87
  br label %93

93:                                               ; preds = %92
  %94 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #10
          to label %95 unwind label %81

95:                                               ; preds = %93
  invoke void @_ZN8StoreBagC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %94)
          to label %96 unwind label %101

96:                                               ; preds = %95
  store ptr %94, ptr %7, align 8, !tbaa !5
  %97 = icmp eq ptr null, %94
  br i1 %97, label %98, label %105

98:                                               ; preds = %96
  store i32 2, ptr %6, align 4, !tbaa !9
  %99 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 348, i32 noundef %99)
          to label %100 unwind label %81

100:                                              ; preds = %98
  store i32 4, ptr %19, align 4
  br label %285

101:                                              ; preds = %95
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %14, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %15, align 4
  call void @_ZdlPvm(ptr noundef %94, i64 noundef 120) #11
  br label %287

105:                                              ; preds = %96
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.JksEntry_st, ptr %109, i32 0, i32 3
  %111 = load ptr, ptr %110, align 8, !tbaa !25
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 0
  %114 = invoke i32 @jks_decrypt_key(ptr noundef %111, ptr noundef %112, ptr noundef %113)
          to label %115 unwind label %81

115:                                              ; preds = %108
  store i32 %114, ptr %6, align 4, !tbaa !9
  %116 = load i32, ptr %6, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %121

118:                                              ; preds = %115
  %119 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 349, i32 noundef %119)
          to label %120 unwind label %81

120:                                              ; preds = %118
  store i32 4, ptr %19, align 4
  br label %285

121:                                              ; preds = %115
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 0
  %126 = load ptr, ptr %125, align 16, !tbaa !5
  invoke void @_ZN8StoreBag7setDataENS_8BAG_TYPEEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(120) %124, i32 noundef 1, ptr noundef %126)
          to label %127 unwind label %81

127:                                              ; preds = %123
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.JksEntry_st, ptr %128, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !26
  %131 = icmp ne ptr %130, null
  br i1 %131, label %132, label %141

132:                                              ; preds = %127
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.JksEntry_st, ptr %134, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !26
  %137 = invoke noundef zeroext i1 @_ZN8StoreBag15setFriendlyNameEPKc(ptr noundef nonnull align 8 dereferenceable(120) %133, ptr noundef %136)
          to label %138 unwind label %81

138:                                              ; preds = %132
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN8StoreBag12scanStdAttrsEv(ptr noundef nonnull align 8 dereferenceable(120) %139)
          to label %140 unwind label %81

140:                                              ; preds = %138
  br label %141

141:                                              ; preds = %140, %127
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN11FileStorage6addBagEPK8StoreBag(ptr noundef nonnull align 8 dereferenceable(152) %22, ptr noundef %142)
          to label %143 unwind label %81

143:                                              ; preds = %141
  store ptr null, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 0
  %145 = load ptr, ptr %144, align 16, !tbaa !5
  %146 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 1
  %147 = invoke i32 @pkcs12_iit_read_kep_key(ptr noundef %145, ptr noundef %146)
          to label %148 unwind label %81

148:                                              ; preds = %143
  %149 = icmp eq i32 %147, 0
  br i1 %149, label %150, label %187

150:                                              ; preds = %148
  %151 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 0
  store ptr null, ptr %151, align 16, !tbaa !5
  br label %152

152:                                              ; preds = %150
  %153 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #10
          to label %154 unwind label %81

154:                                              ; preds = %152
  invoke void @_ZN8StoreBagC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %153)
          to label %155 unwind label %160

155:                                              ; preds = %154
  store ptr %153, ptr %7, align 8, !tbaa !5
  %156 = icmp eq ptr null, %153
  br i1 %156, label %157, label %164

157:                                              ; preds = %155
  store i32 2, ptr %6, align 4, !tbaa !9
  %158 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 360, i32 noundef %158)
          to label %159 unwind label %81

159:                                              ; preds = %157
  store i32 4, ptr %19, align 4
  br label %285

160:                                              ; preds = %154
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %14, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %15, align 4
  call void @_ZdlPvm(ptr noundef %153, i64 noundef 120) #11
  br label %287

164:                                              ; preds = %155
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 1
  %169 = load ptr, ptr %168, align 8, !tbaa !5
  invoke void @_ZN8StoreBag7setDataENS_8BAG_TYPEEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(120) %167, i32 noundef 1, ptr noundef %169)
          to label %170 unwind label %81

170:                                              ; preds = %166
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.JksEntry_st, ptr %171, i32 0, i32 1
  %173 = load ptr, ptr %172, align 8, !tbaa !26
  %174 = icmp ne ptr %173, null
  br i1 %174, label %175, label %184

175:                                              ; preds = %170
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.JksEntry_st, ptr %177, i32 0, i32 1
  %179 = load ptr, ptr %178, align 8, !tbaa !26
  %180 = invoke noundef zeroext i1 @_ZN8StoreBag15setFriendlyNameEPKc(ptr noundef nonnull align 8 dereferenceable(120) %176, ptr noundef %179)
          to label %181 unwind label %81

181:                                              ; preds = %175
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN8StoreBag12scanStdAttrsEv(ptr noundef nonnull align 8 dereferenceable(120) %182)
          to label %183 unwind label %81

183:                                              ; preds = %181
  br label %184

184:                                              ; preds = %183, %170
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN11FileStorage6addBagEPK8StoreBag(ptr noundef nonnull align 8 dereferenceable(152) %22, ptr noundef %185)
          to label %186 unwind label %81

186:                                              ; preds = %184
  store ptr null, ptr %7, align 8, !tbaa !5
  br label %187

187:                                              ; preds = %186, %148
  %188 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 0
  store ptr null, ptr %188, align 16, !tbaa !5
  %189 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 1
  store ptr null, ptr %189, align 8, !tbaa !5
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.JksEntry_st, ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !27
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %278

194:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %195

195:                                              ; preds = %271, %194
  %196 = load i32, ptr %20, align 4, !tbaa !9
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.JksEntry_st, ptr %197, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !27
  %200 = getelementptr inbounds %struct.JksCertificaties_st, ptr %199, i32 0, i32 1
  %201 = load i32, ptr %200, align 8, !tbaa !28
  %202 = icmp ult i32 %196, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %195
  store i32 20, ptr %19, align 4
  br label %275

204:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.JksEntry_st, ptr %205, i32 0, i32 4
  %207 = load ptr, ptr %206, align 8, !tbaa !27
  %208 = getelementptr inbounds %struct.JksCertificaties_st, ptr %207, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8, !tbaa !30
  %210 = load i32, ptr %20, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds ptr, ptr %209, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  store ptr %213, ptr %21, align 8, !tbaa !5
  %214 = load ptr, ptr %21, align 8, !tbaa !5
  %215 = icmp ne ptr %214, null
  br i1 %215, label %216, label %267

216:                                              ; preds = %204
  %217 = load ptr, ptr %21, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.JksCertificate_st, ptr %217, i32 0, i32 0
  %219 = load ptr, ptr %218, align 8, !tbaa !31
  %220 = call i32 @strcmp(ptr noundef %219, ptr noundef @.str.1) #12
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %222, label %267

222:                                              ; preds = %216
  %223 = load ptr, ptr %21, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.JksCertificate_st, ptr %223, i32 0, i32 1
  %225 = load ptr, ptr %224, align 8, !tbaa !33
  %226 = invoke i64 @ba_get_len(ptr noundef %225)
          to label %227 unwind label %240

227:                                              ; preds = %222
  %228 = icmp ugt i64 %226, 0
  br i1 %228, label %229, label %267

229:                                              ; preds = %227
  br label %230

230:                                              ; preds = %229
  %231 = load ptr, ptr %21, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.JksCertificate_st, ptr %231, i32 0, i32 1
  %233 = load ptr, ptr %232, align 8, !tbaa !33
  %234 = invoke ptr @ba_copy_with_alloc(ptr noundef %233, i64 noundef 0, i64 noundef 0)
          to label %235 unwind label %240

235:                                              ; preds = %230
  store ptr %234, ptr %11, align 8, !tbaa !5
  %236 = icmp eq ptr null, %234
  br i1 %236, label %237, label %244

237:                                              ; preds = %235
  store i32 2, ptr %6, align 4, !tbaa !9
  %238 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 377, i32 noundef %238)
          to label %239 unwind label %240

239:                                              ; preds = %237
  store i32 4, ptr %19, align 4
  br label %268

240:                                              ; preds = %264, %261, %252, %247, %237, %230, %222
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %14, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %15, align 4
  br label %274

244:                                              ; preds = %235
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246
  %248 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #10
          to label %249 unwind label %240

249:                                              ; preds = %247
  invoke void @_ZN8StoreBagC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %248)
          to label %250 unwind label %255

250:                                              ; preds = %249
  store ptr %248, ptr %7, align 8, !tbaa !5
  %251 = icmp eq ptr null, %248
  br i1 %251, label %252, label %259

252:                                              ; preds = %250
  store i32 2, ptr %6, align 4, !tbaa !9
  %253 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 378, i32 noundef %253)
          to label %254 unwind label %240

254:                                              ; preds = %252
  store i32 4, ptr %19, align 4
  br label %268

255:                                              ; preds = %249
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %14, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %15, align 4
  call void @_ZdlPvm(ptr noundef %248, i64 noundef 120) #11
  br label %274

259:                                              ; preds = %250
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  %262 = load ptr, ptr %7, align 8, !tbaa !5
  %263 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN8StoreBag7setDataENS_8BAG_TYPEEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(120) %262, i32 noundef 2, ptr noundef %263)
          to label %264 unwind label %240

264:                                              ; preds = %261
  store ptr null, ptr %11, align 8, !tbaa !5
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN11FileStorage6addBagEPK8StoreBag(ptr noundef nonnull align 8 dereferenceable(152) %22, ptr noundef %265)
          to label %266 unwind label %240

266:                                              ; preds = %264
  store ptr null, ptr %7, align 8, !tbaa !5
  br label %267

267:                                              ; preds = %266, %227, %216, %204
  store i32 0, ptr %19, align 4
  br label %268

268:                                              ; preds = %267, %254, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  %269 = load i32, ptr %19, align 4
  switch i32 %269, label %275 [
    i32 0, label %270
  ]

270:                                              ; preds = %268
  br label %271

271:                                              ; preds = %270
  %272 = load i32, ptr %20, align 4, !tbaa !9
  %273 = add i32 %272, 1
  store i32 %273, ptr %20, align 4, !tbaa !9
  br label %195, !llvm.loop !34

274:                                              ; preds = %255, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %287

275:                                              ; preds = %268, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  %276 = load i32, ptr %19, align 4
  switch i32 %276, label %285 [
    i32 20, label %277
  ]

277:                                              ; preds = %275
  br label %278

278:                                              ; preds = %277, %187
  br label %279

279:                                              ; preds = %278, %87
  %280 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @jks_entry_free(ptr noundef %280)
          to label %281 unwind label %81

281:                                              ; preds = %279
  store ptr null, ptr %9, align 8, !tbaa !5
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %18, align 4, !tbaa !9
  %284 = add i32 %283, 1
  store i32 %284, ptr %18, align 4, !tbaa !9
  br label %65, !llvm.loop !36

285:                                              ; preds = %275, %159, %120, %100, %80, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  %286 = load i32, ptr %19, align 4
  switch i32 %286, label %366 [
    i32 9, label %288
    i32 4, label %344
  ]

287:                                              ; preds = %274, %160, %101, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %368

288:                                              ; preds = %285
  br label %289

289:                                              ; preds = %288
  %290 = load ptr, ptr %8, align 8, !tbaa !5
  %291 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %292 unwind label %37

292:                                              ; preds = %289
  %293 = invoke i32 @jks_buffer_get_hash(ptr noundef %290, ptr noundef %291)
          to label %294 unwind label %37

294:                                              ; preds = %292
  store i32 %293, ptr %6, align 4, !tbaa !9
  %295 = load i32, ptr %6, align 4, !tbaa !9
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %300

297:                                              ; preds = %294
  %298 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 392, i32 noundef %298)
          to label %299 unwind label %37

299:                                              ; preds = %297
  br label %344

300:                                              ; preds = %294
  br label %301

301:                                              ; preds = %300
  br label %302

302:                                              ; preds = %301
  br label %303

303:                                              ; preds = %302
  %304 = load ptr, ptr %8, align 8, !tbaa !5
  %305 = invoke i32 @jks_buffer_get_body(ptr noundef %304, ptr noundef %11)
          to label %306 unwind label %37

306:                                              ; preds = %303
  store i32 %305, ptr %6, align 4, !tbaa !9
  %307 = load i32, ptr %6, align 4, !tbaa !9
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %312

309:                                              ; preds = %306
  %310 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 393, i32 noundef %310)
          to label %311 unwind label %37

311:                                              ; preds = %309
  br label %344

312:                                              ; preds = %306
  br label %313

313:                                              ; preds = %312
  br label %314

314:                                              ; preds = %313
  br label %315

315:                                              ; preds = %314
  %316 = load ptr, ptr %5, align 8, !tbaa !5
  %317 = load ptr, ptr %11, align 8, !tbaa !5
  %318 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %319 unwind label %37

319:                                              ; preds = %315
  %320 = invoke i32 @jks_hash_store(ptr noundef %316, ptr noundef %317, ptr noundef %318)
          to label %321 unwind label %37

321:                                              ; preds = %319
  store i32 %320, ptr %6, align 4, !tbaa !9
  %322 = load i32, ptr %6, align 4, !tbaa !9
  %323 = icmp ne i32 %322, 0
  br i1 %323, label %324, label %327

324:                                              ; preds = %321
  %325 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 394, i32 noundef %325)
          to label %326 unwind label %37

326:                                              ; preds = %324
  br label %344

327:                                              ; preds = %321
  br label %328

328:                                              ; preds = %327
  br label %329

329:                                              ; preds = %328
  %330 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %331 unwind label %37

331:                                              ; preds = %329
  %332 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %333 unwind label %37

333:                                              ; preds = %331
  %334 = invoke i32 @ba_cmp(ptr noundef %330, ptr noundef %332)
          to label %335 unwind label %37

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

337:                                              ; preds = %335
  br label %338

338:                                              ; preds = %337
  store i32 1041, ptr %6, align 4, !tbaa !9
  %339 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 397, i32 noundef %339, ptr noundef null)
          to label %340 unwind label %37

340:                                              ; preds = %338
  br label %344

341:                                              ; No predecessors!
  br label %342

342:                                              ; preds = %341
  br label %343

343:                                              ; preds = %342, %335
  br label %344

344:                                              ; preds = %343, %340, %326, %311, %299, %285, %61, %52, %32
  %345 = load ptr, ptr %7, align 8, !tbaa !5
  %346 = icmp ne ptr %345, null
  br i1 %346, label %347, label %352

347:                                              ; preds = %344
  %348 = load ptr, ptr %7, align 8, !tbaa !5
  %349 = icmp eq ptr %348, null
  br i1 %349, label %351, label %350

350:                                              ; preds = %347
  call void @_ZN8StoreBagD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %348) #9
  call void @_ZdlPvm(ptr noundef %348, i64 noundef 120) #11
  br label %351

351:                                              ; preds = %350, %347
  br label %352

352:                                              ; preds = %351, %344
  %353 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @jks_buffer_free(ptr noundef %353)
          to label %354 unwind label %37

354:                                              ; preds = %352
  %355 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @jks_entry_free(ptr noundef %355)
          to label %356 unwind label %37

356:                                              ; preds = %354
  %357 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @ba_free(ptr noundef %357)
          to label %358 unwind label %37

358:                                              ; preds = %356
  %359 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 0
  %360 = load ptr, ptr %359, align 16, !tbaa !5
  invoke void @ba_free(ptr noundef %360)
          to label %361 unwind label %37

361:                                              ; preds = %358
  %362 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 1
  %363 = load ptr, ptr %362, align 8, !tbaa !5
  invoke void @ba_free(ptr noundef %363)
          to label %364 unwind label %37

364:                                              ; preds = %361
  %365 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %365, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %366

366:                                              ; preds = %364, %285
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  %367 = load i32, ptr %3, align 4
  ret i32 %367

368:                                              ; preds = %287, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br label %369

369:                                              ; preds = %368, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %370

370:                                              ; preds = %369
  %371 = load ptr, ptr %14, align 8
  %372 = load i32, ptr %15, align 4
  %373 = insertvalue { ptr, i32 } poison, ptr %371, 0
  %374 = insertvalue { ptr, i32 } %373, i32 %372, 1
  resume { ptr, i32 } %374
}

; Function Attrs: nounwind
declare void @_ZN8StoreBagD1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

declare void @ba_free(ptr noundef) #4

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

declare i32 @pkcs12_iit_read_kep_key(ptr noundef, ptr noundef) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #7

declare void @_ZN8StoreBagC1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #4

declare void @_ZN8StoreBag7setDataENS_8BAG_TYPEEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef, ptr noundef) #4

declare ptr @jks_buffer_alloc_ba(ptr noundef) #4

declare i32 @jks_read_header(ptr noundef, ptr noundef, ptr noundef) #4

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

declare i32 @jks_entry_read(ptr noundef, i32 noundef, ptr noundef) #4

declare i32 @jks_decrypt_key(ptr noundef, ptr noundef, ptr noundef) #4

declare noundef zeroext i1 @_ZN8StoreBag15setFriendlyNameEPKc(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef) #4

declare void @_ZN8StoreBag12scanStdAttrsEv(ptr noundef nonnull align 8 dereferenceable(120)) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #8

declare i64 @ba_get_len(ptr noundef) #4

declare ptr @ba_copy_with_alloc(ptr noundef, i64 noundef, i64 noundef) #4

declare void @jks_entry_free(ptr noundef) #4

declare i32 @jks_buffer_get_hash(ptr noundef, ptr noundef) #4

declare i32 @jks_buffer_get_body(ptr noundef, ptr noundef) #4

declare i32 @jks_hash_store(ptr noundef, ptr noundef, ptr noundef) #4

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

declare void @jks_buffer_free(ptr noundef) #4

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

!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, !6, i64 0}
!12 = !{!"_ZTS11FileStorage", !6, i64 0, !13, i64 8, !16, i64 40, !16, i64 41, !13, i64 48, !16, i64 80, !17, i64 88, !6, i64 112, !21, i64 120}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIP8StoreBagSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP8StoreBagSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP8StoreBagSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP8StoreBagSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTS16FileStorageParam", !6, i64 0, !6, i64 8, !6, i64 16, !15, i64 24}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTS11JksEntry_st", !24, i64 0, !6, i64 8, !15, i64 16, !7, i64 24, !6, i64 32}
!24 = !{!"_ZTS9EntryType", !7, i64 0}
!25 = !{!7, !7, i64 0}
!26 = !{!23, !6, i64 8}
!27 = !{!23, !6, i64 32}
!28 = !{!29, !10, i64 8}
!29 = !{!"_ZTS19JksCertificaties_st", !6, i64 0, !10, i64 8}
!30 = !{!29, !6, i64 0}
!31 = !{!32, !6, i64 0}
!32 = !{!"_ZTS17JksCertificate_st", !6, i64 0, !6, i64 8}
!33 = !{!32, !6, i64 8}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}


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

%"class.UapkiNS::SmartBA" = type { ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11FileStorage9decodeJksEPKc(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca [2 x ptr], align 16
  %5 = alloca ptr, align 8
  %6 = alloca %"class.UapkiNS::SmartBA", align 8
  %7 = alloca %"class.UapkiNS::SmartBA", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 0, ptr %9, align 4, !tbaa !9
  %10 = load ptr, ptr %0, align 8, !tbaa !11
  %11 = invoke ptr @jks_buffer_alloc_ba(ptr noundef %10)
          to label %12 unwind label %15

12:                                               ; preds = %2
  %13 = icmp eq ptr %11, null
  br i1 %13, label %14, label %17

14:                                               ; preds = %12
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 337, i32 noundef 2)
          to label %.thread119 unwind label %15

15:                                               ; preds = %149, %147, %145, %143, %.thread119, %141, %136, %135, %130, %129, %126, %125, %._crit_edge, %25, %20, %17, %14, %2
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %153

17:                                               ; preds = %12
  %18 = invoke i32 @jks_read_header(ptr noundef nonnull %11, ptr noundef nonnull %8, ptr noundef nonnull %9)
          to label %19 unwind label %15

19:                                               ; preds = %17
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %21, label %20

20:                                               ; preds = %19
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 338, i32 noundef %18)
          to label %.thread119 unwind label %15

21:                                               ; preds = %19
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %25, label %.lr.ph156

.lr.ph156:                                        ; preds = %21
  %24 = getelementptr inbounds i8, ptr %4, i64 8
  br label %26

25:                                               ; preds = %21
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 340, i32 noundef 1043, ptr noundef null)
          to label %.thread119 unwind label %15

26:                                               ; preds = %.lr.ph156, %118
  %.057155 = phi i32 [ 0, %.lr.ph156 ], [ %119, %118 ]
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = invoke i32 @jks_entry_read(ptr noundef nonnull %11, i32 noundef %27, ptr noundef nonnull %3)
          to label %29 unwind label %.loopexit130

29:                                               ; preds = %26
  %.not88 = icmp eq i32 %28, 0
  br i1 %.not88, label %31, label %30

30:                                               ; preds = %29
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 344, i32 noundef %28)
          to label %.thread119 unwind label %.loopexit.split-lp131

.loopexit130:                                     ; preds = %26, %35, %40, %47, %53, %55, %56, %57, %62, %67, %73, %75, %76, %.thread109
  %lpad.loopexit132 = landingpad { ptr, i32 }
          cleanup
  br label %153

.loopexit.split-lp131:                            ; preds = %30, %46
  %lpad.loopexit.split-lp133 = landingpad { ptr, i32 }
          cleanup
  br label %153

31:                                               ; preds = %29
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = load i32, ptr %32, align 8, !tbaa !22
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %35, label %.thread109

35:                                               ; preds = %31
  %36 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #10
          to label %37 unwind label %.loopexit130

37:                                               ; preds = %35
  invoke void @_ZN8StoreBagC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %36)
          to label %40 unwind label %38

38:                                               ; preds = %37
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %36, i64 noundef 120) #11
  br label %153

40:                                               ; preds = %37
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 24
  %43 = load ptr, ptr %42, align 8, !tbaa !25
  %44 = invoke i32 @jks_decrypt_key(ptr noundef %43, ptr noundef %1, ptr noundef nonnull %4)
          to label %45 unwind label %.loopexit130

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

46:                                               ; preds = %45
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 349, i32 noundef %44)
          to label %142 unwind label %.loopexit.split-lp131

47:                                               ; preds = %45
  %48 = load ptr, ptr %4, align 16, !tbaa !5
  invoke void @_ZN8StoreBag7setDataENS_8BAG_TYPEEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(120) %36, i32 noundef 1, ptr noundef %48)
          to label %49 unwind label %.loopexit130

49:                                               ; preds = %47
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !26
  %.not90 = icmp eq ptr %52, null
  br i1 %.not90, label %56, label %53

53:                                               ; preds = %49
  %54 = invoke noundef zeroext i1 @_ZN8StoreBag15setFriendlyNameEPKc(ptr noundef nonnull align 8 dereferenceable(120) %36, ptr noundef nonnull %52)
          to label %55 unwind label %.loopexit130

55:                                               ; preds = %53
  invoke void @_ZN8StoreBag12scanStdAttrsEv(ptr noundef nonnull align 8 dereferenceable(120) %36)
          to label %56 unwind label %.loopexit130

56:                                               ; preds = %55, %49
  invoke void @_ZN11FileStorage6addBagEPK8StoreBag(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %36)
          to label %57 unwind label %.loopexit130

57:                                               ; preds = %56
  %58 = load ptr, ptr %4, align 16, !tbaa !5
  %59 = invoke i32 @pkcs12_iit_read_kep_key(ptr noundef %58, ptr noundef nonnull %24)
          to label %60 unwind label %.loopexit130

60:                                               ; preds = %57
  %61 = icmp eq i32 %59, 0
  br i1 %61, label %62, label %77

62:                                               ; preds = %60
  store ptr null, ptr %4, align 16, !tbaa !5
  %63 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #10
          to label %64 unwind label %.loopexit130

64:                                               ; preds = %62
  invoke void @_ZN8StoreBagC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %63)
          to label %67 unwind label %65

65:                                               ; preds = %64
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %63, i64 noundef 120) #11
  br label %153

67:                                               ; preds = %64
  %68 = load ptr, ptr %24, align 8, !tbaa !5
  invoke void @_ZN8StoreBag7setDataENS_8BAG_TYPEEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(120) %63, i32 noundef 1, ptr noundef %68)
          to label %69 unwind label %.loopexit130

69:                                               ; preds = %67
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load ptr, ptr %71, align 8, !tbaa !26
  %.not91 = icmp eq ptr %72, null
  br i1 %.not91, label %76, label %73

73:                                               ; preds = %69
  %74 = invoke noundef zeroext i1 @_ZN8StoreBag15setFriendlyNameEPKc(ptr noundef nonnull align 8 dereferenceable(120) %63, ptr noundef nonnull %72)
          to label %75 unwind label %.loopexit130

75:                                               ; preds = %73
  invoke void @_ZN8StoreBag12scanStdAttrsEv(ptr noundef nonnull align 8 dereferenceable(120) %63)
          to label %76 unwind label %.loopexit130

76:                                               ; preds = %75, %69
  invoke void @_ZN11FileStorage6addBagEPK8StoreBag(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %63)
          to label %77 unwind label %.loopexit130

77:                                               ; preds = %76, %60
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 32
  %80 = load ptr, ptr %79, align 8, !tbaa !27
  %.not92 = icmp eq ptr %80, null
  br i1 %.not92, label %.thread109, label %.preheader

.preheader:                                       ; preds = %77
  %81 = getelementptr inbounds i8, ptr %80, i64 8
  %82 = load i32, ptr %81, align 8, !tbaa !28
  %.not158 = icmp eq i32 %82, 0
  br i1 %.not158, label %.thread109, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %109
  %indvars.iv = phi i64 [ %indvars.iv.next, %109 ], [ 0, %.preheader ]
  %83 = phi ptr [ %112, %109 ], [ %80, %.preheader ]
  %84 = load ptr, ptr %83, align 8, !tbaa !30
  %85 = getelementptr inbounds ptr, ptr %84, i64 %indvars.iv
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %.not93 = icmp eq ptr %86, null
  br i1 %.not93, label %109, label %87

87:                                               ; preds = %.lr.ph
  %88 = load ptr, ptr %86, align 8, !tbaa !31
  %89 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %88, ptr noundef nonnull dereferenceable(1) @.str.1) #12
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %109

91:                                               ; preds = %87
  %92 = getelementptr inbounds i8, ptr %86, i64 8
  %93 = load ptr, ptr %92, align 8, !tbaa !33
  %94 = invoke i64 @ba_get_len(ptr noundef %93)
          to label %95 unwind label %.loopexit

95:                                               ; preds = %91
  %.not94 = icmp eq i64 %94, 0
  br i1 %.not94, label %109, label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %92, align 8, !tbaa !33
  %98 = invoke ptr @ba_copy_with_alloc(ptr noundef %97, i64 noundef 0, i64 noundef 0)
          to label %99 unwind label %.loopexit

99:                                               ; preds = %96
  store ptr %98, ptr %5, align 8, !tbaa !5
  %100 = icmp eq ptr %98, null
  br i1 %100, label %101, label %102

101:                                              ; preds = %99
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 377, i32 noundef 2)
          to label %.thread119 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %91, %96, %102, %107, %108
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %153

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

102:                                              ; preds = %99
  %103 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #10
          to label %104 unwind label %.loopexit

104:                                              ; preds = %102
  invoke void @_ZN8StoreBagC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %103)
          to label %107 unwind label %105

105:                                              ; preds = %104
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %103, i64 noundef 120) #11
  br label %153

107:                                              ; preds = %104
  invoke void @_ZN8StoreBag7setDataENS_8BAG_TYPEEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(120) %103, i32 noundef 2, ptr noundef nonnull %98)
          to label %108 unwind label %.loopexit

108:                                              ; preds = %107
  store ptr null, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FileStorage6addBagEPK8StoreBag(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %103)
          to label %109 unwind label %.loopexit

109:                                              ; preds = %108, %95, %87, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 32
  %112 = load ptr, ptr %111, align 8, !tbaa !27
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = load i32, ptr %113, align 8, !tbaa !28
  %115 = zext i32 %114 to i64
  %116 = icmp ult i64 %indvars.iv.next, %115
  br i1 %116, label %.lr.ph, label %.thread109, !llvm.loop !34

.thread109:                                       ; preds = %109, %.preheader, %77, %31
  %117 = phi ptr [ %78, %.preheader ], [ %78, %77 ], [ %32, %31 ], [ %110, %109 ]
  invoke void @jks_entry_free(ptr noundef nonnull %117)
          to label %118 unwind label %.loopexit130

118:                                              ; preds = %.thread109
  store ptr null, ptr %3, align 8, !tbaa !5
  %119 = add nuw i32 %.057155, 1
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = icmp ult i32 %119, %120
  br i1 %121, label %26, label %._crit_edge, !llvm.loop !36

._crit_edge:                                      ; preds = %118
  %122 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %123 = invoke i32 @jks_buffer_get_hash(ptr noundef nonnull %11, ptr noundef %122)
          to label %124 unwind label %15

124:                                              ; preds = %._crit_edge
  %.not98 = icmp eq i32 %123, 0
  br i1 %.not98, label %126, label %125

125:                                              ; preds = %124
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 392, i32 noundef %123)
          to label %.thread119 unwind label %15

126:                                              ; preds = %124
  %127 = invoke i32 @jks_buffer_get_body(ptr noundef nonnull %11, ptr noundef nonnull %5)
          to label %128 unwind label %15

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

129:                                              ; preds = %128
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 393, i32 noundef %127)
          to label %.thread119 unwind label %15

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

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

135:                                              ; preds = %134
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 394, i32 noundef %133)
          to label %.thread119 unwind label %15

136:                                              ; preds = %134
  %137 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %138 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %139 = invoke i32 @ba_cmp(ptr noundef %137, ptr noundef %138)
          to label %140 unwind label %15

140:                                              ; preds = %136
  %.not101 = icmp eq i32 %139, 0
  br i1 %.not101, label %.thread119, label %141

141:                                              ; preds = %140
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 397, i32 noundef 1041, ptr noundef null)
          to label %.thread119 unwind label %15

142:                                              ; preds = %46
  call void @_ZN8StoreBagD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %36) #9
  call void @_ZdlPvm(ptr noundef nonnull %36, i64 noundef 120) #11
  br label %.thread119

.thread119:                                       ; preds = %30, %101, %140, %141, %135, %129, %125, %25, %20, %14, %142
  %.673123 = phi i32 [ %44, %142 ], [ 0, %140 ], [ 1041, %141 ], [ %133, %135 ], [ %127, %129 ], [ %123, %125 ], [ 1043, %25 ], [ %18, %20 ], [ 2, %14 ], [ %28, %30 ], [ 2, %101 ]
  invoke void @jks_buffer_free(ptr noundef %11)
          to label %143 unwind label %15

143:                                              ; preds = %.thread119
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @jks_entry_free(ptr noundef %144)
          to label %145 unwind label %15

145:                                              ; preds = %143
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @ba_free(ptr noundef %146)
          to label %147 unwind label %15

147:                                              ; preds = %145
  %148 = load ptr, ptr %4, align 16, !tbaa !5
  invoke void @ba_free(ptr noundef %148)
          to label %149 unwind label %15

149:                                              ; preds = %147
  %150 = getelementptr inbounds i8, ptr %4, i64 8
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  invoke void @ba_free(ptr noundef %151)
          to label %152 unwind label %15

152:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  ret i32 %.673123

153:                                              ; preds = %.loopexit, %.loopexit.split-lp, %.loopexit130, %.loopexit.split-lp131, %38, %65, %105, %15
  %.pn103 = phi { ptr, i32 } [ %16, %15 ], [ %66, %65 ], [ %39, %38 ], [ %106, %105 ], [ %lpad.loopexit132, %.loopexit130 ], [ %lpad.loopexit.split-lp133, %.loopexit.split-lp131 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn103
}

; Function Attrs: nounwind
declare void @_ZN8StoreBagD1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @ba_free(ptr noundef) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

declare i32 @pkcs12_iit_read_kep_key(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #7

declare void @_ZN8StoreBagC1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #4

declare void @_ZN8StoreBag7setDataENS_8BAG_TYPEEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef, ptr noundef) local_unnamed_addr #4

declare ptr @jks_buffer_alloc_ba(ptr noundef) local_unnamed_addr #4

declare i32 @jks_read_header(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare i32 @jks_entry_read(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

declare i32 @jks_decrypt_key(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN8StoreBag15setFriendlyNameEPKc(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef) local_unnamed_addr #4

declare void @_ZN8StoreBag12scanStdAttrsEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #8

declare i64 @ba_get_len(ptr noundef) local_unnamed_addr #4

declare ptr @ba_copy_with_alloc(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

declare void @jks_entry_free(ptr noundef) local_unnamed_addr #4

declare i32 @jks_buffer_get_hash(ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @jks_buffer_get_body(ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @jks_hash_store(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare void @jks_buffer_free(ptr noundef) local_unnamed_addr #4

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

!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, !6, i64 0}
!12 = !{!"_ZTS11FileStorage", !6, i64 0, !13, i64 8, !16, i64 40, !16, i64 41, !13, i64 48, !16, i64 80, !17, i64 88, !6, i64 112, !21, i64 120}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIP8StoreBagSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP8StoreBagSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP8StoreBagSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP8StoreBagSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTS16FileStorageParam", !6, i64 0, !6, i64 8, !6, i64 16, !15, i64 24}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTS11JksEntry_st", !24, i64 0, !6, i64 8, !15, i64 16, !7, i64 24, !6, i64 32}
!24 = !{!"_ZTS9EntryType", !7, i64 0}
!25 = !{!7, !7, i64 0}
!26 = !{!23, !6, i64 8}
!27 = !{!23, !6, i64 32}
!28 = !{!29, !10, i64 8}
!29 = !{!"_ZTS19JksCertificaties_st", !6, i64 0, !10, i64 8}
!30 = !{!29, !6, i64 0}
!31 = !{!32, !6, i64 0}
!32 = !{!"_ZTS17JksCertificate_st", !6, i64 0, !6, i64 8}
!33 = !{!32, !6, i64 8}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}


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