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

; 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_blob = type { ptr, i32, i32, i8 }
%struct.s2n_kex_raw_server_data = type { %struct.s2n_ecdhe_raw_server_params, %struct.s2n_dhe_raw_server_points, %struct.s2n_kem_raw_server_params }
%struct.s2n_ecdhe_raw_server_params = type { %struct.s2n_blob, %struct.s2n_blob }
%struct.s2n_dhe_raw_server_points = type { %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob }
%struct.s2n_kem_raw_server_params = type { %struct.s2n_blob, %struct.s2n_blob }
%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_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_handshake_hashes = type { %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, [48 x i8], %struct.s2n_hash_state }
%struct.s2n_signature_scheme = type { i16, ptr, i32, i32, i8, i8, i16, ptr }

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

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_server_key_recv(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.s2n_blob, align 8
  %8 = alloca %struct.s2n_kex_raw_server_data, align 8
  %9 = alloca %struct.s2n_result, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.s2n_result, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i16, align 2
  %14 = alloca %struct.s2n_blob, align 8
  %15 = alloca %struct.s2n_result, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %1
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %50, label %19

19:                                               ; preds = %16
  br label %20

20:                                               ; preds = %19
  br label %21

21:                                               ; preds = %20
  %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
  store ptr @.str, ptr %23, align 8, !tbaa !9
  %24 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %25 = getelementptr inbounds %struct.s2n_debug_info, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds i8, ptr %26, i64 21
  %28 = call ptr @strrchr(ptr noundef %27, i32 noundef 47) #7
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %37

30:                                               ; preds = %21
  %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
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %33, i64 21
  %35 = call ptr @strrchr(ptr noundef %34, i32 noundef 47) #7
  %36 = getelementptr inbounds i8, ptr %35, i64 1
  br label %42

37:                                               ; preds = %21
  %38 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %39 = getelementptr inbounds %struct.s2n_debug_info, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %40, i64 21
  br label %42

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

48:                                               ; preds = %42
  store i32 -1, ptr %2, align 4
  br label %513

49:                                               ; No predecessors!
  br label %50

50:                                               ; preds = %49, %16
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.s2n_connection, ptr %53, i32 0, i32 27
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  %56 = icmp ne ptr %55, null
  br i1 %56, label %88, label %57

57:                                               ; preds = %52
  br label %58

58:                                               ; preds = %57
  br label %59

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

68:                                               ; preds = %59
  %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
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds i8, ptr %71, i64 21
  %73 = call ptr @strrchr(ptr noundef %72, i32 noundef 47) #7
  %74 = getelementptr inbounds i8, ptr %73, i64 1
  br label %80

75:                                               ; preds = %59
  %76 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %77 = getelementptr inbounds %struct.s2n_debug_info, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = getelementptr inbounds i8, ptr %78, i64 21
  br label %80

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

86:                                               ; preds = %80
  store i32 -1, ptr %2, align 4
  br label %513

87:                                               ; No predecessors!
  br label %88

88:                                               ; preds = %87, %52
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.s2n_connection, ptr %91, i32 0, i32 27
  %93 = load ptr, ptr %92, align 8, !tbaa !14
  %94 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !42
  %96 = icmp ne ptr %95, null
  br i1 %96, label %128, label %97

97:                                               ; preds = %90
  br label %98

98:                                               ; preds = %97
  br label %99

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

108:                                              ; preds = %99
  %109 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %110 = getelementptr inbounds %struct.s2n_debug_info, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  %112 = getelementptr inbounds i8, ptr %111, i64 21
  %113 = call ptr @strrchr(ptr noundef %112, i32 noundef 47) #7
  %114 = getelementptr inbounds i8, ptr %113, i64 1
  br label %120

115:                                              ; preds = %99
  %116 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %117 = getelementptr inbounds %struct.s2n_debug_info, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds i8, ptr %118, i64 21
  br label %120

120:                                              ; preds = %115, %108
  %121 = phi ptr [ %114, %108 ], [ %119, %115 ]
  %122 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %123 = getelementptr inbounds %struct.s2n_debug_info, ptr %122, i32 0, i32 1
  store ptr %121, ptr %123, align 8, !tbaa !11
  %124 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %124, align 4, !tbaa !12
  %125 = call i32 @s2n_calculate_stacktrace()
  br label %126

126:                                              ; preds = %120
  store i32 -1, ptr %2, align 4
  br label %513

127:                                              ; No predecessors!
  br label %128

128:                                              ; preds = %127, %90
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.s2n_connection, ptr %131, i32 0, i32 27
  %133 = load ptr, ptr %132, align 8, !tbaa !14
  %134 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !42
  %136 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !47
  %138 = icmp ne ptr %137, null
  br i1 %138, label %170, label %139

139:                                              ; preds = %130
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  %142 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %143 = getelementptr inbounds %struct.s2n_debug_info, ptr %142, i32 0, i32 0
  store ptr @.str.3, ptr %143, align 8, !tbaa !9
  %144 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %145 = getelementptr inbounds %struct.s2n_debug_info, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = getelementptr inbounds i8, ptr %146, i64 21
  %148 = call ptr @strrchr(ptr noundef %147, i32 noundef 47) #7
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %157

150:                                              ; preds = %141
  %151 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %152 = getelementptr inbounds %struct.s2n_debug_info, ptr %151, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8, !tbaa !9
  %154 = getelementptr inbounds i8, ptr %153, i64 21
  %155 = call ptr @strrchr(ptr noundef %154, i32 noundef 47) #7
  %156 = getelementptr inbounds i8, ptr %155, i64 1
  br label %162

157:                                              ; preds = %141
  %158 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %159 = getelementptr inbounds %struct.s2n_debug_info, ptr %158, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8, !tbaa !9
  %161 = getelementptr inbounds i8, ptr %160, i64 21
  br label %162

162:                                              ; preds = %157, %150
  %163 = phi ptr [ %156, %150 ], [ %161, %157 ]
  %164 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %165 = getelementptr inbounds %struct.s2n_debug_info, ptr %164, i32 0, i32 1
  store ptr %163, ptr %165, align 8, !tbaa !11
  %166 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %166, align 4, !tbaa !12
  %167 = call i32 @s2n_calculate_stacktrace()
  br label %168

168:                                              ; preds = %162
  store i32 -1, ptr %2, align 4
  br label %513

169:                                              ; No predecessors!
  br label %170

170:                                              ; preds = %169, %130
  br label %171

171:                                              ; preds = %170
  br label %172

172:                                              ; preds = %171
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.s2n_connection, ptr %173, i32 0, i32 52
  %175 = getelementptr inbounds %struct.s2n_handshake, ptr %174, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !49
  %177 = icmp ne ptr %176, null
  br i1 %177, label %209, label %178

178:                                              ; preds = %172
  br label %179

179:                                              ; preds = %178
  br label %180

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

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

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

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

207:                                              ; preds = %201
  store i32 -1, ptr %2, align 4
  br label %513

208:                                              ; No predecessors!
  br label %209

209:                                              ; preds = %208, %172
  br label %210

210:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.s2n_connection, ptr %211, i32 0, i32 52
  %213 = getelementptr inbounds %struct.s2n_handshake, ptr %212, i32 0, i32 1
  %214 = load ptr, ptr %213, align 8, !tbaa !49
  %215 = getelementptr inbounds %struct.s2n_handshake_hashes, ptr %214, i32 0, i32 8
  store ptr %215, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.s2n_connection, ptr %216, i32 0, i32 27
  %218 = load ptr, ptr %217, align 8, !tbaa !14
  %219 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %218, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8, !tbaa !42
  %221 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !47
  store ptr %222, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.s2n_connection, ptr %223, i32 0, i32 52
  %225 = getelementptr inbounds %struct.s2n_handshake, ptr %224, i32 0, i32 0
  store ptr %225, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 168, ptr %8) #8
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 168, i1 false)
  br label %226

