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

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

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_result = type { i32 }
%struct.s2n_connection = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [22 x i8], [22 x i8], [22 x i8], i32, i32, %struct.s2n_timer, i64, i64, [32 x i8], i8, i8, i8, i8, i8, i8, i8, ptr, ptr, %struct.s2n_secrets, ptr, ptr, %struct.s2n_kex_parameters, %struct.s2n_handshake_parameters, %struct.s2n_psk_parameters, ptr, i8, i32, [5 x i8], %struct.s2n_stuffer, %struct.s2n_stuffer, %struct.s2n_stuffer, %struct.s2n_stuffer, i32, i64, [2 x i8], %struct.s2n_stuffer, i8, i8, i8, i8, %struct.s2n_atomic_flag, %struct.s2n_atomic_flag, %struct.s2n_handshake, i16, i32, i16, i64, i8, i64, i64, i64, %struct.s2n_atomic_flag, %struct.s2n_atomic_flag, [256 x i8], [256 x i8], i32, %struct.s2n_blob, i32, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_client_hello, %struct.s2n_x509_validator, ptr, ptr, i8, i32, %struct.s2n_blob, i32, %struct.s2n_ticket_fields, [138 x i8], %struct.s2n_stuffer, %struct.s2n_blob, %struct.s2n_blob, i8, i8, i8, i16, i16, i32, i32, %struct.s2n_blob, i32, %struct.s2n_post_handshake, %struct.s2n_atomic_flag, i8, i8 }
%struct.s2n_timer = type { i64 }
%struct.s2n_secrets = type { %union.anon, i32 }
%union.anon = type { %struct.s2n_tls13_secrets }
%struct.s2n_tls13_secrets = type { [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], i32 }
%struct.s2n_kex_parameters = type { %struct.s2n_dh_params, %struct.s2n_ecc_evp_params, [4 x ptr], %struct.s2n_ecc_evp_params, %struct.s2n_kem_group_params, %struct.s2n_kem_group_params, [8 x ptr], %struct.s2n_kem_params, %struct.s2n_blob, %struct.s2n_blob }
%struct.s2n_dh_params = type { ptr }
%struct.s2n_ecc_evp_params = type { ptr, ptr }
%struct.s2n_kem_group_params = type { ptr, %struct.s2n_kem_params, %struct.s2n_ecc_evp_params }
%struct.s2n_kem_params = type { ptr, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, i8 }
%struct.s2n_handshake_parameters = type { %struct.s2n_pkey, %struct.s2n_pkey, %struct.s2n_blob, i32, %struct.s2n_sig_scheme_list, ptr, ptr, ptr, [4 x ptr], [4 x ptr], i8, i8, [32 x i8], [32 x i8] }
%struct.s2n_pkey = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.s2n_sig_scheme_list = type { [128 x i16], i8 }
%struct.s2n_psk_parameters = type { i32, %struct.s2n_array, i16, i16, ptr, i32 }
%struct.s2n_array = type { %struct.s2n_blob, i32, i32 }
%struct.s2n_handshake = type { %struct.s2n_stuffer, ptr, [8 x i8], [48 x i8], [48 x i8], i8, i32, i32, i32, i32, %struct.s2n_offered_early_data, i8, i32 }
%struct.s2n_offered_early_data = type { ptr }
%struct.s2n_client_hello = type { %struct.s2n_blob, %struct.s2n_parsed_extensions_list, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, i8, i8, i8 }
%struct.s2n_parsed_extensions_list = type { [21 x %struct.s2n_parsed_extension], %struct.s2n_blob, i16 }
%struct.s2n_parsed_extension = type { %struct.s2n_blob, i16, i16, i8 }
%struct.s2n_x509_validator = type { ptr, ptr, i8, i8, i16, ptr, i32, ptr, %struct.s2n_cert_validation_info, i8 }
%struct.s2n_cert_validation_info = type { i8, [3 x i8] }
%struct.s2n_ticket_fields = type { %struct.s2n_blob, i32 }
%struct.s2n_stuffer = type { %struct.s2n_blob, i32, i32, i32, i8 }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.s2n_post_handshake = type { %struct.s2n_stuffer, [4 x i8] }
%struct.s2n_atomic_flag = type { i32 }
%struct.s2n_crypto_parameters = type { ptr, %struct.s2n_session_key, %struct.s2n_session_key, %struct.s2n_hmac_state, %struct.s2n_hmac_state, [16 x i8], [16 x i8], [8 x i8], [8 x i8] }
%struct.s2n_session_key = type { ptr }
%struct.s2n_hmac_state = type { i32, i16, i32, i16, i8, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, [128 x i8], [64 x i8] }
%struct.s2n_hash_state = type { ptr, i32, i8, i64, %union.anon.0 }
%union.anon.0 = type { %struct.s2n_hash_evp_digest }
%struct.s2n_hash_evp_digest = type { %struct.s2n_evp_digest, %struct.s2n_evp_digest }
%struct.s2n_evp_digest = type { ptr, ptr }
%struct.s2n_cipher_suite = type { i8, ptr, ptr, [2 x i8], ptr, i32, ptr, [2 x ptr], i8, ptr, ptr, i32, i8 }
%struct.s2n_cert_chain_and_key = type { ptr, ptr, %struct.s2n_blob, %struct.s2n_blob, ptr, ptr, ptr }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.2 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [94 x i8], align 1

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

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

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

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

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

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

declare i32 @s2n_calculate_stacktrace() #5

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

25:                                               ; preds = %1
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %59, label %28

28:                                               ; preds = %25
  br label %29

29:                                               ; preds = %28
  br label %30

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

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

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

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

57:                                               ; preds = %51
  store i32 -1, ptr %2, align 4
  br label %448

58:                                               ; No predecessors!
  br label %59

59:                                               ; preds = %58, %25
  br label %60

60:                                               ; preds = %59
  br label %61

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

66:                                               ; preds = %61
  br label %67

67:                                               ; preds = %66
  br label %68

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

77:                                               ; preds = %68
  %78 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %79 = getelementptr inbounds %struct.s2n_debug_info, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds i8, ptr %80, i64 21
  %82 = call ptr @strrchr(ptr noundef %81, i32 noundef 47) #6
  %83 = getelementptr inbounds i8, ptr %82, i64 1
  br label %89

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

89:                                               ; preds = %84, %77
  %90 = phi ptr [ %83, %77 ], [ %88, %84 ]
  %91 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %92 = getelementptr inbounds %struct.s2n_debug_info, ptr %91, i32 0, i32 1
  store ptr %90, ptr %92, align 8, !tbaa !11
  %93 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %93, align 4, !tbaa !12
  %94 = call i32 @s2n_calculate_stacktrace()
  br label %95

95:                                               ; preds = %89
  store i32 -1, ptr %2, align 4
  br label %448

96:                                               ; No predecessors!
  br label %97

97:                                               ; preds = %96, %61
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.s2n_connection, ptr %101, i32 0, i32 23
  %103 = load i8, ptr %102, align 4, !tbaa !42
  %104 = call i32 @s2n_conn_choose_state_machine(ptr noundef %100, i8 noundef zeroext %103)
  %105 = getelementptr inbounds %struct.s2n_result, ptr %4, i32 0, i32 0
  store i32 %104, ptr %105, align 4
  %106 = getelementptr inbounds %struct.s2n_result, ptr %4, i32 0, i32 0
  %107 = load i32, ptr %106, align 4
  %108 = call zeroext i1 @s2n_result_is_ok(i32 %107)
  br i1 %108, label %110, label %109

109:                                              ; preds = %99
  store i32 -1, ptr %2, align 4
  br label %448

110:                                              ; preds = %99
  br label %111

111:                                              ; preds = %110
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.s2n_connection, ptr %112, i32 0, i32 52
  %114 = getelementptr inbounds %struct.s2n_handshake, ptr %113, i32 0, i32 12
  %115 = load i32, ptr %114, align 4, !tbaa !43
  %116 = icmp eq i32 %115, 2
  br i1 %116, label %117, label %128

117:                                              ; preds = %111
  br label %118

118:                                              ; preds = %117
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = call i32 @s2n_conn_set_tls13_handshake_type(ptr noundef %119)
  %121 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 %120, ptr %121, align 4
  %122 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  %123 = load i32, ptr %122, align 4
  %124 = call zeroext i1 @s2n_result_is_ok(i32 %123)
  br i1 %124, label %126, label %125

125:                                              ; preds = %118
  store i32 -1, ptr %2, align 4
  br label %448

126:                                              ; preds = %118
  br label %127

127:                                              ; preds = %126
  store i32 0, ptr %2, align 4
  br label %448

128:                                              ; preds = %111
  br label %129

129:                                              ; preds = %128
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = call i32 @s2n_handshake_type_reset(ptr noundef %130)
  %132 = getelementptr inbounds %struct.s2n_result, ptr %6, i32 0, i32 0
  store i32 %131, ptr %132, align 4
  %133 = getelementptr inbounds %struct.s2n_result, ptr %6, i32 0, i32 0
  %134 = load i32, ptr %133, align 4
  %135 = call zeroext i1 @s2n_result_is_ok(i32 %134)
  br i1 %135, label %137, label %136

136:                                              ; preds = %129
  store i32 -1, ptr %2, align 4
  br label %448

137:                                              ; preds = %129
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = call i32 @s2n_handshake_type_set_flag(ptr noundef %140, i32 noundef 1)
  %142 = getelementptr inbounds %struct.s2n_result, ptr %7, i32 0, i32 0
  store i32 %141, ptr %142, align 4
  %143 = getelementptr inbounds %struct.s2n_result, ptr %7, i32 0, i32 0
  %144 = load i32, ptr %143, align 4
  %145 = call zeroext i1 @s2n_result_is_ok(i32 %144)
  br i1 %145, label %147, label %146

146:                                              ; preds = %139
  store i32 -1, ptr %2, align 4
  br label %448

147:                                              ; preds = %139
  br label %148

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  br label %149

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

153:                                              ; preds = %149
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

154:                                              ; preds = %149
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.s2n_connection, ptr %157, i32 0, i32 13
  %159 = load i32, ptr %158, align 4, !tbaa !44
  %160 = icmp eq i32 %159, 1
  br i1 %160, label %161, label %176

161:                                              ; preds = %156
  %162 = load i32, ptr %8, align 4, !tbaa !12
  %163 = icmp eq i32 %162, 1
  br i1 %163, label %164, label %176

164:                                              ; preds = %161
  br label %165

165:                                              ; preds = %164
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = call i32 @s2n_handshake_type_set_flag(ptr noundef %166, i32 noundef 4)
  %168 = getelementptr inbounds %struct.s2n_result, ptr %10, i32 0, i32 0
  store i32 %167, ptr %168, align 4
  %169 = getelementptr inbounds %struct.s2n_result, ptr %10, i32 0, i32 0
  %170 = load i32, ptr %169, align 4
  %171 = call zeroext i1 @s2n_result_is_ok(i32 %170)
  br i1 %171, label %173, label %172

