; 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.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@__FUNCTION__.x509_crl_ext_print = external hidden unnamed_addr constant [19 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

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

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

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

declare i32 @asn1_length_is_zero(i64 noundef) #2

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

declare ptr @asn1_boolean_name(i32 noundef) #2

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

declare i32 @format_bytes(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @x509_crl_ext_id_name(i32 noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_issuing_distribution_point_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @x509_crl_ext_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) #3 {
  %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 ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca [32 x i32], align 16
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = load i32, ptr %10, align 4, !tbaa !9
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef @.str.2, ptr noundef %29)
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = add nsw i32 %31, 4
  store i32 %32, ptr %10, align 4, !tbaa !9
  %33 = getelementptr inbounds [32 x i32], ptr %22, i64 0, i64 0
  %34 = call i32 @x509_crl_ext_id_from_der_ex(ptr noundef %15, ptr noundef %33, ptr noundef %23, ptr noundef %12, ptr noundef %13)
  %35 = icmp ne i32 %34, 1
  br i1 %35, label %36, label %37

36:                                               ; preds = %6
  br label %166

37:                                               ; preds = %6
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = load i32, ptr %15, align 4, !tbaa !9
  %42 = call ptr @x509_crl_ext_id_name(i32 noundef %41)
  %43 = getelementptr inbounds [32 x i32], ptr %22, i64 0, i64 0
  %44 = load i64, ptr %23, align 8, !tbaa !11
  %45 = call i32 @asn1_object_identifier_print(ptr noundef %38, i32 noundef %39, i32 noundef %40, ptr noundef @.str.19, ptr noundef %42, ptr noundef %43, i64 noundef %44)
  %46 = call i32 @asn1_boolean_from_der_ex(i32 noundef 1, ptr noundef %16, ptr noundef %12, ptr noundef %13)
  store i32 %46, ptr %14, align 4, !tbaa !9
  %47 = icmp slt i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %37
  br label %166

49:                                               ; preds = %37
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %59

52:                                               ; preds = %49
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = load i32, ptr %16, align 4, !tbaa !9
  %57 = call ptr @asn1_boolean_name(i32 noundef %56)
  %58 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %53, i32 noundef %54, i32 noundef %55, ptr noundef @.str.4, ptr noundef %57)
  br label %59

59:                                               ; preds = %52, %49
  %60 = call i32 @asn1_type_from_der(i32 noundef 4, ptr noundef %18, ptr noundef %19, ptr noundef %12, ptr noundef %13)
  %61 = icmp ne i32 %60, 1
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  br label %166

63:                                               ; preds = %59
  %64 = load i32, ptr %15, align 4, !tbaa !9
  switch i32 %64, label %85 [
    i32 44, label %65
    i32 50, label %65
    i32 66, label %65
    i32 58, label %65
    i32 67, label %65
    i32 64, label %75
    i32 65, label %75
  ]

65:                                               ; preds = %63, %63, %63, %63, %63
  %66 = call i32 @asn1_type_from_der(i32 noundef 48, ptr noundef %20, ptr noundef %21, ptr noundef %18, ptr noundef %19)
  %67 = icmp ne i32 %66, 1
  br i1 %67, label %68, label %74

68:                                               ; preds = %65
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 995, ptr noundef @__FUNCTION__.x509_crl_ext_print) #4
  br label %72

72:                                               ; preds = %69
  br label %73

73:                                               ; preds = %72
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %172

74:                                               ; preds = %65
  br label %95

75:                                               ; preds = %63, %63
  %76 = call i32 @asn1_int_from_der_ex(i32 noundef 2, ptr noundef %24, ptr noundef %18, ptr noundef %19)
  %77 = icmp ne i32 %76, 1
  br i1 %77, label %78, label %84

78:                                               ; preds = %75
  br label %79

79:                                               ; preds = %78
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1002, ptr noundef @__FUNCTION__.x509_crl_ext_print) #4
  br label %82

82:                                               ; preds = %79
  br label %83

83:                                               ; preds = %82
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %172

