; LLVM IR from Trusted-eSign/trusted-crypto :: deps/wrapper/src/pki (pkcs12)

; 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.Handle.3 = type { ptr }
%class.LoggerFunction = type { %class.Handle.0, ptr }
%class.Handle.0 = type { ptr }
%class.Handle.1 = type { ptr }
%class.Handle.2 = type { ptr }

@logger = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_ = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1

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

declare void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ...) #1

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

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

declare void @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176), i1 noundef zeroext, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ...) unnamed_addr #1

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare void @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind
declare void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare void @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind
declare noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176)) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_(ptr dead_on_unwind noalias writable sret(%class.Handle.3) align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %class.LoggerFunction, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %class.Handle.1, align 8
  %20 = alloca %class.Handle.1, align 8
  %21 = alloca i1, align 1
  %22 = alloca %class.Handle.2, align 8
  %23 = alloca i1, align 1
  %24 = alloca ptr, align 8
  %25 = alloca %class.Handle.1, align 8
  %26 = alloca %class.Handle.1, align 8
  %27 = alloca i1, align 1
  store ptr %0, ptr %8, align 8
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %28 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  %29 = load ptr, ptr @logger, align 8, !tbaa !5
  call void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %29, ptr noundef @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  store ptr null, ptr %16, align 8, !tbaa !5
  %30 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %30, i32 noundef 32, ptr noundef @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_, ptr noundef @.str.8)
          to label %31 unwind label %59

31:                                               ; preds = %7
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  %34 = invoke noundef ptr @_ZNK6HandleI3KeyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %35 unwind label %59

35:                                               ; preds = %31
  %36 = invoke noundef ptr @_ZN9SSLObjectI11evp_pkey_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %37 unwind label %59

37:                                               ; preds = %35
  %38 = invoke noundef ptr @_ZNK6HandleI11CertificateEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %39 unwind label %59

39:                                               ; preds = %37
  %40 = invoke noundef ptr @_ZN9SSLObjectI7x509_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %41 unwind label %59

41:                                               ; preds = %39
  %42 = invoke ptr @PKCS12_create(ptr noundef %32, ptr noundef %33, ptr noundef %36, ptr noundef %40, ptr noundef null, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
          to label %43 unwind label %59

43:                                               ; preds = %41
  store ptr %42, ptr %16, align 8, !tbaa !5
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %89, label %46

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %47 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #10
          to label %48 unwind label %63

48:                                               ; preds = %46
  store i1 true, ptr %21, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef null)
          to label %49 unwind label %67

49:                                               ; preds = %48
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %47, i1 noundef zeroext true, ptr noundef @.str.1, i32 noundef 47, i32 noundef 0, ptr noundef @.str.2, ptr noundef @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_, ptr noundef %20, ptr noundef @.str.9)
          to label %50 unwind label %71

50:                                               ; preds = %49
  store i1 false, ptr %21, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %47)
          to label %51 unwind label %71

51:                                               ; preds = %50
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  %52 = load ptr, ptr @logger, align 8, !tbaa !5
  %53 = invoke noundef ptr @_ZNK6HandleI9ExceptionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %54 unwind label %79

54:                                               ; preds = %51
  %55 = call noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176) %53) #9
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_, ptr noundef @.str.7, ptr noundef %55)
          to label %56 unwind label %79

56:                                               ; preds = %54
  %57 = call ptr @__cxa_allocate_exception(i64 8) #9
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %58 unwind label %83

58:                                               ; preds = %56
  invoke void @__cxa_throw(ptr %57, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #11
          to label %168 unwind label %79

59:                                               ; preds = %89, %41, %39, %37, %35, %31, %7
  %60 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %17, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %18, align 4
  br label %108

63:                                               ; preds = %46
  %64 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %17, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %18, align 4
  br label %88

67:                                               ; preds = %48
  %68 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %17, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %18, align 4
  br label %75

71:                                               ; preds = %50, %49
  %72 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %17, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %18, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br label %75

75:                                               ; preds = %71, %67
  %76 = load i1, ptr %21, align 1
  br i1 %76, label %77, label %78

77:                                               ; preds = %75
  call void @_ZdlPvm(ptr noundef %47, i64 noundef 176) #12
  br label %78

78:                                               ; preds = %77, %75
  br label %88

79:                                               ; preds = %58, %54, %51
  %80 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %17, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %18, align 4
  br label %87

83:                                               ; preds = %56
  %84 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %17, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %18, align 4
  call void @__cxa_free_exception(ptr %57) #9
  br label %87

87:                                               ; preds = %83, %79
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  br label %88

88:                                               ; preds = %87, %78, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %108

89:                                               ; preds = %43
  %90 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #10
          to label %91 unwind label %59

91:                                               ; preds = %89
  store i1 true, ptr %23, align 1
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN9SSLObjectI9PKCS12_stE6handleEv(ptr dead_on_unwind writable sret(%class.Handle.2) align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %93 unwind label %96

93:                                               ; preds = %91
  invoke void @_ZN6Pkcs12C2EP9PKCS12_st6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16) %90, ptr noundef %92, ptr noundef %22)
          to label %94 unwind label %100