172:                                              ; preds = %165
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

173:                                              ; preds = %165
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  br label %197

176:                                              ; preds = %161, %156
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.s2n_connection, ptr %177, i32 0, i32 13
  %179 = load i32, ptr %178, align 4, !tbaa !44
  %180 = icmp eq i32 %179, 0
  br i1 %180, label %181, label %196

181:                                              ; preds = %176
  %182 = load i32, ptr %8, align 4, !tbaa !12
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %196

184:                                              ; preds = %181
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = call i32 @s2n_handshake_type_set_flag(ptr noundef %186, i32 noundef 4)
  %188 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  store i32 %187, ptr %188, align 4
  %189 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  %190 = load i32, ptr %189, align 4
  %191 = call zeroext i1 @s2n_result_is_ok(i32 %190)
  br i1 %191, label %193, label %192

192:                                              ; preds = %185
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

193:                                              ; preds = %185
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195, %181, %176
  br label %197

197:                                              ; preds = %196, %175
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = load i32, ptr %198, align 8
  %200 = lshr i32 %199, 17
  %201 = and i32 %200, 1
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %215

203:                                              ; preds = %197
  br label %204

204:                                              ; preds = %203
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = call i32 @s2n_handshake_type_set_tls12_flag(ptr noundef %205, i32 noundef 128)
  %207 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  store i32 %206, ptr %207, align 4
  %208 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  %209 = load i32, ptr %208, align 4
  %210 = call zeroext i1 @s2n_result_is_ok(i32 %209)
  br i1 %210, label %212, label %211

211:                                              ; preds = %204
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

212:                                              ; preds = %204
  br label %213

213:                                              ; preds = %212
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214, %197
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.s2n_connection, ptr %216, i32 0, i32 1
  %218 = load ptr, ptr %217, align 8, !tbaa !45
  %219 = load i32, ptr %218, align 8
  %220 = and i32 %219, 1
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %222, label %290

222:                                              ; preds = %215
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.s2n_connection, ptr %223, i32 0, i32 76
  %225 = load i32, ptr %224, align 4, !tbaa !46
  %226 = icmp eq i32 %225, 1
  br i1 %226, label %227, label %272

227:                                              ; preds = %222
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.s2n_connection, ptr %229, i32 0, i32 81
  %231 = call i32 @s2n_resume_decrypt_session(ptr noundef %228, ptr noundef %230)
  %232 = getelementptr inbounds %struct.s2n_result, ptr %13, i32 0, i32 0
  store i32 %231, ptr %232, align 4
  %233 = getelementptr inbounds %struct.s2n_result, ptr %13, i32 0, i32 0
  %234 = load i32, ptr %233, align 4
  %235 = call zeroext i1 @s2n_result_is_ok(i32 %234)
  br i1 %235, label %236, label %237

236:                                              ; preds = %227
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

237:                                              ; preds = %227
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %3, align 8, !tbaa !5
  %240 = call i32 @s2n_validate_ems_status(ptr noundef %239)
  %241 = getelementptr inbounds %struct.s2n_result, ptr %14, i32 0, i32 0
  store i32 %240, ptr %241, align 4
  %242 = getelementptr inbounds %struct.s2n_result, ptr %14, i32 0, i32 0
  %243 = load i32, ptr %242, align 4
  %244 = call zeroext i1 @s2n_result_is_ok(i32 %243)
  br i1 %244, label %246, label %245

245:                                              ; preds = %238
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

246:                                              ; preds = %238
  br label %247

247:                                              ; preds = %246
  br label %248

248:                                              ; preds = %247
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.s2n_connection, ptr %249, i32 0, i32 1
  %251 = load ptr, ptr %250, align 8, !tbaa !45
  %252 = call i32 @s2n_config_is_encrypt_key_available(ptr noundef %251)
  %253 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  store i32 %252, ptr %253, align 4
  %254 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  %255 = load i32, ptr %254, align 4
  %256 = call zeroext i1 @s2n_result_is_ok(i32 %255)
  br i1 %256, label %257, label %271

257:                                              ; preds = %248
  %258 = load ptr, ptr %3, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.s2n_connection, ptr %258, i32 0, i32 76
  store i32 2, ptr %259, align 4, !tbaa !46
  br label %260

260:                                              ; preds = %257
  %261 = load ptr, ptr %3, align 8, !tbaa !5
  %262 = call i32 @s2n_handshake_type_set_tls12_flag(ptr noundef %261, i32 noundef 64)
  %263 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  store i32 %262, ptr %263, align 4
  %264 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  %265 = load i32, ptr %264, align 4
  %266 = call zeroext i1 @s2n_result_is_ok(i32 %265)
  br i1 %266, label %268, label %267

267:                                              ; preds = %260
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

268:                                              ; preds = %260
  br label %269

269:                                              ; preds = %268
  br label %270

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270, %248
  br label %336

272:                                              ; preds = %222
  %273 = load ptr, ptr %3, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.s2n_connection, ptr %273, i32 0, i32 76
  %275 = load i32, ptr %274, align 4, !tbaa !46
  %276 = icmp eq i32 %275, 2
  br i1 %276, label %277, label %289

277:                                              ; preds = %272
  br label %278

