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

; 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.130 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.230 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.231 = external hidden unnamed_addr constant [14 x i8], align 1
@__FUNCTION__.tls_server_key_exchange_ecdhe_print = external hidden unnamed_addr constant [36 x i8], align 1
@.str.232 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.233 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.234 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.236 = external hidden unnamed_addr constant [10 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @tls_curve_type_name(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @tls_curve_name(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @tls_signature_scheme_name(i32 noundef) #1

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

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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

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

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

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

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

37:                                               ; preds = %5
  br label %38

38:                                               ; preds = %37
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.213, ptr noundef @.str.130, i32 noundef 675, ptr noundef @__FUNCTION__.tls_server_key_exchange_ecdhe_print) #4
  br label %41

41:                                               ; preds = %38
  br label %42

42:                                               ; preds = %41
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %131

43:                                               ; preds = %5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load i32, ptr %10, align 4, !tbaa !11
  %46 = load i32, ptr %11, align 4, !tbaa !11
  %47 = add nsw i32 %46, 8
  %48 = load i8, ptr %12, align 1, !tbaa !13
  %49 = zext i8 %48 to i32
  %50 = call ptr @tls_curve_type_name(i32 noundef %49)
  %51 = load i8, ptr %12, align 1, !tbaa !13
  %52 = zext i8 %51 to i32
  %53 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %44, i32 noundef %45, i32 noundef %47, ptr noundef @.str.232, ptr noundef %50, i32 noundef %52)
  %54 = call i32 @tls_uint16_from_bytes(ptr noundef %13, ptr noundef %8, ptr noundef %9)
  %55 = icmp ne i32 %54, 1
  br i1 %55, label %56, label %62

56:                                               ; preds = %43
  br label %57

57:                                               ; preds = %56
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.213, ptr noundef @.str.130, i32 noundef 681, ptr noundef @__FUNCTION__.tls_server_key_exchange_ecdhe_print) #4
  br label %60

60:                                               ; preds = %57
  br label %61

61:                                               ; preds = %60
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %131

62:                                               ; preds = %43
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load i32, ptr %10, align 4, !tbaa !11
  %65 = load i32, ptr %11, align 4, !tbaa !11
  %66 = add nsw i32 %65, 8
  %67 = load i16, ptr %13, align 2, !tbaa !14
  %68 = zext i16 %67 to i32
  %69 = call ptr @tls_curve_name(i32 noundef %68)
  %70 = load i16, ptr %13, align 2, !tbaa !14
  %71 = zext i16 %70 to i32
  %72 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %63, i32 noundef %64, i32 noundef %66, ptr noundef @.str.233, ptr noundef %69, i32 noundef %71)
  %73 = call i32 @tls_uint8array_from_bytes(ptr noundef %14, ptr noundef %15, ptr noundef %8, ptr noundef %9)
  %74 = icmp ne i32 %73, 1
  br i1 %74, label %75, label %81

75:                                               ; preds = %62
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr @stderr, align 8, !tbaa !5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str.213, ptr noundef @.str.130, i32 noundef 687, ptr noundef @__FUNCTION__.tls_server_key_exchange_ecdhe_print) #4
  br label %79

79:                                               ; preds = %76
  br label %80

80:                                               ; preds = %79
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %131

81:                                               ; preds = %62
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load i32, ptr %10, align 4, !tbaa !11
  %84 = load i32, ptr %11, align 4, !tbaa !11
  %85 = add nsw i32 %84, 4
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load i64, ptr %15, align 8, !tbaa !9
  %88 = call i32 @format_bytes(ptr noundef %82, i32 noundef %83, i32 noundef %85, ptr noundef @.str.234, ptr noundef %86, i64 noundef %87)
  %89 = call i32 @tls_uint16_from_bytes(ptr noundef %16, ptr noundef %8, ptr noundef %9)
  %90 = icmp ne i32 %89, 1
  br i1 %90, label %91, label %97

91:                                               ; preds = %81
  br label %92

92:                                               ; preds = %91
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.213, ptr noundef @.str.130, i32 noundef 692, ptr noundef @__FUNCTION__.tls_server_key_exchange_ecdhe_print) #4
  br label %95

95:                                               ; preds = %92
  br label %96

96:                                               ; preds = %95
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %131

97:                                               ; preds = %81
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load i32, ptr %10, align 4, !tbaa !11
  %100 = load i32, ptr %11, align 4, !tbaa !11
  %101 = load i16, ptr %16, align 2, !tbaa !14
  %102 = zext i16 %101 to i32
  %103 = call ptr @tls_signature_scheme_name(i32 noundef %102)
  %104 = load i16, ptr %16, align 2, !tbaa !14
  %105 = zext i16 %104 to i32
  %106 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %98, i32 noundef %99, i32 noundef %100, ptr noundef @.str.235, ptr noundef %103, i32 noundef %105)
  %107 = call i32 @tls_uint16array_from_bytes(ptr noundef %17, ptr noundef %18, ptr noundef %8, ptr noundef %9)
  %108 = icmp ne i32 %107, 1
  br i1 %108, label %109, label %115

109:                                              ; preds = %97
  br label %110

110:                                              ; preds = %109
  %111 = load ptr, ptr @stderr, align 8, !tbaa !5
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef @.str.213, ptr noundef @.str.130, i32 noundef 698, ptr noundef @__FUNCTION__.tls_server_key_exchange_ecdhe_print) #4
  br label %113

113:                                              ; preds = %110
  br label %114

114:                                              ; preds = %113
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %131

115:                                              ; preds = %97
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load i32, ptr %10, align 4, !tbaa !11
  %118 = load i32, ptr %11, align 4, !tbaa !11
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  %120 = load i64, ptr %18, align 8, !tbaa !9
  %121 = call i32 @format_bytes(ptr noundef %116, i32 noundef %117, i32 noundef %118, ptr noundef @.str.236, ptr noundef %119, i64 noundef %120)
  %122 = load i64, ptr %9, align 8, !tbaa !9
  %123 = icmp ugt i64 %122, 0
  br i1 %123, label %124, label %130

124:                                              ; preds = %115
  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.213, ptr noundef @.str.130, i32 noundef 703, ptr noundef @__FUNCTION__.tls_server_key_exchange_ecdhe_print) #4
  br label %128

128:                                              ; preds = %125
  br label %129

129:                                              ; preds = %128
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %131

130:                                              ; preds = %115
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %131

131:                                              ; preds = %130, %129, %114, %96, %80, %61, %42
  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 2, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  %132 = load i32, ptr %6, align 4
  ret i32 %132
}

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 = { 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 #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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !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.130 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.230 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.231 = external hidden unnamed_addr constant [14 x i8], align 1
@__FUNCTION__.tls_server_key_exchange_ecdhe_print = external hidden unnamed_addr constant [36 x i8], align 1
@.str.232 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.233 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.234 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.236 = external hidden unnamed_addr constant [10 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: nounwind uwtable
declare dso_local ptr @tls_curve_type_name(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @tls_signature_scheme_name(i32 noundef) 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

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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @tls_server_key_exchange_ecdhe_print(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i8, align 1
  %9 = alloca i16, align 2
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i16, align 2
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 2, 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 2, 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
  %15 = tail call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %3, i32 noundef %4, ptr noundef nonnull @.str.229) #4
  %16 = add nsw i32 %4, 4
  %17 = tail call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %3, i32 noundef %16, ptr noundef nonnull @.str.230) #4
  %18 = add nsw i32 %4, 8
  %19 = tail call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %3, i32 noundef %18, ptr noundef nonnull @.str.231) #4
  %20 = call i32 @tls_uint8_from_bytes(ptr noundef nonnull %8, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not = icmp eq i32 %20, 1
  br i1 %.not, label %21, label %.sink.split

21:                                               ; preds = %5
  %22 = add nsw i32 %4, 12
  %23 = load i8, ptr %8, align 1, !tbaa !11
  %24 = zext i8 %23 to i32
  %25 = call ptr @tls_curve_type_name(i32 noundef %24)
  %26 = load i8, ptr %8, align 1, !tbaa !11
  %27 = zext i8 %26 to i32
  %28 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %3, i32 noundef %22, ptr noundef nonnull @.str.232, ptr noundef %25, i32 noundef %27) #4
  %29 = call i32 @tls_uint16_from_bytes(ptr noundef nonnull %9, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not25 = icmp eq i32 %29, 1
  br i1 %.not25, label %30, label %.sink.split

30:                                               ; preds = %21
  %31 = load i16, ptr %9, align 2, !tbaa !12
  %32 = zext i16 %31 to i32
  %33 = call ptr @tls_curve_name(i32 noundef %32)
  %34 = load i16, ptr %9, align 2, !tbaa !12
  %35 = zext i16 %34 to i32
  %36 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %3, i32 noundef %22, ptr noundef nonnull @.str.233, ptr noundef %33, i32 noundef %35) #4
  %37 = call i32 @tls_uint8array_from_bytes(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not26 = icmp eq i32 %37, 1
  br i1 %.not26, label %38, label %.sink.split

38:                                               ; preds = %30
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = load i64, ptr %11, align 8, !tbaa !9
  %41 = call i32 @format_bytes(ptr noundef %0, i32 noundef %3, i32 noundef %18, ptr noundef nonnull @.str.234, ptr noundef %39, i64 noundef %40) #4
  %42 = call i32 @tls_uint16_from_bytes(ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not27 = icmp eq i32 %42, 1
  br i1 %.not27, label %43, label %.sink.split

43:                                               ; preds = %38
  %44 = load i16, ptr %12, align 2, !tbaa !12
  %45 = zext i16 %44 to i32
  %46 = call ptr @tls_signature_scheme_name(i32 noundef %45)
  %47 = load i16, ptr %12, align 2, !tbaa !12
  %48 = zext i16 %47 to i32
  %49 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %3, i32 noundef %16, ptr noundef nonnull @.str.235, ptr noundef %46, i32 noundef %48) #4
  %50 = call i32 @tls_uint16array_from_bytes(ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not28 = icmp eq i32 %50, 1
  br i1 %.not28, label %51, label %.sink.split

51:                                               ; preds = %43
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = load i64, ptr %14, align 8, !tbaa !9
  %54 = call i32 @format_bytes(ptr noundef %0, i32 noundef %3, i32 noundef %16, ptr noundef nonnull @.str.236, ptr noundef %52, i64 noundef %53) #4
  %55 = load i64, ptr %7, align 8, !tbaa !9
  %.not29 = icmp eq i64 %55, 0
  br i1 %.not29, label %58, label %.sink.split

.sink.split:                                      ; preds = %51, %43, %38, %30, %21, %5
  %.sink30 = phi i32 [ 675, %5 ], [ 681, %21 ], [ 687, %30 ], [ 692, %38 ], [ 698, %43 ], [ 703, %51 ]
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.213, ptr noundef nonnull @.str.130, i32 noundef %.sink30, ptr noundef nonnull @__FUNCTION__.tls_server_key_exchange_ecdhe_print) #5
  br label %58

58:                                               ; preds = %.sink.split, %51
  %.0 = phi i32 [ 1, %51 ], [ -1, %.sink.split ]
  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 2, 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 2, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  ret i32 %.0
}

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 = { 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 #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 }
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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !7, i64 0}


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