226:                                              ; preds = %210
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = call i32 @s2n_kex_server_key_recv_read_data(ptr noundef %227, ptr noundef %228, ptr noundef %7, ptr noundef %8)
  %230 = getelementptr inbounds %struct.s2n_result, ptr %9, i32 0, i32 0
  store i32 %229, ptr %230, align 4
  %231 = getelementptr inbounds %struct.s2n_result, ptr %9, i32 0, i32 0
  %232 = load i32, ptr %231, align 4
  %233 = call zeroext i1 @s2n_result_is_ok(i32 %232)
  br i1 %233, label %235, label %234

234:                                              ; preds = %226
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %512

235:                                              ; preds = %226
  br label %236

236:                                              ; preds = %235
  br label %237

237:                                              ; preds = %236
  br label %238

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

246:                                              ; preds = %238
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %512

247:                                              ; preds = %238
  br label %248

248:                                              ; preds = %247
  br label %249

249:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.s2n_connection, ptr %250, i32 0, i32 32
  %252 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %251, i32 0, i32 5
  %253 = load ptr, ptr %252, align 8, !tbaa !50
  store ptr %253, ptr %12, align 8, !tbaa !5
  br label %254

254:                                              ; preds = %249
  %255 = load ptr, ptr %12, align 8, !tbaa !5
  %256 = icmp ne ptr %255, null
  br i1 %256, label %290, label %257

257:                                              ; preds = %254
  br label %258

258:                                              ; preds = %257
  br label %259

259:                                              ; preds = %258
  %260 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %261 = getelementptr inbounds %struct.s2n_debug_info, ptr %260, i32 0, i32 0
  store ptr @.str.5, ptr %261, align 8, !tbaa !9
  %262 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %263 = getelementptr inbounds %struct.s2n_debug_info, ptr %262, i32 0, i32 0
  %264 = load ptr, ptr %263, align 8, !tbaa !9
  %265 = getelementptr inbounds i8, ptr %264, i64 21
  %266 = call ptr @strrchr(ptr noundef %265, i32 noundef 47) #7
  %267 = icmp ne ptr %266, null
  br i1 %267, label %268, label %275

268:                                              ; preds = %259
  %269 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %270 = getelementptr inbounds %struct.s2n_debug_info, ptr %269, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8, !tbaa !9
  %272 = getelementptr inbounds i8, ptr %271, i64 21
  %273 = call ptr @strrchr(ptr noundef %272, i32 noundef 47) #7
  %274 = getelementptr inbounds i8, ptr %273, i64 1
  br label %280

275:                                              ; preds = %259
  %276 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %277 = getelementptr inbounds %struct.s2n_debug_info, ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8, !tbaa !9
  %279 = getelementptr inbounds i8, ptr %278, i64 21
  br label %280

280:                                              ; preds = %275, %268
  %281 = phi ptr [ %274, %268 ], [ %279, %275 ]
  %282 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %283 = getelementptr inbounds %struct.s2n_debug_info, ptr %282, i32 0, i32 1
  store ptr %281, ptr %283, align 8, !tbaa !11
  %284 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %284, align 4, !tbaa !12
  %285 = call i32 @s2n_calculate_stacktrace()
  br label %286

286:                                              ; preds = %280
  br label %287

287:                                              ; preds = %286
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %511

288:                                              ; No predecessors!
  br label %289

289:                                              ; preds = %288
  br label %290

290:                                              ; preds = %289, %254
  br label %291

291:                                              ; preds = %290
  br label %292

292:                                              ; preds = %291
  br label %293

293:                                              ; preds = %292
  %294 = load ptr, ptr %4, align 8, !tbaa !5
  %295 = load ptr, ptr %12, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.s2n_signature_scheme, ptr %295, i32 0, i32 2
  %297 = load i32, ptr %296, align 8, !tbaa !51
  %298 = call i32 @s2n_hash_init(ptr noundef %294, i32 noundef %297)
  %299 = icmp sgt i32 %298, -1
  br i1 %299, label %301, label %300

300:                                              ; preds = %293
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %511

301:                                              ; preds = %293
  br label %302

302:                                              ; preds = %301
  br label %303

303:                                              ; preds = %302
  br label %304

304:                                              ; preds = %303
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  %306 = load ptr, ptr %3, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.s2n_connection, ptr %306, i32 0, i32 32
  %308 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %307, i32 0, i32 12
  %309 = getelementptr inbounds [32 x i8], ptr %308, i64 0, i64 0
  %310 = call i32 @s2n_hash_update(ptr noundef %305, ptr noundef %309, i32 noundef 32)
  %311 = icmp sgt i32 %310, -1
  br i1 %311, label %313, label %312

312:                                              ; preds = %304
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %511

313:                                              ; preds = %304
  br label %314

314:                                              ; preds = %313
  br label %315

315:                                              ; preds = %314
  br label %316

316:                                              ; preds = %315
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  %318 = load ptr, ptr %3, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.s2n_connection, ptr %318, i32 0, i32 32
  %320 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %319, i32 0, i32 13
  %321 = getelementptr inbounds [32 x i8], ptr %320, i64 0, i64 0
  %322 = call i32 @s2n_hash_update(ptr noundef %317, ptr noundef %321, i32 noundef 32)
  %323 = icmp sgt i32 %322, -1
  br i1 %323, label %325, label %324

