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

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

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.3 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [99 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(none)
declare i64 @llvm.expect.i64(i64, i64) #4

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

declare i32 @s2n_server_hello_retry_recreate_transcript(ptr noundef) #2

; 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: nounwind uwtable
define dso_local i32 @s2n_server_hello_retry_recv(ptr noundef %0) #6 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %1
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %48, label %17

17:                                               ; preds = %14
  br label %18

18:                                               ; preds = %17
  br label %19

19:                                               ; preds = %18
  %20 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %21 = getelementptr inbounds %struct.s2n_debug_info, ptr %20, i32 0, i32 0
  store ptr @.str.3, ptr %21, align 8, !tbaa !9
  %22 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %23 = getelementptr inbounds %struct.s2n_debug_info, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %24, i64 21
  %26 = call ptr @strrchr(ptr noundef %25, i32 noundef 47) #7
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %35

28:                                               ; preds = %19
  %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 = getelementptr inbounds i8, ptr %33, i64 1
  br label %40

35:                                               ; preds = %19
  %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
  br label %40

40:                                               ; preds = %35, %28
  %41 = phi ptr [ %34, %28 ], [ %39, %35 ]
  %42 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %43 = getelementptr inbounds %struct.s2n_debug_info, ptr %42, i32 0, i32 1
  store ptr %41, ptr %43, align 8, !tbaa !11
  %44 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %44, align 4, !tbaa !12
  %45 = call i32 @s2n_calculate_stacktrace()
  br label %46

46:                                               ; preds = %40
  store i32 -1, ptr %2, align 4
  br label %476

47:                                               ; No predecessors!
  br label %48

48:                                               ; preds = %47, %14
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.s2n_connection, ptr %51, i32 0, i32 23
  %53 = load i8, ptr %52, align 4, !tbaa !14
  %54 = zext i8 %53 to i32
  %55 = icmp sge i32 %54, 34
  br i1 %55, label %87, label %56

56:                                               ; preds = %50
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  %59 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %60 = getelementptr inbounds %struct.s2n_debug_info, ptr %59, i32 0, i32 0
  store ptr @.str.4, ptr %60, align 8, !tbaa !9
  %61 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %62 = getelementptr inbounds %struct.s2n_debug_info, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %63, i64 21
  %65 = call ptr @strrchr(ptr noundef %64, i32 noundef 47) #7
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %74

67:                                               ; preds = %58
  %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 !9
  %71 = getelementptr inbounds i8, ptr %70, i64 21
  %72 = call ptr @strrchr(ptr noundef %71, i32 noundef 47) #7
  %73 = getelementptr inbounds i8, ptr %72, i64 1
  br label %79

74:                                               ; preds = %58
  %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 !9
  %78 = getelementptr inbounds i8, ptr %77, i64 21
  br label %79

79:                                               ; preds = %74, %67
  %80 = phi ptr [ %73, %67 ], [ %78, %74 ]
  %81 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %82 = getelementptr inbounds %struct.s2n_debug_info, ptr %81, i32 0, i32 1
  store ptr %80, ptr %82, align 8, !tbaa !11
  %83 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544346, ptr %83, align 4, !tbaa !12
  %84 = call i32 @s2n_calculate_stacktrace()
  br label %85

85:                                               ; preds = %79
  store i32 -1, ptr %2, align 4
  br label %476

86:                                               ; No predecessors!
  br label %87

87:                                               ; preds = %86, %50
  br label %88

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

89:                                               ; preds = %88
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = call i32 @s2n_connection_get_ecc_preferences(ptr noundef %90, ptr noundef %4)
  %92 = icmp sgt i32 %91, -1
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %475

94:                                               ; preds = %89
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = icmp ne ptr %98, null
  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.5, ptr %104, align 8, !tbaa !9
  %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 !9
  %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 !9
  %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 !9
  %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 !11
  %127 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %127, align 4, !tbaa !12
  %128 = call i32 @s2n_calculate_stacktrace()
  br label %129

129:                                              ; preds = %123
  br label %130

130:                                              ; preds = %129
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %475

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 %6) #8
  store ptr null, ptr %6, align 8, !tbaa !5
  br label %136

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

140:                                              ; preds = %136
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %474

141:                                              ; preds = %136
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %180, label %147

