; LLVM IR from aws/s2n-tls :: tls (s2n_send)

; 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_result = type { i32 }
%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_blob = type { ptr, i32, i32, i8 }
%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_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_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.7 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [85 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @s2n_should_flush(ptr noundef, i64 noundef) #0

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @s2n_sendv_with_offset_impl(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i16, align 2
  %16 = alloca %struct.s2n_result, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %struct.s2n_result, align 4
  %20 = alloca %struct.s2n_result, align 4
  %21 = alloca i64, align 8
  %22 = alloca %struct.s2n_result, align 4
  %23 = alloca i64, align 8
  %24 = alloca i16, align 2
  %25 = alloca %struct.s2n_result, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %27

27:                                               ; preds = %5
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %28, i32 noundef 0)
  br i1 %29, label %63, label %30

30:                                               ; preds = %27
  br label %31

31:                                               ; preds = %30
  br label %32

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

41:                                               ; preds = %32
  %42 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %43 = getelementptr inbounds %struct.s2n_debug_info, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !11
  %45 = getelementptr inbounds i8, ptr %44, i64 21
  %46 = call ptr @strrchr(ptr noundef %45, i32 noundef 47) #7
  %47 = getelementptr inbounds i8, ptr %46, i64 1
  br label %53

48:                                               ; preds = %32
  %49 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %50 = getelementptr inbounds %struct.s2n_debug_info, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds i8, ptr %51, i64 21
  br label %53

53:                                               ; preds = %48, %41
  %54 = phi ptr [ %47, %41 ], [ %52, %48 ]
  %55 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %56 = getelementptr inbounds %struct.s2n_debug_info, ptr %55, i32 0, i32 1
  store ptr %54, ptr %56, align 8, !tbaa !13
  %57 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 134217728, ptr %57, align 4, !tbaa !14
  %58 = call i32 @s2n_calculate_stacktrace()
  br label %59

59:                                               ; preds = %53
  br label %60

60:                                               ; preds = %59
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %439

61:                                               ; No predecessors!
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62, %27
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = call zeroext i1 @s2n_connection_is_quic_enabled(ptr noundef %67)
  br i1 %68, label %69, label %102

69:                                               ; preds = %66
  br label %70

70:                                               ; preds = %69
  br label %71

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

80:                                               ; preds = %71
  %81 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %82 = getelementptr inbounds %struct.s2n_debug_info, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = getelementptr inbounds i8, ptr %83, i64 21
  %85 = call ptr @strrchr(ptr noundef %84, i32 noundef 47) #7
  %86 = getelementptr inbounds i8, ptr %85, i64 1
  br label %92

87:                                               ; preds = %71
  %88 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %89 = getelementptr inbounds %struct.s2n_debug_info, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !11
  %91 = getelementptr inbounds i8, ptr %90, i64 21
  br label %92

92:                                               ; preds = %87, %80
  %93 = phi ptr [ %86, %80 ], [ %91, %87 ]
  %94 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %95 = getelementptr inbounds %struct.s2n_debug_info, ptr %94, i32 0, i32 1
  store ptr %93, ptr %95, align 8, !tbaa !13
  %96 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762107, ptr %96, align 4, !tbaa !14
  %97 = call i32 @s2n_calculate_stacktrace()
  br label %98

98:                                               ; preds = %92
  br label %99

99:                                               ; preds = %98
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %439

100:                                              ; No predecessors!
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101, %66
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = call i32 @s2n_flush(ptr noundef %106, ptr noundef %107)
  %109 = icmp sgt i32 %108, -1
  br i1 %109, label %111, label %110

110:                                              ; preds = %105
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %439

111:                                              ; preds = %105
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 8
  %116 = lshr i32 %115, 18
  %117 = and i32 %116, 1
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %126

119:                                              ; preds = %113
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = load i64, ptr %9, align 8, !tbaa !9
  %123 = load i64, ptr %10, align 8, !tbaa !9
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = call i64 @s2n_ktls_sendv_with_offset(ptr noundef %120, ptr noundef %121, i64 noundef %122, i64 noundef %123, ptr noundef %124)
  store i64 %125, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %439

126:                                              ; preds = %113
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.s2n_connection, ptr %127, i32 0, i32 43
  %129 = load i64, ptr %128, align 8, !tbaa !16
  store i64 %129, ptr %12, align 8, !tbaa !9
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 2, ptr %130, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #6
  store i16 0, ptr %15, align 2, !tbaa !43
  br label %131

131:                                              ; preds = %126
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = call i32 @s2n_record_max_write_payload_size(ptr noundef %132, ptr noundef %15)
  %134 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  store i32 %133, ptr %134, align 4
  %135 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  %136 = load i32, ptr %135, align 4
  %137 = call zeroext i1 @s2n_result_is_ok(i32 %136)
  br i1 %137, label %139, label %138

138:                                              ; preds = %131
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %438

139:                                              ; preds = %131
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.s2n_connection, ptr %142, i32 0, i32 30
  %144 = load ptr, ptr %143, align 8, !tbaa !44
  store ptr %144, ptr %18, align 8, !tbaa !5
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.s2n_connection, ptr %145, i32 0, i32 13
  %147 = load i32, ptr %146, align 4, !tbaa !45
  %148 = icmp eq i32 %147, 1
  br i1 %148, label %149, label %153

149:                                              ; preds = %141
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.s2n_connection, ptr %150, i32 0, i32 29
  %152 = load ptr, ptr %151, align 8, !tbaa !46
  store ptr %152, ptr %18, align 8, !tbaa !5
  br label %153

153:                                              ; preds = %149, %141
  br label %154

154:                                              ; preds = %153
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = load i64, ptr %9, align 8, !tbaa !9
  %157 = load i64, ptr %10, align 8, !tbaa !9
  %158 = call i32 @s2n_sendv_with_offset_total_size(ptr noundef %155, i64 noundef %156, i64 noundef %157, ptr noundef %13)
  %159 = getelementptr inbounds %struct.s2n_result, ptr %19, i32 0, i32 0
  store i32 %158, ptr %159, align 4
  %160 = getelementptr inbounds %struct.s2n_result, ptr %19, i32 0, i32 0
  %161 = load i32, ptr %160, align 4
  %162 = call zeroext i1 @s2n_result_is_ok(i32 %161)
  br i1 %162, label %164, label %163

163:                                              ; preds = %154
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %437

164:                                              ; preds = %154
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.s2n_connection, ptr %168, i32 0, i32 43
  %170 = load i64, ptr %169, align 8, !tbaa !16
  %171 = load i64, ptr %13, align 8, !tbaa !9
  %172 = icmp sle i64 %170, %171
  br i1 %172, label %206, label %173

173:                                              ; preds = %167
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  %176 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %177 = getelementptr inbounds %struct.s2n_debug_info, ptr %176, i32 0, i32 0
  store ptr @.str.9, ptr %177, align 8, !tbaa !11
  %178 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %179 = getelementptr inbounds %struct.s2n_debug_info, ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !11
  %181 = getelementptr inbounds i8, ptr %180, i64 21
  %182 = call ptr @strrchr(ptr noundef %181, i32 noundef 47) #7
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %191

184:                                              ; preds = %175
  %185 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %186 = getelementptr inbounds %struct.s2n_debug_info, ptr %185, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8, !tbaa !11
  %188 = getelementptr inbounds i8, ptr %187, i64 21
  %189 = call ptr @strrchr(ptr noundef %188, i32 noundef 47) #7
  %190 = getelementptr inbounds i8, ptr %189, i64 1
  br label %196

191:                                              ; preds = %175
  %192 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %193 = getelementptr inbounds %struct.s2n_debug_info, ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !11
  %195 = getelementptr inbounds i8, ptr %194, i64 21
  br label %196

196:                                              ; preds = %191, %184
  %197 = phi ptr [ %190, %184 ], [ %195, %191 ]
  %198 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %199 = getelementptr inbounds %struct.s2n_debug_info, ptr %198, i32 0, i32 1
  store ptr %197, ptr %199, align 8, !tbaa !13
  %200 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762069, ptr %200, align 4, !tbaa !14
  %201 = call i32 @s2n_calculate_stacktrace()
  br label %202

202:                                              ; preds = %196
  br label %203

203:                                              ; preds = %202
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %437

204:                                              ; No predecessors!
  br label %205

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205, %167
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = load i64, ptr %13, align 8, !tbaa !9
  %212 = trunc i64 %211 to i32
  %213 = call i32 @s2n_early_data_validate_send(ptr noundef %210, i32 noundef %212)
  %214 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  store i32 %213, ptr %214, align 4
  %215 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  %216 = load i32, ptr %215, align 4
  %217 = call zeroext i1 @s2n_result_is_ok(i32 %216)
  br i1 %217, label %219, label %218

218:                                              ; preds = %209
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %437

219:                                              ; preds = %209
  br label %220

220:                                              ; preds = %219
  br label %221

221:                                              ; preds = %220
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.s2n_connection, ptr %222, i32 0, i32 55
  %224 = load i16, ptr %223, align 8, !tbaa !47
  %225 = zext i16 %224 to i32
  %226 = icmp sgt i32 %225, 0
  br i1 %226, label %227, label %264

227:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %228

228:                                              ; preds = %227
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.s2n_connection, ptr %229, i32 0, i32 1
  %231 = load ptr, ptr %230, align 8, !tbaa !48
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.s2n_connection, ptr %232, i32 0, i32 15
  %234 = call i32 @s2n_timer_elapsed(ptr noundef %231, ptr noundef %233, ptr noundef %21)
  %235 = getelementptr inbounds %struct.s2n_result, ptr %22, i32 0, i32 0
  store i32 %234, ptr %235, align 4
  %236 = getelementptr inbounds %struct.s2n_result, ptr %22, i32 0, i32 0
  %237 = load i32, ptr %236, align 4
  %238 = call zeroext i1 @s2n_result_is_ok(i32 %237)
  br i1 %238, label %240, label %239

239:                                              ; preds = %228
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %261

240:                                              ; preds = %228
  br label %241

241:                                              ; preds = %240
  br label %242

242:                                              ; preds = %241
  %243 = load i64, ptr %21, align 8, !tbaa !9
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.s2n_connection, ptr %244, i32 0, i32 16
  %246 = load i64, ptr %245, align 8, !tbaa !49
  %247 = sub i64 %243, %246
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.s2n_connection, ptr %248, i32 0, i32 55
  %250 = load i16, ptr %249, align 8, !tbaa !47
  %251 = zext i16 %250 to i64
  %252 = mul i64 %251, 1000000000
  %253 = icmp ugt i64 %247, %252
  br i1 %253, label %254, label %257

254:                                              ; preds = %242
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.s2n_connection, ptr %255, i32 0, i32 56
  store i64 0, ptr %256, align 8, !tbaa !50
  br label %257

257:                                              ; preds = %254, %242
  %258 = load i64, ptr %21, align 8, !tbaa !9
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.s2n_connection, ptr %259, i32 0, i32 16
  store i64 %258, ptr %260, align 8, !tbaa !49
  store i32 0, ptr %14, align 4
  br label %261

261:                                              ; preds = %257, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  %262 = load i32, ptr %14, align 4
  switch i32 %262, label %437 [
    i32 0, label %263
  ]

263:                                              ; preds = %261
  br label %264

264:                                              ; preds = %263, %221
  br label %265

265:                                              ; preds = %431, %264
  %266 = load i64, ptr %13, align 8, !tbaa !9
  %267 = load ptr, ptr %7, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.s2n_connection, ptr %267, i32 0, i32 43
  %269 = load i64, ptr %268, align 8, !tbaa !16
  %270 = sub nsw i64 %266, %269
  %271 = icmp ne i64 %270, 0
  br i1 %271, label %272, label %432

272:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %273 = load i64, ptr %13, align 8, !tbaa !9
  %274 = load ptr, ptr %7, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.s2n_connection, ptr %274, i32 0, i32 43
  %276 = load i64, ptr %275, align 8, !tbaa !16
  %277 = sub nsw i64 %273, %276
  %278 = load i16, ptr %15, align 2, !tbaa !43
  %279 = zext i16 %278 to i64
  %280 = icmp slt i64 %277, %279
  br i1 %280, label %281, label %287

281:                                              ; preds = %272
  %282 = load i64, ptr %13, align 8, !tbaa !9
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.s2n_connection, ptr %283, i32 0, i32 43
  %285 = load i64, ptr %284, align 8, !tbaa !16
  %286 = sub nsw i64 %282, %285
  br label %290

287:                                              ; preds = %272
  %288 = load i16, ptr %15, align 2, !tbaa !43
  %289 = zext i16 %288 to i64
  br label %290

290:                                              ; preds = %287, %281
  %291 = phi i64 [ %286, %281 ], [ %289, %287 ]
  store i64 %291, ptr %23, align 8, !tbaa !9
  %292 = load ptr, ptr %7, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.s2n_connection, ptr %292, i32 0, i32 56
  %294 = load i64, ptr %293, align 8, !tbaa !50
  %295 = load ptr, ptr %7, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.s2n_connection, ptr %295, i32 0, i32 54
  %297 = load i32, ptr %296, align 4, !tbaa !51
  %298 = zext i32 %297 to i64
  %299 = icmp ult i64 %294, %298
  br i1 %299, label %300, label %326

300:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #6
  store i16 0, ptr %24, align 2, !tbaa !43
  br label %301

301:                                              ; preds = %300
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = call i32 @s2n_record_min_write_payload_size(ptr noundef %302, ptr noundef %24)
  %304 = getelementptr inbounds %struct.s2n_result, ptr %25, i32 0, i32 0
  store i32 %303, ptr %304, align 4
  %305 = getelementptr inbounds %struct.s2n_result, ptr %25, i32 0, i32 0
  %306 = load i32, ptr %305, align 4
  %307 = call zeroext i1 @s2n_result_is_ok(i32 %306)
  br i1 %307, label %309, label %308

308:                                              ; preds = %301
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %323

309:                                              ; preds = %301
  br label %310

310:                                              ; preds = %309
  br label %311

311:                                              ; preds = %310
  %312 = load i16, ptr %24, align 2, !tbaa !43
  %313 = zext i16 %312 to i64
  %314 = load i64, ptr %23, align 8, !tbaa !9
  %315 = icmp slt i64 %313, %314
  br i1 %315, label %316, label %319

316:                                              ; preds = %311
  %317 = load i16, ptr %24, align 2, !tbaa !43
  %318 = zext i16 %317 to i64
  br label %321

319:                                              ; preds = %311
  %320 = load i64, ptr %23, align 8, !tbaa !9
  br label %321

321:                                              ; preds = %319, %316
  %322 = phi i64 [ %318, %316 ], [ %320, %319 ]
  store i64 %322, ptr %23, align 8, !tbaa !9
  store i32 0, ptr %14, align 4
  br label %323

323:                                              ; preds = %321, %308
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #6
  %324 = load i32, ptr %14, align 4
  switch i32 %324, label %429 [
    i32 0, label %325
  ]

325:                                              ; preds = %323
  br label %326

326:                                              ; preds = %325, %290
  %327 = load ptr, ptr %7, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.s2n_connection, ptr %327, i32 0, i32 23
  %329 = load i8, ptr %328, align 4, !tbaa !52
  %330 = zext i8 %329 to i32
  %331 = icmp slt i32 %330, 32
  br i1 %331, label %332, label %356

332:                                              ; preds = %326
  %333 = load ptr, ptr %18, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %333, i32 0, i32 0
  %335 = load ptr, ptr %334, align 8, !tbaa !53
  %336 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %335, i32 0, i32 6
  %337 = load ptr, ptr %336, align 8, !tbaa !58
  %338 = getelementptr inbounds %struct.s2n_record_algorithm, ptr %337, i32 0, i32 0
  %339 = load ptr, ptr %338, align 8, !tbaa !60
  %340 = getelementptr inbounds %struct.s2n_cipher, ptr %339, i32 0, i32 0
  %341 = load i32, ptr %340, align 8, !tbaa !62
  %342 = icmp eq i32 %341, 1
  br i1 %342, label %343, label %356

343:                                              ; preds = %332
  %344 = load ptr, ptr %7, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.s2n_connection, ptr %344, i32 0, i32 13
  %346 = load i32, ptr %345, align 4, !tbaa !45
  %347 = icmp ne i32 %346, 0
  br i1 %347, label %348, label %356

348:                                              ; preds = %343
  %349 = load i64, ptr %23, align 8, !tbaa !9
  %350 = icmp sgt i64 %349, 1
  br i1 %350, label %351, label %355

351:                                              ; preds = %348
  %352 = load i32, ptr %17, align 4, !tbaa !14
  %353 = icmp eq i32 %352, 0
  br i1 %353, label %354, label %355

354:                                              ; preds = %351
  store i64 1, ptr %23, align 8, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !14
  br label %355

355:                                              ; preds = %354, %351, %348
  br label %356

356:                                              ; preds = %355, %343, %332, %326
  br label %357

357:                                              ; preds = %356
  %358 = load ptr, ptr %7, align 8, !tbaa !5
  %359 = load ptr, ptr %11, align 8, !tbaa !5
  %360 = call i32 @s2n_post_handshake_send(ptr noundef %358, ptr noundef %359)
  %361 = icmp sgt i32 %360, -1
  br i1 %361, label %363, label %362

362:                                              ; preds = %357
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %429

363:                                              ; preds = %357
  br label %364

364:                                              ; preds = %363
  br label %365

365:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %366 = load ptr, ptr %7, align 8, !tbaa !5
  %367 = load ptr, ptr %8, align 8, !tbaa !5
  %368 = load i64, ptr %9, align 8, !tbaa !9
  %369 = trunc i64 %368 to i32
  %370 = load ptr, ptr %7, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.s2n_connection, ptr %370, i32 0, i32 43
  %372 = load i64, ptr %371, align 8, !tbaa !16
  %373 = load i64, ptr %10, align 8, !tbaa !9
  %374 = add nsw i64 %372, %373
  %375 = load i64, ptr %23, align 8, !tbaa !9
  %376 = call i32 @s2n_record_writev(ptr noundef %366, i8 noundef zeroext 23, ptr noundef %367, i32 noundef %369, i64 noundef %374, i64 noundef %375)
  store i32 %376, ptr %26, align 4, !tbaa !14
  br label %377

377:                                              ; preds = %365
  %378 = load i32, ptr %26, align 4, !tbaa !14
  %379 = icmp sgt i32 %378, -1
  br i1 %379, label %381, label %380

380:                                              ; preds = %377
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %428

381:                                              ; preds = %377
  br label %382

382:                                              ; preds = %381
  br label %383

383:                                              ; preds = %382
  %384 = load i32, ptr %26, align 4, !tbaa !14
  %385 = sext i32 %384 to i64
  %386 = load ptr, ptr %7, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.s2n_connection, ptr %386, i32 0, i32 43
  %388 = load i64, ptr %387, align 8, !tbaa !16
  %389 = add nsw i64 %388, %385
  store i64 %389, ptr %387, align 8, !tbaa !16
  %390 = load i32, ptr %26, align 4, !tbaa !14
  %391 = sext i32 %390 to i64
  %392 = load ptr, ptr %7, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.s2n_connection, ptr %392, i32 0, i32 56
  %394 = load i64, ptr %393, align 8, !tbaa !50
  %395 = add i64 %394, %391
  store i64 %395, ptr %393, align 8, !tbaa !50
  %396 = load ptr, ptr %7, align 8, !tbaa !5
  %397 = load i64, ptr %13, align 8, !tbaa !9
  %398 = call zeroext i1 @s2n_should_flush(ptr noundef %396, i64 noundef %397)
  br i1 %398, label %399, label %427

399:                                              ; preds = %383
  %400 = load ptr, ptr %7, align 8, !tbaa !5
  %401 = load ptr, ptr %11, align 8, !tbaa !5
  %402 = call i32 @s2n_flush(ptr noundef %400, ptr noundef %401)
  %403 = icmp slt i32 %402, 0
  br i1 %403, label %404, label %423

404:                                              ; preds = %399
  %405 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %406 = load i32, ptr %405, align 4, !tbaa !14
  %407 = icmp eq i32 %406, 201326592
  br i1 %407, label %408, label %418

408:                                              ; preds = %404
  %409 = load i64, ptr %12, align 8, !tbaa !9
  %410 = icmp sgt i64 %409, 0
  br i1 %410, label %411, label %418

411:                                              ; preds = %408
  %412 = load i64, ptr %12, align 8, !tbaa !9
  %413 = load ptr, ptr %7, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.s2n_connection, ptr %413, i32 0, i32 43
  %415 = load i64, ptr %414, align 8, !tbaa !16
  %416 = sub nsw i64 %415, %412
  store i64 %416, ptr %414, align 8, !tbaa !16
  %417 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %417, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %428

418:                                              ; preds = %408, %404
  br label %419

419:                                              ; preds = %418
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %428

420:                                              ; No predecessors!
  br label %421

421:                                              ; preds = %420
  br label %422

422:                                              ; preds = %421
  br label %423

423:                                              ; preds = %422, %399
  %424 = load ptr, ptr %7, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.s2n_connection, ptr %424, i32 0, i32 43
  %426 = load i64, ptr %425, align 8, !tbaa !16
  store i64 %426, ptr %12, align 8, !tbaa !9
  br label %427

427:                                              ; preds = %423, %383
  store i32 0, ptr %14, align 4
  br label %428

428:                                              ; preds = %427, %419, %411, %380
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %429

429:                                              ; preds = %428, %362, %323
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  %430 = load i32, ptr %14, align 4
  switch i32 %430, label %437 [
    i32 0, label %431
  ]

431:                                              ; preds = %429
  br label %265, !llvm.loop !64

432:                                              ; preds = %265
  %433 = load ptr, ptr %7, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.s2n_connection, ptr %433, i32 0, i32 43
  store i64 0, ptr %434, align 8, !tbaa !16
  %435 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 0, ptr %435, align 4, !tbaa !14
  %436 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %436, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %437

437:                                              ; preds = %432, %429, %261, %218, %203, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %438

438:                                              ; preds = %437, %138
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #6
  br label %439

439:                                              ; preds = %438, %119, %110, %99, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %440 = load i64, ptr %6, align 8
  ret i64 %440
}

declare zeroext i1 @s2n_connection_check_io_status(ptr noundef, i32 noundef) #3

declare zeroext i1 @s2n_connection_is_quic_enabled(ptr noundef) #3

declare i64 @s2n_ktls_sendv_with_offset(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

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

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

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

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

declare i32 @s2n_record_writev(ptr noundef, i8 noundef zeroext, ptr noundef, i32 noundef, i64 noundef, i64 noundef) #3

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

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

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


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

%struct.s2n_debug_info = type { ptr, ptr }

@_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.7 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [85 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @s2n_should_flush(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @s2n_sendv_with_offset_impl(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca i64, align 8
  %7 = alloca i16, align 2
  %8 = alloca i64, align 8
  %9 = alloca i16, align 2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store i64 0, ptr %6, align 8, !tbaa !5
  %10 = tail call zeroext i1 @s2n_connection_check_io_status(ptr noundef %0, i32 noundef 0) #7
  br i1 %10, label %19, label %11

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

19:                                               ; preds = %5
  %20 = tail call zeroext i1 @s2n_connection_is_quic_enabled(ptr noundef %0) #7
  br i1 %20, label %21, label %29

21:                                               ; preds = %19
  %22 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.8, ptr %22, align 8, !tbaa !9
  %23 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.8, i64 21), i32 noundef 47) #8
  %.not103 = icmp eq ptr %23, null
  %24 = getelementptr inbounds i8, ptr %23, i64 1
  %25 = select i1 %.not103, ptr getelementptr inbounds (i8, ptr @.str.8, i64 21), ptr %24
  %26 = getelementptr inbounds i8, ptr %22, i64 8
  store ptr %25, ptr %26, align 8, !tbaa !12
  %27 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762107, ptr %27, align 4, !tbaa !13
  %28 = tail call i32 @s2n_calculate_stacktrace() #7
  br label %154

29:                                               ; preds = %19
  %30 = tail call i32 @s2n_flush(ptr noundef %0, ptr noundef %4)
  %31 = icmp sgt i32 %30, -1
  br i1 %31, label %32, label %154

32:                                               ; preds = %29
  %33 = load i32, ptr %0, align 8
  %34 = and i32 %33, 262144
  %.not97 = icmp eq i32 %34, 0
  br i1 %.not97, label %37, label %35

35:                                               ; preds = %32
  %36 = tail call i64 @s2n_ktls_sendv_with_offset(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #7
  br label %154

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %0, i64 1944
  %39 = load i64, ptr %38, align 8, !tbaa !15
  store i32 2, ptr %4, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #7
  store i16 0, ptr %7, align 2, !tbaa !42
  %40 = call i32 @s2n_record_max_write_payload_size(ptr noundef nonnull %0, ptr noundef nonnull %7) #7
  %41 = call zeroext i1 @s2n_result_is_ok(i32 %40)
  br i1 %41, label %42, label %.thread

42:                                               ; preds = %37
  %43 = getelementptr inbounds i8, ptr %0, i64 148
  %44 = load i32, ptr %43, align 4, !tbaa !43
  %45 = icmp eq i32 %44, 1
  %spec.select.v = select i1 %45, i64 632, i64 640
  %spec.select = getelementptr inbounds i8, ptr %0, i64 %spec.select.v
  %.090 = load ptr, ptr %spec.select, align 8, !tbaa !44
  %46 = call i32 @s2n_sendv_with_offset_total_size(ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef nonnull %6)
  %47 = call zeroext i1 @s2n_result_is_ok(i32 %46)
  br i1 %47, label %48, label %.thread

48:                                               ; preds = %42
  %49 = load i64, ptr %38, align 8, !tbaa !15
  %50 = load i64, ptr %6, align 8, !tbaa !5
  %.not98 = icmp sgt i64 %49, %50
  br i1 %.not98, label %51, label %59

51:                                               ; preds = %48
  %52 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.9, ptr %52, align 8, !tbaa !9
  %53 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.9, i64 21), i32 noundef 47) #8
  %.not99 = icmp eq ptr %53, null
  %54 = getelementptr inbounds i8, ptr %53, i64 1
  %55 = select i1 %.not99, ptr getelementptr inbounds (i8, ptr @.str.9, i64 21), ptr %54
  %56 = getelementptr inbounds i8, ptr %52, i64 8
  store ptr %55, ptr %56, align 8, !tbaa !12
  %57 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762069, ptr %57, align 4, !tbaa !13
  %58 = call i32 @s2n_calculate_stacktrace() #7
  br label %.thread

59:                                               ; preds = %48
  %60 = trunc i64 %50 to i32
  %61 = call i32 @s2n_early_data_validate_send(ptr noundef nonnull %0, i32 noundef %60) #7
  %62 = call zeroext i1 @s2n_result_is_ok(i32 %61)
  br i1 %62, label %63, label %.thread

63:                                               ; preds = %59
  %64 = getelementptr inbounds i8, ptr %0, i64 2216
  %65 = load i16, ptr %64, align 8, !tbaa !45
  %.not100 = icmp eq i16 %65, 0
  br i1 %.not100, label %84, label %66

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store i64 0, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %0, i64 8
  %68 = load ptr, ptr %67, align 8, !tbaa !46
  %69 = getelementptr inbounds i8, ptr %0, i64 160
  %70 = call i32 @s2n_timer_elapsed(ptr noundef %68, ptr noundef nonnull %69, ptr noundef nonnull %8) #7
  %71 = call zeroext i1 @s2n_result_is_ok(i32 %70)
  br i1 %71, label %72, label %.critedge

72:                                               ; preds = %66
  %73 = load i64, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %0, i64 168
  %75 = load i64, ptr %74, align 8, !tbaa !47
  %76 = sub i64 %73, %75
  %77 = load i16, ptr %64, align 8, !tbaa !45
  %78 = zext i16 %77 to i64
  %79 = mul nuw nsw i64 %78, 1000000000
  %80 = icmp ugt i64 %76, %79
  br i1 %80, label %81, label %83

81:                                               ; preds = %72
  %82 = getelementptr inbounds i8, ptr %0, i64 2224
  store i64 0, ptr %82, align 8, !tbaa !48
  br label %83

83:                                               ; preds = %81, %72
  store i64 %73, ptr %74, align 8, !tbaa !47
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %84

84:                                               ; preds = %83, %63
  %85 = load i64, ptr %6, align 8, !tbaa !5
  %86 = load i64, ptr %38, align 8, !tbaa !15
  %.not101115 = icmp eq i64 %85, %86
  br i1 %.not101115, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %84
  %87 = getelementptr inbounds i8, ptr %0, i64 2224
  %88 = getelementptr inbounds i8, ptr %0, i64 2212
  %89 = getelementptr inbounds i8, ptr %0, i64 220
  %90 = trunc i64 %2 to i32
  br label %91

91:                                               ; preds = %.lr.ph, %151
  %92 = phi i64 [ %86, %.lr.ph ], [ %152, %151 ]
  %93 = phi i64 [ %85, %.lr.ph ], [ %153, %151 ]
  %.076117 = phi i64 [ %39, %.lr.ph ], [ %.379, %151 ]
  %.087116 = phi i32 [ 0, %.lr.ph ], [ %.188, %151 ]
  %94 = sub nsw i64 %93, %92
  %95 = load i16, ptr %7, align 2, !tbaa !42
  %96 = zext i16 %95 to i64
  %. = call i64 @llvm.smin.i64(i64 %94, i64 %96)
  %97 = load i64, ptr %87, align 8, !tbaa !48
  %98 = load i32, ptr %88, align 4, !tbaa !49
  %99 = zext i32 %98 to i64
  %100 = icmp ult i64 %97, %99
  br i1 %100, label %101, label %107

101:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %9) #7
  store i16 0, ptr %9, align 2, !tbaa !42
  %102 = call i32 @s2n_record_min_write_payload_size(ptr noundef nonnull %0, ptr noundef nonnull %9) #7
  %103 = call zeroext i1 @s2n_result_is_ok(i32 %102)
  %104 = load i16, ptr %9, align 2
  %105 = zext i16 %104 to i64
  %106 = call i64 @llvm.smin.i64(i64 %., i64 %105)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %9) #7
  br i1 %103, label %107, label %.thread

107:                                              ; preds = %101, %91
  %.181 = phi i64 [ %106, %101 ], [ %., %91 ]
  %108 = load i8, ptr %89, align 4, !tbaa !50
  %109 = icmp ult i8 %108, 32
  br i1 %109, label %110, label %122

110:                                              ; preds = %107
  %111 = load ptr, ptr %.090, align 8, !tbaa !51
  %112 = getelementptr inbounds i8, ptr %111, i64 48
  %113 = load ptr, ptr %112, align 8, !tbaa !56
  %114 = load ptr, ptr %113, align 8, !tbaa !58
  %115 = load i32, ptr %114, align 8, !tbaa !60
  %116 = icmp eq i32 %115, 1
  br i1 %116, label %117, label %122

117:                                              ; preds = %110
  %118 = load i32, ptr %43, align 4, !tbaa !43
  %.not102 = icmp eq i32 %118, 0
  br i1 %.not102, label %122, label %119

119:                                              ; preds = %117
  %120 = icmp sgt i64 %.181, 1
  %121 = icmp eq i32 %.087116, 0
  %or.cond = select i1 %120, i1 %121, i1 false
  %spec.select104 = select i1 %or.cond, i32 1, i32 %.087116
  %spec.select105 = select i1 %or.cond, i64 1, i64 %.181
  br label %122

122:                                              ; preds = %119, %107, %110, %117
  %.188 = phi i32 [ %.087116, %117 ], [ %.087116, %110 ], [ %.087116, %107 ], [ %spec.select104, %119 ]
  %.282 = phi i64 [ %.181, %117 ], [ %.181, %110 ], [ %.181, %107 ], [ %spec.select105, %119 ]
  %123 = call i32 @s2n_post_handshake_send(ptr noundef nonnull %0, ptr noundef nonnull %4) #7
  %124 = icmp sgt i32 %123, -1
  br i1 %124, label %125, label %.thread

125:                                              ; preds = %122
  %126 = load i64, ptr %38, align 8, !tbaa !15
  %127 = add nsw i64 %126, %3
  %128 = call i32 @s2n_record_writev(ptr noundef nonnull %0, i8 noundef zeroext 23, ptr noundef %1, i32 noundef %90, i64 noundef %127, i64 noundef %.282) #7
  %129 = icmp sgt i32 %128, -1
  br i1 %129, label %130, label %.thread

130:                                              ; preds = %125
  %131 = zext nneg i32 %128 to i64
  %132 = load i64, ptr %38, align 8, !tbaa !15
  %133 = add nsw i64 %132, %131
  store i64 %133, ptr %38, align 8, !tbaa !15
  %134 = load i64, ptr %87, align 8, !tbaa !48
  %135 = add i64 %134, %131
  store i64 %135, ptr %87, align 8, !tbaa !48
  %136 = load i64, ptr %6, align 8, !tbaa !5
  %137 = call zeroext i1 @s2n_should_flush(ptr noundef nonnull %0, i64 noundef %136)
  br i1 %137, label %138, label %._crit_edge121

._crit_edge121:                                   ; preds = %130
  %.pre = load i64, ptr %38, align 8, !tbaa !15
  br label %151

138:                                              ; preds = %130
  %139 = call i32 @s2n_flush(ptr noundef nonnull %0, ptr noundef nonnull %4)
  %140 = icmp slt i32 %139, 0
  br i1 %140, label %141, label %149

141:                                              ; preds = %138
  %142 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %143 = load i32, ptr %142, align 4, !tbaa !13
  %144 = icmp eq i32 %143, 201326592
  %145 = icmp sgt i64 %.076117, 0
  %or.cond5 = select i1 %144, i1 %145, i1 false
  br i1 %or.cond5, label %146, label %.thread

146:                                              ; preds = %141
  %147 = load i64, ptr %38, align 8, !tbaa !15
  %148 = sub nsw i64 %147, %.076117
  store i64 %148, ptr %38, align 8, !tbaa !15
  br label %.thread

149:                                              ; preds = %138
  %150 = load i64, ptr %38, align 8, !tbaa !15
  br label %151

151:                                              ; preds = %._crit_edge121, %149
  %152 = phi i64 [ %150, %149 ], [ %.pre, %._crit_edge121 ]
  %.379 = phi i64 [ %150, %149 ], [ %.076117, %._crit_edge121 ]
  %153 = load i64, ptr %6, align 8, !tbaa !5
  %.not101 = icmp eq i64 %153, %152
  br i1 %.not101, label %._crit_edge, label %91, !llvm.loop !62

._crit_edge:                                      ; preds = %151, %84
  %.lcssa = phi i64 [ %85, %84 ], [ %152, %151 ]
  store i64 0, ptr %38, align 8, !tbaa !15
  store i32 0, ptr %4, align 4, !tbaa !13
  br label %.thread

.critedge:                                        ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %.thread

.thread:                                          ; preds = %125, %122, %101, %141, %146, %51, %._crit_edge, %42, %59, %.critedge, %37
  %.8 = phi i64 [ -1, %37 ], [ %.lcssa, %._crit_edge ], [ -1, %51 ], [ -1, %42 ], [ -1, %59 ], [ -1, %.critedge ], [ -1, %141 ], [ %.076117, %146 ], [ -1, %101 ], [ -1, %122 ], [ -1, %125 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #7
  br label %154

154:                                              ; preds = %29, %.thread, %35, %21, %11
  %.9 = phi i64 [ -1, %21 ], [ %36, %35 ], [ %.8, %.thread ], [ -1, %11 ], [ -1, %29 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret i64 %.9
}

declare zeroext i1 @s2n_connection_check_io_status(ptr noundef, i32 noundef) local_unnamed_addr #3

declare zeroext i1 @s2n_connection_is_quic_enabled(ptr noundef) local_unnamed_addr #3

declare i64 @s2n_ktls_sendv_with_offset(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

declare i32 @s2n_record_writev(ptr noundef, i8 noundef zeroext, ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #6

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

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"s2n_debug_info", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 1944}
!16 = !{!"s2n_connection", !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !7, i64 80, !7, i64 102, !7, i64 124, !14, i64 148, !14, i64 152, !17, i64 160, !6, i64 168, !6, 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, !11, i64 224, !11, i64 232, !18, i64 240, !11, i64 632, !11, i64 640, !19, i64 648, !26, i64 1144, !29, i64 1688, !11, i64 1752, !7, i64 1760, !14, i64 1764, !7, i64 1768, !32, i64 1776, !32, i64 1816, !32, i64 1856, !32, i64 1896, !14, i64 1936, !6, 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, !14, i64 2212, !31, i64 2216, !6, i64 2224, !7, i64 2232, !6, i64 2240, !6, i64 2248, !6, i64 2256, !33, i64 2264, !33, i64 2268, !7, i64 2272, !7, i64 2528, !14, i64 2784, !24, i64 2792, !14, i64 2816, !24, i64 2824, !24, i64 2848, !24, i64 2872, !36, i64 2896, !38, i64 3704, !11, i64 3760, !11, i64 3768, !7, i64 3776, !14, i64 3780, !24, i64 3784, !14, 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, !14, i64 4088, !14, i64 4092, !24, i64 4096, !14, i64 4120, !41, i64 4128, !33, i64 4176, !7, i64 4180, !7, i64 4181}
!17 = !{!"s2n_timer", !6, i64 0}
!18 = !{!"s2n_secrets", !7, i64 0, !14, 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", !11, i64 0}
!21 = !{!"s2n_ecc_evp_params", !11, i64 0, !11, i64 8}
!22 = !{!"s2n_kem_group_params", !11, i64 0, !23, i64 8, !21, i64 96}
!23 = !{!"s2n_kem_params", !11, i64 0, !24, i64 8, !24, i64 32, !24, i64 56, !25, i64 80}
!24 = !{!"s2n_blob", !11, i64 0, !14, i64 8, !14, i64 12, !14, i64 16}
!25 = !{!"_Bool", !7, i64 0}
!26 = !{!"s2n_handshake_parameters", !27, i64 0, !27, i64 48, !24, i64 96, !14, i64 120, !28, i64 124, !11, i64 384, !11, i64 392, !11, i64 400, !7, i64 408, !7, i64 440, !7, i64 472, !7, i64 473, !7, i64 474, !7, i64 506}
!27 = !{!"s2n_pkey", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!28 = !{!"s2n_sig_scheme_list", !7, i64 0, !7, i64 256}
!29 = !{!"s2n_psk_parameters", !14, i64 0, !30, i64 8, !31, i64 40, !31, i64 42, !11, i64 48, !14, i64 56}
!30 = !{!"s2n_array", !24, i64 0, !14, i64 24, !14, i64 28}
!31 = !{!"short", !7, i64 0}
!32 = !{!"s2n_stuffer", !24, i64 0, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 36, !14, i64 36}
!33 = !{!"", !14, i64 0}
!34 = !{!"s2n_handshake", !32, i64 0, !11, i64 40, !7, i64 48, !7, i64 56, !7, i64 104, !7, i64 152, !14, i64 156, !14, i64 160, !14, i64 164, !14, i64 168, !35, i64 176, !14, i64 184, !14, i64 184, !14, i64 184, !14, i64 184, !14, i64 188}
!35 = !{!"s2n_offered_early_data", !11, 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, !14, i64 802, !14, i64 802, !14, i64 802, !14, i64 802, !14, i64 802, !14, i64 802, !14, i64 802}
!37 = !{!"", !7, i64 0, !24, i64 672, !31, i64 696}
!38 = !{!"s2n_x509_validator", !11, i64 0, !11, i64 8, !7, i64 16, !7, i64 17, !31, i64 18, !11, i64 24, !14, i64 32, !11, i64 40, !39, i64 48, !25, i64 52}
!39 = !{!"s2n_cert_validation_info", !14, i64 0, !14, i64 0}
!40 = !{!"s2n_ticket_fields", !24, i64 0, !14, i64 24}
!41 = !{!"s2n_post_handshake", !32, i64 0, !7, i64 40}
!42 = !{!31, !31, i64 0}
!43 = !{!16, !14, i64 148}
!44 = !{!11, !11, i64 0}
!45 = !{!16, !31, i64 2216}
!46 = !{!16, !11, i64 8}
!47 = !{!16, !6, i64 168}
!48 = !{!16, !6, i64 2224}
!49 = !{!16, !14, i64 2212}
!50 = !{!16, !7, i64 220}
!51 = !{!52, !11, i64 0}
!52 = !{!"s2n_crypto_parameters", !11, i64 0, !53, i64 8, !53, i64 16, !54, i64 24, !54, i64 456, !7, i64 888, !7, i64 904, !7, i64 920, !7, i64 928}
!53 = !{!"s2n_session_key", !11, i64 0}
!54 = !{!"s2n_hmac_state", !14, i64 0, !31, i64 4, !14, i64 8, !31, i64 12, !7, i64 14, !55, i64 16, !55, i64 72, !55, i64 128, !55, i64 184, !7, i64 240, !7, i64 368}
!55 = !{!"s2n_hash_state", !11, i64 0, !14, i64 8, !7, i64 12, !6, i64 16, !7, i64 24}
!56 = !{!57, !11, i64 48}
!57 = !{!"s2n_cipher_suite", !14, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !11, i64 32, !14, i64 40, !11, i64 48, !7, i64 56, !7, i64 72, !11, i64 80, !11, i64 88, !14, i64 96, !7, i64 100}
!58 = !{!59, !11, i64 0}
!59 = !{!"s2n_record_algorithm", !11, i64 0, !14, i64 8, !14, i64 12, !6, i64 16}
!60 = !{!61, !14, i64 0}
!61 = !{!"s2n_cipher", !14, i64 0, !7, i64 8, !7, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96}
!62 = distinct !{!62, !63}
!63 = !{!"llvm.loop.mustprogress"}


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