278:                                              ; preds = %277
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = call i32 @s2n_handshake_type_set_tls12_flag(ptr noundef %279, i32 noundef 64)
  %281 = getelementptr inbounds %struct.s2n_result, ptr %17, i32 0, i32 0
  store i32 %280, ptr %281, align 4
  %282 = getelementptr inbounds %struct.s2n_result, ptr %17, i32 0, i32 0
  %283 = load i32, ptr %282, align 4
  %284 = call zeroext i1 @s2n_result_is_ok(i32 %283)
  br i1 %284, label %286, label %285

285:                                              ; preds = %278
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

286:                                              ; preds = %278
  br label %287

287:                                              ; preds = %286
  br label %288

288:                                              ; preds = %287
  br label %289

289:                                              ; preds = %288, %272
  br label %290

290:                                              ; preds = %289, %215
  %291 = load ptr, ptr %3, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.s2n_connection, ptr %291, i32 0, i32 23
  %293 = load i8, ptr %292, align 4, !tbaa !42
  %294 = zext i8 %293 to i32
  %295 = icmp sle i32 %294, 33
  br i1 %295, label %296, label %335

296:                                              ; preds = %290
  %297 = load ptr, ptr %3, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.s2n_connection, ptr %297, i32 0, i32 13
  %299 = load i32, ptr %298, align 4, !tbaa !44
  %300 = icmp eq i32 %299, 0
  br i1 %300, label %301, label %335

301:                                              ; preds = %296
  %302 = load ptr, ptr %3, align 8, !tbaa !5
  %303 = call i32 @s2n_allowed_to_cache_connection(ptr noundef %302)
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %305, label %335

305:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %306 = load ptr, ptr %3, align 8, !tbaa !5
  %307 = call i32 @s2n_resume_from_cache(ptr noundef %306)
  store i32 %307, ptr %18, align 4, !tbaa !12
  %308 = load i32, ptr %18, align 4, !tbaa !12
  %309 = icmp eq i32 %308, 0
  br i1 %309, label %318, label %310

310:                                              ; preds = %305
  %311 = load i32, ptr %18, align 4, !tbaa !12
  %312 = icmp slt i32 %311, 0
  br i1 %312, label %313, label %320

313:                                              ; preds = %310
  %314 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %315 = load i32, ptr %314, align 4, !tbaa !12
  %316 = call i32 @s2n_error_get_type(i32 noundef %315)
  %317 = icmp eq i32 %316, 3
  br i1 %317, label %318, label %320

318:                                              ; preds = %313, %305
  %319 = load i32, ptr %18, align 4, !tbaa !12
  store i32 %319, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %332

320:                                              ; preds = %313, %310
  br label %321

321:                                              ; preds = %320
  %322 = load ptr, ptr %3, align 8, !tbaa !5
  %323 = call i32 @s2n_validate_ems_status(ptr noundef %322)
  %324 = getelementptr inbounds %struct.s2n_result, ptr %19, i32 0, i32 0
  store i32 %323, ptr %324, align 4
  %325 = getelementptr inbounds %struct.s2n_result, ptr %19, i32 0, i32 0
  %326 = load i32, ptr %325, align 4
  %327 = call zeroext i1 @s2n_result_is_ok(i32 %326)
  br i1 %327, label %329, label %328

328:                                              ; preds = %321
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %332

329:                                              ; preds = %321
  br label %330

330:                                              ; preds = %329
  br label %331

331:                                              ; preds = %330
  store i32 0, ptr %9, align 4
  br label %332

332:                                              ; preds = %331, %328, %318
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  %333 = load i32, ptr %9, align 4
  switch i32 %333, label %447 [
    i32 0, label %334
  ]

334:                                              ; preds = %332
  br label %335

335:                                              ; preds = %334, %301, %296, %290
  br label %336

336:                                              ; preds = %335, %271
  %337 = load ptr, ptr %3, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.s2n_connection, ptr %337, i32 0, i32 13
  %339 = load i32, ptr %338, align 4, !tbaa !44
  %340 = icmp eq i32 %339, 1
  br i1 %340, label %341, label %348

341:                                              ; preds = %336
  %342 = load ptr, ptr %3, align 8, !tbaa !5
  %343 = load i32, ptr %342, align 8
  %344 = lshr i32 %343, 1
  %345 = and i32 %344, 1
  %346 = icmp eq i32 %345, 1
  br i1 %346, label %347, label %348

347:                                              ; preds = %341
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

348:                                              ; preds = %341, %336
  br label %349

349:                                              ; preds = %348
  %350 = load ptr, ptr %3, align 8, !tbaa !5
  %351 = call i32 @s2n_generate_new_client_session_id(ptr noundef %350)
  %352 = icmp sgt i32 %351, -1
  br i1 %352, label %354, label %353

353:                                              ; preds = %349
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

354:                                              ; preds = %349
  br label %355

355:                                              ; preds = %354
  br label %356

356:                                              ; preds = %355
  br label %357

357:                                              ; preds = %356
  %358 = load ptr, ptr %3, align 8, !tbaa !5
  %359 = call i32 @s2n_handshake_type_set_flag(ptr noundef %358, i32 noundef 2)
  %360 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  store i32 %359, ptr %360, align 4
  %361 = getelementptr inbounds %struct.s2n_result, ptr %20, i32 0, i32 0
  %362 = load i32, ptr %361, align 4
  %363 = call zeroext i1 @s2n_result_is_ok(i32 %362)
  br i1 %363, label %365, label %364

364:                                              ; preds = %357
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

365:                                              ; preds = %357
  br label %366

366:                                              ; preds = %365
  br label %367

367:                                              ; preds = %366
  store i8 0, ptr %21, align 1, !tbaa !47
  br label %368

368:                                              ; preds = %367
  %369 = load ptr, ptr %3, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.s2n_connection, ptr %369, i32 0, i32 27
  %371 = load ptr, ptr %370, align 8, !tbaa !14
  %372 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %371, i32 0, i32 0
  %373 = load ptr, ptr %372, align 8, !tbaa !48
  %374 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %373, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !53
  %376 = call i32 @s2n_kex_is_ephemeral(ptr noundef %375, ptr noundef %21)
  %377 = getelementptr inbounds %struct.s2n_result, ptr %22, i32 0, i32 0
  store i32 %376, ptr %377, align 4
  %378 = getelementptr inbounds %struct.s2n_result, ptr %22, i32 0, i32 0
  %379 = load i32, ptr %378, align 4
  %380 = call zeroext i1 @s2n_result_is_ok(i32 %379)
  br i1 %380, label %382, label %381

381:                                              ; preds = %368
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

382:                                              ; preds = %368
  br label %383

383:                                              ; preds = %382
  br label %384

384:                                              ; preds = %383
  %385 = load i8, ptr %21, align 1, !tbaa !47, !range !55, !noundef !56
  %386 = trunc i8 %385 to i1
  br i1 %386, label %387, label %399

387:                                              ; preds = %384
  br label %388

388:                                              ; preds = %387
  %389 = load ptr, ptr %3, align 8, !tbaa !5
  %390 = call i32 @s2n_handshake_type_set_tls12_flag(ptr noundef %389, i32 noundef 16)
  %391 = getelementptr inbounds %struct.s2n_result, ptr %23, i32 0, i32 0
  store i32 %390, ptr %391, align 4
  %392 = getelementptr inbounds %struct.s2n_result, ptr %23, i32 0, i32 0
  %393 = load i32, ptr %392, align 4
  %394 = call zeroext i1 @s2n_result_is_ok(i32 %393)
  br i1 %394, label %396, label %395

395:                                              ; preds = %388
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

396:                                              ; preds = %388
  br label %397

397:                                              ; preds = %396
  br label %398

398:                                              ; preds = %397
  br label %399

399:                                              ; preds = %398, %384
  %400 = load ptr, ptr %3, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.s2n_connection, ptr %400, i32 0, i32 13
  %402 = load i32, ptr %401, align 4, !tbaa !44
  %403 = icmp eq i32 %402, 0
  br i1 %403, label %404, label %424

404:                                              ; preds = %399
  %405 = load ptr, ptr %3, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.s2n_connection, ptr %405, i32 0, i32 65
  %407 = load i32, ptr %406, align 8, !tbaa !57
  %408 = icmp eq i32 %407, 1
  br i1 %408, label %409, label %424

409:                                              ; preds = %404
  %410 = load ptr, ptr %3, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.s2n_connection, ptr %410, i32 0, i32 32
  %412 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %411, i32 0, i32 7
  %413 = load ptr, ptr %412, align 8, !tbaa !58
  %414 = icmp ne ptr %413, null
  br i1 %414, label %415, label %424

415:                                              ; preds = %409
  %416 = load ptr, ptr %3, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.s2n_connection, ptr %416, i32 0, i32 32
  %418 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %417, i32 0, i32 7
  %419 = load ptr, ptr %418, align 8, !tbaa !58
  %420 = getelementptr inbounds %struct.s2n_cert_chain_and_key, ptr %419, i32 0, i32 2
  %421 = getelementptr inbounds %struct.s2n_blob, ptr %420, i32 0, i32 1
  %422 = load i32, ptr %421, align 8, !tbaa !59
  %423 = icmp ugt i32 %422, 0
  br i1 %423, label %434, label %424

424:                                              ; preds = %415, %409, %404, %399
  %425 = load ptr, ptr %3, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.s2n_connection, ptr %425, i32 0, i32 13
  %427 = load i32, ptr %426, align 4, !tbaa !44
  %428 = icmp eq i32 %427, 1
  br i1 %428, label %429, label %446

429:                                              ; preds = %424
  %430 = load ptr, ptr %3, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.s2n_connection, ptr %430, i32 0, i32 65
  %432 = load i32, ptr %431, align 8, !tbaa !57
  %433 = icmp eq i32 %432, 1
  br i1 %433, label %434, label %446

434:                                              ; preds = %429, %415
  br label %435

435:                                              ; preds = %434
  %436 = load ptr, ptr %3, align 8, !tbaa !5
  %437 = call i32 @s2n_handshake_type_set_tls12_flag(ptr noundef %436, i32 noundef 32)
  %438 = getelementptr inbounds %struct.s2n_result, ptr %24, i32 0, i32 0
  store i32 %437, ptr %438, align 4
  %439 = getelementptr inbounds %struct.s2n_result, ptr %24, i32 0, i32 0
  %440 = load i32, ptr %439, align 4
  %441 = call zeroext i1 @s2n_result_is_ok(i32 %440)
  br i1 %441, label %443, label %442

442:                                              ; preds = %435
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

443:                                              ; preds = %435
  br label %444

444:                                              ; preds = %443
  br label %445

445:                                              ; preds = %444
  br label %446

446:                                              ; preds = %445, %429, %424
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %447

447:                                              ; preds = %446, %442, %395, %381, %364, %353, %347, %332, %285, %267, %245, %236, %211, %192, %172, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %448

