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

; 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
@__FUNCTION__.x509_general_name_print = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr 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

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

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

declare i32 @asn1_object_identifier_print(ptr noundef, i32 noundef, i32 noundef, ptr 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 i32 @x509_other_name_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @x509_general_name_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i64 noundef %6) #3 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca [32 x i32], align 16
  %20 = alloca i64, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store i64 %6, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = load i32, ptr %11, align 4, !tbaa !9
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  %25 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %21, i32 noundef %22, i32 noundef %23, ptr noundef @.str.2, ptr noundef %24)
  %26 = load i32, ptr %11, align 4, !tbaa !9
  %27 = add nsw i32 %26, 4
  store i32 %27, ptr %11, align 4, !tbaa !9
  %28 = load i32, ptr %13, align 4, !tbaa !9
  switch i32 %28, label %41 [
    i32 0, label %29
    i32 3, label %29
    i32 4, label %29
    i32 5, label %29
  ]

29:                                               ; preds = %7, %7, %7, %7
  %30 = call i32 @asn1_type_from_der(i32 noundef 48, ptr noundef %16, ptr noundef %17, ptr noundef %14, ptr noundef %15)
  %31 = icmp ne i32 %30, 1
  br i1 %31, label %32, label %38

32:                                               ; preds = %29
  br label %33

33:                                               ; preds = %32
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 904, ptr noundef @__FUNCTION__.x509_general_name_print) #4
  br label %36

36:                                               ; preds = %33
  br label %37

37:                                               ; preds = %36
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %125

38:                                               ; preds = %29
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %39, ptr %14, align 8, !tbaa !5
  %40 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %40, ptr %15, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %38, %7
  %42 = load i32, ptr %13, align 4, !tbaa !9
  switch i32 %42, label %119 [
    i32 0, label %43
    i32 1, label %50
    i32 2, label %57
    i32 3, label %64
    i32 4, label %71
    i32 5, label %78
    i32 6, label %85
    i32 7, label %92
    i32 8, label %99
  ]

43:                                               ; preds = %41
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = load i32, ptr %11, align 4, !tbaa !9
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = load i64, ptr %15, align 8, !tbaa !11
  %49 = call i32 @x509_other_name_print(ptr noundef %44, i32 noundef %45, i32 noundef %46, ptr noundef @.str.13, ptr noundef %47, i64 noundef %48)
  store i32 %49, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %125

50:                                               ; preds = %41
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = load i64, ptr %15, align 8, !tbaa !11
  %56 = call i32 @asn1_string_print(ptr noundef %51, i32 noundef %52, i32 noundef %53, ptr noundef @.str.14, i32 noundef 22, ptr noundef %54, i64 noundef %55)
  store i32 %56, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %125

57:                                               ; preds = %41
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = load i64, ptr %15, align 8, !tbaa !11
  %63 = call i32 @asn1_string_print(ptr noundef %58, i32 noundef %59, i32 noundef %60, ptr noundef @.str.15, i32 noundef 22, ptr noundef %61, i64 noundef %62)
  store i32 %63, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %125

64:                                               ; preds = %41
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = load i64, ptr %15, align 8, !tbaa !11
  %70 = call i32 @format_bytes(ptr noundef %65, i32 noundef %66, i32 noundef %67, ptr noundef @.str.16, ptr noundef %68, i64 noundef %69)
  store i32 %70, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %125

71:                                               ; preds = %41
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = load i64, ptr %15, align 8, !tbaa !11
  %77 = call i32 @x509_name_print(ptr noundef %72, i32 noundef %73, i32 noundef %74, ptr noundef @.str.17, ptr noundef %75, i64 noundef %76)
  store i32 %77, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %125

78:                                               ; preds = %41
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = load i64, ptr %15, align 8, !tbaa !11
  %84 = call i32 @x509_edi_party_name_print(ptr noundef %79, i32 noundef %80, i32 noundef %81, ptr noundef @.str.18, ptr noundef %82, i64 noundef %83)
  store i32 %84, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %125

85:                                               ; preds = %41
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = load i64, ptr %15, align 8, !tbaa !11
  %91 = call i32 @asn1_string_print(ptr noundef %86, i32 noundef %87, i32 noundef %88, ptr noundef @.str.19, i32 noundef 22, ptr noundef %89, i64 noundef %90)
  store i32 %91, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %125

92:                                               ; preds = %41
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = load i32, ptr %11, align 4, !tbaa !9
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = load i64, ptr %15, align 8, !tbaa !11
  %98 = call i32 @format_bytes(ptr noundef %93, i32 noundef %94, i32 noundef %95, ptr noundef @.str.20, ptr noundef %96, i64 noundef %97)
  store i32 %98, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %125

99:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 128, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %100 = getelementptr inbounds [32 x i32], ptr %19, i64 0, i64 0
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = load i64, ptr %15, align 8, !tbaa !11
  %103 = call i32 @asn1_object_identifier_from_octets(ptr noundef %100, ptr noundef %20, ptr noundef %101, i64 noundef %102)
  %104 = icmp ne i32 %103, 1
  br i1 %104, label %105, label %111

105:                                              ; preds = %99
  br label %106

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

109:                                              ; preds = %106
  br label %110

110:                                              ; preds = %109
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %118

