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

; 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_cert_info = type { i32, i32, i32, i32, i8 }
%struct.s2n_security_policy = type { i8, ptr, ptr, ptr, ptr, ptr, ptr, i8, [2 x 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_blob = type { ptr, i32, i32, i8 }
%struct.s2n_post_handshake = type { %struct.s2n_stuffer, [4 x i8] }
%struct.s2n_atomic_flag = type { i32 }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.14 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [95 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

13:                                               ; preds = %2
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %48, label %16

16:                                               ; preds = %13
  br label %17

17:                                               ; preds = %16
  br label %18

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

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

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

39:                                               ; preds = %34, %27
  %40 = phi ptr [ %33, %27 ], [ %38, %34 ]
  %41 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %42 = getelementptr inbounds %struct.s2n_debug_info, ptr %41, i32 0, i32 1
  store ptr %40, ptr %42, align 8, !tbaa !11
  %43 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %43, align 4, !tbaa !12
  %44 = call i32 @s2n_calculate_stacktrace()
  br label %45

45:                                               ; preds = %39
  %46 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %46, align 4, !tbaa !14
  br label %208

47:                                               ; No predecessors!
  br label %48

48:                                               ; preds = %47, %13
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = icmp ne ptr %51, null
  br i1 %52, label %85, label %53

53:                                               ; preds = %50
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  %56 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %57 = getelementptr inbounds %struct.s2n_debug_info, ptr %56, i32 0, i32 0
  store ptr @.str.15, ptr %57, align 8, !tbaa !9
  %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) #7
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %71

64:                                               ; preds = %55
  %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
  %69 = call ptr @strrchr(ptr noundef %68, i32 noundef 47) #7
  %70 = getelementptr inbounds i8, ptr %69, i64 1
  br label %76

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

76:                                               ; preds = %71, %64
  %77 = phi ptr [ %70, %64 ], [ %75, %71 ]
  %78 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %79 = getelementptr inbounds %struct.s2n_debug_info, ptr %78, i32 0, i32 1
  store ptr %77, ptr %79, align 8, !tbaa !11
  %80 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %80, align 4, !tbaa !12
  %81 = call i32 @s2n_calculate_stacktrace()
  br label %82

82:                                               ; preds = %76
  %83 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %83, align 4, !tbaa !14
  br label %208

84:                                               ; No predecessors!
  br label %85

85:                                               ; preds = %84, %50
  br label %86

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store ptr null, ptr %6, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = call i32 @s2n_connection_get_security_policy(ptr noundef %88, ptr noundef %6)
  %90 = icmp sgt i32 %89, -1
  br i1 %90, label %93, label %91

91:                                               ; preds = %87
  %92 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %92, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %207

93:                                               ; preds = %87
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 20, ptr %8) #8
  call void @llvm.memset.p0.i64(ptr align 4 %8, i8 0, i64 20, i1 false)
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = call i32 @s2n_openssl_x509_get_cert_info(ptr noundef %97, ptr noundef %8)
  %99 = getelementptr inbounds %struct.s2n_result, ptr %9, i32 0, i32 0
  store i32 %98, ptr %99, align 4
  %100 = getelementptr inbounds %struct.s2n_result, ptr %9, i32 0, i32 0
  %101 = load i32, ptr %100, align 4
  %102 = call zeroext i1 @s2n_result_is_ok(i32 %101)
  br i1 %102, label %105, label %103

103:                                              ; preds = %96
  %104 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %104, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %206

105:                                              ; preds = %96
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #8
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.s2n_security_policy, ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !16
  %111 = icmp ne ptr %110, null
  br i1 %111, label %117, label %112

112:                                              ; preds = %107
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.s2n_security_policy, ptr %113, i32 0, i32 6
  %115 = load ptr, ptr %114, align 8, !tbaa !19
  %116 = icmp ne ptr %115, null
  br label %117

117:                                              ; preds = %112, %107
  %118 = phi i1 [ true, %107 ], [ %116, %112 ]
  %119 = zext i1 %118 to i8
  store i8 %119, ptr %10, align 1, !tbaa !20
  %120 = load i8, ptr %10, align 1, !tbaa !20, !range !21, !noundef !22
  %121 = trunc i8 %120 to i1
  br i1 %121, label %122, label %174

122:                                              ; preds = %117
  %123 = getelementptr inbounds %struct.s2n_cert_info, ptr %8, i32 0, i32 4
  %124 = load i8, ptr %123, align 4, !tbaa !23, !range !21, !noundef !22
  %125 = trunc i8 %124 to i1
  br i1 %125, label %174, label %126

126:                                              ; preds = %122
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.s2n_connection, ptr %127, i32 0, i32 23
  %129 = load i8, ptr %128, align 4, !tbaa !25
  %130 = zext i8 %129 to i32
  %131 = icmp eq i32 %130, 34
  br i1 %131, label %132, label %174

132:                                              ; preds = %126
  br label %133

133:                                              ; preds = %132
  %134 = getelementptr inbounds %struct.s2n_cert_info, ptr %8, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !51
  %136 = icmp ne i32 %135, 64
  br i1 %136, label %171, label %137

137:                                              ; preds = %133
  br label %138

138:                                              ; preds = %137
  br label %139

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

148:                                              ; preds = %139
  %149 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %150 = getelementptr inbounds %struct.s2n_debug_info, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !9
  %152 = getelementptr inbounds i8, ptr %151, i64 21
  %153 = call ptr @strrchr(ptr noundef %152, i32 noundef 47) #7
  %154 = getelementptr inbounds i8, ptr %153, i64 1
  br label %160

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

160:                                              ; preds = %155, %148
  %161 = phi ptr [ %154, %148 ], [ %159, %155 ]
  %162 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %163 = getelementptr inbounds %struct.s2n_debug_info, ptr %162, i32 0, i32 1
  store ptr %161, ptr %163, align 8, !tbaa !11
  %164 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 335544366, ptr %164, align 4, !tbaa !12
  %165 = call i32 @s2n_calculate_stacktrace()
  br label %166

166:                                              ; preds = %160
  br label %167

167:                                              ; preds = %166
  %168 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %168, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %205

169:                                              ; No predecessors!
  br label %170

170:                                              ; preds = %169
  br label %171

171:                                              ; preds = %170, %133
  br label %172

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173, %126, %122, %117
  %175 = getelementptr inbounds %struct.s2n_cert_info, ptr %8, i32 0, i32 4
  %176 = load i8, ptr %175, align 4, !tbaa !23, !range !21, !noundef !22
  %177 = trunc i8 %176 to i1
  br i1 %177, label %191, label %178

178:                                              ; preds = %174
  br label %179

179:                                              ; preds = %178
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = call i32 @s2n_security_policy_validate_cert_signature(ptr noundef %180, ptr noundef %8, i32 noundef 335544366)
  %182 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  store i32 %181, ptr %182, align 4
  %183 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  %184 = load i32, ptr %183, align 4
  %185 = call zeroext i1 @s2n_result_is_ok(i32 %184)
  br i1 %185, label %188, label %186

186:                                              ; preds = %179
  %187 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %187, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %205

188:                                              ; preds = %179
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190, %174
  br label %192

192:                                              ; preds = %191
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = call i32 @s2n_security_policy_validate_cert_key(ptr noundef %193, ptr noundef %8, i32 noundef 335544366)
  %195 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  store i32 %194, ptr %195, align 4
  %196 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  %197 = load i32, ptr %196, align 4
  %198 = call zeroext i1 @s2n_result_is_ok(i32 %197)
  br i1 %198, label %201, label %199

199:                                              ; preds = %192
  %200 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %200, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %205

201:                                              ; preds = %192
  br label %202

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202
  %204 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 0, ptr %204, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %205

205:                                              ; preds = %203, %199, %186, %167
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  br label %206

206:                                              ; preds = %205, %103
  call void @llvm.lifetime.end.p0(i64 20, ptr %8) #8
  br label %207

207:                                              ; preds = %206, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %208

208:                                              ; preds = %207, %82, %45
  %209 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  %210 = load i32, ptr %209, align 4
  ret i32 %210
}

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

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

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

declare i32 @s2n_security_policy_validate_cert_key(ptr noundef, ptr noundef, i32 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 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind }

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

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


; 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_cert_info = type { i32, i32, i32, i32, i8 }

@_s2n_debug_info = external thread_local local_unnamed_addr global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.14 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [95 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

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

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

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

22:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  store ptr null, ptr %3, align 8, !tbaa !13
  %23 = call i32 @s2n_connection_get_security_policy(ptr noundef nonnull %0, ptr noundef nonnull %3) #8
  %24 = icmp sgt i32 %23, -1
  br i1 %24, label %25, label %64

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %4) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %4, i8 0, i64 20, i1 false)
  %26 = call i32 @s2n_openssl_x509_get_cert_info(ptr noundef nonnull %1, ptr noundef nonnull %4) #8
  %27 = call zeroext i1 @s2n_result_is_ok(i32 %26)
  br i1 %27, label %28, label %63

28:                                               ; preds = %25
  %29 = load ptr, ptr %3, align 8, !tbaa !13
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %.not17 = icmp eq ptr %31, null
  br i1 %.not17, label %32, label %.critedge

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %29, i64 48
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %.not19 = icmp eq ptr %34, null
  br i1 %.not19, label %._crit_edge, label %.critedge

._crit_edge:                                      ; preds = %32
  %.phi.trans.insert = getelementptr inbounds i8, ptr %4, i64 16
  %.pre = load i8, ptr %.phi.trans.insert, align 4, !tbaa !18, !range !20
  br label %53

