; LLVM IR from openssl/openssl :: crypto/dsa (dsa_backend)

; 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.asn1_string_st = type { i32, i32, ptr, i64 }

@.str.2 = external hidden unnamed_addr constant [74 x i8], align 1
@__func__.ossl_dsa_key_from_pkcs8 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

declare void @BN_free(ptr noundef) #1

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

declare void @DSA_free(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @ossl_dsa_key_from_pkcs8(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %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
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  store ptr null, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  store ptr null, ptr %22, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = call i32 @PKCS8_pkey_get0(ptr noundef null, ptr noundef %8, ptr noundef %10, ptr noundef %15, ptr noundef %24)
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %28, label %27

27:                                               ; preds = %3
  store ptr null, ptr %4, align 8
  store i32 1, ptr %23, align 4
  br label %105

28:                                               ; preds = %3
  %29 = load ptr, ptr %15, align 8, !tbaa !5
  call void @X509_ALGOR_get0(ptr noundef null, ptr noundef %12, ptr noundef %13, ptr noundef %29)
  %30 = load i32, ptr %10, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = call ptr @d2i_ASN1_INTEGER(ptr noundef null, ptr noundef %8, i64 noundef %31)
  store ptr %32, ptr %16, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %28
  br label %96

35:                                               ; preds = %28
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.asn1_string_st, ptr %36, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !11
  %39 = icmp eq i32 %38, 258
  br i1 %39, label %43, label %40

40:                                               ; preds = %35
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 16
  br i1 %42, label %43, label %44

43:                                               ; preds = %40, %35
  br label %96

44:                                               ; preds = %40
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %45, ptr %14, align 8, !tbaa !5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.asn1_string_st, ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !14
  store ptr %48, ptr %9, align 8, !tbaa !5
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.asn1_string_st, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !15
  store i32 %51, ptr %11, align 4, !tbaa !9
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = call ptr @d2i_DSAparams(ptr noundef null, ptr noundef %9, i64 noundef %53)
  store ptr %54, ptr %22, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %56, label %57

56:                                               ; preds = %44
  br label %96

57:                                               ; preds = %44
  %58 = call ptr @BN_secure_new()
  store ptr %58, ptr %20, align 8, !tbaa !5
  %59 = icmp eq ptr %58, null
  br i1 %59, label %65, label %60

60:                                               ; preds = %57
  %61 = load ptr, ptr %16, align 8, !tbaa !5
  %62 = load ptr, ptr %20, align 8, !tbaa !5
  %63 = call ptr @ASN1_INTEGER_to_BN(ptr noundef %61, ptr noundef %62)
  %64 = icmp ne ptr %63, null
  br i1 %64, label %66, label %65

65:                                               ; preds = %60, %57
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str.2, i32 noundef 156, ptr noundef @__func__.ossl_dsa_key_from_pkcs8)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 10, i32 noundef 109, ptr noundef null)
  br label %97

66:                                               ; preds = %60
  %67 = call ptr @BN_new()
  store ptr %67, ptr %19, align 8, !tbaa !5
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str.2, i32 noundef 161, ptr noundef @__func__.ossl_dsa_key_from_pkcs8)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 10, i32 noundef 524291, ptr noundef null)
  br label %97

70:                                               ; preds = %66
  %71 = call ptr @BN_CTX_new()
  store ptr %71, ptr %21, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str.2, i32 noundef 165, ptr noundef @__func__.ossl_dsa_key_from_pkcs8)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 10, i32 noundef 524291, ptr noundef null)
  br label %97

74:                                               ; preds = %70
  %75 = load ptr, ptr %22, align 8, !tbaa !5
  %76 = call ptr @DSA_get0_p(ptr noundef %75)
  store ptr %76, ptr %17, align 8, !tbaa !5
  %77 = load ptr, ptr %22, align 8, !tbaa !5
  %78 = call ptr @DSA_get0_g(ptr noundef %77)
  store ptr %78, ptr %18, align 8, !tbaa !5
  %79 = load ptr, ptr %20, align 8, !tbaa !5
  call void @BN_set_flags(ptr noundef %79, i32 noundef 4)
  %80 = load ptr, ptr %19, align 8, !tbaa !5
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = load ptr, ptr %20, align 8, !tbaa !5
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = load ptr, ptr %21, align 8, !tbaa !5
  %85 = call i32 @BN_mod_exp(ptr noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84)
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %88, label %87

87:                                               ; preds = %74
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str.2, i32 noundef 173, ptr noundef @__func__.ossl_dsa_key_from_pkcs8)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 10, i32 noundef 109, ptr noundef null)
  br label %97

88:                                               ; preds = %74
  %89 = load ptr, ptr %22, align 8, !tbaa !5
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  %91 = load ptr, ptr %20, align 8, !tbaa !5
  %92 = call i32 @DSA_set0_key(ptr noundef %89, ptr noundef %90, ptr noundef %91)
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %95, label %94

94:                                               ; preds = %88
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str.2, i32 noundef 177, ptr noundef @__func__.ossl_dsa_key_from_pkcs8)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 10, i32 noundef 786691, ptr noundef null)
  br label %97

95:                                               ; preds = %88
  br label %101

96:                                               ; preds = %56, %43, %34
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str.2, i32 noundef 184, ptr noundef @__func__.ossl_dsa_key_from_pkcs8)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 10, i32 noundef 104, ptr noundef null)
  br label %97

97:                                               ; preds = %96, %94, %87, %73, %69, %65
  %98 = load ptr, ptr %20, align 8, !tbaa !5
  call void @BN_free(ptr noundef %98)
  %99 = load ptr, ptr %19, align 8, !tbaa !5
  call void @BN_free(ptr noundef %99)
  %100 = load ptr, ptr %22, align 8, !tbaa !5
  call void @DSA_free(ptr noundef %100)
  store ptr null, ptr %22, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %97, %95
  %102 = load ptr, ptr %21, align 8, !tbaa !5
  call void @BN_CTX_free(ptr noundef %102)
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  call void @ASN1_STRING_clear_free(ptr noundef %103)
  %104 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %104, ptr %4, align 8
  store i32 1, ptr %23, align 4
  br label %105

105:                                              ; preds = %101, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %106 = load ptr, ptr %4, align 8
  ret ptr %106
}

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

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

declare ptr @d2i_ASN1_INTEGER(ptr noundef, ptr noundef, i64 noundef) #1

declare ptr @d2i_DSAparams(ptr noundef, ptr noundef, i64 noundef) #1

declare ptr @BN_secure_new() #1

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

declare void @ERR_new() #1

declare void @ERR_set_debug(ptr noundef, i32 noundef, ptr noundef) #1

declare void @ERR_set_error(i32 noundef, i32 noundef, ptr noundef, ...) #1

declare ptr @BN_new() #1

declare ptr @BN_CTX_new() #1

declare ptr @DSA_get0_p(ptr noundef) #1

declare ptr @DSA_get0_g(ptr noundef) #1

declare void @BN_set_flags(ptr noundef, i32 noundef) #1

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

declare void @BN_CTX_free(ptr noundef) #1

declare void @ASN1_STRING_clear_free(ptr noundef) #1

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 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"asn1_string_st", !10, i64 0, !10, i64 4, !6, i64 8, !13, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !10, 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.2 = external hidden unnamed_addr constant [74 x i8], align 1
@__func__.ossl_dsa_key_from_pkcs8 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

declare void @BN_free(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

declare void @DSA_free(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @ossl_dsa_key_from_pkcs8(ptr noundef %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readnone %2) local_unnamed_addr #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %10 = call i32 @PKCS8_pkey_get0(ptr noundef null, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %9, ptr noundef %0) #3
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %50, label %11

11:                                               ; preds = %3
  %12 = load ptr, ptr %9, align 8, !tbaa !5
  call void @X509_ALGOR_get0(ptr noundef null, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %12) #3
  %13 = load i32, ptr %6, align 4, !tbaa !9
  %14 = sext i32 %13 to i64
  %15 = call ptr @d2i_ASN1_INTEGER(ptr noundef null, ptr noundef nonnull %4, i64 noundef %14) #3
  %16 = icmp eq ptr %15, null
  br i1 %16, label %48, label %17

17:                                               ; preds = %11
  %18 = getelementptr inbounds i8, ptr %15, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !11
  %20 = icmp eq i32 %19, 258
  %21 = load i32, ptr %7, align 4
  %22 = icmp ne i32 %21, 16
  %or.cond = select i1 %20, i1 true, i1 %22
  br i1 %or.cond, label %48, label %23

23:                                               ; preds = %17
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  store ptr %26, ptr %5, align 8, !tbaa !5
  %27 = load i32, ptr %24, align 8, !tbaa !15
  %28 = sext i32 %27 to i64
  %29 = call ptr @d2i_DSAparams(ptr noundef null, ptr noundef nonnull %5, i64 noundef %28) #3
  %30 = icmp eq ptr %29, null
  br i1 %30, label %48, label %31

31:                                               ; preds = %23
  %32 = call ptr @BN_secure_new() #3
  %33 = icmp eq ptr %32, null
  br i1 %33, label %48, label %34

34:                                               ; preds = %31
  %35 = call ptr @ASN1_INTEGER_to_BN(ptr noundef nonnull %15, ptr noundef nonnull %32) #3
  %.not38 = icmp eq ptr %35, null
  br i1 %.not38, label %48, label %36

36:                                               ; preds = %34
  %37 = call ptr @BN_new() #3
  %38 = icmp eq ptr %37, null
  br i1 %38, label %48, label %39

39:                                               ; preds = %36
  %40 = call ptr @BN_CTX_new() #3
  %41 = icmp eq ptr %40, null
  br i1 %41, label %48, label %42

42:                                               ; preds = %39
  %43 = call ptr @DSA_get0_p(ptr noundef nonnull %29) #3
  %44 = call ptr @DSA_get0_g(ptr noundef nonnull %29) #3
  call void @BN_set_flags(ptr noundef nonnull %32, i32 noundef 4) #3
  %45 = call i32 @BN_mod_exp(ptr noundef nonnull %37, ptr noundef %44, ptr noundef nonnull %32, ptr noundef %43, ptr noundef nonnull %40) #3
  %.not39 = icmp eq i32 %45, 0
  br i1 %.not39, label %48, label %46

46:                                               ; preds = %42
  %47 = call i32 @DSA_set0_key(ptr noundef nonnull %29, ptr noundef nonnull %37, ptr noundef nonnull %32) #3
  %.not40 = icmp eq i32 %47, 0
  br i1 %.not40, label %48, label %49

48:                                               ; preds = %11, %17, %23, %46, %42, %39, %36, %31, %34
  %.sink41 = phi i32 [ 156, %34 ], [ 156, %31 ], [ 161, %36 ], [ 165, %39 ], [ 173, %42 ], [ 177, %46 ], [ 184, %23 ], [ 184, %17 ], [ 184, %11 ]
  %.sink = phi i32 [ 109, %34 ], [ 109, %31 ], [ 524291, %36 ], [ 524291, %39 ], [ 109, %42 ], [ 786691, %46 ], [ 104, %23 ], [ 104, %17 ], [ 104, %11 ]
  %.028 = phi ptr [ null, %34 ], [ null, %31 ], [ null, %36 ], [ %37, %39 ], [ %37, %42 ], [ %37, %46 ], [ null, %23 ], [ null, %17 ], [ null, %11 ]
  %.027 = phi ptr [ %32, %34 ], [ %32, %31 ], [ %32, %36 ], [ %32, %39 ], [ %32, %42 ], [ %32, %46 ], [ null, %23 ], [ null, %17 ], [ null, %11 ]
  %.025 = phi ptr [ null, %34 ], [ null, %31 ], [ null, %36 ], [ null, %39 ], [ %40, %42 ], [ %40, %46 ], [ null, %23 ], [ null, %17 ], [ null, %11 ]
  %.1 = phi ptr [ %29, %34 ], [ %29, %31 ], [ %29, %36 ], [ %29, %39 ], [ %29, %42 ], [ %29, %46 ], [ null, %23 ], [ null, %17 ], [ null, %11 ]
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str.2, i32 noundef %.sink41, ptr noundef nonnull @__func__.ossl_dsa_key_from_pkcs8) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 10, i32 noundef %.sink, ptr noundef null) #3
  call void @BN_free(ptr noundef %.027) #3
  call void @BN_free(ptr noundef %.028) #3
  call void @DSA_free(ptr noundef %.1) #3
  br label %49

49:                                               ; preds = %46, %48
  %.126 = phi ptr [ %.025, %48 ], [ %40, %46 ]
  %.2 = phi ptr [ null, %48 ], [ %29, %46 ]
  call void @BN_CTX_free(ptr noundef %.126) #3
  call void @ASN1_STRING_clear_free(ptr noundef %15) #3
  br label %50

50:                                               ; preds = %3, %49
  %.029 = phi ptr [ %.2, %49 ], [ null, %3 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret ptr %.029
}

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

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

declare ptr @d2i_ASN1_INTEGER(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare ptr @d2i_DSAparams(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare ptr @BN_secure_new() local_unnamed_addr #1

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

declare void @ERR_new() local_unnamed_addr #1

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

declare void @ERR_set_error(i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

declare ptr @BN_new() local_unnamed_addr #1

declare ptr @BN_CTX_new() local_unnamed_addr #1

declare ptr @DSA_get0_p(ptr noundef) local_unnamed_addr #1

declare ptr @DSA_get0_g(ptr noundef) local_unnamed_addr #1

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

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

declare void @BN_CTX_free(ptr noundef) local_unnamed_addr #1

declare void @ASN1_STRING_clear_free(ptr noundef) local_unnamed_addr #1

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 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"asn1_string_st", !10, i64 0, !10, i64 4, !6, i64 8, !13, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !10, i64 0}


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