; LLVM IR from aws/s2n-tls :: tests/unit (s2n_tls13_key_schedule_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_blob = type { ptr, i32, i32, i8 }
%struct.s2n_result = type { i32 }
%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 }
%union.anon = 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_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.0, i32 }
%union.anon.0 = 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_cipher_suite = type { i8, ptr, ptr, [2 x i8], ptr, i32, ptr, [2 x ptr], i8, ptr, ptr, i32, i8 }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.42 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [94 x i8], align 1
@s2n_tls13_label_exporter = external constant %struct.s2n_blob, align 8

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

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

declare i32 @s2n_hash_free(ptr noundef) #2

declare i32 @s2n_hash_new(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden ptr @s2n_get_empty_context(i32 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @s2n_get_hash_len(i32 noundef) #3

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

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

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

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

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

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

declare i32 @s2n_calculate_stacktrace() #2

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

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

declare zeroext i8 @s2n_connection_get_protocol_version(ptr noundef) #2

declare i32 @s2n_conn_get_current_message_type(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #7

declare ptr @s2n_ensure_memmove_trace(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_connection_tls_exporter(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #3 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca [249 x i8], align 16
  %18 = alloca %struct.s2n_blob, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca [64 x i8], align 16
  %23 = alloca %struct.s2n_blob, align 8
  %24 = alloca %struct.s2n_result, align 4
  %25 = alloca %struct.s2n_blob, align 8
  %26 = alloca %struct.s2n_blob, align 8
  %27 = alloca %struct.s2n_hmac_state, align 8
  %28 = alloca %struct.s2n_hash_state, align 8
  %29 = alloca i32, align 4
  %30 = alloca [64 x i8], align 16
  %31 = alloca %struct.s2n_blob, align 8
  %32 = alloca %struct.s2n_blob, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store i32 %6, ptr %15, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %7
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %67, label %36

36:                                               ; preds = %33
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  %39 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %40 = getelementptr inbounds %struct.s2n_debug_info, ptr %39, i32 0, i32 0
  store ptr @.str.42, ptr %40, align 8, !tbaa !11
  %41 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %42 = getelementptr inbounds %struct.s2n_debug_info, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds i8, ptr %43, i64 21
  %45 = call ptr @strrchr(ptr noundef %44, i32 noundef 47) #8
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %54

47:                                               ; preds = %38
  %48 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %49 = getelementptr inbounds %struct.s2n_debug_info, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = getelementptr inbounds i8, ptr %50, i64 21
  %52 = call ptr @strrchr(ptr noundef %51, i32 noundef 47) #8
  %53 = getelementptr inbounds i8, ptr %52, i64 1
  br label %59

54:                                               ; preds = %38
  %55 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %56 = getelementptr inbounds %struct.s2n_debug_info, ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = getelementptr inbounds i8, ptr %57, i64 21
  br label %59

59:                                               ; preds = %54, %47
  %60 = phi ptr [ %53, %47 ], [ %58, %54 ]
  %61 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %62 = getelementptr inbounds %struct.s2n_debug_info, ptr %61, i32 0, i32 1
  store ptr %60, ptr %62, align 8, !tbaa !13
  %63 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %63, align 4, !tbaa !9
  %64 = call i32 @s2n_calculate_stacktrace()
  br label %65

65:                                               ; preds = %59
  store i32 -1, ptr %8, align 4
  br label %698

66:                                               ; No predecessors!
  br label %67

67:                                               ; preds = %66, %33
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %103, label %72

72:                                               ; preds = %69
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  %75 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %76 = getelementptr inbounds %struct.s2n_debug_info, ptr %75, i32 0, i32 0
  store ptr @.str.43, ptr %76, align 8, !tbaa !11
  %77 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %78 = getelementptr inbounds %struct.s2n_debug_info, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !11
  %80 = getelementptr inbounds i8, ptr %79, i64 21
  %81 = call ptr @strrchr(ptr noundef %80, i32 noundef 47) #8
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %90

83:                                               ; preds = %74
  %84 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %85 = getelementptr inbounds %struct.s2n_debug_info, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = getelementptr inbounds i8, ptr %86, i64 21
  %88 = call ptr @strrchr(ptr noundef %87, i32 noundef 47) #8
  %89 = getelementptr inbounds i8, ptr %88, i64 1
  br label %95

90:                                               ; preds = %74
  %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 0
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = getelementptr inbounds i8, ptr %93, i64 21
  br label %95

95:                                               ; preds = %90, %83
  %96 = phi ptr [ %89, %83 ], [ %94, %90 ]
  %97 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %98 = getelementptr inbounds %struct.s2n_debug_info, ptr %97, i32 0, i32 1
  store ptr %96, ptr %98, align 8, !tbaa !13
  %99 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %99, align 4, !tbaa !9
  %100 = call i32 @s2n_calculate_stacktrace()
  br label %101

101:                                              ; preds = %95
  store i32 -1, ptr %8, align 4
  br label %698

102:                                              ; No predecessors!
  br label %103

103:                                              ; preds = %102, %69
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = icmp ne ptr %106, null
  br i1 %107, label %139, label %108

108:                                              ; preds = %105
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  %111 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %112 = getelementptr inbounds %struct.s2n_debug_info, ptr %111, i32 0, i32 0
  store ptr @.str.44, ptr %112, align 8, !tbaa !11
  %113 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %114 = getelementptr inbounds %struct.s2n_debug_info, ptr %113, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8, !tbaa !11
  %116 = getelementptr inbounds i8, ptr %115, i64 21
  %117 = call ptr @strrchr(ptr noundef %116, i32 noundef 47) #8
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %126

119:                                              ; preds = %110
  %120 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %121 = getelementptr inbounds %struct.s2n_debug_info, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !11
  %123 = getelementptr inbounds i8, ptr %122, i64 21
  %124 = call ptr @strrchr(ptr noundef %123, i32 noundef 47) #8
  %125 = getelementptr inbounds i8, ptr %124, i64 1
  br label %131

126:                                              ; preds = %110
  %127 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %128 = getelementptr inbounds %struct.s2n_debug_info, ptr %127, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !11
  %130 = getelementptr inbounds i8, ptr %129, i64 21
  br label %131

131:                                              ; preds = %126, %119
  %132 = phi ptr [ %125, %119 ], [ %130, %126 ]
  %133 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %134 = getelementptr inbounds %struct.s2n_debug_info, ptr %133, i32 0, i32 1
  store ptr %132, ptr %134, align 8, !tbaa !13
  %135 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %135, align 4, !tbaa !9
  %136 = call i32 @s2n_calculate_stacktrace()
  br label %137

137:                                              ; preds = %131
  store i32 -1, ptr %8, align 4
  br label %698

138:                                              ; No predecessors!
  br label %139

139:                                              ; preds = %138, %105
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = icmp ne ptr %142, null
  br i1 %143, label %175, label %144

144:                                              ; preds = %141
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  %147 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %148 = getelementptr inbounds %struct.s2n_debug_info, ptr %147, i32 0, i32 0
  store ptr @.str.45, ptr %148, align 8, !tbaa !11
  %149 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %150 = getelementptr inbounds %struct.s2n_debug_info, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !11
  %152 = getelementptr inbounds i8, ptr %151, i64 21
  %153 = call ptr @strrchr(ptr noundef %152, i32 noundef 47) #8
  %154 = icmp ne ptr %153, null
  br i1 %154, label %155, label %162

155:                                              ; preds = %146
  %156 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %157 = getelementptr inbounds %struct.s2n_debug_info, ptr %156, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8, !tbaa !11
  %159 = getelementptr inbounds i8, ptr %158, i64 21
  %160 = call ptr @strrchr(ptr noundef %159, i32 noundef 47) #8
  %161 = getelementptr inbounds i8, ptr %160, i64 1
  br label %167

162:                                              ; preds = %146
  %163 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %164 = getelementptr inbounds %struct.s2n_debug_info, ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !11
  %166 = getelementptr inbounds i8, ptr %165, i64 21
  br label %167

167:                                              ; preds = %162, %155
  %168 = phi ptr [ %161, %155 ], [ %166, %162 ]
  %169 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %170 = getelementptr inbounds %struct.s2n_debug_info, ptr %169, i32 0, i32 1
  store ptr %168, ptr %170, align 8, !tbaa !13
  %171 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %171, align 4, !tbaa !9
  %172 = call i32 @s2n_calculate_stacktrace()
  br label %173

173:                                              ; preds = %167
  store i32 -1, ptr %8, align 4
  br label %698

174:                                              ; No predecessors!
  br label %175

175:                                              ; preds = %174, %141
  br label %176

176:                                              ; preds = %175
  br label %177

177:                                              ; preds = %176
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = call zeroext i8 @s2n_connection_get_protocol_version(ptr noundef %178)
  %180 = zext i8 %179 to i32
  %181 = icmp eq i32 %180, 34
  br i1 %181, label %213, label %182

182:                                              ; preds = %177
  br label %183

183:                                              ; preds = %182
  br label %184

184:                                              ; preds = %183
  %185 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %186 = getelementptr inbounds %struct.s2n_debug_info, ptr %185, i32 0, i32 0
  store ptr @.str.46, ptr %186, align 8, !tbaa !11
  %187 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %188 = getelementptr inbounds %struct.s2n_debug_info, ptr %187, i32 0, i32 0
  %189 = load ptr, ptr %188, align 8, !tbaa !11
  %190 = getelementptr inbounds i8, ptr %189, i64 21
  %191 = call ptr @strrchr(ptr noundef %190, i32 noundef 47) #8
  %192 = icmp ne ptr %191, null
  br i1 %192, label %193, label %200

193:                                              ; preds = %184
  %194 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %195 = getelementptr inbounds %struct.s2n_debug_info, ptr %194, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8, !tbaa !11
  %197 = getelementptr inbounds i8, ptr %196, i64 21
  %198 = call ptr @strrchr(ptr noundef %197, i32 noundef 47) #8
  %199 = getelementptr inbounds i8, ptr %198, i64 1
  br label %205

200:                                              ; preds = %184
  %201 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %202 = getelementptr inbounds %struct.s2n_debug_info, ptr %201, i32 0, i32 0
  %203 = load ptr, ptr %202, align 8, !tbaa !11
  %204 = getelementptr inbounds i8, ptr %203, i64 21
  br label %205

205:                                              ; preds = %200, %193
  %206 = phi ptr [ %199, %193 ], [ %204, %200 ]
  %207 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %208 = getelementptr inbounds %struct.s2n_debug_info, ptr %207, i32 0, i32 1
  store ptr %206, ptr %208, align 8, !tbaa !13
  %209 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762112, ptr %209, align 4, !tbaa !9
  %210 = call i32 @s2n_calculate_stacktrace()
  br label %211

211:                                              ; preds = %205
  store i32 -1, ptr %8, align 4
  br label %698

212:                                              ; No predecessors!
  br label %213

213:                                              ; preds = %212, %177
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = call i32 @s2n_conn_get_current_message_type(ptr noundef %216)
  %218 = icmp eq i32 20, %217
  br i1 %218, label %250, label %219

219:                                              ; preds = %215
  br label %220

220:                                              ; preds = %219
  br label %221

221:                                              ; preds = %220
  %222 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %223 = getelementptr inbounds %struct.s2n_debug_info, ptr %222, i32 0, i32 0
  store ptr @.str.47, ptr %223, align 8, !tbaa !11
  %224 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %225 = getelementptr inbounds %struct.s2n_debug_info, ptr %224, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8, !tbaa !11
  %227 = getelementptr inbounds i8, ptr %226, i64 21
  %228 = call ptr @strrchr(ptr noundef %227, i32 noundef 47) #8
  %229 = icmp ne ptr %228, null
  br i1 %229, label %230, label %237

230:                                              ; preds = %221
  %231 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %232 = getelementptr inbounds %struct.s2n_debug_info, ptr %231, i32 0, i32 0
  %233 = load ptr, ptr %232, align 8, !tbaa !11
  %234 = getelementptr inbounds i8, ptr %233, i64 21
  %235 = call ptr @strrchr(ptr noundef %234, i32 noundef 47) #8
  %236 = getelementptr inbounds i8, ptr %235, i64 1
  br label %242

237:                                              ; preds = %221
  %238 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %239 = getelementptr inbounds %struct.s2n_debug_info, ptr %238, i32 0, i32 0
  %240 = load ptr, ptr %239, align 8, !tbaa !11
  %241 = getelementptr inbounds i8, ptr %240, i64 21
  br label %242

242:                                              ; preds = %237, %230
  %243 = phi ptr [ %236, %230 ], [ %241, %237 ]
  %244 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %245 = getelementptr inbounds %struct.s2n_debug_info, ptr %244, i32 0, i32 1
  store ptr %243, ptr %245, align 8, !tbaa !13
  %246 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762124, ptr %246, align 4, !tbaa !9
  %247 = call i32 @s2n_calculate_stacktrace()
  br label %248

248:                                              ; preds = %242
  store i32 -1, ptr %8, align 4
  br label %698

249:                                              ; No predecessors!
  br label %250

250:                                              ; preds = %249, %215
  br label %251

251:                                              ; preds = %250
  br label %252

252:                                              ; preds = %251
  %253 = load ptr, ptr %9, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.s2n_connection, ptr %253, i32 0, i32 27
  %255 = load ptr, ptr %254, align 8, !tbaa !14
  %256 = icmp ne ptr %255, null
  br i1 %256, label %288, label %257

257:                                              ; preds = %252
  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.48, ptr %261, align 8, !tbaa !11
  %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 !11
  %265 = getelementptr inbounds i8, ptr %264, i64 21
  %266 = call ptr @strrchr(ptr noundef %265, i32 noundef 47) #8
  %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 !11
  %272 = getelementptr inbounds i8, ptr %271, i64 21
  %273 = call ptr @strrchr(ptr noundef %272, i32 noundef 47) #8
  %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 !11
  %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 !13
  %284 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %284, align 4, !tbaa !9
  %285 = call i32 @s2n_calculate_stacktrace()
  br label %286

286:                                              ; preds = %280
  store i32 -1, ptr %8, align 4
  br label %698

287:                                              ; No predecessors!
  br label %288

288:                                              ; preds = %287, %252
  br label %289

289:                                              ; preds = %288
  br label %290

290:                                              ; preds = %289
  %291 = load ptr, ptr %9, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.s2n_connection, ptr %291, i32 0, i32 27
  %293 = load ptr, ptr %292, align 8, !tbaa !14
  %294 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %293, i32 0, i32 0
  %295 = load ptr, ptr %294, align 8, !tbaa !42
  %296 = icmp ne ptr %295, null
  br i1 %296, label %328, label %297

297:                                              ; preds = %290
  br label %298

298:                                              ; preds = %297
  br label %299

299:                                              ; preds = %298
  %300 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %301 = getelementptr inbounds %struct.s2n_debug_info, ptr %300, i32 0, i32 0
  store ptr @.str.49, ptr %301, align 8, !tbaa !11
  %302 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %303 = getelementptr inbounds %struct.s2n_debug_info, ptr %302, i32 0, i32 0
  %304 = load ptr, ptr %303, align 8, !tbaa !11
  %305 = getelementptr inbounds i8, ptr %304, i64 21
  %306 = call ptr @strrchr(ptr noundef %305, i32 noundef 47) #8
  %307 = icmp ne ptr %306, null
  br i1 %307, label %308, label %315

308:                                              ; preds = %299
  %309 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %310 = getelementptr inbounds %struct.s2n_debug_info, ptr %309, i32 0, i32 0
  %311 = load ptr, ptr %310, align 8, !tbaa !11
  %312 = getelementptr inbounds i8, ptr %311, i64 21
  %313 = call ptr @strrchr(ptr noundef %312, i32 noundef 47) #8
  %314 = getelementptr inbounds i8, ptr %313, i64 1
  br label %320

315:                                              ; preds = %299
  %316 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %317 = getelementptr inbounds %struct.s2n_debug_info, ptr %316, i32 0, i32 0
  %318 = load ptr, ptr %317, align 8, !tbaa !11
  %319 = getelementptr inbounds i8, ptr %318, i64 21
  br label %320

320:                                              ; preds = %315, %308
  %321 = phi ptr [ %314, %308 ], [ %319, %315 ]
  %322 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %323 = getelementptr inbounds %struct.s2n_debug_info, ptr %322, i32 0, i32 1
  store ptr %321, ptr %323, align 8, !tbaa !13
  %324 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %324, align 4, !tbaa !9
  %325 = call i32 @s2n_calculate_stacktrace()
  br label %326

326:                                              ; preds = %320
  store i32 -1, ptr %8, align 4
  br label %698

327:                                              ; No predecessors!
  br label %328

328:                                              ; preds = %327, %290
  br label %329

329:                                              ; preds = %328
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %330 = load ptr, ptr %9, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.s2n_connection, ptr %330, i32 0, i32 27
  %332 = load ptr, ptr %331, align 8, !tbaa !14
  %333 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %332, i32 0, i32 0
  %334 = load ptr, ptr %333, align 8, !tbaa !42
  %335 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %334, i32 0, i32 11
  %336 = load i32, ptr %335, align 8, !tbaa !47
  store i32 %336, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 249, ptr %17) #9
  call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 249, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #9
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 24, i1 false)
  br label %337

337:                                              ; preds = %329
  %338 = load i32, ptr %11, align 4, !tbaa !9
  %339 = zext i32 %338 to i64
  %340 = icmp ule i64 %339, 249
  br i1 %340, label %374, label %341

341:                                              ; preds = %337
  br label %342

342:                                              ; preds = %341
  br label %343

343:                                              ; preds = %342
  %344 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %345 = getelementptr inbounds %struct.s2n_debug_info, ptr %344, i32 0, i32 0
  store ptr @.str.50, ptr %345, align 8, !tbaa !11
  %346 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %347 = getelementptr inbounds %struct.s2n_debug_info, ptr %346, i32 0, i32 0
  %348 = load ptr, ptr %347, align 8, !tbaa !11
  %349 = getelementptr inbounds i8, ptr %348, i64 21
  %350 = call ptr @strrchr(ptr noundef %349, i32 noundef 47) #8
  %351 = icmp ne ptr %350, null
  br i1 %351, label %352, label %359

352:                                              ; preds = %343
  %353 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %354 = getelementptr inbounds %struct.s2n_debug_info, ptr %353, i32 0, i32 0
  %355 = load ptr, ptr %354, align 8, !tbaa !11
  %356 = getelementptr inbounds i8, ptr %355, i64 21
  %357 = call ptr @strrchr(ptr noundef %356, i32 noundef 47) #8
  %358 = getelementptr inbounds i8, ptr %357, i64 1
  br label %364

359:                                              ; preds = %343
  %360 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %361 = getelementptr inbounds %struct.s2n_debug_info, ptr %360, i32 0, i32 0
  %362 = load ptr, ptr %361, align 8, !tbaa !11
  %363 = getelementptr inbounds i8, ptr %362, i64 21
  br label %364

364:                                              ; preds = %359, %352
  %365 = phi ptr [ %358, %352 ], [ %363, %359 ]
  %366 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %367 = getelementptr inbounds %struct.s2n_debug_info, ptr %366, i32 0, i32 1
  store ptr %365, ptr %367, align 8, !tbaa !13
  %368 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %368, align 4, !tbaa !9
  %369 = call i32 @s2n_calculate_stacktrace()
  br label %370

370:                                              ; preds = %364
  br label %371

371:                                              ; preds = %370
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %697

372:                                              ; No predecessors!
  br label %373

373:                                              ; preds = %372
  br label %374

374:                                              ; preds = %373, %337
  br label %375

375:                                              ; preds = %374
  br label %376

376:                                              ; preds = %375
  br label %377

377:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %378 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %378, ptr %20, align 4, !tbaa !9
  %379 = load i32, ptr %20, align 4, !tbaa !9
  %380 = icmp ne i32 %379, 0
  %381 = xor i1 %380, true
  %382 = xor i1 %381, true
  %383 = zext i1 %382 to i32
  %384 = sext i32 %383 to i64
  %385 = call i64 @llvm.expect.i64(i64 %384, i64 1)
  %386 = icmp ne i64 %385, 0
  br i1 %386, label %387, label %435

387:                                              ; preds = %377
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %388 = getelementptr inbounds [249 x i8], ptr %17, i64 0, i64 0
  %389 = load ptr, ptr %10, align 8, !tbaa !5
  %390 = load i32, ptr %20, align 4, !tbaa !9
  %391 = zext i32 %390 to i64
  %392 = call ptr @s2n_ensure_memmove_trace(ptr noundef %388, ptr noundef %389, i64 noundef %391)
  store ptr %392, ptr %21, align 8, !tbaa !5
  br label %393

393:                                              ; preds = %387
  %394 = load ptr, ptr %21, align 8, !tbaa !5
  %395 = icmp ne ptr %394, null
  br i1 %395, label %429, label %396

396:                                              ; preds = %393
  br label %397

397:                                              ; preds = %396
  br label %398

398:                                              ; preds = %397
  %399 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %400 = getelementptr inbounds %struct.s2n_debug_info, ptr %399, i32 0, i32 0
  store ptr @.str.51, ptr %400, align 8, !tbaa !11
  %401 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %402 = getelementptr inbounds %struct.s2n_debug_info, ptr %401, i32 0, i32 0
  %403 = load ptr, ptr %402, align 8, !tbaa !11
  %404 = getelementptr inbounds i8, ptr %403, i64 21
  %405 = call ptr @strrchr(ptr noundef %404, i32 noundef 47) #8
  %406 = icmp ne ptr %405, null
  br i1 %406, label %407, label %414

407:                                              ; preds = %398
  %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
  %410 = load ptr, ptr %409, align 8, !tbaa !11
  %411 = getelementptr inbounds i8, ptr %410, i64 21
  %412 = call ptr @strrchr(ptr noundef %411, i32 noundef 47) #8
  %413 = getelementptr inbounds i8, ptr %412, i64 1
  br label %419

414:                                              ; preds = %398
  %415 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %416 = getelementptr inbounds %struct.s2n_debug_info, ptr %415, i32 0, i32 0
  %417 = load ptr, ptr %416, align 8, !tbaa !11
  %418 = getelementptr inbounds i8, ptr %417, i64 21
  br label %419

419:                                              ; preds = %414, %407
  %420 = phi ptr [ %413, %407 ], [ %418, %414 ]
  %421 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %422 = getelementptr inbounds %struct.s2n_debug_info, ptr %421, i32 0, i32 1
  store ptr %420, ptr %422, align 8, !tbaa !13
  %423 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %423, align 4, !tbaa !9
  %424 = call i32 @s2n_calculate_stacktrace()
  br label %425

425:                                              ; preds = %419
  br label %426

426:                                              ; preds = %425
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %432

427:                                              ; No predecessors!
  br label %428

428:                                              ; preds = %427
  br label %429

429:                                              ; preds = %428, %393
  br label %430

430:                                              ; preds = %429
  br label %431

431:                                              ; preds = %430
  store i32 0, ptr %19, align 4
  br label %432

432:                                              ; preds = %431, %426
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  %433 = load i32, ptr %19, align 4
  switch i32 %433, label %436 [
    i32 0, label %434
  ]

434:                                              ; preds = %432
  br label %435

435:                                              ; preds = %434, %377
  store i32 0, ptr %19, align 4
  br label %436

436:                                              ; preds = %435, %432
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  %437 = load i32, ptr %19, align 4
  switch i32 %437, label %697 [
    i32 0, label %438
  ]

438:                                              ; preds = %436
  br label %439

439:                                              ; preds = %438
  br label %440

440:                                              ; preds = %439
  br label %441

441:                                              ; preds = %440
  %442 = getelementptr inbounds [249 x i8], ptr %17, i64 0, i64 0
  %443 = load i32, ptr %11, align 4, !tbaa !9
  %444 = call i32 @s2n_blob_init(ptr noundef %18, ptr noundef %442, i32 noundef %443)
  %445 = icmp sgt i32 %444, -1
  br i1 %445, label %447, label %446

446:                                              ; preds = %441
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %697

447:                                              ; preds = %441
  br label %448

448:                                              ; preds = %447
  br label %449

449:                                              ; preds = %448
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #9
  call void @llvm.memset.p0.i64(ptr align 16 %22, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #9
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 24, i1 false)
  br label %450

450:                                              ; preds = %449
  %451 = load ptr, ptr %9, align 8, !tbaa !5
  %452 = getelementptr inbounds %struct.s2n_connection, ptr %451, i32 0, i32 27
  %453 = load ptr, ptr %452, align 8, !tbaa !14
  %454 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %453, i32 0, i32 0
  %455 = load ptr, ptr %454, align 8, !tbaa !42
  %456 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %455, i32 0, i32 11
  %457 = load i32, ptr %456, align 8, !tbaa !47
  %458 = call zeroext i8 @s2n_get_hash_len(i32 noundef %457)
  %459 = zext i8 %458 to i32
  %460 = icmp sle i32 %459, 64
  br i1 %460, label %494, label %461

461:                                              ; preds = %450
  br label %462

462:                                              ; preds = %461
  br label %463

463:                                              ; preds = %462
  %464 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %465 = getelementptr inbounds %struct.s2n_debug_info, ptr %464, i32 0, i32 0
  store ptr @.str.52, ptr %465, align 8, !tbaa !11
  %466 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %467 = getelementptr inbounds %struct.s2n_debug_info, ptr %466, i32 0, i32 0
  %468 = load ptr, ptr %467, align 8, !tbaa !11
  %469 = getelementptr inbounds i8, ptr %468, i64 21
  %470 = call ptr @strrchr(ptr noundef %469, i32 noundef 47) #8
  %471 = icmp ne ptr %470, null
  br i1 %471, label %472, label %479

472:                                              ; preds = %463
  %473 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %474 = getelementptr inbounds %struct.s2n_debug_info, ptr %473, i32 0, i32 0
  %475 = load ptr, ptr %474, align 8, !tbaa !11
  %476 = getelementptr inbounds i8, ptr %475, i64 21
  %477 = call ptr @strrchr(ptr noundef %476, i32 noundef 47) #8
  %478 = getelementptr inbounds i8, ptr %477, i64 1
  br label %484

479:                                              ; preds = %463
  %480 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %481 = getelementptr inbounds %struct.s2n_debug_info, ptr %480, i32 0, i32 0
  %482 = load ptr, ptr %481, align 8, !tbaa !11
  %483 = getelementptr inbounds i8, ptr %482, i64 21
  br label %484

484:                                              ; preds = %479, %472
  %485 = phi ptr [ %478, %472 ], [ %483, %479 ]
  %486 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %487 = getelementptr inbounds %struct.s2n_debug_info, ptr %486, i32 0, i32 1
  store ptr %485, ptr %487, align 8, !tbaa !13
  %488 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %488, align 4, !tbaa !9
  %489 = call i32 @s2n_calculate_stacktrace()
  br label %490

490:                                              ; preds = %484
  br label %491

491:                                              ; preds = %490
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %696

492:                                              ; No predecessors!
  br label %493

493:                                              ; preds = %492
  br label %494

494:                                              ; preds = %493, %450
  br label %495

495:                                              ; preds = %494
  br label %496

496:                                              ; preds = %495
  br label %497

497:                                              ; preds = %496
  %498 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  %499 = load ptr, ptr %9, align 8, !tbaa !5
  %500 = getelementptr inbounds %struct.s2n_connection, ptr %499, i32 0, i32 27
  %501 = load ptr, ptr %500, align 8, !tbaa !14
  %502 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %501, i32 0, i32 0
  %503 = load ptr, ptr %502, align 8, !tbaa !42
  %504 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %503, i32 0, i32 11
  %505 = load i32, ptr %504, align 8, !tbaa !47
  %506 = call zeroext i8 @s2n_get_hash_len(i32 noundef %505)
  %507 = zext i8 %506 to i32
  %508 = call i32 @s2n_blob_init(ptr noundef %23, ptr noundef %498, i32 noundef %507)
  %509 = icmp sgt i32 %508, -1
  br i1 %509, label %511, label %510

510:                                              ; preds = %497
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %696

511:                                              ; preds = %497
  br label %512

512:                                              ; preds = %511
  br label %513

513:                                              ; preds = %512
  br label %514

514:                                              ; preds = %513
  %515 = load i32, ptr %16, align 4, !tbaa !9
  %516 = getelementptr inbounds %struct.s2n_blob, ptr %25, i32 0, i32 0
  %517 = load ptr, ptr %9, align 8, !tbaa !5
  %518 = getelementptr inbounds %struct.s2n_connection, ptr %517, i32 0, i32 28
  %519 = getelementptr inbounds %struct.s2n_secrets, ptr %518, i32 0, i32 0
  %520 = getelementptr inbounds %struct.s2n_tls13_secrets, ptr %519, i32 0, i32 7
  %521 = getelementptr inbounds [48 x i8], ptr %520, i64 0, i64 0
  store ptr %521, ptr %516, align 8, !tbaa !49
  %522 = getelementptr inbounds %struct.s2n_blob, ptr %25, i32 0, i32 1
  %523 = load ptr, ptr %9, align 8, !tbaa !5
  %524 = getelementptr inbounds %struct.s2n_connection, ptr %523, i32 0, i32 27
  %525 = load ptr, ptr %524, align 8, !tbaa !14
  %526 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %525, i32 0, i32 0
  %527 = load ptr, ptr %526, align 8, !tbaa !42
  %528 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %527, i32 0, i32 11
  %529 = load i32, ptr %528, align 8, !tbaa !47
  %530 = call zeroext i8 @s2n_get_hash_len(i32 noundef %529)
  %531 = zext i8 %530 to i32
  store i32 %531, ptr %522, align 8, !tbaa !50
  %532 = getelementptr inbounds %struct.s2n_blob, ptr %25, i32 0, i32 2
  store i32 0, ptr %532, align 4, !tbaa !51
  %533 = getelementptr inbounds %struct.s2n_blob, ptr %25, i32 0, i32 3
  %534 = load i8, ptr %533, align 8
  %535 = and i8 %534, -2
  %536 = or i8 %535, 0
  store i8 %536, ptr %533, align 8
  %537 = getelementptr inbounds %struct.s2n_blob, ptr %26, i32 0, i32 0
  %538 = load i32, ptr %16, align 4, !tbaa !9
  %539 = call ptr @s2n_get_empty_context(i32 noundef %538)
  store ptr %539, ptr %537, align 8, !tbaa !49
  %540 = getelementptr inbounds %struct.s2n_blob, ptr %26, i32 0, i32 1
  %541 = load i32, ptr %16, align 4, !tbaa !9
  %542 = call zeroext i8 @s2n_get_hash_len(i32 noundef %541)
  %543 = zext i8 %542 to i32
  store i32 %543, ptr %540, align 8, !tbaa !50
  %544 = getelementptr inbounds %struct.s2n_blob, ptr %26, i32 0, i32 2
  store i32 0, ptr %544, align 4, !tbaa !51
  %545 = getelementptr inbounds %struct.s2n_blob, ptr %26, i32 0, i32 3
  %546 = load i8, ptr %545, align 8
  %547 = and i8 %546, -2
  %548 = or i8 %547, 0
  store i8 %548, ptr %545, align 8
  %549 = call i32 @s2n_derive_secret(i32 noundef %515, ptr noundef %25, ptr noundef %18, ptr noundef %26, ptr noundef %23)
  %550 = getelementptr inbounds %struct.s2n_result, ptr %24, i32 0, i32 0
  store i32 %549, ptr %550, align 4
  %551 = getelementptr inbounds %struct.s2n_result, ptr %24, i32 0, i32 0
  %552 = load i32, ptr %551, align 4
  %553 = call zeroext i1 @s2n_result_is_ok(i32 %552)
  br i1 %553, label %555, label %554

554:                                              ; preds = %514
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %696

555:                                              ; preds = %514
  br label %556

556:                                              ; preds = %555
  br label %557

557:                                              ; preds = %556
  call void @llvm.lifetime.start.p0(i64 432, ptr %27) #9
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 432, i1 false)
  br label %558

558:                                              ; preds = %557
  %559 = call i32 @s2n_hmac_new(ptr noundef %27)
  %560 = icmp sgt i32 %559, -1
  br i1 %560, label %562, label %561

561:                                              ; preds = %558
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %694

562:                                              ; preds = %558
  br label %563

563:                                              ; preds = %562
  br label %564

564:                                              ; preds = %563
  call void @llvm.lifetime.start.p0(i64 56, ptr %28) #9
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 56, i1 false)
  br label %565

565:                                              ; preds = %564
  %566 = call i32 @s2n_hash_new(ptr noundef %28)
  %567 = icmp sgt i32 %566, -1
  br i1 %567, label %569, label %568

568:                                              ; preds = %565
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %692

569:                                              ; preds = %565
  br label %570

570:                                              ; preds = %569
  br label %571

571:                                              ; preds = %570
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %572

572:                                              ; preds = %571
  %573 = load i32, ptr %16, align 4, !tbaa !9
  %574 = call i32 @s2n_hmac_hash_alg(i32 noundef %573, ptr noundef %29)
  %575 = icmp sgt i32 %574, -1
  br i1 %575, label %577, label %576

576:                                              ; preds = %572
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %691

577:                                              ; preds = %572
  br label %578

578:                                              ; preds = %577
  br label %579

579:                                              ; preds = %578
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #9
  call void @llvm.memset.p0.i64(ptr align 16 %30, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #9
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 24, i1 false)
  br label %580

580:                                              ; preds = %579
  %581 = load ptr, ptr %9, align 8, !tbaa !5
  %582 = getelementptr inbounds %struct.s2n_connection, ptr %581, i32 0, i32 27
  %583 = load ptr, ptr %582, align 8, !tbaa !14
  %584 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %583, i32 0, i32 0
  %585 = load ptr, ptr %584, align 8, !tbaa !42
  %586 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %585, i32 0, i32 11
  %587 = load i32, ptr %586, align 8, !tbaa !47
  %588 = call zeroext i8 @s2n_get_hash_len(i32 noundef %587)
  %589 = zext i8 %588 to i32
  %590 = icmp sle i32 %589, 64
  br i1 %590, label %624, label %591

591:                                              ; preds = %580
  br label %592

592:                                              ; preds = %591
  br label %593

593:                                              ; preds = %592
  %594 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %595 = getelementptr inbounds %struct.s2n_debug_info, ptr %594, i32 0, i32 0
  store ptr @.str.53, ptr %595, align 8, !tbaa !11
  %596 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %597 = getelementptr inbounds %struct.s2n_debug_info, ptr %596, i32 0, i32 0
  %598 = load ptr, ptr %597, align 8, !tbaa !11
  %599 = getelementptr inbounds i8, ptr %598, i64 21
  %600 = call ptr @strrchr(ptr noundef %599, i32 noundef 47) #8
  %601 = icmp ne ptr %600, null
  br i1 %601, label %602, label %609

602:                                              ; preds = %593
  %603 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %604 = getelementptr inbounds %struct.s2n_debug_info, ptr %603, i32 0, i32 0
  %605 = load ptr, ptr %604, align 8, !tbaa !11
  %606 = getelementptr inbounds i8, ptr %605, i64 21
  %607 = call ptr @strrchr(ptr noundef %606, i32 noundef 47) #8
  %608 = getelementptr inbounds i8, ptr %607, i64 1
  br label %614

609:                                              ; preds = %593
  %610 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %611 = getelementptr inbounds %struct.s2n_debug_info, ptr %610, i32 0, i32 0
  %612 = load ptr, ptr %611, align 8, !tbaa !11
  %613 = getelementptr inbounds i8, ptr %612, i64 21
  br label %614

614:                                              ; preds = %609, %602
  %615 = phi ptr [ %608, %602 ], [ %613, %609 ]
  %616 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %617 = getelementptr inbounds %struct.s2n_debug_info, ptr %616, i32 0, i32 1
  store ptr %615, ptr %617, align 8, !tbaa !13
  %618 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %618, align 4, !tbaa !9
  %619 = call i32 @s2n_calculate_stacktrace()
  br label %620

620:                                              ; preds = %614
  br label %621

621:                                              ; preds = %620
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %690

622:                                              ; No predecessors!
  br label %623

623:                                              ; preds = %622
  br label %624

624:                                              ; preds = %623, %580
  br label %625

625:                                              ; preds = %624
  br label %626

626:                                              ; preds = %625
  br label %627

627:                                              ; preds = %626
  %628 = getelementptr inbounds [64 x i8], ptr %30, i64 0, i64 0
  %629 = load ptr, ptr %9, align 8, !tbaa !5
  %630 = getelementptr inbounds %struct.s2n_connection, ptr %629, i32 0, i32 27
  %631 = load ptr, ptr %630, align 8, !tbaa !14
  %632 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %631, i32 0, i32 0
  %633 = load ptr, ptr %632, align 8, !tbaa !42
  %634 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %633, i32 0, i32 11
  %635 = load i32, ptr %634, align 8, !tbaa !47
  %636 = call zeroext i8 @s2n_get_hash_len(i32 noundef %635)
  %637 = zext i8 %636 to i32
  %638 = call i32 @s2n_blob_init(ptr noundef %31, ptr noundef %628, i32 noundef %637)
  %639 = icmp sgt i32 %638, -1
  br i1 %639, label %641, label %640

640:                                              ; preds = %627
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %690

641:                                              ; preds = %627
  br label %642

642:                                              ; preds = %641
  br label %643

643:                                              ; preds = %642
  br label %644

644:                                              ; preds = %643
  %645 = load i32, ptr %29, align 4, !tbaa !9
  %646 = call i32 @s2n_hash_init(ptr noundef %28, i32 noundef %645)
  %647 = icmp sgt i32 %646, -1
  br i1 %647, label %649, label %648

648:                                              ; preds = %644
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %690

649:                                              ; preds = %644
  br label %650

650:                                              ; preds = %649
  br label %651

651:                                              ; preds = %650
  br label %652

652:                                              ; preds = %651
  %653 = load ptr, ptr %12, align 8, !tbaa !5
  %654 = load i32, ptr %13, align 4, !tbaa !9
  %655 = call i32 @s2n_hash_update(ptr noundef %28, ptr noundef %653, i32 noundef %654)
  %656 = icmp sgt i32 %655, -1
  br i1 %656, label %658, label %657

657:                                              ; preds = %652
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %690

658:                                              ; preds = %652
  br label %659

659:                                              ; preds = %658
  br label %660

660:                                              ; preds = %659
  br label %661

661:                                              ; preds = %660
  %662 = getelementptr inbounds %struct.s2n_blob, ptr %31, i32 0, i32 0
  %663 = load ptr, ptr %662, align 8, !tbaa !49
  %664 = getelementptr inbounds %struct.s2n_blob, ptr %31, i32 0, i32 1
  %665 = load i32, ptr %664, align 8, !tbaa !50
  %666 = call i32 @s2n_hash_digest(ptr noundef %28, ptr noundef %663, i32 noundef %665)
  %667 = icmp sgt i32 %666, -1
  br i1 %667, label %669, label %668

668:                                              ; preds = %661
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %690

669:                                              ; preds = %661
  br label %670

670:                                              ; preds = %669
  br label %671

671:                                              ; preds = %670
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #9
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 24, i1 false)
  br label %672

672:                                              ; preds = %671
  %673 = load ptr, ptr %14, align 8, !tbaa !5
  %674 = load i32, ptr %15, align 4, !tbaa !9
  %675 = call i32 @s2n_blob_init(ptr noundef %32, ptr noundef %673, i32 noundef %674)
  %676 = icmp sgt i32 %675, -1
  br i1 %676, label %678, label %677

677:                                              ; preds = %672
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %689

678:                                              ; preds = %672
  br label %679

679:                                              ; preds = %678
  br label %680

680:                                              ; preds = %679
  br label %681

681:                                              ; preds = %680
  %682 = load i32, ptr %16, align 4, !tbaa !9
  %683 = call i32 @s2n_hkdf_expand_label(ptr noundef %27, i32 noundef %682, ptr noundef %23, ptr noundef @s2n_tls13_label_exporter, ptr noundef %31, ptr noundef %32)
  %684 = icmp sgt i32 %683, -1
  br i1 %684, label %686, label %685

685:                                              ; preds = %681
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %689

686:                                              ; preds = %681
  br label %687

687:                                              ; preds = %686
  br label %688

688:                                              ; preds = %687
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %689

689:                                              ; preds = %688, %685, %677
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #9
  br label %690

690:                                              ; preds = %689, %668, %657, %648, %640, %621
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #9
  br label %691

691:                                              ; preds = %690, %576
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %692

692:                                              ; preds = %691, %568
  %693 = call i32 @s2n_hash_free(ptr noundef %28)
  call void @llvm.lifetime.end.p0(i64 56, ptr %28) #9
  br label %694

694:                                              ; preds = %692, %561
  %695 = call i32 @s2n_hmac_free(ptr noundef %27)
  call void @llvm.lifetime.end.p0(i64 432, ptr %27) #9
  br label %696

696:                                              ; preds = %694, %554, %510, %491
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #9
  br label %697

697:                                              ; preds = %696, %446, %436, %371
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 249, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %698

698:                                              ; preds = %697, %326, %286, %248, %211, %173, %137, %101, %65
  %699 = load i32, ptr %8, align 4
  ret i32 %699
}

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

declare i32 @s2n_hmac_free(ptr noundef) #2

declare i32 @s2n_hmac_new(ptr noundef) #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !6, i64 232}
!15 = !{!"s2n_connection", !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, 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, !10, i64 148, !10, 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, !10, i64 1764, !7, i64 1768, !32, i64 1776, !32, i64 1816, !32, i64 1856, !32, i64 1896, !10, 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, !10, 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, !10, i64 2784, !24, i64 2792, !10, 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, !10, i64 3780, !24, i64 3784, !10, 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, !10, i64 4088, !10, i64 4092, !24, i64 4096, !10, 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, !10, 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, !10, i64 8, !10, i64 12, !10, i64 16}
!25 = !{!"_Bool", !7, i64 0}
!26 = !{!"s2n_handshake_parameters", !27, i64 0, !27, i64 48, !24, i64 96, !10, 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", !10, i64 0, !30, i64 8, !31, i64 40, !31, i64 42, !6, i64 48, !10, i64 56}
!30 = !{!"s2n_array", !24, i64 0, !10, i64 24, !10, i64 28}
!31 = !{!"short", !7, i64 0}
!32 = !{!"s2n_stuffer", !24, i64 0, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 36, !10, i64 36}
!33 = !{!"", !10, i64 0}
!34 = !{!"s2n_handshake", !32, i64 0, !6, i64 40, !7, i64 48, !7, i64 56, !7, i64 104, !7, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !35, i64 176, !10, i64 184, !10, i64 184, !10, i64 184, !10, i64 184, !10, 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, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, 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, !10, i64 32, !6, i64 40, !39, i64 48, !25, i64 52}
!39 = !{!"s2n_cert_validation_info", !10, i64 0, !10, i64 0}
!40 = !{!"s2n_ticket_fields", !24, i64 0, !10, 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", !10, i64 0, !31, i64 4, !10, 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, !10, i64 8, !7, i64 12, !17, i64 16, !7, i64 24}
!47 = !{!48, !10, i64 96}
!48 = !{!"s2n_cipher_suite", !10, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !6, i64 32, !10, i64 40, !6, i64 48, !7, i64 56, !7, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !7, i64 100}
!49 = !{!24, !6, i64 0}
!50 = !{!24, !10, i64 8}
!51 = !{!24, !10, i64 12}


; 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_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 }
%union.anon = 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 }