.critedge:                                        ; preds = %28, %32
  %35 = getelementptr inbounds i8, ptr %4, i64 16
  %36 = load i8, ptr %35, align 4, !tbaa !18, !range !20, !noundef !21
  %37 = trunc nuw i8 %36 to i1
  br i1 %37, label %53, label %38

38:                                               ; preds = %.critedge
  %39 = getelementptr inbounds i8, ptr %0, i64 220
  %40 = load i8, ptr %39, align 4, !tbaa !22
  %41 = icmp ne i8 %40, 34
  %42 = getelementptr inbounds i8, ptr %4, i64 4
  %43 = load i32, ptr %42, align 4
  %44 = icmp ne i32 %43, 64
  %or.cond = select i1 %41, i1 true, i1 %44
  br i1 %or.cond, label %53, label %45

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

53:                                               ; preds = %._crit_edge, %38, %.critedge
  %54 = phi i8 [ %.pre, %._crit_edge ], [ %36, %38 ], [ %36, %.critedge ]
  %55 = trunc nuw i8 %54 to i1
  br i1 %55, label %59, label %56

56:                                               ; preds = %53
  %57 = call i32 @s2n_security_policy_validate_cert_signature(ptr noundef nonnull %29, ptr noundef nonnull %4, i32 noundef 335544366) #8
  %58 = call zeroext i1 @s2n_result_is_ok(i32 %57)
  br i1 %58, label %._crit_edge20, label %63

._crit_edge20:                                    ; preds = %56
  %.pre21 = load ptr, ptr %3, align 8, !tbaa !13
  br label %59

59:                                               ; preds = %._crit_edge20, %53
  %60 = phi ptr [ %.pre21, %._crit_edge20 ], [ %29, %53 ]
  %61 = call i32 @s2n_security_policy_validate_cert_key(ptr noundef %60, ptr noundef nonnull %4, i32 noundef 335544366) #8
  %62 = call zeroext i1 @s2n_result_is_ok(i32 %61)
  %not. = xor i1 %62, true
  %. = sext i1 %not. to i32
  br label %63

63:                                               ; preds = %45, %56, %59, %25
  %.sroa.09.1 = phi i32 [ -1, %25 ], [ -1, %45 ], [ -1, %56 ], [ %., %59 ]
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %4) #8
  br label %64

64:                                               ; preds = %22, %63
  %.sroa.09.2 = phi i32 [ %.sroa.09.1, %63 ], [ -1, %22 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br label %65

65:                                               ; preds = %64, %14, %5
  %.sroa.09.3 = phi i32 [ %.sroa.09.2, %64 ], [ -1, %14 ], [ -1, %5 ]
  ret i32 %.sroa.09.3
}

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

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

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

declare i32 @s2n_security_policy_validate_cert_key(ptr noundef, ptr noundef, i32 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 willreturn memory(read) }
attributes #8 = { nounwind }

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

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


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