; 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_result = type { i32 }
%struct.s2n_connection = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [22 x i8], [22 x i8], [22 x i8], i32, i32, %struct.s2n_timer, i64, i64, [32 x i8], i8, i8, i8, i8, i8, i8, i8, ptr, ptr, %struct.s2n_secrets, ptr, ptr, %struct.s2n_kex_parameters, %struct.s2n_handshake_parameters, %struct.s2n_psk_parameters, ptr, i8, i32, [5 x i8], %struct.s2n_stuffer, %struct.s2n_stuffer, %struct.s2n_stuffer, %struct.s2n_stuffer, i32, i64, [2 x i8], %struct.s2n_stuffer, i8, i8, i8, i8, %struct.s2n_atomic_flag, %struct.s2n_atomic_flag, %struct.s2n_handshake, i16, i32, i16, i64, i8, i64, i64, i64, %struct.s2n_atomic_flag, %struct.s2n_atomic_flag, [256 x i8], [256 x i8], i32, %struct.s2n_blob, i32, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_client_hello, %struct.s2n_x509_validator, ptr, ptr, i8, i32, %struct.s2n_blob, i32, %struct.s2n_ticket_fields, [138 x i8], %struct.s2n_stuffer, %struct.s2n_blob, %struct.s2n_blob, i8, i8, i8, i16, i16, i32, i32, %struct.s2n_blob, i32, %struct.s2n_post_handshake, %struct.s2n_atomic_flag, i8, i8 }
%struct.s2n_timer = type { i64 }
%struct.s2n_secrets = type { %union.anon.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_blob = type { ptr, i32, i32, i8 }
%struct.s2n_post_handshake = type { %struct.s2n_stuffer, [4 x i8] }
%struct.s2n_atomic_flag = type { i32 }
%struct.s2n_crypto_parameters = type { ptr, %struct.s2n_session_key, %struct.s2n_session_key, %struct.s2n_hmac_state, %struct.s2n_hmac_state, [16 x i8], [16 x i8], [8 x i8], [8 x i8] }
%struct.s2n_session_key = type { ptr }
%struct.s2n_hmac_state = type { i32, i16, i32, i16, i8, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, [128 x i8], [64 x i8] }
%struct.s2n_hash_state = type { ptr, i32, i8, i64, %union.anon }
%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_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.32 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [94 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @s2n_get_hash_len(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) #3

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

declare i32 @s2n_calculate_stacktrace() #5

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

15:                                               ; preds = %4
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %50, label %18

18:                                               ; preds = %15
  br label %19

19:                                               ; preds = %18
  br label %20

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

29:                                               ; preds = %20
  %30 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %31 = getelementptr inbounds %struct.s2n_debug_info, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %32, i64 21
  %34 = call ptr @strrchr(ptr noundef %33, i32 noundef 47) #7
  %35 = getelementptr inbounds i8, ptr %34, i64 1
  br label %41

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

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

47:                                               ; preds = %41
  %48 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %48, align 4, !tbaa !14
  br label %515

49:                                               ; No predecessors!
  br label %50

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

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %87, label %55

55:                                               ; preds = %52
  br label %56

56:                                               ; preds = %55
  br label %57

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

66:                                               ; preds = %57
  %67 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %68 = getelementptr inbounds %struct.s2n_debug_info, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = getelementptr inbounds i8, ptr %69, i64 21
  %71 = call ptr @strrchr(ptr noundef %70, i32 noundef 47) #7
  %72 = getelementptr inbounds i8, ptr %71, i64 1
  br label %78

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

78:                                               ; preds = %73, %66
  %79 = phi ptr [ %72, %66 ], [ %77, %73 ]
  %80 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %81 = getelementptr inbounds %struct.s2n_debug_info, ptr %80, i32 0, i32 1
  store ptr %79, ptr %81, align 8, !tbaa !13
  %82 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %82, align 4, !tbaa !9
  %83 = call i32 @s2n_calculate_stacktrace()
  br label %84

84:                                               ; preds = %78
  %85 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %85, align 4, !tbaa !14
  br label %515

86:                                               ; No predecessors!
  br label %87

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

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.s2n_connection, ptr %90, i32 0, i32 27
  %92 = load ptr, ptr %91, align 8, !tbaa !16
  %93 = icmp ne ptr %92, null
  br i1 %93, label %126, label %94

94:                                               ; preds = %89
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %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 0
  store ptr @.str.34, ptr %98, align 8, !tbaa !11
  %99 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %100 = getelementptr inbounds %struct.s2n_debug_info, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = getelementptr inbounds i8, ptr %101, i64 21
  %103 = call ptr @strrchr(ptr noundef %102, i32 noundef 47) #7
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %112

105:                                              ; preds = %96
  %106 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %107 = getelementptr inbounds %struct.s2n_debug_info, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  %109 = getelementptr inbounds i8, ptr %108, i64 21
  %110 = call ptr @strrchr(ptr noundef %109, i32 noundef 47) #7
  %111 = getelementptr inbounds i8, ptr %110, i64 1
  br label %117

112:                                              ; preds = %96
  %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
  br label %117

117:                                              ; preds = %112, %105
  %118 = phi ptr [ %111, %105 ], [ %116, %112 ]
  %119 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %120 = getelementptr inbounds %struct.s2n_debug_info, ptr %119, i32 0, i32 1
  store ptr %118, ptr %120, align 8, !tbaa !13
  %121 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %121, align 4, !tbaa !9
  %122 = call i32 @s2n_calculate_stacktrace()
  br label %123

123:                                              ; preds = %117
  %124 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %124, align 4, !tbaa !14
  br label %515

125:                                              ; No predecessors!
  br label %126

126:                                              ; preds = %125, %89
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.s2n_connection, ptr %129, i32 0, i32 27
  %131 = load ptr, ptr %130, align 8, !tbaa !16
  %132 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !43
  %134 = icmp ne ptr %133, null
  br i1 %134, label %167, label %135

135:                                              ; preds = %128
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  %138 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %139 = getelementptr inbounds %struct.s2n_debug_info, ptr %138, i32 0, i32 0
  store ptr @.str.35, ptr %139, align 8, !tbaa !11
  %140 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %141 = getelementptr inbounds %struct.s2n_debug_info, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !11
  %143 = getelementptr inbounds i8, ptr %142, i64 21
  %144 = call ptr @strrchr(ptr noundef %143, i32 noundef 47) #7
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %153

146:                                              ; preds = %137
  %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
  %149 = load ptr, ptr %148, align 8, !tbaa !11
  %150 = getelementptr inbounds i8, ptr %149, i64 21
  %151 = call ptr @strrchr(ptr noundef %150, i32 noundef 47) #7
  %152 = getelementptr inbounds i8, ptr %151, i64 1
  br label %158

153:                                              ; preds = %137
  %154 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %155 = getelementptr inbounds %struct.s2n_debug_info, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !11
  %157 = getelementptr inbounds i8, ptr %156, i64 21
  br label %158

158:                                              ; preds = %153, %146
  %159 = phi ptr [ %152, %146 ], [ %157, %153 ]
  %160 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %161 = getelementptr inbounds %struct.s2n_debug_info, ptr %160, i32 0, i32 1
  store ptr %159, ptr %161, align 8, !tbaa !13
  %162 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %162, align 4, !tbaa !9
  %163 = call i32 @s2n_calculate_stacktrace()
  br label %164

164:                                              ; preds = %158
  %165 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %165, align 4, !tbaa !14
  br label %515

166:                                              ; No predecessors!
  br label %167

167:                                              ; preds = %166, %128
  br label %168

168:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #8
  %169 = load i32, ptr %7, align 4, !tbaa !9
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.s2n_connection, ptr %170, i32 0, i32 28
  %172 = getelementptr inbounds %struct.s2n_secrets, ptr %171, i32 0, i32 1
  %173 = load i32, ptr %172, align 4, !tbaa !48
  %174 = icmp ule i32 %169, %173
  br i1 %174, label %183, label %175

175:                                              ; preds = %168
  %176 = load i32, ptr %7, align 4, !tbaa !9
  %177 = icmp eq i32 %176, 3
  br i1 %177, label %178, label %181

178:                                              ; preds = %175
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = call zeroext i1 @s2n_handshake_is_complete(ptr noundef %179)
  br label %181

181:                                              ; preds = %178, %175
  %182 = phi i1 [ false, %175 ], [ %180, %178 ]
  br label %183

183:                                              ; preds = %181, %168
  %184 = phi i1 [ true, %168 ], [ %182, %181 ]
  %185 = zext i1 %184 to i8
  store i8 %185, ptr %10, align 1, !tbaa !49
  br label %186

186:                                              ; preds = %183
  %187 = load i8, ptr %10, align 1, !tbaa !49, !range !50, !noundef !51
  %188 = trunc i8 %187 to i1
  br i1 %188, label %223, label %189

189:                                              ; preds = %186
  br label %190

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190
  %192 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %193 = getelementptr inbounds %struct.s2n_debug_info, ptr %192, i32 0, i32 0
  store ptr @.str.36, ptr %193, align 8, !tbaa !11
  %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) #7
  %199 = icmp ne ptr %198, null
  br i1 %199, label %200, label %207

200:                                              ; preds = %191
  %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
  %205 = call ptr @strrchr(ptr noundef %204, i32 noundef 47) #7
  %206 = getelementptr inbounds i8, ptr %205, i64 1
  br label %212

207:                                              ; preds = %191
  %208 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %209 = getelementptr inbounds %struct.s2n_debug_info, ptr %208, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8, !tbaa !11
  %211 = getelementptr inbounds i8, ptr %210, i64 21
  br label %212

212:                                              ; preds = %207, %200
  %213 = phi ptr [ %206, %200 ], [ %211, %207 ]
  %214 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %215 = getelementptr inbounds %struct.s2n_debug_info, ptr %214, i32 0, i32 1
  store ptr %213, ptr %215, align 8, !tbaa !13
  %216 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %216, align 4, !tbaa !9
  %217 = call i32 @s2n_calculate_stacktrace()
  br label %218

218:                                              ; preds = %212
  br label %219

219:                                              ; preds = %218
  %220 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %220, align 4, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %514

221:                                              ; No predecessors!
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222, %186
  br label %224

224:                                              ; preds = %223
  br label %225

225:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #8
  call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 16, i1 false)
  %226 = getelementptr inbounds [2 x ptr], ptr %12, i64 1
  store ptr null, ptr %226, align 8, !tbaa !5
  %227 = getelementptr inbounds ptr, ptr %226, i64 1
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.s2n_connection, ptr %228, i32 0, i32 28
  %230 = getelementptr inbounds %struct.s2n_secrets, ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds %struct.s2n_tls13_secrets, ptr %230, i32 0, i32 1
  %232 = getelementptr inbounds [48 x i8], ptr %231, i64 0, i64 0
  store ptr %232, ptr %227, align 8, !tbaa !5
  %233 = getelementptr inbounds [2 x ptr], ptr %12, i64 2
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.s2n_connection, ptr %234, i32 0, i32 28
  %236 = getelementptr inbounds %struct.s2n_secrets, ptr %235, i32 0, i32 0
  %237 = getelementptr inbounds %struct.s2n_tls13_secrets, ptr %236, i32 0, i32 3
  %238 = getelementptr inbounds [48 x i8], ptr %237, i64 0, i64 0
  store ptr %238, ptr %233, align 8, !tbaa !5
  %239 = getelementptr inbounds ptr, ptr %233, i64 1
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.s2n_connection, ptr %240, i32 0, i32 28
  %242 = getelementptr inbounds %struct.s2n_secrets, ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds %struct.s2n_tls13_secrets, ptr %242, i32 0, i32 2
  %244 = getelementptr inbounds [48 x i8], ptr %243, i64 0, i64 0
  store ptr %244, ptr %239, align 8, !tbaa !5
  %245 = getelementptr inbounds [2 x ptr], ptr %12, i64 3
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.s2n_connection, ptr %246, i32 0, i32 28
  %248 = getelementptr inbounds %struct.s2n_secrets, ptr %247, i32 0, i32 0
  %249 = getelementptr inbounds %struct.s2n_tls13_secrets, ptr %248, i32 0, i32 5
  %250 = getelementptr inbounds [48 x i8], ptr %249, i64 0, i64 0
  store ptr %250, ptr %245, align 8, !tbaa !5
  %251 = getelementptr inbounds ptr, ptr %245, i64 1
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.s2n_connection, ptr %252, i32 0, i32 28
  %254 = getelementptr inbounds %struct.s2n_secrets, ptr %253, i32 0, i32 0
  %255 = getelementptr inbounds %struct.s2n_tls13_secrets, ptr %254, i32 0, i32 4
  %256 = getelementptr inbounds [48 x i8], ptr %255, i64 0, i64 0
  store ptr %256, ptr %251, align 8, !tbaa !5
  br label %257