@_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.42 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [94 x i8], align 1
@s2n_tls13_label_exporter = external constant %struct.s2n_blob, align 8

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

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

declare i32 @s2n_hash_free(ptr noundef) local_unnamed_addr #2

declare i32 @s2n_hash_new(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @s2n_get_hash_len(i32 noundef) local_unnamed_addr #3

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

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

declare i32 @s2n_hash_digest(ptr noundef, ptr noundef, i32 noundef) 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) #0

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

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #2

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

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

declare zeroext i8 @s2n_connection_get_protocol_version(ptr noundef) local_unnamed_addr #2

declare i32 @s2n_conn_get_current_message_type(ptr noundef) local_unnamed_addr #2

declare ptr @s2n_ensure_memmove_trace(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_connection_tls_exporter(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) local_unnamed_addr #3 {
  %8 = alloca [249 x i8], align 16
  %9 = alloca %struct.s2n_blob, align 8
  %10 = alloca [64 x i8], align 16
  %11 = alloca %struct.s2n_blob, align 8
  %12 = alloca %struct.s2n_blob, align 8
  %13 = alloca %struct.s2n_blob, align 8
  %14 = alloca %struct.s2n_hmac_state, align 8
  %15 = alloca %struct.s2n_hash_state, align 8
  %16 = alloca i32, align 4
  %17 = alloca [64 x i8], align 16
  %18 = alloca %struct.s2n_blob, align 8
  %19 = alloca %struct.s2n_blob, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %20, label %28

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

28:                                               ; preds = %7
  %.not55 = icmp eq ptr %5, null
  br i1 %.not55, label %29, label %37

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

37:                                               ; preds = %28
  %.not57 = icmp eq ptr %1, null
  br i1 %.not57, label %38, label %46

38:                                               ; preds = %37
  %39 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.44, ptr %39, align 8, !tbaa !5
  %40 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.44, i64 21), i32 noundef 47) #7
  %.not58 = icmp eq ptr %40, null
  %41 = getelementptr inbounds i8, ptr %40, i64 1
  %42 = select i1 %.not58, ptr getelementptr inbounds (i8, ptr @.str.44, 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 %227

46:                                               ; preds = %37
  %.not59 = icmp eq ptr %3, null
  br i1 %.not59, label %47, label %55

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

55:                                               ; preds = %46
  %56 = tail call zeroext i8 @s2n_connection_get_protocol_version(ptr noundef nonnull %0) #8
  %57 = icmp eq i8 %56, 34
  br i1 %57, label %66, label %58

58:                                               ; preds = %55
  %59 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.46, ptr %59, align 8, !tbaa !5
  %60 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.46, i64 21), i32 noundef 47) #7
  %.not61 = icmp eq ptr %60, null
  %61 = getelementptr inbounds i8, ptr %60, i64 1
  %62 = select i1 %.not61, ptr getelementptr inbounds (i8, ptr @.str.46, i64 21), ptr %61
  %63 = getelementptr inbounds i8, ptr %59, i64 8
  store ptr %62, ptr %63, align 8, !tbaa !10
  %64 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762112, ptr %64, align 4, !tbaa !11
  %65 = tail call i32 @s2n_calculate_stacktrace() #8
  br label %227

66:                                               ; preds = %55
  %67 = tail call i32 @s2n_conn_get_current_message_type(ptr noundef nonnull %0) #8
  %68 = icmp eq i32 %67, 20
  br i1 %68, label %77, label %69

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

77:                                               ; preds = %66
  %78 = getelementptr inbounds i8, ptr %0, i64 232
  %79 = load ptr, ptr %78, align 8, !tbaa !13
  %.not63 = icmp eq ptr %79, null
  br i1 %.not63, label %80, label %88

80:                                               ; preds = %77
  %81 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.48, ptr %81, align 8, !tbaa !5
  %82 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.48, i64 21), i32 noundef 47) #7
  %.not64 = icmp eq ptr %82, null
  %83 = getelementptr inbounds i8, ptr %82, i64 1
  %84 = select i1 %.not64, ptr getelementptr inbounds (i8, ptr @.str.48, i64 21), ptr %83
  %85 = getelementptr inbounds i8, ptr %81, i64 8
  store ptr %84, ptr %85, align 8, !tbaa !10
  %86 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %86, align 4, !tbaa !11
  %87 = tail call i32 @s2n_calculate_stacktrace() #8
  br label %227

88:                                               ; preds = %77
  %89 = load ptr, ptr %79, align 8, !tbaa !41
  %.not65 = icmp eq ptr %89, null
  br i1 %.not65, label %90, label %98