84:                                               ; preds = %75
  br label %95

85:                                               ; preds = %63
  %86 = call i32 @asn1_any_from_der(ptr noundef %20, ptr noundef %21, ptr noundef %18, ptr noundef %19)
  %87 = icmp ne i32 %86, 1
  br i1 %87, label %88, label %94

88:                                               ; preds = %85
  br label %89

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

92:                                               ; preds = %89
  br label %93

93:                                               ; preds = %92
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %172

94:                                               ; preds = %85
  br label %95

95:                                               ; preds = %94, %84, %74
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = call ptr @x509_crl_ext_id_name(i32 noundef %96)
  store ptr %97, ptr %17, align 8, !tbaa !5
  %98 = load i32, ptr %15, align 4, !tbaa !9
  switch i32 %98, label %153 [
    i32 44, label %99
    i32 50, label %107
    i32 64, label %115
    i32 65, label %122
    i32 66, label %129
    i32 58, label %137
    i32 67, label %145
  ]

99:                                               ; preds = %95
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  %104 = load ptr, ptr %20, align 8, !tbaa !5
  %105 = load i64, ptr %21, align 8, !tbaa !11
  %106 = call i32 @x509_authority_key_identifier_print(ptr noundef %100, i32 noundef %101, i32 noundef %102, ptr noundef %103, ptr noundef %104, i64 noundef %105)
  br label %160

107:                                              ; preds = %95
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = load ptr, ptr %17, align 8, !tbaa !5
  %112 = load ptr, ptr %20, align 8, !tbaa !5
  %113 = load i64, ptr %21, align 8, !tbaa !11
  %114 = call i32 @x509_general_names_print(ptr noundef %108, i32 noundef %109, i32 noundef %110, ptr noundef %111, ptr noundef %112, i64 noundef %113)
  br label %160

115:                                              ; preds = %95
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  %120 = load i32, ptr %24, align 4, !tbaa !9
  %121 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %116, i32 noundef %117, i32 noundef %118, ptr noundef @.str.20, ptr noundef %119, i32 noundef %120)
  br label %160

122:                                              ; preds = %95
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  %127 = load i32, ptr %24, align 4, !tbaa !9
  %128 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %123, i32 noundef %124, i32 noundef %125, ptr noundef @.str.20, ptr noundef %126, i32 noundef %127)
  br label %160

129:                                              ; preds = %95
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = load ptr, ptr %20, align 8, !tbaa !5
  %135 = load i64, ptr %21, align 8, !tbaa !11
  %136 = call i32 @x509_issuing_distribution_point_print(ptr noundef %130, i32 noundef %131, i32 noundef %132, ptr noundef %133, ptr noundef %134, i64 noundef %135)
  br label %160

137:                                              ; preds = %95
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = load i32, ptr %9, align 4, !tbaa !9
  %140 = load i32, ptr %10, align 4, !tbaa !9
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = load ptr, ptr %20, align 8, !tbaa !5
  %143 = load i64, ptr %21, align 8, !tbaa !11
  %144 = call i32 @x509_distribution_points_print(ptr noundef %138, i32 noundef %139, i32 noundef %140, ptr noundef %141, ptr noundef %142, i64 noundef %143)
  br label %160

145:                                              ; preds = %95
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = load i32, ptr %9, align 4, !tbaa !9
  %148 = load i32, ptr %10, align 4, !tbaa !9
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = load ptr, ptr %20, align 8, !tbaa !5
  %151 = load i64, ptr %21, align 8, !tbaa !11
  %152 = call i32 @x509_authority_info_access_print(ptr noundef %146, i32 noundef %147, i32 noundef %148, ptr noundef %149, ptr noundef %150, i64 noundef %151)
  br label %160

153:                                              ; preds = %95
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = load i32, ptr %10, align 4, !tbaa !9
  %157 = load ptr, ptr %20, align 8, !tbaa !5
  %158 = load i64, ptr %21, align 8, !tbaa !11
  %159 = call i32 @format_bytes(ptr noundef %154, i32 noundef %155, i32 noundef %156, ptr noundef @.str.21, ptr noundef %157, i64 noundef %158)
  br label %160

160:                                              ; preds = %153, %145, %137, %129, %122, %115, %107, %99
  %161 = load i64, ptr %19, align 8, !tbaa !11
  %162 = call i32 @asn1_length_is_zero(i64 noundef %161)
  %163 = icmp ne i32 %162, 1
  br i1 %163, label %164, label %165

164:                                              ; preds = %160
  br label %166

165:                                              ; preds = %160
  store i32 1, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %172

166:                                              ; preds = %164, %62, %48, %36
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr @stderr, align 8, !tbaa !5
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1028, ptr noundef @__FUNCTION__.x509_crl_ext_print) #4
  br label %170

170:                                              ; preds = %167
  br label %171

171:                                              ; preds = %170
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %172

172:                                              ; preds = %171, %165, %93, %83, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  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
  %173 = load i32, ptr %7, align 4
  ret i32 %173
}

declare i32 @asn1_object_identifier_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

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

declare i32 @x509_authority_key_identifier_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @x509_distribution_points_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @x509_authority_info_access_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 }

!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.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@__FUNCTION__.x509_crl_ext_print = external hidden unnamed_addr constant [19 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

declare i32 @asn1_int_from_der_ex(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare i32 @asn1_length_is_zero(i64 noundef) local_unnamed_addr #2

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

declare ptr @asn1_boolean_name(i32 noundef) local_unnamed_addr #2

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

declare i32 @format_bytes(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_issuing_distribution_point_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @x509_crl_ext_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) local_unnamed_addr #3 {
  %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 ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca [32 x i32], align 16
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  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) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  %18 = 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) #4
  %19 = add nsw i32 %2, 4
  %20 = call i32 @x509_crl_ext_id_from_der_ex(ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not = icmp eq i32 %20, 1
  br i1 %.not, label %21, label %.sink.split

21:                                               ; preds = %6
  %22 = load i32, ptr %9, align 4, !tbaa !11
  %23 = call ptr @x509_crl_ext_id_name(i32 noundef %22)
  %24 = load i64, ptr %16, align 8, !tbaa !9
  %25 = call i32 @asn1_object_identifier_print(ptr noundef %0, i32 noundef %1, i32 noundef %19, ptr noundef nonnull @.str.19, ptr noundef %23, ptr noundef nonnull %15, i64 noundef %24) #4
  %26 = call i32 @asn1_boolean_from_der_ex(i32 noundef 1, ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  %27 = icmp slt i32 %26, 0
  br i1 %27, label %.sink.split, label %28

28:                                               ; preds = %21
  %.not44 = icmp eq i32 %26, 0
  br i1 %.not44, label %33, label %29

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

33:                                               ; preds = %29, %28
  %34 = 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) #4
  %.not45 = icmp eq i32 %34, 1
  br i1 %.not45, label %35, label %.sink.split

35:                                               ; preds = %33
  %36 = load i32, ptr %9, align 4, !tbaa !11
  switch i32 %36, label %41 [
    i32 44, label %37
    i32 50, label %37
    i32 66, label %37
    i32 58, label %37
    i32 67, label %37
    i32 64, label %39
    i32 65, label %39
  ]

37:                                               ; preds = %35, %35, %35, %35, %35
  %38 = call i32 @asn1_type_from_der(i32 noundef 48, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %12) #4
  %.not47 = icmp eq i32 %38, 1
  br i1 %.not47, label %43, label %.sink.split

39:                                               ; preds = %35, %35
  %40 = call i32 @asn1_int_from_der_ex(i32 noundef 2, ptr noundef nonnull %17, ptr noundef nonnull %11, ptr noundef nonnull %12) #4
  %.not46 = icmp eq i32 %40, 1
  br i1 %.not46, label %43, label %.sink.split

41:                                               ; preds = %35
  %42 = call i32 @asn1_any_from_der(ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %12) #4
  %.not48 = icmp eq i32 %42, 1
  br i1 %.not48, label %43, label %.sink.split

43:                                               ; preds = %41, %39, %37
  %44 = load i32, ptr %9, align 4, !tbaa !11
  %45 = call ptr @x509_crl_ext_id_name(i32 noundef %44)
  %46 = load i32, ptr %9, align 4, !tbaa !11
  switch i32 %46, label %73 [
    i32 44, label %47
    i32 50, label %51
    i32 64, label %55
    i32 65, label %58
    i32 66, label %61
    i32 58, label %65
    i32 67, label %69
  ]

47:                                               ; preds = %43
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = load i64, ptr %14, align 8, !tbaa !9
  %50 = call i32 @x509_authority_key_identifier_print(ptr noundef %0, i32 noundef %1, i32 noundef %19, ptr noundef %45, ptr noundef %48, i64 noundef %49) #4
  br label %77

51:                                               ; preds = %43
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = load i64, ptr %14, align 8, !tbaa !9
  %54 = call i32 @x509_general_names_print(ptr noundef %0, i32 noundef %1, i32 noundef %19, ptr noundef %45, ptr noundef %52, i64 noundef %53) #4
  br label %77

55:                                               ; preds = %43
  %56 = load i32, ptr %17, align 4, !tbaa !11
  %57 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %19, ptr noundef nonnull @.str.20, ptr noundef %45, i32 noundef %56) #4
  br label %77

58:                                               ; preds = %43
  %59 = load i32, ptr %17, align 4, !tbaa !11
  %60 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %19, ptr noundef nonnull @.str.20, ptr noundef %45, i32 noundef %59) #4
  br label %77

61:                                               ; preds = %43
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = load i64, ptr %14, align 8, !tbaa !9
  %64 = call i32 @x509_issuing_distribution_point_print(ptr noundef %0, i32 noundef %1, i32 noundef %19, ptr noundef %45, ptr noundef %62, i64 noundef %63)
  br label %77

65:                                               ; preds = %43
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = load i64, ptr %14, align 8, !tbaa !9
  %68 = call i32 @x509_distribution_points_print(ptr noundef %0, i32 noundef %1, i32 noundef %19, ptr noundef %45, ptr noundef %66, i64 noundef %67) #4
  br label %77

69:                                               ; preds = %43
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = load i64, ptr %14, align 8, !tbaa !9
  %72 = call i32 @x509_authority_info_access_print(ptr noundef %0, i32 noundef %1, i32 noundef %19, ptr noundef %45, ptr noundef %70, i64 noundef %71) #4
  br label %77

73:                                               ; preds = %43
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = load i64, ptr %14, align 8, !tbaa !9
  %76 = call i32 @format_bytes(ptr noundef %0, i32 noundef %1, i32 noundef %19, ptr noundef nonnull @.str.21, ptr noundef %74, i64 noundef %75) #4
  br label %77

77:                                               ; preds = %73, %69, %65, %61, %58, %55, %51, %47
  %78 = load i64, ptr %12, align 8, !tbaa !9
  %79 = call i32 @asn1_length_is_zero(i64 noundef %78) #4
  %.not49 = icmp eq i32 %79, 1
  br i1 %.not49, label %82, label %.sink.split

.sink.split:                                      ; preds = %77, %33, %21, %6, %41, %39, %37
  %.sink50 = phi i32 [ 995, %37 ], [ 1002, %39 ], [ 1008, %41 ], [ 1028, %6 ], [ 1028, %21 ], [ 1028, %33 ], [ 1028, %77 ]
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef %.sink50, ptr noundef nonnull @__FUNCTION__.x509_crl_ext_print) #5
  br label %82

82:                                               ; preds = %.sink.split, %77
  %.0 = phi i32 [ 1, %77 ], [ -1, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  ret i32 %.0
}

declare i32 @asn1_object_identifier_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @asn1_any_from_der(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @x509_authority_key_identifier_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @x509_distribution_points_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @x509_authority_info_access_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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,SROAPass,SimplifyCFGPass,TailCallElimPass