257:                                              ; preds = %225
  %258 = load i32, ptr %7, align 4, !tbaa !9
  %259 = icmp ugt i32 %258, 0
  br i1 %259, label %294, label %260

260:                                              ; preds = %257
  br label %261

261:                                              ; preds = %260
  br label %262

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

271:                                              ; preds = %262
  %272 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %273 = getelementptr inbounds %struct.s2n_debug_info, ptr %272, i32 0, i32 0
  %274 = load ptr, ptr %273, align 8, !tbaa !11
  %275 = getelementptr inbounds i8, ptr %274, i64 21
  %276 = call ptr @strrchr(ptr noundef %275, i32 noundef 47) #7
  %277 = getelementptr inbounds i8, ptr %276, i64 1
  br label %283

278:                                              ; preds = %262
  %279 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %280 = getelementptr inbounds %struct.s2n_debug_info, ptr %279, i32 0, i32 0
  %281 = load ptr, ptr %280, align 8, !tbaa !11
  %282 = getelementptr inbounds i8, ptr %281, i64 21
  br label %283

283:                                              ; preds = %278, %271
  %284 = phi ptr [ %277, %271 ], [ %282, %278 ]
  %285 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %286 = getelementptr inbounds %struct.s2n_debug_info, ptr %285, i32 0, i32 1
  store ptr %284, ptr %286, align 8, !tbaa !13
  %287 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %287, align 4, !tbaa !9
  %288 = call i32 @s2n_calculate_stacktrace()
  br label %289

289:                                              ; preds = %283
  br label %290

290:                                              ; preds = %289
  %291 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %291, align 4, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %513

292:                                              ; No predecessors!
  br label %293

293:                                              ; preds = %292
  br label %294

294:                                              ; preds = %293, %257
  br label %295

295:                                              ; preds = %294
  br label %296

296:                                              ; preds = %295
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %7, align 4, !tbaa !9
  %299 = zext i32 %298 to i64
  %300 = icmp ult i64 %299, 4
  br i1 %300, label %335, label %301

301:                                              ; preds = %297
  br label %302

302:                                              ; preds = %301
  br label %303

303:                                              ; preds = %302
  %304 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %305 = getelementptr inbounds %struct.s2n_debug_info, ptr %304, i32 0, i32 0
  store ptr @.str.38, ptr %305, align 8, !tbaa !11
  %306 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %307 = getelementptr inbounds %struct.s2n_debug_info, ptr %306, i32 0, i32 0
  %308 = load ptr, ptr %307, align 8, !tbaa !11
  %309 = getelementptr inbounds i8, ptr %308, i64 21
  %310 = call ptr @strrchr(ptr noundef %309, i32 noundef 47) #7
  %311 = icmp ne ptr %310, null
  br i1 %311, label %312, label %319

312:                                              ; preds = %303
  %313 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %314 = getelementptr inbounds %struct.s2n_debug_info, ptr %313, i32 0, i32 0
  %315 = load ptr, ptr %314, align 8, !tbaa !11
  %316 = getelementptr inbounds i8, ptr %315, i64 21
  %317 = call ptr @strrchr(ptr noundef %316, i32 noundef 47) #7
  %318 = getelementptr inbounds i8, ptr %317, i64 1
  br label %324

319:                                              ; preds = %303
  %320 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %321 = getelementptr inbounds %struct.s2n_debug_info, ptr %320, i32 0, i32 0
  %322 = load ptr, ptr %321, align 8, !tbaa !11
  %323 = getelementptr inbounds i8, ptr %322, i64 21
  br label %324

324:                                              ; preds = %319, %312
  %325 = phi ptr [ %318, %312 ], [ %323, %319 ]
  %326 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %327 = getelementptr inbounds %struct.s2n_debug_info, ptr %326, i32 0, i32 1
  store ptr %325, ptr %327, align 8, !tbaa !13
  %328 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %328, align 4, !tbaa !9
  %329 = call i32 @s2n_calculate_stacktrace()
  br label %330

330:                                              ; preds = %324
  br label %331

331:                                              ; preds = %330
  %332 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %332, align 4, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %513

333:                                              ; No predecessors!
  br label %334

334:                                              ; preds = %333
  br label %335

335:                                              ; preds = %334, %297
  br label %336

336:                                              ; preds = %335
  br label %337

337:                                              ; preds = %336
  br label %338

338:                                              ; preds = %337
  %339 = load i32, ptr %7, align 4, !tbaa !9
  %340 = zext i32 %339 to i64
  %341 = getelementptr inbounds [4 x [2 x ptr]], ptr %12, i64 0, i64 %340
  %342 = load i32, ptr %8, align 4, !tbaa !9
  %343 = zext i32 %342 to i64
  %344 = getelementptr inbounds [2 x ptr], ptr %341, i64 0, i64 %343
  %345 = load ptr, ptr %344, align 8, !tbaa !5
  %346 = icmp ne ptr %345, null
  br i1 %346, label %381, label %347

347:                                              ; preds = %338
  br label %348

348:                                              ; preds = %347
  br label %349

349:                                              ; preds = %348
  %350 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %351 = getelementptr inbounds %struct.s2n_debug_info, ptr %350, i32 0, i32 0
  store ptr @.str.39, ptr %351, align 8, !tbaa !11
  %352 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %353 = getelementptr inbounds %struct.s2n_debug_info, ptr %352, i32 0, i32 0
  %354 = load ptr, ptr %353, align 8, !tbaa !11
  %355 = getelementptr inbounds i8, ptr %354, i64 21
  %356 = call ptr @strrchr(ptr noundef %355, i32 noundef 47) #7
  %357 = icmp ne ptr %356, null
  br i1 %357, label %358, label %365

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

365:                                              ; preds = %349
  %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 0
  %368 = load ptr, ptr %367, align 8, !tbaa !11
  %369 = getelementptr inbounds i8, ptr %368, i64 21
  br label %370

370:                                              ; preds = %365, %358
  %371 = phi ptr [ %364, %358 ], [ %369, %365 ]
  %372 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %373 = getelementptr inbounds %struct.s2n_debug_info, ptr %372, i32 0, i32 1
  store ptr %371, ptr %373, align 8, !tbaa !13
  %374 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %374, align 4, !tbaa !9
  %375 = call i32 @s2n_calculate_stacktrace()
  br label %376

376:                                              ; preds = %370
  br label %377

377:                                              ; preds = %376
  %378 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %378, align 4, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %513

379:                                              ; No predecessors!
  br label %380

380:                                              ; preds = %379
  br label %381

381:                                              ; preds = %380, %338
  br label %382

382:                                              ; preds = %381
  br label %383

383:                                              ; preds = %382
  %384 = load ptr, ptr %6, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.s2n_connection, ptr %384, i32 0, i32 27
  %386 = load ptr, ptr %385, align 8, !tbaa !16
  %387 = getelementptr inbounds %struct.s2n_crypto_parameters, ptr %386, i32 0, i32 0
  %388 = load ptr, ptr %387, align 8, !tbaa !43
  %389 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %388, i32 0, i32 11
  %390 = load i32, ptr %389, align 8, !tbaa !52
  %391 = call zeroext i8 @s2n_get_hash_len(i32 noundef %390)
  %392 = zext i8 %391 to i32
  %393 = load ptr, ptr %9, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.s2n_blob, ptr %393, i32 0, i32 1
  store i32 %392, ptr %394, align 8, !tbaa !54
  br label %395

395:                                              ; preds = %383
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %396 = load ptr, ptr %9, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.s2n_blob, ptr %396, i32 0, i32 1
  %398 = load i32, ptr %397, align 8, !tbaa !54
  store i32 %398, ptr %13, align 4, !tbaa !9
  %399 = load i32, ptr %13, align 4, !tbaa !9
  %400 = icmp ne i32 %399, 0
  %401 = xor i1 %400, true
  %402 = xor i1 %401, true
  %403 = zext i1 %402 to i32
  %404 = sext i32 %403 to i64
  %405 = call i64 @llvm.expect.i64(i64 %404, i64 1)
  %406 = icmp ne i64 %405, 0
  br i1 %406, label %407, label %464

407:                                              ; preds = %395
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %408 = load ptr, ptr %9, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.s2n_blob, ptr %408, i32 0, i32 0
  %410 = load ptr, ptr %409, align 8, !tbaa !55
  %411 = load i32, ptr %7, align 4, !tbaa !9
  %412 = zext i32 %411 to i64
  %413 = getelementptr inbounds [4 x [2 x ptr]], ptr %12, i64 0, i64 %412
  %414 = load i32, ptr %8, align 4, !tbaa !9
  %415 = zext i32 %414 to i64
  %416 = getelementptr inbounds [2 x ptr], ptr %413, i64 0, i64 %415
  %417 = load ptr, ptr %416, align 8, !tbaa !5
  %418 = load i32, ptr %13, align 4, !tbaa !9
  %419 = zext i32 %418 to i64
  %420 = call ptr @s2n_ensure_memmove_trace(ptr noundef %410, ptr noundef %417, i64 noundef %419)
  store ptr %420, ptr %14, align 8, !tbaa !5
  br label %421

421:                                              ; preds = %407
  %422 = load ptr, ptr %14, align 8, !tbaa !5
  %423 = icmp ne ptr %422, null
  br i1 %423, label %458, label %424

424:                                              ; preds = %421
  br label %425

425:                                              ; preds = %424
  br label %426

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

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

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

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

453:                                              ; preds = %447
  br label %454

454:                                              ; preds = %453
  %455 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %455, align 4, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %461

456:                                              ; No predecessors!
  br label %457

457:                                              ; preds = %456
  br label %458

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

459:                                              ; preds = %458
  br label %460

460:                                              ; preds = %459
  store i32 0, ptr %11, align 4
  br label %461

461:                                              ; preds = %460, %454
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %462 = load i32, ptr %11, align 4
  switch i32 %462, label %465 [
    i32 0, label %463
  ]

463:                                              ; preds = %461
  br label %464

464:                                              ; preds = %463, %395
  store i32 0, ptr %11, align 4
  br label %465

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

467:                                              ; preds = %465
  br label %468

468:                                              ; preds = %467
  br label %469

469:                                              ; preds = %468
  br label %470

470:                                              ; preds = %469
  %471 = load ptr, ptr %9, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.s2n_blob, ptr %471, i32 0, i32 1
  %473 = load i32, ptr %472, align 8, !tbaa !54
  %474 = icmp ugt i32 %473, 0
  br i1 %474, label %509, label %475

475:                                              ; preds = %470
  br label %476

476:                                              ; preds = %475
  br label %477

477:                                              ; preds = %476
  %478 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %479 = getelementptr inbounds %struct.s2n_debug_info, ptr %478, i32 0, i32 0
  store ptr @.str.41, ptr %479, align 8, !tbaa !11
  %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
  %484 = call ptr @strrchr(ptr noundef %483, i32 noundef 47) #7
  %485 = icmp ne ptr %484, null
  br i1 %485, label %486, label %493

486:                                              ; preds = %477
  %487 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %488 = getelementptr inbounds %struct.s2n_debug_info, ptr %487, i32 0, i32 0
  %489 = load ptr, ptr %488, align 8, !tbaa !11
  %490 = getelementptr inbounds i8, ptr %489, i64 21
  %491 = call ptr @strrchr(ptr noundef %490, i32 noundef 47) #7
  %492 = getelementptr inbounds i8, ptr %491, i64 1
  br label %498

493:                                              ; preds = %477
  %494 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %495 = getelementptr inbounds %struct.s2n_debug_info, ptr %494, i32 0, i32 0
  %496 = load ptr, ptr %495, align 8, !tbaa !11
  %497 = getelementptr inbounds i8, ptr %496, i64 21
  br label %498

498:                                              ; preds = %493, %486
  %499 = phi ptr [ %492, %486 ], [ %497, %493 ]
  %500 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %501 = getelementptr inbounds %struct.s2n_debug_info, ptr %500, i32 0, i32 1
  store ptr %499, ptr %501, align 8, !tbaa !13
  %502 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %502, align 4, !tbaa !9
  %503 = call i32 @s2n_calculate_stacktrace()
  br label %504

504:                                              ; preds = %498
  br label %505

505:                                              ; preds = %504
  %506 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %506, align 4, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %513

507:                                              ; No predecessors!
  br label %508

508:                                              ; preds = %507
  br label %509

509:                                              ; preds = %508, %470
  br label %510

510:                                              ; preds = %509
  br label %511

511:                                              ; preds = %510
  %512 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 0, ptr %512, align 4, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %513

513:                                              ; preds = %511, %505, %465, %377, %331, %290
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #8
  br label %514

514:                                              ; preds = %513, %219
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  br label %515

515:                                              ; preds = %514, %164, %123, %84, %47
  %516 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  %517 = load i32, ptr %516, align 4
  ret i32 %517
}

declare zeroext i1 @s2n_handshake_is_complete(ptr noundef) #5

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

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

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

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

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


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

%struct.s2n_debug_info = type { ptr, ptr }

@_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.32 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [94 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @s2n_get_hash_len(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) #3

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_tls13_secrets_get(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca [4 x [2 x ptr]], align 16
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %6, label %14

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

14:                                               ; preds = %4
  %.not48 = icmp eq ptr %3, null
  br i1 %.not48, label %15, label %23

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

23:                                               ; preds = %14
  %24 = getelementptr inbounds i8, ptr %0, i64 232
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  %.not50 = icmp eq ptr %25, null
  br i1 %.not50, label %26, label %34

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

34:                                               ; preds = %23
  %35 = load ptr, ptr %25, align 8, !tbaa !41
  %.not52 = icmp eq ptr %35, null
  br i1 %.not52, label %36, label %44

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

44:                                               ; preds = %34
  %45 = getelementptr inbounds i8, ptr %0, i64 628
  %46 = load i32, ptr %45, align 4, !tbaa !46
  %.not54 = icmp ult i32 %46, %1
  br i1 %.not54, label %47, label %.critedge

47:                                               ; preds = %44
  %48 = icmp eq i32 %1, 3
  br i1 %48, label %49, label %.critedge67

49:                                               ; preds = %47
  %50 = tail call zeroext i1 @s2n_handshake_is_complete(ptr noundef nonnull %0) #7
  br i1 %50, label %.critedge, label %.critedge67

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

.critedge:                                        ; preds = %44, %49
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #7
  %58 = getelementptr inbounds i8, ptr %5, i64 24
  %59 = getelementptr inbounds i8, ptr %0, i64 288
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  store ptr %59, ptr %58, align 8, !tbaa !47
  %60 = getelementptr inbounds i8, ptr %5, i64 32
  %61 = getelementptr inbounds i8, ptr %0, i64 384
  store ptr %61, ptr %60, align 16, !tbaa !47
  %62 = getelementptr inbounds i8, ptr %5, i64 40
  %63 = getelementptr inbounds i8, ptr %0, i64 336
  store ptr %63, ptr %62, align 8, !tbaa !47
  %64 = getelementptr inbounds i8, ptr %5, i64 48
  %65 = getelementptr inbounds i8, ptr %0, i64 480
  store ptr %65, ptr %64, align 16, !tbaa !47
  %66 = getelementptr inbounds i8, ptr %5, i64 56
  %67 = getelementptr inbounds i8, ptr %0, i64 432
  store ptr %67, ptr %66, align 8, !tbaa !47
  %.not56 = icmp eq i32 %1, 0
  br i1 %.not56, label %.sink.split, label %68

68:                                               ; preds = %.critedge
  %69 = icmp ult i32 %1, 4
  br i1 %69, label %70, label %.sink.split

70:                                               ; preds = %68
  %71 = zext nneg i32 %1 to i64
  %72 = zext i32 %2 to i64
  %73 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 %71, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !47
  %.not59 = icmp eq ptr %74, null
  br i1 %.not59, label %.sink.split, label %75

75:                                               ; preds = %70
  %76 = load ptr, ptr %24, align 8, !tbaa !13
  %77 = load ptr, ptr %76, align 8, !tbaa !41
  %78 = getelementptr inbounds i8, ptr %77, i64 96
  %79 = load i32, ptr %78, align 8, !tbaa !48
  %80 = tail call zeroext i8 @s2n_get_hash_len(i32 noundef %79)
  %81 = zext i8 %80 to i32
  %82 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %81, ptr %82, align 8, !tbaa !50
  %.not61 = icmp eq i8 %80, 0
  br i1 %.not61, label %.sink.split, label %83, !prof !51

83:                                               ; preds = %75
  %84 = load ptr, ptr %3, align 8, !tbaa !52
  %85 = zext i8 %80 to i64
  %86 = tail call ptr @s2n_ensure_memmove_trace(ptr noundef %84, ptr noundef nonnull %74, i64 noundef %85) #7
  %.not62.not = icmp eq ptr %86, null
  br i1 %.not62.not, label %.sink.split, label %.critedge71

.critedge71:                                      ; preds = %83
  %.pr = load i32, ptr %82, align 8, !tbaa !50
  %.not64 = icmp eq i32 %.pr, 0
  br i1 %.not64, label %.sink.split, label %94

.sink.split:                                      ; preds = %.critedge71, %75, %83, %70, %68, %.critedge
  %.str.40.sink = phi ptr [ @.str.37, %.critedge ], [ @.str.38, %68 ], [ @.str.39, %70 ], [ @.str.40, %83 ], [ @.str.41, %75 ], [ @.str.41, %.critedge71 ]
  %.sink81 = phi ptr [ getelementptr inbounds (i8, ptr @.str.37, i64 21), %.critedge ], [ getelementptr inbounds (i8, ptr @.str.38, i64 21), %68 ], [ getelementptr inbounds (i8, ptr @.str.39, i64 21), %70 ], [ getelementptr inbounds (i8, ptr @.str.40, i64 21), %83 ], [ getelementptr inbounds (i8, ptr @.str.41, i64 21), %75 ], [ getelementptr inbounds (i8, ptr @.str.41, i64 21), %.critedge71 ]
  %.sink = phi i32 [ 402653194, %.critedge ], [ 402653194, %68 ], [ 402653193, %70 ], [ 402653193, %83 ], [ 402653194, %75 ], [ 402653194, %.critedge71 ]
  %87 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr %.str.40.sink, ptr %87, align 8, !tbaa !5
  %88 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) %.sink81, i32 noundef 47) #6
  %.not63 = icmp eq ptr %88, null
  %89 = getelementptr inbounds i8, ptr %88, i64 1
  %90 = select i1 %.not63, ptr %.sink81, ptr %89
  %91 = getelementptr inbounds i8, ptr %87, i64 8
  store ptr %90, ptr %91, align 8, !tbaa !10
  %92 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 %.sink, ptr %92, align 4, !tbaa !11
  %93 = tail call i32 @s2n_calculate_stacktrace() #7
  br label %94

94:                                               ; preds = %.sink.split, %.critedge71
  %.sroa.0.3 = phi i32 [ 0, %.critedge71 ], [ -1, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #7
  br label %95

95:                                               ; preds = %.critedge67, %94, %36, %26, %15, %6
  %.sroa.0.5 = phi i32 [ -1, %36 ], [ -1, %26 ], [ -1, %15 ], [ -1, %6 ], [ %.sroa.0.3, %94 ], [ -1, %.critedge67 ]
  ret i32 %.sroa.0.5
}

declare zeroext i1 @s2n_handshake_is_complete(ptr noundef) local_unnamed_addr #5

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

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

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

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


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