94:                                               ; preds = %93
  store i1 false, ptr %23, align 1
  invoke void @_ZN6HandleI6Pkcs12EC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %90)
          to label %95 unwind label %100

95:                                               ; preds = %94
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  ret void

96:                                               ; preds = %91
  %97 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %17, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %18, align 4
  br label %104

100:                                              ; preds = %94, %93
  %101 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %17, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %18, align 4
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br label %104

104:                                              ; preds = %100, %96
  %105 = load i1, ptr %23, align 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %104
  call void @_ZdlPvm(ptr noundef %90, i64 noundef 16) #12
  br label %107

107:                                              ; preds = %106, %104
  br label %108

108:                                              ; preds = %107, %88, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %18, align 4
  %111 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTI6HandleI9ExceptionE) #9
  %112 = icmp eq i32 %110, %111
  br i1 %112, label %113, label %159

113:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %114 = load ptr, ptr %17, align 8
  %115 = call ptr @__cxa_begin_catch(ptr %114) #9
  store ptr %115, ptr %24, align 8
  %116 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %116, ptr noundef @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_, ptr noundef @.str.10)
          to label %117 unwind label %126

117:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %118 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #10
          to label %119 unwind label %130

119:                                              ; preds = %117
  store i1 true, ptr %27, align 1
  %120 = load ptr, ptr %24, align 8, !tbaa !5
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %120)
          to label %121 unwind label %134

121:                                              ; preds = %119
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %118, i1 noundef zeroext false, ptr noundef @.str.1, i32 noundef 53, i32 noundef 0, ptr noundef @.str.2, ptr noundef @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_, ptr noundef %26, ptr noundef @.str.10)
          to label %122 unwind label %138

122:                                              ; preds = %121
  store i1 false, ptr %27, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef %118)
          to label %123 unwind label %138

123:                                              ; preds = %122
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  %124 = call ptr @__cxa_allocate_exception(i64 8) #9
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %125 unwind label %146

125:                                              ; preds = %123
  invoke void @__cxa_throw(ptr %124, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #11
          to label %168 unwind label %150

126:                                              ; preds = %113
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %17, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %18, align 4
  br label %156

130:                                              ; preds = %117
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %17, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %18, align 4
  br label %155

134:                                              ; preds = %119
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %17, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %18, align 4
  br label %142

138:                                              ; preds = %122, %121
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %17, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %18, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  br label %142

142:                                              ; preds = %138, %134
  %143 = load i1, ptr %27, align 1
  br i1 %143, label %144, label %145

144:                                              ; preds = %142
  call void @_ZdlPvm(ptr noundef %118, i64 noundef 176) #12
  br label %145

145:                                              ; preds = %144, %142
  br label %155

146:                                              ; preds = %123
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %17, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %18, align 4
  call void @__cxa_free_exception(ptr %124) #9
  br label %154

150:                                              ; preds = %125
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %17, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %18, align 4
  br label %154

154:                                              ; preds = %150, %146
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  br label %155

155:                                              ; preds = %154, %145, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %156

156:                                              ; preds = %155, %126
  invoke void @__cxa_end_catch()
          to label %157 unwind label %165

157:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %159

158:                                              ; No predecessors!
  unreachable

159:                                              ; preds = %157, %109
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  br label %160

160:                                              ; preds = %159
  %161 = load ptr, ptr %17, align 8
  %162 = load i32, ptr %18, align 4
  %163 = insertvalue { ptr, i32 } poison, ptr %161, 0
  %164 = insertvalue { ptr, i32 } %163, i32 %162, 1
  resume { ptr, i32 } %164

165:                                              ; preds = %156
  %166 = landingpad { ptr, i32 }
          catch ptr null
  %167 = extractvalue { ptr, i32 } %166, 0
  call void @__clang_call_terminate(ptr %167) #13
  unreachable

168:                                              ; preds = %125, %58
  unreachable
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SSLObjectI9PKCS12_stE6handleEv(ptr dead_on_unwind noalias writable sret(%class.Handle.2) align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #7

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #8

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 = { 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 #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 = { 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 = { 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 #6 = { 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 #7 = { nounwind memory(none) }
attributes #8 = { noinline noreturn nounwind uwtable "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 = { noreturn }
attributes #12 = { builtin nounwind }
attributes #13 = { noreturn 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"}


; 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.Handle.3 = type { ptr }
%class.LoggerFunction = type { %class.Handle.0, ptr }
%class.Handle.0 = type { ptr }
%class.Handle.1 = type { ptr }
%class.Handle.2 = type { ptr }

@logger = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_ = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1

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

declare void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

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

declare void @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176), i1 noundef zeroext, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ...) unnamed_addr #1

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

declare void @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare void @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind
declare noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_(ptr dead_on_unwind noalias writable sret(%class.Handle.3) align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef readnone %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %class.LoggerFunction, align 8
  %9 = alloca %class.Handle.1, align 8
  %10 = alloca %class.Handle.1, align 8
  %11 = alloca %class.Handle.2, align 8
  %12 = alloca %class.Handle.1, align 8
  %13 = alloca %class.Handle.1, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  %14 = load ptr, ptr @logger, align 8, !tbaa !5
  call void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %14, ptr noundef nonnull @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_)
  %15 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_, ptr noundef nonnull @.str.8)
          to label %16 unwind label %40

16:                                               ; preds = %7
  %17 = invoke noundef ptr @_ZNK6HandleI3KeyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %18 unwind label %40

18:                                               ; preds = %16
  %19 = invoke noundef ptr @_ZN9SSLObjectI11evp_pkey_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %20 unwind label %40

20:                                               ; preds = %18
  %21 = invoke noundef ptr @_ZNK6HandleI11CertificateEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %22 unwind label %40

22:                                               ; preds = %20
  %23 = invoke noundef ptr @_ZN9SSLObjectI7x509_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %24 unwind label %40

24:                                               ; preds = %22
  %25 = invoke ptr @PKCS12_create(ptr noundef %5, ptr noundef %6, ptr noundef %19, ptr noundef %23, ptr noundef null, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
          to label %26 unwind label %40

26:                                               ; preds = %24
  %.not = icmp eq ptr %25, null
  br i1 %.not, label %27, label %51

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %28 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #10
          to label %29 unwind label %42

29:                                               ; preds = %27
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef null)
          to label %30 unwind label %.thread

30:                                               ; preds = %29
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %28, i1 noundef zeroext true, ptr noundef nonnull @.str.1, i32 noundef 47, i32 noundef 0, ptr noundef nonnull @.str.2, ptr noundef nonnull @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_, ptr noundef nonnull %10, ptr noundef nonnull @.str.9)
          to label %32 unwind label %.thread37

.thread37:                                        ; preds = %30
  %31 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %47

32:                                               ; preds = %30
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %28)
          to label %33 unwind label %45

33:                                               ; preds = %32
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %34 = load ptr, ptr @logger, align 8, !tbaa !5
  %35 = invoke noundef ptr @_ZNK6HandleI9ExceptionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %36 unwind label %48

36:                                               ; preds = %33
  %37 = call noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176) %35) #9
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_, ptr noundef nonnull @.str.7, ptr noundef %37)
          to label %38 unwind label %48

