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

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

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_result = type { i32 }
%struct.s2n_blob = type { ptr, 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_stuffer = type { %struct.s2n_blob, i32, i32, i32, i8 }
%struct.s2n_post_handshake = type { %struct.s2n_stuffer, [4 x i8] }
%struct.s2n_atomic_flag = type { i32 }
%struct.s2n_tls12_secrets = type { [48 x i8], [48 x i8] }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.10 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [100 x i8], align 1

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

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

declare i32 @s2n_calculate_stacktrace() #2

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

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

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

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

declare i32 @s2n_get_private_random_data(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_rsa_client_key_send(ptr noundef %0, ptr noundef %1) #6 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [2 x i8], align 1
  %7 = alloca i8, align 1
  %8 = alloca %struct.s2n_result, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.s2n_result, align 4
  %14 = alloca %struct.s2n_blob, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.s2n_connection, ptr %15, i32 0, i32 20
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %18 = zext i8 %17 to i32
  %19 = icmp eq i32 %18, 20
  br i1 %19, label %20, label %25

20:                                               ; preds = %2
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.s2n_connection, ptr %21, i32 0, i32 21
  %23 = load i8, ptr %22, align 2, !tbaa !38
  %24 = zext i8 %23 to i32
  br label %30

25:                                               ; preds = %2
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.s2n_connection, ptr %26, i32 0, i32 20
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = zext i8 %28 to i32
  br label %30

30:                                               ; preds = %25, %20
  %31 = phi i32 [ %24, %20 ], [ %29, %25 ]
  %32 = trunc i32 %31 to i8
  store i8 %32, ptr %7, align 1, !tbaa !39
  %33 = load i8, ptr %7, align 1, !tbaa !39
  %34 = zext i8 %33 to i32
  %35 = sdiv i32 %34, 10
  %36 = trunc i32 %35 to i8
  %37 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
  store i8 %36, ptr %37, align 1, !tbaa !39
  %38 = load i8, ptr %7, align 1, !tbaa !39
  %39 = zext i8 %38 to i32
  %40 = srem i32 %39, 10
  %41 = trunc i32 %40 to i8
  %42 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 1
  store i8 %41, ptr %42, align 1, !tbaa !39
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.s2n_connection, ptr %43, i32 0, i32 28
  %45 = getelementptr inbounds %struct.s2n_secrets, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %struct.s2n_tls12_secrets, ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds [48 x i8], ptr %46, i64 0, i64 0
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.s2n_blob, ptr %48, i32 0, i32 0
  store ptr %47, ptr %49, align 8, !tbaa !40
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.s2n_blob, ptr %50, i32 0, i32 1
  store i32 48, ptr %51, align 8, !tbaa !41
  br label %52

52:                                               ; preds = %30
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = call i32 @s2n_get_private_random_data(ptr noundef %53)
  %55 = getelementptr inbounds %struct.s2n_result, ptr %8, i32 0, i32 0
  store i32 %54, ptr %55, align 4
  %56 = getelementptr inbounds %struct.s2n_result, ptr %8, i32 0, i32 0
  %57 = load i32, ptr %56, align 4
  %58 = call zeroext i1 @s2n_result_is_ok(i32 %57)
  br i1 %58, label %60, label %59

59:                                               ; preds = %52
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %272

60:                                               ; preds = %52
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 2, ptr %10, align 4, !tbaa !42
  %64 = load i32, ptr %10, align 4, !tbaa !42
  %65 = icmp ne i32 %64, 0
  %66 = xor i1 %65, true
  %67 = xor i1 %66, true
  %68 = zext i1 %67 to i32
  %69 = sext i32 %68 to i64
  %70 = call i64 @llvm.expect.i64(i64 %69, i64 1)
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %72, label %124

72:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.s2n_connection, ptr %73, i32 0, i32 28
  %75 = getelementptr inbounds %struct.s2n_secrets, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds %struct.s2n_tls12_secrets, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds [48 x i8], ptr %76, i64 0, i64 0
  %78 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
  %79 = load i32, ptr %10, align 4, !tbaa !42
  %80 = sext i32 %79 to i64
  %81 = call ptr @s2n_ensure_memmove_trace(ptr noundef %77, ptr noundef %78, i64 noundef %80)
  store ptr %81, ptr %11, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %72
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = icmp ne ptr %83, null
  br i1 %84, label %118, label %85

85:                                               ; preds = %82
  br label %86

86:                                               ; preds = %85
  br label %87

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

96:                                               ; preds = %87
  %97 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %98 = getelementptr inbounds %struct.s2n_debug_info, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !43
  %100 = getelementptr inbounds i8, ptr %99, i64 21
  %101 = call ptr @strrchr(ptr noundef %100, i32 noundef 47) #9
  %102 = getelementptr inbounds i8, ptr %101, i64 1
  br label %108

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

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

114:                                              ; preds = %108
  br label %115

115:                                              ; preds = %114
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %121

116:                                              ; No predecessors!
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117, %82
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  store i32 0, ptr %9, align 4
  br label %121

121:                                              ; preds = %120, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  %122 = load i32, ptr %9, align 4
  switch i32 %122, label %125 [
    i32 0, label %123
  ]

123:                                              ; preds = %121
  br label %124

124:                                              ; preds = %123, %63
  store i32 0, ptr %9, align 4
  br label %125

125:                                              ; preds = %124, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %126 = load i32, ptr %9, align 4
  switch i32 %126, label %272 [
    i32 0, label %127
  ]

127:                                              ; preds = %125
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !42
  br label %130

130:                                              ; preds = %129
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.s2n_connection, ptr %131, i32 0, i32 32
  %133 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %132, i32 0, i32 0
  %134 = call i32 @s2n_pkey_size(ptr noundef %133, ptr noundef %12)
  %135 = getelementptr inbounds %struct.s2n_result, ptr %13, i32 0, i32 0
  store i32 %134, ptr %135, align 4
  %136 = getelementptr inbounds %struct.s2n_result, ptr %13, i32 0, i32 0
  %137 = load i32, ptr %136, align 4
  %138 = call zeroext i1 @s2n_result_is_ok(i32 %137)
  br i1 %138, label %140, label %139

139:                                              ; preds = %130
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %271

140:                                              ; preds = %130
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %12, align 4, !tbaa !42
  %145 = icmp ugt i32 %144, 65535
  br i1 %145, label %146, label %179

146:                                              ; preds = %143
  br label %147

147:                                              ; preds = %146
  br label %148

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

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

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

169:                                              ; preds = %164, %157
  %170 = phi ptr [ %163, %157 ], [ %168, %164 ]
  %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 1
  store ptr %170, ptr %172, align 8, !tbaa !45
  %173 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653220, ptr %173, align 4, !tbaa !42
  %174 = call i32 @s2n_calculate_stacktrace()
  br label %175

175:                                              ; preds = %169
  br label %176

176:                                              ; preds = %175
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %271

177:                                              ; No predecessors!
  br label %178

178:                                              ; preds = %177
  br label %179

179:                                              ; preds = %178, %143
  br label %180

180:                                              ; preds = %179
  br label %181

181:                                              ; preds = %180
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.s2n_connection, ptr %182, i32 0, i32 23
  %184 = load i8, ptr %183, align 4, !tbaa !46
  %185 = zext i8 %184 to i32
  %186 = icmp sgt i32 %185, 30
  br i1 %186, label %187, label %200

187:                                              ; preds = %181
  br label %188

188:                                              ; preds = %187
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.s2n_connection, ptr %189, i32 0, i32 52
  %191 = getelementptr inbounds %struct.s2n_handshake, ptr %190, i32 0, i32 0
  %192 = load i32, ptr %12, align 4, !tbaa !42
  %193 = trunc i32 %192 to i16
  %194 = call i32 @s2n_stuffer_write_uint16(ptr noundef %191, i16 noundef zeroext %193)
  %195 = icmp sgt i32 %194, -1
  br i1 %195, label %197, label %196

196:                                              ; preds = %188
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %271

197:                                              ; preds = %188
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198
  br label %200

200:                                              ; preds = %199, %181
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 24, i1 false)
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.s2n_connection, ptr %201, i32 0, i32 52
  %203 = getelementptr inbounds %struct.s2n_handshake, ptr %202, i32 0, i32 0
  %204 = load i32, ptr %12, align 4, !tbaa !42
  %205 = call ptr @s2n_stuffer_raw_write(ptr noundef %203, i32 noundef %204)
  %206 = getelementptr inbounds %struct.s2n_blob, ptr %14, i32 0, i32 0
  store ptr %205, ptr %206, align 8, !tbaa !40
  %207 = load i32, ptr %12, align 4, !tbaa !42
  %208 = getelementptr inbounds %struct.s2n_blob, ptr %14, i32 0, i32 1
  store i32 %207, ptr %208, align 8, !tbaa !41
  br label %209

209:                                              ; preds = %200
  %210 = getelementptr inbounds %struct.s2n_blob, ptr %14, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8, !tbaa !40
  %212 = icmp ne ptr %211, null
  br i1 %212, label %246, label %213

213:                                              ; preds = %209
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214
  %216 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %217 = getelementptr inbounds %struct.s2n_debug_info, ptr %216, i32 0, i32 0
  store ptr @.str.12, ptr %217, align 8, !tbaa !43
  %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
  %220 = load ptr, ptr %219, align 8, !tbaa !43
  %221 = getelementptr inbounds i8, ptr %220, i64 21
  %222 = call ptr @strrchr(ptr noundef %221, i32 noundef 47) #9
  %223 = icmp ne ptr %222, null
  br i1 %223, label %224, label %231

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

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

236:                                              ; preds = %231, %224
  %237 = phi ptr [ %230, %224 ], [ %235, %231 ]
  %238 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %239 = getelementptr inbounds %struct.s2n_debug_info, ptr %238, i32 0, i32 1
  store ptr %237, ptr %239, align 8, !tbaa !45
  %240 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %240, align 4, !tbaa !42
  %241 = call i32 @s2n_calculate_stacktrace()
  br label %242

242:                                              ; preds = %236
  br label %243

243:                                              ; preds = %242
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %270

244:                                              ; No predecessors!
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245, %209
  br label %247

247:                                              ; preds = %246
  br label %248

248:                                              ; preds = %247
  br label %249

249:                                              ; preds = %248
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.s2n_connection, ptr %250, i32 0, i32 32
  %252 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = call i32 @s2n_pkey_encrypt(ptr noundef %252, ptr noundef %253, ptr noundef %14)
  %255 = icmp sgt i32 %254, -1
  br i1 %255, label %257, label %256

256:                                              ; preds = %249
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %270

257:                                              ; preds = %249
  br label %258

258:                                              ; preds = %257
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.s2n_connection, ptr %261, i32 0, i32 32
  %263 = getelementptr inbounds %struct.s2n_handshake_parameters, ptr %262, i32 0, i32 0
  %264 = call i32 @s2n_pkey_free(ptr noundef %263)
  %265 = icmp sgt i32 %264, -1
  br i1 %265, label %267, label %266

266:                                              ; preds = %260
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %270

267:                                              ; preds = %260
  br label %268

268:                                              ; preds = %267
  br label %269

269:                                              ; preds = %268
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %270

270:                                              ; preds = %269, %266, %256, %243
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  br label %271

271:                                              ; preds = %270, %196, %176, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %272

272:                                              ; preds = %271, %125, %59
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #8
  %273 = load i32, ptr %3, align 4
  ret i32 %273
}

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

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

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

declare i32 @s2n_stuffer_write_uint16(ptr noundef, i16 noundef zeroext) #2

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

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

declare i32 @s2n_pkey_free(ptr noundef) #2

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

!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, !7, i64 217}
!10 = !{!"s2n_connection", !11, i64 0, !11, i64 0, !11, i64 0, !11, i64 0, !11, i64 0, !11, i64 0, !11, i64 0, !11, i64 0, !11, i64 1, !11, i64 1, !11, i64 1, !11, i64 1, !11, i64 1, !11, i64 1, !11, i64 1, !11, i64 1, !11, i64 2, !11, i64 2, !11, i64 2, !11, i64 2, !11, i64 2, !11, i64 2, !11, 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, !11, i64 148, !11, i64 152, !12, i64 160, !13, i64 168, !13, 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, !14, i64 240, !6, i64 632, !6, i64 640, !15, i64 648, !22, i64 1144, !25, i64 1688, !6, i64 1752, !7, i64 1760, !11, i64 1764, !7, i64 1768, !28, i64 1776, !28, i64 1816, !28, i64 1856, !28, i64 1896, !11, i64 1936, !13, i64 1944, !7, i64 1952, !28, i64 1960, !7, i64 2000, !7, i64 2001, !7, i64 2002, !21, i64 2003, !29, i64 2004, !29, i64 2008, !30, i64 2016, !27, i64 2208, !11, i64 2212, !27, i64 2216, !13, i64 2224, !7, i64 2232, !13, i64 2240, !13, i64 2248, !13, i64 2256, !29, i64 2264, !29, i64 2268, !7, i64 2272, !7, i64 2528, !11, i64 2784, !20, i64 2792, !11, i64 2816, !20, i64 2824, !20, i64 2848, !20, i64 2872, !32, i64 2896, !34, i64 3704, !6, i64 3760, !6, i64 3768, !7, i64 3776, !11, i64 3780, !20, i64 3784, !11, i64 3808, !36, i64 3816, !7, i64 3848, !28, i64 3992, !20, i64 4032, !20, i64 4056, !21, i64 4080, !21, i64 4081, !21, i64 4082, !27, i64 4084, !27, i64 4086, !11, i64 4088, !11, i64 4092, !20, i64 4096, !11, i64 4120, !37, i64 4128, !29, i64 4176, !7, i64 4180, !7, i64 4181}
!11 = !{!"int", !7, i64 0}
!12 = !{!"s2n_timer", !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"s2n_secrets", !7, i64 0, !11, i64 388}
!15 = !{!"s2n_kex_parameters", !16, i64 0, !17, i64 8, !7, i64 24, !17, i64 56, !18, i64 72, !18, i64 184, !7, i64 296, !19, i64 360, !20, i64 448, !20, i64 472}
!16 = !{!"s2n_dh_params", !6, i64 0}
!17 = !{!"s2n_ecc_evp_params", !6, i64 0, !6, i64 8}
!18 = !{!"s2n_kem_group_params", !6, i64 0, !19, i64 8, !17, i64 96}
!19 = !{!"s2n_kem_params", !6, i64 0, !20, i64 8, !20, i64 32, !20, i64 56, !21, i64 80}
!20 = !{!"s2n_blob", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!21 = !{!"_Bool", !7, i64 0}
!22 = !{!"s2n_handshake_parameters", !23, i64 0, !23, i64 48, !20, i64 96, !11, i64 120, !24, 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}
!23 = !{!"s2n_pkey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!24 = !{!"s2n_sig_scheme_list", !7, i64 0, !7, i64 256}
!25 = !{!"s2n_psk_parameters", !11, i64 0, !26, i64 8, !27, i64 40, !27, i64 42, !6, i64 48, !11, i64 56}
!26 = !{!"s2n_array", !20, i64 0, !11, i64 24, !11, i64 28}
!27 = !{!"short", !7, i64 0}
!28 = !{!"s2n_stuffer", !20, i64 0, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 36, !11, i64 36}
!29 = !{!"", !11, i64 0}
!30 = !{!"s2n_handshake", !28, i64 0, !6, i64 40, !7, i64 48, !7, i64 56, !7, i64 104, !7, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !31, i64 176, !11, i64 184, !11, i64 184, !11, i64 184, !11, i64 184, !11, i64 188}
!31 = !{!"s2n_offered_early_data", !6, i64 0}
!32 = !{!"s2n_client_hello", !20, i64 0, !33, i64 24, !20, i64 728, !20, i64 752, !20, i64 776, !7, i64 800, !7, i64 801, !11, i64 802, !11, i64 802, !11, i64 802, !11, i64 802, !11, i64 802, !11, i64 802, !11, i64 802}
!33 = !{!"", !7, i64 0, !20, i64 672, !27, i64 696}
!34 = !{!"s2n_x509_validator", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !27, i64 18, !6, i64 24, !11, i64 32, !6, i64 40, !35, i64 48, !21, i64 52}
!35 = !{!"s2n_cert_validation_info", !11, i64 0, !11, i64 0}
!36 = !{!"s2n_ticket_fields", !20, i64 0, !11, i64 24}
!37 = !{!"s2n_post_handshake", !28, i64 0, !7, i64 40}
!38 = !{!10, !7, i64 218}
!39 = !{!7, !7, i64 0}
!40 = !{!20, !6, i64 0}
!41 = !{!20, !11, i64 8}
!42 = !{!11, !11, i64 0}
!43 = !{!44, !6, i64 0}
!44 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!45 = !{!44, !6, i64 8}
!46 = !{!10, !7, i64 220}


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

@_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.10 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [100 x i8], align 1

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

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #2

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

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

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

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

declare i32 @s2n_get_private_random_data(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_rsa_client_key_send(ptr noundef %0, ptr noundef %1) local_unnamed_addr #6 {
  %3 = alloca [2 x i8], align 1
  %4 = alloca i32, align 4
  %5 = alloca %struct.s2n_blob, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %3) #7
  %6 = getelementptr inbounds i8, ptr %0, i64 217
  %7 = load i8, ptr %6, align 1, !tbaa !5
  %8 = icmp eq i8 %7, 20
  br i1 %8, label %9, label %12

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 218
  %11 = load i8, ptr %10, align 2, !tbaa !37
  br label %12

12:                                               ; preds = %2, %9
  %.in = phi i8 [ %11, %9 ], [ %7, %2 ]
  %13 = udiv i8 %.in, 10
  store i8 %13, ptr %3, align 1, !tbaa !38
  %14 = urem i8 %.in, 10
  %15 = getelementptr inbounds i8, ptr %3, i64 1
  store i8 %14, ptr %15, align 1, !tbaa !38
  %16 = getelementptr inbounds i8, ptr %0, i64 240
  store ptr %16, ptr %1, align 8, !tbaa !39
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 48, ptr %17, align 8, !tbaa !40
  %18 = tail call i32 @s2n_get_private_random_data(ptr noundef nonnull %1) #7
  %19 = tail call zeroext i1 @s2n_result_is_ok(i32 %18)
  br i1 %19, label %20, label %74

20:                                               ; preds = %12
  %21 = call ptr @s2n_ensure_memmove_trace(ptr noundef nonnull %16, ptr noundef nonnull %3, i64 noundef 2) #7
  %.not.not.not = icmp eq ptr %21, null
  br i1 %.not.not.not, label %.critedge, label %.critedge33

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

.critedge33:                                      ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 0, ptr %4, align 4, !tbaa !44
  %29 = getelementptr inbounds i8, ptr %0, i64 1144
  %30 = call i32 @s2n_pkey_size(ptr noundef nonnull %29, ptr noundef nonnull %4) #7
  %31 = call zeroext i1 @s2n_result_is_ok(i32 %30)
  br i1 %31, label %32, label %73

32:                                               ; preds = %.critedge33
  %33 = load i32, ptr %4, align 4, !tbaa !44
  %34 = icmp ugt i32 %33, 65535
  br i1 %34, label %35, label %43

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

43:                                               ; preds = %32
  %44 = getelementptr inbounds i8, ptr %0, i64 220
  %45 = load i8, ptr %44, align 4, !tbaa !45
  %46 = icmp ugt i8 %45, 30
  br i1 %46, label %47, label %52

47:                                               ; preds = %43
  %48 = getelementptr inbounds i8, ptr %0, i64 2016
  %49 = trunc nuw i32 %33 to i16
  %50 = call i32 @s2n_stuffer_write_uint16(ptr noundef nonnull %48, i16 noundef zeroext %49) #7
  %51 = icmp sgt i32 %50, -1
  br i1 %51, label %._crit_edge, label %73

._crit_edge:                                      ; preds = %47
  %.pre = load i32, ptr %4, align 4, !tbaa !44
  br label %52

52:                                               ; preds = %._crit_edge, %43
  %53 = phi i32 [ %.pre, %._crit_edge ], [ %33, %43 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  %54 = getelementptr inbounds i8, ptr %5, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %54, i8 0, i64 16, i1 false)
  %55 = getelementptr inbounds i8, ptr %0, i64 2016
  %56 = call ptr @s2n_stuffer_raw_write(ptr noundef nonnull %55, i32 noundef %53) #7
  store ptr %56, ptr %5, align 8, !tbaa !39
  %57 = load i32, ptr %4, align 4, !tbaa !44
  %58 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %57, ptr %58, align 8, !tbaa !40
  %.not = icmp eq ptr %56, null
  br i1 %.not, label %59, label %67

59:                                               ; preds = %52
  %60 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.12, ptr %60, align 8, !tbaa !41
  %61 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.12, i64 21), i32 noundef 47) #8
  %.not31 = icmp eq ptr %61, null
  %62 = getelementptr inbounds i8, ptr %61, i64 1
  %63 = select i1 %.not31, ptr getelementptr inbounds (i8, ptr @.str.12, i64 21), ptr %62
  %64 = getelementptr inbounds i8, ptr %60, i64 8
  store ptr %63, ptr %64, align 8, !tbaa !43
  %65 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %65, align 4, !tbaa !44
  %66 = call i32 @s2n_calculate_stacktrace() #7
  br label %72

67:                                               ; preds = %52
  %68 = call i32 @s2n_pkey_encrypt(ptr noundef nonnull %29, ptr noundef nonnull %1, ptr noundef nonnull %5) #7
  %69 = icmp sgt i32 %68, -1
  br i1 %69, label %70, label %72

70:                                               ; preds = %67
  %71 = call i32 @s2n_pkey_free(ptr noundef nonnull %29) #7
  %.lobit = ashr i32 %71, 31
  br label %72

72:                                               ; preds = %70, %67, %59
  %.3 = phi i32 [ -1, %59 ], [ -1, %67 ], [ %.lobit, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %73

73:                                               ; preds = %47, %.critedge33, %72, %35
  %.4 = phi i32 [ -1, %35 ], [ %.3, %72 ], [ -1, %.critedge33 ], [ -1, %47 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %74

74:                                               ; preds = %.critedge, %12, %73
  %.5 = phi i32 [ %.4, %73 ], [ -1, %.critedge ], [ -1, %12 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %3) #7
  ret i32 %.5
}

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

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

declare i32 @s2n_stuffer_write_uint16(ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

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

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

declare i32 @s2n_pkey_free(ptr noundef) local_unnamed_addr #2

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

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


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