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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_server_key_share_send_check_pq_hybrid(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  br label %8

8:                                                ; preds = %1
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %42, label %11

11:                                               ; preds = %8
  br label %12

12:                                               ; preds = %11
  br label %13

13:                                               ; preds = %12
  %14 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %15 = getelementptr inbounds %struct.s2n_debug_info, ptr %14, i32 0, i32 0
  store ptr @.str, ptr %15, align 8, !tbaa !9
  %16 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %17 = getelementptr inbounds %struct.s2n_debug_info, ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %18, i64 21
  %20 = call ptr @strrchr(ptr noundef %19, i32 noundef 47) #5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %29

22:                                               ; preds = %13
  %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 !9
  %26 = getelementptr inbounds i8, ptr %25, i64 21
  %27 = call ptr @strrchr(ptr noundef %26, i32 noundef 47) #5
  %28 = getelementptr inbounds i8, ptr %27, i64 1
  br label %34

29:                                               ; preds = %13
  %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 !9
  %33 = getelementptr inbounds i8, ptr %32, i64 21
  br label %34

34:                                               ; preds = %29, %22
  %35 = phi ptr [ %28, %22 ], [ %33, %29 ]
  %36 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %37 = getelementptr inbounds %struct.s2n_debug_info, ptr %36, i32 0, i32 1
  store ptr %35, ptr %37, align 8, !tbaa !11
  %38 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %38, align 4, !tbaa !12
  %39 = call i32 @s2n_calculate_stacktrace()
  br label %40

40:                                               ; preds = %34
  store i32 -1, ptr %2, align 4
  br label %566

41:                                               ; No predecessors!
  br label %42

42:                                               ; preds = %41, %8
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = call zeroext i1 @s2n_pq_is_enabled()
  br i1 %45, label %77, label %46

46:                                               ; preds = %44
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  %49 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %50 = getelementptr inbounds %struct.s2n_debug_info, ptr %49, i32 0, i32 0
  store ptr @.str.1, ptr %50, align 8, !tbaa !9
  %51 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %52 = getelementptr inbounds %struct.s2n_debug_info, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = getelementptr inbounds i8, ptr %53, i64 21
  %55 = call ptr @strrchr(ptr noundef %54, i32 noundef 47) #5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %64

57:                                               ; preds = %48
  %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
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %60, i64 21
  %62 = call ptr @strrchr(ptr noundef %61, i32 noundef 47) #5
  %63 = getelementptr inbounds i8, ptr %62, i64 1
  br label %69

64:                                               ; preds = %48
  %65 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %66 = getelementptr inbounds %struct.s2n_debug_info, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %67, i64 21
  br label %69

69:                                               ; preds = %64, %57
  %70 = phi ptr [ %63, %57 ], [ %68, %64 ]
  %71 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %72 = getelementptr inbounds %struct.s2n_debug_info, ptr %71, i32 0, i32 1
  store ptr %70, ptr %72, align 8, !tbaa !11
  %73 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653231, ptr %73, align 4, !tbaa !12
  %74 = call i32 @s2n_calculate_stacktrace()
  br label %75

75:                                               ; preds = %69
  store i32 -1, ptr %2, align 4
  br label %566

76:                                               ; No predecessors!
  br label %77

77:                                               ; preds = %76, %44
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.s2n_connection, ptr %80, i32 0, i32 31
  %82 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %81, i32 0, i32 4
  %83 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !14
  %85 = icmp ne ptr %84, null
  br i1 %85, label %117, label %86

86:                                               ; preds = %79
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  %89 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %90 = getelementptr inbounds %struct.s2n_debug_info, ptr %89, i32 0, i32 0
  store ptr @.str.2, ptr %90, align 8, !tbaa !9
  %91 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %92 = getelementptr inbounds %struct.s2n_debug_info, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %93, i64 21
  %95 = call ptr @strrchr(ptr noundef %94, i32 noundef 47) #5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %104

97:                                               ; preds = %88
  %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
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = getelementptr inbounds i8, ptr %100, i64 21
  %102 = call ptr @strrchr(ptr noundef %101, i32 noundef 47) #5
  %103 = getelementptr inbounds i8, ptr %102, i64 1
  br label %109

104:                                              ; preds = %88
  %105 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %106 = getelementptr inbounds %struct.s2n_debug_info, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %107, i64 21
  br label %109

109:                                              ; preds = %104, %97
  %110 = phi ptr [ %103, %97 ], [ %108, %104 ]
  %111 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %112 = getelementptr inbounds %struct.s2n_debug_info, ptr %111, i32 0, i32 1
  store ptr %110, ptr %112, align 8, !tbaa !11
  %113 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %113, align 4, !tbaa !12
  %114 = call i32 @s2n_calculate_stacktrace()
  br label %115

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

116:                                              ; No predecessors!
  br label %117

117:                                              ; preds = %116, %79
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.s2n_connection, ptr %120, i32 0, i32 31
  %122 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %121, i32 0, i32 4
  %123 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %122, i32 0, i32 1
  %124 = getelementptr inbounds %struct.s2n_kem_params, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !42
  %126 = icmp ne ptr %125, null
  br i1 %126, label %158, label %127

127:                                              ; preds = %119
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128
  %130 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %131 = getelementptr inbounds %struct.s2n_debug_info, ptr %130, i32 0, i32 0
  store ptr @.str.3, ptr %131, align 8, !tbaa !9
  %132 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %133 = getelementptr inbounds %struct.s2n_debug_info, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !9
  %135 = getelementptr inbounds i8, ptr %134, i64 21
  %136 = call ptr @strrchr(ptr noundef %135, i32 noundef 47) #5
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %145

138:                                              ; preds = %129
  %139 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %140 = getelementptr inbounds %struct.s2n_debug_info, ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  %142 = getelementptr inbounds i8, ptr %141, i64 21
  %143 = call ptr @strrchr(ptr noundef %142, i32 noundef 47) #5
  %144 = getelementptr inbounds i8, ptr %143, i64 1
  br label %150

145:                                              ; preds = %129
  %146 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %147 = getelementptr inbounds %struct.s2n_debug_info, ptr %146, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8, !tbaa !9
  %149 = getelementptr inbounds i8, ptr %148, i64 21
  br label %150

150:                                              ; preds = %145, %138
  %151 = phi ptr [ %144, %138 ], [ %149, %145 ]
  %152 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %153 = getelementptr inbounds %struct.s2n_debug_info, ptr %152, i32 0, i32 1
  store ptr %151, ptr %153, align 8, !tbaa !11
  %154 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %154, align 4, !tbaa !12
  %155 = call i32 @s2n_calculate_stacktrace()
  br label %156

156:                                              ; preds = %150
  store i32 -1, ptr %2, align 4
  br label %566

157:                                              ; No predecessors!
  br label %158

158:                                              ; preds = %157, %119
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.s2n_connection, ptr %161, i32 0, i32 31
  %163 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %162, i32 0, i32 4
  %164 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %163, i32 0, i32 2
  %165 = getelementptr inbounds %struct.s2n_ecc_evp_params, ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !43
  %167 = icmp ne ptr %166, null
  br i1 %167, label %199, label %168

168:                                              ; preds = %160
  br label %169

169:                                              ; preds = %168
  br label %170

170:                                              ; preds = %169
  %171 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %172 = getelementptr inbounds %struct.s2n_debug_info, ptr %171, i32 0, i32 0
  store ptr @.str.4, ptr %172, align 8, !tbaa !9
  %173 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %174 = getelementptr inbounds %struct.s2n_debug_info, ptr %173, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !9
  %176 = getelementptr inbounds i8, ptr %175, i64 21
  %177 = call ptr @strrchr(ptr noundef %176, i32 noundef 47) #5
  %178 = icmp ne ptr %177, null
  br i1 %178, label %179, label %186

179:                                              ; preds = %170
  %180 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %181 = getelementptr inbounds %struct.s2n_debug_info, ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  %183 = getelementptr inbounds i8, ptr %182, i64 21
  %184 = call ptr @strrchr(ptr noundef %183, i32 noundef 47) #5
  %185 = getelementptr inbounds i8, ptr %184, i64 1
  br label %191

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

191:                                              ; preds = %186, %179
  %192 = phi ptr [ %185, %179 ], [ %190, %186 ]
  %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 1
  store ptr %192, ptr %194, align 8, !tbaa !11
  %195 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %195, align 4, !tbaa !12
  %196 = call i32 @s2n_calculate_stacktrace()
  br label %197

197:                                              ; preds = %191
  store i32 -1, ptr %2, align 4
  br label %566

198:                                              ; No predecessors!
  br label %199

199:                                              ; preds = %198, %160
  br label %200

200:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.s2n_connection, ptr %201, i32 0, i32 31
  %203 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %202, i32 0, i32 4
  %204 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !14
  store ptr %205, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store ptr null, ptr %5, align 8, !tbaa !5
  br label %206

206:                                              ; preds = %200
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = call i32 @s2n_connection_get_kem_preferences(ptr noundef %207, ptr noundef %5)
  %209 = icmp sgt i32 %208, -1
  br i1 %209, label %211, label %210

210:                                              ; preds = %206
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %565

211:                                              ; preds = %206
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212
  br label %214

214:                                              ; preds = %213
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = icmp ne ptr %215, null
  br i1 %216, label %250, label %217

217:                                              ; preds = %214
  br label %218

218:                                              ; preds = %217
  br label %219

219:                                              ; preds = %218
  %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
  store ptr @.str.5, ptr %221, align 8, !tbaa !9
  %222 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %223 = getelementptr inbounds %struct.s2n_debug_info, ptr %222, i32 0, i32 0
  %224 = load ptr, ptr %223, align 8, !tbaa !9
  %225 = getelementptr inbounds i8, ptr %224, i64 21
  %226 = call ptr @strrchr(ptr noundef %225, i32 noundef 47) #5
  %227 = icmp ne ptr %226, null
  br i1 %227, label %228, label %235

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

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

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

246:                                              ; preds = %240
  br label %247

247:                                              ; preds = %246
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %565

248:                                              ; No predecessors!
  br label %249

249:                                              ; preds = %248
  br label %250

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

251:                                              ; preds = %250
  br label %252

252:                                              ; preds = %251
  br label %253

253:                                              ; preds = %252
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.s2n_kem_group, ptr %255, i32 0, i32 1
  %257 = load i16, ptr %256, align 8, !tbaa !44
  %258 = call zeroext i1 @s2n_kem_preferences_includes_tls13_kem_group(ptr noundef %254, i16 noundef zeroext %257)
  br i1 %258, label %292, label %259

259:                                              ; preds = %253
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  %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
  store ptr @.str.6, ptr %263, align 8, !tbaa !9
  %264 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %265 = getelementptr inbounds %struct.s2n_debug_info, ptr %264, i32 0, i32 0
  %266 = load ptr, ptr %265, align 8, !tbaa !9
  %267 = getelementptr inbounds i8, ptr %266, i64 21
  %268 = call ptr @strrchr(ptr noundef %267, i32 noundef 47) #5
  %269 = icmp ne ptr %268, null
  br i1 %269, label %270, label %277

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

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

282:                                              ; preds = %277, %270
  %283 = phi ptr [ %276, %270 ], [ %281, %277 ]
  %284 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %285 = getelementptr inbounds %struct.s2n_debug_info, ptr %284, i32 0, i32 1
  store ptr %283, ptr %285, align 8, !tbaa !11
  %286 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544361, ptr %286, align 4, !tbaa !12
  %287 = call i32 @s2n_calculate_stacktrace()
  br label %288

288:                                              ; preds = %282
  br label %289

289:                                              ; preds = %288
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %565

290:                                              ; No predecessors!
  br label %291

291:                                              ; preds = %290
  br label %292

292:                                              ; preds = %291, %253
  br label %293

293:                                              ; preds = %292
  br label %294

294:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %295 = load ptr, ptr %3, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.s2n_connection, ptr %295, i32 0, i32 31
  %297 = getelementptr inbounds %struct.s2n_kex_parameters, ptr %296, i32 0, i32 5
  store ptr %297, ptr %7, align 8, !tbaa !5
  br label %298

298:                                              ; preds = %294
  %299 = load ptr, ptr %7, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %299, i32 0, i32 0
  %301 = load ptr, ptr %300, align 8, !tbaa !46
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = icmp eq ptr %301, %302
  br i1 %303, label %337, label %304

304:                                              ; preds = %298
  br label %305

305:                                              ; preds = %304
  br label %306

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

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

322:                                              ; preds = %306
  %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 0
  %325 = load ptr, ptr %324, align 8, !tbaa !9
  %326 = getelementptr inbounds i8, ptr %325, i64 21
  br label %327

327:                                              ; preds = %322, %315
  %328 = phi ptr [ %321, %315 ], [ %326, %322 ]
  %329 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %330 = getelementptr inbounds %struct.s2n_debug_info, ptr %329, i32 0, i32 1
  store ptr %328, ptr %330, align 8, !tbaa !11
  %331 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544385, ptr %331, align 4, !tbaa !12
  %332 = call i32 @s2n_calculate_stacktrace()
  br label %333

333:                                              ; preds = %327
  br label %334

334:                                              ; preds = %333
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %564

335:                                              ; No predecessors!
  br label %336

336:                                              ; preds = %335
  br label %337

337:                                              ; preds = %336, %298
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  br label %340

340:                                              ; preds = %339
  %341 = load ptr, ptr %7, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %341, i32 0, i32 2
  %343 = getelementptr inbounds %struct.s2n_ecc_evp_params, ptr %342, i32 0, i32 0
  %344 = load ptr, ptr %343, align 8, !tbaa !47
  %345 = load ptr, ptr %4, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.s2n_kem_group, ptr %345, i32 0, i32 2
  %347 = load ptr, ptr %346, align 8, !tbaa !48
  %348 = icmp eq ptr %344, %347
  br i1 %348, label %382, label %349

349:                                              ; preds = %340
  br label %350

350:                                              ; preds = %349
  br label %351

351:                                              ; preds = %350
  %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
  store ptr @.str.8, ptr %353, align 8, !tbaa !9
  %354 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %355 = getelementptr inbounds %struct.s2n_debug_info, ptr %354, i32 0, i32 0
  %356 = load ptr, ptr %355, align 8, !tbaa !9
  %357 = getelementptr inbounds i8, ptr %356, i64 21
  %358 = call ptr @strrchr(ptr noundef %357, i32 noundef 47) #5
  %359 = icmp ne ptr %358, null
  br i1 %359, label %360, label %367

360:                                              ; preds = %351
  %361 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %362 = getelementptr inbounds %struct.s2n_debug_info, ptr %361, i32 0, i32 0
  %363 = load ptr, ptr %362, align 8, !tbaa !9
  %364 = getelementptr inbounds i8, ptr %363, i64 21
  %365 = call ptr @strrchr(ptr noundef %364, i32 noundef 47) #5
  %366 = getelementptr inbounds i8, ptr %365, i64 1
  br label %372

367:                                              ; preds = %351
  %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
  %370 = load ptr, ptr %369, align 8, !tbaa !9
  %371 = getelementptr inbounds i8, ptr %370, i64 21
  br label %372

372:                                              ; preds = %367, %360
  %373 = phi ptr [ %366, %360 ], [ %371, %367 ]
  %374 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %375 = getelementptr inbounds %struct.s2n_debug_info, ptr %374, i32 0, i32 1
  store ptr %373, ptr %375, align 8, !tbaa !11
  %376 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544385, ptr %376, align 4, !tbaa !12
  %377 = call i32 @s2n_calculate_stacktrace()
  br label %378

378:                                              ; preds = %372
  br label %379

379:                                              ; preds = %378
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %564

380:                                              ; No predecessors!
  br label %381

381:                                              ; preds = %380
  br label %382

382:                                              ; preds = %381, %340
  br label %383

383:                                              ; preds = %382
  br label %384

384:                                              ; preds = %383
  br label %385

385:                                              ; preds = %384
  %386 = load ptr, ptr %7, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %386, i32 0, i32 2
  %388 = getelementptr inbounds %struct.s2n_ecc_evp_params, ptr %387, i32 0, i32 1
  %389 = load ptr, ptr %388, align 8, !tbaa !49
  %390 = icmp ne ptr %389, null
  br i1 %390, label %424, label %391

391:                                              ; preds = %385
  br label %392

392:                                              ; preds = %391
  br label %393

393:                                              ; preds = %392
  %394 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %395 = getelementptr inbounds %struct.s2n_debug_info, ptr %394, i32 0, i32 0
  store ptr @.str.9, ptr %395, align 8, !tbaa !9
  %396 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %397 = getelementptr inbounds %struct.s2n_debug_info, ptr %396, i32 0, i32 0
  %398 = load ptr, ptr %397, align 8, !tbaa !9
  %399 = getelementptr inbounds i8, ptr %398, i64 21
  %400 = call ptr @strrchr(ptr noundef %399, i32 noundef 47) #5
  %401 = icmp ne ptr %400, null
  br i1 %401, label %402, label %409

402:                                              ; preds = %393
  %403 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %404 = getelementptr inbounds %struct.s2n_debug_info, ptr %403, i32 0, i32 0
  %405 = load ptr, ptr %404, align 8, !tbaa !9
  %406 = getelementptr inbounds i8, ptr %405, i64 21
  %407 = call ptr @strrchr(ptr noundef %406, i32 noundef 47) #5
  %408 = getelementptr inbounds i8, ptr %407, i64 1
  br label %414

409:                                              ; preds = %393
  %410 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %411 = getelementptr inbounds %struct.s2n_debug_info, ptr %410, i32 0, i32 0
  %412 = load ptr, ptr %411, align 8, !tbaa !9
  %413 = getelementptr inbounds i8, ptr %412, i64 21
  br label %414

414:                                              ; preds = %409, %402
  %415 = phi ptr [ %408, %402 ], [ %413, %409 ]
  %416 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %417 = getelementptr inbounds %struct.s2n_debug_info, ptr %416, i32 0, i32 1
  store ptr %415, ptr %417, align 8, !tbaa !11
  %418 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544385, ptr %418, align 4, !tbaa !12
  %419 = call i32 @s2n_calculate_stacktrace()
  br label %420

420:                                              ; preds = %414
  br label %421

421:                                              ; preds = %420
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %564

422:                                              ; No predecessors!
  br label %423

423:                                              ; preds = %422
  br label %424

424:                                              ; preds = %423, %385
  br label %425

425:                                              ; preds = %424
  br label %426

426:                                              ; preds = %425
  br label %427

427:                                              ; preds = %426
  %428 = load ptr, ptr %7, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %428, i32 0, i32 1
  %430 = getelementptr inbounds %struct.s2n_kem_params, ptr %429, i32 0, i32 0
  %431 = load ptr, ptr %430, align 8, !tbaa !50
  %432 = load ptr, ptr %4, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.s2n_kem_group, ptr %432, i32 0, i32 3
  %434 = load ptr, ptr %433, align 8, !tbaa !51
  %435 = icmp eq ptr %431, %434
  br i1 %435, label %469, label %436

436:                                              ; preds = %427
  br label %437

437:                                              ; preds = %436
  br label %438

438:                                              ; preds = %437
  %439 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %440 = getelementptr inbounds %struct.s2n_debug_info, ptr %439, i32 0, i32 0
  store ptr @.str.10, ptr %440, align 8, !tbaa !9
  %441 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %442 = getelementptr inbounds %struct.s2n_debug_info, ptr %441, i32 0, i32 0
  %443 = load ptr, ptr %442, align 8, !tbaa !9
  %444 = getelementptr inbounds i8, ptr %443, i64 21
  %445 = call ptr @strrchr(ptr noundef %444, i32 noundef 47) #5
  %446 = icmp ne ptr %445, null
  br i1 %446, label %447, label %454

447:                                              ; preds = %438
  %448 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %449 = getelementptr inbounds %struct.s2n_debug_info, ptr %448, i32 0, i32 0
  %450 = load ptr, ptr %449, align 8, !tbaa !9
  %451 = getelementptr inbounds i8, ptr %450, i64 21
  %452 = call ptr @strrchr(ptr noundef %451, i32 noundef 47) #5
  %453 = getelementptr inbounds i8, ptr %452, i64 1
  br label %459

454:                                              ; preds = %438
  %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
  br label %459

459:                                              ; preds = %454, %447
  %460 = phi ptr [ %453, %447 ], [ %458, %454 ]
  %461 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %462 = getelementptr inbounds %struct.s2n_debug_info, ptr %461, i32 0, i32 1
  store ptr %460, ptr %462, align 8, !tbaa !11
  %463 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544385, ptr %463, align 4, !tbaa !12
  %464 = call i32 @s2n_calculate_stacktrace()
  br label %465

465:                                              ; preds = %459
  br label %466

466:                                              ; preds = %465
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %564

467:                                              ; No predecessors!
  br label %468

468:                                              ; preds = %467
  br label %469

469:                                              ; preds = %468, %427
  br label %470

470:                                              ; preds = %469
  br label %471

471:                                              ; preds = %470
  br label %472

472:                                              ; preds = %471
  %473 = load ptr, ptr %7, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %473, i32 0, i32 1
  %475 = getelementptr inbounds %struct.s2n_kem_params, ptr %474, i32 0, i32 1
  %476 = getelementptr inbounds %struct.s2n_blob, ptr %475, i32 0, i32 1
  %477 = load i32, ptr %476, align 8, !tbaa !52
  %478 = load ptr, ptr %4, align 8, !tbaa !5
  %479 = getelementptr inbounds %struct.s2n_kem_group, ptr %478, i32 0, i32 3
  %480 = load ptr, ptr %479, align 8, !tbaa !51
  %481 = getelementptr inbounds %struct.s2n_kem, ptr %480, i32 0, i32 3
  %482 = load i16, ptr %481, align 2, !tbaa !53
  %483 = zext i16 %482 to i32
  %484 = icmp eq i32 %477, %483
  br i1 %484, label %518, label %485

485:                                              ; preds = %472
  br label %486

486:                                              ; preds = %485
  br label %487

487:                                              ; preds = %486
  %488 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %489 = getelementptr inbounds %struct.s2n_debug_info, ptr %488, i32 0, i32 0
  store ptr @.str.11, ptr %489, align 8, !tbaa !9
  %490 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %491 = getelementptr inbounds %struct.s2n_debug_info, ptr %490, i32 0, i32 0
  %492 = load ptr, ptr %491, align 8, !tbaa !9
  %493 = getelementptr inbounds i8, ptr %492, i64 21
  %494 = call ptr @strrchr(ptr noundef %493, i32 noundef 47) #5
  %495 = icmp ne ptr %494, null
  br i1 %495, label %496, label %503

496:                                              ; preds = %487
  %497 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %498 = getelementptr inbounds %struct.s2n_debug_info, ptr %497, i32 0, i32 0
  %499 = load ptr, ptr %498, align 8, !tbaa !9
  %500 = getelementptr inbounds i8, ptr %499, i64 21
  %501 = call ptr @strrchr(ptr noundef %500, i32 noundef 47) #5
  %502 = getelementptr inbounds i8, ptr %501, i64 1
  br label %508

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

508:                                              ; preds = %503, %496
  %509 = phi ptr [ %502, %496 ], [ %507, %503 ]
  %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 1
  store ptr %509, ptr %511, align 8, !tbaa !11
  %512 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544385, ptr %512, align 4, !tbaa !12
  %513 = call i32 @s2n_calculate_stacktrace()
  br label %514

514:                                              ; preds = %508
  br label %515

515:                                              ; preds = %514
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %564

516:                                              ; No predecessors!
  br label %517

517:                                              ; preds = %516
  br label %518

518:                                              ; preds = %517, %472
  br label %519

519:                                              ; preds = %518
  br label %520

520:                                              ; preds = %519
  br label %521

521:                                              ; preds = %520
  %522 = load ptr, ptr %7, align 8, !tbaa !5
  %523 = getelementptr inbounds %struct.s2n_kem_group_params, ptr %522, i32 0, i32 1
  %524 = getelementptr inbounds %struct.s2n_kem_params, ptr %523, i32 0, i32 1
  %525 = getelementptr inbounds %struct.s2n_blob, ptr %524, i32 0, i32 0
  %526 = load ptr, ptr %525, align 8, !tbaa !55
  %527 = icmp ne ptr %526, null
  br i1 %527, label %561, label %528

528:                                              ; preds = %521
  br label %529

529:                                              ; preds = %528
  br label %530

530:                                              ; preds = %529
  %531 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %532 = getelementptr inbounds %struct.s2n_debug_info, ptr %531, i32 0, i32 0
  store ptr @.str.12, ptr %532, align 8, !tbaa !9
  %533 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %534 = getelementptr inbounds %struct.s2n_debug_info, ptr %533, i32 0, i32 0
  %535 = load ptr, ptr %534, align 8, !tbaa !9
  %536 = getelementptr inbounds i8, ptr %535, i64 21
  %537 = call ptr @strrchr(ptr noundef %536, i32 noundef 47) #5
  %538 = icmp ne ptr %537, null
  br i1 %538, label %539, label %546

539:                                              ; preds = %530
  %540 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %541 = getelementptr inbounds %struct.s2n_debug_info, ptr %540, i32 0, i32 0
  %542 = load ptr, ptr %541, align 8, !tbaa !9
  %543 = getelementptr inbounds i8, ptr %542, i64 21
  %544 = call ptr @strrchr(ptr noundef %543, i32 noundef 47) #5
  %545 = getelementptr inbounds i8, ptr %544, i64 1
  br label %551

546:                                              ; preds = %530
  %547 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %548 = getelementptr inbounds %struct.s2n_debug_info, ptr %547, i32 0, i32 0
  %549 = load ptr, ptr %548, align 8, !tbaa !9
  %550 = getelementptr inbounds i8, ptr %549, i64 21
  br label %551

551:                                              ; preds = %546, %539
  %552 = phi ptr [ %545, %539 ], [ %550, %546 ]
  %553 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %554 = getelementptr inbounds %struct.s2n_debug_info, ptr %553, i32 0, i32 1
  store ptr %552, ptr %554, align 8, !tbaa !11
  %555 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544385, ptr %555, align 4, !tbaa !12
  %556 = call i32 @s2n_calculate_stacktrace()
  br label %557

557:                                              ; preds = %551
  br label %558

558:                                              ; preds = %557
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %564

559:                                              ; No predecessors!
  br label %560

560:                                              ; preds = %559
  br label %561

561:                                              ; preds = %560, %521
  br label %562

562:                                              ; preds = %561
  br label %563

563:                                              ; preds = %562
  store i32 0, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %564

564:                                              ; preds = %563, %558, %515, %466, %421, %379, %334
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %565

565:                                              ; preds = %564, %289, %247, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %566

566:                                              ; preds = %565, %197, %156, %115, %75, %40
  %567 = load i32, ptr %2, align 4
  ret i32 %567
}

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

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

declare i32 @s2n_calculate_stacktrace() #3

declare zeroext i1 @s2n_pq_is_enabled() #3

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

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

declare zeroext i1 @s2n_kem_preferences_includes_tls13_kem_group(ptr noundef, i16 noundef zeroext) #3

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind willreturn memory(read) }
attributes #6 = { 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 720}
!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 728}
!43 = !{!15, !6, i64 816}
!44 = !{!45, !31, i64 8}
!45 = !{!"s2n_kem_group", !6, i64 0, !31, i64 8, !6, i64 16, !6, i64 24, !25, i64 32}
!46 = !{!22, !6, i64 0}
!47 = !{!22, !6, i64 96}
!48 = !{!45, !6, i64 16}
!49 = !{!22, !6, i64 104}
!50 = !{!22, !6, i64 8}
!51 = !{!45, !6, i64 24}
!52 = !{!22, !13, i64 24}
!53 = !{!54, !31, i64 14}
!54 = !{!"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}
!55 = !{!22, !6, i64 16}


; 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 }

@.str = external hidden unnamed_addr constant [107 x i8], align 1
@_s2n_debug_info = external thread_local local_unnamed_addr global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [108 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_server_key_share_send_check_pq_hybrid(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca ptr, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %11

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

11:                                               ; preds = %1
  %12 = tail call zeroext i1 @s2n_pq_is_enabled() #6
  br i1 %12, label %21, label %13

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

21:                                               ; preds = %11
  %22 = getelementptr inbounds i8, ptr %0, i64 720
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %.not37 = icmp eq ptr %23, null
  br i1 %.not37, label %24, label %32

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

32:                                               ; preds = %21
  %33 = getelementptr inbounds i8, ptr %0, i64 728
  %34 = load ptr, ptr %33, align 8, !tbaa !41
  %.not39 = icmp eq ptr %34, null
  br i1 %.not39, label %35, label %43

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

43:                                               ; preds = %32
  %44 = getelementptr inbounds i8, ptr %0, i64 816
  %45 = load ptr, ptr %44, align 8, !tbaa !42
  %.not41 = icmp eq ptr %45, null
  br i1 %.not41, label %46, label %54

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

54:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store ptr null, ptr %2, align 8, !tbaa !43
  %55 = call i32 @s2n_connection_get_kem_preferences(ptr noundef nonnull %0, ptr noundef nonnull %2) #6
  %56 = icmp sgt i32 %55, -1
  br i1 %56, label %57, label %99

57:                                               ; preds = %54
  %58 = load ptr, ptr %2, align 8, !tbaa !43
  %.not43 = icmp eq ptr %58, null
  br i1 %.not43, label %.sink.split, label %59

59:                                               ; preds = %57
  %60 = getelementptr inbounds i8, ptr %23, i64 8
  %61 = load i16, ptr %60, align 8, !tbaa !44
  %62 = call zeroext i1 @s2n_kem_preferences_includes_tls13_kem_group(ptr noundef nonnull %58, i16 noundef zeroext %61) #6
  br i1 %62, label %63, label %.sink.split

63:                                               ; preds = %59
  %64 = getelementptr inbounds i8, ptr %0, i64 832
  %65 = load ptr, ptr %64, align 8, !tbaa !46
  %66 = icmp eq ptr %65, %23
  br i1 %66, label %67, label %.sink.split

67:                                               ; preds = %63
  %68 = getelementptr inbounds i8, ptr %0, i64 928
  %69 = load ptr, ptr %68, align 8, !tbaa !47
  %70 = getelementptr inbounds i8, ptr %23, i64 16
  %71 = load ptr, ptr %70, align 8, !tbaa !48
  %72 = icmp eq ptr %69, %71
  br i1 %72, label %73, label %.sink.split

73:                                               ; preds = %67
  %74 = getelementptr inbounds i8, ptr %0, i64 936
  %75 = load ptr, ptr %74, align 8, !tbaa !49
  %.not48 = icmp eq ptr %75, null
  br i1 %.not48, label %.sink.split, label %76

76:                                               ; preds = %73
  %77 = getelementptr inbounds i8, ptr %0, i64 840
  %78 = load ptr, ptr %77, align 8, !tbaa !50
  %79 = getelementptr inbounds i8, ptr %23, i64 24
  %80 = load ptr, ptr %79, align 8, !tbaa !51
  %81 = icmp eq ptr %78, %80
  br i1 %81, label %82, label %.sink.split

82:                                               ; preds = %76
  %83 = getelementptr inbounds i8, ptr %0, i64 856
  %84 = load i32, ptr %83, align 8, !tbaa !52
  %85 = getelementptr inbounds i8, ptr %80, i64 14
  %86 = load i16, ptr %85, align 2, !tbaa !53
  %87 = zext i16 %86 to i32
  %88 = icmp eq i32 %84, %87
  br i1 %88, label %89, label %.sink.split

89:                                               ; preds = %82
  %90 = getelementptr inbounds i8, ptr %0, i64 848
  %91 = load ptr, ptr %90, align 8, !tbaa !55
  %.not52 = icmp eq ptr %91, null
  br i1 %.not52, label %.sink.split, label %99

.sink.split:                                      ; preds = %89, %82, %76, %73, %67, %63, %59, %57
  %.str.7.sink = phi ptr [ @.str.5, %57 ], [ @.str.6, %59 ], [ @.str.7, %63 ], [ @.str.8, %67 ], [ @.str.9, %73 ], [ @.str.10, %76 ], [ @.str.11, %82 ], [ @.str.12, %89 ]
  %.sink62 = phi ptr [ getelementptr inbounds (i8, ptr @.str.5, i64 21), %57 ], [ getelementptr inbounds (i8, ptr @.str.6, i64 21), %59 ], [ getelementptr inbounds (i8, ptr @.str.7, i64 21), %63 ], [ getelementptr inbounds (i8, ptr @.str.8, i64 21), %67 ], [ getelementptr inbounds (i8, ptr @.str.9, i64 21), %73 ], [ getelementptr inbounds (i8, ptr @.str.10, i64 21), %76 ], [ getelementptr inbounds (i8, ptr @.str.11, i64 21), %82 ], [ getelementptr inbounds (i8, ptr @.str.12, i64 21), %89 ]
  %.sink = phi i32 [ 402653193, %57 ], [ 335544361, %59 ], [ 335544385, %63 ], [ 335544385, %67 ], [ 335544385, %73 ], [ 335544385, %76 ], [ 335544385, %82 ], [ 335544385, %89 ]
  %92 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr %.str.7.sink, ptr %92, align 8, !tbaa !5
  %93 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) %.sink62, i32 noundef 47) #5
  %.not46 = icmp eq ptr %93, null
  %94 = getelementptr inbounds i8, ptr %93, i64 1
  %95 = select i1 %.not46, ptr %.sink62, ptr %94
  %96 = getelementptr inbounds i8, ptr %92, i64 8
  store ptr %95, ptr %96, align 8, !tbaa !10
  %97 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 %.sink, ptr %97, align 4, !tbaa !11
  %98 = call i32 @s2n_calculate_stacktrace() #6
  br label %99

99:                                               ; preds = %.sink.split, %89, %54
  %.1 = phi i32 [ -1, %54 ], [ 0, %89 ], [ -1, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %100

100:                                              ; preds = %99, %46, %35, %24, %13, %3
  %.2 = phi i32 [ %.1, %99 ], [ -1, %46 ], [ -1, %35 ], [ -1, %24 ], [ -1, %13 ], [ -1, %3 ]
  ret i32 %.2
}

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

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #3

declare zeroext i1 @s2n_pq_is_enabled() local_unnamed_addr #3

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

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

declare zeroext i1 @s2n_kem_preferences_includes_tls13_kem_group(ptr noundef, i16 noundef zeroext) local_unnamed_addr #3

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind willreturn memory(read) }
attributes #6 = { 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 720}
!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 728}
!42 = !{!14, !7, i64 816}
!43 = !{!7, !7, i64 0}
!44 = !{!45, !30, i64 8}
!45 = !{!"s2n_kem_group", !7, i64 0, !30, i64 8, !7, i64 16, !7, i64 24, !24, i64 32}
!46 = !{!21, !7, i64 0}
!47 = !{!21, !7, i64 96}
!48 = !{!45, !7, i64 16}
!49 = !{!21, !7, i64 104}
!50 = !{!21, !7, i64 8}
!51 = !{!45, !7, i64 24}
!52 = !{!21, !12, i64 24}
!53 = !{!54, !30, i64 14}
!54 = !{!"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}
!55 = !{!21, !7, i64 16}


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