; LLVM IR from aws/s2n-tls :: tests/unit (s2n_client_auth_handshake_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_tls13_keys = type { i32, i32, i8, %struct.s2n_blob, %struct.s2n_blob, [48 x i8], [48 x i8], %struct.s2n_hmac_state }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.s2n_hmac_state = type { i32, i16, i32, i16, i8, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, [128 x i8], [64 x i8] }
%struct.s2n_hash_state = type { ptr, i32, i8, i64, %union.anon.0 }
%union.anon.0 = type { %struct.s2n_hash_evp_digest }
%struct.s2n_hash_evp_digest = type { %struct.s2n_evp_digest, %struct.s2n_evp_digest }
%struct.s2n_evp_digest = type { ptr, ptr }
%struct.s2n_result = type { i32 }
%struct.s2n_stuffer = type { %struct.s2n_blob, i32, i32, i32, 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_post_handshake = type { %struct.s2n_stuffer, [4 x i8] }
%struct.s2n_atomic_flag = type { i32 }
%struct.s2n_crypto_parameters = type { ptr, %struct.s2n_session_key, %struct.s2n_session_key, %struct.s2n_hmac_state, %struct.s2n_hmac_state, [16 x i8], [16 x i8], [8 x i8], [8 x i8] }
%struct.s2n_session_key = type { ptr }
%struct.s2n_cipher_suite = type { i8, ptr, ptr, [2 x i8], ptr, i32, ptr, [2 x ptr], i8, ptr, ptr, i32, i8 }
%struct.s2n_record_algorithm = type { ptr, i32, i32, i64 }
%struct.s2n_cipher = type { i32, %union.anon.1, i8, ptr, ptr, ptr, ptr, ptr, ptr }
%union.anon.1 = type { %struct.s2n_composite_cipher }
%struct.s2n_composite_cipher = type { i8, i8, i8, ptr, ptr, ptr, ptr }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.44 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [96 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

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

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

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

declare i32 @s2n_calculate_stacktrace() #2

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

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

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

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

26:                                               ; preds = %23
  br label %27

27:                                               ; preds = %26
  br label %28

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

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

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

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

55:                                               ; preds = %49
  store i32 -1, ptr %4, align 4
  br label %443

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56, %23
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.s2n_connection, ptr %60, i32 0, i32 27
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = icmp ne ptr %62, null
  br i1 %63, label %95, label %64

64:                                               ; preds = %59
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  %67 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %68 = getelementptr inbounds %struct.s2n_debug_info, ptr %67, i32 0, i32 0
  store ptr @.str.45, ptr %68, align 8, !tbaa !11
  %69 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %70 = getelementptr inbounds %struct.s2n_debug_info, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  %72 = getelementptr inbounds i8, ptr %71, i64 21
  %73 = call ptr @strrchr(ptr noundef %72, i32 noundef 47) #7
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %82

75:                                               ; preds = %66
  %76 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %77 = getelementptr inbounds %struct.s2n_debug_info, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = getelementptr inbounds i8, ptr %78, i64 21
  %80 = call ptr @strrchr(ptr noundef %79, i32 noundef 47) #7
  %81 = getelementptr inbounds i8, ptr %80, i64 1
  br label %87

82:                                               ; preds = %66
  %83 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %84 = getelementptr inbounds %struct.s2n_debug_info, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds i8, ptr %85, i64 21
  br label %87

87:                                               ; preds = %82, %75
  %88 = phi ptr [ %81, %75 ], [ %86, %82 ]
  %89 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %90 = getelementptr inbounds %struct.s2n_debug_info, ptr %89, i32 0, i32 1
  store ptr %88, ptr %90, align 8, !tbaa !13
  %91 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %91, align 4, !tbaa !9
  %92 = call i32 @s2n_calculate_stacktrace()
  br label %93

93:                                               ; preds = %87
  store i32 -1, ptr %4, align 4
  br label %443

94:                                               ; No predecessors!
  br label %95

95:                                               ; preds = %94, %59
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.s2n_connection, ptr %98, i32 0, i32 23
  %100 = load i8, ptr %99, align 4, !tbaa !42
  %101 = zext i8 %100 to i32
  %102 = icmp sge i32 %101, 34
  br i1 %102, label %134, label %103

103:                                              ; preds = %97
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %107 = getelementptr inbounds %struct.s2n_debug_info, ptr %106, i32 0, i32 0
  store ptr @.str.46, ptr %107, align 8, !tbaa !11
  %108 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %109 = getelementptr inbounds %struct.s2n_debug_info, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !11
  %111 = getelementptr inbounds i8, ptr %110, i64 21
  %112 = call ptr @strrchr(ptr noundef %111, i32 noundef 47) #7
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %121

114:                                              ; preds = %105
  %115 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %116 = getelementptr inbounds %struct.s2n_debug_info, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = getelementptr inbounds i8, ptr %117, i64 21
  %119 = call ptr @strrchr(ptr noundef %118, i32 noundef 47) #7
  %120 = getelementptr inbounds i8, ptr %119, i64 1
  br label %126

121:                                              ; preds = %105
  %122 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %123 = getelementptr inbounds %struct.s2n_debug_info, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = getelementptr inbounds i8, ptr %124, i64 21
  br label %126

126:                                              ; preds = %121, %114
  %127 = phi ptr [ %120, %114 ], [ %125, %121 ]
  %128 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %129 = getelementptr inbounds %struct.s2n_debug_info, ptr %128, i32 0, i32 1
  store ptr %127, ptr %129, align 8, !tbaa !13
  %130 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %130, align 4, !tbaa !9
  %131 = call i32 @s2n_calculate_stacktrace()
  br label %132

132:                                              ; preds = %126
  store i32 -1, ptr %4, align 4
  br label %443

133:                                              ; No predecessors!
  br label %134

134:                                              ; preds = %133, %97
  br label %135

135:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 592, ptr %8) #8
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 592, i1 false)
  br label %136

136:                                              ; preds = %135
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = call i32 @s2n_tls13_keys_from_conn(ptr noundef %8, ptr noundef %137)
  %139 = icmp sgt i32 %138, -1
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %441

141:                                              ; preds = %136
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 24, i1 false)
  %144 = load i32, ptr %6, align 4, !tbaa !9
  %145 = icmp eq i32 %144, 1
  br i1 %145, label %146, label %178