147:                                              ; preds = %144
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  %150 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %151 = getelementptr inbounds %struct.s2n_debug_info, ptr %150, i32 0, i32 0
  store ptr @.str.6, ptr %151, align 8, !tbaa !9
  %152 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %153 = getelementptr inbounds %struct.s2n_debug_info, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !9
  %155 = getelementptr inbounds i8, ptr %154, i64 21
  %156 = call ptr @strrchr(ptr noundef %155, i32 noundef 47) #7
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %165

158:                                              ; preds = %149
  %159 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %160 = getelementptr inbounds %struct.s2n_debug_info, ptr %159, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  %162 = getelementptr inbounds i8, ptr %161, i64 21
  %163 = call ptr @strrchr(ptr noundef %162, i32 noundef 47) #7
  %164 = getelementptr inbounds i8, ptr %163, i64 1
  br label %170

165:                                              ; preds = %149
  %166 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %167 = getelementptr inbounds %struct.s2n_debug_info, ptr %166, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8, !tbaa !9
  %169 = getelementptr inbounds i8, ptr %168, i64 21
  br label %170

170:                                              ; preds = %165, %158
  %171 = phi ptr [ %164, %158 ], [ %169, %165 ]
  %172 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %173 = getelementptr inbounds %struct.s2n_debug_info, ptr %172, i32 0, i32 1
  store ptr %171, ptr %173, align 8, !tbaa !11
  %174 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %174, align 4, !tbaa !12
  %175 = call i32 @s2n_calculate_stacktrace()
  br label %176

176:                                              ; preds = %170
  br label %177

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

178:                                              ; No predecessors!
  br label %179

179:                                              ; preds = %178
  br label %180

180:                                              ; preds = %179, %144
  br label %181

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.s2n_connection, ptr %183, i32 0, i32 31
  %185 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %184, i32 0, i32 1
  %186 = getelementptr inbounds %struct.s2n_ecc_evp_params, ptr %185, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8, !tbaa !42
  store ptr %187, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.s2n_connection, ptr %188, i32 0, i32 31
  %190 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %189, i32 0, i32 4
  %191 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %190, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8, !tbaa !43
  store ptr %192, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.s2n_connection, ptr %193, i32 0, i32 31
  %195 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %194, i32 0, i32 5
  %196 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !44
  store ptr %197, ptr %9, align 8, !tbaa !5
  br label %198

198:                                              ; preds = %182
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = icmp ne ptr %199, null
  %201 = zext i1 %200 to i32
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = icmp ne ptr %202, null
  %204 = zext i1 %203 to i32
  %205 = icmp ne i32 %201, %204
  br i1 %205, label %239, label %206

206:                                              ; preds = %198
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207
  %209 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %210 = getelementptr inbounds %struct.s2n_debug_info, ptr %209, i32 0, i32 0
  store ptr @.str.7, ptr %210, align 8, !tbaa !9
  %211 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %212 = getelementptr inbounds %struct.s2n_debug_info, ptr %211, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8, !tbaa !9
  %214 = getelementptr inbounds i8, ptr %213, i64 21
  %215 = call ptr @strrchr(ptr noundef %214, i32 noundef 47) #7
  %216 = icmp ne ptr %215, null
  br i1 %216, label %217, label %224

217:                                              ; preds = %208
  %218 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %219 = getelementptr inbounds %struct.s2n_debug_info, ptr %218, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8, !tbaa !9
  %221 = getelementptr inbounds i8, ptr %220, i64 21
  %222 = call ptr @strrchr(ptr noundef %221, i32 noundef 47) #7
  %223 = getelementptr inbounds i8, ptr %222, i64 1
  br label %229

224:                                              ; preds = %208
  %225 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %226 = getelementptr inbounds %struct.s2n_debug_info, ptr %225, i32 0, i32 0
  %227 = load ptr, ptr %226, align 8, !tbaa !9
  %228 = getelementptr inbounds i8, ptr %227, i64 21
  br label %229

229:                                              ; preds = %224, %217
  %230 = phi ptr [ %223, %217 ], [ %228, %224 ]
  %231 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %232 = getelementptr inbounds %struct.s2n_debug_info, ptr %231, i32 0, i32 1
  store ptr %230, ptr %232, align 8, !tbaa !11
  %233 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544346, ptr %233, align 4, !tbaa !12
  %234 = call i32 @s2n_calculate_stacktrace()
  br label %235

235:                                              ; preds = %229
  br label %236

236:                                              ; preds = %235
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %473

237:                                              ; No predecessors!
  br label %238

238:                                              ; preds = %237
  br label %239

239:                                              ; preds = %238, %198
  br label %240

240:                                              ; preds = %239
  br label %241

241:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #8
  store i8 0, ptr %10, align 1, !tbaa !45
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  %243 = icmp ne ptr %242, null
  br i1 %243, label %244, label %251

244:                                              ; preds = %241
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = load ptr, ptr %7, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.s2n_ecc_named_curve, ptr %246, i32 0, i32 0
  %248 = load i16, ptr %247, align 8, !tbaa !46
  %249 = call zeroext i1 @s2n_ecc_preferences_includes_curve(ptr noundef %245, i16 noundef zeroext %248)
  br i1 %249, label %250, label %251

250:                                              ; preds = %244
  store i8 1, ptr %10, align 1, !tbaa !45
  br label %251

251:                                              ; preds = %250, %244, %241
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = icmp ne ptr %252, null
  br i1 %253, label %254, label %264

254:                                              ; preds = %251
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = call zeroext i1 @s2n_kem_group_is_available(ptr noundef %255)
  br i1 %256, label %257, label %264

257:                                              ; preds = %254
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.s2n_kem_group, ptr %259, i32 0, i32 1
  %261 = load i16, ptr %260, align 8, !tbaa !48
  %262 = call zeroext i1 @s2n_kem_preferences_includes_tls13_kem_group(ptr noundef %258, i16 noundef zeroext %261)
  br i1 %262, label %263, label %264

263:                                              ; preds = %257
  store i8 1, ptr %10, align 1, !tbaa !45
  br label %264

264:                                              ; preds = %263, %257, %254, %251
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  store i8 0, ptr %11, align 1, !tbaa !45
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  %266 = icmp ne ptr %265, null
  br i1 %266, label %267, label %276

267:                                              ; preds = %264
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = load ptr, ptr %3, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.s2n_connection, ptr %269, i32 0, i32 31
  %271 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %270, i32 0, i32 3
  %272 = getelementptr inbounds %struct.s2n_ecc_evp_params, ptr %271, i32 0, i32 0
  %273 = load ptr, ptr %272, align 8, !tbaa !50
  %274 = icmp ne ptr %268, %273
  %275 = zext i1 %274 to i8
  store i8 %275, ptr %11, align 1, !tbaa !45
  br label %276

276:                                              ; preds = %267, %264
  %277 = load ptr, ptr %8, align 8, !tbaa !5
  %278 = icmp ne ptr %277, null
  br i1 %278, label %279, label %322

279:                                              ; preds = %276
  br label %280

280:                                              ; preds = %279
  %281 = call zeroext i1 @s2n_pq_is_enabled()
  br i1 %281, label %315, label %282

282:                                              ; preds = %280
  br label %283

283:                                              ; preds = %282
  br label %284

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

293:                                              ; preds = %284
  %294 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %295 = getelementptr inbounds %struct.s2n_debug_info, ptr %294, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8, !tbaa !9
  %297 = getelementptr inbounds i8, ptr %296, i64 21
  %298 = call ptr @strrchr(ptr noundef %297, i32 noundef 47) #7
  %299 = getelementptr inbounds i8, ptr %298, i64 1
  br label %305

300:                                              ; preds = %284
  %301 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %302 = getelementptr inbounds %struct.s2n_debug_info, ptr %301, i32 0, i32 0
  %303 = load ptr, ptr %302, align 8, !tbaa !9
  %304 = getelementptr inbounds i8, ptr %303, i64 21
  br label %305

305:                                              ; preds = %300, %293
  %306 = phi ptr [ %299, %293 ], [ %304, %300 ]
  %307 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %308 = getelementptr inbounds %struct.s2n_debug_info, ptr %307, i32 0, i32 1
  store ptr %306, ptr %308, align 8, !tbaa !11
  %309 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544346, ptr %309, align 4, !tbaa !12
  %310 = call i32 @s2n_calculate_stacktrace()
  br label %311

311:                                              ; preds = %305
  br label %312

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

313:                                              ; No predecessors!
  br label %314

314:                                              ; preds = %313
  br label %315

315:                                              ; preds = %314, %280
  br label %316

316:                                              ; preds = %315
  br label %317

317:                                              ; preds = %316
  %318 = load ptr, ptr %8, align 8, !tbaa !5
  %319 = load ptr, ptr %9, align 8, !tbaa !5
  %320 = icmp ne ptr %318, %319
  %321 = zext i1 %320 to i8
  store i8 %321, ptr %11, align 1, !tbaa !45
  br label %322

322:                                              ; preds = %317, %276
  br label %323

323:                                              ; preds = %322
  %324 = load i8, ptr %11, align 1, !tbaa !45, !range !51, !noundef !52
  %325 = trunc i8 %324 to i1
  br i1 %325, label %359, label %326

326:                                              ; preds = %323
  br label %327

327:                                              ; preds = %326
  br label %328

328:                                              ; preds = %327
  %329 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %330 = getelementptr inbounds %struct.s2n_debug_info, ptr %329, i32 0, i32 0
  store ptr @.str.9, ptr %330, align 8, !tbaa !9
  %331 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %332 = getelementptr inbounds %struct.s2n_debug_info, ptr %331, i32 0, i32 0
  %333 = load ptr, ptr %332, align 8, !tbaa !9
  %334 = getelementptr inbounds i8, ptr %333, i64 21
  %335 = call ptr @strrchr(ptr noundef %334, i32 noundef 47) #7
  %336 = icmp ne ptr %335, null
  br i1 %336, label %337, label %344

337:                                              ; preds = %328
  %338 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %339 = getelementptr inbounds %struct.s2n_debug_info, ptr %338, i32 0, i32 0
  %340 = load ptr, ptr %339, align 8, !tbaa !9
  %341 = getelementptr inbounds i8, ptr %340, i64 21
  %342 = call ptr @strrchr(ptr noundef %341, i32 noundef 47) #7
  %343 = getelementptr inbounds i8, ptr %342, i64 1
  br label %349

344:                                              ; preds = %328
  %345 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %346 = getelementptr inbounds %struct.s2n_debug_info, ptr %345, i32 0, i32 0
  %347 = load ptr, ptr %346, align 8, !tbaa !9
  %348 = getelementptr inbounds i8, ptr %347, i64 21
  br label %349

349:                                              ; preds = %344, %337
  %350 = phi ptr [ %343, %337 ], [ %348, %344 ]
  %351 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %352 = getelementptr inbounds %struct.s2n_debug_info, ptr %351, i32 0, i32 1
  store ptr %350, ptr %352, align 8, !tbaa !11
  %353 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544346, ptr %353, align 4, !tbaa !12
  %354 = call i32 @s2n_calculate_stacktrace()
  br label %355

355:                                              ; preds = %349
  br label %356

356:                                              ; preds = %355
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %472

357:                                              ; No predecessors!
  br label %358

358:                                              ; preds = %357
  br label %359

359:                                              ; preds = %358, %323
  br label %360

360:                                              ; preds = %359
  br label %361

361:                                              ; preds = %360
  br label %362

362:                                              ; preds = %361
  %363 = load i8, ptr %10, align 1, !tbaa !45, !range !51, !noundef !52
  %364 = trunc i8 %363 to i1
  br i1 %364, label %398, label %365

365:                                              ; preds = %362
  br label %366

366:                                              ; preds = %365
  br label %367

367:                                              ; preds = %366
  %368 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %369 = getelementptr inbounds %struct.s2n_debug_info, ptr %368, i32 0, i32 0
  store ptr @.str.10, ptr %369, align 8, !tbaa !9
  %370 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %371 = getelementptr inbounds %struct.s2n_debug_info, ptr %370, i32 0, i32 0
  %372 = load ptr, ptr %371, align 8, !tbaa !9
  %373 = getelementptr inbounds i8, ptr %372, i64 21
  %374 = call ptr @strrchr(ptr noundef %373, i32 noundef 47) #7
  %375 = icmp ne ptr %374, null
  br i1 %375, label %376, label %383

376:                                              ; preds = %367
  %377 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %378 = getelementptr inbounds %struct.s2n_debug_info, ptr %377, i32 0, i32 0
  %379 = load ptr, ptr %378, align 8, !tbaa !9
  %380 = getelementptr inbounds i8, ptr %379, i64 21
  %381 = call ptr @strrchr(ptr noundef %380, i32 noundef 47) #7
  %382 = getelementptr inbounds i8, ptr %381, i64 1
  br label %388

383:                                              ; preds = %367
  %384 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %385 = getelementptr inbounds %struct.s2n_debug_info, ptr %384, i32 0, i32 0
  %386 = load ptr, ptr %385, align 8, !tbaa !9
  %387 = getelementptr inbounds i8, ptr %386, i64 21
  br label %388

388:                                              ; preds = %383, %376
  %389 = phi ptr [ %382, %376 ], [ %387, %383 ]
  %390 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %391 = getelementptr inbounds %struct.s2n_debug_info, ptr %390, i32 0, i32 1
  store ptr %389, ptr %391, align 8, !tbaa !11
  %392 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544346, ptr %392, align 4, !tbaa !12
  %393 = call i32 @s2n_calculate_stacktrace()
  br label %394

394:                                              ; preds = %388
  br label %395

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

396:                                              ; No predecessors!
  br label %397

397:                                              ; preds = %396
  br label %398

398:                                              ; preds = %397, %362
  br label %399

399:                                              ; preds = %398
  br label %400

400:                                              ; preds = %399
  br label %401

401:                                              ; preds = %400
  %402 = load ptr, ptr %3, align 8, !tbaa !5
  %403 = call i32 @s2n_server_hello_retry_recreate_transcript(ptr noundef %402)
  %404 = icmp sgt i32 %403, -1
  br i1 %404, label %406, label %405

405:                                              ; preds = %401
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %472

406:                                              ; preds = %401
  br label %407

407:                                              ; preds = %406
  br label %408

408:                                              ; preds = %407
  br label %409

409:                                              ; preds = %408
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store i64 22, ptr %12, align 8, !tbaa !53
  %410 = load i64, ptr %12, align 8, !tbaa !53
  %411 = icmp ne i64 %410, 0
  %412 = xor i1 %411, true
  %413 = xor i1 %412, true
  %414 = zext i1 %413 to i32
  %415 = sext i32 %414 to i64
  %416 = call i64 @llvm.expect.i64(i64 %415, i64 1)
  %417 = icmp ne i64 %416, 0
  br i1 %417, label %418, label %466

418:                                              ; preds = %409
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %419 = load ptr, ptr %3, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.s2n_connection, ptr %419, i32 0, i32 10
  %421 = getelementptr inbounds [22 x i8], ptr %420, i64 0, i64 0
  store ptr %421, ptr %13, align 8, !tbaa !5
  br label %422

422:                                              ; preds = %418
  %423 = load ptr, ptr %13, align 8, !tbaa !5
  %424 = icmp ne ptr %423, null
  br i1 %424, label %458, label %425

425:                                              ; preds = %422
  br label %426

426:                                              ; preds = %425
  br label %427

427:                                              ; preds = %426
  %428 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %429 = getelementptr inbounds %struct.s2n_debug_info, ptr %428, i32 0, i32 0
  store ptr @.str.11, ptr %429, align 8, !tbaa !9
  %430 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %431 = getelementptr inbounds %struct.s2n_debug_info, ptr %430, i32 0, i32 0
  %432 = load ptr, ptr %431, align 8, !tbaa !9
  %433 = getelementptr inbounds i8, ptr %432, i64 21
  %434 = call ptr @strrchr(ptr noundef %433, i32 noundef 47) #7
  %435 = icmp ne ptr %434, null
  br i1 %435, label %436, label %443

436:                                              ; preds = %427
  %437 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %438 = getelementptr inbounds %struct.s2n_debug_info, ptr %437, i32 0, i32 0
  %439 = load ptr, ptr %438, align 8, !tbaa !9
  %440 = getelementptr inbounds i8, ptr %439, i64 21
  %441 = call ptr @strrchr(ptr noundef %440, i32 noundef 47) #7
  %442 = getelementptr inbounds i8, ptr %441, i64 1
  br label %448

443:                                              ; preds = %427
  %444 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %445 = getelementptr inbounds %struct.s2n_debug_info, ptr %444, i32 0, i32 0
  %446 = load ptr, ptr %445, align 8, !tbaa !9
  %447 = getelementptr inbounds i8, ptr %446, i64 21
  br label %448

