; LLVM IR from guanzhi/GmSSL :: src (tls_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"

%struct.SM2_KEY = type { %struct.SM2_Z256_POINT, [4 x i64] }
%struct.SM2_Z256_POINT = type { [4 x i64], [4 x i64], [4 x i64] }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@__FUNCTION__.tls13_process_client_key_share = external hidden unnamed_addr constant [31 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 @tls_length_is_zero(i64 noundef) #2

declare ptr @tls_curve_name(i32 noundef) #2

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @tls13_process_client_key_share(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %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 %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  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 %10, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %28

22:                                               ; preds = %6
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = load ptr, ptr %13, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %34, label %28

28:                                               ; preds = %25, %22, %6
  br label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 719, ptr noundef @__FUNCTION__.tls13_process_client_key_share) #4
  br label %32

32:                                               ; preds = %29
  br label %33

33:                                               ; preds = %32
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %129

34:                                               ; preds = %25
  %35 = call i32 @tls_uint16array_from_bytes(ptr noundef %14, ptr noundef %15, ptr noundef %8, ptr noundef %9)
  %36 = icmp ne i32 %35, 1
  br i1 %36, label %41, label %37

37:                                               ; preds = %34
  %38 = load i64, ptr %9, align 8, !tbaa !9
  %39 = call i32 @tls_length_is_zero(i64 noundef %38)
  %40 = icmp ne i32 %39, 1
  br i1 %40, label %41, label %47

41:                                               ; preds = %37, %34
  br label %42

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

45:                                               ; preds = %42
  br label %46

46:                                               ; preds = %45
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %129

47:                                               ; preds = %37
  br label %48

48:                                               ; preds = %122, %47
  %49 = load i64, ptr %15, align 8, !tbaa !9
  %50 = icmp ne i64 %49, 0
  br i1 %50, label %51, label %123

51:                                               ; preds = %48
  %52 = call i32 @tls_uint16_from_bytes(ptr noundef %16, ptr noundef %14, ptr noundef %15)
  %53 = icmp ne i32 %52, 1
  br i1 %53, label %57, label %54

54:                                               ; preds = %51
  %55 = call i32 @tls_uint16array_from_bytes(ptr noundef %17, ptr noundef %18, ptr noundef %14, ptr noundef %15)
  %56 = icmp ne i32 %55, 1
  br i1 %56, label %57, label %63

57:                                               ; preds = %54, %51
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 730, ptr noundef @__FUNCTION__.tls13_process_client_key_share) #4
  br label %61

61:                                               ; preds = %58
  br label %62

62:                                               ; preds = %61
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %129

63:                                               ; preds = %54
  %64 = load i16, ptr %16, align 2, !tbaa !11
  %65 = zext i16 %64 to i32
  %66 = call ptr @tls_curve_name(i32 noundef %65)
  %67 = icmp ne ptr %66, null
  br i1 %67, label %74, label %68

68:                                               ; preds = %63
  br label %69

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

72:                                               ; preds = %69
  br label %73

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

74:                                               ; preds = %63
  %75 = load ptr, ptr %17, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %83, label %77

77:                                               ; preds = %74
  br label %78

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

81:                                               ; preds = %78
  br label %82

82:                                               ; preds = %81
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %129

83:                                               ; preds = %74
  %84 = load i16, ptr %16, align 2, !tbaa !11
  %85 = zext i16 %84 to i32
  %86 = icmp eq i32 %85, 41
  br i1 %86, label %87, label %122

87:                                               ; preds = %83
  %88 = load i64, ptr %18, align 8, !tbaa !9
  %89 = icmp ne i64 %88, 65
  br i1 %89, label %90, label %96

90:                                               ; preds = %87
  br label %91

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

94:                                               ; preds = %91
  br label %95

95:                                               ; preds = %94
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %129

96:                                               ; preds = %87
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = load ptr, ptr %17, align 8, !tbaa !5
  %99 = load i64, ptr %18, align 8, !tbaa !9
  %100 = call i32 @sm2_z256_point_from_octets(ptr noundef %97, ptr noundef %98, i64 noundef %99)
  %101 = icmp ne i32 %100, 1
  br i1 %101, label %102, label %108

102:                                              ; preds = %96
  br label %103

103:                                              ; preds = %102
  %104 = load ptr, ptr @stderr, align 8, !tbaa !5
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 747, ptr noundef @__FUNCTION__.tls13_process_client_key_share) #4
  br label %106

106:                                              ; preds = %103
  br label %107

107:                                              ; preds = %106
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %129

108:                                              ; preds = %96
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.SM2_KEY, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = call i32 @tls13_server_key_share_ext_to_bytes(ptr noundef %110, ptr noundef %111, ptr noundef %112)
  %114 = icmp ne i32 %113, 1
  br i1 %114, label %115, label %121

115:                                              ; preds = %108
  br label %116

116:                                              ; preds = %115
  %117 = load ptr, ptr @stderr, align 8, !tbaa !5
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 751, ptr noundef @__FUNCTION__.tls13_process_client_key_share) #4
  br label %119

119:                                              ; preds = %116
  br label %120

120:                                              ; preds = %119
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %129

121:                                              ; preds = %108
  store i32 1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %129

122:                                              ; preds = %83
  br label %48, !llvm.loop !13

