; LLVM IR from Trusted-eSign/trusted-crypto :: deps/wrapper/src/cms/signer_attrs.ll (ZN25SignerAttributeCollection5itemsEii)

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

@logger = external global ptr, align 8
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@__FUNCTION__._ZN25SignerAttributeCollection5itemsEii = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 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
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25SignerAttributeCollection5itemsEii(ptr dead_on_unwind noalias writable sret(%class.Handle.2) align 8 %0, ptr noundef nonnull align 8 dereferenceable(9) %1, i32 noundef %2, i32 noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %class.LoggerFunction, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %class.Handle.3, align 8
  %14 = alloca %class.Handle.3, align 8
  %15 = alloca i1, align 1
  %16 = alloca %class.Handle.3, align 8
  %17 = alloca %class.Handle.3, align 8
  %18 = alloca i1, align 1
  %19 = alloca i1, align 1
  %20 = alloca %class.Handle.1, align 8
  %21 = alloca i1, align 1
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %22 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  %23 = load ptr, ptr @logger, align 8, !tbaa !5
  call void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %23, ptr noundef @__FUNCTION__._ZN25SignerAttributeCollection5itemsEii)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %24 = getelementptr inbounds %class.SignerAttributeCollection, ptr %22, i32 0, i32 1
  %25 = load i8, ptr %24, align 8, !tbaa !11, !range !15, !noundef !16
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %84

27:                                               ; preds = %4
  %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__._ZN25SignerAttributeCollection5itemsEii, ptr noundef @.str)
          to label %29 unwind label %53

29:                                               ; preds = %27
  %30 = getelementptr inbounds %class.SignerAttributeCollection, ptr %22, i32 0, i32 0
  %31 = invoke noundef ptr @_ZNK6HandleI6SignerEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %32 unwind label %53

32:                                               ; preds = %29
  %33 = invoke noundef ptr @_ZN9SSLObjectI17CMS_SignerInfo_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %34 unwind label %53

34:                                               ; preds = %32
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = invoke ptr @CMS_signed_get_attr(ptr noundef %33, i32 noundef %35)
          to label %37 unwind label %53

37:                                               ; preds = %34
  store ptr %36, ptr %10, align 8, !tbaa !5
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %83, label %40

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

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

43:                                               ; preds = %42
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %41, i1 noundef zeroext true, ptr noundef @.str.2, i32 noundef 36, i32 noundef 0, ptr noundef @.str.3, ptr noundef @__FUNCTION__._ZN25SignerAttributeCollection5itemsEii, ptr noundef %14, ptr noundef @.str.4)
          to label %44 unwind label %65

44:                                               ; preds = %43
  store i1 false, ptr %15, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %41)
          to label %45 unwind label %65

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

48:                                               ; preds = %45
  %49 = call noundef ptr @_ZNK9Exception4whatEv(ptr noundef nonnull align 8 dereferenceable(176) %47) #7
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger4warnEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef @__FUNCTION__._ZN25SignerAttributeCollection5itemsEii, ptr noundef @.str.5, ptr noundef %49)
          to label %50 unwind label %73

50:                                               ; preds = %48
  %51 = call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %52 unwind label %77

52:                                               ; preds = %50
  invoke void @__cxa_throw(ptr %51, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #9
          to label %168 unwind label %73

53:                                               ; preds = %137, %91, %89, %86, %84, %34, %32, %29, %27
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %11, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %12, align 4
  br label %162

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

61:                                               ; preds = %42
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %11, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %12, align 4
  br label %69

65:                                               ; preds = %44, %43
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %11, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %12, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %69

69:                                               ; preds = %65, %61
  %70 = load i1, ptr %15, align 1
  br i1 %70, label %71, label %72

71:                                               ; preds = %69
  call void @_ZdlPvm(ptr noundef %41, i64 noundef 176) #10
  br label %72

72:                                               ; preds = %71, %69
  br label %82

73:                                               ; preds = %52, %48, %45
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  br label %81

77:                                               ; preds = %50
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %11, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %12, align 4
  call void @__cxa_free_exception(ptr %51) #7
  br label %81

81:                                               ; preds = %77, %73
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %82

82:                                               ; preds = %81, %72, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %162

83:                                               ; preds = %37
  br label %137

84:                                               ; preds = %4
  %85 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %85, i32 noundef 32, ptr noundef @__FUNCTION__._ZN25SignerAttributeCollection5itemsEii, ptr noundef @.str.1)
          to label %86 unwind label %53

86:                                               ; preds = %84
  %87 = getelementptr inbounds %class.SignerAttributeCollection, ptr %22, i32 0, i32 0
  %88 = invoke noundef ptr @_ZNK6HandleI6SignerEptEv(ptr noundef nonnull align 8 dereferenceable(8) %87)
          to label %89 unwind label %53

89:                                               ; preds = %86
  %90 = invoke noundef ptr @_ZN9SSLObjectI17CMS_SignerInfo_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %88)
          to label %91 unwind label %53

91:                                               ; preds = %89
  %92 = load i32, ptr %7, align 4, !tbaa !9
  %93 = invoke ptr @CMS_unsigned_get_attr(ptr noundef %90, i32 noundef %92)
          to label %94 unwind label %53

94:                                               ; preds = %91
  store ptr %93, ptr %10, align 8, !tbaa !5
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %136, label %97

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

99:                                               ; preds = %97
  store i1 true, ptr %18, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef null)
          to label %100 unwind label %114

100:                                              ; preds = %99
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %98, i1 noundef zeroext true, ptr noundef @.str.2, i32 noundef 43, i32 noundef 0, ptr noundef @.str.3, ptr noundef @__FUNCTION__._ZN25SignerAttributeCollection5itemsEii, ptr noundef %17, ptr noundef @.str.6)
          to label %101 unwind label %118

101:                                              ; preds = %100
  store i1 false, ptr %18, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %98)
          to label %102 unwind label %118

102:                                              ; preds = %101
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %103 = load ptr, ptr @logger, align 8, !tbaa !5
  %104 = invoke noundef ptr @_ZNK6HandleI9ExceptionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %105 unwind label %126

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

107:                                              ; preds = %105
  %108 = call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %108, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %109 unwind label %130

109:                                              ; preds = %107
  invoke void @__cxa_throw(ptr %108, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #9
          to label %168 unwind label %126

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

114:                                              ; preds = %99
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %11, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %12, align 4
  br label %122

118:                                              ; preds = %101, %100
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %11, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %12, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %122

122:                                              ; preds = %118, %114
  %123 = load i1, ptr %18, align 1
  br i1 %123, label %124, label %125

124:                                              ; preds = %122
  call void @_ZdlPvm(ptr noundef %98, i64 noundef 176) #10
  br label %125

125:                                              ; preds = %124, %122
  br label %135

126:                                              ; preds = %109, %105, %102
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %11, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %12, align 4
  br label %134

130:                                              ; preds = %107
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %11, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %12, align 4
  call void @__cxa_free_exception(ptr %108) #7
  br label %134

134:                                              ; preds = %130, %126
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %135

135:                                              ; preds = %134, %125, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %162

136:                                              ; preds = %94
  br label %137

137:                                              ; preds = %136, %83
  store i1 false, ptr %19, align 1
  %138 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #8
          to label %139 unwind label %53

139:                                              ; preds = %137
  store i1 true, ptr %21, align 1
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = getelementptr inbounds %class.SignerAttributeCollection, ptr %22, i32 0, i32 0
  %142 = invoke noundef ptr @_ZNK6HandleI6SignerEptEv(ptr noundef nonnull align 8 dereferenceable(8) %141)
          to label %143 unwind label %148

143:                                              ; preds = %139
  invoke void @_ZN9SSLObjectI17CMS_SignerInfo_stE6handleEv(ptr dead_on_unwind writable sret(%class.Handle.1) align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %142)
          to label %144 unwind label %148

144:                                              ; preds = %143
  invoke void @_ZN9AttributeC2EP18x509_attributes_st6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(20) %138, ptr noundef %140, ptr noundef %20)
          to label %145 unwind label %152

145:                                              ; preds = %144
  store i1 false, ptr %21, align 1
  invoke void @_ZN6HandleI9AttributeEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %138)
          to label %146 unwind label %152

146:                                              ; preds = %145
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  store i1 true, ptr %19, align 1
  %147 = load i1, ptr %19, align 1
  br i1 %147, label %161, label %160

148:                                              ; preds = %143, %139
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %11, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %12, align 4
  br label %156

152:                                              ; preds = %145, %144
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %11, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %12, align 4
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br label %156

156:                                              ; preds = %152, %148
  %157 = load i1, ptr %21, align 1
  br i1 %157, label %158, label %159

158:                                              ; preds = %156
  call void @_ZdlPvm(ptr noundef %138, i64 noundef 24) #10
  br label %159

159:                                              ; preds = %158, %156
  br label %162

160:                                              ; preds = %146
  call void @_ZN6HandleI9AttributeED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  br label %161

161:                                              ; preds = %160, %146
  call void @llvm.lifetime.end.p0(i64 8, 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

162:                                              ; preds = %159, %135, %82, %53
  call void @llvm.lifetime.end.p0(i64 8, 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 %163

163:                                              ; preds = %162
  %164 = load ptr, ptr %11, align 8
  %165 = load i32, ptr %12, align 4
  %166 = insertvalue { ptr, i32 } poison, ptr %164, 0
  %167 = insertvalue { ptr, i32 } %166, i32 %165, 1
  resume { ptr, i32 } %167

168:                                              ; preds = %109, %52
  unreachable
}

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #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)) #2 align 2

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

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

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6HandleI9AttributeED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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, !14, i64 8}
!12 = !{!"_ZTS25SignerAttributeCollection", !13, i64 0, !14, i64 8}
!13 = !{!"_ZTS6HandleI6SignerE", !6, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


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

@logger = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@__FUNCTION__._ZN25SignerAttributeCollection5itemsEii = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 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
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25SignerAttributeCollection5itemsEii(ptr dead_on_unwind noalias writable sret(%class.Handle.2) align 8 %0, ptr noundef nonnull align 8 dereferenceable(9) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.LoggerFunction, align 8
  %6 = alloca %class.Handle.3, align 8
  %7 = alloca %class.Handle.3, align 8
  %8 = alloca %class.Handle.3, align 8
  %9 = alloca %class.Handle.3, align 8
  %10 = alloca %class.Handle.1, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %11 = load ptr, ptr @logger, align 8, !tbaa !5
  call void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %11, ptr noundef nonnull @__FUNCTION__._ZN25SignerAttributeCollection5itemsEii)
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load i8, ptr %12, align 8, !tbaa !9, !range !13, !noundef !14
  %14 = trunc nuw i8 %13 to i1
  %15 = load ptr, ptr @logger, align 8, !tbaa !5
  br i1 %14, label %16, label %48

16:                                               ; preds = %4
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN25SignerAttributeCollection5itemsEii, ptr noundef nonnull @.str)
          to label %17 unwind label %37

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

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

21:                                               ; preds = %19
  %22 = invoke ptr @CMS_signed_get_attr(ptr noundef %20, i32 noundef %2)
          to label %23 unwind label %37

23:                                               ; preds = %21
  %.not29 = icmp eq ptr %22, null
  br i1 %.not29, label %24, label %78

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #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) %7, 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 36, i32 noundef 0, ptr noundef nonnull @.str.3, ptr noundef nonnull @__FUNCTION__._ZN25SignerAttributeCollection5itemsEii, ptr noundef nonnull %7, ptr noundef nonnull @.str.4)
          to label %29 unwind label %.thread40

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

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

30:                                               ; preds = %29
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %31 = load ptr, ptr @logger, align 8, !tbaa !5
  %32 = invoke noundef ptr @_ZNK6HandleI9ExceptionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          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__._ZN25SignerAttributeCollection5itemsEii, 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) %6)
  invoke void @__cxa_throw(ptr nonnull %36, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #9
          to label %92 unwind label %45

37:                                               ; preds = %78, %53, %51, %49, %48, %21, %19, %17, %16
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %91

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) %7) #7
  br label %47

44:                                               ; preds = %.thread40, %.thread
  %.pn3039 = phi { ptr, i32 } [ %41, %.thread ], [ %28, %.thread40 ]
  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) %6) #7
  br label %47

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

48:                                               ; preds = %4
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN25SignerAttributeCollection5itemsEii, ptr noundef nonnull @.str.1)
          to label %49 unwind label %37

49:                                               ; preds = %48
  %50 = invoke noundef ptr @_ZNK6HandleI6SignerEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %51 unwind label %37

51:                                               ; preds = %49
  %52 = invoke noundef ptr @_ZN9SSLObjectI17CMS_SignerInfo_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %50)
          to label %53 unwind label %37

53:                                               ; preds = %51
  %54 = invoke ptr @CMS_unsigned_get_attr(ptr noundef %52, i32 noundef %2)
          to label %55 unwind label %37

55:                                               ; preds = %53
  %.not = icmp eq ptr %54, null
  br i1 %.not, label %56, label %78

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

58:                                               ; preds = %56
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef null)
          to label %59 unwind label %.thread42

59:                                               ; preds = %58
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %57, i1 noundef zeroext true, ptr noundef nonnull @.str.2, i32 noundef 43, i32 noundef 0, ptr noundef nonnull @.str.3, ptr noundef nonnull @__FUNCTION__._ZN25SignerAttributeCollection5itemsEii, ptr noundef nonnull %9, ptr noundef nonnull @.str.6)
          to label %61 unwind label %.thread46

.thread46:                                        ; preds = %59
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br label %74

61:                                               ; preds = %59
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %57)
          to label %62 unwind label %72

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

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

67:                                               ; preds = %65
  %68 = call ptr @__cxa_allocate_exception(i64 8) #7
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull align 8 dereferenceable(8) %8)
  invoke void @__cxa_throw(ptr nonnull %68, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #9
          to label %92 unwind label %75

69:                                               ; preds = %56
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %77

.thread42:                                        ; preds = %58
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

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

74:                                               ; preds = %.thread46, %.thread42
  %.pn45 = phi { ptr, i32 } [ %71, %.thread42 ], [ %60, %.thread46 ]
  call void @_ZdlPvm(ptr noundef nonnull %57, i64 noundef 176) #10
  br label %77

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

77:                                               ; preds = %72, %74, %75, %69
  %.pn27 = phi { ptr, i32 } [ %76, %75 ], [ %.pn45, %74 ], [ %73, %72 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %91

78:                                               ; preds = %55, %23
  %.023 = phi ptr [ %22, %23 ], [ %54, %55 ]
  %79 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #8
          to label %80 unwind label %37

80:                                               ; preds = %78
  %81 = invoke noundef ptr @_ZNK6HandleI6SignerEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %82 unwind label %.thread48

82:                                               ; preds = %80
  invoke void @_ZN9SSLObjectI17CMS_SignerInfo_stE6handleEv(ptr dead_on_unwind nonnull writable sret(%class.Handle.1) align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %81)
          to label %83 unwind label %.thread48

83:                                               ; preds = %82
  invoke void @_ZN9AttributeC2EP18x509_attributes_st6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(20) %79, ptr noundef nonnull %.023, ptr noundef nonnull %10)
          to label %85 unwind label %.thread52

.thread52:                                        ; preds = %83
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %90

85:                                               ; preds = %83
  invoke void @_ZN6HandleI9AttributeEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %79)
          to label %86 unwind label %88

86:                                               ; preds = %85
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #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

.thread48:                                        ; preds = %80, %82
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %85
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %91

90:                                               ; preds = %.thread52, %.thread48
  %.pn3451 = phi { ptr, i32 } [ %87, %.thread48 ], [ %84, %.thread52 ]
  call void @_ZdlPvm(ptr noundef nonnull %79, i64 noundef 24) #10
  br label %91

91:                                               ; preds = %88, %90, %77, %47, %37
  %.pn34.pn = phi { ptr, i32 } [ %.pn3451, %90 ], [ %89, %88 ], [ %38, %37 ], [ %.pn32, %47 ], [ %.pn27, %77 ]
  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 } %.pn34.pn

92:                                               ; preds = %67, %35
  unreachable
}

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_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 #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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, !12, i64 8}
!10 = !{!"_ZTS25SignerAttributeCollection", !11, i64 0, !12, i64 8}
!11 = !{!"_ZTS6HandleI6SignerE", !6, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


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