324:                                              ; preds = %316
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %511

325:                                              ; preds = %316
  br label %326

326:                                              ; preds = %325
  br label %327

327:                                              ; preds = %326
  br label %328

328:                                              ; preds = %327
  %329 = load ptr, ptr %4, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.s2n_blob, ptr %7, i32 0, i32 0
  %331 = load ptr, ptr %330, align 8, !tbaa !53
  %332 = getelementptr inbounds %struct.s2n_blob, ptr %7, i32 0, i32 1
  %333 = load i32, ptr %332, align 8, !tbaa !54
  %334 = call i32 @s2n_hash_update(ptr noundef %329, ptr noundef %331, i32 noundef %333)
  %335 = icmp sgt i32 %334, -1
  br i1 %335, label %337, label %336

336:                                              ; preds = %328
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %511

337:                                              ; preds = %328
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #8
  store i16 0, ptr %13, align 2, !tbaa !55
  br label %340

340:                                              ; preds = %339
  %341 = load ptr, ptr %6, align 8, !tbaa !5
  %342 = call i32 @s2n_stuffer_read_uint16(ptr noundef %341, ptr noundef %13)
  %343 = icmp sgt i32 %342, -1
  br i1 %343, label %345, label %344

344:                                              ; preds = %340
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %510

345:                                              ; preds = %340
  br label %346

346:                                              ; preds = %345
  br label %347

347:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 24, i1 false)
  br label %348

348:                                              ; preds = %347
  %349 = load ptr, ptr %6, align 8, !tbaa !5
  %350 = load i16, ptr %13, align 2, !tbaa !55
  %351 = zext i16 %350 to i32
  %352 = call ptr @s2n_stuffer_raw_read(ptr noundef %349, i32 noundef %351)
  %353 = load i16, ptr %13, align 2, !tbaa !55
  %354 = zext i16 %353 to i32
  %355 = call i32 @s2n_blob_init(ptr noundef %14, ptr noundef %352, i32 noundef %354)
  %356 = icmp sgt i32 %355, -1
  br i1 %356, label %358, label %357

357:                                              ; preds = %348
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %509

358:                                              ; preds = %348
  br label %359

359:                                              ; preds = %358
  br label %360

360:                                              ; preds = %359
  br label %361

361:                                              ; preds = %360
  %362 = getelementptr inbounds %struct.s2n_blob, ptr %14, i32 0, i32 0
  %363 = load ptr, ptr %362, align 8, !tbaa !53
  %364 = icmp ne ptr %363, null
  br i1 %364, label %398, label %365

365:                                              ; preds = %361
  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.6, 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 402653193, 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 %10, align 4
  br label %509

396:                                              ; No predecessors!
  br label %397

397:                                              ; preds = %396
  br label %398

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

399:                                              ; preds = %398
  br label %400

400:                                              ; preds = %399
  br label %401

401:                                              ; preds = %400
  %402 = load i16, ptr %13, align 2, !tbaa !55
  %403 = zext i16 %402 to i32
  %404 = icmp sgt i32 %403, 0
  br i1 %404, label %438, label %405

405:                                              ; preds = %401
  br label %406

406:                                              ; preds = %405
  br label %407

407:                                              ; preds = %406
  %408 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %409 = getelementptr inbounds %struct.s2n_debug_info, ptr %408, i32 0, i32 0
  store ptr @.str.7, ptr %409, align 8, !tbaa !9
  %410 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %411 = getelementptr inbounds %struct.s2n_debug_info, ptr %410, i32 0, i32 0
  %412 = load ptr, ptr %411, align 8, !tbaa !9
  %413 = getelementptr inbounds i8, ptr %412, i64 21
  %414 = call ptr @strrchr(ptr noundef %413, i32 noundef 47) #7
  %415 = icmp ne ptr %414, null
  br i1 %415, label %416, label %423

416:                                              ; preds = %407
  %417 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %418 = getelementptr inbounds %struct.s2n_debug_info, ptr %417, i32 0, i32 0
  %419 = load ptr, ptr %418, align 8, !tbaa !9
  %420 = getelementptr inbounds i8, ptr %419, i64 21
  %421 = call ptr @strrchr(ptr noundef %420, i32 noundef 47) #7
  %422 = getelementptr inbounds i8, ptr %421, i64 1
  br label %428

