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

; 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_blob = type { ptr, 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_stuffer = type { %struct.s2n_blob, i32, i32, i32, i8 }
%struct.s2n_post_handshake = type { %struct.s2n_stuffer, [4 x i8] }
%struct.s2n_atomic_flag = type { i32 }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.27 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [88 x i8], align 1

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

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

declare i32 @s2n_calculate_stacktrace() #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_ktls_sendmsg(ptr noundef, i8 noundef zeroext, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @s2n_ktls_sendv_with_offset(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #4 {
  %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 i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %struct.s2n_result, align 4
  %17 = alloca %struct.s2n_result, align 4
  %18 = alloca [256 x i8], align 16
  %19 = alloca %struct.s2n_blob, align 8
  %20 = alloca %struct.s2n_result, align 4
  %21 = alloca i64, align 8
  %22 = alloca %struct.s2n_result, align 4
  %23 = alloca %struct.s2n_result, 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
  br label %24

24:                                               ; preds = %5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %58, label %27

27:                                               ; preds = %24
  br label %28

28:                                               ; preds = %27
  br label %29

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

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

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

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

56:                                               ; preds = %50
  store i64 -1, ptr %6, align 8
  br label %219

57:                                               ; No predecessors!
  br label %58

58:                                               ; preds = %57, %24
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  %61 = load i64, ptr %9, align 8, !tbaa !9
  %62 = icmp sge i64 %61, 0
  br i1 %62, label %94, label %63

63:                                               ; preds = %60
  br label %64

64:                                               ; preds = %63
  br label %65

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

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

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

86:                                               ; preds = %81, %74
  %87 = phi ptr [ %80, %74 ], [ %85, %81 ]
  %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 1
  store ptr %87, ptr %89, align 8, !tbaa !13
  %90 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762089, ptr %90, align 4, !tbaa !14
  %91 = call i32 @s2n_calculate_stacktrace()
  br label %92

92:                                               ; preds = %86
  store i64 -1, ptr %6, align 8
  br label %219

93:                                               ; No predecessors!
  br label %94

94:                                               ; preds = %93, %60
  br label %95

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %96 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %96, ptr %12, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %95
  %98 = load i64, ptr %10, align 8, !tbaa !9
  %99 = icmp sge i64 %98, 0
  br i1 %99, label %133, label %100

100:                                              ; preds = %97
  br label %101

101:                                              ; preds = %100
  br label %102

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

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

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

123:                                              ; preds = %118, %111
  %124 = phi ptr [ %117, %111 ], [ %122, %118 ]
  %125 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %126 = getelementptr inbounds %struct.s2n_debug_info, ptr %125, i32 0, i32 1
  store ptr %124, ptr %126, align 8, !tbaa !13
  %127 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762089, ptr %127, align 4, !tbaa !14
  %128 = call i32 @s2n_calculate_stacktrace()
  br label %129

129:                                              ; preds = %123
  br label %130

130:                                              ; preds = %129
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %218

131:                                              ; No predecessors!
  br label %132

132:                                              ; preds = %131
  br label %133

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

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %136 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %136, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %137

137:                                              ; preds = %135
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = load i64, ptr %9, align 8, !tbaa !9
  %140 = load i64, ptr %10, align 8, !tbaa !9
  %141 = call i32 @s2n_sendv_with_offset_total_size(ptr noundef %138, i64 noundef %139, i64 noundef %140, ptr noundef %15)
  %142 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  store i32 %141, ptr %142, align 4
  %143 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  %144 = load i32, ptr %143, align 4
  %145 = call zeroext i1 @s2n_result_is_ok(i32 %144)
  br i1 %145, label %147, label %146

146:                                              ; preds = %137
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %217

147:                                              ; preds = %137
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = load i64, ptr %15, align 8, !tbaa !9
  %153 = call i32 @s2n_ktls_check_estimated_record_limit(ptr noundef %151, i64 noundef %152)
  %154 = getelementptr inbounds %struct.s2n_result, ptr %17, i32 0, i32 0
  store i32 %153, ptr %154, align 4
  %155 = getelementptr inbounds %struct.s2n_result, ptr %17, i32 0, i32 0
  %156 = load i32, ptr %155, align 4
  %157 = call zeroext i1 @s2n_result_is_ok(i32 %156)
  br i1 %157, label %159, label %158

158:                                              ; preds = %150
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %217

159:                                              ; preds = %150
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 256, ptr %18) #8
  call void @llvm.memset.p0.i64(ptr align 16 %18, i8 0, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #8
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 24, i1 false)
  br label %162

162:                                              ; preds = %161
  %163 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 0
  %164 = call i32 @s2n_blob_init(ptr noundef %19, ptr noundef %163, i32 noundef 256)
  %165 = icmp sgt i32 %164, -1
  br i1 %165, label %167, label %166

166:                                              ; preds = %162
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %215

167:                                              ; preds = %162
  br label %168

168:                                              ; preds = %167
  br label %169

169:                                              ; preds = %168
  %170 = load i64, ptr %14, align 8, !tbaa !9
  %171 = icmp ugt i64 %170, 0
  br i1 %171, label %172, label %184

172:                                              ; preds = %169
  br label %173

173:                                              ; preds = %172
  %174 = load i64, ptr %14, align 8, !tbaa !9
  %175 = call i32 @s2n_ktls_update_bufs_with_offset(ptr noundef %8, ptr noundef %12, i64 noundef %174, ptr noundef %19)
  %176 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  store i32 %175, ptr %176, align 4
  %177 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  %178 = load i32, ptr %177, align 4
  %179 = call zeroext i1 @s2n_result_is_ok(i32 %178)
  br i1 %179, label %181, label %180

180:                                              ; preds = %173
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %215

181:                                              ; preds = %173
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  br label %184

184:                                              ; preds = %183, %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.s2n_connection, ptr %186, i32 0, i32 8
  %188 = load ptr, ptr %187, align 8, !tbaa !16
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = load i64, ptr %12, align 8, !tbaa !9
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = call i32 @s2n_ktls_sendmsg(ptr noundef %188, i8 noundef zeroext 23, ptr noundef %189, i64 noundef %190, ptr noundef %191, ptr noundef %21)
  %193 = getelementptr inbounds %struct.s2n_result, ptr %22, i32 0, i32 0
  store i32 %192, ptr %193, align 4
  %194 = getelementptr inbounds %struct.s2n_result, ptr %22, i32 0, i32 0
  %195 = load i32, ptr %194, align 4
  %196 = call zeroext i1 @s2n_result_is_ok(i32 %195)
  br i1 %196, label %198, label %197

197:                                              ; preds = %185
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %214

198:                                              ; preds = %185
  br label %199

199:                                              ; preds = %198
  br label %200

200:                                              ; preds = %199
  br label %201

201:                                              ; preds = %200
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = load i64, ptr %21, align 8, !tbaa !9
  %204 = call i32 @s2n_ktls_set_estimated_sequence_number(ptr noundef %202, i64 noundef %203)
  %205 = getelementptr inbounds %struct.s2n_result, ptr %23, i32 0, i32 0
  store i32 %204, ptr %205, align 4
  %206 = getelementptr inbounds %struct.s2n_result, ptr %23, i32 0, i32 0
  %207 = load i32, ptr %206, align 4
  %208 = call zeroext i1 @s2n_result_is_ok(i32 %207)
  br i1 %208, label %210, label %209

209:                                              ; preds = %201
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %214

210:                                              ; preds = %201
  br label %211

211:                                              ; preds = %210
  br label %212

212:                                              ; preds = %211
  %213 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %213, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %214

214:                                              ; preds = %212, %209, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %215

215:                                              ; preds = %214, %180, %166
  %216 = call i32 @s2n_free_or_wipe(ptr noundef %19)
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #8
  br label %217

217:                                              ; preds = %215, %158, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %218

218:                                              ; preds = %217, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %219

219:                                              ; preds = %218, %92, %56
  %220 = load i64, ptr %6, align 8
  ret i64 %220
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_ktls_check_estimated_record_limit(ptr noundef, i64 noundef) #4

declare i32 @s2n_free_or_wipe(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_ktls_update_bufs_with_offset(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_ktls_set_estimated_sequence_number(ptr noundef, i64 noundef) #4

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


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

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

@_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.27 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [88 x i8], align 1

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

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_ktls_sendmsg(ptr noundef, i8 noundef zeroext, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @s2n_ktls_sendv_with_offset(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) local_unnamed_addr #4 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca [256 x i8], align 16
  %10 = alloca %struct.s2n_blob, align 8
  %11 = alloca i64, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %12, label %20

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

20:                                               ; preds = %5
  %21 = icmp sgt i64 %2, -1
  br i1 %21, label %30, label %22

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

30:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store i64 %2, ptr %7, align 8, !tbaa !14
  %31 = icmp sgt i64 %3, -1
  br i1 %31, label %40, label %32

32:                                               ; preds = %30
  %33 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.29, ptr %33, align 8, !tbaa !9
  %34 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.29, i64 21), i32 noundef 47) #7
  %.not25 = icmp eq ptr %34, null
  %35 = getelementptr inbounds i8, ptr %34, i64 1
  %36 = select i1 %.not25, ptr getelementptr inbounds (i8, ptr @.str.29, i64 21), ptr %35
  %37 = getelementptr inbounds i8, ptr %33, i64 8
  store ptr %36, ptr %37, align 8, !tbaa !11
  %38 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762089, ptr %38, align 4, !tbaa !12
  %39 = tail call i32 @s2n_calculate_stacktrace() #8
  br label %70

40:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store i64 0, ptr %8, align 8, !tbaa !14
  %41 = call i32 @s2n_sendv_with_offset_total_size(ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef nonnull %8) #8
  %42 = call zeroext i1 @s2n_result_is_ok(i32 %41)
  br i1 %42, label %43, label %69

43:                                               ; preds = %40
  %44 = load i64, ptr %8, align 8, !tbaa !14
  %45 = call i32 @s2n_ktls_check_estimated_record_limit(ptr noundef nonnull %0, i64 noundef %44)
  %46 = call zeroext i1 @s2n_result_is_ok(i32 %45)
  br i1 %46, label %47, label %69

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %9) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %9, i8 0, i64 256, i1 false)
  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)
  %48 = call i32 @s2n_blob_init(ptr noundef nonnull %10, ptr noundef nonnull %9, i32 noundef 256) #8
  %49 = icmp sgt i32 %48, -1
  br i1 %49, label %50, label %67

50:                                               ; preds = %47
  %.not26 = icmp eq i64 %3, 0
  br i1 %.not26, label %54, label %51

51:                                               ; preds = %50
  %52 = call i32 @s2n_ktls_update_bufs_with_offset(ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %3, ptr noundef nonnull %10)
  %53 = call zeroext i1 @s2n_result_is_ok(i32 %52)
  br i1 %53, label %._crit_edge, label %67

._crit_edge:                                      ; preds = %51
  %.pre = load ptr, ptr %6, align 8, !tbaa !5
  %.pre27 = load i64, ptr %7, align 8, !tbaa !14
  br label %54

54:                                               ; preds = %._crit_edge, %50
  %55 = phi i64 [ %.pre27, %._crit_edge ], [ %2, %50 ]
  %56 = phi ptr [ %.pre, %._crit_edge ], [ %1, %50 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  store i64 0, ptr %11, align 8, !tbaa !14
  %57 = getelementptr inbounds i8, ptr %0, i64 64
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = call i32 @s2n_ktls_sendmsg(ptr noundef %58, i8 noundef zeroext 23, ptr noundef %56, i64 noundef %55, ptr noundef %4, ptr noundef nonnull %11)
  %60 = call zeroext i1 @s2n_result_is_ok(i32 %59)
  br i1 %60, label %61, label %66

61:                                               ; preds = %54
  %62 = load i64, ptr %11, align 8, !tbaa !14
  %63 = call i32 @s2n_ktls_set_estimated_sequence_number(ptr noundef nonnull %0, i64 noundef %62)
  %64 = call zeroext i1 @s2n_result_is_ok(i32 %63)
  %65 = load i64, ptr %11, align 8
  %spec.select = select i1 %64, i64 %65, i64 -1
  br label %66

66:                                               ; preds = %61, %54
  %.0 = phi i64 [ -1, %54 ], [ %spec.select, %61 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %67

67:                                               ; preds = %51, %47, %66
  %.1 = phi i64 [ %.0, %66 ], [ -1, %47 ], [ -1, %51 ]
  %68 = call i32 @s2n_free_or_wipe(ptr noundef nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #8
  br label %69

69:                                               ; preds = %43, %40, %67
  %.2 = phi i64 [ %.1, %67 ], [ -1, %40 ], [ -1, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %70

70:                                               ; preds = %69, %32
  %.3 = phi i64 [ %.2, %69 ], [ -1, %32 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %71

71:                                               ; preds = %70, %22, %12
  %.4 = phi i64 [ %.3, %70 ], [ -1, %22 ], [ -1, %12 ]
  ret i64 %.4
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_ktls_check_estimated_record_limit(ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @s2n_free_or_wipe(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_ktls_update_bufs_with_offset(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_ktls_set_estimated_sequence_number(ptr noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind 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, !6, i64 0}
!10 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!11 = !{!10, !6, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !6, i64 64}
!17 = !{!"s2n_connection", !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 0, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 1, !13, i64 2, !13, i64 2, !13, i64 2, !13, i64 2, !13, i64 2, !13, i64 2, !13, i64 2, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !7, i64 80, !7, i64 102, !7, i64 124, !13, i64 148, !13, i64 152, !18, i64 160, !15, i64 168, !15, 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, !13, i64 1764, !7, i64 1768, !33, i64 1776, !33, i64 1816, !33, i64 1856, !33, i64 1896, !13, i64 1936, !15, 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, !13, i64 2212, !32, i64 2216, !15, i64 2224, !7, i64 2232, !15, i64 2240, !15, i64 2248, !15, i64 2256, !34, i64 2264, !34, i64 2268, !7, i64 2272, !7, i64 2528, !13, i64 2784, !25, i64 2792, !13, 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, !13, i64 3780, !25, i64 3784, !13, 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, !13, i64 4088, !13, i64 4092, !25, i64 4096, !13, i64 4120, !42, i64 4128, !34, i64 4176, !7, i64 4180, !7, i64 4181}
!18 = !{!"s2n_timer", !15, i64 0}
!19 = !{!"s2n_secrets", !7, i64 0, !13, 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, !13, i64 8, !13, i64 12, !13, i64 16}
!26 = !{!"_Bool", !7, i64 0}
!27 = !{!"s2n_handshake_parameters", !28, i64 0, !28, i64 48, !25, i64 96, !13, 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", !13, i64 0, !31, i64 8, !32, i64 40, !32, i64 42, !6, i64 48, !13, i64 56}
!31 = !{!"s2n_array", !25, i64 0, !13, i64 24, !13, i64 28}
!32 = !{!"short", !7, i64 0}
!33 = !{!"s2n_stuffer", !25, i64 0, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 36, !13, i64 36}
!34 = !{!"", !13, i64 0}
!35 = !{!"s2n_handshake", !33, i64 0, !6, i64 40, !7, i64 48, !7, i64 56, !7, i64 104, !7, i64 152, !13, i64 156, !13, i64 160, !13, i64 164, !13, i64 168, !36, i64 176, !13, i64 184, !13, i64 184, !13, i64 184, !13, i64 184, !13, 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, !13, i64 802, !13, i64 802, !13, i64 802, !13, i64 802, !13, i64 802, !13, i64 802, !13, 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, !13, i64 32, !6, i64 40, !40, i64 48, !26, i64 52}
!40 = !{!"s2n_cert_validation_info", !13, i64 0, !13, i64 0}
!41 = !{!"s2n_ticket_fields", !25, i64 0, !13, i64 24}
!42 = !{!"s2n_post_handshake", !33, i64 0, !7, i64 40}


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