38:                                               ; preds = %36
  %39 = call ptr @__cxa_allocate_exception(i64 8) #9
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %9)
  invoke void @__cxa_throw(ptr nonnull %39, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #11
          to label %90 unwind label %48

40:                                               ; preds = %51, %24, %22, %20, %18, %16, %7
  %41 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %62

42:                                               ; preds = %27
  %43 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %50

.thread:                                          ; preds = %29
  %44 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %47

45:                                               ; preds = %32
  %46 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %50

47:                                               ; preds = %.thread37, %.thread
  %.pn36 = phi { ptr, i32 } [ %44, %.thread ], [ %31, %.thread37 ]
  call void @_ZdlPvm(ptr noundef nonnull %28, i64 noundef 176) #12
  br label %50

48:                                               ; preds = %38, %36, %33
  %49 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  br label %50

50:                                               ; preds = %45, %47, %48, %42
  %.pn26 = phi { ptr, i32 } [ %49, %48 ], [ %.pn36, %47 ], [ %46, %45 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br label %62

51:                                               ; preds = %26
  %52 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
          to label %53 unwind label %40

53:                                               ; preds = %51
  invoke void @_ZN9SSLObjectI9PKCS12_stE6handleEv(ptr dead_on_unwind nonnull writable sret(%class.Handle.2) align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %54 unwind label %.thread39

54:                                               ; preds = %53
  invoke void @_ZN6Pkcs12C2EP9PKCS12_st6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull %25, ptr noundef nonnull %11)
          to label %56 unwind label %.thread43

.thread43:                                        ; preds = %54
  %55 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %61

56:                                               ; preds = %54
  invoke void @_ZN6HandleI6Pkcs12EC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %52)
          to label %57 unwind label %59

57:                                               ; preds = %56
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  ret void

.thread39:                                        ; preds = %53
  %58 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %61

59:                                               ; preds = %56
  %60 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %62

61:                                               ; preds = %.thread43, %.thread39
  %.pn2842 = phi { ptr, i32 } [ %58, %.thread39 ], [ %55, %.thread43 ]
  call void @_ZdlPvm(ptr noundef nonnull %52, i64 noundef 16) #12
  br label %62

62:                                               ; preds = %59, %61, %50, %40
  %.pn28.pn = phi { ptr, i32 } [ %.pn2842, %61 ], [ %60, %59 ], [ %41, %40 ], [ %.pn26, %50 ]
  %.3 = extractvalue { ptr, i32 } %.pn28.pn, 1
  %63 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTI6HandleI9ExceptionE) #9
  %64 = icmp eq i32 %.3, %63
  br i1 %64, label %65, label %86

65:                                               ; preds = %62
  %.320 = extractvalue { ptr, i32 } %.pn28.pn, 0
  %66 = call ptr @__cxa_begin_catch(ptr %.320) #9
  %67 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_, ptr noundef nonnull @.str.10)
          to label %68 unwind label %74

68:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %69 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #10
          to label %70 unwind label %76

70:                                               ; preds = %68
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %66)
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %69, i1 noundef zeroext false, ptr noundef nonnull @.str.1, i32 noundef 53, i32 noundef 0, ptr noundef nonnull @.str.2, ptr noundef nonnull @__FUNCTION__._ZN6Pkcs126createE6HandleI11CertificateES0_I3KeyES0_I21CertificateCollectionEPcS7_, ptr noundef nonnull %13, ptr noundef nonnull @.str.10)
          to label %71 unwind label %80

71:                                               ; preds = %70
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %69)
          to label %72 unwind label %78

72:                                               ; preds = %71
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %73 = call ptr @__cxa_allocate_exception(i64 8) #9
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(8) %12)
  invoke void @__cxa_throw(ptr nonnull %73, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #11
          to label %90 unwind label %82

74:                                               ; preds = %65
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %85

76:                                               ; preds = %68
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %84

78:                                               ; preds = %71
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br label %84

80:                                               ; preds = %70
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @_ZdlPvm(ptr noundef nonnull %69, i64 noundef 176) #12
  br label %84

82:                                               ; preds = %72
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br label %84

84:                                               ; preds = %78, %80, %82, %76
  %.pn31 = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ], [ %79, %78 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %85

85:                                               ; preds = %84, %74
  %.pn31.pn = phi { ptr, i32 } [ %.pn31, %84 ], [ %75, %74 ]
  invoke void @__cxa_end_catch()
          to label %86 unwind label %87

86:                                               ; preds = %85, %62
  %.merged = phi { ptr, i32 } [ %.pn28.pn, %62 ], [ %.pn31.pn, %85 ]
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  resume { ptr, i32 } %.merged

87:                                               ; preds = %85
  %88 = landingpad { ptr, i32 }
          catch ptr null
  %89 = extractvalue { ptr, i32 } %88, 0
  call void @__clang_call_terminate(ptr %89) #13
  unreachable

90:                                               ; preds = %72, %38
  unreachable
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SSLObjectI9PKCS12_stE6handleEv(ptr dead_on_unwind noalias writable sret(%class.Handle.2) align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #7

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #8

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 = { 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 #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 = { 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 = { 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 #6 = { 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 #7 = { nofree nosync nounwind memory(none) }
attributes #8 = { noinline noreturn nounwind uwtable "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 = { noreturn }
attributes #12 = { builtin nounwind }
attributes #13 = { noreturn nounwind }

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

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


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