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

; 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 [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@__FUNCTION__.cms_content_info_print = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @cms_content_type_name(i32 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @cms_content_type_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_nonempty_type_from_der(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @asn1_length_is_zero(i64 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @cms_content_info_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 ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = 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 8, 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
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = load ptr, ptr %11, 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 %10, align 4, !tbaa !9
  %27 = add nsw i32 %26, 4
  store i32 %27, ptr %10, align 4, !tbaa !9
  %28 = call i32 @cms_content_type_from_der(ptr noundef %15, ptr noundef %12, ptr noundef %13)
  %29 = icmp ne i32 %28, 1
  br i1 %29, label %30, label %31

30:                                               ; preds = %6
  br label %135

31:                                               ; preds = %6
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = load i32, ptr %10, align 4, !tbaa !9
  %35 = load i32, ptr %15, align 4, !tbaa !9
  %36 = call ptr @cms_content_type_name(i32 noundef %35)
  %37 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %32, i32 noundef %33, i32 noundef %34, ptr noundef @.str.3, ptr noundef %36)
  %38 = call i32 @asn1_nonempty_type_from_der(i32 noundef 160, ptr noundef %16, ptr noundef %17, ptr noundef %12, ptr noundef %13)
  store i32 %38, ptr %14, align 4, !tbaa !9
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %40, label %46

40:                                               ; preds = %31
  br label %41

41:                                               ; preds = %40
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 224, ptr noundef @__FUNCTION__.cms_content_info_print) #4
  br label %44

44:                                               ; preds = %41
  br label %45

45:                                               ; preds = %44
  br label %135

46:                                               ; preds = %31
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %55

49:                                               ; preds = %46
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr @stderr, align 8, !tbaa !5
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 225, ptr noundef @__FUNCTION__.cms_content_info_print) #4
  br label %53

53:                                               ; preds = %50
  br label %54

54:                                               ; preds = %53
  br label %135

55:                                               ; preds = %46
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = icmp eq i32 %56, 118
  br i1 %57, label %58, label %78

58:                                               ; preds = %55
  %59 = call i32 @asn1_type_from_der(i32 noundef 4, ptr noundef %18, ptr noundef %19, ptr noundef %16, ptr noundef %17)
  %60 = icmp ne i32 %59, 1
  br i1 %60, label %65, label %61

61:                                               ; preds = %58
  %62 = load i64, ptr %17, align 8, !tbaa !11
  %63 = call i32 @asn1_length_is_zero(i64 noundef %62)
  %64 = icmp ne i32 %63, 1
  br i1 %64, label %65, label %71

65:                                               ; preds = %61, %58
  br label %66

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

69:                                               ; preds = %66
  br label %70

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

71:                                               ; preds = %61
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = load i64, ptr %19, align 8, !tbaa !11
  %77 = call i32 @format_bytes(ptr noundef %72, i32 noundef %73, i32 noundef %74, ptr noundef @.str.4, ptr noundef %75, i64 noundef %76)
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %141

78:                                               ; preds = %55
  %79 = call i32 @asn1_type_from_der(i32 noundef 48, ptr noundef %18, ptr noundef %19, ptr noundef %16, ptr noundef %17)
  %80 = icmp ne i32 %79, 1
  br i1 %80, label %81, label %87

81:                                               ; preds = %78
  br label %82

82:                                               ; preds = %81
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 238, ptr noundef @__FUNCTION__.cms_content_info_print) #4
  br label %85

85:                                               ; preds = %82
  br label %86

86:                                               ; preds = %85
  br label %135

87:                                               ; preds = %78
  %88 = load i32, ptr %15, align 4, !tbaa !9
  switch i32 %88, label %124 [
    i32 119, label %89
    i32 120, label %96
    i32 121, label %103
    i32 122, label %110
    i32 123, label %117
  ]

89:                                               ; preds = %87
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = load i64, ptr %19, align 8, !tbaa !11
  %95 = call i32 @cms_signed_data_print(ptr noundef %90, i32 noundef %91, i32 noundef %92, ptr noundef @.str.4, ptr noundef %93, i64 noundef %94)
  br label %124

96:                                               ; preds = %87
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = load ptr, ptr %18, align 8, !tbaa !5
  %101 = load i64, ptr %19, align 8, !tbaa !11
  %102 = call i32 @cms_enveloped_data_print(ptr noundef %97, i32 noundef %98, i32 noundef %99, ptr noundef @.str.4, ptr noundef %100, i64 noundef %101)
  br label %124

103:                                              ; preds = %87
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = load i64, ptr %19, align 8, !tbaa !11
  %109 = call i32 @cms_signed_and_enveloped_data_print(ptr noundef %104, i32 noundef %105, i32 noundef %106, ptr noundef @.str.4, ptr noundef %107, i64 noundef %108)
  br label %124

110:                                              ; preds = %87
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load i32, ptr %9, align 4, !tbaa !9
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  %115 = load i64, ptr %19, align 8, !tbaa !11
  %116 = call i32 @cms_encrypted_data_print(ptr noundef %111, i32 noundef %112, i32 noundef %113, ptr noundef @.str.4, ptr noundef %114, i64 noundef %115)
  br label %124

117:                                              ; preds = %87
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = load ptr, ptr %18, align 8, !tbaa !5
  %122 = load i64, ptr %19, align 8, !tbaa !11
  %123 = call i32 @cms_key_agreement_info_print(ptr noundef %118, i32 noundef %119, i32 noundef %120, ptr noundef @.str.4, ptr noundef %121, i64 noundef %122)
  br label %124

124:                                              ; preds = %117, %110, %103, %96, %89, %87
  %125 = load i64, ptr %17, align 8, !tbaa !11
  %126 = call i32 @asn1_length_is_zero(i64 noundef %125)
  %127 = icmp ne i32 %126, 1
  br i1 %127, label %128, label %129

128:                                              ; preds = %124
  br label %135

129:                                              ; preds = %124
  %130 = load i64, ptr %13, align 8, !tbaa !11
  %131 = call i32 @asn1_length_is_zero(i64 noundef %130)
  %132 = icmp ne i32 %131, 1
  br i1 %132, label %133, label %134

133:                                              ; preds = %129
  br label %135

134:                                              ; preds = %129
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %141

135:                                              ; preds = %133, %128, %86, %54, %45, %30
  br label %136

136:                                              ; preds = %135
  %137 = load ptr, ptr @stderr, align 8, !tbaa !5
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 254, ptr noundef @__FUNCTION__.cms_content_info_print) #4
  br label %139

139:                                              ; preds = %136
  br label %140

140:                                              ; preds = %139
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %141

141:                                              ; preds = %140, %134, %71, %70
  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 8, 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
  %142 = load i32, ptr %7, align 4
  ret i32 %142
}

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

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

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

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

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

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@__FUNCTION__.cms_content_info_print = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @cms_content_type_name(i32 noundef) 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @cms_content_type_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_nonempty_type_from_der(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @asn1_length_is_zero(i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @cms_content_info_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 ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = 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) #4
  call void @llvm.lifetime.start.p0(i64 8, 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
  %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
  %16 = call i32 @cms_content_type_from_der(ptr noundef nonnull %9, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not = icmp eq i32 %16, 1
  br i1 %.not, label %17, label %72

17:                                               ; preds = %6
  %18 = load i32, ptr %9, align 4, !tbaa !11
  %19 = call ptr @cms_content_type_name(i32 noundef %18)
  %20 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.3, ptr noundef %19) #4
  %21 = call i32 @asn1_nonempty_type_from_der(i32 noundef 160, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  %22 = icmp slt i32 %21, 0
  br i1 %22, label %.sink.split, label %23

23:                                               ; preds = %17
  %24 = icmp eq i32 %21, 0
  br i1 %24, label %.sink.split, label %25

25:                                               ; preds = %23
  %26 = load i32, ptr %9, align 4, !tbaa !11
  %27 = icmp eq i32 %26, 118
  br i1 %27, label %28, label %40

28:                                               ; preds = %25
  %29 = call i32 @asn1_type_from_der(i32 noundef 4, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  %.not31 = icmp eq i32 %29, 1
  br i1 %.not31, label %30, label %33

30:                                               ; preds = %28
  %31 = load i64, ptr %11, align 8, !tbaa !9
  %32 = call i32 @asn1_length_is_zero(i64 noundef %31) #4
  %.not32 = icmp eq i32 %32, 1
  br i1 %.not32, label %36, label %33

33:                                               ; preds = %28, %30
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 230, ptr noundef nonnull @__FUNCTION__.cms_content_info_print) #5
  br label %75

36:                                               ; preds = %30
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = load i64, ptr %13, align 8, !tbaa !9
  %39 = call i32 @format_bytes(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.4, ptr noundef %37, i64 noundef %38) #4
  br label %75

40:                                               ; preds = %25
  %41 = call i32 @asn1_type_from_der(i32 noundef 48, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  %.not28 = icmp eq i32 %41, 1
  br i1 %.not28, label %42, label %.sink.split

42:                                               ; preds = %40
  %43 = load i32, ptr %9, align 4, !tbaa !11
  switch i32 %43, label %64 [
    i32 119, label %44
    i32 120, label %48
    i32 121, label %52
    i32 122, label %56
    i32 123, label %60
  ]

44:                                               ; preds = %42
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = load i64, ptr %13, align 8, !tbaa !9
  %47 = call i32 @cms_signed_data_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.4, ptr noundef %45, i64 noundef %46)
  br label %64

48:                                               ; preds = %42
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = load i64, ptr %13, align 8, !tbaa !9
  %51 = call i32 @cms_enveloped_data_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.4, ptr noundef %49, i64 noundef %50)
  br label %64

52:                                               ; preds = %42
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = load i64, ptr %13, align 8, !tbaa !9
  %55 = call i32 @cms_signed_and_enveloped_data_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.4, ptr noundef %53, i64 noundef %54)
  br label %64

56:                                               ; preds = %42
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load i64, ptr %13, align 8, !tbaa !9
  %59 = call i32 @cms_encrypted_data_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.4, ptr noundef %57, i64 noundef %58)
  br label %64

60:                                               ; preds = %42
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = load i64, ptr %13, align 8, !tbaa !9
  %63 = call i32 @cms_key_agreement_info_print(ptr noundef %0, i32 noundef %1, i32 noundef %15, ptr noundef nonnull @.str.4, ptr noundef %61, i64 noundef %62)
  br label %64

64:                                               ; preds = %60, %56, %52, %48, %44, %42
  %65 = load i64, ptr %11, align 8, !tbaa !9
  %66 = call i32 @asn1_length_is_zero(i64 noundef %65) #4
  %.not29 = icmp eq i32 %66, 1
  br i1 %.not29, label %67, label %72

67:                                               ; preds = %64
  %68 = load i64, ptr %8, align 8, !tbaa !9
  %69 = call i32 @asn1_length_is_zero(i64 noundef %68) #4
  %.not30 = icmp eq i32 %69, 1
  br i1 %.not30, label %75, label %72

.sink.split:                                      ; preds = %40, %23, %17
  %.sink33 = phi i32 [ 224, %17 ], [ 225, %23 ], [ 238, %40 ]
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef %.sink33, ptr noundef nonnull @__FUNCTION__.cms_content_info_print) #5
  br label %72

72:                                               ; preds = %.sink.split, %6, %64, %67
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 254, ptr noundef nonnull @__FUNCTION__.cms_content_info_print) #5
  br label %75

75:                                               ; preds = %67, %72, %36, %33
  %.0 = phi i32 [ -1, %72 ], [ -1, %33 ], [ 1, %36 ], [ 1, %67 ]
  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 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  ret i32 %.0
}

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

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

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

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

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

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

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

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