423:                                              ; preds = %407
  %424 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %425 = getelementptr inbounds %struct.s2n_debug_info, ptr %424, i32 0, i32 0
  %426 = load ptr, ptr %425, align 8, !tbaa !9
  %427 = getelementptr inbounds i8, ptr %426, i64 21
  br label %428

428:                                              ; preds = %423, %416
  %429 = phi ptr [ %422, %416 ], [ %427, %423 ]
  %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 1
  store ptr %429, ptr %431, align 8, !tbaa !11
  %432 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %432, align 4, !tbaa !12
  %433 = call i32 @s2n_calculate_stacktrace()
  br label %434

434:                                              ; preds = %428
  br label %435

435:                                              ; preds = %434
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %509

436:                                              ; No predecessors!
  br label %437

437:                                              ; preds = %436
  br label %438

438:                                              ; preds = %437, %401
  br label %439

439:                                              ; preds = %438
  br label %440

440:                                              ; preds = %439
  br label %441

441:                                              ; preds = %440
  %442 = load ptr, ptr %3, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.s2n_connection, ptr %442, i32 0, i32 32
  %444 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %443, i32 0, i32 0
  %445 = load ptr, ptr %12, align 8, !tbaa !5
  %446 = getelementptr inbounds %struct.s2n_signature_scheme, ptr %445, i32 0, i32 3
  %447 = load i32, ptr %446, align 4, !tbaa !56
  %448 = load ptr, ptr %4, align 8, !tbaa !5
  %449 = call i32 @s2n_pkey_verify(ptr noundef %444, i32 noundef %447, ptr noundef %448, ptr noundef %14)
  %450 = icmp slt i32 %449, 0
  br i1 %450, label %451, label %484

451:                                              ; preds = %441
  br label %452

452:                                              ; preds = %451
  br label %453

453:                                              ; preds = %452
  %454 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %455 = getelementptr inbounds %struct.s2n_debug_info, ptr %454, i32 0, i32 0
  store ptr @.str.8, ptr %455, align 8, !tbaa !9
  %456 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %457 = getelementptr inbounds %struct.s2n_debug_info, ptr %456, i32 0, i32 0
  %458 = load ptr, ptr %457, align 8, !tbaa !9
  %459 = getelementptr inbounds i8, ptr %458, i64 21
  %460 = call ptr @strrchr(ptr noundef %459, i32 noundef 47) #7
  %461 = icmp ne ptr %460, null
  br i1 %461, label %462, label %469

462:                                              ; preds = %453
  %463 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %464 = getelementptr inbounds %struct.s2n_debug_info, ptr %463, i32 0, i32 0
  %465 = load ptr, ptr %464, align 8, !tbaa !9
  %466 = getelementptr inbounds i8, ptr %465, i64 21
  %467 = call ptr @strrchr(ptr noundef %466, i32 noundef 47) #7
  %468 = getelementptr inbounds i8, ptr %467, i64 1
  br label %474

469:                                              ; preds = %453
  %470 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %471 = getelementptr inbounds %struct.s2n_debug_info, ptr %470, i32 0, i32 0
  %472 = load ptr, ptr %471, align 8, !tbaa !9
  %473 = getelementptr inbounds i8, ptr %472, i64 21
  br label %474

474:                                              ; preds = %469, %462
  %475 = phi ptr [ %468, %462 ], [ %473, %469 ]
  %476 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %477 = getelementptr inbounds %struct.s2n_debug_info, ptr %476, i32 0, i32 1
  store ptr %475, ptr %477, align 8, !tbaa !11
  %478 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544322, ptr %478, align 4, !tbaa !12
  %479 = call i32 @s2n_calculate_stacktrace()
  br label %480

480:                                              ; preds = %474
  br label %481

481:                                              ; preds = %480
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %509

482:                                              ; No predecessors!
  br label %483

483:                                              ; preds = %482
  br label %484

484:                                              ; preds = %483, %441
  br label %485

485:                                              ; preds = %484
  br label %486

486:                                              ; preds = %485
  br label %487

487:                                              ; preds = %486
  %488 = load ptr, ptr %3, align 8, !tbaa !5
  %489 = getelementptr inbounds %struct.s2n_connection, ptr %488, i32 0, i32 32
  %490 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %489, i32 0, i32 0
  %491 = call i32 @s2n_pkey_free(ptr noundef %490)
  %492 = icmp sgt i32 %491, -1
  br i1 %492, label %494, label %493

