; LLVM IR from specinfo-ua/UAPKI :: library/common/pkix (uapki-ns-verify)

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

%struct.SubjectPublicKeyInfo = type { %struct.AlgorithmIdentifier, %struct.BIT_STRING_s, %struct.asn_struct_ctx_s }
%struct.AlgorithmIdentifier = type { %struct.ASN__PRIMITIVE_TYPE_s, ptr, %struct.asn_struct_ctx_s }
%struct.ASN__PRIMITIVE_TYPE_s = type { ptr, i32 }
%struct.BIT_STRING_s = type { ptr, i32, i32, %struct.asn_struct_ctx_s }
%struct.asn_struct_ctx_s = type { i16, i16, i32, ptr, i64 }

@.str = external hidden unnamed_addr constant [32 x i8], align 1
@OID_DSTU4145_WITH_DSTU7564 = external global ptr, align 8
@OID_DSTU4145_WITH_GOST3411 = external global ptr, align 8
@OID_EC_KEY = external global ptr, align 8
@OID_RSA = external global ptr, align 8

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS6Verify9parseSpkiEPK12ByteArray_stP7SignAlgP10EcParamsIdPPS1_S9_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  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
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store ptr null, ptr %13, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %5
  %15 = call ptr @get_SubjectPublicKeyInfo_desc()
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call ptr @asn_decode_ba_with_alloc(ptr noundef %15, ptr noundef %16)
  store ptr %17, ptr %12, align 8, !tbaa !5
  %18 = icmp eq ptr null, %17
  br i1 %18, label %19, label %21

19:                                               ; preds = %14
  store i32 2, ptr %11, align 4, !tbaa !9
  %20 = load i32, ptr %11, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 279, i32 noundef %20)
  br label %112

21:                                               ; preds = %14
  br label %22

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  br label %24

24:                                               ; preds = %23
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.SubjectPublicKeyInfo, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds %struct.AlgorithmIdentifier, ptr %26, i32 0, i32 0
  %28 = call i32 @asn_oid_to_text(ptr noundef %27, ptr noundef %13)
  store i32 %28, ptr %11, align 4, !tbaa !9
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %24
  %32 = load i32, ptr %11, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 281, i32 noundef %32)
  br label %112

33:                                               ; preds = %24
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.SubjectPublicKeyInfo, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.AlgorithmIdentifier, ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %46

41:                                               ; preds = %35
  br label %42

42:                                               ; preds = %41
  store i32 4145, ptr %11, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 283, i32 noundef %43, ptr noundef null)
  br label %112

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45, %35
  %47 = load ptr, ptr @OID_DSTU4145_WITH_DSTU7564, align 8, !tbaa !5
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = call zeroext i1 @oid_is_parent(ptr noundef %47, ptr noundef %48)
  br i1 %49, label %54, label %50

50:                                               ; preds = %46
  %51 = load ptr, ptr @OID_DSTU4145_WITH_GOST3411, align 8, !tbaa !5
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = call zeroext i1 @oid_is_parent(ptr noundef %51, ptr noundef %52)
  br i1 %53, label %54, label %68

54:                                               ; preds = %50, %46
  br label %55

55:                                               ; preds = %54
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = call noundef i32 @_ZN7UapkiNSL15parse_dstu_spkiEPK20SubjectPublicKeyInfoP10EcParamsIdPP12ByteArray_st(ptr noundef %56, ptr noundef %57, ptr noundef %58)
  store i32 %59, ptr %11, align 4, !tbaa !9
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %55
  %63 = load i32, ptr %11, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 287, i32 noundef %63)
  br label %112

64:                                               ; preds = %55
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 1, ptr %67, align 4, !tbaa !19
  br label %111

68:                                               ; preds = %50
  %69 = load ptr, ptr @OID_EC_KEY, align 8, !tbaa !5
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = call zeroext i1 @oid_is_equal(ptr noundef %69, ptr noundef %70)
  br i1 %71, label %72, label %86

72:                                               ; preds = %68
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = call noundef i32 @_ZN7UapkiNSL16parse_ecdsa_spkiEPK20SubjectPublicKeyInfoP10EcParamsIdPP12ByteArray_st(ptr noundef %74, ptr noundef %75, ptr noundef %76)
  store i32 %77, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %82

80:                                               ; preds = %73
  %81 = load i32, ptr %11, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 291, i32 noundef %81)
  br label %112

82:                                               ; preds = %73
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 2, ptr %85, align 4, !tbaa !19
  br label %110

86:                                               ; preds = %68
  %87 = load ptr, ptr @OID_RSA, align 8, !tbaa !5
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = call zeroext i1 @oid_is_equal(ptr noundef %87, ptr noundef %88)
  br i1 %89, label %90, label %104

90:                                               ; preds = %86
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = call noundef i32 @_ZN7UapkiNSL14parse_rsa_spkiEPK20SubjectPublicKeyInfoPP12ByteArray_stS5_(ptr noundef %92, ptr noundef %93, ptr noundef %94)
  store i32 %95, ptr %11, align 4, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %100

98:                                               ; preds = %91
  %99 = load i32, ptr %11, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 295, i32 noundef %99)
  br label %112

100:                                              ; preds = %91
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 7, ptr %103, align 4, !tbaa !19
  br label %109

104:                                              ; preds = %86
  br label %105

105:                                              ; preds = %104
  store i32 4110, ptr %11, align 4, !tbaa !9
  %106 = load i32, ptr %11, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 299, i32 noundef %106, ptr noundef null)
  br label %112

107:                                              ; No predecessors!
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108, %102
  br label %110

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

111:                                              ; preds = %110, %66
  br label %112

112:                                              ; preds = %111, %105, %98, %80, %62, %42, %31, %19
  %113 = call ptr @get_SubjectPublicKeyInfo_desc()
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  call void @asn_free(ptr noundef %113, ptr noundef %114)
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %115) #4
  %116 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret i32 %116
}

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

declare ptr @get_SubjectPublicKeyInfo_desc() #1

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

declare zeroext i1 @oid_is_parent(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7UapkiNSL15parse_dstu_spkiEPK20SubjectPublicKeyInfoP10EcParamsIdPP12ByteArray_st(ptr noundef, ptr noundef, ptr noundef) #2

declare zeroext i1 @oid_is_equal(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7UapkiNSL16parse_ecdsa_spkiEPK20SubjectPublicKeyInfoP10EcParamsIdPP12ByteArray_st(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7UapkiNSL14parse_rsa_spkiEPK20SubjectPublicKeyInfoPP12ByteArray_stS5_(ptr noundef, ptr noundef, ptr noundef) #2

declare void @asn_free(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

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 = { 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, !6, i64 16}
!12 = !{!"_ZTS20SubjectPublicKeyInfo", !13, i64 0, !18, i64 48, !15, i64 88}
!13 = !{!"_ZTS19AlgorithmIdentifier", !14, i64 0, !6, i64 16, !15, i64 24}
!14 = !{!"_ZTS21ASN__PRIMITIVE_TYPE_s", !6, i64 0, !10, i64 8}
!15 = !{!"_ZTS16asn_struct_ctx_s", !16, i64 0, !16, i64 2, !10, i64 4, !6, i64 8, !17, i64 16}
!16 = !{!"short", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTS12BIT_STRING_s", !6, i64 0, !10, i64 8, !10, i64 12, !15, i64 16}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS7SignAlg", !7, 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"

@.str = external hidden unnamed_addr constant [32 x i8], align 1
@OID_DSTU4145_WITH_DSTU7564 = external local_unnamed_addr global ptr, align 8
@OID_DSTU4145_WITH_GOST3411 = external local_unnamed_addr global ptr, align 8
@OID_EC_KEY = external local_unnamed_addr global ptr, align 8
@OID_RSA = external local_unnamed_addr global ptr, align 8

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS6Verify9parseSpkiEPK12ByteArray_stP7SignAlgP10EcParamsIdPPS1_S9_(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  store ptr null, ptr %6, align 8, !tbaa !5
  %7 = tail call ptr @get_SubjectPublicKeyInfo_desc()
  %8 = tail call ptr @asn_decode_ba_with_alloc(ptr noundef %7, ptr noundef %0)
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %5
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 279, i32 noundef 2)
  br label %48

11:                                               ; preds = %5
  %12 = call i32 @asn_oid_to_text(ptr noundef nonnull %8, ptr noundef nonnull %6)
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %14, label %13

13:                                               ; preds = %11
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 281, i32 noundef %12)
  br label %48

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %8, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %14
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 283, i32 noundef 4145, ptr noundef null)
  br label %48

19:                                               ; preds = %14
  %20 = load ptr, ptr @OID_DSTU4145_WITH_DSTU7564, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call zeroext i1 @oid_is_parent(ptr noundef %20, ptr noundef %21)
  br i1 %22, label %27, label %23

23:                                               ; preds = %19
  %24 = load ptr, ptr @OID_DSTU4145_WITH_GOST3411, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call zeroext i1 @oid_is_parent(ptr noundef %24, ptr noundef %25)
  br i1 %26, label %27, label %31

27:                                               ; preds = %19, %23
  %28 = call noundef i32 @_ZN7UapkiNSL15parse_dstu_spkiEPK20SubjectPublicKeyInfoP10EcParamsIdPP12ByteArray_st(ptr noundef nonnull %8, ptr noundef %2, ptr noundef %3)
  %.not36 = icmp eq i32 %28, 0
  br i1 %.not36, label %30, label %29

29:                                               ; preds = %27
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 287, i32 noundef %28)
  br label %48

30:                                               ; preds = %27
  store i32 1, ptr %1, align 4, !tbaa !18
  br label %48

31:                                               ; preds = %23
  %32 = load ptr, ptr @OID_EC_KEY, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call zeroext i1 @oid_is_equal(ptr noundef %32, ptr noundef %33)
  br i1 %34, label %35, label %39

35:                                               ; preds = %31
  %36 = call noundef i32 @_ZN7UapkiNSL16parse_ecdsa_spkiEPK20SubjectPublicKeyInfoP10EcParamsIdPP12ByteArray_st(ptr noundef nonnull %8, ptr noundef %2, ptr noundef %3)
  %.not35 = icmp eq i32 %36, 0
  br i1 %.not35, label %38, label %37

37:                                               ; preds = %35
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 291, i32 noundef %36)
  br label %48

38:                                               ; preds = %35
  store i32 2, ptr %1, align 4, !tbaa !18
  br label %48

39:                                               ; preds = %31
  %40 = load ptr, ptr @OID_RSA, align 8, !tbaa !5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = call zeroext i1 @oid_is_equal(ptr noundef %40, ptr noundef %41)
  br i1 %42, label %43, label %47

43:                                               ; preds = %39
  %44 = call noundef i32 @_ZN7UapkiNSL14parse_rsa_spkiEPK20SubjectPublicKeyInfoPP12ByteArray_stS5_(ptr noundef nonnull %8, ptr noundef %3, ptr noundef %4)
  %.not34 = icmp eq i32 %44, 0
  br i1 %.not34, label %46, label %45

45:                                               ; preds = %43
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 295, i32 noundef %44)
  br label %48

46:                                               ; preds = %43
  store i32 7, ptr %1, align 4, !tbaa !18
  br label %48

47:                                               ; preds = %39
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 299, i32 noundef 4110, ptr noundef null)
  br label %48

48:                                               ; preds = %30, %46, %38, %47, %45, %37, %29, %18, %13, %10
  %.0 = phi i32 [ 2, %10 ], [ %12, %13 ], [ 4145, %18 ], [ %28, %29 ], [ 0, %30 ], [ %36, %37 ], [ 0, %38 ], [ %44, %45 ], [ 0, %46 ], [ 4110, %47 ]
  %49 = call ptr @get_SubjectPublicKeyInfo_desc()
  call void @asn_free(ptr noundef %49, ptr noundef %8)
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  ret i32 %.0
}

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

declare ptr @get_SubjectPublicKeyInfo_desc() local_unnamed_addr #1

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

declare zeroext i1 @oid_is_parent(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7UapkiNSL15parse_dstu_spkiEPK20SubjectPublicKeyInfoP10EcParamsIdPP12ByteArray_st(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare zeroext i1 @oid_is_equal(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7UapkiNSL16parse_ecdsa_spkiEPK20SubjectPublicKeyInfoP10EcParamsIdPP12ByteArray_st(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7UapkiNSL14parse_rsa_spkiEPK20SubjectPublicKeyInfoPP12ByteArray_stS5_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @asn_free(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #4 = { 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 = !{!"_ZTS20SubjectPublicKeyInfo", !11, i64 0, !17, i64 48, !14, i64 88}
!11 = !{!"_ZTS19AlgorithmIdentifier", !12, i64 0, !6, i64 16, !14, i64 24}
!12 = !{!"_ZTS21ASN__PRIMITIVE_TYPE_s", !6, i64 0, !13, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS16asn_struct_ctx_s", !15, i64 0, !15, i64 2, !13, i64 4, !6, i64 8, !16, i64 16}
!15 = !{!"short", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTS12BIT_STRING_s", !6, i64 0, !13, i64 8, !13, i64 12, !14, i64 16}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS7SignAlg", !7, i64 0}


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