123:                                              ; preds = %48
  br label %124

124:                                              ; preds = %123
  %125 = load ptr, ptr @stderr, align 8, !tbaa !5
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 757, ptr noundef @__FUNCTION__.tls13_process_client_key_share) #4
  br label %127

127:                                              ; preds = %124
  br label %128

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

129:                                              ; preds = %128, %121, %120, %107, %95, %82, %73, %62, %46, %33
  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
  %130 = load i32, ptr %7, align 4
  ret i32 %130
}

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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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 [61 x i8], align 1
@__FUNCTION__.tls13_process_client_key_share = external hidden unnamed_addr constant [31 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 @tls_length_is_zero(i64 noundef) local_unnamed_addr #2

declare ptr @tls_curve_name(i32 noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @tls13_process_client_key_share(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i16, align 2
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  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 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %14 = icmp ne ptr %2, null
  %15 = icmp ne ptr %3, null
  %or.cond = and i1 %14, %15
  %16 = icmp ne ptr %5, null
  %or.cond3 = and i1 %or.cond, %16
  br i1 %or.cond3, label %20, label %17

17:                                               ; preds = %6
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 719, ptr noundef nonnull @__FUNCTION__.tls13_process_client_key_share) #5
  br label %69

20:                                               ; preds = %6
  %21 = call i32 @tls_uint16array_from_bytes(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  %.not = icmp eq i32 %21, 1
  br i1 %.not, label %22, label %25

22:                                               ; preds = %20
  %23 = load i64, ptr %8, align 8, !tbaa !9
  %24 = call i32 @tls_length_is_zero(i64 noundef %23) #4
  %.not15 = icmp eq i32 %24, 1
  br i1 %.not15, label %.preheader, label %25

25:                                               ; preds = %20, %22
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 724, ptr noundef nonnull @__FUNCTION__.tls13_process_client_key_share) #5
  br label %69

.preheader:                                       ; preds = %22, %48
  %28 = load i64, ptr %10, align 8, !tbaa !9
  %.not16 = icmp eq i64 %28, 0
  br i1 %.not16, label %66, label %29

29:                                               ; preds = %.preheader
  %30 = call i32 @tls_uint16_from_bytes(ptr noundef nonnull %11, ptr noundef nonnull %9, ptr noundef nonnull %10) #4
  %.not17 = icmp eq i32 %30, 1
  br i1 %.not17, label %31, label %33

31:                                               ; preds = %29
  %32 = call i32 @tls_uint16array_from_bytes(ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %9, ptr noundef nonnull %10) #4
  %.not18 = icmp eq i32 %32, 1
  br i1 %.not18, label %36, label %33

33:                                               ; preds = %29, %31
  %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 730, ptr noundef nonnull @__FUNCTION__.tls13_process_client_key_share) #5
  br label %69

36:                                               ; preds = %31
  %37 = load i16, ptr %11, align 2, !tbaa !11
  %38 = zext i16 %37 to i32
  %39 = call ptr @tls_curve_name(i32 noundef %38) #4
  %.not19 = icmp eq ptr %39, null
  br i1 %.not19, label %40, label %43

40:                                               ; preds = %36
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 734, ptr noundef nonnull @__FUNCTION__.tls13_process_client_key_share) #5
  br label %69

43:                                               ; preds = %36
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %.not20 = icmp eq ptr %44, null
  br i1 %.not20, label %45, label %48

45:                                               ; preds = %43
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 738, ptr noundef nonnull @__FUNCTION__.tls13_process_client_key_share) #5
  br label %69

48:                                               ; preds = %43
  %49 = load i16, ptr %11, align 2, !tbaa !11
  %50 = icmp eq i16 %49, 41
  br i1 %50, label %51, label %.preheader, !llvm.loop !13

51:                                               ; preds = %48
  %52 = load i64, ptr %13, align 8, !tbaa !9
  %.not21 = icmp eq i64 %52, 65
  br i1 %.not21, label %56, label %53

53:                                               ; preds = %51
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 743, ptr noundef nonnull @__FUNCTION__.tls13_process_client_key_share) #5
  br label %69

56:                                               ; preds = %51
  %57 = call i32 @sm2_z256_point_from_octets(ptr noundef nonnull %3, ptr noundef nonnull %44, i64 noundef 65) #4
  %.not22 = icmp eq i32 %57, 1
  br i1 %.not22, label %61, label %58

58:                                               ; preds = %56
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 747, ptr noundef nonnull @__FUNCTION__.tls13_process_client_key_share) #5
  br label %69

61:                                               ; preds = %56
  %62 = call i32 @tls13_server_key_share_ext_to_bytes(ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5)
  %.not23 = icmp eq i32 %62, 1
  br i1 %.not23, label %69, label %63

63:                                               ; preds = %61
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 751, ptr noundef nonnull @__FUNCTION__.tls13_process_client_key_share) #5
  br label %69

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

69:                                               ; preds = %61, %66, %63, %58, %53, %45, %40, %33, %25, %17
  %.0 = phi i32 [ -1, %25 ], [ -1, %33 ], [ -1, %53 ], [ -1, %58 ], [ -1, %63 ], [ -1, %45 ], [ -1, %40 ], [ -1, %66 ], [ -1, %17 ], [ 1, %61 ]
  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 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
  ret i32 %.0
}

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}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass