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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_result = type { i32 }
%struct.s2n_stuffer_reservation = type { ptr, i32, i8 }
%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 }
%struct.s2n_ticket_key = type { [16 x i8], [32 x i8], [12 x i8], i64 }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.8 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [106 x i8], align 1

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

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

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

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

declare i32 @s2n_calculate_stacktrace() #4

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

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

declare i32 @s2n_stuffer_write_uint32(ptr noundef, i32 noundef) #4

declare ptr @s2n_get_ticket_encrypt_decrypt_key(ptr noundef) #4

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

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

declare i32 @s2n_resume_encrypt_session_ticket(ptr noundef, ptr noundef, ptr noundef) #4

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

21:                                               ; preds = %2
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %56, label %24

24:                                               ; preds = %21
  br label %25

25:                                               ; preds = %24
  br label %26

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

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

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

47:                                               ; preds = %42, %35
  %48 = phi ptr [ %41, %35 ], [ %46, %42 ]
  %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 1
  store ptr %48, ptr %50, align 8, !tbaa !11
  %51 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %51, align 4, !tbaa !12
  %52 = call i32 @s2n_calculate_stacktrace()
  br label %53

53:                                               ; preds = %47
  %54 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %54, align 4, !tbaa !14
  br label %432

55:                                               ; No predecessors!
  br label %56

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

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %93, label %61

61:                                               ; preds = %58
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62
  %64 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %65 = getelementptr inbounds %struct.s2n_debug_info, ptr %64, i32 0, i32 0
  store ptr @.str.9, ptr %65, align 8, !tbaa !9
  %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
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = getelementptr inbounds i8, ptr %68, i64 21
  %70 = call ptr @strrchr(ptr noundef %69, i32 noundef 47) #7
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %79

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

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

84:                                               ; preds = %79, %72
  %85 = phi ptr [ %78, %72 ], [ %83, %79 ]
  %86 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %87 = getelementptr inbounds %struct.s2n_debug_info, ptr %86, i32 0, i32 1
  store ptr %85, ptr %87, align 8, !tbaa !11
  %88 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %88, align 4, !tbaa !12
  %89 = call i32 @s2n_calculate_stacktrace()
  br label %90

90:                                               ; preds = %84
  %91 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %91, align 4, !tbaa !14
  br label %432

92:                                               ; No predecessors!
  br label %93

93:                                               ; preds = %92, %58
  br label %94

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.s2n_connection, ptr %95, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !16
  %98 = call ptr @s2n_get_ticket_encrypt_decrypt_key(ptr noundef %97)
  store ptr %98, ptr %6, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %94
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = icmp ne ptr %100, null
  br i1 %101, label %136, label %102

102:                                              ; preds = %99
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  %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
  store ptr @.str.10, ptr %106, align 8, !tbaa !9
  %107 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %108 = getelementptr inbounds %struct.s2n_debug_info, ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  %110 = getelementptr inbounds i8, ptr %109, i64 21
  %111 = call ptr @strrchr(ptr noundef %110, i32 noundef 47) #7
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %120

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

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

125:                                              ; preds = %120, %113
  %126 = phi ptr [ %119, %113 ], [ %124, %120 ]
  %127 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %128 = getelementptr inbounds %struct.s2n_debug_info, ptr %127, i32 0, i32 1
  store ptr %126, ptr %128, align 8, !tbaa !11
  %129 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762084, ptr %129, align 4, !tbaa !12
  %130 = call i32 @s2n_calculate_stacktrace()
  br label %131

131:                                              ; preds = %125
  br label %132

132:                                              ; preds = %131
  %133 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %133, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %431

134:                                              ; No predecessors!
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135, %99
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.s2n_connection, ptr %139, i32 0, i32 79
  store ptr %140, ptr %8, align 8, !tbaa !5
  br label %141

141:                                              ; preds = %138
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = call i32 @s2n_stuffer_write_uint8(ptr noundef %142, i8 noundef zeroext 4)
  %144 = icmp sgt i32 %143, -1
  br i1 %144, label %147, label %145

145:                                              ; preds = %141
  %146 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %146, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %430