493:                                              ; preds = %487
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %509

494:                                              ; preds = %487
  br label %495

495:                                              ; preds = %494
  br label %496

496:                                              ; preds = %495
  br label %497

497:                                              ; preds = %496
  %498 = load ptr, ptr %5, align 8, !tbaa !5
  %499 = load ptr, ptr %3, align 8, !tbaa !5
  %500 = call i32 @s2n_kex_server_key_recv_parse_data(ptr noundef %498, ptr noundef %499, ptr noundef %8)
  %501 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  store i32 %500, ptr %501, align 4
  %502 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  %503 = load i32, ptr %502, align 4
  %504 = call zeroext i1 @s2n_result_is_ok(i32 %503)
  br i1 %504, label %506, label %505

505:                                              ; preds = %497
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %509

506:                                              ; preds = %497
  br label %507

507:                                              ; preds = %506
  br label %508

508:                                              ; preds = %507
  store i32 0, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %509

509:                                              ; preds = %508, %505, %493, %481, %435, %395, %357
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  br label %510

510:                                              ; preds = %509, %344
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #8
  br label %511

511:                                              ; preds = %510, %336, %324, %312, %300, %287
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %512

512:                                              ; preds = %511, %246, %234
  call void @llvm.lifetime.end.p0(i64 168, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %513

513:                                              ; preds = %512, %207, %168, %126, %86, %48
  %514 = load i32, ptr %2, align 4
  ret i32 %514
}

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

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

declare i32 @s2n_calculate_stacktrace() #3

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

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

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

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

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

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

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

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

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

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

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

declare i32 @s2n_pkey_free(ptr noundef) #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !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 = !{!43, !6, i64 0}
!43 = !{!"s2n_crypto_parameters", !6, i64 0, !44, i64 8, !44, i64 16, !45, i64 24, !45, i64 456, !7, i64 888, !7, i64 904, !7, i64 920, !7, i64 928}
!44 = !{!"s2n_session_key", !6, i64 0}
!45 = !{!"s2n_hmac_state", !13, i64 0, !31, i64 4, !13, i64 8, !31, i64 12, !7, i64 14, !46, i64 16, !46, i64 72, !46, i64 128, !46, i64 184, !7, i64 240, !7, i64 368}
!46 = !{!"s2n_hash_state", !6, i64 0, !13, i64 8, !7, i64 12, !17, i64 16, !7, i64 24}
!47 = !{!48, !6, i64 32}
!48 = !{!"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}
!49 = !{!15, !6, i64 2056}
!50 = !{!15, !6, i64 1528}
!51 = !{!52, !13, i64 16}
!52 = !{!"s2n_signature_scheme", !31, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !7, i64 24, !7, i64 25, !31, i64 26, !6, i64 32}
!53 = !{!24, !6, i64 0}
!54 = !{!24, !13, i64 8}
!55 = !{!31, !31, i64 0}
!56 = !{!52, !13, i64 20}


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

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.s2n_kex_raw_server_data = type { %struct.s2n_ecdhe_raw_server_params, %struct.s2n_dhe_raw_server_points, %struct.s2n_kem_raw_server_params }
%struct.s2n_ecdhe_raw_server_params = type { %struct.s2n_blob, %struct.s2n_blob }
%struct.s2n_dhe_raw_server_points = type { %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob }
%struct.s2n_kem_raw_server_params = type { %struct.s2n_blob, %struct.s2n_blob }

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

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

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

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

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

25:                                               ; preds = %14
  %26 = load ptr, ptr %16, align 8, !tbaa !41
  %.not49 = icmp eq ptr %26, null
  br i1 %.not49, label %27, label %35

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

35:                                               ; preds = %25
  %36 = getelementptr inbounds i8, ptr %26, i64 32
  %37 = load ptr, ptr %36, align 8, !tbaa !46
  %.not51 = icmp eq ptr %37, null
  br i1 %.not51, label %38, label %46

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

46:                                               ; preds = %35
  %47 = getelementptr inbounds i8, ptr %0, i64 2016
  %48 = getelementptr inbounds i8, ptr %0, i64 2056
  %49 = load ptr, ptr %48, align 8, !tbaa !48
  %.not53 = icmp eq ptr %49, null
  br i1 %.not53, label %50, label %58

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

58:                                               ; preds = %46
  %59 = getelementptr inbounds i8, ptr %49, i64 440
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 168, ptr nonnull %3) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(168) %3, i8 0, i64 168, i1 false)
  %60 = call i32 @s2n_kex_server_key_recv_read_data(ptr noundef nonnull %37, ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef nonnull %3) #8
  %61 = call zeroext i1 @s2n_result_is_ok(i32 %60)
  br i1 %61, label %62, label %148

62:                                               ; preds = %58
  %63 = call i32 @s2n_signature_algorithm_recv(ptr noundef nonnull %0, ptr noundef nonnull %47) #8
  %64 = call zeroext i1 @s2n_result_is_ok(i32 %63)
  br i1 %64, label %65, label %148

65:                                               ; preds = %62
  %66 = getelementptr inbounds i8, ptr %0, i64 1144
  %67 = getelementptr inbounds i8, ptr %0, i64 1528
  %68 = load ptr, ptr %67, align 8, !tbaa !49
  %.not55 = icmp eq ptr %68, null
  br i1 %.not55, label %69, label %77

69:                                               ; preds = %65
  %70 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.5, ptr %70, align 8, !tbaa !5
  %71 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.5, i64 21), i32 noundef 47) #7
  %.not56 = icmp eq ptr %71, null
  %72 = getelementptr inbounds i8, ptr %71, i64 1
  %73 = select i1 %.not56, ptr getelementptr inbounds (i8, ptr @.str.5, i64 21), ptr %72
  %74 = getelementptr inbounds i8, ptr %70, i64 8
  store ptr %73, ptr %74, align 8, !tbaa !10
  %75 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %75, align 4, !tbaa !11
  %76 = call i32 @s2n_calculate_stacktrace() #8
  br label %148

77:                                               ; preds = %65
  %78 = getelementptr inbounds i8, ptr %68, i64 16
  %79 = load i32, ptr %78, align 8, !tbaa !50
  %80 = call i32 @s2n_hash_init(ptr noundef nonnull %59, i32 noundef %79) #8
  %81 = icmp sgt i32 %80, -1
  br i1 %81, label %82, label %148

82:                                               ; preds = %77
  %83 = getelementptr inbounds i8, ptr %0, i64 1618
  %84 = call i32 @s2n_hash_update(ptr noundef nonnull %59, ptr noundef nonnull %83, i32 noundef 32) #8
  %85 = icmp sgt i32 %84, -1
  br i1 %85, label %86, label %148

86:                                               ; preds = %82
  %87 = getelementptr inbounds i8, ptr %0, i64 1650
  %88 = call i32 @s2n_hash_update(ptr noundef nonnull %59, ptr noundef nonnull %87, i32 noundef 32) #8
  %89 = icmp sgt i32 %88, -1
  br i1 %89, label %90, label %148

90:                                               ; preds = %86
  %91 = load ptr, ptr %2, align 8, !tbaa !52
  %92 = getelementptr inbounds i8, ptr %2, i64 8
  %93 = load i32, ptr %92, align 8, !tbaa !53
  %94 = call i32 @s2n_hash_update(ptr noundef nonnull %59, ptr noundef %91, i32 noundef %93) #8
  %95 = icmp sgt i32 %94, -1
  br i1 %95, label %96, label %148

96:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #8
  store i16 0, ptr %4, align 2, !tbaa !54
  %97 = call i32 @s2n_stuffer_read_uint16(ptr noundef nonnull %47, ptr noundef nonnull %4) #8
  %98 = icmp sgt i32 %97, -1
  br i1 %98, label %99, label %147

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  %100 = load i16, ptr %4, align 2, !tbaa !54
  %101 = zext i16 %100 to i32
  %102 = call ptr @s2n_stuffer_raw_read(ptr noundef nonnull %47, i32 noundef %101) #8
  %103 = load i16, ptr %4, align 2, !tbaa !54
  %104 = zext i16 %103 to i32
  %105 = call i32 @s2n_blob_init(ptr noundef nonnull %5, ptr noundef %102, i32 noundef %104) #8
  %106 = icmp sgt i32 %105, -1
  br i1 %106, label %107, label %146

107:                                              ; preds = %99
  %108 = load ptr, ptr %5, align 8, !tbaa !52
  %.not57 = icmp eq ptr %108, null
  br i1 %.not57, label %109, label %117

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

117:                                              ; preds = %107
  %118 = load i16, ptr %4, align 2, !tbaa !54
  %.not59 = icmp eq i16 %118, 0
  br i1 %.not59, label %119, label %127

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

127:                                              ; preds = %117
  %128 = getelementptr inbounds i8, ptr %68, i64 20
  %129 = load i32, ptr %128, align 4, !tbaa !55
  %130 = call i32 @s2n_pkey_verify(ptr noundef nonnull %66, i32 noundef %129, ptr noundef nonnull %59, ptr noundef nonnull %5) #8
  %131 = icmp slt i32 %130, 0
  br i1 %131, label %132, label %140

132:                                              ; preds = %127
  %133 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.8, ptr %133, align 8, !tbaa !5
  %134 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.8, i64 21), i32 noundef 47) #7
  %.not61 = icmp eq ptr %134, null
  %135 = getelementptr inbounds i8, ptr %134, i64 1
  %136 = select i1 %.not61, ptr getelementptr inbounds (i8, ptr @.str.8, i64 21), ptr %135
  %137 = getelementptr inbounds i8, ptr %133, i64 8
  store ptr %136, ptr %137, align 8, !tbaa !10
  %138 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544322, ptr %138, align 4, !tbaa !11
  %139 = call i32 @s2n_calculate_stacktrace() #8
  br label %146

140:                                              ; preds = %127
  %141 = call i32 @s2n_pkey_free(ptr noundef nonnull %66) #8
  %142 = icmp sgt i32 %141, -1
  br i1 %142, label %143, label %146

143:                                              ; preds = %140
  %144 = call i32 @s2n_kex_server_key_recv_parse_data(ptr noundef nonnull %37, ptr noundef nonnull %0, ptr noundef nonnull %3) #8
  %145 = call zeroext i1 @s2n_result_is_ok(i32 %144)
  %not. = xor i1 %145, true
  %. = sext i1 %not. to i32
  br label %146

146:                                              ; preds = %143, %140, %99, %132, %119, %109
  %.0 = phi i32 [ -1, %132 ], [ -1, %119 ], [ -1, %109 ], [ -1, %99 ], [ -1, %140 ], [ %., %143 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  br label %147

147:                                              ; preds = %96, %146
  %.1 = phi i32 [ %.0, %146 ], [ -1, %96 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #8
  br label %148

148:                                              ; preds = %69, %147, %77, %82, %86, %90, %62, %58
  %.3 = phi i32 [ -1, %58 ], [ -1, %62 ], [ %.1, %147 ], [ -1, %69 ], [ -1, %77 ], [ -1, %82 ], [ -1, %86 ], [ -1, %90 ]
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  br label %149

149:                                              ; preds = %148, %50, %38, %27, %17, %6
  %.4 = phi i32 [ %.3, %148 ], [ -1, %50 ], [ -1, %38 ], [ -1, %27 ], [ -1, %17 ], [ -1, %6 ]
  ret i32 %.4
}

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

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

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

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

declare i32 @s2n_pkey_free(ptr noundef) local_unnamed_addr #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!42, !7, i64 0}
!42 = !{!"s2n_crypto_parameters", !7, i64 0, !43, i64 8, !43, i64 16, !44, i64 24, !44, i64 456, !8, i64 888, !8, i64 904, !8, i64 920, !8, i64 928}
!43 = !{!"s2n_session_key", !7, i64 0}
!44 = !{!"s2n_hmac_state", !12, i64 0, !30, i64 4, !12, i64 8, !30, i64 12, !8, i64 14, !45, i64 16, !45, i64 72, !45, i64 128, !45, i64 184, !8, i64 240, !8, i64 368}
!45 = !{!"s2n_hash_state", !7, i64 0, !12, i64 8, !8, i64 12, !16, i64 16, !8, i64 24}
!46 = !{!47, !7, i64 32}
!47 = !{!"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}
!48 = !{!14, !7, i64 2056}
!49 = !{!14, !7, i64 1528}
!50 = !{!51, !12, i64 16}
!51 = !{!"s2n_signature_scheme", !30, i64 0, !7, i64 8, !12, i64 16, !12, i64 20, !8, i64 24, !8, i64 25, !30, i64 26, !7, i64 32}
!52 = !{!23, !7, i64 0}
!53 = !{!23, !12, i64 8}
!54 = !{!30, !30, i64 0}
!55 = !{!51, !12, i64 20}


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