90:                                               ; preds = %88
  %91 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.49, ptr %91, align 8, !tbaa !5
  %92 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.49, i64 21), i32 noundef 47) #7
  %.not66 = icmp eq ptr %92, null
  %93 = getelementptr inbounds i8, ptr %92, i64 1
  %94 = select i1 %.not66, ptr getelementptr inbounds (i8, ptr @.str.49, i64 21), ptr %93
  %95 = getelementptr inbounds i8, ptr %91, i64 8
  store ptr %94, ptr %95, align 8, !tbaa !10
  %96 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %96, align 4, !tbaa !11
  %97 = tail call i32 @s2n_calculate_stacktrace() #8
  br label %227

98:                                               ; preds = %88
  %99 = getelementptr inbounds i8, ptr %89, i64 96
  %100 = load i32, ptr %99, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 249, ptr nonnull %8) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(249) %8, i8 0, i64 249, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %9, i8 0, i64 24, i1 false)
  %101 = zext i32 %2 to i64
  %102 = icmp ult i32 %2, 250
  br i1 %102, label %111, label %103

103:                                              ; preds = %98
  %104 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.50, ptr %104, align 8, !tbaa !5
  %105 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.50, i64 21), i32 noundef 47) #7
  %.not67 = icmp eq ptr %105, null
  %106 = getelementptr inbounds i8, ptr %105, i64 1
  %107 = select i1 %.not67, ptr getelementptr inbounds (i8, ptr @.str.50, i64 21), ptr %106
  %108 = getelementptr inbounds i8, ptr %104, i64 8
  store ptr %107, ptr %108, align 8, !tbaa !10
  %109 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %109, align 4, !tbaa !11
  %110 = tail call i32 @s2n_calculate_stacktrace() #8
  br label %226