147:                                              ; preds = %141
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 16, i1 false)
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = call i32 @s2n_stuffer_reserve_uint24(ptr noundef %151, ptr noundef %9)
  %153 = icmp sgt i32 %152, -1
  br i1 %153, label %156, label %154

154:                                              ; preds = %150
  %155 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %155, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %429

156:                                              ; preds = %150
  br label %157

157:                                              ; preds = %156
  br label %158

158:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.s2n_ticket_key, ptr %161, i32 0, i32 3
  %163 = load i64, ptr %162, align 8, !tbaa !43
  %164 = call i32 @s2n_generate_ticket_lifetime(ptr noundef %160, i64 noundef %163, ptr noundef %10)
  %165 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  store i32 %164, ptr %165, align 4
  %166 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  %167 = load i32, ptr %166, align 4
  %168 = call zeroext i1 @s2n_result_is_ok(i32 %167)
  br i1 %168, label %171, label %169

169:                                              ; preds = %159
  %170 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %170, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %428

171:                                              ; preds = %159
  br label %172

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %10, align 4, !tbaa !12
  %176 = icmp ugt i32 %175, 0
  br i1 %176, label %211, label %177

177:                                              ; preds = %174
  br label %178

178:                                              ; preds = %177
  br label %179

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

188:                                              ; preds = %179
  %189 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %190 = getelementptr inbounds %struct.s2n_debug_info, ptr %189, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8, !tbaa !9
  %192 = getelementptr inbounds i8, ptr %191, i64 21
  %193 = call ptr @strrchr(ptr noundef %192, i32 noundef 47) #7
  %194 = getelementptr inbounds i8, ptr %193, i64 1
  br label %200

195:                                              ; preds = %179
  %196 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %197 = getelementptr inbounds %struct.s2n_debug_info, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !9
  %199 = getelementptr inbounds i8, ptr %198, i64 21
  br label %200

200:                                              ; preds = %195, %188
  %201 = phi ptr [ %194, %188 ], [ %199, %195 ]
  %202 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %203 = getelementptr inbounds %struct.s2n_debug_info, ptr %202, i32 0, i32 1
  store ptr %201, ptr %203, align 8, !tbaa !11
  %204 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653273, ptr %204, align 4, !tbaa !12
  %205 = call i32 @s2n_calculate_stacktrace()
  br label %206

206:                                              ; preds = %200
  br label %207

207:                                              ; preds = %206
  %208 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %208, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %428

209:                                              ; No predecessors!
  br label %210

210:                                              ; preds = %209
  br label %211

211:                                              ; preds = %210, %174
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212
  br label %214

214:                                              ; preds = %213
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = load i32, ptr %10, align 4, !tbaa !12
  %217 = call i32 @s2n_stuffer_write_uint32(ptr noundef %215, i32 noundef %216)
  %218 = icmp sgt i32 %217, -1
  br i1 %218, label %221, label %219

219:                                              ; preds = %214
  %220 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %220, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %428

221:                                              ; preds = %214
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  call void @llvm.memset.p0.i64(ptr align 1 %12, i8 0, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 24, i1 false)
  br label %224

224:                                              ; preds = %223
  %225 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
  %226 = call i32 @s2n_blob_init(ptr noundef %13, ptr noundef %225, i32 noundef 4)
  %227 = icmp sgt i32 %226, -1
  br i1 %227, label %230, label %228

228:                                              ; preds = %224
  %229 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %229, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %427

230:                                              ; preds = %224
  br label %231

231:                                              ; preds = %230
  br label %232

232:                                              ; preds = %231
  br label %233

233:                                              ; preds = %232
  %234 = call i32 @s2n_get_private_random_data(ptr noundef %13)
  %235 = getelementptr inbounds %struct.s2n_result, ptr %14, i32 0, i32 0
  store i32 %234, ptr %235, align 4
  %236 = getelementptr inbounds %struct.s2n_result, ptr %14, 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 %241, label %239

239:                                              ; preds = %233
  %240 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %240, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %427

241:                                              ; preds = %233
  br label %242

242:                                              ; preds = %241
  br label %243

243:                                              ; preds = %242
  br label %244

244:                                              ; preds = %243
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.s2n_ticket_fields, ptr %245, i32 0, i32 1
  %247 = call i32 @s2n_generate_ticket_age_add(ptr noundef %13, ptr noundef %246)
  %248 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  store i32 %247, ptr %248, align 4
  %249 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  %250 = load i32, ptr %249, align 4
  %251 = call zeroext i1 @s2n_result_is_ok(i32 %250)
  br i1 %251, label %254, label %252

252:                                              ; preds = %244
  %253 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %253, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %427

254:                                              ; preds = %244
  br label %255

255:                                              ; preds = %254
  br label %256

256:                                              ; preds = %255
  br label %257

257:                                              ; preds = %256
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.s2n_ticket_fields, ptr %259, i32 0, i32 1
  %261 = load i32, ptr %260, align 8, !tbaa !45
  %262 = call i32 @s2n_stuffer_write_uint32(ptr noundef %258, i32 noundef %261)
  %263 = icmp sgt i32 %262, -1
  br i1 %263, label %266, label %264

264:                                              ; preds = %257
  %265 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %265, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %427

266:                                              ; preds = %257
  br label %267

267:                                              ; preds = %266
  br label %268

268:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #8
  call void @llvm.memset.p0.i64(ptr align 1 %16, i8 0, i64 2, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 24, i1 false)
  br label %269

269:                                              ; preds = %268
  %270 = getelementptr inbounds [2 x i8], ptr %16, i64 0, i64 0
  %271 = call i32 @s2n_blob_init(ptr noundef %17, ptr noundef %270, i32 noundef 2)
  %272 = icmp sgt i32 %271, -1
  br i1 %272, label %275, label %273

273:                                              ; preds = %269
  %274 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %274, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %426

275:                                              ; preds = %269
  br label %276

276:                                              ; preds = %275
  br label %277

277:                                              ; preds = %276
  br label %278

278:                                              ; preds = %277
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.s2n_connection, ptr %279, i32 0, i32 88
  %281 = load i16, ptr %280, align 2, !tbaa !46
  %282 = call i32 @s2n_generate_ticket_nonce(i16 noundef zeroext %281, ptr noundef %17)
  %283 = getelementptr inbounds %struct.s2n_result, ptr %18, i32 0, i32 0
  store i32 %282, ptr %283, align 4
  %284 = getelementptr inbounds %struct.s2n_result, ptr %18, i32 0, i32 0
  %285 = load i32, ptr %284, align 4
  %286 = call zeroext i1 @s2n_result_is_ok(i32 %285)
  br i1 %286, label %289, label %287

287:                                              ; preds = %278
  %288 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %288, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %426

289:                                              ; preds = %278
  br label %290

290:                                              ; preds = %289
  br label %291

291:                                              ; preds = %290
  br label %292

292:                                              ; preds = %291
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.s2n_blob, ptr %17, i32 0, i32 1
  %295 = load i32, ptr %294, align 8, !tbaa !47
  %296 = trunc i32 %295 to i8
  %297 = call i32 @s2n_stuffer_write_uint8(ptr noundef %293, i8 noundef zeroext %296)
  %298 = icmp sgt i32 %297, -1
  br i1 %298, label %301, label %299

299:                                              ; preds = %292
  %300 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %300, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %426

301:                                              ; preds = %292
  br label %302

302:                                              ; preds = %301
  br label %303

303:                                              ; preds = %302
  br label %304

304:                                              ; preds = %303
  %305 = load ptr, ptr %5, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.s2n_blob, ptr %17, i32 0, i32 0
  %307 = load ptr, ptr %306, align 8, !tbaa !48
  %308 = getelementptr inbounds %struct.s2n_blob, ptr %17, i32 0, i32 1
  %309 = load i32, ptr %308, align 8, !tbaa !47
  %310 = call i32 @s2n_stuffer_write_bytes(ptr noundef %305, ptr noundef %307, i32 noundef %309)
  %311 = icmp sgt i32 %310, -1
  br i1 %311, label %314, label %312

312:                                              ; preds = %304
  %313 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %313, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %426

314:                                              ; preds = %304
  br label %315

315:                                              ; preds = %314
  br label %316

316:                                              ; preds = %315
  br label %317

317:                                              ; preds = %316
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = load ptr, ptr %8, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.s2n_ticket_fields, ptr %319, i32 0, i32 0
  %321 = call i32 @s2n_generate_session_secret(ptr noundef %318, ptr noundef %17, ptr noundef %320)
  %322 = icmp sgt i32 %321, -1
  br i1 %322, label %325, label %323

323:                                              ; preds = %317
  %324 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %324, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %426

325:                                              ; preds = %317
  br label %326

326:                                              ; preds = %325
  br label %327

327:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 16, i1 false)
  br label %328

328:                                              ; preds = %327
  %329 = load ptr, ptr %5, align 8, !tbaa !5
  %330 = call i32 @s2n_stuffer_reserve_uint16(ptr noundef %329, ptr noundef %19)
  %331 = icmp sgt i32 %330, -1
  br i1 %331, label %334, label %332

332:                                              ; preds = %328
  %333 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %333, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %425

334:                                              ; preds = %328
  br label %335

335:                                              ; preds = %334
  br label %336

336:                                              ; preds = %335
  br label %337

337:                                              ; preds = %336
  %338 = load ptr, ptr %4, align 8, !tbaa !5
  %339 = load ptr, ptr %6, align 8, !tbaa !5
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = call i32 @s2n_resume_encrypt_session_ticket(ptr noundef %338, ptr noundef %339, ptr noundef %340)
  %342 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  store i32 %341, ptr %342, align 4
  %343 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  %344 = load i32, ptr %343, align 4
  %345 = call zeroext i1 @s2n_result_is_ok(i32 %344)
  br i1 %345, label %348, label %346

346:                                              ; preds = %337
  %347 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %347, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %425

348:                                              ; preds = %337
  br label %349

349:                                              ; preds = %348
  br label %350

350:                                              ; preds = %349
  br label %351

351:                                              ; preds = %350
  %352 = call i32 @s2n_stuffer_write_vector_size(ptr noundef %19)
  %353 = icmp sgt i32 %352, -1
  br i1 %353, label %356, label %354

354:                                              ; preds = %351
  %355 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %355, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %425

356:                                              ; preds = %351
  br label %357

357:                                              ; preds = %356
  br label %358

358:                                              ; preds = %357
  br label %359

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

364:                                              ; preds = %359
  %365 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %365, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %425

366:                                              ; preds = %359
  br label %367

367:                                              ; preds = %366
  br label %368

368:                                              ; preds = %367
  br label %369

369:                                              ; preds = %368
  %370 = call i32 @s2n_stuffer_write_vector_size(ptr noundef %9)
  %371 = icmp sgt i32 %370, -1
  br i1 %371, label %374, label %372

372:                                              ; preds = %369
  %373 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %373, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %425

374:                                              ; preds = %369
  br label %375

375:                                              ; preds = %374
  br label %376

376:                                              ; preds = %375
  br label %377

377:                                              ; preds = %376
  %378 = load ptr, ptr %4, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.s2n_connection, ptr %378, i32 0, i32 88
  %380 = load i16, ptr %379, align 2, !tbaa !46
  %381 = zext i16 %380 to i32
  %382 = icmp slt i32 %381, 65535
  br i1 %382, label %417, label %383

383:                                              ; preds = %377
  br label %384

384:                                              ; preds = %383
  br label %385

385:                                              ; preds = %384
  %386 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %387 = getelementptr inbounds %struct.s2n_debug_info, ptr %386, i32 0, i32 0
  store ptr @.str.12, ptr %387, align 8, !tbaa !9
  %388 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %389 = getelementptr inbounds %struct.s2n_debug_info, ptr %388, i32 0, i32 0
  %390 = load ptr, ptr %389, align 8, !tbaa !9
  %391 = getelementptr inbounds i8, ptr %390, i64 21
  %392 = call ptr @strrchr(ptr noundef %391, i32 noundef 47) #7
  %393 = icmp ne ptr %392, null
  br i1 %393, label %394, label %401

394:                                              ; preds = %385
  %395 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %396 = getelementptr inbounds %struct.s2n_debug_info, ptr %395, i32 0, i32 0
  %397 = load ptr, ptr %396, align 8, !tbaa !9
  %398 = getelementptr inbounds i8, ptr %397, i64 21
  %399 = call ptr @strrchr(ptr noundef %398, i32 noundef 47) #7
  %400 = getelementptr inbounds i8, ptr %399, i64 1
  br label %406

401:                                              ; preds = %385
  %402 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %403 = getelementptr inbounds %struct.s2n_debug_info, ptr %402, i32 0, i32 0
  %404 = load ptr, ptr %403, align 8, !tbaa !9
  %405 = getelementptr inbounds i8, ptr %404, i64 21
  br label %406

406:                                              ; preds = %401, %394
  %407 = phi ptr [ %400, %394 ], [ %405, %401 ]
  %408 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %409 = getelementptr inbounds %struct.s2n_debug_info, ptr %408, i32 0, i32 1
  store ptr %407, ptr %409, align 8, !tbaa !11
  %410 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653251, ptr %410, align 4, !tbaa !12
  %411 = call i32 @s2n_calculate_stacktrace()
  br label %412

412:                                              ; preds = %406
  br label %413

413:                                              ; preds = %412
  %414 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %414, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %425

415:                                              ; No predecessors!
  br label %416

416:                                              ; preds = %415
  br label %417

417:                                              ; preds = %416, %377
  br label %418

418:                                              ; preds = %417
  br label %419

419:                                              ; preds = %418
  %420 = load ptr, ptr %4, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.s2n_connection, ptr %420, i32 0, i32 88
  %422 = load i16, ptr %421, align 2, !tbaa !46
  %423 = add i16 %422, 1
  store i16 %423, ptr %421, align 2, !tbaa !46
  %424 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 0, ptr %424, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %425

425:                                              ; preds = %419, %413, %372, %364, %354, %346, %332
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  br label %426

426:                                              ; preds = %425, %323, %312, %299, %287, %273
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #8
  br label %427

427:                                              ; preds = %426, %264, %252, %239, %228
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %428

428:                                              ; preds = %427, %219, %207, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %429

429:                                              ; preds = %428, %154
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  br label %430

430:                                              ; preds = %429, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %431

431:                                              ; preds = %430, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %432

432:                                              ; preds = %431, %90, %53
  %433 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  %434 = load i32, ptr %433, align 4
  ret i32 %434
}

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

declare i32 @s2n_stuffer_reserve_uint24(ptr noundef, ptr noundef) #4

declare i32 @s2n_get_private_random_data(ptr noundef) #4

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

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

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

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

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

declare i32 @s2n_stuffer_write_vector_size(ptr noundef) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { "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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !13, i64 0}
!15 = !{!"", !13, i64 0}
!16 = !{!17, !6, i64 8}
!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, !19, i64 168, !19, 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, !20, i64 240, !6, i64 632, !6, i64 640, !21, i64 648, !28, i64 1144, !31, i64 1688, !6, i64 1752, !7, i64 1760, !13, i64 1764, !7, i64 1768, !34, i64 1776, !34, i64 1816, !34, i64 1856, !34, i64 1896, !13, i64 1936, !19, i64 1944, !7, i64 1952, !34, i64 1960, !7, i64 2000, !7, i64 2001, !7, i64 2002, !27, i64 2003, !15, i64 2004, !15, i64 2008, !35, i64 2016, !33, i64 2208, !13, i64 2212, !33, i64 2216, !19, i64 2224, !7, i64 2232, !19, i64 2240, !19, i64 2248, !19, i64 2256, !15, i64 2264, !15, i64 2268, !7, i64 2272, !7, i64 2528, !13, i64 2784, !26, i64 2792, !13, i64 2816, !26, i64 2824, !26, i64 2848, !26, i64 2872, !37, i64 2896, !39, i64 3704, !6, i64 3760, !6, i64 3768, !7, i64 3776, !13, i64 3780, !26, i64 3784, !13, i64 3808, !41, i64 3816, !7, i64 3848, !34, i64 3992, !26, i64 4032, !26, i64 4056, !27, i64 4080, !27, i64 4081, !27, i64 4082, !33, i64 4084, !33, i64 4086, !13, i64 4088, !13, i64 4092, !26, i64 4096, !13, i64 4120, !42, i64 4128, !15, i64 4176, !7, i64 4180, !7, i64 4181}
!18 = !{!"s2n_timer", !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"s2n_secrets", !7, i64 0, !13, i64 388}
!21 = !{!"s2n_kex_parameters", !22, i64 0, !23, i64 8, !7, i64 24, !23, i64 56, !24, i64 72, !24, i64 184, !7, i64 296, !25, i64 360, !26, i64 448, !26, i64 472}
!22 = !{!"s2n_dh_params", !6, i64 0}
!23 = !{!"s2n_ecc_evp_params", !6, i64 0, !6, i64 8}
!24 = !{!"s2n_kem_group_params", !6, i64 0, !25, i64 8, !23, i64 96}
!25 = !{!"s2n_kem_params", !6, i64 0, !26, i64 8, !26, i64 32, !26, i64 56, !27, i64 80}
!26 = !{!"s2n_blob", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16}
!27 = !{!"_Bool", !7, i64 0}
!28 = !{!"s2n_handshake_parameters", !29, i64 0, !29, i64 48, !26, i64 96, !13, i64 120, !30, i64 124, !6, i64 384, !6, i64 392, !6, i64 400, !7, i64 408, !7, i64 440, !7, i64 472, !7, i64 473, !7, i64 474, !7, i64 506}
!29 = !{!"s2n_pkey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!30 = !{!"s2n_sig_scheme_list", !7, i64 0, !7, i64 256}
!31 = !{!"s2n_psk_parameters", !13, i64 0, !32, i64 8, !33, i64 40, !33, i64 42, !6, i64 48, !13, i64 56}
!32 = !{!"s2n_array", !26, i64 0, !13, i64 24, !13, i64 28}
!33 = !{!"short", !7, i64 0}
!34 = !{!"s2n_stuffer", !26, i64 0, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 36, !13, i64 36}
!35 = !{!"s2n_handshake", !34, i64 0, !6, i64 40, !7, i64 48, !7, i64 56, !7, i64 104, !7, i64 152, !13, i64 156, !13, i64 160, !13, i64 164, !13, i64 168, !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", !26, i64 0, !38, i64 24, !26, i64 728, !26, i64 752, !26, 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, !26, i64 672, !33, i64 696}
!39 = !{!"s2n_x509_validator", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !33, i64 18, !6, i64 24, !13, i64 32, !6, i64 40, !40, i64 48, !27, i64 52}
!40 = !{!"s2n_cert_validation_info", !13, i64 0, !13, i64 0}
!41 = !{!"s2n_ticket_fields", !26, i64 0, !13, i64 24}
!42 = !{!"s2n_post_handshake", !34, i64 0, !7, i64 40}
!43 = !{!44, !19, i64 64}
!44 = !{!"s2n_ticket_key", !7, i64 0, !7, i64 16, !7, i64 48, !19, i64 64}
!45 = !{!41, !13, i64 24}
!46 = !{!17, !33, i64 4086}
!47 = !{!26, !13, i64 8}
!48 = !{!26, !6, i64 0}


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

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_stuffer_reservation = type { ptr, i32, i8 }
%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.8 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [106 x i8], align 1

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

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

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

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #4

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

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

declare i32 @s2n_stuffer_write_uint32(ptr noundef, i32 noundef) local_unnamed_addr #4

declare ptr @s2n_get_ticket_encrypt_decrypt_key(ptr noundef) local_unnamed_addr #4

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

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

declare i32 @s2n_resume_encrypt_session_ticket(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

18:                                               ; preds = %2
  %.not40 = icmp eq ptr %1, null
  br i1 %.not40, label %19, label %27

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

27:                                               ; preds = %18
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = tail call ptr @s2n_get_ticket_encrypt_decrypt_key(ptr noundef %29) #8
  %.not42 = icmp eq ptr %30, null
  br i1 %.not42, label %31, label %39

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

39:                                               ; preds = %27
  %40 = getelementptr inbounds i8, ptr %0, i64 3816
  %41 = tail call i32 @s2n_stuffer_write_uint8(ptr noundef nonnull %1, i8 noundef zeroext 4) #8
  %42 = icmp sgt i32 %41, -1
  br i1 %42, label %43, label %132

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

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 0, ptr %4, align 4, !tbaa !11
  %47 = getelementptr inbounds i8, ptr %30, i64 64
  %48 = load i64, ptr %47, align 8, !tbaa !41
  %49 = call i32 @s2n_generate_ticket_lifetime(ptr noundef nonnull %0, i64 noundef %48, ptr noundef nonnull %4)
  %50 = call zeroext i1 @s2n_result_is_ok(i32 %49)
  br i1 %50, label %51, label %130

51:                                               ; preds = %46
  %52 = load i32, ptr %4, align 4, !tbaa !11
  %.not44 = icmp eq i32 %52, 0
  br i1 %.not44, label %53, label %61

53:                                               ; preds = %51
  %54 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.11, ptr %54, align 8, !tbaa !5
  %55 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.11, i64 21), i32 noundef 47) #7
  %.not45 = icmp eq ptr %55, null
  %56 = getelementptr inbounds i8, ptr %55, i64 1
  %57 = select i1 %.not45, ptr getelementptr inbounds (i8, ptr @.str.11, i64 21), ptr %56
  %58 = getelementptr inbounds i8, ptr %54, i64 8
  store ptr %57, ptr %58, align 8, !tbaa !10
  %59 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653273, ptr %59, align 4, !tbaa !11
  %60 = call i32 @s2n_calculate_stacktrace() #8
  br label %130

61:                                               ; preds = %51
  %62 = call i32 @s2n_stuffer_write_uint32(ptr noundef nonnull %1, i32 noundef %52) #8
  %63 = icmp sgt i32 %62, -1
  br i1 %63, label %64, label %130

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  store i32 0, ptr %5, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, i8 0, i64 24, i1 false)
  %65 = call i32 @s2n_blob_init(ptr noundef nonnull %6, ptr noundef nonnull %5, i32 noundef 4) #8
  %66 = icmp sgt i32 %65, -1
  br i1 %66, label %67, label %129

67:                                               ; preds = %64
  %68 = call i32 @s2n_get_private_random_data(ptr noundef nonnull %6) #8
  %69 = call zeroext i1 @s2n_result_is_ok(i32 %68)
  br i1 %69, label %70, label %129

70:                                               ; preds = %67
  %71 = getelementptr inbounds i8, ptr %0, i64 3840
  %72 = call i32 @s2n_generate_ticket_age_add(ptr noundef nonnull %6, ptr noundef nonnull %71)
  %73 = call zeroext i1 @s2n_result_is_ok(i32 %72)
  br i1 %73, label %74, label %129

74:                                               ; preds = %70
  %75 = load i32, ptr %71, align 8, !tbaa !43
  %76 = call i32 @s2n_stuffer_write_uint32(ptr noundef nonnull %1, i32 noundef %75) #8
  %77 = icmp sgt i32 %76, -1
  br i1 %77, label %78, label %129

78:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #8
  store i16 0, ptr %7, align 2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  %79 = call i32 @s2n_blob_init(ptr noundef nonnull %8, ptr noundef nonnull %7, i32 noundef 2) #8
  %80 = icmp sgt i32 %79, -1
  br i1 %80, label %81, label %128

81:                                               ; preds = %78
  %82 = getelementptr inbounds i8, ptr %0, i64 4086
  %83 = load i16, ptr %82, align 2, !tbaa !44
  %84 = call i32 @s2n_generate_ticket_nonce(i16 noundef zeroext %83, ptr noundef nonnull %8)
  %85 = call zeroext i1 @s2n_result_is_ok(i32 %84)
  br i1 %85, label %86, label %128

86:                                               ; preds = %81
  %87 = getelementptr inbounds i8, ptr %8, i64 8
  %88 = load i32, ptr %87, align 8, !tbaa !45
  %89 = trunc i32 %88 to i8
  %90 = call i32 @s2n_stuffer_write_uint8(ptr noundef nonnull %1, i8 noundef zeroext %89) #8
  %91 = icmp sgt i32 %90, -1
  br i1 %91, label %92, label %128

92:                                               ; preds = %86
  %93 = load ptr, ptr %8, align 8, !tbaa !46
  %94 = load i32, ptr %87, align 8, !tbaa !45
  %95 = call i32 @s2n_stuffer_write_bytes(ptr noundef nonnull %1, ptr noundef %93, i32 noundef %94) #8
  %96 = icmp sgt i32 %95, -1
  br i1 %96, label %97, label %128

97:                                               ; preds = %92
  %98 = call i32 @s2n_generate_session_secret(ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef nonnull %40)
  %99 = icmp sgt i32 %98, -1
  br i1 %99, label %100, label %128

100:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, i8 0, i64 16, i1 false)
  %101 = call i32 @s2n_stuffer_reserve_uint16(ptr noundef nonnull %1, ptr noundef nonnull %9) #8
  %102 = icmp sgt i32 %101, -1
  br i1 %102, label %103, label %127

103:                                              ; preds = %100
  %104 = call i32 @s2n_resume_encrypt_session_ticket(ptr noundef nonnull %0, ptr noundef nonnull %30, ptr noundef nonnull %1) #8
  %105 = call zeroext i1 @s2n_result_is_ok(i32 %104)
  br i1 %105, label %106, label %127

106:                                              ; preds = %103
  %107 = call i32 @s2n_stuffer_write_vector_size(ptr noundef nonnull %9) #8
  %108 = icmp sgt i32 %107, -1
  br i1 %108, label %109, label %127

109:                                              ; preds = %106
  %110 = call i32 @s2n_extension_list_send(i32 noundef 7, ptr noundef nonnull %0, ptr noundef nonnull %1) #8
  %111 = icmp sgt i32 %110, -1
  br i1 %111, label %112, label %127

112:                                              ; preds = %109
  %113 = call i32 @s2n_stuffer_write_vector_size(ptr noundef nonnull %3) #8
  %114 = icmp sgt i32 %113, -1
  br i1 %114, label %115, label %127

115:                                              ; preds = %112
  %116 = load i16, ptr %82, align 2, !tbaa !44
  %.not46 = icmp eq i16 %116, -1
  br i1 %.not46, label %117, label %125

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

125:                                              ; preds = %115
  %126 = add nuw i16 %116, 1
  store i16 %126, ptr %82, align 2, !tbaa !44
  br label %127

127:                                              ; preds = %112, %109, %106, %103, %100, %125, %117
  %.sroa.030.0 = phi i32 [ 0, %125 ], [ -1, %117 ], [ -1, %100 ], [ -1, %103 ], [ -1, %106 ], [ -1, %109 ], [ -1, %112 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  br label %128

128:                                              ; preds = %97, %92, %86, %81, %78, %127
  %.sroa.030.1 = phi i32 [ %.sroa.030.0, %127 ], [ -1, %78 ], [ -1, %81 ], [ -1, %86 ], [ -1, %92 ], [ -1, %97 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #8
  br label %129

129:                                              ; preds = %74, %70, %67, %64, %128
  %.sroa.030.2 = phi i32 [ %.sroa.030.1, %128 ], [ -1, %64 ], [ -1, %67 ], [ -1, %70 ], [ -1, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br label %130

130:                                              ; preds = %61, %46, %129, %53
  %.sroa.030.3 = phi i32 [ %.sroa.030.2, %129 ], [ -1, %53 ], [ -1, %46 ], [ -1, %61 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %131

131:                                              ; preds = %43, %130
  %.sroa.030.4 = phi i32 [ %.sroa.030.3, %130 ], [ -1, %43 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  br label %132

132:                                              ; preds = %31, %39, %131, %19, %10
  %.sroa.030.7 = phi i32 [ -1, %19 ], [ -1, %10 ], [ -1, %31 ], [ %.sroa.030.4, %131 ], [ -1, %39 ]
  ret i32 %.sroa.030.7
}

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

declare i32 @s2n_stuffer_reserve_uint24(ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @s2n_get_private_random_data(ptr noundef) local_unnamed_addr #4

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

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

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

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

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

declare i32 @s2n_stuffer_write_vector_size(ptr noundef) local_unnamed_addr #4

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

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

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

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


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