448:                                              ; preds = %443, %436
  %449 = phi ptr [ %442, %436 ], [ %447, %443 ]
  %450 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %451 = getelementptr inbounds %struct.s2n_debug_info, ptr %450, i32 0, i32 1
  store ptr %449, ptr %451, align 8, !tbaa !11
  %452 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %452, align 4, !tbaa !12
  %453 = call i32 @s2n_calculate_stacktrace()
  br label %454

454:                                              ; preds = %448
  br label %455

455:                                              ; preds = %454
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %463

456:                                              ; No predecessors!
  br label %457

457:                                              ; preds = %456
  br label %458

458:                                              ; preds = %457, %422
  br label %459

459:                                              ; preds = %458
  br label %460

460:                                              ; preds = %459
  %461 = load ptr, ptr %13, align 8, !tbaa !5
  %462 = load i64, ptr %12, align 8, !tbaa !53
  call void @llvm.memset.p0.i64(ptr align 1 %461, i8 0, i64 %462, i1 false)
  store i32 0, ptr %5, align 4
  br label %463

463:                                              ; preds = %460, %455
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %464 = load i32, ptr %5, align 4
  switch i32 %464, label %467 [
    i32 0, label %465
  ]

465:                                              ; preds = %463
  br label %466

466:                                              ; preds = %465, %409
  store i32 0, ptr %5, align 4
  br label %467

467:                                              ; preds = %466, %463
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %468 = load i32, ptr %5, align 4
  switch i32 %468, label %472 [
    i32 0, label %469
  ]

469:                                              ; preds = %467
  br label %470

470:                                              ; preds = %469
  br label %471

471:                                              ; preds = %470
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %472

472:                                              ; preds = %471, %467, %405, %395, %356, %312
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  br label %473

473:                                              ; preds = %472, %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %474

474:                                              ; preds = %473, %177, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %475

475:                                              ; preds = %474, %130, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %476

476:                                              ; preds = %475, %85, %46
  %477 = load i32, ptr %2, align 4
  ret i32 %477
}

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

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

declare zeroext i1 @s2n_ecc_preferences_includes_curve(ptr noundef, i16 noundef zeroext) #2

declare zeroext i1 @s2n_kem_group_is_available(ptr noundef) #2

declare zeroext i1 @s2n_kem_preferences_includes_tls13_kem_group(ptr noundef, i16 noundef zeroext) #2

declare zeroext i1 @s2n_pq_is_enabled() #2

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

@_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.3 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [99 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

declare i32 @s2n_server_hello_retry_recreate_transcript(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_server_hello_retry_recv(ptr noundef %0) local_unnamed_addr #5 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %4, label %12

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

12:                                               ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 220
  %14 = load i8, ptr %13, align 4, !tbaa !13
  %15 = icmp ugt i8 %14, 33
  br i1 %15, label %24, label %16

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

24:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  store ptr null, ptr %2, align 8, !tbaa !41
  %25 = call i32 @s2n_connection_get_ecc_preferences(ptr noundef nonnull %0, ptr noundef nonnull %2) #7
  %26 = icmp sgt i32 %25, -1
  br i1 %26, label %27, label %120

27:                                               ; preds = %24
  %28 = load ptr, ptr %2, align 8, !tbaa !41
  %.not51 = icmp eq ptr %28, null
  br i1 %.not51, label %29, label %37

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

37:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store ptr null, ptr %3, align 8, !tbaa !41
  %38 = call i32 @s2n_connection_get_kem_preferences(ptr noundef nonnull %0, ptr noundef nonnull %3) #7
  %39 = icmp sgt i32 %38, -1
  br i1 %39, label %40, label %119

40:                                               ; preds = %37
  %41 = load ptr, ptr %3, align 8, !tbaa !41
  %.not53 = icmp eq ptr %41, null
  br i1 %.not53, label %42, label %50

42:                                               ; preds = %40
  %43 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.6, ptr %43, align 8, !tbaa !5
  %44 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.6, i64 21), i32 noundef 47) #6
  %.not54 = icmp eq ptr %44, null
  %45 = getelementptr inbounds i8, ptr %44, i64 1
  %46 = select i1 %.not54, ptr getelementptr inbounds (i8, ptr @.str.6, i64 21), ptr %45
  %47 = getelementptr inbounds i8, ptr %43, i64 8
  store ptr %46, ptr %47, align 8, !tbaa !10
  %48 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %48, align 4, !tbaa !11
  %49 = call i32 @s2n_calculate_stacktrace() #7
  br label %119

