; LLVM IR from specinfo-ua/UAPKI :: library/common/pkix (envelopeddata-helper)

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

%"class.UapkiNS::Pkcs7::EnvelopedDataBuilder" = type { %"struct.UapkiNS::Pkcs7::EncryptedContentInfo", ptr, %"class.std::vector", ptr }
%"struct.UapkiNS::Pkcs7::EncryptedContentInfo" = type { %"class.std::__cxx11::basic_string", %"struct.UapkiNS::AlgorithmIdentifier", ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.UapkiNS::AlgorithmIdentifier" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *, std::allocator<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *, std::allocator<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *, std::allocator<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *, std::allocator<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.EnvelopedData = type { %struct.ASN__PRIMITIVE_TYPE_s, ptr, %struct.RecipientInfos, %struct.EncryptedContentInfo, ptr, %struct.asn_struct_ctx_s }
%struct.ASN__PRIMITIVE_TYPE_s = type { ptr, i32 }
%struct.RecipientInfos = type { %struct.anon, %struct.asn_struct_ctx_s }
%struct.anon = type { ptr, i32, i32, ptr }
%struct.EncryptedContentInfo = type { %struct.ASN__PRIMITIVE_TYPE_s, %struct.AlgorithmIdentifier, ptr, %struct.asn_struct_ctx_s }
%struct.AlgorithmIdentifier = type { %struct.ASN__PRIMITIVE_TYPE_s, ptr, %struct.asn_struct_ctx_s }
%struct.asn_struct_ctx_s = type { i16, i16, i32, ptr, i64 }

@.str = external hidden unnamed_addr constant [37 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

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder23setEncryptedContentInfoEPKcRKNS_19AlgorithmIdentifierEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef %3) #3 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %12 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  %13 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder", ptr %12, i32 0, i32 1
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %19

16:                                               ; preds = %4
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %16, %4
  store i32 4101, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %113

20:                                               ; preds = %16
  br label %21

21:                                               ; preds = %20
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder", ptr %12, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %struct.EnvelopedData, ptr %24, i32 0, i32 3
  %26 = getelementptr inbounds %struct.EncryptedContentInfo, ptr %25, i32 0, i32 0
  %27 = call i32 @asn_set_oid_from_text(ptr noundef %22, ptr noundef %26)
  store i32 %27, ptr %10, align 4, !tbaa !9
  %28 = load i32, ptr %10, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %21
  %31 = load i32, ptr %10, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 211, i32 noundef %31)
  br label %111

32:                                               ; preds = %21
  br label %33

33:                                               ; preds = %32
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %36, i32 0, i32 0
  %38 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %37) #5
  %39 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder", ptr %12, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds %struct.EnvelopedData, ptr %40, i32 0, i32 3
  %42 = getelementptr inbounds %struct.EncryptedContentInfo, ptr %41, i32 0, i32 1
  %43 = getelementptr inbounds %struct.AlgorithmIdentifier, ptr %42, i32 0, i32 0
  %44 = call i32 @asn_set_oid_from_text(ptr noundef %38, ptr noundef %43)
  store i32 %44, ptr %10, align 4, !tbaa !9
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %49

47:                                               ; preds = %35
  %48 = load i32, ptr %10, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 215, i32 noundef %48)
  br label %111

49:                                               ; preds = %35
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %74

56:                                               ; preds = %51
  br label %57

57:                                               ; preds = %56
  %58 = call ptr @get_ANY_desc()
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !22
  %62 = call ptr @asn_decode_ba_with_alloc(ptr noundef %58, ptr noundef %61)
  %63 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder", ptr %12, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = getelementptr inbounds %struct.EnvelopedData, ptr %64, i32 0, i32 3
  %66 = getelementptr inbounds %struct.EncryptedContentInfo, ptr %65, i32 0, i32 1
  %67 = getelementptr inbounds %struct.AlgorithmIdentifier, ptr %66, i32 0, i32 1
  store ptr %62, ptr %67, align 8, !tbaa !23
  %68 = icmp eq ptr null, %62
  br i1 %68, label %69, label %71

69:                                               ; preds = %57
  store i32 2, ptr %10, align 4, !tbaa !9
  %70 = load i32, ptr %10, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 218, i32 noundef %70)
  br label %111

71:                                               ; preds = %57
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73, %51
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %110

