; LLVM IR from guanzhi/GmSSL :: src (x509_crl)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@__FUNCTION__.x509_crl_entry_ext_print = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @x509_crl_reason_name(i32 noundef) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_crl_reason_from_der(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @x509_crl_entry_ext_id_name(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_crl_entry_ext_id_from_der(ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @asn1_type_from_der(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @asn1_boolean_from_der_ex(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @asn1_generalized_time_from_der_ex(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @x509_crl_entry_ext_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i64 %5, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = load i32, ptr %9, align 4, !tbaa !9
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %24, i32 noundef %25, i32 noundef %26, ptr noundef @.str.2, ptr noundef %27)
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = add nsw i32 %29, 4
  store i32 %30, ptr %10, align 4, !tbaa !9
  %31 = call i32 @x509_crl_entry_ext_id_from_der(ptr noundef %15, ptr noundef %12, ptr noundef %13)
  %32 = icmp ne i32 %31, 1
  br i1 %32, label %33, label %34

33:                                               ; preds = %6
  br label %124

34:                                               ; preds = %6
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = load i32, ptr %15, align 4, !tbaa !9
  %39 = call ptr @x509_crl_entry_ext_id_name(i32 noundef %38)
  %40 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %35, i32 noundef %36, i32 noundef %37, ptr noundef @.str.3, ptr noundef %39)
  %41 = call i32 @asn1_boolean_from_der_ex(i32 noundef 1, ptr noundef %16, ptr noundef %12, ptr noundef %13)
  store i32 %41, ptr %14, align 4, !tbaa !9
  %42 = icmp slt i32 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %34
  br label %124

44:                                               ; preds = %34
  %45 = load i32, ptr %14, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %54

47:                                               ; preds = %44
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %16, align 4, !tbaa !9
  %52 = call ptr @asn1_boolean_name(i32 noundef %51)
  %53 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %48, i32 noundef %49, i32 noundef %50, ptr noundef @.str.4, ptr noundef %52)
  br label %54

54:                                               ; preds = %47, %44
  %55 = call i32 @asn1_type_from_der(i32 noundef 4, ptr noundef %17, ptr noundef %18, ptr noundef %12, ptr noundef %13)
  %56 = icmp ne i32 %55, 1
  br i1 %56, label %57, label %58

57:                                               ; preds = %54
  br label %124

58:                                               ; preds = %54
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 68
  br i1 %60, label %61, label %80

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %62 = call i32 @x509_crl_reason_from_der(ptr noundef %19, ptr noundef %17, ptr noundef %18)
  %63 = icmp ne i32 %62, 1
  br i1 %63, label %64, label %70

64:                                               ; preds = %61
  br label %65

65:                                               ; preds = %64
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 376, ptr noundef @__FUNCTION__.x509_crl_entry_ext_print) #4
  br label %68

68:                                               ; preds = %65
  br label %69

69:                                               ; preds = %68
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %77

70:                                               ; preds = %61
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %19, align 4, !tbaa !9
  %75 = call ptr @x509_crl_reason_name(i32 noundef %74)
  %76 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %71, i32 noundef %72, i32 noundef %73, ptr noundef @.str.5, ptr noundef %75)
  store i32 0, ptr %20, align 4
  br label %77

77:                                               ; preds = %70, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  %78 = load i32, ptr %20, align 4
  switch i32 %78, label %133 [
    i32 0, label %79
  ]

79:                                               ; preds = %77
  br label %132

80:                                               ; preds = %58
  %81 = load i32, ptr %15, align 4, !tbaa !9
  %82 = icmp eq i32 %81, 69
  br i1 %82, label %83, label %101

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %84 = call i32 @asn1_generalized_time_from_der_ex(i32 noundef 24, ptr noundef %21, ptr noundef %17, ptr noundef %18)
  %85 = icmp ne i32 %84, 1
  br i1 %85, label %86, label %92

86:                                               ; preds = %83
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 384, ptr noundef @__FUNCTION__.x509_crl_entry_ext_print) #4
  br label %90

90:                                               ; preds = %87
  br label %91

91:                                               ; preds = %90
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %98

92:                                               ; preds = %83
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = call ptr @ctime(ptr noundef %21) #4
  %97 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %93, i32 noundef %94, i32 noundef %95, ptr noundef @.str.6, ptr noundef %96)
  store i32 0, ptr %20, align 4
  br label %98

98:                                               ; preds = %92, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  %99 = load i32, ptr %20, align 4
  switch i32 %99, label %133 [
    i32 0, label %100
  ]

100:                                              ; preds = %98
  br label %131

101:                                              ; preds = %80
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = icmp eq i32 %102, 70
  br i1 %103, label %104, label %123

104:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %105 = call i32 @asn1_type_from_der(i32 noundef 48, ptr noundef %22, ptr noundef %23, ptr noundef %17, ptr noundef %18)
  %106 = icmp ne i32 %105, 1
  br i1 %106, label %107, label %113

107:                                              ; preds = %104
  br label %108

108:                                              ; preds = %107
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 393, ptr noundef @__FUNCTION__.x509_crl_entry_ext_print) #4
  br label %111

111:                                              ; preds = %108
  br label %112

112:                                              ; preds = %111
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %120

113:                                              ; preds = %104
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = load ptr, ptr %22, align 8, !tbaa !5
  %118 = load i64, ptr %23, align 8, !tbaa !11
  %119 = call i32 @x509_general_names_print(ptr noundef %114, i32 noundef %115, i32 noundef %116, ptr noundef @.str.7, ptr noundef %117, i64 noundef %118)
  store i32 0, ptr %20, align 4
  br label %120

120:                                              ; preds = %113, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  %121 = load i32, ptr %20, align 4
  switch i32 %121, label %133 [
    i32 0, label %122
  ]

122:                                              ; preds = %120
  br label %130

123:                                              ; preds = %101
  br label %124

124:                                              ; preds = %123, %57, %43, %33
  br label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr @stderr, align 8, !tbaa !5
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 400, ptr noundef @__FUNCTION__.x509_crl_entry_ext_print) #4
  br label %128

128:                                              ; preds = %125
  br label %129

129:                                              ; preds = %128
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %133

130:                                              ; preds = %122
  br label %131

131:                                              ; preds = %130, %100
  br label %132

132:                                              ; preds = %131, %79
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %133

133:                                              ; preds = %132, %129, %120, %98, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %134 = load i32, ptr %7, align 4
  ret i32 %134
}

declare i32 @format_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) #3

declare ptr @asn1_boolean_name(i32 noundef) #3

; Function Attrs: nounwind
declare ptr @ctime(ptr noundef) #1

declare i32 @x509_general_names_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #3

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@__FUNCTION__.x509_crl_entry_ext_print = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @x509_crl_reason_name(i32 noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_crl_reason_from_der(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @x509_crl_entry_ext_id_name(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_crl_entry_ext_id_from_der(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @asn1_type_from_der(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @asn1_boolean_from_der_ex(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @asn1_generalized_time_from_der_ex(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @x509_crl_entry_ext_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) local_unnamed_addr #0 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  store ptr %4, ptr %7, align 8, !tbaa !5
  store i64 %5, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %17 = tail call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull @.str.2, ptr noundef %3) #5
  %18 = add nsw i32 %2, 4
  %19 = call i32 @x509_crl_entry_ext_id_from_der(ptr noundef nonnull %9, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not = icmp eq i32 %19, 1
  br i1 %.not, label %20, label %58

20:                                               ; preds = %6
  %21 = load i32, ptr %9, align 4, !tbaa !11
  %22 = call ptr @x509_crl_entry_ext_id_name(i32 noundef %21)
  %23 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %18, ptr noundef nonnull @.str.3, ptr noundef %22) #5
  %24 = call i32 @asn1_boolean_from_der_ex(i32 noundef 1, ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %8) #5
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %58, label %26

26:                                               ; preds = %20
  %.not31 = icmp eq i32 %24, 0
  br i1 %.not31, label %31, label %27

27:                                               ; preds = %26
  %28 = load i32, ptr %10, align 4, !tbaa !11
  %29 = call ptr @asn1_boolean_name(i32 noundef %28) #5
  %30 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %18, ptr noundef nonnull @.str.4, ptr noundef %29) #5
  br label %31

31:                                               ; preds = %27, %26
  %32 = call i32 @asn1_type_from_der(i32 noundef 4, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %8) #5
  %.not32 = icmp eq i32 %32, 1
  br i1 %.not32, label %33, label %58

33:                                               ; preds = %31
  %34 = load i32, ptr %9, align 4, !tbaa !11
  switch i32 %34, label %58 [
    i32 68, label %35
    i32 69, label %43
    i32 70, label %50
  ]

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  %36 = call i32 @x509_crl_reason_from_der(ptr noundef nonnull %13, ptr noundef nonnull %11, ptr noundef nonnull %12)
  %.not35 = icmp eq i32 %36, 1
  br i1 %.not35, label %.thread, label %40

.thread:                                          ; preds = %35
  %37 = load i32, ptr %13, align 4, !tbaa !11
  %38 = call ptr @x509_crl_reason_name(i32 noundef %37)
  %39 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %18, ptr noundef nonnull @.str.5, ptr noundef %38) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  br label %61

40:                                               ; preds = %35
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 376, ptr noundef nonnull @__FUNCTION__.x509_crl_entry_ext_print) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  br label %61

43:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %44 = call i32 @asn1_generalized_time_from_der_ex(i32 noundef 24, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %12) #5
  %.not34 = icmp eq i32 %44, 1
  br i1 %.not34, label %.thread36, label %47

.thread36:                                        ; preds = %43
  %45 = call ptr @ctime(ptr noundef nonnull %14) #5
  %46 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %18, ptr noundef nonnull @.str.6, ptr noundef %45) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %61

47:                                               ; preds = %43
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 384, ptr noundef nonnull @__FUNCTION__.x509_crl_entry_ext_print) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %61

50:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %51 = call i32 @asn1_type_from_der(i32 noundef 48, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %12) #5
  %.not33 = icmp eq i32 %51, 1
  br i1 %.not33, label %.thread37, label %55

.thread37:                                        ; preds = %50
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = load i64, ptr %16, align 8, !tbaa !9
  %54 = call i32 @x509_general_names_print(ptr noundef %0, i32 noundef %1, i32 noundef %18, ptr noundef nonnull @.str.7, ptr noundef %52, i64 noundef %53) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %61

55:                                               ; preds = %50
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 393, ptr noundef nonnull @__FUNCTION__.x509_crl_entry_ext_print) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %61

58:                                               ; preds = %33, %6, %20, %31
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 400, ptr noundef nonnull @__FUNCTION__.x509_crl_entry_ext_print) #6
  br label %61

61:                                               ; preds = %.thread, %.thread36, %.thread37, %55, %47, %40, %58
  %.3 = phi i32 [ -1, %58 ], [ -1, %40 ], [ -1, %47 ], [ -1, %55 ], [ 1, %.thread37 ], [ 1, %.thread36 ], [ 1, %.thread ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  ret i32 %.3
}

declare i32 @format_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #3

declare ptr @asn1_boolean_name(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare ptr @ctime(ptr noundef) local_unnamed_addr #4

declare i32 @x509_general_names_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { nofree 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 "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 = { cold 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


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