111:                                              ; preds = %98
  %.not68 = icmp eq i32 %2, 0
  br i1 %.not68, label %.critedge74, label %112, !prof !48

112:                                              ; preds = %111
  %113 = call ptr @s2n_ensure_memmove_trace(ptr noundef nonnull %8, ptr noundef nonnull %1, i64 noundef %101) #8
  %.not69.not = icmp eq ptr %113, null
  br i1 %.not69.not, label %114, label %.critedge74

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

.critedge74:                                      ; preds = %112, %111
  %122 = call i32 @s2n_blob_init(ptr noundef nonnull %9, ptr noundef nonnull %8, i32 noundef %2) #8
  %123 = icmp sgt i32 %122, -1
  br i1 %123, label %124, label %226

124:                                              ; preds = %.critedge74
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  %125 = load ptr, ptr %78, align 8, !tbaa !13
  %126 = load ptr, ptr %125, align 8, !tbaa !41
  %127 = getelementptr inbounds i8, ptr %126, i64 96
  %128 = load i32, ptr %127, align 8, !tbaa !46
  %129 = call zeroext i8 @s2n_get_hash_len(i32 noundef %128)
  %130 = icmp ult i8 %129, 65
  br i1 %130, label %139, label %131

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

139:                                              ; preds = %124
  %140 = load ptr, ptr %78, align 8, !tbaa !13
  %141 = load ptr, ptr %140, align 8, !tbaa !41
  %142 = getelementptr inbounds i8, ptr %141, i64 96
  %143 = load i32, ptr %142, align 8, !tbaa !46
  %144 = call zeroext i8 @s2n_get_hash_len(i32 noundef %143)
  %145 = zext i8 %144 to i32
  %146 = call i32 @s2n_blob_init(ptr noundef nonnull %11, ptr noundef nonnull %10, i32 noundef %145) #8
  %147 = icmp sgt i32 %146, -1
  br i1 %147, label %148, label %225

148:                                              ; preds = %139
  %149 = getelementptr inbounds i8, ptr %0, i64 576
  store ptr %149, ptr %12, align 8, !tbaa !49
  %150 = getelementptr inbounds i8, ptr %12, i64 8
  %151 = load ptr, ptr %78, align 8, !tbaa !13
  %152 = load ptr, ptr %151, align 8, !tbaa !41
  %153 = getelementptr inbounds i8, ptr %152, i64 96
  %154 = load i32, ptr %153, align 8, !tbaa !46
  %155 = call zeroext i8 @s2n_get_hash_len(i32 noundef %154)
  %156 = zext i8 %155 to i32
  store i32 %156, ptr %150, align 8, !tbaa !50
  %157 = getelementptr inbounds i8, ptr %12, i64 12
  store i32 0, ptr %157, align 4, !tbaa !51
  %158 = getelementptr inbounds i8, ptr %12, i64 16
  store i8 0, ptr %158, align 8
  %159 = call ptr @s2n_get_empty_context(i32 noundef %100)
  store ptr %159, ptr %13, align 8, !tbaa !49
  %160 = getelementptr inbounds i8, ptr %13, i64 8
  %161 = call zeroext i8 @s2n_get_hash_len(i32 noundef %100)
  %162 = zext i8 %161 to i32
  store i32 %162, ptr %160, align 8, !tbaa !50
  %163 = getelementptr inbounds i8, ptr %13, i64 12
  store i32 0, ptr %163, align 4, !tbaa !51
  %164 = getelementptr inbounds i8, ptr %13, i64 16
  store i8 0, ptr %164, align 8
  %165 = call i32 @s2n_derive_secret(i32 noundef %100, ptr noundef nonnull %12, ptr noundef nonnull %9, ptr noundef nonnull %13, ptr noundef nonnull %11)
  %166 = call zeroext i1 @s2n_result_is_ok(i32 %165)
  br i1 %166, label %167, label %225

167:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %14) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(432) %14, i8 0, i64 432, i1 false)
  %168 = call i32 @s2n_hmac_new(ptr noundef nonnull %14) #8
  %169 = icmp sgt i32 %168, -1
  br i1 %169, label %170, label %223

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %15) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %15, i8 0, i64 56, i1 false)
  %171 = call i32 @s2n_hash_new(ptr noundef nonnull %15) #8
  %172 = icmp sgt i32 %171, -1
  br i1 %172, label %173, label %221

173:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 0, ptr %16, align 4, !tbaa !11
  %174 = call i32 @s2n_hmac_hash_alg(i32 noundef %100, ptr noundef nonnull %16) #8
  %175 = icmp sgt i32 %174, -1
  br i1 %175, label %176, label %220

176:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %18, i8 0, i64 24, i1 false)
  %177 = load ptr, ptr %78, align 8, !tbaa !13
  %178 = load ptr, ptr %177, align 8, !tbaa !41
  %179 = getelementptr inbounds i8, ptr %178, i64 96
  %180 = load i32, ptr %179, align 8, !tbaa !46
  %181 = call zeroext i8 @s2n_get_hash_len(i32 noundef %180)
  %182 = icmp ult i8 %181, 65
  br i1 %182, label %191, label %183

183:                                              ; preds = %176
  %184 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.53, ptr %184, align 8, !tbaa !5
  %185 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.53, i64 21), i32 noundef 47) #7
  %.not72 = icmp eq ptr %185, null
  %186 = getelementptr inbounds i8, ptr %185, i64 1
  %187 = select i1 %.not72, ptr getelementptr inbounds (i8, ptr @.str.53, i64 21), ptr %186
  %188 = getelementptr inbounds i8, ptr %184, i64 8
  store ptr %187, ptr %188, align 8, !tbaa !10
  %189 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %189, align 4, !tbaa !11
  %190 = call i32 @s2n_calculate_stacktrace() #8
  br label %219

191:                                              ; preds = %176
  %192 = load ptr, ptr %78, align 8, !tbaa !13
  %193 = load ptr, ptr %192, align 8, !tbaa !41
  %194 = getelementptr inbounds i8, ptr %193, i64 96
  %195 = load i32, ptr %194, align 8, !tbaa !46
  %196 = call zeroext i8 @s2n_get_hash_len(i32 noundef %195)
  %197 = zext i8 %196 to i32
  %198 = call i32 @s2n_blob_init(ptr noundef nonnull %18, ptr noundef nonnull %17, i32 noundef %197) #8
  %199 = icmp sgt i32 %198, -1
  br i1 %199, label %200, label %219

200:                                              ; preds = %191
  %201 = load i32, ptr %16, align 4, !tbaa !11
  %202 = call i32 @s2n_hash_init(ptr noundef nonnull %15, i32 noundef %201) #8
  %203 = icmp sgt i32 %202, -1
  br i1 %203, label %204, label %219

204:                                              ; preds = %200
  %205 = call i32 @s2n_hash_update(ptr noundef nonnull %15, ptr noundef nonnull %3, i32 noundef %4) #8
  %206 = icmp sgt i32 %205, -1
  br i1 %206, label %207, label %219

207:                                              ; preds = %204
  %208 = load ptr, ptr %18, align 8, !tbaa !49
  %209 = getelementptr inbounds i8, ptr %18, i64 8
  %210 = load i32, ptr %209, align 8, !tbaa !50
  %211 = call i32 @s2n_hash_digest(ptr noundef nonnull %15, ptr noundef %208, i32 noundef %210) #8
  %212 = icmp sgt i32 %211, -1
  br i1 %212, label %213, label %219

213:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %19, i8 0, i64 24, i1 false)
  %214 = call i32 @s2n_blob_init(ptr noundef nonnull %19, ptr noundef nonnull %5, i32 noundef %6) #8
  %215 = icmp sgt i32 %214, -1
  br i1 %215, label %216, label %218

216:                                              ; preds = %213
  %217 = call i32 @s2n_hkdf_expand_label(ptr noundef nonnull %14, i32 noundef %100, ptr noundef nonnull %11, ptr noundef nonnull @s2n_tls13_label_exporter, ptr noundef nonnull %18, ptr noundef nonnull %19) #8
  %.lobit = ashr i32 %217, 31
  br label %218

218:                                              ; preds = %216, %213
  %.3 = phi i32 [ -1, %213 ], [ %.lobit, %216 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  br label %219

219:                                              ; preds = %207, %204, %200, %191, %218, %183
  %.4 = phi i32 [ %.3, %218 ], [ -1, %183 ], [ -1, %191 ], [ -1, %200 ], [ -1, %204 ], [ -1, %207 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #8
  br label %220

220:                                              ; preds = %173, %219
  %.5 = phi i32 [ %.4, %219 ], [ -1, %173 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  br label %221

221:                                              ; preds = %170, %220
  %.6 = phi i32 [ %.5, %220 ], [ -1, %170 ]
  %222 = call i32 @s2n_hash_free(ptr noundef nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %15) #8
  br label %223

223:                                              ; preds = %167, %221
  %.7 = phi i32 [ %.6, %221 ], [ -1, %167 ]
  %224 = call i32 @s2n_hmac_free(ptr noundef nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %14) #8
  br label %225

225:                                              ; preds = %148, %139, %223, %131
  %.8 = phi i32 [ %.7, %223 ], [ -1, %131 ], [ -1, %139 ], [ -1, %148 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #8
  br label %226

226:                                              ; preds = %114, %.critedge74, %225, %103
  %.9 = phi i32 [ %.8, %225 ], [ -1, %103 ], [ -1, %114 ], [ -1, %.critedge74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 249, ptr nonnull %8) #8
  br label %227

227:                                              ; preds = %226, %90, %80, %69, %58, %47, %38, %29, %20
  %.10 = phi i32 [ %.9, %226 ], [ -1, %90 ], [ -1, %80 ], [ -1, %69 ], [ -1, %58 ], [ -1, %47 ], [ -1, %38 ], [ -1, %29 ], [ -1, %20 ]
  ret i32 %.10
}

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

declare i32 @s2n_hmac_free(ptr noundef) local_unnamed_addr #2

declare i32 @s2n_hmac_new(ptr noundef) local_unnamed_addr #2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #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, !12, i64 96}
!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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!49 = !{!23, !7, i64 0}
!50 = !{!23, !12, i64 8}
!51 = !{!23, !12, i64 12}


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