448:                                              ; preds = %447, %146, %136, %127, %125, %109, %95, %57
  %449 = load i32, ptr %2, align 4
  ret i32 %449
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_conn_choose_state_machine(ptr noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_conn_set_tls13_handshake_type(ptr noundef) #0

declare i32 @s2n_handshake_type_reset(ptr noundef) #5

declare i32 @s2n_handshake_type_set_flag(ptr noundef, i32 noundef) #5

declare i32 @s2n_connection_get_client_auth_type(ptr noundef, ptr noundef) #5

declare i32 @s2n_handshake_type_set_tls12_flag(ptr noundef, i32 noundef) #5

declare i32 @s2n_resume_decrypt_session(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_validate_ems_status(ptr noundef) #0

declare i32 @s2n_config_is_encrypt_key_available(ptr noundef) #5

declare i32 @s2n_allowed_to_cache_connection(ptr noundef) #5

declare i32 @s2n_resume_from_cache(ptr noundef) #5

declare i32 @s2n_error_get_type(i32 noundef) #5

declare i32 @s2n_kex_is_ephemeral(ptr noundef, ptr noundef) #5

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { "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, !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, !6, i64 232}
!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, !7, i64 220}
!43 = !{!15, !13, i64 2204}
!44 = !{!15, !13, i64 148}
!45 = !{!15, !6, i64 8}
!46 = !{!15, !13, i64 3780}
!47 = !{!25, !25, i64 0}
!48 = !{!49, !6, i64 0}
!49 = !{!"s2n_crypto_parameters", !6, i64 0, !50, i64 8, !50, i64 16, !51, i64 24, !51, i64 456, !7, i64 888, !7, i64 904, !7, i64 920, !7, i64 928}
!50 = !{!"s2n_session_key", !6, i64 0}
!51 = !{!"s2n_hmac_state", !13, i64 0, !31, i64 4, !13, i64 8, !31, i64 12, !7, i64 14, !52, i64 16, !52, i64 72, !52, i64 128, !52, i64 184, !7, i64 240, !7, i64 368}
!52 = !{!"s2n_hash_state", !6, i64 0, !13, i64 8, !7, i64 12, !17, i64 16, !7, i64 24}
!53 = !{!54, !6, i64 32}
!54 = !{!"s2n_cipher_suite", !13, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !6, i64 32, !13, i64 40, !6, i64 48, !7, i64 56, !7, i64 72, !6, i64 80, !6, i64 88, !13, i64 96, !7, i64 100}
!55 = !{i8 0, i8 2}
!56 = !{}
!57 = !{!15, !13, i64 2784}
!58 = !{!15, !6, i64 1544}
!59 = !{!60, !13, i64 24}
!60 = !{!"s2n_cert_chain_and_key", !6, i64 0, !6, i64 8, !24, i64 16, !24, i64 40, !6, i64 64, !6, i64 72, !6, i64 80}


; 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.2 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [94 x i8], align 1

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

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

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

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

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

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_conn_set_handshake_type(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = alloca i8, align 1
  %.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.2, ptr %5, align 8, !tbaa !5
  %6 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.2, i64 21), i32 noundef 47) #6
  %.not73 = icmp eq ptr %6, null
  %7 = getelementptr inbounds i8, ptr %6, i64 1
  %8 = select i1 %.not73, ptr getelementptr inbounds (i8, ptr @.str.2, 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 %155

12:                                               ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 232
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %.not74 = icmp eq ptr %14, null
  br i1 %.not74, label %15, label %23

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

23:                                               ; preds = %12
  %24 = getelementptr inbounds i8, ptr %0, i64 220
  %25 = load i8, ptr %24, align 4, !tbaa !41
  %26 = tail call i32 @s2n_conn_choose_state_machine(ptr noundef nonnull %0, i8 noundef zeroext %25)
  %27 = tail call zeroext i1 @s2n_result_is_ok(i32 %26)
  br i1 %27, label %28, label %155

28:                                               ; preds = %23
  %29 = getelementptr inbounds i8, ptr %0, i64 2204
  %30 = load i32, ptr %29, align 4, !tbaa !42
  %31 = icmp eq i32 %30, 2
  br i1 %31, label %32, label %35

32:                                               ; preds = %28
  %33 = tail call i32 @s2n_conn_set_tls13_handshake_type(ptr noundef nonnull %0)
  %34 = tail call zeroext i1 @s2n_result_is_ok(i32 %33)
  %not. = xor i1 %34, true
  %. = sext i1 %not. to i32
  br label %155

35:                                               ; preds = %28
  %36 = tail call i32 @s2n_handshake_type_reset(ptr noundef nonnull %0) #7
  %37 = tail call zeroext i1 @s2n_result_is_ok(i32 %36)
  br i1 %37, label %38, label %155

38:                                               ; preds = %35
  %39 = tail call i32 @s2n_handshake_type_set_flag(ptr noundef nonnull %0, i32 noundef 1) #7
  %40 = tail call zeroext i1 @s2n_result_is_ok(i32 %39)
  br i1 %40, label %41, label %155

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %42 = call i32 @s2n_connection_get_client_auth_type(ptr noundef nonnull %0, ptr noundef nonnull %2) #7
  %43 = icmp sgt i32 %42, -1
  br i1 %43, label %44, label %.thread

44:                                               ; preds = %41
  %45 = getelementptr inbounds i8, ptr %0, i64 148
  %46 = load i32, ptr %45, align 4, !tbaa !43
  %47 = icmp eq i32 %46, 1
  %48 = load i32, ptr %2, align 4
  %49 = icmp eq i32 %48, 1
  %or.cond = select i1 %47, i1 %49, i1 false
  br i1 %or.cond, label %50, label %53

50:                                               ; preds = %44
  %51 = call i32 @s2n_handshake_type_set_flag(ptr noundef nonnull %0, i32 noundef 4) #7
  %52 = call zeroext i1 @s2n_result_is_ok(i32 %51)
  br i1 %52, label %59, label %.thread

53:                                               ; preds = %44
  %54 = icmp eq i32 %46, 0
  %55 = icmp ne i32 %48, 0
  %or.cond3 = select i1 %54, i1 %55, i1 false
  br i1 %or.cond3, label %56, label %59

56:                                               ; preds = %53
  %57 = call i32 @s2n_handshake_type_set_flag(ptr noundef nonnull %0, i32 noundef 4) #7
  %58 = call zeroext i1 @s2n_result_is_ok(i32 %57)
  br i1 %58, label %59, label %.thread

59:                                               ; preds = %53, %56, %50
  %60 = load i32, ptr %0, align 8
  %61 = and i32 %60, 131072
  %.not76 = icmp eq i32 %61, 0
  br i1 %.not76, label %65, label %62

62:                                               ; preds = %59
  %63 = call i32 @s2n_handshake_type_set_tls12_flag(ptr noundef nonnull %0, i32 noundef 128) #7
  %64 = call zeroext i1 @s2n_result_is_ok(i32 %63)
  br i1 %64, label %65, label %.thread

65:                                               ; preds = %62, %59
  %66 = getelementptr inbounds i8, ptr %0, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !44
  %68 = load i32, ptr %67, align 8
  %69 = and i32 %68, 1
  %.not77 = icmp eq i32 %69, 0
  br i1 %.not77, label %90, label %70

70:                                               ; preds = %65
  %71 = getelementptr inbounds i8, ptr %0, i64 3780
  %72 = load i32, ptr %71, align 4, !tbaa !45
  switch i32 %72, label %90 [
    i32 1, label %73
    i32 2, label %87
  ]

73:                                               ; preds = %70
  %74 = getelementptr inbounds i8, ptr %0, i64 3992
  %75 = call i32 @s2n_resume_decrypt_session(ptr noundef nonnull %0, ptr noundef nonnull %74) #7
  %76 = call zeroext i1 @s2n_result_is_ok(i32 %75)
  br i1 %76, label %.thread, label %77

77:                                               ; preds = %73
  %78 = call i32 @s2n_validate_ems_status(ptr noundef nonnull %0)
  %79 = call zeroext i1 @s2n_result_is_ok(i32 %78)
  br i1 %79, label %80, label %.thread

80:                                               ; preds = %77
  %81 = load ptr, ptr %66, align 8, !tbaa !44
  %82 = call i32 @s2n_config_is_encrypt_key_available(ptr noundef %81) #7
  %83 = call zeroext i1 @s2n_result_is_ok(i32 %82)
  br i1 %83, label %84, label %thread-pre-split

84:                                               ; preds = %80
  store i32 2, ptr %71, align 4, !tbaa !45
  %85 = call i32 @s2n_handshake_type_set_tls12_flag(ptr noundef nonnull %0, i32 noundef 64) #7
  %86 = call zeroext i1 @s2n_result_is_ok(i32 %85)
  br i1 %86, label %thread-pre-split, label %.thread

87:                                               ; preds = %70
  %88 = call i32 @s2n_handshake_type_set_tls12_flag(ptr noundef nonnull %0, i32 noundef 64) #7
  %89 = call zeroext i1 @s2n_result_is_ok(i32 %88)
  br i1 %89, label %90, label %.thread

90:                                               ; preds = %70, %87, %65
  %91 = load i8, ptr %24, align 4, !tbaa !41
  %92 = icmp ult i8 %91, 34
  br i1 %92, label %93, label %thread-pre-split

93:                                               ; preds = %90
  %94 = load i32, ptr %45, align 4, !tbaa !43
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %111

96:                                               ; preds = %93
  %97 = call i32 @s2n_allowed_to_cache_connection(ptr noundef nonnull %0) #7
  %.not78 = icmp eq i32 %97, 0
  br i1 %.not78, label %thread-pre-split, label %98

98:                                               ; preds = %96
  %99 = call i32 @s2n_resume_from_cache(ptr noundef nonnull %0) #7
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %.thread, label %101

101:                                              ; preds = %98
  %102 = icmp slt i32 %99, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %101
  %104 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %105 = load i32, ptr %104, align 4, !tbaa !11
  %106 = call i32 @s2n_error_get_type(i32 noundef %105) #7
  %107 = icmp eq i32 %106, 3
  br i1 %107, label %.thread, label %108

108:                                              ; preds = %103, %101
  %109 = call i32 @s2n_validate_ems_status(ptr noundef nonnull %0)
  %110 = call zeroext i1 @s2n_result_is_ok(i32 %109)
  br i1 %110, label %thread-pre-split, label %.thread

thread-pre-split:                                 ; preds = %84, %80, %108, %96, %90
  %.pr = load i32, ptr %45, align 4, !tbaa !43
  br label %111

111:                                              ; preds = %thread-pre-split, %93
  %112 = phi i32 [ %.pr, %thread-pre-split ], [ %94, %93 ]
  %113 = icmp eq i32 %112, 1
  br i1 %113, label %114, label %117

114:                                              ; preds = %111
  %115 = load i32, ptr %0, align 8
  %116 = and i32 %115, 2
  %.not79 = icmp eq i32 %116, 0
  br i1 %.not79, label %117, label %.thread

117:                                              ; preds = %111, %114
  %118 = call i32 @s2n_generate_new_client_session_id(ptr noundef nonnull %0)
  %119 = icmp sgt i32 %118, -1
  br i1 %119, label %120, label %.thread

120:                                              ; preds = %117
  %121 = call i32 @s2n_handshake_type_set_flag(ptr noundef nonnull %0, i32 noundef 2) #7
  %122 = call zeroext i1 @s2n_result_is_ok(i32 %121)
  br i1 %122, label %123, label %.thread

123:                                              ; preds = %120
  store i8 0, ptr %3, align 1, !tbaa !46
  %124 = load ptr, ptr %13, align 8, !tbaa !13
  %125 = load ptr, ptr %124, align 8, !tbaa !47
  %126 = getelementptr inbounds i8, ptr %125, i64 32
  %127 = load ptr, ptr %126, align 8, !tbaa !52
  %128 = call i32 @s2n_kex_is_ephemeral(ptr noundef %127, ptr noundef nonnull %3) #7
  %129 = call zeroext i1 @s2n_result_is_ok(i32 %128)
  br i1 %129, label %130, label %.thread

130:                                              ; preds = %123
  %131 = load i8, ptr %3, align 1, !tbaa !46, !range !54, !noundef !55
  %132 = trunc nuw i8 %131 to i1
  br i1 %132, label %133, label %136

133:                                              ; preds = %130
  %134 = call i32 @s2n_handshake_type_set_tls12_flag(ptr noundef nonnull %0, i32 noundef 16) #7
  %135 = call zeroext i1 @s2n_result_is_ok(i32 %134)
  br i1 %135, label %136, label %.thread

136:                                              ; preds = %133, %130
  %137 = load i32, ptr %45, align 4, !tbaa !43
  switch i32 %137, label %.thread87 [
    i32 0, label %138
    i32 1, label %148
  ]

138:                                              ; preds = %136
  %139 = getelementptr inbounds i8, ptr %0, i64 2784
  %140 = load i32, ptr %139, align 8, !tbaa !56
  %141 = icmp eq i32 %140, 1
  br i1 %141, label %142, label %.thread87

142:                                              ; preds = %138
  %143 = getelementptr inbounds i8, ptr %0, i64 1544
  %144 = load ptr, ptr %143, align 8, !tbaa !57
  %.not80 = icmp eq ptr %144, null
  br i1 %.not80, label %.thread87, label %145

145:                                              ; preds = %142
  %146 = getelementptr inbounds i8, ptr %144, i64 24
  %147 = load i32, ptr %146, align 8, !tbaa !58
  %.not81 = icmp eq i32 %147, 0
  br i1 %.not81, label %.thread87, label %152

148:                                              ; preds = %136
  %149 = getelementptr inbounds i8, ptr %0, i64 2784
  %150 = load i32, ptr %149, align 8, !tbaa !56
  %151 = icmp eq i32 %150, 1
  br i1 %151, label %152, label %.thread87

152:                                              ; preds = %145, %148
  %153 = call i32 @s2n_handshake_type_set_tls12_flag(ptr noundef nonnull %0, i32 noundef 32) #7
  %154 = call zeroext i1 @s2n_result_is_ok(i32 %153)
  br i1 %154, label %.thread87, label %.thread

.thread87:                                        ; preds = %136, %138, %142, %145, %152, %148
  br label %.thread

.thread:                                          ; preds = %98, %103, %152, %133, %123, %120, %117, %114, %87, %84, %77, %73, %62, %56, %50, %41, %108, %.thread87
  %.1 = phi i32 [ 0, %.thread87 ], [ -1, %108 ], [ -1, %41 ], [ -1, %50 ], [ -1, %56 ], [ -1, %62 ], [ 0, %73 ], [ -1, %77 ], [ -1, %84 ], [ -1, %87 ], [ 0, %114 ], [ -1, %117 ], [ -1, %120 ], [ -1, %123 ], [ -1, %133 ], [ -1, %152 ], [ %99, %103 ], [ 0, %98 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  br label %155

155:                                              ; preds = %38, %35, %32, %23, %.thread, %15, %4
  %.2 = phi i32 [ %.1, %.thread ], [ -1, %15 ], [ -1, %4 ], [ -1, %23 ], [ %., %32 ], [ -1, %35 ], [ -1, %38 ]
  ret i32 %.2
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_conn_choose_state_machine(ptr noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_conn_set_tls13_handshake_type(ptr noundef) local_unnamed_addr #0

declare i32 @s2n_handshake_type_reset(ptr noundef) local_unnamed_addr #5

declare i32 @s2n_handshake_type_set_flag(ptr noundef, i32 noundef) local_unnamed_addr #5

declare i32 @s2n_connection_get_client_auth_type(ptr noundef, ptr noundef) local_unnamed_addr #5

declare i32 @s2n_handshake_type_set_tls12_flag(ptr noundef, i32 noundef) local_unnamed_addr #5

declare i32 @s2n_resume_decrypt_session(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_validate_ems_status(ptr noundef) local_unnamed_addr #0

declare i32 @s2n_config_is_encrypt_key_available(ptr noundef) local_unnamed_addr #5

declare i32 @s2n_allowed_to_cache_connection(ptr noundef) local_unnamed_addr #5

declare i32 @s2n_resume_from_cache(ptr noundef) local_unnamed_addr #5

declare i32 @s2n_error_get_type(i32 noundef) local_unnamed_addr #5

declare i32 @s2n_kex_is_ephemeral(ptr noundef, ptr noundef) local_unnamed_addr #5

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


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