50:                                               ; preds = %40
  %51 = getelementptr inbounds i8, ptr %0, i64 656
  %52 = load ptr, ptr %51, align 8, !tbaa !42
  %53 = getelementptr inbounds i8, ptr %0, i64 720
  %54 = load ptr, ptr %53, align 8, !tbaa !43
  %55 = getelementptr inbounds i8, ptr %0, i64 832
  %56 = load ptr, ptr %55, align 8, !tbaa !44
  %57 = icmp ne ptr %52, null
  %58 = icmp ne ptr %54, null
  %59 = xor i1 %57, %58
  br i1 %59, label %68, label %60

60:                                               ; preds = %50
  %61 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.7, ptr %61, align 8, !tbaa !5
  %62 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.7, i64 21), i32 noundef 47) #6
  %.not56 = icmp eq ptr %62, null
  %63 = getelementptr inbounds i8, ptr %62, i64 1
  %64 = select i1 %.not56, ptr getelementptr inbounds (i8, ptr @.str.7, i64 21), ptr %63
  %65 = getelementptr inbounds i8, ptr %61, i64 8
  store ptr %64, ptr %65, align 8, !tbaa !10
  %66 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544346, ptr %66, align 4, !tbaa !11
  %67 = call i32 @s2n_calculate_stacktrace() #7
  br label %119

68:                                               ; preds = %50
  br i1 %57, label %69, label %.thread76

69:                                               ; preds = %68
  %70 = load ptr, ptr %2, align 8, !tbaa !41
  %71 = load i16, ptr %52, align 8, !tbaa !45
  %72 = call zeroext i1 @s2n_ecc_preferences_includes_curve(ptr noundef %70, i16 noundef zeroext %71) #7
  br i1 %58, label %73, label %.thread72

.thread76:                                        ; preds = %68
  br i1 %58, label %73, label %.thread64

73:                                               ; preds = %.thread76, %69
  %.03578 = phi i1 [ false, %.thread76 ], [ %72, %69 ]
  %74 = call zeroext i1 @s2n_kem_group_is_available(ptr noundef nonnull %54) #7
  br i1 %74, label %75, label %80

75:                                               ; preds = %73
  %76 = load ptr, ptr %3, align 8, !tbaa !41
  %77 = getelementptr inbounds i8, ptr %54, i64 8
  %78 = load i16, ptr %77, align 8, !tbaa !47
  %79 = call zeroext i1 @s2n_kem_preferences_includes_tls13_kem_group(ptr noundef %76, i16 noundef zeroext %78) #7
  %spec.select60 = select i1 %79, i1 true, i1 %.03578
  br label %80

80:                                               ; preds = %75, %73
  %.136 = phi i1 [ %.03578, %73 ], [ %spec.select60, %75 ]
  br i1 %57, label %83, label %.thread

.thread72:                                        ; preds = %69
  %81 = getelementptr inbounds i8, ptr %0, i64 704
  %82 = load ptr, ptr %81, align 8, !tbaa !49
  %.not81 = icmp eq ptr %52, %82
  br i1 %.not81, label %.thread64, label %105

83:                                               ; preds = %80
  br i1 %58, label %84, label %95

.thread:                                          ; preds = %80
  br i1 %58, label %84, label %.thread64

84:                                               ; preds = %.thread, %83
  %85 = call zeroext i1 @s2n_pq_is_enabled() #7
  br i1 %85, label %94, label %86

86:                                               ; preds = %84
  %87 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.8, ptr %87, align 8, !tbaa !5
  %88 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.8, i64 21), i32 noundef 47) #6
  %.not57 = icmp eq ptr %88, null
  %89 = getelementptr inbounds i8, ptr %88, i64 1
  %90 = select i1 %.not57, ptr getelementptr inbounds (i8, ptr @.str.8, i64 21), ptr %89
  %91 = getelementptr inbounds i8, ptr %87, i64 8
  store ptr %90, ptr %91, align 8, !tbaa !10
  %92 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544346, ptr %92, align 4, !tbaa !11
  %93 = call i32 @s2n_calculate_stacktrace() #7
  br label %119

94:                                               ; preds = %84
  %.not61 = icmp eq ptr %54, %56
  br i1 %.not61, label %.thread64, label %105

95:                                               ; preds = %83
  %96 = getelementptr inbounds i8, ptr %0, i64 704
  %97 = load ptr, ptr %96, align 8, !tbaa !49
  %.not82 = icmp eq ptr %52, %97
  br i1 %.not82, label %.thread64, label %105

.thread64:                                        ; preds = %.thread76, %.thread72, %.thread, %94, %95
  %98 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.9, ptr %98, align 8, !tbaa !5
  %99 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.9, i64 21), i32 noundef 47) #6
  %.not58 = icmp eq ptr %99, null
  %100 = getelementptr inbounds i8, ptr %99, i64 1
  %101 = select i1 %.not58, ptr getelementptr inbounds (i8, ptr @.str.9, i64 21), ptr %100
  %102 = getelementptr inbounds i8, ptr %98, i64 8
  store ptr %101, ptr %102, align 8, !tbaa !10
  %103 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544346, ptr %103, align 4, !tbaa !11
  %104 = call i32 @s2n_calculate_stacktrace() #7
  br label %119

105:                                              ; preds = %.thread72, %94, %95
  %.13668 = phi i1 [ %.136, %94 ], [ %.136, %95 ], [ %72, %.thread72 ]
  br i1 %.13668, label %114, label %106

106:                                              ; preds = %105
  %107 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.10, ptr %107, align 8, !tbaa !5
  %108 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.10, i64 21), i32 noundef 47) #6
  %.not59 = icmp eq ptr %108, null
  %109 = getelementptr inbounds i8, ptr %108, i64 1
  %110 = select i1 %.not59, ptr getelementptr inbounds (i8, ptr @.str.10, i64 21), ptr %109
  %111 = getelementptr inbounds i8, ptr %107, i64 8
  store ptr %110, ptr %111, align 8, !tbaa !10
  %112 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544346, ptr %112, align 4, !tbaa !11
  %113 = call i32 @s2n_calculate_stacktrace() #7
  br label %119

114:                                              ; preds = %105
  %115 = call i32 @s2n_server_hello_retry_recreate_transcript(ptr noundef nonnull %0) #7
  %116 = icmp sgt i32 %115, -1
  br i1 %116, label %117, label %119

117:                                              ; preds = %114
  %118 = getelementptr inbounds i8, ptr %0, i64 80
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(22) %118, i8 0, i64 22, i1 false)
  br label %119

119:                                              ; preds = %60, %114, %117, %106, %.thread64, %86, %37, %42
  %.5 = phi i32 [ -1, %42 ], [ -1, %37 ], [ -1, %60 ], [ 0, %117 ], [ -1, %106 ], [ -1, %.thread64 ], [ -1, %86 ], [ -1, %114 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %120

120:                                              ; preds = %24, %119, %29
  %.6 = phi i32 [ %.5, %119 ], [ -1, %29 ], [ -1, %24 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br label %121

121:                                              ; preds = %120, %16, %4
  %.7 = phi i32 [ %.6, %120 ], [ -1, %16 ], [ -1, %4 ]
  ret i32 %.7
}

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

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

declare zeroext i1 @s2n_ecc_preferences_includes_curve(ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

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

declare zeroext i1 @s2n_kem_preferences_includes_tls13_kem_group(ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

declare zeroext i1 @s2n_pq_is_enabled() local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 willreturn memory(read) }
attributes #7 = { 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, !8, i64 220}
!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 = !{!7, !7, i64 0}
!42 = !{!14, !7, i64 656}
!43 = !{!14, !7, i64 720}
!44 = !{!14, !7, i64 832}
!45 = !{!46, !30, i64 0}
!46 = !{!"s2n_ecc_named_curve", !30, i64 0, !12, i64 4, !7, i64 8, !8, i64 16, !7, i64 24}
!47 = !{!48, !30, i64 8}
!48 = !{!"s2n_kem_group", !7, i64 0, !30, i64 8, !7, i64 16, !7, i64 24, !24, i64 32}
!49 = !{!14, !7, i64 704}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass