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

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

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

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.30 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [96 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: 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) #2

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

declare i32 @s2n_calculate_stacktrace() #4

declare i32 @s2n_ecc_evp_compute_shared_secret_from_params(ptr noundef, ptr noundef, ptr noundef) #4

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

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

19:                                               ; preds = %16
  br label %20

20:                                               ; preds = %19
  br label %21

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

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

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

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

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

49:                                               ; No predecessors!
  br label %50

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

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %86, 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.31, ptr %59, align 8, !tbaa !9
  %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 !9
  %63 = getelementptr inbounds i8, ptr %62, i64 21
  %64 = call ptr @strrchr(ptr noundef %63, i32 noundef 47) #6
  %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 !9
  %70 = getelementptr inbounds i8, ptr %69, i64 21
  %71 = call ptr @strrchr(ptr noundef %70, i32 noundef 47) #6
  %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 !9
  %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 !11
  %82 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %82, align 4, !tbaa !12
  %83 = call i32 @s2n_calculate_stacktrace()
  br label %84

84:                                               ; preds = %78
  store i32 -1, ptr %3, align 4
  br label %647

85:                                               ; No predecessors!
  br label %86

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

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.s2n_connection, ptr %89, i32 0, i32 31
  %91 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %90, i32 0, i32 1
  %92 = getelementptr inbounds %struct.s2n_ecc_evp_params, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !14
  %94 = icmp eq ptr null, %93
  br i1 %94, label %126, label %95

95:                                               ; preds = %88
  br label %96

96:                                               ; preds = %95
  br label %97

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

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

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

118:                                              ; preds = %113, %106
  %119 = phi ptr [ %112, %106 ], [ %117, %113 ]
  %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 1
  store ptr %119, ptr %121, align 8, !tbaa !11
  %122 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %122, align 4, !tbaa !12
  %123 = call i32 @s2n_calculate_stacktrace()
  br label %124

124:                                              ; preds = %118
  store i32 -1, ptr %3, align 4
  br label %647

125:                                              ; No predecessors!
  br label %126

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

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.s2n_connection, ptr %129, i32 0, i32 31
  %131 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %130, i32 0, i32 1
  %132 = getelementptr inbounds %struct.s2n_ecc_evp_params, ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !42
  %134 = icmp eq ptr null, %133
  br i1 %134, label %166, 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.33, ptr %139, align 8, !tbaa !9
  %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 !9
  %143 = getelementptr inbounds i8, ptr %142, i64 21
  %144 = call ptr @strrchr(ptr noundef %143, i32 noundef 47) #6
  %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 !9
  %150 = getelementptr inbounds i8, ptr %149, i64 21
  %151 = call ptr @strrchr(ptr noundef %150, i32 noundef 47) #6
  %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 !9
  %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 !11
  %162 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %162, align 4, !tbaa !12
  %163 = call i32 @s2n_calculate_stacktrace()
  br label %164

164:                                              ; preds = %158
  store i32 -1, ptr %3, align 4
  br label %647

165:                                              ; No predecessors!
  br label %166

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

167:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.s2n_connection, ptr %168, i32 0, i32 31
  %170 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %169, i32 0, i32 4
  store ptr %170, ptr %6, align 8, !tbaa !5
  br label %171

171:                                              ; preds = %167
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = icmp ne ptr %172, null
  br i1 %173, label %207, label %174

174:                                              ; preds = %171
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175
  %177 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %178 = getelementptr inbounds %struct.s2n_debug_info, ptr %177, i32 0, i32 0
  store ptr @.str.34, ptr %178, align 8, !tbaa !9
  %179 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %180 = getelementptr inbounds %struct.s2n_debug_info, ptr %179, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !9
  %182 = getelementptr inbounds i8, ptr %181, i64 21
  %183 = call ptr @strrchr(ptr noundef %182, i32 noundef 47) #6
  %184 = icmp ne ptr %183, null
  br i1 %184, label %185, label %192

185:                                              ; preds = %176
  %186 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %187 = getelementptr inbounds %struct.s2n_debug_info, ptr %186, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8, !tbaa !9
  %189 = getelementptr inbounds i8, ptr %188, i64 21
  %190 = call ptr @strrchr(ptr noundef %189, i32 noundef 47) #6
  %191 = getelementptr inbounds i8, ptr %190, i64 1
  br label %197

192:                                              ; preds = %176
  %193 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %194 = getelementptr inbounds %struct.s2n_debug_info, ptr %193, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8, !tbaa !9
  %196 = getelementptr inbounds i8, ptr %195, i64 21
  br label %197

197:                                              ; preds = %192, %185
  %198 = phi ptr [ %191, %185 ], [ %196, %192 ]
  %199 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %200 = getelementptr inbounds %struct.s2n_debug_info, ptr %199, i32 0, i32 1
  store ptr %198, ptr %200, align 8, !tbaa !11
  %201 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %201, align 4, !tbaa !12
  %202 = call i32 @s2n_calculate_stacktrace()
  br label %203

203:                                              ; preds = %197
  br label %204

204:                                              ; preds = %203
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %646

205:                                              ; No predecessors!
  br label %206

206:                                              ; preds = %205
  br label %207

207:                                              ; preds = %206, %171
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %210, i32 0, i32 2
  store ptr %211, ptr %8, align 8, !tbaa !5
  br label %212

212:                                              ; preds = %209
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = icmp ne ptr %213, null
  br i1 %214, label %248, label %215

215:                                              ; preds = %212
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  %218 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %219 = getelementptr inbounds %struct.s2n_debug_info, ptr %218, i32 0, i32 0
  store ptr @.str.35, ptr %219, align 8, !tbaa !9
  %220 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %221 = getelementptr inbounds %struct.s2n_debug_info, ptr %220, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8, !tbaa !9
  %223 = getelementptr inbounds i8, ptr %222, i64 21
  %224 = call ptr @strrchr(ptr noundef %223, i32 noundef 47) #6
  %225 = icmp ne ptr %224, null
  br i1 %225, label %226, label %233

226:                                              ; preds = %217
  %227 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %228 = getelementptr inbounds %struct.s2n_debug_info, ptr %227, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !9
  %230 = getelementptr inbounds i8, ptr %229, i64 21
  %231 = call ptr @strrchr(ptr noundef %230, i32 noundef 47) #6
  %232 = getelementptr inbounds i8, ptr %231, i64 1
  br label %238

233:                                              ; preds = %217
  %234 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %235 = getelementptr inbounds %struct.s2n_debug_info, ptr %234, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8, !tbaa !9
  %237 = getelementptr inbounds i8, ptr %236, i64 21
  br label %238

238:                                              ; preds = %233, %226
  %239 = phi ptr [ %232, %226 ], [ %237, %233 ]
  %240 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %241 = getelementptr inbounds %struct.s2n_debug_info, ptr %240, i32 0, i32 1
  store ptr %239, ptr %241, align 8, !tbaa !11
  %242 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %242, align 4, !tbaa !12
  %243 = call i32 @s2n_calculate_stacktrace()
  br label %244

244:                                              ; preds = %238
  br label %245

245:                                              ; preds = %244
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %645

246:                                              ; No predecessors!
  br label %247

247:                                              ; preds = %246
  br label %248

248:                                              ; preds = %247, %212
  br label %249

249:                                              ; preds = %248
  br label %250

250:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.s2n_connection, ptr %251, i32 0, i32 31
  %253 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %252, i32 0, i32 5
  store ptr %253, ptr %9, align 8, !tbaa !5
  br label %254

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

257:                                              ; preds = %254
  br label %258

258:                                              ; preds = %257
  br label %259

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

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

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

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

286:                                              ; preds = %280
  br label %287

287:                                              ; preds = %286
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %644

288:                                              ; No predecessors!
  br label %289

289:                                              ; preds = %288
  br label %290

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

291:                                              ; preds = %290
  br label %292

292:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %293 = load ptr, ptr %9, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %293, i32 0, i32 2
  store ptr %294, ptr %10, align 8, !tbaa !5
  br label %295

295:                                              ; preds = %292
  %296 = load ptr, ptr %10, align 8, !tbaa !5
  %297 = icmp ne ptr %296, null
  br i1 %297, label %331, label %298

298:                                              ; preds = %295
  br label %299

299:                                              ; preds = %298
  br label %300

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

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

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

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

327:                                              ; preds = %321
  br label %328

328:                                              ; preds = %327
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %643

329:                                              ; No predecessors!
  br label %330

330:                                              ; preds = %329
  br label %331

331:                                              ; preds = %330, %295
  br label %332

332:                                              ; preds = %331
  br label %333

333:                                              ; preds = %332
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 24, i1 false)
  %334 = load ptr, ptr %4, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.s2n_connection, ptr %334, i32 0, i32 13
  %336 = load i32, ptr %335, align 4, !tbaa !43
  %337 = icmp eq i32 %336, 1
  br i1 %337, label %338, label %348

338:                                              ; preds = %333
  br label %339

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

344:                                              ; preds = %339
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %641

345:                                              ; preds = %339
  br label %346

346:                                              ; preds = %345
  br label %347

347:                                              ; preds = %346
  br label %358

348:                                              ; preds = %333
  br label %349

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

354:                                              ; preds = %349
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %641

355:                                              ; preds = %349
  br label %356

356:                                              ; preds = %355
  br label %357

357:                                              ; preds = %356
  br label %358

358:                                              ; preds = %357, %347
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %359 = load ptr, ptr %9, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %359, i32 0, i32 1
  %361 = getelementptr inbounds %struct.s2n_kem_params, ptr %360, i32 0, i32 3
  store ptr %361, ptr %12, align 8, !tbaa !5
  br label %362

362:                                              ; preds = %358
  %363 = load ptr, ptr %12, align 8, !tbaa !5
  %364 = icmp ne ptr %363, null
  br i1 %364, label %398, label %365

365:                                              ; preds = %362
  br label %366

366:                                              ; preds = %365
  br label %367

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

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

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

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

394:                                              ; preds = %388
  br label %395

395:                                              ; preds = %394
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %640

396:                                              ; No predecessors!
  br label %397

397:                                              ; preds = %396
  br label %398

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

399:                                              ; preds = %398
  br label %400

400:                                              ; preds = %399
  br label %401

401:                                              ; preds = %400
  %402 = load ptr, ptr %12, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.s2n_blob, ptr %402, i32 0, i32 0
  %404 = load ptr, ptr %403, align 8, !tbaa !44
  %405 = icmp ne ptr %404, null
  br i1 %405, label %439, label %406

406:                                              ; preds = %401
  br label %407

407:                                              ; preds = %406
  br label %408

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

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

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

429:                                              ; preds = %424, %417
  %430 = phi ptr [ %423, %417 ], [ %428, %424 ]
  %431 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %432 = getelementptr inbounds %struct.s2n_debug_info, ptr %431, i32 0, i32 1
  store ptr %430, ptr %432, align 8, !tbaa !11
  %433 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %433, align 4, !tbaa !12
  %434 = call i32 @s2n_calculate_stacktrace()
  br label %435

435:                                              ; preds = %429
  br label %436

436:                                              ; preds = %435
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %640

437:                                              ; No predecessors!
  br label %438

438:                                              ; preds = %437
  br label %439

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

440:                                              ; preds = %439
  br label %441

441:                                              ; preds = %440
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %442 = load ptr, ptr %4, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.s2n_connection, ptr %442, i32 0, i32 31
  %444 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %443, i32 0, i32 4
  %445 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %444, i32 0, i32 0
  %446 = load ptr, ptr %445, align 8, !tbaa !45
  store ptr %446, ptr %13, align 8, !tbaa !5
  br label %447

447:                                              ; preds = %441
  %448 = load ptr, ptr %13, align 8, !tbaa !5
  %449 = icmp ne ptr %448, null
  br i1 %449, label %483, label %450

450:                                              ; preds = %447
  br label %451

451:                                              ; preds = %450
  br label %452

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

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

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

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

479:                                              ; preds = %473
  br label %480

480:                                              ; preds = %479
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %639

481:                                              ; No predecessors!
  br label %482

482:                                              ; preds = %481
  br label %483

483:                                              ; preds = %482, %447
  br label %484

484:                                              ; preds = %483
  br label %485

485:                                              ; preds = %484
  br label %486

486:                                              ; preds = %485
  %487 = load ptr, ptr %13, align 8, !tbaa !5
  %488 = getelementptr inbounds %struct.s2n_kem_group, ptr %487, i32 0, i32 3
  %489 = load ptr, ptr %488, align 8, !tbaa !46
  %490 = icmp ne ptr %489, null
  br i1 %490, label %524, label %491

491:                                              ; preds = %486
  br label %492

492:                                              ; preds = %491
  br label %493

493:                                              ; preds = %492
  %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
  store ptr @.str.41, ptr %495, align 8, !tbaa !9
  %496 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %497 = getelementptr inbounds %struct.s2n_debug_info, ptr %496, i32 0, i32 0
  %498 = load ptr, ptr %497, align 8, !tbaa !9
  %499 = getelementptr inbounds i8, ptr %498, i64 21
  %500 = call ptr @strrchr(ptr noundef %499, i32 noundef 47) #6
  %501 = icmp ne ptr %500, null
  br i1 %501, label %502, label %509

502:                                              ; preds = %493
  %503 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %504 = getelementptr inbounds %struct.s2n_debug_info, ptr %503, i32 0, i32 0
  %505 = load ptr, ptr %504, align 8, !tbaa !9
  %506 = getelementptr inbounds i8, ptr %505, i64 21
  %507 = call ptr @strrchr(ptr noundef %506, i32 noundef 47) #6
  %508 = getelementptr inbounds i8, ptr %507, i64 1
  br label %514

509:                                              ; preds = %493
  %510 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %511 = getelementptr inbounds %struct.s2n_debug_info, ptr %510, i32 0, i32 0
  %512 = load ptr, ptr %511, align 8, !tbaa !9
  %513 = getelementptr inbounds i8, ptr %512, i64 21
  br label %514

514:                                              ; preds = %509, %502
  %515 = phi ptr [ %508, %502 ], [ %513, %509 ]
  %516 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %517 = getelementptr inbounds %struct.s2n_debug_info, ptr %516, i32 0, i32 1
  store ptr %515, ptr %517, align 8, !tbaa !11
  %518 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %518, align 4, !tbaa !12
  %519 = call i32 @s2n_calculate_stacktrace()
  br label %520

520:                                              ; preds = %514
  br label %521

521:                                              ; preds = %520
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %639

522:                                              ; No predecessors!
  br label %523

523:                                              ; preds = %522
  br label %524

524:                                              ; preds = %523, %486
  br label %525

525:                                              ; preds = %524
  br label %526

526:                                              ; preds = %525
  br label %527

527:                                              ; preds = %526
  %528 = load ptr, ptr %12, align 8, !tbaa !5
  %529 = getelementptr inbounds %struct.s2n_blob, ptr %528, i32 0, i32 1
  %530 = load i32, ptr %529, align 8, !tbaa !48
  %531 = load ptr, ptr %13, align 8, !tbaa !5
  %532 = getelementptr inbounds %struct.s2n_kem_group, ptr %531, i32 0, i32 3
  %533 = load ptr, ptr %532, align 8, !tbaa !46
  %534 = getelementptr inbounds %struct.s2n_kem, ptr %533, i32 0, i32 5
  %535 = load i16, ptr %534, align 2, !tbaa !49
  %536 = zext i16 %535 to i32
  %537 = icmp eq i32 %530, %536
  br i1 %537, label %571, label %538

538:                                              ; preds = %527
  br label %539

539:                                              ; preds = %538
  br label %540

540:                                              ; preds = %539
  %541 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %542 = getelementptr inbounds %struct.s2n_debug_info, ptr %541, i32 0, i32 0
  store ptr @.str.42, ptr %542, align 8, !tbaa !9
  %543 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %544 = getelementptr inbounds %struct.s2n_debug_info, ptr %543, i32 0, i32 0
  %545 = load ptr, ptr %544, align 8, !tbaa !9
  %546 = getelementptr inbounds i8, ptr %545, i64 21
  %547 = call ptr @strrchr(ptr noundef %546, i32 noundef 47) #6
  %548 = icmp ne ptr %547, null
  br i1 %548, label %549, label %556

549:                                              ; preds = %540
  %550 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %551 = getelementptr inbounds %struct.s2n_debug_info, ptr %550, i32 0, i32 0
  %552 = load ptr, ptr %551, align 8, !tbaa !9
  %553 = getelementptr inbounds i8, ptr %552, i64 21
  %554 = call ptr @strrchr(ptr noundef %553, i32 noundef 47) #6
  %555 = getelementptr inbounds i8, ptr %554, i64 1
  br label %561

556:                                              ; preds = %540
  %557 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %558 = getelementptr inbounds %struct.s2n_debug_info, ptr %557, i32 0, i32 0
  %559 = load ptr, ptr %558, align 8, !tbaa !9
  %560 = getelementptr inbounds i8, ptr %559, i64 21
  br label %561

561:                                              ; preds = %556, %549
  %562 = phi ptr [ %555, %549 ], [ %560, %556 ]
  %563 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %564 = getelementptr inbounds %struct.s2n_debug_info, ptr %563, i32 0, i32 1
  store ptr %562, ptr %564, align 8, !tbaa !11
  %565 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %565, align 4, !tbaa !12
  %566 = call i32 @s2n_calculate_stacktrace()
  br label %567

567:                                              ; preds = %561
  br label %568

568:                                              ; preds = %567
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %639

569:                                              ; No predecessors!
  br label %570

570:                                              ; preds = %569
  br label %571

571:                                              ; preds = %570, %527
  br label %572

572:                                              ; preds = %571
  br label %573

573:                                              ; preds = %572
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %574 = getelementptr inbounds %struct.s2n_blob, ptr %11, i32 0, i32 1
  %575 = load i32, ptr %574, align 8, !tbaa !48
  %576 = load ptr, ptr %13, align 8, !tbaa !5
  %577 = getelementptr inbounds %struct.s2n_kem_group, ptr %576, i32 0, i32 3
  %578 = load ptr, ptr %577, align 8, !tbaa !46
  %579 = getelementptr inbounds %struct.s2n_kem, ptr %578, i32 0, i32 5
  %580 = load i16, ptr %579, align 2, !tbaa !49
  %581 = zext i16 %580 to i32
  %582 = add i32 %575, %581
  store i32 %582, ptr %14, align 4, !tbaa !12
  br label %583

583:                                              ; preds = %573
  %584 = load ptr, ptr %5, align 8, !tbaa !5
  %585 = load i32, ptr %14, align 4, !tbaa !12
  %586 = call i32 @s2n_alloc(ptr noundef %584, i32 noundef %585)
  %587 = icmp sgt i32 %586, -1
  br i1 %587, label %589, label %588

588:                                              ; preds = %583
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %638

589:                                              ; preds = %583
  br label %590

590:                                              ; preds = %589
  br label %591

591:                                              ; preds = %590
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #7
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 40, i1 false)
  br label %592

592:                                              ; preds = %591
  %593 = load ptr, ptr %5, align 8, !tbaa !5
  %594 = call i32 @s2n_stuffer_init(ptr noundef %15, ptr noundef %593)
  %595 = icmp sgt i32 %594, -1
  br i1 %595, label %597, label %596

596:                                              ; preds = %592
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %637

597:                                              ; preds = %592
  br label %598

598:                                              ; preds = %597
  br label %599

599:                                              ; preds = %598
  %600 = load ptr, ptr %13, align 8, !tbaa !5
  %601 = getelementptr inbounds %struct.s2n_kem_group, ptr %600, i32 0, i32 4
  %602 = load i8, ptr %601, align 8, !tbaa !51, !range !52, !noundef !53
  %603 = trunc i8 %602 to i1
  br i1 %603, label %604, label %620

604:                                              ; preds = %599
  br label %605

605:                                              ; preds = %604
  %606 = load ptr, ptr %12, align 8, !tbaa !5
  %607 = call i32 @s2n_stuffer_write(ptr noundef %15, ptr noundef %606)
  %608 = icmp sgt i32 %607, -1
  br i1 %608, label %610, label %609

609:                                              ; preds = %605
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %637

610:                                              ; preds = %605
  br label %611

611:                                              ; preds = %610
  br label %612

612:                                              ; preds = %611
  br label %613

613:                                              ; preds = %612
  %614 = call i32 @s2n_stuffer_write(ptr noundef %15, ptr noundef %11)
  %615 = icmp sgt i32 %614, -1
  br i1 %615, label %617, label %616

616:                                              ; preds = %613
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %637

617:                                              ; preds = %613
  br label %618

618:                                              ; preds = %617
  br label %619

619:                                              ; preds = %618
  br label %636

620:                                              ; preds = %599
  br label %621

621:                                              ; preds = %620
  %622 = call i32 @s2n_stuffer_write(ptr noundef %15, ptr noundef %11)
  %623 = icmp sgt i32 %622, -1
  br i1 %623, label %625, label %624

624:                                              ; preds = %621
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %637

625:                                              ; preds = %621
  br label %626

626:                                              ; preds = %625
  br label %627

627:                                              ; preds = %626
  br label %628

628:                                              ; preds = %627
  %629 = load ptr, ptr %12, align 8, !tbaa !5
  %630 = call i32 @s2n_stuffer_write(ptr noundef %15, ptr noundef %629)
  %631 = icmp sgt i32 %630, -1
  br i1 %631, label %633, label %632

632:                                              ; preds = %628
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %637

633:                                              ; preds = %628
  br label %634

634:                                              ; preds = %633
  br label %635

635:                                              ; preds = %634
  br label %636

636:                                              ; preds = %635, %619
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %637

637:                                              ; preds = %636, %632, %624, %616, %609, %596
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #7
  br label %638

638:                                              ; preds = %637, %588
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %639

639:                                              ; preds = %638, %568, %521, %480
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %640

640:                                              ; preds = %639, %436, %395
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %641

641:                                              ; preds = %640, %354, %344
  %642 = call i32 @s2n_free_or_wipe(ptr noundef %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  br label %643

643:                                              ; preds = %641, %328
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %644

644:                                              ; preds = %643, %287
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %645

645:                                              ; preds = %644, %245
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %646

646:                                              ; preds = %645, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %647

647:                                              ; preds = %646, %164, %124, %84, %48
  %648 = load i32, ptr %3, align 4
  ret i32 %648
}

declare i32 @s2n_free_or_wipe(ptr noundef) #4

declare i32 @s2n_alloc(ptr noundef, i32 noundef) #4

declare i32 @s2n_stuffer_init(ptr noundef, ptr noundef) #4

declare i32 @s2n_stuffer_write(ptr noundef, ptr noundef) #4

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

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

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


; 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_stuffer = type { %struct.s2n_blob, i32, i32, i32, i8 }

@_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.30 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [96 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: 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) #2

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #4

declare i32 @s2n_ecc_evp_compute_shared_secret_from_params(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

13:                                               ; preds = %2
  %.not51 = icmp eq ptr %1, null
  br i1 %.not51, label %14, label %22

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

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

26:                                               ; preds = %22
  %27 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.32, ptr %27, align 8, !tbaa !5
  %28 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.32, i64 21), i32 noundef 47) #6
  %.not53 = icmp eq ptr %28, null
  %29 = getelementptr inbounds i8, ptr %28, i64 1
  %30 = select i1 %.not53, ptr getelementptr inbounds (i8, ptr @.str.32, 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 402653194, ptr %32, align 4, !tbaa !11
  %33 = tail call i32 @s2n_calculate_stacktrace() #7
  br label %135

34:                                               ; preds = %22
  %35 = getelementptr inbounds i8, ptr %0, i64 664
  %36 = load ptr, ptr %35, align 8, !tbaa !41
  %37 = icmp eq ptr %36, null
  br i1 %37, label %46, label %38

38:                                               ; preds = %34
  %39 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.33, ptr %39, align 8, !tbaa !5
  %40 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.33, i64 21), i32 noundef 47) #6
  %.not54 = icmp eq ptr %40, null
  %41 = getelementptr inbounds i8, ptr %40, i64 1
  %42 = select i1 %.not54, ptr getelementptr inbounds (i8, ptr @.str.33, 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 402653194, ptr %44, align 4, !tbaa !11
  %45 = tail call i32 @s2n_calculate_stacktrace() #7
  br label %135

46:                                               ; preds = %34
  %47 = getelementptr inbounds i8, ptr %0, i64 720
  %48 = getelementptr inbounds i8, ptr %0, i64 816
  %49 = getelementptr inbounds i8, ptr %0, i64 928
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, i8 0, i64 24, i1 false)
  %50 = getelementptr inbounds i8, ptr %0, i64 148
  %51 = load i32, ptr %50, align 4, !tbaa !42
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %53, label %56

53:                                               ; preds = %46
  %54 = call i32 @s2n_ecc_evp_compute_shared_secret_from_params(ptr noundef nonnull %49, ptr noundef nonnull %48, ptr noundef nonnull %3) #7
  %55 = icmp sgt i32 %54, -1
  br i1 %55, label %59, label %133

56:                                               ; preds = %46
  %57 = call i32 @s2n_ecc_evp_compute_shared_secret_from_params(ptr noundef nonnull %48, ptr noundef nonnull %49, ptr noundef nonnull %3) #7
  %58 = icmp sgt i32 %57, -1
  br i1 %58, label %59, label %133

59:                                               ; preds = %56, %53
  %60 = getelementptr inbounds i8, ptr %0, i64 896
  %61 = load ptr, ptr %60, align 8, !tbaa !43
  %.not55 = icmp eq ptr %61, null
  br i1 %.not55, label %62, label %70

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

70:                                               ; preds = %59
  %71 = load ptr, ptr %47, align 8, !tbaa !44
  %.not57 = icmp eq ptr %71, null
  br i1 %.not57, label %72, label %80

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

80:                                               ; preds = %70
  %81 = getelementptr inbounds i8, ptr %71, i64 24
  %82 = load ptr, ptr %81, align 8, !tbaa !45
  %.not59 = icmp eq ptr %82, null
  br i1 %.not59, label %83, label %91

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

91:                                               ; preds = %80
  %92 = getelementptr inbounds i8, ptr %0, i64 904
  %93 = load i32, ptr %92, align 8, !tbaa !47
  %94 = getelementptr inbounds i8, ptr %82, i64 18
  %95 = load i16, ptr %94, align 2, !tbaa !48
  %96 = zext i16 %95 to i32
  %97 = icmp eq i32 %93, %96
  br i1 %97, label %106, label %98

98:                                               ; preds = %91
  %99 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.42, ptr %99, align 8, !tbaa !5
  %100 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.42, i64 21), i32 noundef 47) #6
  %.not61 = icmp eq ptr %100, null
  %101 = getelementptr inbounds i8, ptr %100, i64 1
  %102 = select i1 %.not61, ptr getelementptr inbounds (i8, ptr @.str.42, i64 21), ptr %101
  %103 = getelementptr inbounds i8, ptr %99, i64 8
  store ptr %102, ptr %103, align 8, !tbaa !10
  %104 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %104, align 4, !tbaa !11
  %105 = call i32 @s2n_calculate_stacktrace() #7
  br label %133

106:                                              ; preds = %91
  %107 = getelementptr inbounds i8, ptr %3, i64 8
  %108 = load i32, ptr %107, align 8, !tbaa !47
  %109 = add i32 %108, %93
  %110 = call i32 @s2n_alloc(ptr noundef nonnull %1, i32 noundef %109) #7
  %111 = icmp sgt i32 %110, -1
  br i1 %111, label %112, label %133

112:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %4, i8 0, i64 40, i1 false)
  %113 = call i32 @s2n_stuffer_init(ptr noundef nonnull %4, ptr noundef nonnull %1) #7
  %114 = icmp sgt i32 %113, -1
  br i1 %114, label %115, label %132

115:                                              ; preds = %112
  %116 = getelementptr inbounds i8, ptr %71, i64 32
  %117 = load i8, ptr %116, align 8, !tbaa !50, !range !51, !noundef !52
  %118 = trunc nuw i8 %117 to i1
  br i1 %118, label %119, label %125

119:                                              ; preds = %115
  %120 = call i32 @s2n_stuffer_write(ptr noundef nonnull %4, ptr noundef nonnull %60) #7
  %121 = icmp sgt i32 %120, -1
  br i1 %121, label %122, label %132

122:                                              ; preds = %119
  %123 = call i32 @s2n_stuffer_write(ptr noundef nonnull %4, ptr noundef nonnull %3) #7
  %124 = icmp sgt i32 %123, -1
  br i1 %124, label %131, label %132

125:                                              ; preds = %115
  %126 = call i32 @s2n_stuffer_write(ptr noundef nonnull %4, ptr noundef nonnull %3) #7
  %127 = icmp sgt i32 %126, -1
  br i1 %127, label %128, label %132

128:                                              ; preds = %125
  %129 = call i32 @s2n_stuffer_write(ptr noundef nonnull %4, ptr noundef nonnull %60) #7
  %130 = icmp sgt i32 %129, -1
  br i1 %130, label %131, label %132

131:                                              ; preds = %128, %122
  br label %132

132:                                              ; preds = %128, %125, %122, %119, %112, %131
  %.0 = phi i32 [ 0, %131 ], [ -1, %112 ], [ -1, %119 ], [ -1, %122 ], [ -1, %125 ], [ -1, %128 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  br label %133

133:                                              ; preds = %62, %132, %106, %98, %83, %72, %56, %53
  %.4 = phi i32 [ -1, %53 ], [ -1, %56 ], [ -1, %62 ], [ -1, %98 ], [ -1, %83 ], [ -1, %72 ], [ %.0, %132 ], [ -1, %106 ]
  %134 = call i32 @s2n_free_or_wipe(ptr noundef nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  br label %135

135:                                              ; preds = %133, %38, %26, %14, %5
  %.9 = phi i32 [ %.4, %133 ], [ -1, %38 ], [ -1, %26 ], [ -1, %14 ], [ -1, %5 ]
  ret i32 %.9
}

declare i32 @s2n_free_or_wipe(ptr noundef) local_unnamed_addr #4

declare i32 @s2n_alloc(ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @s2n_stuffer_init(ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @s2n_stuffer_write(ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

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


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