146:                                              ; preds = %143
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.s2n_connection, ptr %147, i32 0, i32 27
  %149 = load ptr, ptr %148, align 8, !tbaa !14
  %150 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %149, i32 0, i32 1
  store ptr %150, ptr %10, align 8, !tbaa !5
  br label %151

151:                                              ; preds = %146
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.s2n_connection, ptr %152, i32 0, i32 28
  %154 = getelementptr inbounds %struct.s2n_secrets, ptr %153, i32 0, i32 0
  %155 = getelementptr inbounds %struct.s2n_tls13_secrets, ptr %154, i32 0, i32 4
  %156 = getelementptr inbounds [48 x i8], ptr %155, i64 0, i64 0
  %157 = getelementptr inbounds %struct.s2n_tls13_keys, ptr %8, i32 0, i32 2
  %158 = load i8, ptr %157, align 8, !tbaa !43
  %159 = zext i8 %158 to i32
  %160 = call i32 @s2n_blob_init(ptr noundef %11, ptr noundef %156, i32 noundef %159)
  %161 = icmp sgt i32 %160, -1
  br i1 %161, label %163, label %162

162:                                              ; preds = %151
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %440

163:                                              ; preds = %151
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.s2n_connection, ptr %167, i32 0, i32 27
  %169 = load ptr, ptr %168, align 8, !tbaa !14
  %170 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %169, i32 0, i32 5
  %171 = getelementptr inbounds [16 x i8], ptr %170, i64 0, i64 0
  %172 = call i32 @s2n_blob_init(ptr noundef %12, ptr noundef %171, i32 noundef 12)
  %173 = icmp sgt i32 %172, -1
  br i1 %173, label %175, label %174

174:                                              ; preds = %166
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %440

175:                                              ; preds = %166
  br label %176

176:                                              ; preds = %175
  br label %177

177:                                              ; preds = %176
  br label %210

178:                                              ; preds = %143
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.s2n_connection, ptr %179, i32 0, i32 27
  %181 = load ptr, ptr %180, align 8, !tbaa !14
  %182 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %181, i32 0, i32 2
  store ptr %182, ptr %10, align 8, !tbaa !5
  br label %183

183:                                              ; preds = %178
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.s2n_connection, ptr %184, i32 0, i32 28
  %186 = getelementptr inbounds %struct.s2n_secrets, ptr %185, i32 0, i32 0
  %187 = getelementptr inbounds %struct.s2n_tls13_secrets, ptr %186, i32 0, i32 5
  %188 = getelementptr inbounds [48 x i8], ptr %187, i64 0, i64 0
  %189 = getelementptr inbounds %struct.s2n_tls13_keys, ptr %8, i32 0, i32 2
  %190 = load i8, ptr %189, align 8, !tbaa !43
  %191 = zext i8 %190 to i32
  %192 = call i32 @s2n_blob_init(ptr noundef %11, ptr noundef %188, i32 noundef %191)
  %193 = icmp sgt i32 %192, -1
  br i1 %193, label %195, label %194

194:                                              ; preds = %183
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %440

195:                                              ; preds = %183
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.s2n_connection, ptr %199, i32 0, i32 27
  %201 = load ptr, ptr %200, align 8, !tbaa !14
  %202 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %201, i32 0, i32 6
  %203 = getelementptr inbounds [16 x i8], ptr %202, i64 0, i64 0
  %204 = call i32 @s2n_blob_init(ptr noundef %12, ptr noundef %203, i32 noundef 12)
  %205 = icmp sgt i32 %204, -1
  br i1 %205, label %207, label %206

206:                                              ; preds = %198
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %440

207:                                              ; preds = %198
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209, %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %211 = getelementptr inbounds %struct.s2n_tls13_keys, ptr %8, i32 0, i32 2
  %212 = load i8, ptr %211, align 8, !tbaa !43
  %213 = zext i8 %212 to i64
  store i64 %213, ptr %13, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #8
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 48, i1 false)
  br label %214

214:                                              ; preds = %210
  %215 = load i64, ptr %13, align 8, !tbaa !47
  %216 = icmp ule i64 %215, 48
  br i1 %216, label %250, label %217

217:                                              ; preds = %214
  br label %218

218:                                              ; preds = %217
  br label %219

219:                                              ; preds = %218
  %220 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %221 = getelementptr inbounds %struct.s2n_debug_info, ptr %220, i32 0, i32 0
  store ptr @.str.47, ptr %221, align 8, !tbaa !11
  %222 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %223 = getelementptr inbounds %struct.s2n_debug_info, ptr %222, i32 0, i32 0
  %224 = load ptr, ptr %223, align 8, !tbaa !11
  %225 = getelementptr inbounds i8, ptr %224, i64 21
  %226 = call ptr @strrchr(ptr noundef %225, i32 noundef 47) #7
  %227 = icmp ne ptr %226, null
  br i1 %227, label %228, label %235

228:                                              ; preds = %219
  %229 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %230 = getelementptr inbounds %struct.s2n_debug_info, ptr %229, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8, !tbaa !11
  %232 = getelementptr inbounds i8, ptr %231, i64 21
  %233 = call ptr @strrchr(ptr noundef %232, i32 noundef 47) #7
  %234 = getelementptr inbounds i8, ptr %233, i64 1
  br label %240

235:                                              ; preds = %219
  %236 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %237 = getelementptr inbounds %struct.s2n_debug_info, ptr %236, i32 0, i32 0
  %238 = load ptr, ptr %237, align 8, !tbaa !11
  %239 = getelementptr inbounds i8, ptr %238, i64 21
  br label %240

240:                                              ; preds = %235, %228
  %241 = phi ptr [ %234, %228 ], [ %239, %235 ]
  %242 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %243 = getelementptr inbounds %struct.s2n_debug_info, ptr %242, i32 0, i32 1
  store ptr %241, ptr %243, align 8, !tbaa !13
  %244 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %244, align 4, !tbaa !9
  %245 = call i32 @s2n_calculate_stacktrace()
  br label %246

246:                                              ; preds = %240
  br label %247

247:                                              ; preds = %246
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %439

248:                                              ; No predecessors!
  br label %249

249:                                              ; preds = %248
  br label %250

250:                                              ; preds = %249, %214
  br label %251

251:                                              ; preds = %250
  br label %252

252:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 24, i1 false)
  br label %253

253:                                              ; preds = %252
  %254 = getelementptr inbounds [48 x i8], ptr %14, i64 0, i64 0
  %255 = load i64, ptr %13, align 8, !tbaa !47
  %256 = trunc i64 %255 to i32
  %257 = call i32 @s2n_blob_init(ptr noundef %15, ptr noundef %254, i32 noundef %256)
  %258 = icmp sgt i32 %257, -1
  br i1 %258, label %260, label %259

259:                                              ; preds = %253
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %438

260:                                              ; preds = %253
  br label %261

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262
  %264 = call i32 @s2n_tls13_update_application_traffic_secret(ptr noundef %8, ptr noundef %11, ptr noundef %15)
  %265 = icmp sgt i32 %264, -1
  br i1 %265, label %267, label %266

266:                                              ; preds = %263
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %438

267:                                              ; preds = %263
  br label %268

268:                                              ; preds = %267
  br label %269

269:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.s2n_connection, ptr %270, i32 0, i32 27
  %272 = load ptr, ptr %271, align 8, !tbaa !14
  %273 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %272, i32 0, i32 0
  %274 = load ptr, ptr %273, align 8, !tbaa !48
  %275 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %274, i32 0, i32 6
  %276 = load ptr, ptr %275, align 8, !tbaa !51
  %277 = getelementptr inbounds %struct.s2n_record_algorithm, ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8, !tbaa !53
  %279 = getelementptr inbounds %struct.s2n_cipher, ptr %278, i32 0, i32 2
  %280 = load i8, ptr %279, align 8, !tbaa !55
  %281 = zext i8 %280 to i64
  store i64 %281, ptr %16, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #8
  call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 48, i1 false)
  br label %282

282:                                              ; preds = %269
  %283 = load i64, ptr %16, align 8, !tbaa !47
  %284 = icmp ule i64 %283, 48
  br i1 %284, label %318, label %285

285:                                              ; preds = %282
  br label %286

286:                                              ; preds = %285
  br label %287

287:                                              ; preds = %286
  %288 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %289 = getelementptr inbounds %struct.s2n_debug_info, ptr %288, i32 0, i32 0
  store ptr @.str.48, ptr %289, align 8, !tbaa !11
  %290 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %291 = getelementptr inbounds %struct.s2n_debug_info, ptr %290, i32 0, i32 0
  %292 = load ptr, ptr %291, align 8, !tbaa !11
  %293 = getelementptr inbounds i8, ptr %292, i64 21
  %294 = call ptr @strrchr(ptr noundef %293, i32 noundef 47) #7
  %295 = icmp ne ptr %294, null
  br i1 %295, label %296, label %303

296:                                              ; preds = %287
  %297 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %298 = getelementptr inbounds %struct.s2n_debug_info, ptr %297, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8, !tbaa !11
  %300 = getelementptr inbounds i8, ptr %299, i64 21
  %301 = call ptr @strrchr(ptr noundef %300, i32 noundef 47) #7
  %302 = getelementptr inbounds i8, ptr %301, i64 1
  br label %308

303:                                              ; preds = %287
  %304 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %305 = getelementptr inbounds %struct.s2n_debug_info, ptr %304, i32 0, i32 0
  %306 = load ptr, ptr %305, align 8, !tbaa !11
  %307 = getelementptr inbounds i8, ptr %306, i64 21
  br label %308

308:                                              ; preds = %303, %296
  %309 = phi ptr [ %302, %296 ], [ %307, %303 ]
  %310 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %311 = getelementptr inbounds %struct.s2n_debug_info, ptr %310, i32 0, i32 1
  store ptr %309, ptr %311, align 8, !tbaa !13
  %312 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %312, align 4, !tbaa !9
  %313 = call i32 @s2n_calculate_stacktrace()
  br label %314

314:                                              ; preds = %308
  br label %315

315:                                              ; preds = %314
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %437

316:                                              ; No predecessors!
  br label %317

317:                                              ; preds = %316
  br label %318

318:                                              ; preds = %317, %282
  br label %319

319:                                              ; preds = %318
  br label %320

320:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 24, i1 false)
  br label %321

321:                                              ; preds = %320
  %322 = getelementptr inbounds [48 x i8], ptr %17, i64 0, i64 0
  %323 = load i64, ptr %16, align 8, !tbaa !47
  %324 = trunc i64 %323 to i32
  %325 = call i32 @s2n_blob_init(ptr noundef %18, ptr noundef %322, i32 noundef %324)
  %326 = icmp sgt i32 %325, -1
  br i1 %326, label %328, label %327

327:                                              ; preds = %321
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %436

328:                                              ; preds = %321
  br label %329

329:                                              ; preds = %328
  br label %330

330:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store ptr null, ptr %19, align 8, !tbaa !5
  br label %331

331:                                              ; preds = %330
  %332 = call i32 @s2n_tls13_derive_traffic_keys(ptr noundef %8, ptr noundef %15, ptr noundef %18, ptr noundef %12)
  %333 = icmp sgt i32 %332, -1
  br i1 %333, label %335, label %334

334:                                              ; preds = %331
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %435

335:                                              ; preds = %331
  br label %336

336:                                              ; preds = %335
  br label %337

337:                                              ; preds = %336
  %338 = load i32, ptr %7, align 4, !tbaa !9
  %339 = icmp eq i32 %338, 1
  br i1 %339, label %340, label %365

340:                                              ; preds = %337
  br label %341

341:                                              ; preds = %340
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.s2n_connection, ptr %342, i32 0, i32 27
  %344 = load ptr, ptr %343, align 8, !tbaa !14
  %345 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %344, i32 0, i32 0
  %346 = load ptr, ptr %345, align 8, !tbaa !48
  %347 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %346, i32 0, i32 6
  %348 = load ptr, ptr %347, align 8, !tbaa !51
  %349 = getelementptr inbounds %struct.s2n_record_algorithm, ptr %348, i32 0, i32 0
  %350 = load ptr, ptr %349, align 8, !tbaa !53
  %351 = getelementptr inbounds %struct.s2n_cipher, ptr %350, i32 0, i32 5
  %352 = load ptr, ptr %351, align 8, !tbaa !57
  %353 = load ptr, ptr %10, align 8, !tbaa !5
  %354 = call i32 %352(ptr noundef %353, ptr noundef %18)
  %355 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  store i32 %354, ptr %355, align 4
  %356 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  %357 = load i32, ptr %356, align 4
  %358 = call zeroext i1 @s2n_result_is_ok(i32 %357)
  br i1 %358, label %360, label %359

359:                                              ; preds = %341
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %435

360:                                              ; preds = %341
  br label %361

361:                                              ; preds = %360
  br label %362

362:                                              ; preds = %361
  %363 = load ptr, ptr %5, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.s2n_connection, ptr %363, i32 0, i32 96
  store ptr %364, ptr %19, align 8, !tbaa !5
  br label %390

365:                                              ; preds = %337
  br label %366

366:                                              ; preds = %365
  %367 = load ptr, ptr %5, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.s2n_connection, ptr %367, i32 0, i32 27
  %369 = load ptr, ptr %368, align 8, !tbaa !14
  %370 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %369, i32 0, i32 0
  %371 = load ptr, ptr %370, align 8, !tbaa !48
  %372 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %371, i32 0, i32 6
  %373 = load ptr, ptr %372, align 8, !tbaa !51
  %374 = getelementptr inbounds %struct.s2n_record_algorithm, ptr %373, i32 0, i32 0
  %375 = load ptr, ptr %374, align 8, !tbaa !53
  %376 = getelementptr inbounds %struct.s2n_cipher, ptr %375, i32 0, i32 6
  %377 = load ptr, ptr %376, align 8, !tbaa !58
  %378 = load ptr, ptr %10, align 8, !tbaa !5
  %379 = call i32 %377(ptr noundef %378, ptr noundef %18)
  %380 = getelementptr inbounds %struct.s2n_result, ptr %21, i32 0, i32 0
  store i32 %379, ptr %380, align 4
  %381 = getelementptr inbounds %struct.s2n_result, ptr %21, i32 0, i32 0
  %382 = load i32, ptr %381, align 4
  %383 = call zeroext i1 @s2n_result_is_ok(i32 %382)
  br i1 %383, label %385, label %384

384:                                              ; preds = %366
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %435

385:                                              ; preds = %366
  br label %386

386:                                              ; preds = %385
  br label %387

387:                                              ; preds = %386
  %388 = load ptr, ptr %5, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.s2n_connection, ptr %388, i32 0, i32 95
  store ptr %389, ptr %19, align 8, !tbaa !5
  br label %390

390:                                              ; preds = %387, %362
  %391 = load ptr, ptr %19, align 8, !tbaa !5
  %392 = load i8, ptr %391, align 1, !tbaa !59
  %393 = zext i8 %392 to i32
  %394 = add nsw i32 %393, 1
  %395 = icmp slt i32 255, %394
  br i1 %395, label %396, label %397

396:                                              ; preds = %390
  br label %402

397:                                              ; preds = %390
  %398 = load ptr, ptr %19, align 8, !tbaa !5
  %399 = load i8, ptr %398, align 1, !tbaa !59
  %400 = zext i8 %399 to i32
  %401 = add nsw i32 %400, 1
  br label %402

402:                                              ; preds = %397, %396
  %403 = phi i32 [ 255, %396 ], [ %401, %397 ]
  %404 = trunc i32 %403 to i8
  %405 = load ptr, ptr %19, align 8, !tbaa !5
  store i8 %404, ptr %405, align 1, !tbaa !59
  br label %406

406:                                              ; preds = %402
  %407 = load ptr, ptr %5, align 8, !tbaa !5
  %408 = load i32, ptr %6, align 4, !tbaa !9
  %409 = call i32 @s2n_zero_sequence_number(ptr noundef %407, i32 noundef %408)
  %410 = icmp sgt i32 %409, -1
  br i1 %410, label %412, label %411

411:                                              ; preds = %406
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %435

412:                                              ; preds = %406
  br label %413

413:                                              ; preds = %412
  br label %414

414:                                              ; preds = %413
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #8
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 40, i1 false)
  br label %415

415:                                              ; preds = %414
  %416 = call i32 @s2n_stuffer_init(ptr noundef %22, ptr noundef %11)
  %417 = icmp sgt i32 %416, -1
  br i1 %417, label %419, label %418

418:                                              ; preds = %415
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %434

419:                                              ; preds = %415
  br label %420

420:                                              ; preds = %419
  br label %421

421:                                              ; preds = %420
  br label %422

422:                                              ; preds = %421
  %423 = getelementptr inbounds %struct.s2n_blob, ptr %15, i32 0, i32 0
  %424 = load ptr, ptr %423, align 8, !tbaa !60
  %425 = getelementptr inbounds %struct.s2n_tls13_keys, ptr %8, i32 0, i32 2
  %426 = load i8, ptr %425, align 8, !tbaa !43
  %427 = zext i8 %426 to i32
  %428 = call i32 @s2n_stuffer_write_bytes(ptr noundef %22, ptr noundef %424, i32 noundef %427)
  %429 = icmp sgt i32 %428, -1
  br i1 %429, label %431, label %430

430:                                              ; preds = %422
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %434

431:                                              ; preds = %422
  br label %432

432:                                              ; preds = %431
  br label %433

433:                                              ; preds = %432
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %434

434:                                              ; preds = %433, %430, %418
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #8
  br label %435

435:                                              ; preds = %434, %411, %384, %359, %334
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %436

436:                                              ; preds = %435, %327
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  br label %437

437:                                              ; preds = %436, %315
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %438

438:                                              ; preds = %437, %266, %259
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  br label %439

439:                                              ; preds = %438, %247
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %440

440:                                              ; preds = %439, %206, %194, %174, %162
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %441

441:                                              ; preds = %440, %140
  %442 = call i32 @s2n_tls13_keys_free(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 592, ptr %8) #8
  br label %443

443:                                              ; preds = %441, %132, %93, %55
  %444 = load i32, ptr %4, align 4
  ret i32 %444
}

declare i32 @s2n_tls13_keys_free(ptr noundef) #2

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #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 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !6, i64 232}
!15 = !{!"s2n_connection", !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, 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, !10, i64 148, !10, i64 152, !16, i64 160, !17, i64 168, !17, 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, !18, i64 240, !6, i64 632, !6, i64 640, !19, i64 648, !26, i64 1144, !29, i64 1688, !6, i64 1752, !7, i64 1760, !10, i64 1764, !7, i64 1768, !32, i64 1776, !32, i64 1816, !32, i64 1856, !32, i64 1896, !10, i64 1936, !17, i64 1944, !7, i64 1952, !32, i64 1960, !7, i64 2000, !7, i64 2001, !7, i64 2002, !25, i64 2003, !33, i64 2004, !33, i64 2008, !34, i64 2016, !31, i64 2208, !10, i64 2212, !31, i64 2216, !17, i64 2224, !7, i64 2232, !17, i64 2240, !17, i64 2248, !17, i64 2256, !33, i64 2264, !33, i64 2268, !7, i64 2272, !7, i64 2528, !10, i64 2784, !24, i64 2792, !10, i64 2816, !24, i64 2824, !24, i64 2848, !24, i64 2872, !36, i64 2896, !38, i64 3704, !6, i64 3760, !6, i64 3768, !7, i64 3776, !10, i64 3780, !24, i64 3784, !10, i64 3808, !40, i64 3816, !7, i64 3848, !32, i64 3992, !24, i64 4032, !24, i64 4056, !25, i64 4080, !25, i64 4081, !25, i64 4082, !31, i64 4084, !31, i64 4086, !10, i64 4088, !10, i64 4092, !24, i64 4096, !10, i64 4120, !41, i64 4128, !33, i64 4176, !7, i64 4180, !7, i64 4181}
!16 = !{!"s2n_timer", !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"s2n_secrets", !7, i64 0, !10, i64 388}
!19 = !{!"s2n_kex_parameters", !20, i64 0, !21, i64 8, !7, i64 24, !21, i64 56, !22, i64 72, !22, i64 184, !7, i64 296, !23, i64 360, !24, i64 448, !24, i64 472}
!20 = !{!"s2n_dh_params", !6, i64 0}
!21 = !{!"s2n_ecc_evp_params", !6, i64 0, !6, i64 8}
!22 = !{!"s2n_kem_group_params", !6, i64 0, !23, i64 8, !21, i64 96}
!23 = !{!"s2n_kem_params", !6, i64 0, !24, i64 8, !24, i64 32, !24, i64 56, !25, i64 80}
!24 = !{!"s2n_blob", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!25 = !{!"_Bool", !7, i64 0}
!26 = !{!"s2n_handshake_parameters", !27, i64 0, !27, i64 48, !24, i64 96, !10, i64 120, !28, 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}
!27 = !{!"s2n_pkey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!28 = !{!"s2n_sig_scheme_list", !7, i64 0, !7, i64 256}
!29 = !{!"s2n_psk_parameters", !10, i64 0, !30, i64 8, !31, i64 40, !31, i64 42, !6, i64 48, !10, i64 56}
!30 = !{!"s2n_array", !24, i64 0, !10, i64 24, !10, i64 28}
!31 = !{!"short", !7, i64 0}
!32 = !{!"s2n_stuffer", !24, i64 0, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 36, !10, i64 36}
!33 = !{!"", !10, i64 0}
!34 = !{!"s2n_handshake", !32, i64 0, !6, i64 40, !7, i64 48, !7, i64 56, !7, i64 104, !7, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !35, i64 176, !10, i64 184, !10, i64 184, !10, i64 184, !10, i64 184, !10, i64 188}
!35 = !{!"s2n_offered_early_data", !6, i64 0}
!36 = !{!"s2n_client_hello", !24, i64 0, !37, i64 24, !24, i64 728, !24, i64 752, !24, i64 776, !7, i64 800, !7, i64 801, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802}
!37 = !{!"", !7, i64 0, !24, i64 672, !31, i64 696}
!38 = !{!"s2n_x509_validator", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !31, i64 18, !6, i64 24, !10, i64 32, !6, i64 40, !39, i64 48, !25, i64 52}
!39 = !{!"s2n_cert_validation_info", !10, i64 0, !10, i64 0}
!40 = !{!"s2n_ticket_fields", !24, i64 0, !10, i64 24}
!41 = !{!"s2n_post_handshake", !32, i64 0, !7, i64 40}
!42 = !{!15, !7, i64 220}
!43 = !{!44, !7, i64 8}
!44 = !{!"s2n_tls13_keys", !10, i64 0, !10, i64 4, !7, i64 8, !24, i64 16, !24, i64 40, !7, i64 64, !7, i64 112, !45, i64 160}
!45 = !{!"s2n_hmac_state", !10, i64 0, !31, i64 4, !10, i64 8, !31, i64 12, !7, i64 14, !46, i64 16, !46, i64 72, !46, i64 128, !46, i64 184, !7, i64 240, !7, i64 368}
!46 = !{!"s2n_hash_state", !6, i64 0, !10, i64 8, !7, i64 12, !17, i64 16, !7, i64 24}
!47 = !{!17, !17, i64 0}
!48 = !{!49, !6, i64 0}
!49 = !{!"s2n_crypto_parameters", !6, i64 0, !50, i64 8, !50, i64 16, !45, i64 24, !45, i64 456, !7, i64 888, !7, i64 904, !7, i64 920, !7, i64 928}
!50 = !{!"s2n_session_key", !6, i64 0}
!51 = !{!52, !6, i64 48}
!52 = !{!"s2n_cipher_suite", !10, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !6, i64 32, !10, i64 40, !6, i64 48, !7, i64 56, !7, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !7, i64 100}
!53 = !{!54, !6, i64 0}
!54 = !{!"s2n_record_algorithm", !6, i64 0, !10, i64 8, !10, i64 12, !17, i64 16}
!55 = !{!56, !7, i64 48}
!56 = !{!"s2n_cipher", !10, i64 0, !7, i64 8, !7, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!57 = !{!56, !6, i64 72}
!58 = !{!56, !6, i64 80}
!59 = !{!7, !7, i64 0}
!60 = !{!24, !6, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_tls13_keys = type { i32, i32, i8, %struct.s2n_blob, %struct.s2n_blob, [48 x i8], [48 x i8], %struct.s2n_hmac_state }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.s2n_hmac_state = type { i32, i16, i32, i16, i8, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, [128 x i8], [64 x i8] }
%struct.s2n_hash_state = type { ptr, i32, i8, i64, %union.anon.0 }
%union.anon.0 = type { %struct.s2n_hash_evp_digest }
%struct.s2n_hash_evp_digest = type { %struct.s2n_evp_digest, %struct.s2n_evp_digest }
%struct.s2n_evp_digest = type { ptr, ptr }
%struct.s2n_stuffer = type { %struct.s2n_blob, i32, i32, 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.44 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [96 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

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

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

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_update_application_traffic_keys(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #6 {
  %4 = alloca %struct.s2n_tls13_keys, align 8
  %5 = alloca %struct.s2n_blob, align 8
  %6 = alloca %struct.s2n_blob, align 8
  %7 = alloca [48 x i8], align 16
  %8 = alloca %struct.s2n_blob, align 8
  %9 = alloca [48 x i8], align 16
  %10 = alloca %struct.s2n_blob, align 8
  %11 = alloca %struct.s2n_stuffer, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %12, label %20

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

20:                                               ; preds = %3
  %21 = getelementptr inbounds i8, ptr %0, i64 232
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %.not41 = icmp eq ptr %22, null
  br i1 %.not41, label %23, label %31

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

31:                                               ; preds = %20
  %32 = getelementptr inbounds i8, ptr %0, i64 220
  %33 = load i8, ptr %32, align 4, !tbaa !41
  %34 = icmp ugt i8 %33, 33
  br i1 %34, label %43, label %35

35:                                               ; preds = %31
  %36 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.46, ptr %36, align 8, !tbaa !5
  %37 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.46, i64 21), i32 noundef 47) #7
  %.not43 = icmp eq ptr %37, null
  %38 = getelementptr inbounds i8, ptr %37, i64 1
  %39 = select i1 %.not43, ptr getelementptr inbounds (i8, ptr @.str.46, i64 21), ptr %38
  %40 = getelementptr inbounds i8, ptr %36, i64 8
  store ptr %39, ptr %40, align 8, !tbaa !10
  %41 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %41, align 4, !tbaa !11
  %42 = tail call i32 @s2n_calculate_stacktrace() #8
  br label %155

43:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 592, ptr nonnull %4) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(592) %4, i8 0, i64 592, i1 false)
  %44 = call i32 @s2n_tls13_keys_from_conn(ptr noundef nonnull %4, ptr noundef nonnull %0)
  %45 = icmp sgt i32 %44, -1
  br i1 %45, label %46, label %153

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, i8 0, i64 24, i1 false)
  %47 = icmp eq i32 %1, 1
  %48 = load ptr, ptr %21, align 8, !tbaa !13
  %49 = getelementptr inbounds i8, ptr %4, i64 8
  %50 = load i8, ptr %49, align 8, !tbaa !42
  %51 = zext i8 %50 to i32
  br i1 %47, label %52, label %62

52:                                               ; preds = %46
  %53 = getelementptr inbounds i8, ptr %0, i64 432
  %54 = call i32 @s2n_blob_init(ptr noundef nonnull %5, ptr noundef nonnull %53, i32 noundef %51) #8
  %55 = icmp sgt i32 %54, -1
  br i1 %55, label %56, label %152

56:                                               ; preds = %52
  %57 = getelementptr inbounds i8, ptr %48, i64 8
  %58 = load ptr, ptr %21, align 8, !tbaa !13
  %59 = getelementptr inbounds i8, ptr %58, i64 888
  %60 = call i32 @s2n_blob_init(ptr noundef nonnull %6, ptr noundef nonnull %59, i32 noundef 12) #8
  %61 = icmp sgt i32 %60, -1
  br i1 %61, label %72, label %152

62:                                               ; preds = %46
  %63 = getelementptr inbounds i8, ptr %0, i64 480
  %64 = call i32 @s2n_blob_init(ptr noundef nonnull %5, ptr noundef nonnull %63, i32 noundef %51) #8
  %65 = icmp sgt i32 %64, -1
  br i1 %65, label %66, label %152

66:                                               ; preds = %62
  %67 = getelementptr inbounds i8, ptr %48, i64 16
  %68 = load ptr, ptr %21, align 8, !tbaa !13
  %69 = getelementptr inbounds i8, ptr %68, i64 904
  %70 = call i32 @s2n_blob_init(ptr noundef nonnull %6, ptr noundef nonnull %69, i32 noundef 12) #8
  %71 = icmp sgt i32 %70, -1
  br i1 %71, label %72, label %152

72:                                               ; preds = %66, %56
  %.030 = phi ptr [ %57, %56 ], [ %67, %66 ]
  %73 = getelementptr inbounds i8, ptr %4, i64 8
  %74 = load i8, ptr %73, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %7, i8 0, i64 48, i1 false)
  %75 = icmp ult i8 %74, 49
  br i1 %75, label %84, label %76

76:                                               ; preds = %72
  %77 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.47, ptr %77, align 8, !tbaa !5
  %78 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.47, i64 21), i32 noundef 47) #7
  %.not44 = icmp eq ptr %78, null
  %79 = getelementptr inbounds i8, ptr %78, i64 1
  %80 = select i1 %.not44, ptr getelementptr inbounds (i8, ptr @.str.47, i64 21), ptr %79
  %81 = getelementptr inbounds i8, ptr %77, i64 8
  store ptr %80, ptr %81, align 8, !tbaa !10
  %82 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %82, align 4, !tbaa !11
  %83 = call i32 @s2n_calculate_stacktrace() #8
  br label %151

84:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  %85 = zext nneg i8 %74 to i32
  %86 = call i32 @s2n_blob_init(ptr noundef nonnull %8, ptr noundef nonnull %7, i32 noundef %85) #8
  %87 = icmp sgt i32 %86, -1
  br i1 %87, label %88, label %150

88:                                               ; preds = %84
  %89 = call i32 @s2n_tls13_update_application_traffic_secret(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %8) #8
  %90 = icmp sgt i32 %89, -1
  br i1 %90, label %91, label %150

91:                                               ; preds = %88
  %92 = load ptr, ptr %21, align 8, !tbaa !13
  %93 = load ptr, ptr %92, align 8, !tbaa !46
  %94 = getelementptr inbounds i8, ptr %93, i64 48
  %95 = load ptr, ptr %94, align 8, !tbaa !49
  %96 = load ptr, ptr %95, align 8, !tbaa !51
  %97 = getelementptr inbounds i8, ptr %96, i64 48
  %98 = load i8, ptr %97, align 8, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %9, i8 0, i64 48, i1 false)
  %99 = icmp ult i8 %98, 49
  br i1 %99, label %108, label %100

100:                                              ; preds = %91
  %101 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.48, ptr %101, align 8, !tbaa !5
  %102 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.48, i64 21), i32 noundef 47) #7
  %.not45 = icmp eq ptr %102, null
  %103 = getelementptr inbounds i8, ptr %102, i64 1
  %104 = select i1 %.not45, ptr getelementptr inbounds (i8, ptr @.str.48, i64 21), ptr %103
  %105 = getelementptr inbounds i8, ptr %101, i64 8
  store ptr %104, ptr %105, align 8, !tbaa !10
  %106 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %106, align 4, !tbaa !11
  %107 = call i32 @s2n_calculate_stacktrace() #8
  br label %149

108:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %10, i8 0, i64 24, i1 false)
  %109 = zext nneg i8 %98 to i32
  %110 = call i32 @s2n_blob_init(ptr noundef nonnull %10, ptr noundef nonnull %9, i32 noundef %109) #8
  %111 = icmp sgt i32 %110, -1
  br i1 %111, label %112, label %148

112:                                              ; preds = %108
  %113 = call i32 @s2n_tls13_derive_traffic_keys(ptr noundef nonnull %4, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %6) #8
  %114 = icmp sgt i32 %113, -1
  br i1 %114, label %115, label %148

115:                                              ; preds = %112
  %116 = icmp eq i32 %2, 1
  %117 = load ptr, ptr %21, align 8, !tbaa !13
  %118 = load ptr, ptr %117, align 8, !tbaa !46
  %119 = getelementptr inbounds i8, ptr %118, i64 48
  %120 = load ptr, ptr %119, align 8, !tbaa !49
  %121 = load ptr, ptr %120, align 8, !tbaa !51
  br i1 %116, label %122, label %127

122:                                              ; preds = %115
  %123 = getelementptr inbounds i8, ptr %121, i64 72
  %124 = load ptr, ptr %123, align 8, !tbaa !55
  %125 = call i32 %124(ptr noundef nonnull %.030, ptr noundef nonnull %10) #8
  %126 = call zeroext i1 @s2n_result_is_ok(i32 %125)
  br i1 %126, label %132, label %148

127:                                              ; preds = %115
  %128 = getelementptr inbounds i8, ptr %121, i64 80
  %129 = load ptr, ptr %128, align 8, !tbaa !56
  %130 = call i32 %129(ptr noundef nonnull %.030, ptr noundef nonnull %10) #8
  %131 = call zeroext i1 @s2n_result_is_ok(i32 %130)
  br i1 %131, label %132, label %148

132:                                              ; preds = %127, %122
  %.sink = phi i64 [ 4181, %122 ], [ 4180, %127 ]
  %133 = getelementptr inbounds i8, ptr %0, i64 %.sink
  %134 = load i8, ptr %133, align 1, !tbaa !57
  %135 = icmp eq i8 %134, -1
  %136 = add i8 %134, 1
  %spec.select = select i1 %135, i8 -1, i8 %136
  store i8 %spec.select, ptr %133, align 1, !tbaa !57
  %137 = call i32 @s2n_zero_sequence_number(ptr noundef nonnull %0, i32 noundef %1)
  %138 = icmp sgt i32 %137, -1
  br i1 %138, label %139, label %148

139:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %11, i8 0, i64 40, i1 false)
  %140 = call i32 @s2n_stuffer_init(ptr noundef nonnull %11, ptr noundef nonnull %5) #8
  %141 = icmp sgt i32 %140, -1
  br i1 %141, label %142, label %147

142:                                              ; preds = %139
  %143 = load ptr, ptr %8, align 8, !tbaa !58
  %144 = load i8, ptr %73, align 8, !tbaa !42
  %145 = zext i8 %144 to i32
  %146 = call i32 @s2n_stuffer_write_bytes(ptr noundef nonnull %11, ptr noundef %143, i32 noundef %145) #8
  %.lobit = ashr i32 %146, 31
  br label %147

147:                                              ; preds = %142, %139
  %.0 = phi i32 [ -1, %139 ], [ %.lobit, %142 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #8
  br label %148

148:                                              ; preds = %147, %112, %122, %127, %132, %108
  %.2 = phi i32 [ -1, %108 ], [ %.0, %147 ], [ -1, %112 ], [ -1, %122 ], [ -1, %127 ], [ -1, %132 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  br label %149

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

150:                                              ; preds = %88, %84, %149
  %.4 = phi i32 [ %.3, %149 ], [ -1, %84 ], [ -1, %88 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  br label %151

151:                                              ; preds = %150, %76
  %.5 = phi i32 [ %.4, %150 ], [ -1, %76 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  br label %152

152:                                              ; preds = %66, %62, %56, %52, %151
  %.6 = phi i32 [ %.5, %151 ], [ -1, %52 ], [ -1, %56 ], [ -1, %62 ], [ -1, %66 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  br label %153

153:                                              ; preds = %43, %152
  %.7 = phi i32 [ %.6, %152 ], [ -1, %43 ]
  %154 = call i32 @s2n_tls13_keys_free(ptr noundef nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 592, ptr nonnull %4) #8
  br label %155

155:                                              ; preds = %153, %35, %23, %12
  %.8 = phi i32 [ %.7, %153 ], [ -1, %35 ], [ -1, %23 ], [ -1, %12 ]
  ret i32 %.8
}

declare i32 @s2n_tls13_keys_free(ptr noundef) local_unnamed_addr #2

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #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 = { nounwind willreturn memory(read) }
attributes #8 = { 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 = !{!14, !7, i64 232}
!14 = !{!"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, !15, i64 160, !16, i64 168, !16, 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, !17, i64 240, !7, i64 632, !7, i64 640, !18, i64 648, !25, i64 1144, !28, i64 1688, !7, i64 1752, !8, i64 1760, !12, i64 1764, !8, i64 1768, !31, i64 1776, !31, i64 1816, !31, i64 1856, !31, i64 1896, !12, i64 1936, !16, i64 1944, !8, i64 1952, !31, i64 1960, !8, i64 2000, !8, i64 2001, !8, i64 2002, !24, i64 2003, !32, i64 2004, !32, i64 2008, !33, i64 2016, !30, i64 2208, !12, i64 2212, !30, i64 2216, !16, i64 2224, !8, i64 2232, !16, i64 2240, !16, i64 2248, !16, i64 2256, !32, i64 2264, !32, i64 2268, !8, i64 2272, !8, i64 2528, !12, i64 2784, !23, i64 2792, !12, i64 2816, !23, i64 2824, !23, i64 2848, !23, i64 2872, !35, i64 2896, !37, i64 3704, !7, i64 3760, !7, i64 3768, !8, i64 3776, !12, i64 3780, !23, i64 3784, !12, i64 3808, !39, i64 3816, !8, i64 3848, !31, i64 3992, !23, i64 4032, !23, i64 4056, !24, i64 4080, !24, i64 4081, !24, i64 4082, !30, i64 4084, !30, i64 4086, !12, i64 4088, !12, i64 4092, !23, i64 4096, !12, i64 4120, !40, i64 4128, !32, i64 4176, !8, i64 4180, !8, i64 4181}
!15 = !{!"s2n_timer", !16, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!"s2n_secrets", !8, i64 0, !12, i64 388}
!18 = !{!"s2n_kex_parameters", !19, i64 0, !20, i64 8, !8, i64 24, !20, i64 56, !21, i64 72, !21, i64 184, !8, i64 296, !22, i64 360, !23, i64 448, !23, i64 472}
!19 = !{!"s2n_dh_params", !7, i64 0}
!20 = !{!"s2n_ecc_evp_params", !7, i64 0, !7, i64 8}
!21 = !{!"s2n_kem_group_params", !7, i64 0, !22, i64 8, !20, i64 96}
!22 = !{!"s2n_kem_params", !7, i64 0, !23, i64 8, !23, i64 32, !23, i64 56, !24, i64 80}
!23 = !{!"s2n_blob", !7, i64 0, !12, i64 8, !12, i64 12, !12, i64 16}
!24 = !{!"_Bool", !8, i64 0}
!25 = !{!"s2n_handshake_parameters", !26, i64 0, !26, i64 48, !23, i64 96, !12, i64 120, !27, 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}
!26 = !{!"s2n_pkey", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!27 = !{!"s2n_sig_scheme_list", !8, i64 0, !8, i64 256}
!28 = !{!"s2n_psk_parameters", !12, i64 0, !29, i64 8, !30, i64 40, !30, i64 42, !7, i64 48, !12, i64 56}
!29 = !{!"s2n_array", !23, i64 0, !12, i64 24, !12, i64 28}
!30 = !{!"short", !8, i64 0}
!31 = !{!"s2n_stuffer", !23, i64 0, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 36, !12, i64 36}
!32 = !{!"", !12, i64 0}
!33 = !{!"s2n_handshake", !31, 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, !34, i64 176, !12, i64 184, !12, i64 184, !12, i64 184, !12, i64 184, !12, i64 188}
!34 = !{!"s2n_offered_early_data", !7, i64 0}
!35 = !{!"s2n_client_hello", !23, i64 0, !36, i64 24, !23, i64 728, !23, i64 752, !23, 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}
!36 = !{!"", !8, i64 0, !23, i64 672, !30, i64 696}
!37 = !{!"s2n_x509_validator", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 17, !30, i64 18, !7, i64 24, !12, i64 32, !7, i64 40, !38, i64 48, !24, i64 52}
!38 = !{!"s2n_cert_validation_info", !12, i64 0, !12, i64 0}
!39 = !{!"s2n_ticket_fields", !23, i64 0, !12, i64 24}
!40 = !{!"s2n_post_handshake", !31, i64 0, !8, i64 40}
!41 = !{!14, !8, i64 220}
!42 = !{!43, !8, i64 8}
!43 = !{!"s2n_tls13_keys", !12, i64 0, !12, i64 4, !8, i64 8, !23, i64 16, !23, i64 40, !8, i64 64, !8, i64 112, !44, i64 160}
!44 = !{!"s2n_hmac_state", !12, i64 0, !30, i64 4, !12, i64 8, !30, i64 12, !8, i64 14, !45, i64 16, !45, i64 72, !45, i64 128, !45, i64 184, !8, i64 240, !8, i64 368}
!45 = !{!"s2n_hash_state", !7, i64 0, !12, i64 8, !8, i64 12, !16, i64 16, !8, i64 24}
!46 = !{!47, !7, i64 0}
!47 = !{!"s2n_crypto_parameters", !7, i64 0, !48, i64 8, !48, i64 16, !44, i64 24, !44, i64 456, !8, i64 888, !8, i64 904, !8, i64 920, !8, i64 928}
!48 = !{!"s2n_session_key", !7, i64 0}
!49 = !{!50, !7, i64 48}
!50 = !{!"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}
!51 = !{!52, !7, i64 0}
!52 = !{!"s2n_record_algorithm", !7, i64 0, !12, i64 8, !12, i64 12, !16, i64 16}
!53 = !{!54, !8, i64 48}
!54 = !{!"s2n_cipher", !12, i64 0, !8, i64 8, !8, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96}
!55 = !{!54, !7, i64 72}
!56 = !{!54, !7, i64 80}
!57 = !{!8, !8, i64 0}
!58 = !{!23, !7, i64 0}


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