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

; 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.1 = type { ptr }
%class.Handle.7 = type { ptr }
%class.LoggerFunction = type { %class.Handle.0, ptr }
%class.Handle.0 = type { ptr }
%class.Handle.8 = type { ptr }
%class.SignedData = type <{ %class.SSLObject, %class.Handle.2, i32, [4 x i8] }>
%class.SSLObject = type { ptr, %class.Handle.1 }
%class.Handle.2 = type { ptr }

@logger = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8
@__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 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 void @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, ptr noundef, ...) #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #2 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

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)) #2 align 2

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

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

29:                                               ; preds = %4
  %30 = invoke noundef ptr @_ZNK6HandleI3KeyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %31 unwind label %50

31:                                               ; preds = %29
  %32 = invoke noundef ptr @_ZN9SSLObjectI11evp_pkey_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %33 unwind label %50

33:                                               ; preds = %31
  %34 = invoke i32 @EVP_PKEY_get_default_digest_nid(ptr noundef %32, ptr noundef %10)
          to label %35 unwind label %50

35:                                               ; preds = %33
  %36 = icmp sle i32 %34, 0
  br i1 %36, label %37, label %80

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %38 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #8
          to label %39 unwind label %54

39:                                               ; preds = %37
  store i1 true, ptr %15, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef null)
          to label %40 unwind label %58

40:                                               ; preds = %39
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %38, i1 noundef zeroext true, ptr noundef @.str.2, i32 noundef 166, i32 noundef 0, ptr noundef @.str.3, ptr noundef @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef %14, ptr noundef @.str.22)
          to label %41 unwind label %62

41:                                               ; preds = %40
  store i1 false, ptr %15, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %38)
          to label %42 unwind label %62

42:                                               ; preds = %41
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %43 = load ptr, ptr @logger, align 8, !tbaa !5
  %44 = invoke noundef ptr @_ZNK6HandleI9ExceptionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %45 unwind label %70

45:                                               ; preds = %42
  %46 = call noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176) %44) #7
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef @.str.5, ptr noundef %46)
          to label %47 unwind label %70

47:                                               ; preds = %45
  %48 = call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %49 unwind label %74

49:                                               ; preds = %47
  invoke void @__cxa_throw(ptr %48, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #9
          to label %223 unwind label %70

50:                                               ; preds = %80, %33, %31, %29, %4
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %11, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %12, align 4
  br label %217

54:                                               ; preds = %37
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %11, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %12, align 4
  br label %79

58:                                               ; preds = %39
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %11, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %12, align 4
  br label %66

62:                                               ; preds = %41, %40
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %11, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %12, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %66

66:                                               ; preds = %62, %58
  %67 = load i1, ptr %15, align 1
  br i1 %67, label %68, label %69

68:                                               ; preds = %66
  call void @_ZdlPvm(ptr noundef %38, i64 noundef 176) #10
  br label %69

69:                                               ; preds = %68, %66
  br label %79

70:                                               ; preds = %49, %45, %42
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %11, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %12, align 4
  br label %78

74:                                               ; preds = %47
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %11, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %12, align 4
  call void @__cxa_free_exception(ptr %48) #7
  br label %78

78:                                               ; preds = %74, %70
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %79

79:                                               ; preds = %78, %69, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %217

80:                                               ; preds = %35
  %81 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %81, i32 noundef 32, ptr noundef @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef @.str.21)
          to label %82 unwind label %50

82:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = invoke ptr @OBJ_nid2sn(i32 noundef %83)
          to label %85 unwind label %103

85:                                               ; preds = %82
  %86 = invoke ptr @EVP_get_digestbyname(ptr noundef %84)
          to label %87 unwind label %103

87:                                               ; preds = %85
  store ptr %86, ptr %16, align 8, !tbaa !5
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = icmp eq ptr %88, null
  br i1 %89, label %90, label %133

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %91 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #8
          to label %92 unwind label %107

92:                                               ; preds = %90
  store i1 true, ptr %19, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef null)
          to label %93 unwind label %111

93:                                               ; preds = %92
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %91, i1 noundef zeroext true, ptr noundef @.str.2, i32 noundef 172, i32 noundef 0, ptr noundef @.str.3, ptr noundef @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef %18, ptr noundef @.str.23)
          to label %94 unwind label %115

94:                                               ; preds = %93
  store i1 false, ptr %19, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef %91)
          to label %95 unwind label %115

95:                                               ; preds = %94
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %96 = load ptr, ptr @logger, align 8, !tbaa !5
  %97 = invoke noundef ptr @_ZNK6HandleI9ExceptionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %98 unwind label %123

98:                                               ; preds = %95
  %99 = call noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176) %97) #7
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %96, ptr noundef @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef @.str.5, ptr noundef %99)
          to label %100 unwind label %123

100:                                              ; preds = %98
  %101 = call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %102 unwind label %127

102:                                              ; preds = %100
  invoke void @__cxa_throw(ptr %101, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #9
          to label %223 unwind label %123

103:                                              ; preds = %133, %85, %82
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %11, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %12, align 4
  br label %216

107:                                              ; preds = %90
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %11, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %12, align 4
  br label %132

111:                                              ; preds = %92
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %11, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %12, align 4
  br label %119

115:                                              ; preds = %94, %93
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %11, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %12, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br label %119

119:                                              ; preds = %115, %111
  %120 = load i1, ptr %19, align 1
  br i1 %120, label %121, label %122

121:                                              ; preds = %119
  call void @_ZdlPvm(ptr noundef %91, i64 noundef 176) #10
  br label %122

122:                                              ; preds = %121, %119
  br label %132

123:                                              ; preds = %102, %98, %95
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %11, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %12, align 4
  br label %131

127:                                              ; preds = %100
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %11, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %12, align 4
  call void @__cxa_free_exception(ptr %101) #7
  br label %131

131:                                              ; preds = %127, %123
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %132

132:                                              ; preds = %131, %122, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %216

133:                                              ; preds = %87
  %134 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %134, i32 noundef 32, ptr noundef @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef @.str.24)
          to label %135 unwind label %103

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %136 = invoke noundef ptr @_ZN9SSLObjectI18CMS_ContentInfo_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %137 unwind label %166

137:                                              ; preds = %135
  %138 = invoke noundef ptr @_ZNK6HandleI11CertificateEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %139 unwind label %166

139:                                              ; preds = %137
  %140 = invoke noundef ptr @_ZN9SSLObjectI7x509_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %138)
          to label %141 unwind label %166

141:                                              ; preds = %139
  %142 = invoke noundef ptr @_ZNK6HandleI3KeyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %143 unwind label %166

143:                                              ; preds = %141
  %144 = invoke noundef ptr @_ZN9SSLObjectI11evp_pkey_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %142)
          to label %145 unwind label %166

145:                                              ; preds = %143
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  %147 = getelementptr inbounds %class.SignedData, ptr %26, i32 0, i32 2
  %148 = load i32, ptr %147, align 8, !tbaa !11
  %149 = invoke ptr @CMS_add1_signer(ptr noundef %136, ptr noundef %140, ptr noundef %144, ptr noundef %146, i32 noundef %148)
          to label %150 unwind label %166

150:                                              ; preds = %145
  store ptr %149, ptr %20, align 8, !tbaa !5
  %151 = load ptr, ptr %20, align 8, !tbaa !5
  %152 = icmp ne ptr %151, null
  br i1 %152, label %196, label %153

153:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %154 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #8
          to label %155 unwind label %170

155:                                              ; preds = %153
  store i1 true, ptr %23, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef null)
          to label %156 unwind label %174

156:                                              ; preds = %155
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %154, i1 noundef zeroext true, ptr noundef @.str.2, i32 noundef 178, i32 noundef 0, ptr noundef @.str.3, ptr noundef @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef %22, ptr noundef @.str.25)
          to label %157 unwind label %178

157:                                              ; preds = %156
  store i1 false, ptr %23, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef %154)
          to label %158 unwind label %178

158:                                              ; preds = %157
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %159 = load ptr, ptr @logger, align 8, !tbaa !5
  %160 = invoke noundef ptr @_ZNK6HandleI9ExceptionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %161 unwind label %186

161:                                              ; preds = %158
  %162 = call noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176) %160) #7
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %159, ptr noundef @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef @.str.5, ptr noundef %162)
          to label %163 unwind label %186

163:                                              ; preds = %161
  %164 = call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %165 unwind label %190

165:                                              ; preds = %163
  invoke void @__cxa_throw(ptr %164, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #9
          to label %223 unwind label %186

166:                                              ; preds = %196, %145, %143, %141, %139, %137, %135
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %11, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %12, align 4
  br label %215

170:                                              ; preds = %153
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %11, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %12, align 4
  br label %195

174:                                              ; preds = %155
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %11, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %12, align 4
  br label %182

178:                                              ; preds = %157, %156
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %11, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %12, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br label %182

182:                                              ; preds = %178, %174
  %183 = load i1, ptr %23, align 1
  br i1 %183, label %184, label %185

184:                                              ; preds = %182
  call void @_ZdlPvm(ptr noundef %154, i64 noundef 176) #10
  br label %185

185:                                              ; preds = %184, %182
  br label %195

186:                                              ; preds = %165, %161, %158
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %11, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %12, align 4
  br label %194

190:                                              ; preds = %163
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %11, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %12, align 4
  call void @__cxa_free_exception(ptr %164) #7
  br label %194

194:                                              ; preds = %190, %186
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br label %195

195:                                              ; preds = %194, %185, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %215

196:                                              ; preds = %150
  %197 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #8
          to label %198 unwind label %166

198:                                              ; preds = %196
  store i1 true, ptr %25, align 1
  %199 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZN9SSLObjectI18CMS_ContentInfo_stE6handleEv(ptr dead_on_unwind writable sret(%class.Handle.1) align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %200 unwind label %203

200:                                              ; preds = %198
  invoke void @_ZN6SignerC2EP17CMS_SignerInfo_st6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16) %197, ptr noundef %199, ptr noundef %24)
          to label %201 unwind label %207

201:                                              ; preds = %200
  store i1 false, ptr %25, align 1
  invoke void @_ZN6HandleI6SignerEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %197)
          to label %202 unwind label %207

202:                                              ; preds = %201
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  ret void

203:                                              ; preds = %198
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %11, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %12, align 4
  br label %211

207:                                              ; preds = %201, %200
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %11, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %12, align 4
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br label %211

211:                                              ; preds = %207, %203
  %212 = load i1, ptr %25, align 1
  br i1 %212, label %213, label %214

213:                                              ; preds = %211
  call void @_ZdlPvm(ptr noundef %197, i64 noundef 16) #10
  br label %214

214:                                              ; preds = %213, %211
  br label %215

215:                                              ; preds = %214, %195, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %216

216:                                              ; preds = %215, %132, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %217

217:                                              ; preds = %216, %79, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  br label %218

218:                                              ; preds = %217
  %219 = load ptr, ptr %11, align 8
  %220 = load i32, ptr %12, align 4
  %221 = insertvalue { ptr, i32 } poison, ptr %219, 0
  %222 = insertvalue { ptr, i32 } %221, i32 %220, 1
  resume { ptr, i32 } %222

223:                                              ; preds = %165, %102, %49
  unreachable
}

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

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

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

declare ptr @EVP_get_digestbyname(ptr noundef) #1

declare ptr @OBJ_nid2sn(i32 noundef) #1

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

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

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

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

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

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

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

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


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

@logger = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8
@__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 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 void @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6HandleI7SObjectED2Ev(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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #2 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

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 #2 align 2

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

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 uwtable
define dso_local void @_ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE(ptr dead_on_unwind noalias writable sret(%class.Handle.7) align 8 %0, ptr noundef nonnull align 8 dereferenceable(28) %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.LoggerFunction, align 8
  %6 = alloca i32, align 4
  %7 = alloca %class.Handle.8, align 8
  %8 = alloca %class.Handle.8, align 8
  %9 = alloca %class.Handle.8, align 8
  %10 = alloca %class.Handle.8, align 8
  %11 = alloca %class.Handle.8, align 8
  %12 = alloca %class.Handle.8, align 8
  %13 = alloca %class.Handle.1, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %14 = load ptr, ptr @logger, align 8, !tbaa !5
  call void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %14, ptr noundef nonnull @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %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__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef nonnull @.str.21)
          to label %16 unwind label %37

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

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

20:                                               ; preds = %18
  %21 = invoke i32 @EVP_PKEY_get_default_digest_nid(ptr noundef %19, ptr noundef nonnull %6)
          to label %22 unwind label %37

22:                                               ; preds = %20
  %23 = icmp slt i32 %21, 1
  br i1 %23, label %24, label %48

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %25 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #8
          to label %26 unwind label %39

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

27:                                               ; preds = %26
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %25, i1 noundef zeroext true, ptr noundef nonnull @.str.2, i32 noundef 166, i32 noundef 0, ptr noundef nonnull @.str.3, ptr noundef nonnull @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef nonnull %8, ptr noundef nonnull @.str.22)
          to label %29 unwind label %.thread49

.thread49:                                        ; preds = %27
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %44

29:                                               ; preds = %27
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %25)
          to label %30 unwind label %42

30:                                               ; preds = %29
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %31 = load ptr, ptr @logger, align 8, !tbaa !5
  %32 = invoke noundef ptr @_ZNK6HandleI9ExceptionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %33 unwind label %45

33:                                               ; preds = %30
  %34 = call noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176) %32) #7
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef nonnull @.str.5, ptr noundef %34)
          to label %35 unwind label %45

35:                                               ; preds = %33
  %36 = call ptr @__cxa_allocate_exception(i64 8) #7
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @__cxa_throw(ptr nonnull %36, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #9
          to label %134 unwind label %45

37:                                               ; preds = %48, %20, %18, %16, %4
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %133

39:                                               ; preds = %24
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %47

.thread:                                          ; preds = %26
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %29
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %47

44:                                               ; preds = %.thread49, %.thread
  %.pn4148 = phi { ptr, i32 } [ %41, %.thread ], [ %28, %.thread49 ]
  call void @_ZdlPvm(ptr noundef nonnull %25, i64 noundef 176) #10
  br label %47

45:                                               ; preds = %35, %33, %30
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %47

47:                                               ; preds = %42, %44, %45, %39
  %.pn43 = phi { ptr, i32 } [ %46, %45 ], [ %.pn4148, %44 ], [ %43, %42 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %133

48:                                               ; preds = %22
  %49 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %49, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef nonnull @.str.21)
          to label %50 unwind label %37

50:                                               ; preds = %48
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = invoke ptr @OBJ_nid2sn(i32 noundef %51)
          to label %53 unwind label %70

53:                                               ; preds = %50
  %54 = invoke ptr @EVP_get_digestbyname(ptr noundef %52)
          to label %55 unwind label %70

55:                                               ; preds = %53
  %56 = icmp eq ptr %54, null
  br i1 %56, label %57, label %81

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %58 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #8
          to label %59 unwind label %72

59:                                               ; preds = %57
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef null)
          to label %60 unwind label %.thread51

60:                                               ; preds = %59
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %58, i1 noundef zeroext true, ptr noundef nonnull @.str.2, i32 noundef 172, i32 noundef 0, ptr noundef nonnull @.str.3, ptr noundef nonnull @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef nonnull %10, ptr noundef nonnull @.str.23)
          to label %62 unwind label %.thread55

.thread55:                                        ; preds = %60
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %77

62:                                               ; preds = %60
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %58)
          to label %63 unwind label %75

63:                                               ; preds = %62
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %64 = load ptr, ptr @logger, align 8, !tbaa !5
  %65 = invoke noundef ptr @_ZNK6HandleI9ExceptionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %66 unwind label %78

66:                                               ; preds = %63
  %67 = call noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176) %65) #7
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef nonnull @.str.5, ptr noundef %67)
          to label %68 unwind label %78

68:                                               ; preds = %66
  %69 = call ptr @__cxa_allocate_exception(i64 8) #7
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(8) %9)
  invoke void @__cxa_throw(ptr nonnull %69, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #9
          to label %134 unwind label %78

70:                                               ; preds = %81, %53, %50
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %133

72:                                               ; preds = %57
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %80

.thread51:                                        ; preds = %59
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %77

75:                                               ; preds = %62
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %80

77:                                               ; preds = %.thread55, %.thread51
  %.pn3654 = phi { ptr, i32 } [ %74, %.thread51 ], [ %61, %.thread55 ]
  call void @_ZdlPvm(ptr noundef nonnull %58, i64 noundef 176) #10
  br label %80

78:                                               ; preds = %68, %66, %63
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br label %80

80:                                               ; preds = %75, %77, %78, %72
  %.pn38 = phi { ptr, i32 } [ %79, %78 ], [ %.pn3654, %77 ], [ %76, %75 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %133

81:                                               ; preds = %55
  %82 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %82, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef nonnull @.str.24)
          to label %83 unwind label %70

83:                                               ; preds = %81
  %84 = invoke noundef ptr @_ZN9SSLObjectI18CMS_ContentInfo_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %85 unwind label %111

85:                                               ; preds = %83
  %86 = invoke noundef ptr @_ZNK6HandleI11CertificateEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %87 unwind label %111

87:                                               ; preds = %85
  %88 = invoke noundef ptr @_ZN9SSLObjectI7x509_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %86)
          to label %89 unwind label %111

89:                                               ; preds = %87
  %90 = invoke noundef ptr @_ZNK6HandleI3KeyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %91 unwind label %111

91:                                               ; preds = %89
  %92 = invoke noundef ptr @_ZN9SSLObjectI11evp_pkey_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %90)
          to label %93 unwind label %111

93:                                               ; preds = %91
  %94 = getelementptr inbounds i8, ptr %1, i64 24
  %95 = load i32, ptr %94, align 8, !tbaa !11
  %96 = invoke ptr @CMS_add1_signer(ptr noundef %84, ptr noundef %88, ptr noundef %92, ptr noundef nonnull %54, i32 noundef %95)
          to label %97 unwind label %111

97:                                               ; preds = %93
  %.not = icmp eq ptr %96, null
  br i1 %.not, label %98, label %122

98:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %99 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #8
          to label %100 unwind label %113

100:                                              ; preds = %98
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef null)
          to label %101 unwind label %.thread57

101:                                              ; preds = %100
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %99, i1 noundef zeroext true, ptr noundef nonnull @.str.2, i32 noundef 178, i32 noundef 0, ptr noundef nonnull @.str.3, ptr noundef nonnull @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef nonnull %12, ptr noundef nonnull @.str.25)
          to label %103 unwind label %.thread61

.thread61:                                        ; preds = %101
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %118

103:                                              ; preds = %101
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %99)
          to label %104 unwind label %116

104:                                              ; preds = %103
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %105 = load ptr, ptr @logger, align 8, !tbaa !5
  %106 = invoke noundef ptr @_ZNK6HandleI9ExceptionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %107 unwind label %119

107:                                              ; preds = %104
  %108 = call noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176) %106) #7
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %105, ptr noundef nonnull @__FUNCTION__._ZN10SignedData12createSignerE6HandleI11CertificateES0_I3KeyE, ptr noundef nonnull @.str.5, ptr noundef %108)
          to label %109 unwind label %119

109:                                              ; preds = %107
  %110 = call ptr @__cxa_allocate_exception(i64 8) #7
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull align 8 dereferenceable(8) %11)
  invoke void @__cxa_throw(ptr nonnull %110, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #9
          to label %134 unwind label %119

111:                                              ; preds = %122, %93, %91, %89, %87, %85, %83
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %133

113:                                              ; preds = %98
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %121

.thread57:                                        ; preds = %100
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %118

116:                                              ; preds = %103
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %121

118:                                              ; preds = %.thread61, %.thread57
  %.pn60 = phi { ptr, i32 } [ %115, %.thread57 ], [ %102, %.thread61 ]
  call void @_ZdlPvm(ptr noundef nonnull %99, i64 noundef 176) #10
  br label %121

119:                                              ; preds = %109, %107, %104
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br label %121

121:                                              ; preds = %116, %118, %119, %113
  %.pn31 = phi { ptr, i32 } [ %120, %119 ], [ %.pn60, %118 ], [ %117, %116 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %133

122:                                              ; preds = %97
  %123 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #8
          to label %124 unwind label %111

124:                                              ; preds = %122
  invoke void @_ZN9SSLObjectI18CMS_ContentInfo_stE6handleEv(ptr dead_on_unwind nonnull writable sret(%class.Handle.1) align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %125 unwind label %.thread63

125:                                              ; preds = %124
  invoke void @_ZN6SignerC2EP17CMS_SignerInfo_st6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16) %123, ptr noundef nonnull %96, ptr noundef nonnull %13)
          to label %127 unwind label %.thread67

.thread67:                                        ; preds = %125
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %132

127:                                              ; preds = %125
  invoke void @_ZN6HandleI6SignerEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %123)
          to label %128 unwind label %130

128:                                              ; preds = %127
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  ret void

.thread63:                                        ; preds = %124
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %132

130:                                              ; preds = %127
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %133

132:                                              ; preds = %.thread67, %.thread63
  %.pn3366 = phi { ptr, i32 } [ %129, %.thread63 ], [ %126, %.thread67 ]
  call void @_ZdlPvm(ptr noundef nonnull %123, i64 noundef 16) #10
  br label %133

133:                                              ; preds = %130, %70, %80, %132, %121, %111, %47, %37
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %47 ], [ %38, %37 ], [ %.pn38, %80 ], [ %71, %70 ], [ %.pn3366, %132 ], [ %131, %130 ], [ %112, %111 ], [ %.pn31, %121 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn43.pn

134:                                              ; preds = %109, %68, %35
  unreachable
}

declare i32 @EVP_PKEY_get_default_digest_nid(ptr noundef, ptr 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 #2 align 2

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

declare ptr @EVP_get_digestbyname(ptr noundef) local_unnamed_addr #1

declare ptr @OBJ_nid2sn(i32 noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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


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