77:                                               ; preds = %74
  %78 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 40) #6
  %79 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder", ptr %12, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !11
  %81 = getelementptr inbounds %struct.EnvelopedData, ptr %80, i32 0, i32 3
  %82 = getelementptr inbounds %struct.EncryptedContentInfo, ptr %81, i32 0, i32 2
  store ptr %78, ptr %82, align 8, !tbaa !32
  br label %83

83:                                               ; preds = %77
  %84 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder", ptr %12, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds %struct.EnvelopedData, ptr %85, i32 0, i32 3
  %87 = getelementptr inbounds %struct.EncryptedContentInfo, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !32
  %89 = icmp eq ptr %88, null
  br i1 %89, label %90, label %92

90:                                               ; preds = %83
  store i32 1, ptr %10, align 4, !tbaa !9
  %91 = load i32, ptr %10, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 223, i32 noundef %91, ptr noundef null)
  br label %111

92:                                               ; preds = %83
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder", ptr %12, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !11
  %99 = getelementptr inbounds %struct.EnvelopedData, ptr %98, i32 0, i32 3
  %100 = getelementptr inbounds %struct.EncryptedContentInfo, ptr %99, i32 0, i32 2
  %101 = load ptr, ptr %100, align 8, !tbaa !32
  %102 = call i32 @asn_ba2OCTSTRING(ptr noundef %96, ptr noundef %101)
  store i32 %102, ptr %10, align 4, !tbaa !9
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %95
  %106 = load i32, ptr %10, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 224, i32 noundef %106)
  br label %111

107:                                              ; preds = %95
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109, %74
  br label %111

111:                                              ; preds = %110, %105, %90, %69, %47, %30
  %112 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %112, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %113

113:                                              ; preds = %111, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %114 = load i32, ptr %5, align 4
  ret i32 %114
}

declare i32 @asn_set_oid_from_text(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

declare ptr @asn_decode_ba_with_alloc(ptr noundef, ptr noundef) #2

declare ptr @get_ANY_desc() #2

declare i32 @asn_ba2OCTSTRING(ptr noundef, ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 80}
!12 = !{!"_ZTSN7UapkiNS5Pkcs720EnvelopedDataBuilderE", !13, i64 0, !6, i64 80, !18, i64 88, !6, i64 112}
!13 = !{!"_ZTSN7UapkiNS5Pkcs720EncryptedContentInfoE", !14, i64 0, !17, i64 32, !6, i64 72}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !14, i64 0, !6, i64 32}
!18 = !{!"_ZTSSt6vectorIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!17, !6, i64 32}
!23 = !{!24, !6, i64 104}
!24 = !{!"_ZTS13EnvelopedData", !25, i64 0, !6, i64 16, !26, i64 24, !30, i64 72, !6, i64 168, !28, i64 176}
!25 = !{!"_ZTS21ASN__PRIMITIVE_TYPE_s", !6, i64 0, !10, i64 8}
!26 = !{!"_ZTS14RecipientInfos", !27, i64 0, !28, i64 24}
!27 = !{!"_ZTSN14RecipientInfosUt_E", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16}
!28 = !{!"_ZTS16asn_struct_ctx_s", !29, i64 0, !29, i64 2, !10, i64 4, !6, i64 8, !16, i64 16}
!29 = !{!"short", !7, i64 0}
!30 = !{!"_ZTS20EncryptedContentInfo", !25, i64 0, !31, i64 16, !6, i64 64, !28, i64 72}
!31 = !{!"_ZTS19AlgorithmIdentifier", !25, i64 0, !6, i64 16, !28, i64 24}
!32 = !{!24, !6, i64 136}


; 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"

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder23setEncryptedContentInfoEPKcRKNS_19AlgorithmIdentifierEPK12ByteArray_st(ptr nocapture noundef nonnull readonly align 8 dereferenceable(120) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef %3) local_unnamed_addr #2 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 80
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = icmp ne ptr %6, null
  %8 = icmp ne ptr %1, null
  %or.cond = and i1 %8, %7
  br i1 %or.cond, label %9, label %40

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %6, i64 72
  %11 = tail call i32 @asn_set_oid_from_text(ptr noundef nonnull %1, ptr noundef nonnull %10)
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %13, label %12

12:                                               ; preds = %9
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 211, i32 noundef %11)
  br label %40

13:                                               ; preds = %9
  %14 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 88
  %17 = tail call i32 @asn_set_oid_from_text(ptr noundef %14, ptr noundef nonnull %16)
  %.not27 = icmp eq i32 %17, 0
  br i1 %.not27, label %19, label %18

18:                                               ; preds = %13
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 215, i32 noundef %17)
  br label %40

19:                                               ; preds = %13
  %20 = getelementptr inbounds i8, ptr %2, i64 32
  %21 = load ptr, ptr %20, align 8, !tbaa !19
  %.not28 = icmp eq ptr %21, null
  br i1 %.not28, label %30, label %22

22:                                               ; preds = %19
  %23 = tail call ptr @get_ANY_desc()
  %24 = load ptr, ptr %20, align 8, !tbaa !19
  %25 = tail call ptr @asn_decode_ba_with_alloc(ptr noundef %23, ptr noundef %24)
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 104
  store ptr %25, ptr %27, align 8, !tbaa !20
  %28 = icmp eq ptr %25, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %22
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 218, i32 noundef 2)
  br label %40

30:                                               ; preds = %22, %19
  %.not29 = icmp eq ptr %3, null
  br i1 %.not29, label %40, label %31

31:                                               ; preds = %30
  %32 = tail call noalias dereferenceable_or_null(40) ptr @calloc(i64 noundef 1, i64 noundef 40) #5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 136
  store ptr %32, ptr %34, align 8, !tbaa !30
  %35 = icmp eq ptr %32, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %31
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 223, i32 noundef 1, ptr noundef null)
  br label %40

37:                                               ; preds = %31
  %38 = tail call i32 @asn_ba2OCTSTRING(ptr noundef nonnull %3, ptr noundef nonnull %32)
  %.not30 = icmp eq i32 %38, 0
  br i1 %.not30, label %40, label %39

39:                                               ; preds = %37
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 224, i32 noundef %38)
  br label %40

40:                                               ; preds = %12, %18, %29, %36, %39, %37, %30, %4
  %.018 = phi i32 [ 4101, %4 ], [ %11, %12 ], [ %17, %18 ], [ 2, %29 ], [ 1, %36 ], [ %38, %39 ], [ 0, %37 ], [ 0, %30 ]
  ret i32 %.018
}

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

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

declare ptr @asn_decode_ba_with_alloc(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @get_ANY_desc() local_unnamed_addr #1

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

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 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 #4 = { nounwind }
attributes #5 = { nounwind allocsize(0,1) }

!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, !10, i64 80}
!6 = !{!"_ZTSN7UapkiNS5Pkcs720EnvelopedDataBuilderE", !7, i64 0, !10, i64 80, !15, i64 88, !10, i64 112}
!7 = !{!"_ZTSN7UapkiNS5Pkcs720EncryptedContentInfoE", !8, i64 0, !14, i64 32, !10, i64 72}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !9, i64 0, !13, i64 8, !11, i64 16}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !8, i64 0, !10, i64 32}
!15 = !{!"_ZTSSt6vectorIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!14, !10, i64 32}
!20 = !{!21, !10, i64 104}
!21 = !{!"_ZTS13EnvelopedData", !22, i64 0, !10, i64 16, !24, i64 24, !28, i64 72, !10, i64 168, !26, i64 176}
!22 = !{!"_ZTS21ASN__PRIMITIVE_TYPE_s", !10, i64 0, !23, i64 8}
!23 = !{!"int", !11, i64 0}
!24 = !{!"_ZTS14RecipientInfos", !25, i64 0, !26, i64 24}
!25 = !{!"_ZTSN14RecipientInfosUt_E", !10, i64 0, !23, i64 8, !23, i64 12, !10, i64 16}
!26 = !{!"_ZTS16asn_struct_ctx_s", !27, i64 0, !27, i64 2, !23, i64 4, !10, i64 8, !13, i64 16}
!27 = !{!"short", !11, i64 0}
!28 = !{!"_ZTS20EncryptedContentInfo", !22, i64 0, !29, i64 16, !10, i64 64, !26, i64 72}
!29 = !{!"_ZTS19AlgorithmIdentifier", !22, i64 0, !10, i64 16, !26, i64 24}
!30 = !{!21, !10, i64 136}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass