; LLVM IR from aws/s2n-tls :: tests/unit (s2n_self_talk_npn_test)

; 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.s2n_debug_info = type { ptr, ptr }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.s2n_result = type { i32 }
%struct.s2n_stuffer_reservation = type { ptr, i32, i8 }
%struct.s2n_security_policy = type { i8, ptr, ptr, ptr, ptr, ptr, ptr, i8, [2 x i8] }
%struct.s2n_connection = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [22 x i8], [22 x i8], [22 x i8], i32, i32, %struct.s2n_timer, i64, i64, [32 x i8], i8, i8, i8, i8, i8, i8, i8, ptr, ptr, %struct.s2n_secrets, ptr, ptr, %struct.s2n_kex_parameters, %struct.s2n_handshake_parameters, %struct.s2n_psk_parameters, ptr, i8, i32, [5 x i8], %struct.s2n_stuffer, %struct.s2n_stuffer, %struct.s2n_stuffer, %struct.s2n_stuffer, i32, i64, [2 x i8], %struct.s2n_stuffer, i8, i8, i8, i8, %struct.s2n_atomic_flag, %struct.s2n_atomic_flag, %struct.s2n_handshake, i16, i32, i16, i64, i8, i64, i64, i64, %struct.s2n_atomic_flag, %struct.s2n_atomic_flag, [256 x i8], [256 x i8], i32, %struct.s2n_blob, i32, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_client_hello, %struct.s2n_x509_validator, ptr, ptr, i8, i32, %struct.s2n_blob, i32, %struct.s2n_ticket_fields, [138 x i8], %struct.s2n_stuffer, %struct.s2n_blob, %struct.s2n_blob, i8, i8, i8, i16, i16, i32, i32, %struct.s2n_blob, i32, %struct.s2n_post_handshake, %struct.s2n_atomic_flag, i8, i8 }
%struct.s2n_timer = type { i64 }
%struct.s2n_secrets = type { %union.anon, i32 }
%union.anon = type { %struct.s2n_tls13_secrets }
%struct.s2n_tls13_secrets = type { [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], i32 }
%struct.s2n_kex_parameters = type { %struct.s2n_dh_params, %struct.s2n_ecc_evp_params, [4 x ptr], %struct.s2n_ecc_evp_params, %struct.s2n_kem_group_params, %struct.s2n_kem_group_params, [8 x ptr], %struct.s2n_kem_params, %struct.s2n_blob, %struct.s2n_blob }
%struct.s2n_dh_params = type { ptr }
%struct.s2n_ecc_evp_params = type { ptr, ptr }
%struct.s2n_kem_group_params = type { ptr, %struct.s2n_kem_params, %struct.s2n_ecc_evp_params }
%struct.s2n_kem_params = type { ptr, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, i8 }
%struct.s2n_handshake_parameters = type { %struct.s2n_pkey, %struct.s2n_pkey, %struct.s2n_blob, i32, %struct.s2n_sig_scheme_list, ptr, ptr, ptr, [4 x ptr], [4 x ptr], i8, i8, [32 x i8], [32 x i8] }
%struct.s2n_pkey = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.s2n_sig_scheme_list = type { [128 x i16], i8 }
%struct.s2n_psk_parameters = type { i32, %struct.s2n_array, i16, i16, ptr, i32 }
%struct.s2n_array = type { %struct.s2n_blob, i32, i32 }
%struct.s2n_handshake = type { %struct.s2n_stuffer, ptr, [8 x i8], [48 x i8], [48 x i8], i8, i32, i32, i32, i32, %struct.s2n_offered_early_data, i8, i32 }
%struct.s2n_offered_early_data = type { ptr }
%struct.s2n_client_hello = type { %struct.s2n_blob, %struct.s2n_parsed_extensions_list, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, i8, i8, i8 }
%struct.s2n_parsed_extensions_list = type { [21 x %struct.s2n_parsed_extension], %struct.s2n_blob, i16 }
%struct.s2n_parsed_extension = type { %struct.s2n_blob, i16, i16, i8 }
%struct.s2n_x509_validator = type { ptr, ptr, i8, i8, i16, ptr, i32, ptr, %struct.s2n_cert_validation_info, i8 }
%struct.s2n_cert_validation_info = type { i8, [3 x i8] }
%struct.s2n_ticket_fields = type { %struct.s2n_blob, i32 }
%struct.s2n_stuffer = type { %struct.s2n_blob, i32, i32, i32, i8 }
%struct.s2n_post_handshake = type { %struct.s2n_stuffer, [4 x i8] }
%struct.s2n_atomic_flag = type { i32 }
%struct.s2n_cipher_preferences = type { i16, ptr, i8 }
%struct.s2n_cipher_suite = type { i8, ptr, ptr, [2 x i8], ptr, i32, ptr, [2 x ptr], i8, ptr, ptr, i32, i8 }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.53 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [93 x i8], align 1
@__const.s2n_client_hello_send.renegotiation_info_scsv = external hidden unnamed_addr constant [2 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [93 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strrchr(ptr noundef, i32 noundef) #1

declare i32 @s2n_calculate_stacktrace() #2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare zeroext i1 @s2n_is_hello_retry_handshake(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) #6

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

declare zeroext i1 @s2n_connection_supports_tls13(ptr noundef) #2

declare zeroext i1 @s2n_security_policy_supports_tls13(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_client_hello_send(ptr noundef %0) #7 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [2 x i8], align 1
  %9 = alloca i8, align 1
  %10 = alloca %struct.s2n_blob, align 8
  %11 = alloca %struct.s2n_result, align 4
  %12 = alloca %struct.s2n_result, align 4
  %13 = alloca %struct.s2n_stuffer_reservation, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca i64, align 8
  %17 = alloca %struct.s2n_result, align 4
  %18 = alloca [2 x i8], align 1
  %19 = alloca i32, align 4
  %20 = alloca %struct.s2n_result, align 4
  %21 = alloca %struct.s2n_result, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %1
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %56, label %25

25:                                               ; preds = %22
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  %28 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %29 = getelementptr inbounds %struct.s2n_debug_info, ptr %28, i32 0, i32 0
  store ptr @.str.53, ptr %29, align 8, !tbaa !9
  %30 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %31 = getelementptr inbounds %struct.s2n_debug_info, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds i8, ptr %32, i64 21
  %34 = call ptr @strrchr(ptr noundef %33, i32 noundef 47) #8
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %43

36:                                               ; preds = %27
  %37 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %38 = getelementptr inbounds %struct.s2n_debug_info, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %39, i64 21
  %41 = call ptr @strrchr(ptr noundef %40, i32 noundef 47) #8
  %42 = getelementptr inbounds i8, ptr %41, i64 1
  br label %48

43:                                               ; preds = %27
  %44 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %45 = getelementptr inbounds %struct.s2n_debug_info, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %46, i64 21
  br label %48

48:                                               ; preds = %43, %36
  %49 = phi ptr [ %42, %36 ], [ %47, %43 ]
  %50 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %51 = getelementptr inbounds %struct.s2n_debug_info, ptr %50, i32 0, i32 1
  store ptr %49, ptr %51, align 8, !tbaa !11
  %52 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %52, align 4, !tbaa !12
  %53 = call i32 @s2n_calculate_stacktrace()
  br label %54

54:                                               ; preds = %48
  store i32 -1, ptr %2, align 4
  br label %454

55:                                               ; No predecessors!
  br label %56

56:                                               ; preds = %55, %22
  br label %57

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  store ptr null, ptr %4, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = call i32 @s2n_connection_get_security_policy(ptr noundef %59, ptr noundef %4)
  %61 = icmp sgt i32 %60, -1
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %453

63:                                               ; preds = %58
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.s2n_security_policy, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !14
  store ptr %68, ptr %6, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %105, label %72

72:                                               ; preds = %69
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  %75 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %76 = getelementptr inbounds %struct.s2n_debug_info, ptr %75, i32 0, i32 0
  store ptr @.str.54, ptr %76, align 8, !tbaa !9
  %77 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %78 = getelementptr inbounds %struct.s2n_debug_info, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %79, i64 21
  %81 = call ptr @strrchr(ptr noundef %80, i32 noundef 47) #8
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %90

83:                                               ; preds = %74
  %84 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %85 = getelementptr inbounds %struct.s2n_debug_info, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds i8, ptr %86, i64 21
  %88 = call ptr @strrchr(ptr noundef %87, i32 noundef 47) #8
  %89 = getelementptr inbounds i8, ptr %88, i64 1
  br label %95

90:                                               ; preds = %74
  %91 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %92 = getelementptr inbounds %struct.s2n_debug_info, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %93, i64 21
  br label %95

95:                                               ; preds = %90, %83
  %96 = phi ptr [ %89, %83 ], [ %94, %90 ]
  %97 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %98 = getelementptr inbounds %struct.s2n_debug_info, ptr %97, i32 0, i32 1
  store ptr %96, ptr %98, align 8, !tbaa !11
  %99 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %99, align 4, !tbaa !12
  %100 = call i32 @s2n_calculate_stacktrace()
  br label %101

101:                                              ; preds = %95
  br label %102

102:                                              ; preds = %101
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %452

103:                                              ; No predecessors!
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104, %69
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = call zeroext i1 @s2n_connection_supports_tls13(ptr noundef %108)
  br i1 %109, label %110, label %113

110:                                              ; preds = %107
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = call zeroext i1 @s2n_security_policy_supports_tls13(ptr noundef %111)
  br i1 %112, label %146, label %113

113:                                              ; preds = %110, %107
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.s2n_connection, ptr %114, i32 0, i32 21
  %116 = load i8, ptr %115, align 2, !tbaa !17
  %117 = zext i8 %116 to i32
  %118 = icmp slt i32 %117, 33
  br i1 %118, label %119, label %124

119:                                              ; preds = %113
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.s2n_connection, ptr %120, i32 0, i32 21
  %122 = load i8, ptr %121, align 2, !tbaa !17
  %123 = zext i8 %122 to i32
  br label %125

124:                                              ; preds = %113
  br label %125

125:                                              ; preds = %124, %119
  %126 = phi i32 [ %123, %119 ], [ 33, %124 ]
  %127 = trunc i32 %126 to i8
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.s2n_connection, ptr %128, i32 0, i32 21
  store i8 %127, ptr %129, align 2, !tbaa !17
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.s2n_connection, ptr %130, i32 0, i32 23
  %132 = load i8, ptr %131, align 4, !tbaa !44
  %133 = zext i8 %132 to i32
  %134 = icmp slt i32 %133, 33
  br i1 %134, label %135, label %140

135:                                              ; preds = %125
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.s2n_connection, ptr %136, i32 0, i32 23
  %138 = load i8, ptr %137, align 4, !tbaa !44
  %139 = zext i8 %138 to i32
  br label %141

140:                                              ; preds = %125
  br label %141

141:                                              ; preds = %140, %135
  %142 = phi i32 [ %139, %135 ], [ 33, %140 ]
  %143 = trunc i32 %142 to i8
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.s2n_connection, ptr %144, i32 0, i32 23
  store i8 %143, ptr %145, align 4, !tbaa !44
  br label %146

146:                                              ; preds = %141, %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.s2n_connection, ptr %147, i32 0, i32 52
  %149 = getelementptr inbounds %struct.s2n_handshake, ptr %148, i32 0, i32 0
  store ptr %149, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #9
  call void @llvm.memset.p0.i64(ptr align 1 %8, i8 0, i64 2, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #9
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.s2n_connection, ptr %150, i32 0, i32 21
  %152 = load i8, ptr %151, align 2, !tbaa !17
  %153 = zext i8 %152 to i32
  %154 = icmp slt i32 %153, 33
  br i1 %154, label %155, label %160

155:                                              ; preds = %146
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.s2n_connection, ptr %156, i32 0, i32 21
  %158 = load i8, ptr %157, align 2, !tbaa !17
  %159 = zext i8 %158 to i32
  br label %161

160:                                              ; preds = %146
  br label %161

161:                                              ; preds = %160, %155
  %162 = phi i32 [ %159, %155 ], [ 33, %160 ]
  %163 = trunc i32 %162 to i8
  store i8 %163, ptr %9, align 1, !tbaa !45
  %164 = load i8, ptr %9, align 1, !tbaa !45
  %165 = zext i8 %164 to i32
  %166 = sdiv i32 %165, 10
  %167 = trunc i32 %166 to i8
  %168 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
  store i8 %167, ptr %168, align 1, !tbaa !45
  %169 = load i8, ptr %9, align 1, !tbaa !45
  %170 = zext i8 %169 to i32
  %171 = srem i32 %170, 10
  %172 = trunc i32 %171 to i8
  %173 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 1
  store i8 %172, ptr %173, align 1, !tbaa !45
  %174 = load i8, ptr %9, align 1, !tbaa !45
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.s2n_connection, ptr %175, i32 0, i32 20
  store i8 %174, ptr %176, align 1, !tbaa !46
  br label %177

177:                                              ; preds = %161
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
  %180 = call i32 @s2n_stuffer_write_bytes(ptr noundef %178, ptr noundef %179, i32 noundef 2)
  %181 = icmp sgt i32 %180, -1
  br i1 %181, label %183, label %182

182:                                              ; preds = %177
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %451

183:                                              ; preds = %177
  br label %184

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #9
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 24, i1 false)
  br label %186

186:                                              ; preds = %185
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.s2n_connection, ptr %187, i32 0, i32 32
  %189 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %188, i32 0, i32 12
  %190 = getelementptr inbounds [32 x i8], ptr %189, i64 0, i64 0
  %191 = call i32 @s2n_blob_init(ptr noundef %10, ptr noundef %190, i32 noundef 32)
  %192 = icmp sgt i32 %191, -1
  br i1 %192, label %194, label %193

193:                                              ; preds = %186
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %450

194:                                              ; preds = %186
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = call zeroext i1 @s2n_is_hello_retry_handshake(ptr noundef %197)
  br i1 %198, label %210, label %199

199:                                              ; preds = %196
  br label %200

200:                                              ; preds = %199
  %201 = call i32 @s2n_get_public_random_data(ptr noundef %10)
  %202 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  store i32 %201, ptr %202, align 4
  %203 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  %204 = load i32, ptr %203, align 4
  %205 = call zeroext i1 @s2n_result_is_ok(i32 %204)
  br i1 %205, label %207, label %206

206:                                              ; preds = %200
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %450

207:                                              ; preds = %200
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209, %196
  br label %211

211:                                              ; preds = %210
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = call i32 @s2n_stuffer_write(ptr noundef %212, ptr noundef %10)
  %214 = icmp sgt i32 %213, -1
  br i1 %214, label %216, label %215

215:                                              ; preds = %211
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %450

216:                                              ; preds = %211
  br label %217

217:                                              ; preds = %216
  br label %218

218:                                              ; preds = %217
  br label %219

219:                                              ; preds = %218
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = call i32 @s2n_generate_client_session_id(ptr noundef %220)
  %222 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  store i32 %221, ptr %222, align 4
  %223 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  %224 = load i32, ptr %223, align 4
  %225 = call zeroext i1 @s2n_result_is_ok(i32 %224)
  br i1 %225, label %227, label %226

226:                                              ; preds = %219
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %450

227:                                              ; preds = %219
  br label %228

228:                                              ; preds = %227
  br label %229

229:                                              ; preds = %228
  br label %230

230:                                              ; preds = %229
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.s2n_connection, ptr %232, i32 0, i32 19
  %234 = load i8, ptr %233, align 8, !tbaa !47
  %235 = call i32 @s2n_stuffer_write_uint8(ptr noundef %231, i8 noundef zeroext %234)
  %236 = icmp sgt i32 %235, -1
  br i1 %236, label %238, label %237

237:                                              ; preds = %230
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %450

238:                                              ; preds = %230
  br label %239

239:                                              ; preds = %238
  br label %240

240:                                              ; preds = %239
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.s2n_connection, ptr %241, i32 0, i32 19
  %243 = load i8, ptr %242, align 8, !tbaa !47
  %244 = zext i8 %243 to i32
  %245 = icmp sgt i32 %244, 0
  br i1 %245, label %246, label %262

246:                                              ; preds = %240
  br label %247

247:                                              ; preds = %246
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.s2n_connection, ptr %249, i32 0, i32 18
  %251 = getelementptr inbounds [32 x i8], ptr %250, i64 0, i64 0
  %252 = load ptr, ptr %3, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.s2n_connection, ptr %252, i32 0, i32 19
  %254 = load i8, ptr %253, align 8, !tbaa !47
  %255 = zext i8 %254 to i32
  %256 = call i32 @s2n_stuffer_write_bytes(ptr noundef %248, ptr noundef %251, i32 noundef %255)
  %257 = icmp sgt i32 %256, -1
  br i1 %257, label %259, label %258

258:                                              ; preds = %247
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %450

259:                                              ; preds = %247
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261, %240
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  br label %263

263:                                              ; preds = %262
  %264 = load ptr, ptr %7, align 8, !tbaa !5
  %265 = call i32 @s2n_stuffer_reserve_uint16(ptr noundef %264, ptr noundef %13)
  %266 = icmp sgt i32 %265, -1
  br i1 %266, label %268, label %267

267:                                              ; preds = %263
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %449

268:                                              ; preds = %263
  br label %269

269:                                              ; preds = %268
  br label %270

270:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #9
  store i8 0, ptr %15, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  store i64 0, ptr %16, align 8, !tbaa !49
  br label %271

271:                                              ; preds = %315, %270
  %272 = load i64, ptr %16, align 8, !tbaa !49
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.s2n_security_policy, ptr %273, i32 0, i32 1
  %275 = load ptr, ptr %274, align 8, !tbaa !14
  %276 = getelementptr inbounds %struct.s2n_cipher_preferences, ptr %275, i32 0, i32 0
  %277 = load i16, ptr %276, align 8, !tbaa !50
  %278 = zext i16 %277 to i64
  %279 = icmp ult i64 %272, %278
  br i1 %279, label %281, label %280

280:                                              ; preds = %271
  store i32 32, ptr %5, align 4
  br label %318

281:                                              ; preds = %271
  %282 = load ptr, ptr %6, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.s2n_cipher_preferences, ptr %282, i32 0, i32 1
  %284 = load ptr, ptr %283, align 8, !tbaa !52
  %285 = load i64, ptr %16, align 8, !tbaa !49
  %286 = getelementptr inbounds ptr, ptr %284, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  store ptr %287, ptr %14, align 8, !tbaa !5
  %288 = load ptr, ptr %3, align 8, !tbaa !5
  %289 = load ptr, ptr %14, align 8, !tbaa !5
  %290 = call i32 @s2n_cipher_suite_validate_available(ptr noundef %288, ptr noundef %289)
  %291 = getelementptr inbounds %struct.s2n_result, ptr %17, i32 0, i32 0
  store i32 %290, ptr %291, align 4
  %292 = getelementptr inbounds %struct.s2n_result, ptr %17, i32 0, i32 0
  %293 = load i32, ptr %292, align 4
  %294 = call zeroext i1 @s2n_result_is_error(i32 %293)
  br i1 %294, label %295, label %296

295:                                              ; preds = %281
  br label %315

296:                                              ; preds = %281
  %297 = load ptr, ptr %14, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %297, i32 0, i32 12
  %299 = load i8, ptr %298, align 4, !tbaa !53
  %300 = zext i8 %299 to i32
  %301 = icmp slt i32 %300, 34
  br i1 %301, label %302, label %303

302:                                              ; preds = %296
  store i8 1, ptr %15, align 1, !tbaa !48
  br label %303

303:                                              ; preds = %302, %296
  br label %304

304:                                              ; preds = %303
  %305 = load ptr, ptr %7, align 8, !tbaa !5
  %306 = load ptr, ptr %14, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %306, i32 0, i32 3
  %308 = getelementptr inbounds [2 x i8], ptr %307, i64 0, i64 0
  %309 = call i32 @s2n_stuffer_write_bytes(ptr noundef %305, ptr noundef %308, i32 noundef 2)
  %310 = icmp sgt i32 %309, -1
  br i1 %310, label %312, label %311

311:                                              ; preds = %304
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %318

312:                                              ; preds = %304
  br label %313

313:                                              ; preds = %312
  br label %314

314:                                              ; preds = %313
  br label %315

315:                                              ; preds = %314, %295
  %316 = load i64, ptr %16, align 8, !tbaa !49
  %317 = add i64 %316, 1
  store i64 %317, ptr %16, align 8, !tbaa !49
  br label %271, !llvm.loop !55

318:                                              ; preds = %311, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  %319 = load i32, ptr %5, align 4
  switch i32 %319, label %448 [
    i32 32, label %320
  ]

320:                                              ; preds = %318
  %321 = load i8, ptr %15, align 1, !tbaa !48, !range !57, !noundef !58
  %322 = trunc i8 %321 to i1
  br i1 %322, label %323, label %339

323:                                              ; preds = %320
  %324 = load ptr, ptr %3, align 8, !tbaa !5
  %325 = call zeroext i1 @s2n_handshake_is_renegotiation(ptr noundef %324)
  br i1 %325, label %339, label %326

326:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %18, ptr align 1 @__const.s2n_client_hello_send.renegotiation_info_scsv, i64 2, i1 false)
  br label %327

327:                                              ; preds = %326
  %328 = load ptr, ptr %7, align 8, !tbaa !5
  %329 = getelementptr inbounds [2 x i8], ptr %18, i64 0, i64 0
  %330 = call i32 @s2n_stuffer_write_bytes(ptr noundef %328, ptr noundef %329, i32 noundef 2)
  %331 = icmp sgt i32 %330, -1
  br i1 %331, label %333, label %332

332:                                              ; preds = %327
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %336

333:                                              ; preds = %327
  br label %334

334:                                              ; preds = %333
  br label %335

335:                                              ; preds = %334
  store i32 0, ptr %5, align 4
  br label %336

336:                                              ; preds = %335, %332
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #9
  %337 = load i32, ptr %5, align 4
  switch i32 %337, label %448 [
    i32 0, label %338
  ]

338:                                              ; preds = %336
  br label %339

339:                                              ; preds = %338, %323, %320
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !12
  br label %340

340:                                              ; preds = %339
  %341 = call i32 @s2n_stuffer_get_vector_size(ptr noundef %13, ptr noundef %19)
  %342 = icmp sgt i32 %341, -1
  br i1 %342, label %344, label %343

343:                                              ; preds = %340
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %447

344:                                              ; preds = %340
  br label %345

345:                                              ; preds = %344
  br label %346

346:                                              ; preds = %345
  br label %347

347:                                              ; preds = %346
  %348 = load i32, ptr %19, align 4, !tbaa !12
  %349 = icmp ugt i32 %348, 0
  br i1 %349, label %383, label %350

350:                                              ; preds = %347
  br label %351

351:                                              ; preds = %350
  br label %352

352:                                              ; preds = %351
  %353 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %354 = getelementptr inbounds %struct.s2n_debug_info, ptr %353, i32 0, i32 0
  store ptr @.str.55, ptr %354, align 8, !tbaa !9
  %355 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %356 = getelementptr inbounds %struct.s2n_debug_info, ptr %355, i32 0, i32 0
  %357 = load ptr, ptr %356, align 8, !tbaa !9
  %358 = getelementptr inbounds i8, ptr %357, i64 21
  %359 = call ptr @strrchr(ptr noundef %358, i32 noundef 47) #8
  %360 = icmp ne ptr %359, null
  br i1 %360, label %361, label %368

361:                                              ; preds = %352
  %362 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %363 = getelementptr inbounds %struct.s2n_debug_info, ptr %362, i32 0, i32 0
  %364 = load ptr, ptr %363, align 8, !tbaa !9
  %365 = getelementptr inbounds i8, ptr %364, i64 21
  %366 = call ptr @strrchr(ptr noundef %365, i32 noundef 47) #8
  %367 = getelementptr inbounds i8, ptr %366, i64 1
  br label %373

368:                                              ; preds = %352
  %369 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %370 = getelementptr inbounds %struct.s2n_debug_info, ptr %369, i32 0, i32 0
  %371 = load ptr, ptr %370, align 8, !tbaa !9
  %372 = getelementptr inbounds i8, ptr %371, i64 21
  br label %373

373:                                              ; preds = %368, %361
  %374 = phi ptr [ %367, %361 ], [ %372, %368 ]
  %375 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %376 = getelementptr inbounds %struct.s2n_debug_info, ptr %375, i32 0, i32 1
  store ptr %374, ptr %376, align 8, !tbaa !11
  %377 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762066, ptr %377, align 4, !tbaa !12
  %378 = call i32 @s2n_calculate_stacktrace()
  br label %379

379:                                              ; preds = %373
  br label %380

380:                                              ; preds = %379
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %447

381:                                              ; No predecessors!
  br label %382

382:                                              ; preds = %381
  br label %383

383:                                              ; preds = %382, %347
  br label %384

384:                                              ; preds = %383
  br label %385

385:                                              ; preds = %384
  br label %386

386:                                              ; preds = %385
  %387 = load i32, ptr %19, align 4, !tbaa !12
  %388 = call i32 @s2n_stuffer_write_reservation(ptr noundef %13, i32 noundef %387)
  %389 = icmp sgt i32 %388, -1
  br i1 %389, label %391, label %390

390:                                              ; preds = %386
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %447

391:                                              ; preds = %386
  br label %392

392:                                              ; preds = %391
  br label %393

393:                                              ; preds = %392
  br label %394

394:                                              ; preds = %393
  %395 = load ptr, ptr %7, align 8, !tbaa !5
  %396 = call i32 @s2n_stuffer_write_uint8(ptr noundef %395, i8 noundef zeroext 1)
  %397 = icmp sgt i32 %396, -1
  br i1 %397, label %399, label %398

398:                                              ; preds = %394
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %447

399:                                              ; preds = %394
  br label %400

400:                                              ; preds = %399
  br label %401

401:                                              ; preds = %400
  br label %402

402:                                              ; preds = %401
  %403 = load ptr, ptr %7, align 8, !tbaa !5
  %404 = call i32 @s2n_stuffer_write_uint8(ptr noundef %403, i8 noundef zeroext 0)
  %405 = icmp sgt i32 %404, -1
  br i1 %405, label %407, label %406

406:                                              ; preds = %402
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %447

407:                                              ; preds = %402
  br label %408

408:                                              ; preds = %407
  br label %409

409:                                              ; preds = %408
  br label %410

410:                                              ; preds = %409
  %411 = load ptr, ptr %3, align 8, !tbaa !5
  %412 = load ptr, ptr %7, align 8, !tbaa !5
  %413 = call i32 @s2n_extension_list_send(i32 noundef 0, ptr noundef %411, ptr noundef %412)
  %414 = icmp sgt i32 %413, -1
  br i1 %414, label %416, label %415

415:                                              ; preds = %410
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %447

416:                                              ; preds = %410
  br label %417

417:                                              ; preds = %416
  br label %418

418:                                              ; preds = %417
  br label %419

419:                                              ; preds = %418
  %420 = load ptr, ptr %3, align 8, !tbaa !5
  %421 = call i32 @s2n_finish_psk_extension(ptr noundef %420)
  %422 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  store i32 %421, ptr %422, align 4
  %423 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  %424 = load i32, ptr %423, align 4
  %425 = call zeroext i1 @s2n_result_is_ok(i32 %424)
  br i1 %425, label %427, label %426

426:                                              ; preds = %419
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %447

427:                                              ; preds = %419
  br label %428

428:                                              ; preds = %427
  br label %429

429:                                              ; preds = %428
  %430 = load ptr, ptr %3, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.s2n_connection, ptr %430, i32 0, i32 89
  %432 = load i32, ptr %431, align 8, !tbaa !59
  %433 = icmp eq i32 %432, 0
  br i1 %433, label %434, label %446

434:                                              ; preds = %429
  br label %435

435:                                              ; preds = %434
  %436 = load ptr, ptr %3, align 8, !tbaa !5
  %437 = call i32 @s2n_connection_set_early_data_state(ptr noundef %436, i32 noundef 2)
  %438 = getelementptr inbounds %struct.s2n_result, ptr %21, i32 0, i32 0
  store i32 %437, ptr %438, align 4
  %439 = getelementptr inbounds %struct.s2n_result, ptr %21, i32 0, i32 0
  %440 = load i32, ptr %439, align 4
  %441 = call zeroext i1 @s2n_result_is_ok(i32 %440)
  br i1 %441, label %443, label %442

442:                                              ; preds = %435
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %447

443:                                              ; preds = %435
  br label %444

444:                                              ; preds = %443
  br label %445

445:                                              ; preds = %444
  br label %446

446:                                              ; preds = %445, %429
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %447

447:                                              ; preds = %446, %442, %426, %415, %406, %398, %390, %380, %343
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %448

448:                                              ; preds = %447, %336, %318
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %449

449:                                              ; preds = %448, %267
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  br label %450

450:                                              ; preds = %449, %258, %237, %226, %215, %206, %193
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  br label %451

451:                                              ; preds = %450, %182
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %452

452:                                              ; preds = %451, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %453

453:                                              ; preds = %452, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  br label %454

454:                                              ; preds = %453, %54
  %455 = load i32, ptr %2, align 4
  ret i32 %455
}

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

declare i32 @s2n_get_public_random_data(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_generate_client_session_id(ptr noundef) #7

declare i32 @s2n_stuffer_write_uint8(ptr noundef, i8 noundef zeroext) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_error(i32) #6

declare zeroext i1 @s2n_handshake_is_renegotiation(ptr noundef) #2

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

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

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

declare i32 @s2n_finish_psk_extension(ptr noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nounwind willreturn memory(read) "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint 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 #7 = { 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 #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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, !6, i64 0}
!10 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!11 = !{!10, !6, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"s2n_security_policy", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !16, i64 56, !7, i64 57}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!18, !7, i64 218}
!18 = !{!"s2n_connection", !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 2, !13, i64 2, !13, i64 2, !13, i64 2, !13, i64 2, !13, i64 2, !13, i64 2, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !7, i64 80, !7, i64 102, !7, i64 124, !13, i64 148, !13, i64 152, !19, i64 160, !20, i64 168, !20, i64 176, !7, i64 184, !7, i64 216, !7, i64 217, !7, i64 218, !7, i64 219, !7, i64 220, !7, i64 221, !7, i64 222, !6, i64 224, !6, i64 232, !21, i64 240, !6, i64 632, !6, i64 640, !22, i64 648, !28, i64 1144, !31, i64 1688, !6, i64 1752, !7, i64 1760, !13, i64 1764, !7, i64 1768, !34, i64 1776, !34, i64 1816, !34, i64 1856, !34, i64 1896, !13, i64 1936, !20, i64 1944, !7, i64 1952, !34, i64 1960, !7, i64 2000, !7, i64 2001, !7, i64 2002, !16, i64 2003, !35, i64 2004, !35, i64 2008, !36, i64 2016, !33, i64 2208, !13, i64 2212, !33, i64 2216, !20, i64 2224, !7, i64 2232, !20, i64 2240, !20, i64 2248, !20, i64 2256, !35, i64 2264, !35, i64 2268, !7, i64 2272, !7, i64 2528, !13, i64 2784, !27, i64 2792, !13, i64 2816, !27, i64 2824, !27, i64 2848, !27, i64 2872, !38, i64 2896, !40, i64 3704, !6, i64 3760, !6, i64 3768, !7, i64 3776, !13, i64 3780, !27, i64 3784, !13, i64 3808, !42, i64 3816, !7, i64 3848, !34, i64 3992, !27, i64 4032, !27, i64 4056, !16, i64 4080, !16, i64 4081, !16, i64 4082, !33, i64 4084, !33, i64 4086, !13, i64 4088, !13, i64 4092, !27, i64 4096, !13, i64 4120, !43, i64 4128, !35, i64 4176, !7, i64 4180, !7, i64 4181}
!19 = !{!"s2n_timer", !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"s2n_secrets", !7, i64 0, !13, i64 388}
!22 = !{!"s2n_kex_parameters", !23, i64 0, !24, i64 8, !7, i64 24, !24, i64 56, !25, i64 72, !25, i64 184, !7, i64 296, !26, i64 360, !27, i64 448, !27, i64 472}
!23 = !{!"s2n_dh_params", !6, i64 0}
!24 = !{!"s2n_ecc_evp_params", !6, i64 0, !6, i64 8}
!25 = !{!"s2n_kem_group_params", !6, i64 0, !26, i64 8, !24, i64 96}
!26 = !{!"s2n_kem_params", !6, i64 0, !27, i64 8, !27, i64 32, !27, i64 56, !16, i64 80}
!27 = !{!"s2n_blob", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16}
!28 = !{!"s2n_handshake_parameters", !29, i64 0, !29, i64 48, !27, i64 96, !13, i64 120, !30, i64 124, !6, i64 384, !6, i64 392, !6, i64 400, !7, i64 408, !7, i64 440, !7, i64 472, !7, i64 473, !7, i64 474, !7, i64 506}
!29 = !{!"s2n_pkey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!30 = !{!"s2n_sig_scheme_list", !7, i64 0, !7, i64 256}
!31 = !{!"s2n_psk_parameters", !13, i64 0, !32, i64 8, !33, i64 40, !33, i64 42, !6, i64 48, !13, i64 56}
!32 = !{!"s2n_array", !27, i64 0, !13, i64 24, !13, i64 28}
!33 = !{!"short", !7, i64 0}
!34 = !{!"s2n_stuffer", !27, i64 0, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 36, !13, i64 36}
!35 = !{!"", !13, i64 0}
!36 = !{!"s2n_handshake", !34, i64 0, !6, i64 40, !7, i64 48, !7, i64 56, !7, i64 104, !7, i64 152, !13, i64 156, !13, i64 160, !13, i64 164, !13, i64 168, !37, i64 176, !13, i64 184, !13, i64 184, !13, i64 184, !13, i64 184, !13, i64 188}
!37 = !{!"s2n_offered_early_data", !6, i64 0}
!38 = !{!"s2n_client_hello", !27, i64 0, !39, i64 24, !27, i64 728, !27, i64 752, !27, i64 776, !7, i64 800, !7, i64 801, !13, i64 802, !13, i64 802, !13, i64 802, !13, i64 802, !13, i64 802, !13, i64 802, !13, i64 802}
!39 = !{!"", !7, i64 0, !27, i64 672, !33, i64 696}
!40 = !{!"s2n_x509_validator", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !33, i64 18, !6, i64 24, !13, i64 32, !6, i64 40, !41, i64 48, !16, i64 52}
!41 = !{!"s2n_cert_validation_info", !13, i64 0, !13, i64 0}
!42 = !{!"s2n_ticket_fields", !27, i64 0, !13, i64 24}
!43 = !{!"s2n_post_handshake", !34, i64 0, !7, i64 40}
!44 = !{!18, !7, i64 220}
!45 = !{!7, !7, i64 0}
!46 = !{!18, !7, i64 217}
!47 = !{!18, !7, i64 216}
!48 = !{!16, !16, i64 0}
!49 = !{!20, !20, i64 0}
!50 = !{!51, !33, i64 0}
!51 = !{!"s2n_cipher_preferences", !33, i64 0, !6, i64 8, !16, i64 16}
!52 = !{!51, !6, i64 8}
!53 = !{!54, !7, i64 100}
!54 = !{!"s2n_cipher_suite", !13, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !6, i64 32, !13, i64 40, !6, i64 48, !7, i64 56, !7, i64 72, !6, i64 80, !6, i64 88, !13, i64 96, !7, i64 100}
!55 = distinct !{!55, !56}
!56 = !{!"llvm.loop.mustprogress"}
!57 = !{i8 0, i8 2}
!58 = !{}
!59 = !{!18, !13, i64 4088}


; 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"

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.s2n_stuffer_reservation = type { ptr, i32, i8 }

@_s2n_debug_info = external thread_local local_unnamed_addr global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.53 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [93 x i8], align 1
@__const.s2n_client_hello_send.renegotiation_info_scsv = external hidden unnamed_addr constant [2 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [93 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strrchr(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

declare zeroext i1 @s2n_is_hello_retry_handshake(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) local_unnamed_addr #5

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

declare zeroext i1 @s2n_connection_supports_tls13(ptr noundef) local_unnamed_addr #2

declare zeroext i1 @s2n_security_policy_supports_tls13(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_client_hello_send(ptr noundef %0) local_unnamed_addr #6 {
  %2 = alloca ptr, align 8
  %3 = alloca [2 x i8], align 1
  %4 = alloca %struct.s2n_blob, align 8
  %5 = alloca %struct.s2n_stuffer_reservation, align 8
  %6 = alloca [2 x i8], align 2
  %7 = alloca i32, align 4
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %8, label %16

8:                                                ; preds = %1
  %9 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.53, ptr %9, align 8, !tbaa !5
  %10 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.53, i64 21), i32 noundef 47) #8
  %.not71 = icmp eq ptr %10, null
  %11 = getelementptr inbounds i8, ptr %10, i64 1
  %12 = select i1 %.not71, ptr getelementptr inbounds (i8, ptr @.str.53, i64 21), ptr %11
  %13 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %12, ptr %13, align 8, !tbaa !10
  %14 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %14, align 4, !tbaa !11
  %15 = tail call i32 @s2n_calculate_stacktrace() #9
  br label %151

16:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store ptr null, ptr %2, align 8, !tbaa !13
  %17 = call i32 @s2n_connection_get_security_policy(ptr noundef nonnull %0, ptr noundef nonnull %2) #9
  %18 = icmp sgt i32 %17, -1
  br i1 %18, label %19, label %150

19:                                               ; preds = %16
  %20 = load ptr, ptr %2, align 8, !tbaa !13
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  %.not72 = icmp eq ptr %22, null
  br i1 %.not72, label %23, label %31

23:                                               ; preds = %19
  %24 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.54, ptr %24, align 8, !tbaa !5
  %25 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.54, i64 21), i32 noundef 47) #8
  %.not73 = icmp eq ptr %25, null
  %26 = getelementptr inbounds i8, ptr %25, i64 1
  %27 = select i1 %.not73, ptr getelementptr inbounds (i8, ptr @.str.54, i64 21), ptr %26
  %28 = getelementptr inbounds i8, ptr %24, i64 8
  store ptr %27, ptr %28, align 8, !tbaa !10
  %29 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %29, align 4, !tbaa !11
  %30 = call i32 @s2n_calculate_stacktrace() #9
  br label %150

31:                                               ; preds = %19
  %32 = call zeroext i1 @s2n_connection_supports_tls13(ptr noundef nonnull %0) #9
  br i1 %32, label %33, label %36

33:                                               ; preds = %31
  %34 = load ptr, ptr %2, align 8, !tbaa !13
  %35 = call zeroext i1 @s2n_security_policy_supports_tls13(ptr noundef %34) #9
  br i1 %35, label %._crit_edge85, label %36

._crit_edge85:                                    ; preds = %33
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 218
  %.pre = load i8, ptr %.phi.trans.insert, align 2, !tbaa !17
  br label %42

36:                                               ; preds = %33, %31
  %37 = getelementptr inbounds i8, ptr %0, i64 218
  %38 = load i8, ptr %37, align 2, !tbaa !17
  %spec.select = call i8 @llvm.umin.i8(i8 %38, i8 33)
  store i8 %spec.select, ptr %37, align 2, !tbaa !17
  %39 = getelementptr inbounds i8, ptr %0, i64 220
  %40 = load i8, ptr %39, align 4, !tbaa !44
  %41 = call i8 @llvm.umin.i8(i8 %40, i8 33)
  store i8 %41, ptr %39, align 4, !tbaa !44
  br label %42

42:                                               ; preds = %._crit_edge85, %36
  %43 = phi i8 [ %.pre, %._crit_edge85 ], [ %spec.select, %36 ]
  %44 = getelementptr inbounds i8, ptr %0, i64 2016
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %3) #9
  %spec.select78 = call i8 @llvm.umin.i8(i8 %43, i8 33)
  %45 = udiv i8 %spec.select78, 10
  store i8 %45, ptr %3, align 1, !tbaa !45
  %46 = urem i8 %spec.select78, 10
  %47 = getelementptr inbounds i8, ptr %3, i64 1
  store i8 %46, ptr %47, align 1, !tbaa !45
  %48 = getelementptr inbounds i8, ptr %0, i64 217
  store i8 %spec.select78, ptr %48, align 1, !tbaa !46
  %49 = call i32 @s2n_stuffer_write_bytes(ptr noundef nonnull %44, ptr noundef nonnull %3, i32 noundef 2) #9
  %50 = icmp sgt i32 %49, -1
  br i1 %50, label %51, label %149

51:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, i8 0, i64 24, i1 false)
  %52 = getelementptr inbounds i8, ptr %0, i64 1618
  %53 = call i32 @s2n_blob_init(ptr noundef nonnull %4, ptr noundef nonnull %52, i32 noundef 32) #9
  %54 = icmp sgt i32 %53, -1
  br i1 %54, label %55, label %148

55:                                               ; preds = %51
  %56 = call zeroext i1 @s2n_is_hello_retry_handshake(ptr noundef nonnull %0) #9
  br i1 %56, label %60, label %57

57:                                               ; preds = %55
  %58 = call i32 @s2n_get_public_random_data(ptr noundef nonnull %4) #9
  %59 = call zeroext i1 @s2n_result_is_ok(i32 %58)
  br i1 %59, label %60, label %148

60:                                               ; preds = %55, %57
  %61 = call i32 @s2n_stuffer_write(ptr noundef nonnull %44, ptr noundef nonnull %4) #9
  %62 = icmp sgt i32 %61, -1
  br i1 %62, label %63, label %148

63:                                               ; preds = %60
  %64 = call i32 @s2n_generate_client_session_id(ptr noundef nonnull %0)
  %65 = call zeroext i1 @s2n_result_is_ok(i32 %64)
  br i1 %65, label %66, label %148

66:                                               ; preds = %63
  %67 = getelementptr inbounds i8, ptr %0, i64 216
  %68 = load i8, ptr %67, align 8, !tbaa !47
  %69 = call i32 @s2n_stuffer_write_uint8(ptr noundef nonnull %44, i8 noundef zeroext %68) #9
  %70 = icmp sgt i32 %69, -1
  br i1 %70, label %71, label %148

71:                                               ; preds = %66
  %72 = load i8, ptr %67, align 8, !tbaa !47
  %.not74 = icmp eq i8 %72, 0
  br i1 %.not74, label %78, label %73

73:                                               ; preds = %71
  %74 = zext i8 %72 to i32
  %75 = getelementptr inbounds i8, ptr %0, i64 184
  %76 = call i32 @s2n_stuffer_write_bytes(ptr noundef nonnull %44, ptr noundef nonnull %75, i32 noundef %74) #9
  %77 = icmp sgt i32 %76, -1
  br i1 %77, label %78, label %148

78:                                               ; preds = %73, %71
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %79 = call i32 @s2n_stuffer_reserve_uint16(ptr noundef nonnull %44, ptr noundef nonnull %5) #9
  %80 = icmp sgt i32 %79, -1
  br i1 %80, label %.preheader, label %.thread

.preheader:                                       ; preds = %78
  %81 = load ptr, ptr %2, align 8, !tbaa !13
  %82 = getelementptr inbounds i8, ptr %81, i64 8
  %83 = load ptr, ptr %82, align 8, !tbaa !14
  %84 = load i16, ptr %83, align 8, !tbaa !48
  %.not7582.not = icmp eq i16 %84, 0
  br i1 %.not7582.not, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %85 = getelementptr inbounds i8, ptr %22, i64 8
  br label %86

86:                                               ; preds = %.lr.ph, %99
  %.05784 = phi i64 [ 0, %.lr.ph ], [ %100, %99 ]
  %.05883 = phi i1 [ false, %.lr.ph ], [ %.260, %99 ]
  %87 = load ptr, ptr %85, align 8, !tbaa !50
  %88 = getelementptr inbounds ptr, ptr %87, i64 %.05784
  %89 = load ptr, ptr %88, align 8, !tbaa !13
  %90 = call i32 @s2n_cipher_suite_validate_available(ptr noundef nonnull %0, ptr noundef %89)
  %91 = call zeroext i1 @s2n_result_is_error(i32 %90)
  br i1 %91, label %99, label %92

92:                                               ; preds = %86
  %93 = getelementptr inbounds i8, ptr %89, i64 100
  %94 = load i8, ptr %93, align 4, !tbaa !51
  %95 = icmp ult i8 %94, 34
  %spec.select79 = select i1 %95, i1 true, i1 %.05883
  %96 = getelementptr inbounds i8, ptr %89, i64 24
  %97 = call i32 @s2n_stuffer_write_bytes(ptr noundef nonnull %44, ptr noundef nonnull %96, i32 noundef 2) #9
  %98 = icmp sgt i32 %97, -1
  br i1 %98, label %99, label %.thread

99:                                               ; preds = %92, %86
  %.260 = phi i1 [ %.05883, %86 ], [ %spec.select79, %92 ]
  %100 = add nuw nsw i64 %.05784, 1
  %101 = load ptr, ptr %2, align 8, !tbaa !13
  %102 = getelementptr inbounds i8, ptr %101, i64 8
  %103 = load ptr, ptr %102, align 8, !tbaa !14
  %104 = load i16, ptr %103, align 8, !tbaa !48
  %105 = zext i16 %104 to i64
  %.not75 = icmp ult i64 %100, %105
  br i1 %.not75, label %86, label %._crit_edge, !llvm.loop !53

._crit_edge:                                      ; preds = %99
  br i1 %.260, label %106, label %.critedge

106:                                              ; preds = %._crit_edge
  %107 = call zeroext i1 @s2n_handshake_is_renegotiation(ptr noundef nonnull %0) #9
  br i1 %107, label %.critedge, label %108

108:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #9
  %109 = load i16, ptr @__const.s2n_client_hello_send.renegotiation_info_scsv, align 1
  store i16 %109, ptr %6, align 2
  %110 = call i32 @s2n_stuffer_write_bytes(ptr noundef nonnull %44, ptr noundef nonnull %6, i32 noundef 2) #9
  %111 = icmp sgt i32 %110, -1
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #9
  br i1 %111, label %.critedge, label %.thread

.critedge:                                        ; preds = %.preheader, %108, %106, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store i32 0, ptr %7, align 4, !tbaa !11
  %112 = call i32 @s2n_stuffer_get_vector_size(ptr noundef nonnull %5, ptr noundef nonnull %7) #9
  %113 = icmp sgt i32 %112, -1
  br i1 %113, label %114, label %147

114:                                              ; preds = %.critedge
  %115 = load i32, ptr %7, align 4, !tbaa !11
  %.not76 = icmp eq i32 %115, 0
  br i1 %.not76, label %116, label %124

116:                                              ; preds = %114
  %117 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.55, ptr %117, align 8, !tbaa !5
  %118 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.55, i64 21), i32 noundef 47) #8
  %.not77 = icmp eq ptr %118, null
  %119 = getelementptr inbounds i8, ptr %118, i64 1
  %120 = select i1 %.not77, ptr getelementptr inbounds (i8, ptr @.str.55, i64 21), ptr %119
  %121 = getelementptr inbounds i8, ptr %117, i64 8
  store ptr %120, ptr %121, align 8, !tbaa !10
  %122 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762066, ptr %122, align 4, !tbaa !11
  %123 = call i32 @s2n_calculate_stacktrace() #9
  br label %147

124:                                              ; preds = %114
  %125 = call i32 @s2n_stuffer_write_reservation(ptr noundef nonnull %5, i32 noundef %115) #9
  %126 = icmp sgt i32 %125, -1
  br i1 %126, label %127, label %147

127:                                              ; preds = %124
  %128 = call i32 @s2n_stuffer_write_uint8(ptr noundef nonnull %44, i8 noundef zeroext 1) #9
  %129 = icmp sgt i32 %128, -1
  br i1 %129, label %130, label %147

130:                                              ; preds = %127
  %131 = call i32 @s2n_stuffer_write_uint8(ptr noundef nonnull %44, i8 noundef zeroext 0) #9
  %132 = icmp sgt i32 %131, -1
  br i1 %132, label %133, label %147

133:                                              ; preds = %130
  %134 = call i32 @s2n_extension_list_send(i32 noundef 0, ptr noundef nonnull %0, ptr noundef nonnull %44) #9
  %135 = icmp sgt i32 %134, -1
  br i1 %135, label %136, label %147

136:                                              ; preds = %133
  %137 = call i32 @s2n_finish_psk_extension(ptr noundef nonnull %0) #9
  %138 = call zeroext i1 @s2n_result_is_ok(i32 %137)
  br i1 %138, label %139, label %147

139:                                              ; preds = %136
  %140 = getelementptr inbounds i8, ptr %0, i64 4088
  %141 = load i32, ptr %140, align 8, !tbaa !55
  %142 = icmp eq i32 %141, 0
  br i1 %142, label %143, label %146

143:                                              ; preds = %139
  %144 = call i32 @s2n_connection_set_early_data_state(ptr noundef nonnull %0, i32 noundef 2) #9
  %145 = call zeroext i1 @s2n_result_is_ok(i32 %144)
  br i1 %145, label %146, label %147

146:                                              ; preds = %143, %139
  br label %147

147:                                              ; preds = %143, %136, %133, %130, %127, %124, %.critedge, %146, %116
  %.2 = phi i32 [ 0, %146 ], [ -1, %116 ], [ -1, %.critedge ], [ -1, %124 ], [ -1, %127 ], [ -1, %130 ], [ -1, %133 ], [ -1, %136 ], [ -1, %143 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %.thread

.thread:                                          ; preds = %92, %147, %108, %78
  %.4 = phi i32 [ -1, %78 ], [ %.2, %147 ], [ -1, %108 ], [ -1, %92 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  br label %148

148:                                              ; preds = %73, %66, %63, %60, %57, %51, %.thread
  %.5 = phi i32 [ %.4, %.thread ], [ -1, %51 ], [ -1, %57 ], [ -1, %60 ], [ -1, %63 ], [ -1, %66 ], [ -1, %73 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  br label %149

149:                                              ; preds = %42, %148
  %.6 = phi i32 [ %.5, %148 ], [ -1, %42 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %3) #9
  br label %150

150:                                              ; preds = %23, %149, %16
  %.8 = phi i32 [ -1, %16 ], [ %.6, %149 ], [ -1, %23 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  br label %151

151:                                              ; preds = %150, %8
  %.9 = phi i32 [ %.8, %150 ], [ -1, %8 ]
  ret i32 %.9
}

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

declare i32 @s2n_get_public_random_data(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_generate_client_session_id(ptr noundef) local_unnamed_addr #6

declare i32 @s2n_stuffer_write_uint8(ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_error(i32) local_unnamed_addr #5

declare zeroext i1 @s2n_handshake_is_renegotiation(ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @s2n_finish_psk_extension(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.umin.i8(i8, i8) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint 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 #6 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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, !7, i64 0}
!6 = !{!"s2n_debug_info", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 8}
!15 = !{!"s2n_security_policy", !8, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !16, i64 56, !8, i64 57}
!16 = !{!"_Bool", !8, i64 0}
!17 = !{!18, !8, i64 218}
!18 = !{!"s2n_connection", !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !8, i64 80, !8, i64 102, !8, i64 124, !12, i64 148, !12, i64 152, !19, i64 160, !20, i64 168, !20, i64 176, !8, i64 184, !8, i64 216, !8, i64 217, !8, i64 218, !8, i64 219, !8, i64 220, !8, i64 221, !8, i64 222, !7, i64 224, !7, i64 232, !21, i64 240, !7, i64 632, !7, i64 640, !22, i64 648, !28, i64 1144, !31, i64 1688, !7, i64 1752, !8, i64 1760, !12, i64 1764, !8, i64 1768, !34, i64 1776, !34, i64 1816, !34, i64 1856, !34, i64 1896, !12, i64 1936, !20, i64 1944, !8, i64 1952, !34, i64 1960, !8, i64 2000, !8, i64 2001, !8, i64 2002, !16, i64 2003, !35, i64 2004, !35, i64 2008, !36, i64 2016, !33, i64 2208, !12, i64 2212, !33, i64 2216, !20, i64 2224, !8, i64 2232, !20, i64 2240, !20, i64 2248, !20, i64 2256, !35, i64 2264, !35, i64 2268, !8, i64 2272, !8, i64 2528, !12, i64 2784, !27, i64 2792, !12, i64 2816, !27, i64 2824, !27, i64 2848, !27, i64 2872, !38, i64 2896, !40, i64 3704, !7, i64 3760, !7, i64 3768, !8, i64 3776, !12, i64 3780, !27, i64 3784, !12, i64 3808, !42, i64 3816, !8, i64 3848, !34, i64 3992, !27, i64 4032, !27, i64 4056, !16, i64 4080, !16, i64 4081, !16, i64 4082, !33, i64 4084, !33, i64 4086, !12, i64 4088, !12, i64 4092, !27, i64 4096, !12, i64 4120, !43, i64 4128, !35, i64 4176, !8, i64 4180, !8, i64 4181}
!19 = !{!"s2n_timer", !20, i64 0}
!20 = !{!"long", !8, i64 0}
!21 = !{!"s2n_secrets", !8, i64 0, !12, i64 388}
!22 = !{!"s2n_kex_parameters", !23, i64 0, !24, i64 8, !8, i64 24, !24, i64 56, !25, i64 72, !25, i64 184, !8, i64 296, !26, i64 360, !27, i64 448, !27, i64 472}
!23 = !{!"s2n_dh_params", !7, i64 0}
!24 = !{!"s2n_ecc_evp_params", !7, i64 0, !7, i64 8}
!25 = !{!"s2n_kem_group_params", !7, i64 0, !26, i64 8, !24, i64 96}
!26 = !{!"s2n_kem_params", !7, i64 0, !27, i64 8, !27, i64 32, !27, i64 56, !16, i64 80}
!27 = !{!"s2n_blob", !7, i64 0, !12, i64 8, !12, i64 12, !12, i64 16}
!28 = !{!"s2n_handshake_parameters", !29, i64 0, !29, i64 48, !27, i64 96, !12, i64 120, !30, i64 124, !7, i64 384, !7, i64 392, !7, i64 400, !8, i64 408, !8, i64 440, !8, i64 472, !8, i64 473, !8, i64 474, !8, i64 506}
!29 = !{!"s2n_pkey", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!30 = !{!"s2n_sig_scheme_list", !8, i64 0, !8, i64 256}
!31 = !{!"s2n_psk_parameters", !12, i64 0, !32, i64 8, !33, i64 40, !33, i64 42, !7, i64 48, !12, i64 56}
!32 = !{!"s2n_array", !27, i64 0, !12, i64 24, !12, i64 28}
!33 = !{!"short", !8, i64 0}
!34 = !{!"s2n_stuffer", !27, i64 0, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 36, !12, i64 36}
!35 = !{!"", !12, i64 0}
!36 = !{!"s2n_handshake", !34, i64 0, !7, i64 40, !8, i64 48, !8, i64 56, !8, i64 104, !8, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !37, i64 176, !12, i64 184, !12, i64 184, !12, i64 184, !12, i64 184, !12, i64 188}
!37 = !{!"s2n_offered_early_data", !7, i64 0}
!38 = !{!"s2n_client_hello", !27, i64 0, !39, i64 24, !27, i64 728, !27, i64 752, !27, i64 776, !8, i64 800, !8, i64 801, !12, i64 802, !12, i64 802, !12, i64 802, !12, i64 802, !12, i64 802, !12, i64 802, !12, i64 802}
!39 = !{!"", !8, i64 0, !27, i64 672, !33, i64 696}
!40 = !{!"s2n_x509_validator", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 17, !33, i64 18, !7, i64 24, !12, i64 32, !7, i64 40, !41, i64 48, !16, i64 52}
!41 = !{!"s2n_cert_validation_info", !12, i64 0, !12, i64 0}
!42 = !{!"s2n_ticket_fields", !27, i64 0, !12, i64 24}
!43 = !{!"s2n_post_handshake", !34, i64 0, !8, i64 40}
!44 = !{!18, !8, i64 220}
!45 = !{!8, !8, i64 0}
!46 = !{!18, !8, i64 217}
!47 = !{!18, !8, i64 216}
!48 = !{!49, !33, i64 0}
!49 = !{!"s2n_cipher_preferences", !33, i64 0, !7, i64 8, !16, i64 16}
!50 = !{!49, !7, i64 8}
!51 = !{!52, !8, i64 100}
!52 = !{!"s2n_cipher_suite", !12, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !7, i64 32, !12, i64 40, !7, i64 48, !8, i64 56, !8, i64 72, !7, i64 80, !7, i64 88, !12, i64 96, !8, i64 100}
!53 = distinct !{!53, !54}
!54 = !{!"llvm.loop.mustprogress"}
!55 = !{!18, !12, i64 4088}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass