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

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

@logger = external global ptr, align 8
@__FUNCTION__._ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE = external hidden unnamed_addr constant [20 x i8], align 1
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %class.Handle, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %class.LoggerFunction, align 8
  %11 = alloca %class.Handle.1, align 8
  %12 = alloca %class.Handle.1, align 8
  %13 = alloca i1, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  %15 = call ptr @OPENSSL_sk_new_null()
  call void @_ZN6HandleI7SObjectEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN9SSLObjectI23stack_st_X509_ATTRIBUTEEC2EPS0_PFvPvE6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %15, ptr noundef @_ZL31so_stack_st_X509_ATTRIBUTE_freePv, ptr noundef %7)
          to label %16 unwind label %31

16:                                               ; preds = %3
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %17 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %17, ptr noundef @__FUNCTION__._ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE)
          to label %18 unwind label %35

18:                                               ; preds = %16
  %19 = invoke noundef zeroext i1 @_ZNK6HandleI7SObjectE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %20 unwind label %39

20:                                               ; preds = %18
  br i1 %19, label %21, label %69

21:                                               ; preds = %20
  %22 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef @__FUNCTION__._ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE, ptr noundef @.str)
          to label %23 unwind label %39

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

25:                                               ; preds = %23
  store i1 true, ptr %13, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef null)
          to label %26 unwind label %47

26:                                               ; preds = %25
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %24, i1 noundef zeroext false, ptr noundef @.str.1, i32 noundef 11, i32 noundef 0, ptr noundef @__FUNCTION__._ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE, ptr noundef @__FUNCTION__._ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE, ptr noundef %12, ptr noundef @.str)
          to label %27 unwind label %51

27:                                               ; preds = %26
  store i1 false, ptr %13, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %24)
          to label %28 unwind label %51

28:                                               ; preds = %27
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %29 = call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %30 unwind label %59

30:                                               ; preds = %28
  invoke void @__cxa_throw(ptr %29, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #9
          to label %86 unwind label %63

31:                                               ; preds = %3
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %8, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %9, align 4
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %81

35:                                               ; preds = %16
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %8, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %9, align 4
  br label %80

39:                                               ; preds = %74, %21, %18
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %8, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %9, align 4
  br label %79

43:                                               ; preds = %23
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %8, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %9, align 4
  br label %68

47:                                               ; preds = %25
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %8, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %9, align 4
  br label %55

51:                                               ; preds = %27, %26
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %8, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %9, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %55

55:                                               ; preds = %51, %47
  %56 = load i1, ptr %13, align 1
  br i1 %56, label %57, label %58

57:                                               ; preds = %55
  call void @_ZdlPvm(ptr noundef %24, i64 noundef 176) #10
  br label %58

58:                                               ; preds = %57, %55
  br label %68

59:                                               ; preds = %28
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  call void @__cxa_free_exception(ptr %29) #7
  br label %67

63:                                               ; preds = %30
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %8, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %9, align 4
  br label %67

67:                                               ; preds = %63, %59
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br label %68

68:                                               ; preds = %67, %58, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %79

69:                                               ; preds = %20
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.AttributeCollection, ptr %14, i32 0, i32 1
  store ptr %70, ptr %71, align 8, !tbaa !9
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %78

74:                                               ; preds = %69
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  invoke void @_ZN9SSLObjectI23stack_st_X509_ATTRIBUTEE7setDataEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %76)
          to label %77 unwind label %39

77:                                               ; preds = %74
  br label %78

78:                                               ; preds = %77, %69
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  ret void

79:                                               ; preds = %68, %39
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br label %80

80:                                               ; preds = %79, %35
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @_ZN9SSLObjectI23stack_st_X509_ATTRIBUTEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  br label %81

81:                                               ; preds = %80, %31
  %82 = load ptr, ptr %8, align 8
  %83 = load i32, ptr %9, align 4
  %84 = insertvalue { ptr, i32 } poison, ptr %82, 0
  %85 = insertvalue { ptr, i32 } %84, i32 %83, 1
  resume { ptr, i32 } %85

86:                                               ; preds = %30
  unreachable
}

declare ptr @OPENSSL_sk_new_null() #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31so_stack_st_X509_ATTRIBUTE_freePv(ptr noundef) #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !6, i64 16}
!10 = !{!"_ZTS19AttributeCollection", !11, i64 0, !6, i64 16}
!11 = !{!"_ZTS9SSLObjectI23stack_st_X509_ATTRIBUTEE", !6, i64 0, !12, i64 8}
!12 = !{!"_ZTS6HandleI7SObjectE", !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 = type { ptr }
%class.LoggerFunction = type { %class.Handle.0, ptr }
%class.Handle.0 = type { ptr }
%class.Handle.1 = type { ptr }

@logger = external local_unnamed_addr global ptr, align 8
@__FUNCTION__._ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE = external hidden unnamed_addr constant [20 x i8], align 1
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.Handle, align 8
  %5 = alloca %class.LoggerFunction, align 8
  %6 = alloca %class.Handle.1, align 8
  %7 = alloca %class.Handle.1, align 8
  %8 = tail call ptr @OPENSSL_sk_new_null()
  call void @_ZN6HandleI7SObjectEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN9SSLObjectI23stack_st_X509_ATTRIBUTEEC2EPS0_PFvPvE6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %8, ptr noundef nonnull @_ZL31so_stack_st_X509_ATTRIBUTE_freePv, ptr noundef nonnull %4)
          to label %9 unwind label %23

9:                                                ; preds = %3
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %10 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %10, ptr noundef nonnull @__FUNCTION__._ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE)
          to label %11 unwind label %25

11:                                               ; preds = %9
  %12 = call noundef zeroext i1 @_ZNK6HandleI7SObjectE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br i1 %12, label %13, label %38

13:                                               ; preds = %11
  %14 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull @__FUNCTION__._ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE, ptr noundef nonnull @.str)
          to label %15 unwind label %27

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %16 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #8
          to label %17 unwind label %29

17:                                               ; preds = %15
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef null)
          to label %18 unwind label %.thread

18:                                               ; preds = %17
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %16, i1 noundef zeroext false, ptr noundef nonnull @.str.1, i32 noundef 11, i32 noundef 0, ptr noundef nonnull @__FUNCTION__._ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE, ptr noundef nonnull @__FUNCTION__._ZN19AttributeCollectionC2EPP23stack_st_X509_ATTRIBUTE6HandleI7SObjectE, ptr noundef nonnull %7, ptr noundef nonnull @.str)
          to label %20 unwind label %.thread23

.thread23:                                        ; preds = %18
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %34

20:                                               ; preds = %18
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull %16)
          to label %21 unwind label %32

21:                                               ; preds = %20
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %22 = call ptr @__cxa_allocate_exception(i64 8) #7
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @__cxa_throw(ptr nonnull %22, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #9
          to label %46 unwind label %35

23:                                               ; preds = %3
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br label %45

25:                                               ; preds = %9
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %44

27:                                               ; preds = %40, %13
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %43

29:                                               ; preds = %15
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %37

.thread:                                          ; preds = %17
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %34

32:                                               ; preds = %20
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %37

34:                                               ; preds = %.thread23, %.thread
  %.pn22 = phi { ptr, i32 } [ %31, %.thread ], [ %19, %.thread23 ]
  call void @_ZdlPvm(ptr noundef nonnull %16, i64 noundef 176) #10
  br label %37

35:                                               ; preds = %21
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br label %37

37:                                               ; preds = %32, %34, %35, %29
  %.pn15 = phi { ptr, i32 } [ %36, %35 ], [ %.pn22, %34 ], [ %33, %32 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %43

38:                                               ; preds = %11
  %39 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %1, ptr %39, align 8, !tbaa !9
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %42, label %40

40:                                               ; preds = %38
  %41 = load ptr, ptr %1, align 8, !tbaa !5
  invoke void @_ZN9SSLObjectI23stack_st_X509_ATTRIBUTEE7setDataEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %41)
          to label %42 unwind label %27

42:                                               ; preds = %40, %38
  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

43:                                               ; preds = %37, %27
  %.pn15.pn = phi { ptr, i32 } [ %.pn15, %37 ], [ %28, %27 ]
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %44

44:                                               ; preds = %43, %25
  %.pn15.pn.pn = phi { ptr, i32 } [ %.pn15.pn, %43 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN9SSLObjectI23stack_st_X509_ATTRIBUTEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  br label %45

45:                                               ; preds = %44, %23
  %.pn15.pn.pn.pn = phi { ptr, i32 } [ %.pn15.pn.pn, %44 ], [ %24, %23 ]
  resume { ptr, i32 } %.pn15.pn.pn.pn

46:                                               ; preds = %21
  unreachable
}

declare ptr @OPENSSL_sk_new_null() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31so_stack_st_X509_ATTRIBUTE_freePv(ptr noundef) #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

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

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

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

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


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