; 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.222 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.223 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.226 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.227 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [28 x i8], align 1
@__FUNCTION__.tls_server_hello_print = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

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

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

; 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
declare dso_local i32 @tls13_extensions_print(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i64 noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @tls_server_hello_print(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
  %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 i32, align 4
  %13 = alloca i16, align 2
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i16, align 2
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = 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 4, ptr %12) #4
  store i32 -1, ptr %12, align 4, !tbaa !11
  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 1, 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
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load i32, ptr %10, align 4, !tbaa !11
  %24 = load i32, ptr %11, align 4, !tbaa !11
  %25 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %22, i32 noundef %23, i32 noundef %24, ptr noundef @.str.226)
  %26 = load i32, ptr %11, align 4, !tbaa !11
  %27 = add nsw i32 %26, 4
  store i32 %27, ptr %11, align 4, !tbaa !11
  %28 = call i32 @tls_uint16_from_bytes(ptr noundef %13, ptr noundef %8, ptr noundef %9)
  %29 = icmp ne i32 %28, 1
  br i1 %29, label %30, label %31

30:                                               ; preds = %5
  br label %104

31:                                               ; preds = %5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load i32, ptr %10, align 4, !tbaa !11
  %34 = load i32, ptr %11, align 4, !tbaa !11
  %35 = load i16, ptr %13, align 2, !tbaa !13
  %36 = zext i16 %35 to i32
  %37 = call ptr @tls_protocol_name(i32 noundef %36)
  %38 = load i16, ptr %13, align 2, !tbaa !13
  %39 = zext i16 %38 to i32
  %40 = ashr i32 %39, 8
  %41 = load i16, ptr %13, align 2, !tbaa !13
  %42 = zext i16 %41 to i32
  %43 = and i32 %42, 255
  %44 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %32, i32 noundef %33, i32 noundef %34, ptr noundef @.str.222, ptr noundef %37, i32 noundef %40, i32 noundef %43)
  %45 = call i32 @tls_array_from_bytes(ptr noundef %14, i64 noundef 32, ptr noundef %8, ptr noundef %9)
  %46 = icmp ne i32 %45, 1
  br i1 %46, label %47, label %48

47:                                               ; preds = %31
  br label %104

48:                                               ; preds = %31
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = load i32, ptr %10, align 4, !tbaa !11
  %52 = load i32, ptr %11, align 4, !tbaa !11
  %53 = call i32 @tls_random_print(ptr noundef %49, ptr noundef %50, i32 noundef %51, i32 noundef %52)
  %54 = call i32 @tls_uint8array_from_bytes(ptr noundef %15, ptr noundef %19, ptr noundef %8, ptr noundef %9)
  %55 = icmp ne i32 %54, 1
  br i1 %55, label %56, label %57

56:                                               ; preds = %48
  br label %104

57:                                               ; preds = %48
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load i32, ptr %10, align 4, !tbaa !11
  %60 = load i32, ptr %11, align 4, !tbaa !11
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = load i64, ptr %19, align 8, !tbaa !9
  %63 = call i32 @format_bytes(ptr noundef %58, i32 noundef %59, i32 noundef %60, ptr noundef @.str.223, ptr noundef %61, i64 noundef %62)
  %64 = call i32 @tls_uint16_from_bytes(ptr noundef %16, ptr noundef %8, ptr noundef %9)
  %65 = icmp ne i32 %64, 1
  br i1 %65, label %66, label %67

66:                                               ; preds = %57
  br label %104

67:                                               ; preds = %57
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = load i32, ptr %10, align 4, !tbaa !11
  %70 = load i32, ptr %11, align 4, !tbaa !11
  %71 = load i16, ptr %16, align 2, !tbaa !13
  %72 = zext i16 %71 to i32
  %73 = call ptr @tls_cipher_suite_name(i32 noundef %72)
  %74 = load i16, ptr %16, align 2, !tbaa !13
  %75 = zext i16 %74 to i32
  %76 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %68, i32 noundef %69, i32 noundef %70, ptr noundef @.str.227, ptr noundef %73, i32 noundef %75)
  %77 = call i32 @tls_uint8_from_bytes(ptr noundef %17, ptr noundef %8, ptr noundef %9)
  %78 = icmp ne i32 %77, 1
  br i1 %78, label %79, label %80

79:                                               ; preds = %67
  br label %104

80:                                               ; preds = %67
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = load i32, ptr %10, align 4, !tbaa !11
  %83 = load i32, ptr %11, align 4, !tbaa !11
  %84 = load i8, ptr %17, align 1, !tbaa !15
  %85 = zext i8 %84 to i32
  %86 = call ptr @tls_compression_method_name(i32 noundef %85)
  %87 = load i8, ptr %17, align 1, !tbaa !15
  %88 = zext i8 %87 to i32
  %89 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %81, i32 noundef %82, i32 noundef %83, ptr noundef @.str.228, ptr noundef %86, i32 noundef %88)
  %90 = load i64, ptr %9, align 8, !tbaa !9
  %91 = icmp ugt i64 %90, 0
  br i1 %91, label %92, label %103

92:                                               ; preds = %80
  %93 = call i32 @tls_uint16array_from_bytes(ptr noundef %18, ptr noundef %20, ptr noundef %8, ptr noundef %9)
  %94 = icmp ne i32 %93, 1
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  br label %104

96:                                               ; preds = %92
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load i32, ptr %10, align 4, !tbaa !11
  %99 = load i32, ptr %11, align 4, !tbaa !11
  %100 = load ptr, ptr %18, align 8, !tbaa !5
  %101 = load i64, ptr %20, align 8, !tbaa !9
  %102 = call i32 @tls13_extensions_print(ptr noundef %97, i32 noundef %98, i32 noundef %99, i32 noundef 2, ptr noundef %100, i64 noundef %101)
  br label %103

103:                                              ; preds = %96, %80
  store i32 1, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %110

104:                                              ; preds = %95, %79, %66, %56, %47, %30
  br label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr @stderr, align 8, !tbaa !5
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.213, ptr noundef @.str.130, i32 noundef 628, ptr noundef @__FUNCTION__.tls_server_hello_print) #4
  br label %108

108:                                              ; preds = %105
  br label %109

109:                                              ; preds = %108
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %110

110:                                              ; preds = %109, %103
  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 1, 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 4, ptr %12) #4
  %111 = load i32, ptr %6, align 4
  ret i32 %111
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!7, !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.222 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.223 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.226 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.227 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [28 x i8], align 1
@__FUNCTION__.tls_server_hello_print = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @tls_random_print(ptr noundef, ptr noundef, i32 noundef, 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) #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
declare dso_local i32 @tls13_extensions_print(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

19:                                               ; preds = %5
  %20 = load i16, ptr %8, align 2, !tbaa !11
  %21 = zext i16 %20 to i32
  %22 = call ptr @tls_protocol_name(i32 noundef %21)
  %23 = load i16, ptr %8, align 2, !tbaa !11
  %24 = zext i16 %23 to i32
  %25 = lshr i32 %24, 8
  %26 = and i32 %24, 255
  %27 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %3, i32 noundef %17, ptr noundef nonnull @.str.222, ptr noundef %22, i32 noundef %25, i32 noundef %26) #4
  %28 = call i32 @tls_array_from_bytes(ptr noundef nonnull %9, i64 noundef 32, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not22 = icmp eq i32 %28, 1
  br i1 %.not22, label %29, label %60

29:                                               ; preds = %19
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = call i32 @tls_random_print(ptr noundef %0, ptr noundef %30, i32 noundef %3, i32 noundef %17)
  %32 = call i32 @tls_uint8array_from_bytes(ptr noundef nonnull %10, ptr noundef nonnull %14, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not23 = icmp eq i32 %32, 1
  br i1 %.not23, label %33, label %60

33:                                               ; preds = %29
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = load i64, ptr %14, align 8, !tbaa !9
  %36 = call i32 @format_bytes(ptr noundef %0, i32 noundef %3, i32 noundef %17, ptr noundef nonnull @.str.223, ptr noundef %34, i64 noundef %35) #4
  %37 = call i32 @tls_uint16_from_bytes(ptr noundef nonnull %11, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not24 = icmp eq i32 %37, 1
  br i1 %.not24, label %38, label %60

38:                                               ; preds = %33
  %39 = load i16, ptr %11, align 2, !tbaa !11
  %40 = zext i16 %39 to i32
  %41 = call ptr @tls_cipher_suite_name(i32 noundef %40)
  %42 = load i16, ptr %11, align 2, !tbaa !11
  %43 = zext i16 %42 to i32
  %44 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %3, i32 noundef %17, ptr noundef nonnull @.str.227, ptr noundef %41, i32 noundef %43) #4
  %45 = call i32 @tls_uint8_from_bytes(ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not25 = icmp eq i32 %45, 1
  br i1 %.not25, label %46, label %60

46:                                               ; preds = %38
  %47 = load i8, ptr %12, align 1, !tbaa !13
  %48 = zext i8 %47 to i32
  %49 = call ptr @tls_compression_method_name(i32 noundef %48)
  %50 = load i8, ptr %12, align 1, !tbaa !13
  %51 = zext i8 %50 to i32
  %52 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %3, i32 noundef %17, ptr noundef nonnull @.str.228, ptr noundef %49, i32 noundef %51) #4
  %53 = load i64, ptr %7, align 8, !tbaa !9
  %.not26 = icmp eq i64 %53, 0
  br i1 %.not26, label %63, label %54

54:                                               ; preds = %46
  %55 = call i32 @tls_uint16array_from_bytes(ptr noundef nonnull %13, ptr noundef nonnull %15, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %.not27 = icmp eq i32 %55, 1
  br i1 %.not27, label %56, label %60

56:                                               ; preds = %54
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = load i64, ptr %15, align 8, !tbaa !9
  %59 = call i32 @tls13_extensions_print(ptr noundef %0, i32 noundef %3, i32 noundef %17, i32 noundef 2, ptr noundef %57, i64 noundef %58)
  br label %63

60:                                               ; preds = %5, %19, %29, %33, %38, %54
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.213, ptr noundef nonnull @.str.130, i32 noundef 628, ptr noundef nonnull @__FUNCTION__.tls_server_hello_print) #5
  br label %63

63:                                               ; preds = %46, %56, %60
  %.0 = phi i32 [ -1, %60 ], [ 1, %56 ], [ 1, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, 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 1, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #4
  ret i32 %.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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
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 = !{!"short", !7, i64 0}
!13 = !{!7, !7, i64 0}


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