111:                                              ; preds = %99
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = getelementptr inbounds [32 x i32], ptr %19, i64 0, i64 0
  %116 = load i64, ptr %20, align 8, !tbaa !11
  %117 = call i32 @asn1_object_identifier_print(ptr noundef %112, i32 noundef %113, i32 noundef %114, ptr noundef @.str.21, ptr noundef null, ptr noundef %115, i64 noundef %116)
  store i32 %117, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %118

118:                                              ; preds = %111, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr %19) #4
  br label %125

119:                                              ; preds = %41
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr @stderr, align 8, !tbaa !5
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 930, ptr noundef @__FUNCTION__.x509_general_name_print) #4
  br label %123

123:                                              ; preds = %120
  br label %124

124:                                              ; preds = %123
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %125

125:                                              ; preds = %124, %118, %92, %85, %78, %71, %64, %57, %50, %43, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %126 = load i32, ptr %8, align 4
  ret i32 %126
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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
@__FUNCTION__.x509_general_name_print = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 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

; 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.end.p0(i64 immarg, ptr nocapture) #0

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

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

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 @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 i32 @x509_other_name_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @x509_general_name_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i64 noundef %6) local_unnamed_addr #3 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca [32 x i32], align 16
  %13 = alloca i64, align 8
  store ptr %5, ptr %8, align 8, !tbaa !5
  store i64 %6, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %14 = 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
  %15 = add nsw i32 %2, 4
  switch i32 %4, label %53 [
    i32 0, label %16
    i32 3, label %16
    i32 4, label %16
    i32 5, label %16
    i32 1, label %26
    i32 2, label %30
    i32 6, label %40
    i32 7, label %42
    i32 8, label %44
  ]

16:                                               ; preds = %7, %7, %7, %7
  %17 = call i32 @asn1_type_from_der(i32 noundef 48, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %8, ptr noundef nonnull %9) #4
  %.not = icmp eq i32 %17, 1
  br i1 %.not, label %21, label %18

18:                                               ; preds = %16
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 904, ptr noundef nonnull @__FUNCTION__.x509_general_name_print) #5
  br label %56

21:                                               ; preds = %16
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %22, ptr %8, align 8, !tbaa !5
  %23 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %23, ptr %9, align 8, !tbaa !9
  switch i32 %4, label %default.unreachable [
    i32 0, label %24
    i32 1, label %26
    i32 2, label %30
    i32 3, label %34
    i32 4, label %36
    i32 5, label %38
  ]

24:                                               ; preds = %21
  %25 = call i32 @x509_other_name_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.13, ptr noundef %22, i64 noundef %23)
  br label %56

26:                                               ; preds = %7, %21
  %27 = phi i64 [ %6, %7 ], [ %23, %21 ]
  %28 = phi ptr [ %5, %7 ], [ %22, %21 ]
  %29 = call i32 @asn1_string_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.14, i32 noundef 22, ptr noundef %28, i64 noundef %27) #4
  br label %56

30:                                               ; preds = %7, %21
  %31 = phi i64 [ %6, %7 ], [ %23, %21 ]
  %32 = phi ptr [ %5, %7 ], [ %22, %21 ]
  %33 = call i32 @asn1_string_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.15, i32 noundef 22, ptr noundef %32, i64 noundef %31) #4
  br label %56

34:                                               ; preds = %21
  %35 = call i32 @format_bytes(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.16, ptr noundef %22, i64 noundef %23) #4
  br label %56

36:                                               ; preds = %21
  %37 = call i32 @x509_name_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.17, ptr noundef %22, i64 noundef %23) #4
  br label %56

38:                                               ; preds = %21
  %39 = call i32 @x509_edi_party_name_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.18, ptr noundef %22, i64 noundef %23)
  br label %56

40:                                               ; preds = %7
  %41 = tail call i32 @asn1_string_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.19, i32 noundef 22, ptr noundef %5, i64 noundef %6) #4
  br label %56

42:                                               ; preds = %7
  %43 = tail call i32 @format_bytes(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.20, ptr noundef %5, i64 noundef %6) #4
  br label %56

44:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %45 = call i32 @asn1_object_identifier_from_octets(ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef %5, i64 noundef %6) #4
  %.not34 = icmp eq i32 %45, 1
  br i1 %.not34, label %49, label %46

46:                                               ; preds = %44
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 924, ptr noundef nonnull @__FUNCTION__.x509_general_name_print) #5
  br label %52

49:                                               ; preds = %44
  %50 = load i64, ptr %13, align 8, !tbaa !9
  %51 = call i32 @asn1_object_identifier_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.21, ptr noundef null, ptr noundef nonnull %12, i64 noundef %50) #4
  br label %52

52:                                               ; preds = %49, %46
  %.0 = phi i32 [ -1, %46 ], [ %51, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #4
  br label %56

default.unreachable:                              ; preds = %21
  unreachable

53:                                               ; preds = %7
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 930, ptr noundef nonnull @__FUNCTION__.x509_general_name_print) #5
  br label %56

56:                                               ; preds = %53, %52, %42, %40, %38, %36, %34, %30, %26, %24, %18
  %.1 = phi i32 [ -1, %53 ], [ %.0, %52 ], [ %43, %42 ], [ %41, %40 ], [ %39, %38 ], [ %37, %36 ], [ %35, %34 ], [ %33, %30 ], [ %29, %26 ], [ %25, %24 ], [ -1, %18 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  ret i32 %.1
}

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass