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

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

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.s2n_cipher_suite = type { i8, ptr, ptr, [2 x i8], ptr, i32, ptr, [2 x ptr], i8, ptr, ptr, i32, i8 }
%struct.s2n_record_algorithm = type { ptr, i32, i32, i64 }
%struct.s2n_cipher = type { i32, %union.anon, i8, ptr, ptr, ptr, ptr, ptr, ptr }
%union.anon = type { %struct.s2n_composite_cipher }
%struct.s2n_composite_cipher = type { i8, i8, i8, ptr, ptr, 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.0, i32 }
%union.anon.0 = type { %struct.s2n_tls13_secrets }
%struct.s2n_tls13_secrets = type { [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], i32 }
%struct.s2n_kex_parameters = type { %struct.s2n_dh_params, %struct.s2n_ecc_evp_params, [4 x ptr], %struct.s2n_ecc_evp_params, %struct.s2n_kem_group_params, %struct.s2n_kem_group_params, [8 x ptr], %struct.s2n_kem_params, %struct.s2n_blob, %struct.s2n_blob }
%struct.s2n_dh_params = type { ptr }
%struct.s2n_ecc_evp_params = type { ptr, ptr }
%struct.s2n_kem_group_params = type { ptr, %struct.s2n_kem_params, %struct.s2n_ecc_evp_params }
%struct.s2n_kem_params = type { ptr, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, i8 }
%struct.s2n_handshake_parameters = type { %struct.s2n_pkey, %struct.s2n_pkey, %struct.s2n_blob, i32, %struct.s2n_sig_scheme_list, ptr, ptr, ptr, [4 x ptr], [4 x ptr], i8, i8, [32 x i8], [32 x i8] }
%struct.s2n_pkey = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.s2n_sig_scheme_list = type { [128 x i16], i8 }
%struct.s2n_psk_parameters = type { i32, %struct.s2n_array, i16, i16, ptr, i32 }
%struct.s2n_array = type { %struct.s2n_blob, i32, i32 }
%struct.s2n_handshake = type { %struct.s2n_stuffer, ptr, [8 x i8], [48 x i8], [48 x i8], i8, i32, i32, i32, i32, %struct.s2n_offered_early_data, i8, i32 }
%struct.s2n_offered_early_data = type { ptr }
%struct.s2n_client_hello = type { %struct.s2n_blob, %struct.s2n_parsed_extensions_list, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, i8, i8, i8 }
%struct.s2n_parsed_extensions_list = type { [21 x %struct.s2n_parsed_extension], %struct.s2n_blob, i16 }
%struct.s2n_parsed_extension = type { %struct.s2n_blob, i16, i16, i8 }
%struct.s2n_x509_validator = type { ptr, ptr, i8, i8, i16, ptr, i32, ptr, %struct.s2n_cert_validation_info, i8 }
%struct.s2n_cert_validation_info = type { i8, [3 x i8] }
%struct.s2n_ticket_fields = type { %struct.s2n_blob, i32 }
%struct.s2n_stuffer = type { %struct.s2n_blob, i32, i32, i32, i8 }
%struct.s2n_post_handshake = type { %struct.s2n_stuffer, [4 x i8] }
%struct.s2n_atomic_flag = type { i32 }
%struct.s2n_hmac_state = type { i32, i16, i32, i16, i8, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, %struct.s2n_hash_state, [128 x i8], [64 x i8] }
%struct.s2n_hash_state = type { ptr, i32, i8, i64, %union.anon.1 }
%union.anon.1 = type { %struct.s2n_hash_evp_digest }
%struct.s2n_hash_evp_digest = type { %struct.s2n_evp_digest, %struct.s2n_evp_digest }
%struct.s2n_evp_digest = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [101 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 [101 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [101 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_record_parse_composite(ptr noundef %0, ptr noundef %1, i8 noundef zeroext %2, i16 noundef zeroext %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i16, align 2
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.s2n_blob, align 8
  %19 = alloca [16 x i8], align 16
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.s2n_blob, align 8
  %23 = alloca i16, align 2
  %24 = alloca i8, align 1
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca %struct.s2n_blob, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i8 %2, ptr %12, align 1, !tbaa !9
  store i16 %3, ptr %13, align 2, !tbaa !10
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  %33 = getelementptr inbounds %struct.s2n_blob, ptr %18, i32 0, i32 0
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %34, ptr %33, align 8, !tbaa !12
  %35 = getelementptr inbounds %struct.s2n_blob, ptr %18, i32 0, i32 1
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %36, i32 0, i32 6
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = getelementptr inbounds %struct.s2n_record_algorithm, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !17
  %41 = getelementptr inbounds %struct.s2n_cipher, ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds %struct.s2n_composite_cipher, ptr %41, i32 0, i32 1
  %43 = load i8, ptr %42, align 1, !tbaa !9
  %44 = zext i8 %43 to i32
  store i32 %44, ptr %35, align 8, !tbaa !20
  %45 = getelementptr inbounds %struct.s2n_blob, ptr %18, i32 0, i32 2
  store i32 0, ptr %45, align 4, !tbaa !21
  %46 = getelementptr inbounds %struct.s2n_blob, ptr %18, i32 0, i32 3
  %47 = load i8, ptr %46, align 8
  %48 = and i8 %47, -2
  %49 = or i8 %48, 0
  store i8 %49, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.s2n_connection, ptr %50, i32 0, i32 38
  %52 = call ptr @s2n_stuffer_raw_read(ptr noundef %51, i32 noundef 5)
  store ptr %52, ptr %20, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %8
  %54 = load ptr, ptr %20, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %89, label %56

56:                                               ; preds = %53
  br label %57

57:                                               ; preds = %56
  br label %58

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

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

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

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

85:                                               ; preds = %79
  br label %86

86:                                               ; preds = %85
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %690

87:                                               ; No predecessors!
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88, %53
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  %92 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 0
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.s2n_connection, ptr %93, i32 0, i32 40
  %95 = load i16, ptr %13, align 2, !tbaa !10
  %96 = zext i16 %95 to i32
  %97 = call ptr @s2n_stuffer_raw_read(ptr noundef %94, i32 noundef %96)
  store ptr %97, ptr %92, align 8, !tbaa !12
  %98 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 1
  %99 = load i16, ptr %13, align 2, !tbaa !10
  %100 = zext i16 %99 to i32
  store i32 %100, ptr %98, align 8, !tbaa !20
  %101 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 2
  store i32 0, ptr %101, align 4, !tbaa !21
  %102 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 3
  %103 = load i8, ptr %102, align 8
  %104 = and i8 %103, -2
  %105 = or i8 %104, 0
  store i8 %105, ptr %102, align 8
  br label %106

106:                                              ; preds = %91
  %107 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !12
  %109 = icmp ne ptr %108, null
  br i1 %109, label %143, label %110

110:                                              ; preds = %106
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  %113 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %114 = getelementptr inbounds %struct.s2n_debug_info, ptr %113, i32 0, i32 0
  store ptr @.str.1, ptr %114, align 8, !tbaa !22
  %115 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %116 = getelementptr inbounds %struct.s2n_debug_info, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !22
  %118 = getelementptr inbounds i8, ptr %117, i64 21
  %119 = call ptr @strrchr(ptr noundef %118, i32 noundef 47) #7
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %128

121:                                              ; preds = %112
  %122 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %123 = getelementptr inbounds %struct.s2n_debug_info, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !22
  %125 = getelementptr inbounds i8, ptr %124, i64 21
  %126 = call ptr @strrchr(ptr noundef %125, i32 noundef 47) #7
  %127 = getelementptr inbounds i8, ptr %126, i64 1
  br label %133

128:                                              ; preds = %112
  %129 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %130 = getelementptr inbounds %struct.s2n_debug_info, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !22
  %132 = getelementptr inbounds i8, ptr %131, i64 21
  br label %133

133:                                              ; preds = %128, %121
  %134 = phi ptr [ %127, %121 ], [ %132, %128 ]
  %135 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %136 = getelementptr inbounds %struct.s2n_debug_info, ptr %135, i32 0, i32 1
  store ptr %134, ptr %136, align 8, !tbaa !24
  %137 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %137, align 4, !tbaa !25
  %138 = call i32 @s2n_calculate_stacktrace()
  br label %139

139:                                              ; preds = %133
  br label %140

140:                                              ; preds = %139
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %689

141:                                              ; No predecessors!
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142, %106
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #6
  %146 = load i16, ptr %13, align 2, !tbaa !10
  store i16 %146, ptr %23, align 2, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  store i8 0, ptr %24, align 1, !tbaa !9
  br label %147

147:                                              ; preds = %145
  %148 = load ptr, ptr %15, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.s2n_hmac_state, ptr %148, i32 0, i32 0
  %150 = load i32, ptr %149, align 8, !tbaa !26
  %151 = call i32 @s2n_hmac_digest_size(i32 noundef %150, ptr noundef %24)
  %152 = icmp sgt i32 %151, -1
  br i1 %152, label %154, label %153

153:                                              ; preds = %147
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %688

154:                                              ; preds = %147
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  %158 = load i16, ptr %23, align 2, !tbaa !10
  %159 = zext i16 %158 to i32
  %160 = load i8, ptr %24, align 1, !tbaa !9
  %161 = zext i8 %160 to i32
  %162 = icmp sge i32 %159, %161
  br i1 %162, label %196, label %163

163:                                              ; preds = %157
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  %166 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %167 = getelementptr inbounds %struct.s2n_debug_info, ptr %166, i32 0, i32 0
  store ptr @.str.2, ptr %167, align 8, !tbaa !22
  %168 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %169 = getelementptr inbounds %struct.s2n_debug_info, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !22
  %171 = getelementptr inbounds i8, ptr %170, i64 21
  %172 = call ptr @strrchr(ptr noundef %171, i32 noundef 47) #7
  %173 = icmp ne ptr %172, null
  br i1 %173, label %174, label %181

174:                                              ; preds = %165
  %175 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %176 = getelementptr inbounds %struct.s2n_debug_info, ptr %175, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8, !tbaa !22
  %178 = getelementptr inbounds i8, ptr %177, i64 21
  %179 = call ptr @strrchr(ptr noundef %178, i32 noundef 47) #7
  %180 = getelementptr inbounds i8, ptr %179, i64 1
  br label %186

181:                                              ; preds = %165
  %182 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %183 = getelementptr inbounds %struct.s2n_debug_info, ptr %182, i32 0, i32 0
  %184 = load ptr, ptr %183, align 8, !tbaa !22
  %185 = getelementptr inbounds i8, ptr %184, i64 21
  br label %186

186:                                              ; preds = %181, %174
  %187 = phi ptr [ %180, %174 ], [ %185, %181 ]
  %188 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %189 = getelementptr inbounds %struct.s2n_debug_info, ptr %188, i32 0, i32 1
  store ptr %187, ptr %189, align 8, !tbaa !24
  %190 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %190, align 4, !tbaa !25
  %191 = call i32 @s2n_calculate_stacktrace()
  br label %192

192:                                              ; preds = %186
  br label %193

193:                                              ; preds = %192
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %688

194:                                              ; No predecessors!
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195, %157
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  %199 = load i8, ptr %24, align 1, !tbaa !9
  %200 = zext i8 %199 to i32
  %201 = load i16, ptr %23, align 2, !tbaa !10
  %202 = zext i16 %201 to i32
  %203 = sub nsw i32 %202, %200
  %204 = trunc i32 %203 to i16
  store i16 %204, ptr %23, align 2, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !25
  br label %205

205:                                              ; preds = %198
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %206, i32 0, i32 6
  %208 = load ptr, ptr %207, align 8, !tbaa !15
  %209 = getelementptr inbounds %struct.s2n_record_algorithm, ptr %208, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8, !tbaa !17
  %211 = getelementptr inbounds %struct.s2n_cipher, ptr %210, i32 0, i32 1
  %212 = getelementptr inbounds %struct.s2n_composite_cipher, ptr %211, i32 0, i32 6
  %213 = load ptr, ptr %212, align 8, !tbaa !9
  %214 = load ptr, ptr %17, align 8, !tbaa !5
  %215 = load ptr, ptr %16, align 8, !tbaa !5
  %216 = load i8, ptr %12, align 1, !tbaa !9
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.s2n_connection, ptr %217, i32 0, i32 23
  %219 = load i8, ptr %218, align 4, !tbaa !29
  %220 = zext i8 %219 to i16
  %221 = load i16, ptr %23, align 2, !tbaa !10
  %222 = call i32 %213(ptr noundef %214, ptr noundef %215, i8 noundef zeroext %216, i16 noundef zeroext %220, i16 noundef zeroext %221, ptr noundef %25)
  %223 = icmp sgt i32 %222, -1
  br i1 %223, label %225, label %224

224:                                              ; preds = %205
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %687

225:                                              ; preds = %205
  br label %226

226:                                              ; preds = %225
  br label %227

227:                                              ; preds = %226
  br label %228

228:                                              ; preds = %227
  %229 = load i16, ptr %23, align 2, !tbaa !10
  %230 = zext i16 %229 to i32
  %231 = load i32, ptr %25, align 4, !tbaa !25
  %232 = icmp sge i32 %230, %231
  br i1 %232, label %266, label %233

233:                                              ; preds = %228
  br label %234

234:                                              ; preds = %233
  br label %235

235:                                              ; preds = %234
  %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
  store ptr @.str.3, ptr %237, align 8, !tbaa !22
  %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 0
  %240 = load ptr, ptr %239, align 8, !tbaa !22
  %241 = getelementptr inbounds i8, ptr %240, i64 21
  %242 = call ptr @strrchr(ptr noundef %241, i32 noundef 47) #7
  %243 = icmp ne ptr %242, null
  br i1 %243, label %244, label %251

244:                                              ; preds = %235
  %245 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %246 = getelementptr inbounds %struct.s2n_debug_info, ptr %245, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8, !tbaa !22
  %248 = getelementptr inbounds i8, ptr %247, i64 21
  %249 = call ptr @strrchr(ptr noundef %248, i32 noundef 47) #7
  %250 = getelementptr inbounds i8, ptr %249, i64 1
  br label %256

251:                                              ; preds = %235
  %252 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %253 = getelementptr inbounds %struct.s2n_debug_info, ptr %252, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8, !tbaa !22
  %255 = getelementptr inbounds i8, ptr %254, i64 21
  br label %256

256:                                              ; preds = %251, %244
  %257 = phi ptr [ %250, %244 ], [ %255, %251 ]
  %258 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %259 = getelementptr inbounds %struct.s2n_debug_info, ptr %258, i32 0, i32 1
  store ptr %257, ptr %259, align 8, !tbaa !24
  %260 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %260, align 4, !tbaa !25
  %261 = call i32 @s2n_calculate_stacktrace()
  br label %262

262:                                              ; preds = %256
  br label %263

263:                                              ; preds = %262
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %687

264:                                              ; No predecessors!
  br label %265

265:                                              ; preds = %264
  br label %266

266:                                              ; preds = %265, %228
  br label %267

267:                                              ; preds = %266
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %25, align 4, !tbaa !25
  %270 = load i16, ptr %23, align 2, !tbaa !10
  %271 = zext i16 %270 to i32
  %272 = sub nsw i32 %271, %269
  %273 = trunc i32 %272 to i16
  store i16 %273, ptr %23, align 2, !tbaa !10
  %274 = load ptr, ptr %11, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.s2n_connection, ptr %274, i32 0, i32 23
  %276 = load i8, ptr %275, align 4, !tbaa !29
  %277 = zext i8 %276 to i32
  %278 = icmp sgt i32 %277, 31
  br i1 %278, label %279, label %303

279:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !25
  br label %280

280:                                              ; preds = %279
  %281 = load i16, ptr %23, align 2, !tbaa !10
  %282 = zext i16 %281 to i32
  %283 = load ptr, ptr %10, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %283, i32 0, i32 6
  %285 = load ptr, ptr %284, align 8, !tbaa !15
  %286 = getelementptr inbounds %struct.s2n_record_algorithm, ptr %285, i32 0, i32 0
  %287 = load ptr, ptr %286, align 8, !tbaa !17
  %288 = getelementptr inbounds %struct.s2n_cipher, ptr %287, i32 0, i32 1
  %289 = getelementptr inbounds %struct.s2n_composite_cipher, ptr %288, i32 0, i32 1
  %290 = load i8, ptr %289, align 1, !tbaa !9
  %291 = zext i8 %290 to i32
  %292 = call i32 @s2n_sub_overflow(i32 noundef %282, i32 noundef %291, ptr noundef %26)
  %293 = icmp sgt i32 %292, -1
  br i1 %293, label %295, label %294

294:                                              ; preds = %280
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %300

295:                                              ; preds = %280
  br label %296

296:                                              ; preds = %295
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %26, align 4, !tbaa !25
  %299 = trunc i32 %298 to i16
  store i16 %299, ptr %23, align 2, !tbaa !10
  store i32 0, ptr %21, align 4
  br label %300

300:                                              ; preds = %297, %294
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  %301 = load i32, ptr %21, align 4
  switch i32 %301, label %687 [
    i32 0, label %302
  ]

302:                                              ; preds = %300
  br label %303

303:                                              ; preds = %302, %268
  br label %304

304:                                              ; preds = %303
  %305 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 1
  %306 = load i32, ptr %305, align 8, !tbaa !20
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %341, label %308

308:                                              ; preds = %304
  br label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309
  %311 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %312 = getelementptr inbounds %struct.s2n_debug_info, ptr %311, i32 0, i32 0
  store ptr @.str.4, ptr %312, align 8, !tbaa !22
  %313 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %314 = getelementptr inbounds %struct.s2n_debug_info, ptr %313, i32 0, i32 0
  %315 = load ptr, ptr %314, align 8, !tbaa !22
  %316 = getelementptr inbounds i8, ptr %315, i64 21
  %317 = call ptr @strrchr(ptr noundef %316, i32 noundef 47) #7
  %318 = icmp ne ptr %317, null
  br i1 %318, label %319, label %326

319:                                              ; preds = %310
  %320 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %321 = getelementptr inbounds %struct.s2n_debug_info, ptr %320, i32 0, i32 0
  %322 = load ptr, ptr %321, align 8, !tbaa !22
  %323 = getelementptr inbounds i8, ptr %322, i64 21
  %324 = call ptr @strrchr(ptr noundef %323, i32 noundef 47) #7
  %325 = getelementptr inbounds i8, ptr %324, i64 1
  br label %331

326:                                              ; preds = %310
  %327 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %328 = getelementptr inbounds %struct.s2n_debug_info, ptr %327, i32 0, i32 0
  %329 = load ptr, ptr %328, align 8, !tbaa !22
  %330 = getelementptr inbounds i8, ptr %329, i64 21
  br label %331

331:                                              ; preds = %326, %319
  %332 = phi ptr [ %325, %319 ], [ %330, %326 ]
  %333 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %334 = getelementptr inbounds %struct.s2n_debug_info, ptr %333, i32 0, i32 1
  store ptr %332, ptr %334, align 8, !tbaa !24
  %335 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %335, align 4, !tbaa !25
  %336 = call i32 @s2n_calculate_stacktrace()
  br label %337

337:                                              ; preds = %331
  br label %338

338:                                              ; preds = %337
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %687

339:                                              ; No predecessors!
  br label %340

340:                                              ; preds = %339
  br label %341

341:                                              ; preds = %340, %304
  br label %342

342:                                              ; preds = %341
  br label %343

343:                                              ; preds = %342
  br label %344

344:                                              ; preds = %343
  %345 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 1
  %346 = load i32, ptr %345, align 8, !tbaa !20
  %347 = getelementptr inbounds %struct.s2n_blob, ptr %18, i32 0, i32 1
  %348 = load i32, ptr %347, align 8, !tbaa !20
  %349 = urem i32 %346, %348
  %350 = icmp eq i32 %349, 0
  br i1 %350, label %384, label %351

351:                                              ; preds = %344
  br label %352

352:                                              ; preds = %351
  br label %353

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

362:                                              ; preds = %353
  %363 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %364 = getelementptr inbounds %struct.s2n_debug_info, ptr %363, i32 0, i32 0
  %365 = load ptr, ptr %364, align 8, !tbaa !22
  %366 = getelementptr inbounds i8, ptr %365, i64 21
  %367 = call ptr @strrchr(ptr noundef %366, i32 noundef 47) #7
  %368 = getelementptr inbounds i8, ptr %367, i64 1
  br label %374

369:                                              ; preds = %353
  %370 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %371 = getelementptr inbounds %struct.s2n_debug_info, ptr %370, i32 0, i32 0
  %372 = load ptr, ptr %371, align 8, !tbaa !22
  %373 = getelementptr inbounds i8, ptr %372, i64 21
  br label %374

374:                                              ; preds = %369, %362
  %375 = phi ptr [ %368, %362 ], [ %373, %369 ]
  %376 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %377 = getelementptr inbounds %struct.s2n_debug_info, ptr %376, i32 0, i32 1
  store ptr %375, ptr %377, align 8, !tbaa !24
  %378 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %378, align 4, !tbaa !25
  %379 = call i32 @s2n_calculate_stacktrace()
  br label %380

380:                                              ; preds = %374
  br label %381

381:                                              ; preds = %380
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %687

382:                                              ; No predecessors!
  br label %383

383:                                              ; preds = %382
  br label %384

384:                                              ; preds = %383, %344
  br label %385

385:                                              ; preds = %384
  br label %386

386:                                              ; preds = %385
  br label %387

387:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %388 = getelementptr inbounds %struct.s2n_blob, ptr %18, i32 0, i32 1
  %389 = load i32, ptr %388, align 8, !tbaa !20
  store i32 %389, ptr %27, align 4, !tbaa !25
  %390 = load i32, ptr %27, align 4, !tbaa !25
  %391 = icmp ne i32 %390, 0
  %392 = xor i1 %391, true
  %393 = xor i1 %392, true
  %394 = zext i1 %393 to i32
  %395 = sext i32 %394 to i64
  %396 = call i64 @llvm.expect.i64(i64 %395, i64 1)
  %397 = icmp ne i64 %396, 0
  br i1 %397, label %398, label %456

398:                                              ; preds = %387
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %399 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  %400 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 0
  %401 = load ptr, ptr %400, align 8, !tbaa !12
  %402 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 1
  %403 = load i32, ptr %402, align 8, !tbaa !20
  %404 = zext i32 %403 to i64
  %405 = getelementptr inbounds i8, ptr %401, i64 %404
  %406 = getelementptr inbounds %struct.s2n_blob, ptr %18, i32 0, i32 1
  %407 = load i32, ptr %406, align 8, !tbaa !20
  %408 = zext i32 %407 to i64
  %409 = sub i64 0, %408
  %410 = getelementptr inbounds i8, ptr %405, i64 %409
  %411 = load i32, ptr %27, align 4, !tbaa !25
  %412 = zext i32 %411 to i64
  %413 = call ptr @s2n_ensure_memmove_trace(ptr noundef %399, ptr noundef %410, i64 noundef %412)
  store ptr %413, ptr %28, align 8, !tbaa !5
  br label %414

414:                                              ; preds = %398
  %415 = load ptr, ptr %28, align 8, !tbaa !5
  %416 = icmp ne ptr %415, null
  br i1 %416, label %450, label %417

417:                                              ; preds = %414
  br label %418

418:                                              ; preds = %417
  br label %419

419:                                              ; preds = %418
  %420 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %421 = getelementptr inbounds %struct.s2n_debug_info, ptr %420, i32 0, i32 0
  store ptr @.str.6, ptr %421, align 8, !tbaa !22
  %422 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %423 = getelementptr inbounds %struct.s2n_debug_info, ptr %422, i32 0, i32 0
  %424 = load ptr, ptr %423, align 8, !tbaa !22
  %425 = getelementptr inbounds i8, ptr %424, i64 21
  %426 = call ptr @strrchr(ptr noundef %425, i32 noundef 47) #7
  %427 = icmp ne ptr %426, null
  br i1 %427, label %428, label %435

428:                                              ; preds = %419
  %429 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %430 = getelementptr inbounds %struct.s2n_debug_info, ptr %429, i32 0, i32 0
  %431 = load ptr, ptr %430, align 8, !tbaa !22
  %432 = getelementptr inbounds i8, ptr %431, i64 21
  %433 = call ptr @strrchr(ptr noundef %432, i32 noundef 47) #7
  %434 = getelementptr inbounds i8, ptr %433, i64 1
  br label %440

435:                                              ; preds = %419
  %436 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %437 = getelementptr inbounds %struct.s2n_debug_info, ptr %436, i32 0, i32 0
  %438 = load ptr, ptr %437, align 8, !tbaa !22
  %439 = getelementptr inbounds i8, ptr %438, i64 21
  br label %440

440:                                              ; preds = %435, %428
  %441 = phi ptr [ %434, %428 ], [ %439, %435 ]
  %442 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %443 = getelementptr inbounds %struct.s2n_debug_info, ptr %442, i32 0, i32 1
  store ptr %441, ptr %443, align 8, !tbaa !24
  %444 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %444, align 4, !tbaa !25
  %445 = call i32 @s2n_calculate_stacktrace()
  br label %446

446:                                              ; preds = %440
  br label %447

447:                                              ; preds = %446
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %453

448:                                              ; No predecessors!
  br label %449

449:                                              ; preds = %448
  br label %450

450:                                              ; preds = %449, %414
  br label %451

451:                                              ; preds = %450
  br label %452

452:                                              ; preds = %451
  store i32 0, ptr %21, align 4
  br label %453

453:                                              ; preds = %452, %447
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  %454 = load i32, ptr %21, align 4
  switch i32 %454, label %457 [
    i32 0, label %455
  ]

455:                                              ; preds = %453
  br label %456

456:                                              ; preds = %455, %387
  store i32 0, ptr %21, align 4
  br label %457

457:                                              ; preds = %456, %453
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  %458 = load i32, ptr %21, align 4
  switch i32 %458, label %687 [
    i32 0, label %459
  ]

459:                                              ; preds = %457
  br label %460

460:                                              ; preds = %459
  br label %461

461:                                              ; preds = %460
  br label %462

462:                                              ; preds = %461
  %463 = load ptr, ptr %10, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %463, i32 0, i32 6
  %465 = load ptr, ptr %464, align 8, !tbaa !15
  %466 = getelementptr inbounds %struct.s2n_record_algorithm, ptr %465, i32 0, i32 0
  %467 = load ptr, ptr %466, align 8, !tbaa !17
  %468 = getelementptr inbounds %struct.s2n_cipher, ptr %467, i32 0, i32 1
  %469 = getelementptr inbounds %struct.s2n_composite_cipher, ptr %468, i32 0, i32 3
  %470 = load ptr, ptr %469, align 8, !tbaa !9
  %471 = load ptr, ptr %17, align 8, !tbaa !5
  %472 = call i32 %470(ptr noundef %471, ptr noundef %18, ptr noundef %22, ptr noundef %22)
  %473 = icmp sgt i32 %472, -1
  br i1 %473, label %475, label %474

474:                                              ; preds = %462
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %687

475:                                              ; preds = %462
  br label %476

476:                                              ; preds = %475
  br label %477

477:                                              ; preds = %476
  br label %478

478:                                              ; preds = %477
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %479 = getelementptr inbounds %struct.s2n_blob, ptr %18, i32 0, i32 1
  %480 = load i32, ptr %479, align 8, !tbaa !20
  store i32 %480, ptr %29, align 4, !tbaa !25
  %481 = load i32, ptr %29, align 4, !tbaa !25
  %482 = icmp ne i32 %481, 0
  %483 = xor i1 %482, true
  %484 = xor i1 %483, true
  %485 = zext i1 %484 to i32
  %486 = sext i32 %485 to i64
  %487 = call i64 @llvm.expect.i64(i64 %486, i64 1)
  %488 = icmp ne i64 %487, 0
  br i1 %488, label %489, label %537

489:                                              ; preds = %478
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %490 = load ptr, ptr %14, align 8, !tbaa !5
  %491 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  %492 = load i32, ptr %29, align 4, !tbaa !25
  %493 = zext i32 %492 to i64
  %494 = call ptr @s2n_ensure_memmove_trace(ptr noundef %490, ptr noundef %491, i64 noundef %493)
  store ptr %494, ptr %30, align 8, !tbaa !5
  br label %495

495:                                              ; preds = %489
  %496 = load ptr, ptr %30, align 8, !tbaa !5
  %497 = icmp ne ptr %496, null
  br i1 %497, label %531, label %498

498:                                              ; preds = %495
  br label %499

499:                                              ; preds = %498
  br label %500

500:                                              ; preds = %499
  %501 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %502 = getelementptr inbounds %struct.s2n_debug_info, ptr %501, i32 0, i32 0
  store ptr @.str.7, ptr %502, align 8, !tbaa !22
  %503 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %504 = getelementptr inbounds %struct.s2n_debug_info, ptr %503, i32 0, i32 0
  %505 = load ptr, ptr %504, align 8, !tbaa !22
  %506 = getelementptr inbounds i8, ptr %505, i64 21
  %507 = call ptr @strrchr(ptr noundef %506, i32 noundef 47) #7
  %508 = icmp ne ptr %507, null
  br i1 %508, label %509, label %516

509:                                              ; preds = %500
  %510 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %511 = getelementptr inbounds %struct.s2n_debug_info, ptr %510, i32 0, i32 0
  %512 = load ptr, ptr %511, align 8, !tbaa !22
  %513 = getelementptr inbounds i8, ptr %512, i64 21
  %514 = call ptr @strrchr(ptr noundef %513, i32 noundef 47) #7
  %515 = getelementptr inbounds i8, ptr %514, i64 1
  br label %521

516:                                              ; preds = %500
  %517 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %518 = getelementptr inbounds %struct.s2n_debug_info, ptr %517, i32 0, i32 0
  %519 = load ptr, ptr %518, align 8, !tbaa !22
  %520 = getelementptr inbounds i8, ptr %519, i64 21
  br label %521

521:                                              ; preds = %516, %509
  %522 = phi ptr [ %515, %509 ], [ %520, %516 ]
  %523 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %524 = getelementptr inbounds %struct.s2n_debug_info, ptr %523, i32 0, i32 1
  store ptr %522, ptr %524, align 8, !tbaa !24
  %525 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %525, align 4, !tbaa !25
  %526 = call i32 @s2n_calculate_stacktrace()
  br label %527

527:                                              ; preds = %521
  br label %528

528:                                              ; preds = %527
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %534

529:                                              ; No predecessors!
  br label %530

530:                                              ; preds = %529
  br label %531

531:                                              ; preds = %530, %495
  br label %532

532:                                              ; preds = %531
  br label %533

533:                                              ; preds = %532
  store i32 0, ptr %21, align 4
  br label %534

534:                                              ; preds = %533, %528
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  %535 = load i32, ptr %21, align 4
  switch i32 %535, label %538 [
    i32 0, label %536
  ]

536:                                              ; preds = %534
  br label %537

537:                                              ; preds = %536, %478
  store i32 0, ptr %21, align 4
  br label %538

538:                                              ; preds = %537, %534
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  %539 = load i32, ptr %21, align 4
  switch i32 %539, label %687 [
    i32 0, label %540
  ]

540:                                              ; preds = %538
  br label %541

541:                                              ; preds = %540
  br label %542

542:                                              ; preds = %541
  br label %543

543:                                              ; preds = %542
  %544 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 1
  %545 = load i32, ptr %544, align 8, !tbaa !20
  %546 = icmp ugt i32 %545, 0
  br i1 %546, label %580, label %547

547:                                              ; preds = %543
  br label %548

548:                                              ; preds = %547
  br label %549

549:                                              ; preds = %548
  %550 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %551 = getelementptr inbounds %struct.s2n_debug_info, ptr %550, i32 0, i32 0
  store ptr @.str.8, ptr %551, align 8, !tbaa !22
  %552 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %553 = getelementptr inbounds %struct.s2n_debug_info, ptr %552, i32 0, i32 0
  %554 = load ptr, ptr %553, align 8, !tbaa !22
  %555 = getelementptr inbounds i8, ptr %554, i64 21
  %556 = call ptr @strrchr(ptr noundef %555, i32 noundef 47) #7
  %557 = icmp ne ptr %556, null
  br i1 %557, label %558, label %565

558:                                              ; preds = %549
  %559 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %560 = getelementptr inbounds %struct.s2n_debug_info, ptr %559, i32 0, i32 0
  %561 = load ptr, ptr %560, align 8, !tbaa !22
  %562 = getelementptr inbounds i8, ptr %561, i64 21
  %563 = call ptr @strrchr(ptr noundef %562, i32 noundef 47) #7
  %564 = getelementptr inbounds i8, ptr %563, i64 1
  br label %570

565:                                              ; preds = %549
  %566 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %567 = getelementptr inbounds %struct.s2n_debug_info, ptr %566, i32 0, i32 0
  %568 = load ptr, ptr %567, align 8, !tbaa !22
  %569 = getelementptr inbounds i8, ptr %568, i64 21
  br label %570

570:                                              ; preds = %565, %558
  %571 = phi ptr [ %564, %558 ], [ %569, %565 ]
  %572 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %573 = getelementptr inbounds %struct.s2n_debug_info, ptr %572, i32 0, i32 1
  store ptr %571, ptr %573, align 8, !tbaa !24
  %574 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %574, align 4, !tbaa !25
  %575 = call i32 @s2n_calculate_stacktrace()
  br label %576

576:                                              ; preds = %570
  br label %577

577:                                              ; preds = %576
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %687

578:                                              ; No predecessors!
  br label %579

579:                                              ; preds = %578
  br label %580

580:                                              ; preds = %579, %543
  br label %581

581:                                              ; preds = %580
  br label %582

582:                                              ; preds = %581
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !25
  br label %583

583:                                              ; preds = %582
  %584 = load i16, ptr %23, align 2, !tbaa !10
  %585 = zext i16 %584 to i32
  %586 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 0
  %587 = load ptr, ptr %586, align 8, !tbaa !12
  %588 = getelementptr inbounds %struct.s2n_blob, ptr %22, i32 0, i32 1
  %589 = load i32, ptr %588, align 8, !tbaa !20
  %590 = sub i32 %589, 1
  %591 = zext i32 %590 to i64
  %592 = getelementptr inbounds i8, ptr %587, i64 %591
  %593 = load i8, ptr %592, align 1, !tbaa !9
  %594 = zext i8 %593 to i32
  %595 = add nsw i32 %594, 1
  %596 = call i32 @s2n_sub_overflow(i32 noundef %585, i32 noundef %595, ptr noundef %31)
  %597 = icmp sgt i32 %596, -1
  br i1 %597, label %599, label %598

598:                                              ; preds = %583
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %686

599:                                              ; preds = %583
  br label %600

600:                                              ; preds = %599
  br label %601

601:                                              ; preds = %600
  %602 = load i32, ptr %31, align 4, !tbaa !25
  %603 = trunc i32 %602 to i16
  store i16 %603, ptr %23, align 2, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #6
  %604 = getelementptr inbounds %struct.s2n_blob, ptr %32, i32 0, i32 0
  %605 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %605, ptr %604, align 8, !tbaa !12
  %606 = getelementptr inbounds %struct.s2n_blob, ptr %32, i32 0, i32 1
  store i32 8, ptr %606, align 8, !tbaa !20
  %607 = getelementptr inbounds %struct.s2n_blob, ptr %32, i32 0, i32 2
  store i32 0, ptr %607, align 4, !tbaa !21
  %608 = getelementptr inbounds %struct.s2n_blob, ptr %32, i32 0, i32 3
  %609 = load i8, ptr %608, align 8
  %610 = and i8 %609, -2
  %611 = or i8 %610, 0
  store i8 %611, ptr %608, align 8
  br label %612

612:                                              ; preds = %601
  %613 = call i32 @s2n_increment_sequence_number(ptr noundef %32)
  %614 = icmp sgt i32 %613, -1
  br i1 %614, label %616, label %615

615:                                              ; preds = %612
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %685

616:                                              ; preds = %612
  br label %617

617:                                              ; preds = %616
  br label %618

618:                                              ; preds = %617
  br label %619

619:                                              ; preds = %618
  %620 = load ptr, ptr %11, align 8, !tbaa !5
  %621 = getelementptr inbounds %struct.s2n_connection, ptr %620, i32 0, i32 40
  %622 = call i32 @s2n_stuffer_reread(ptr noundef %621)
  %623 = icmp sgt i32 %622, -1
  br i1 %623, label %625, label %624

624:                                              ; preds = %619
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %685

625:                                              ; preds = %619
  br label %626

626:                                              ; preds = %625
  br label %627

627:                                              ; preds = %626
  br label %628

628:                                              ; preds = %627
  %629 = load ptr, ptr %11, align 8, !tbaa !5
  %630 = getelementptr inbounds %struct.s2n_connection, ptr %629, i32 0, i32 38
  %631 = call i32 @s2n_stuffer_reread(ptr noundef %630)
  %632 = icmp sgt i32 %631, -1
  br i1 %632, label %634, label %633

633:                                              ; preds = %628
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %685

634:                                              ; preds = %628
  br label %635

635:                                              ; preds = %634
  br label %636

636:                                              ; preds = %635
  %637 = load ptr, ptr %11, align 8, !tbaa !5
  %638 = getelementptr inbounds %struct.s2n_connection, ptr %637, i32 0, i32 23
  %639 = load i8, ptr %638, align 4, !tbaa !29
  %640 = zext i8 %639 to i32
  %641 = icmp sgt i32 %640, 31
  br i1 %641, label %642, label %661

642:                                              ; preds = %636
  br label %643

643:                                              ; preds = %642
  %644 = load ptr, ptr %11, align 8, !tbaa !5
  %645 = getelementptr inbounds %struct.s2n_connection, ptr %644, i32 0, i32 40
  %646 = load ptr, ptr %10, align 8, !tbaa !5
  %647 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %646, i32 0, i32 6
  %648 = load ptr, ptr %647, align 8, !tbaa !15
  %649 = getelementptr inbounds %struct.s2n_record_algorithm, ptr %648, i32 0, i32 0
  %650 = load ptr, ptr %649, align 8, !tbaa !17
  %651 = getelementptr inbounds %struct.s2n_cipher, ptr %650, i32 0, i32 1
  %652 = getelementptr inbounds %struct.s2n_composite_cipher, ptr %651, i32 0, i32 1
  %653 = load i8, ptr %652, align 1, !tbaa !9
  %654 = zext i8 %653 to i32
  %655 = call i32 @s2n_stuffer_skip_read(ptr noundef %645, i32 noundef %654)
  %656 = icmp sgt i32 %655, -1
  br i1 %656, label %658, label %657

657:                                              ; preds = %643
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %685

658:                                              ; preds = %643
  br label %659

659:                                              ; preds = %658
  br label %660

660:                                              ; preds = %659
  br label %661

661:                                              ; preds = %660, %636
  br label %662

662:                                              ; preds = %661
  %663 = load ptr, ptr %11, align 8, !tbaa !5
  %664 = getelementptr inbounds %struct.s2n_connection, ptr %663, i32 0, i32 40
  %665 = load ptr, ptr %11, align 8, !tbaa !5
  %666 = getelementptr inbounds %struct.s2n_connection, ptr %665, i32 0, i32 40
  %667 = getelementptr inbounds %struct.s2n_stuffer, ptr %666, i32 0, i32 2
  %668 = load i32, ptr %667, align 4, !tbaa !54
  %669 = load ptr, ptr %11, align 8, !tbaa !5
  %670 = getelementptr inbounds %struct.s2n_connection, ptr %669, i32 0, i32 40
  %671 = getelementptr inbounds %struct.s2n_stuffer, ptr %670, i32 0, i32 1
  %672 = load i32, ptr %671, align 8, !tbaa !55
  %673 = sub i32 %668, %672
  %674 = load i16, ptr %23, align 2, !tbaa !10
  %675 = zext i16 %674 to i32
  %676 = sub i32 %673, %675
  %677 = call i32 @s2n_stuffer_wipe_n(ptr noundef %664, i32 noundef %676)
  %678 = icmp sgt i32 %677, -1
  br i1 %678, label %680, label %679

679:                                              ; preds = %662
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %685

680:                                              ; preds = %662
  br label %681

681:                                              ; preds = %680
  br label %682

682:                                              ; preds = %681
  %683 = load ptr, ptr %11, align 8, !tbaa !5
  %684 = getelementptr inbounds %struct.s2n_connection, ptr %683, i32 0, i32 42
  store i32 1, ptr %684, align 8, !tbaa !56
  store i32 0, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %685

685:                                              ; preds = %682, %679, %657, %633, %624, %615
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  br label %686

686:                                              ; preds = %685, %598
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %687

687:                                              ; preds = %686, %577, %538, %474, %457, %381, %338, %300, %263, %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %688

688:                                              ; preds = %687, %193, %153
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #6
  br label %689

689:                                              ; preds = %688, %140
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %690

690:                                              ; preds = %689, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  %691 = load i32, ptr %9, align 4
  ret i32 %691
}

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

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

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

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

declare i32 @s2n_calculate_stacktrace() #2

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

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

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

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

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

declare i32 @s2n_increment_sequence_number(ptr noundef) #2

declare i32 @s2n_stuffer_reread(ptr noundef) #2

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

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

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 willreturn memory(argmem: readwrite) }
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 speculatable willreturn memory(none) }
attributes #4 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"s2n_blob", !6, i64 0, !14, i64 8, !14, i64 12, !14, i64 16}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 48}
!16 = !{!"s2n_cipher_suite", !14, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !6, i64 32, !14, i64 40, !6, i64 48, !7, i64 56, !7, i64 72, !6, i64 80, !6, i64 88, !14, i64 96, !7, i64 100}
!17 = !{!18, !6, i64 0}
!18 = !{!"s2n_record_algorithm", !6, i64 0, !14, i64 8, !14, i64 12, !19, i64 16}
!19 = !{!"long", !7, i64 0}
!20 = !{!13, !14, i64 8}
!21 = !{!13, !14, i64 12}
!22 = !{!23, !6, i64 0}
!23 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!24 = !{!23, !6, i64 8}
!25 = !{!14, !14, i64 0}
!26 = !{!27, !14, i64 0}
!27 = !{!"s2n_hmac_state", !14, i64 0, !11, i64 4, !14, i64 8, !11, i64 12, !7, i64 14, !28, i64 16, !28, i64 72, !28, i64 128, !28, i64 184, !7, i64 240, !7, i64 368}
!28 = !{!"s2n_hash_state", !6, i64 0, !14, i64 8, !7, i64 12, !19, i64 16, !7, i64 24}
!29 = !{!30, !7, i64 220}
!30 = !{!"s2n_connection", !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 0, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 1, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !14, 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, !14, i64 148, !14, i64 152, !31, i64 160, !19, i64 168, !19, i64 176, !7, i64 184, !7, i64 216, !7, i64 217, !7, i64 218, !7, i64 219, !7, i64 220, !7, i64 221, !7, i64 222, !6, i64 224, !6, i64 232, !32, i64 240, !6, i64 632, !6, i64 640, !33, i64 648, !39, i64 1144, !42, i64 1688, !6, i64 1752, !7, i64 1760, !14, i64 1764, !7, i64 1768, !44, i64 1776, !44, i64 1816, !44, i64 1856, !44, i64 1896, !14, i64 1936, !19, i64 1944, !7, i64 1952, !44, i64 1960, !7, i64 2000, !7, i64 2001, !7, i64 2002, !38, i64 2003, !45, i64 2004, !45, i64 2008, !46, i64 2016, !11, i64 2208, !14, i64 2212, !11, i64 2216, !19, i64 2224, !7, i64 2232, !19, i64 2240, !19, i64 2248, !19, i64 2256, !45, i64 2264, !45, i64 2268, !7, i64 2272, !7, i64 2528, !14, i64 2784, !13, i64 2792, !14, i64 2816, !13, i64 2824, !13, i64 2848, !13, i64 2872, !48, i64 2896, !50, i64 3704, !6, i64 3760, !6, i64 3768, !7, i64 3776, !14, i64 3780, !13, i64 3784, !14, i64 3808, !52, i64 3816, !7, i64 3848, !44, i64 3992, !13, i64 4032, !13, i64 4056, !38, i64 4080, !38, i64 4081, !38, i64 4082, !11, i64 4084, !11, i64 4086, !14, i64 4088, !14, i64 4092, !13, i64 4096, !14, i64 4120, !53, i64 4128, !45, i64 4176, !7, i64 4180, !7, i64 4181}
!31 = !{!"s2n_timer", !19, i64 0}
!32 = !{!"s2n_secrets", !7, i64 0, !14, i64 388}
!33 = !{!"s2n_kex_parameters", !34, i64 0, !35, i64 8, !7, i64 24, !35, i64 56, !36, i64 72, !36, i64 184, !7, i64 296, !37, i64 360, !13, i64 448, !13, i64 472}
!34 = !{!"s2n_dh_params", !6, i64 0}
!35 = !{!"s2n_ecc_evp_params", !6, i64 0, !6, i64 8}
!36 = !{!"s2n_kem_group_params", !6, i64 0, !37, i64 8, !35, i64 96}
!37 = !{!"s2n_kem_params", !6, i64 0, !13, i64 8, !13, i64 32, !13, i64 56, !38, i64 80}
!38 = !{!"_Bool", !7, i64 0}
!39 = !{!"s2n_handshake_parameters", !40, i64 0, !40, i64 48, !13, i64 96, !14, i64 120, !41, 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}
!40 = !{!"s2n_pkey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!41 = !{!"s2n_sig_scheme_list", !7, i64 0, !7, i64 256}
!42 = !{!"s2n_psk_parameters", !14, i64 0, !43, i64 8, !11, i64 40, !11, i64 42, !6, i64 48, !14, i64 56}
!43 = !{!"s2n_array", !13, i64 0, !14, i64 24, !14, i64 28}
!44 = !{!"s2n_stuffer", !13, i64 0, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 36, !14, i64 36}
!45 = !{!"", !14, i64 0}
!46 = !{!"s2n_handshake", !44, i64 0, !6, i64 40, !7, i64 48, !7, i64 56, !7, i64 104, !7, i64 152, !14, i64 156, !14, i64 160, !14, i64 164, !14, i64 168, !47, i64 176, !14, i64 184, !14, i64 184, !14, i64 184, !14, i64 184, !14, i64 188}
!47 = !{!"s2n_offered_early_data", !6, i64 0}
!48 = !{!"s2n_client_hello", !13, i64 0, !49, i64 24, !13, i64 728, !13, i64 752, !13, i64 776, !7, i64 800, !7, i64 801, !14, i64 802, !14, i64 802, !14, i64 802, !14, i64 802, !14, i64 802, !14, i64 802, !14, i64 802}
!49 = !{!"", !7, i64 0, !13, i64 672, !11, i64 696}
!50 = !{!"s2n_x509_validator", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !11, i64 18, !6, i64 24, !14, i64 32, !6, i64 40, !51, i64 48, !38, i64 52}
!51 = !{!"s2n_cert_validation_info", !14, i64 0, !14, i64 0}
!52 = !{!"s2n_ticket_fields", !13, i64 0, !14, i64 24}
!53 = !{!"s2n_post_handshake", !44, i64 0, !7, i64 40}
!54 = !{!30, !14, i64 1884}
!55 = !{!30, !14, i64 1880}
!56 = !{!30, !14, i64 1936}


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

@.str = external hidden unnamed_addr constant [101 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 [101 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [101 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_record_parse_composite(ptr nocapture noundef readonly %0, ptr noundef %1, i8 noundef zeroext %2, i16 noundef zeroext %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = alloca %struct.s2n_blob, align 8
  %10 = alloca [16 x i8], align 16
  %11 = alloca %struct.s2n_blob, align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.s2n_blob, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  store ptr %4, ptr %9, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %9, i64 8
  %18 = getelementptr inbounds i8, ptr %0, i64 48
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = getelementptr inbounds i8, ptr %20, i64 9
  %22 = load i8, ptr %21, align 1, !tbaa !16
  %23 = zext i8 %22 to i32
  store i32 %23, ptr %17, align 8, !tbaa !17
  %24 = getelementptr inbounds i8, ptr %9, i64 12
  store i32 0, ptr %24, align 4, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %9, i64 16
  store i8 0, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %26 = getelementptr inbounds i8, ptr %1, i64 1776
  %27 = tail call ptr @s2n_stuffer_raw_read(ptr noundef nonnull %26, i32 noundef 5) #5
  %.not = icmp eq ptr %27, null
  br i1 %.not, label %28, label %36

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

36:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  %37 = getelementptr inbounds i8, ptr %1, i64 1856
  %38 = zext i16 %3 to i32
  %39 = tail call ptr @s2n_stuffer_raw_read(ptr noundef nonnull %37, i32 noundef %38) #5
  store ptr %39, ptr %11, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %38, ptr %40, align 8, !tbaa !17
  %41 = getelementptr inbounds i8, ptr %11, i64 12
  store i32 0, ptr %41, align 4, !tbaa !18
  %42 = getelementptr inbounds i8, ptr %11, i64 16
  store i8 0, ptr %42, align 8
  %.not74 = icmp eq ptr %39, null
  br i1 %.not74, label %43, label %51

43:                                               ; preds = %36
  %44 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.1, ptr %44, align 8, !tbaa !19
  %45 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.1, i64 21), i32 noundef 47) #6
  %.not75 = icmp eq ptr %45, null
  %46 = getelementptr inbounds i8, ptr %45, i64 1
  %47 = select i1 %.not75, ptr getelementptr inbounds (i8, ptr @.str.1, i64 21), ptr %46
  %48 = getelementptr inbounds i8, ptr %44, i64 8
  store ptr %47, ptr %48, align 8, !tbaa !21
  %49 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %49, align 4, !tbaa !22
  %50 = tail call i32 @s2n_calculate_stacktrace() #5
  br label %217

51:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  store i8 0, ptr %12, align 1, !tbaa !16
  %52 = load i32, ptr %5, align 8, !tbaa !23
  %53 = call i32 @s2n_hmac_digest_size(i32 noundef %52, ptr noundef nonnull %12) #5
  %54 = icmp sgt i32 %53, -1
  br i1 %54, label %55, label %216

55:                                               ; preds = %51
  %56 = load i8, ptr %12, align 1, !tbaa !16
  %57 = zext i8 %56 to i16
  %.not76 = icmp ugt i16 %57, %3
  br i1 %.not76, label %58, label %66

58:                                               ; preds = %55
  %59 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.2, ptr %59, align 8, !tbaa !19
  %60 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.2, i64 21), i32 noundef 47) #6
  %.not77 = icmp eq ptr %60, null
  %61 = getelementptr inbounds i8, ptr %60, i64 1
  %62 = select i1 %.not77, ptr getelementptr inbounds (i8, ptr @.str.2, i64 21), ptr %61
  %63 = getelementptr inbounds i8, ptr %59, i64 8
  store ptr %62, ptr %63, align 8, !tbaa !21
  %64 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %64, align 4, !tbaa !22
  %65 = call i32 @s2n_calculate_stacktrace() #5
  br label %216

66:                                               ; preds = %55
  %67 = sub i16 %3, %57
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  store i32 0, ptr %13, align 4, !tbaa !22
  %68 = load ptr, ptr %18, align 8, !tbaa !11
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = getelementptr inbounds i8, ptr %69, i64 40
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = getelementptr inbounds i8, ptr %1, i64 220
  %73 = load i8, ptr %72, align 4, !tbaa !27
  %74 = zext i8 %73 to i16
  %75 = call i32 %71(ptr noundef %7, ptr noundef %6, i8 noundef zeroext %2, i16 noundef zeroext %74, i16 noundef zeroext %67, ptr noundef nonnull %13) #5
  %76 = icmp sgt i32 %75, -1
  br i1 %76, label %77, label %215

77:                                               ; preds = %66
  %78 = zext i16 %67 to i32
  %79 = load i32, ptr %13, align 4, !tbaa !22
  %.not78 = icmp sgt i32 %79, %78
  br i1 %.not78, label %80, label %88

80:                                               ; preds = %77
  %81 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.3, ptr %81, align 8, !tbaa !19
  %82 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.3, i64 21), i32 noundef 47) #6
  %.not79 = icmp eq ptr %82, null
  %83 = getelementptr inbounds i8, ptr %82, i64 1
  %84 = select i1 %.not79, ptr getelementptr inbounds (i8, ptr @.str.3, i64 21), ptr %83
  %85 = getelementptr inbounds i8, ptr %81, i64 8
  store ptr %84, ptr %85, align 8, !tbaa !21
  %86 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %86, align 4, !tbaa !22
  %87 = call i32 @s2n_calculate_stacktrace() #5
  br label %215

88:                                               ; preds = %77
  %89 = trunc i32 %79 to i16
  %90 = sub i16 %67, %89
  %91 = load i8, ptr %72, align 4, !tbaa !27
  %92 = icmp ugt i8 %91, 31
  br i1 %92, label %93, label %104

93:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  store i32 0, ptr %14, align 4, !tbaa !22
  %94 = zext i16 %90 to i32
  %95 = load ptr, ptr %18, align 8, !tbaa !11
  %96 = load ptr, ptr %95, align 8, !tbaa !13
  %97 = getelementptr inbounds i8, ptr %96, i64 9
  %98 = load i8, ptr %97, align 1, !tbaa !16
  %99 = zext i8 %98 to i32
  %100 = call i32 @s2n_sub_overflow(i32 noundef %94, i32 noundef %99, ptr noundef nonnull %14) #5
  %101 = icmp sgt i32 %100, -1
  %102 = load i32, ptr %14, align 4
  %103 = trunc i32 %102 to i16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  br i1 %101, label %104, label %215

104:                                              ; preds = %88, %93
  %.158 = phi i16 [ %103, %93 ], [ %90, %88 ]
  %.not80 = icmp eq i16 %3, 0
  br i1 %.not80, label %105, label %113

105:                                              ; preds = %104
  %106 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.4, ptr %106, align 8, !tbaa !19
  %107 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.4, i64 21), i32 noundef 47) #6
  %.not81 = icmp eq ptr %107, null
  %108 = getelementptr inbounds i8, ptr %107, i64 1
  %109 = select i1 %.not81, ptr getelementptr inbounds (i8, ptr @.str.4, i64 21), ptr %108
  %110 = getelementptr inbounds i8, ptr %106, i64 8
  store ptr %109, ptr %110, align 8, !tbaa !21
  %111 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %111, align 4, !tbaa !22
  %112 = call i32 @s2n_calculate_stacktrace() #5
  br label %215

113:                                              ; preds = %104
  %.rhs.trunc = zext i8 %22 to i16
  %114 = urem i16 %3, %.rhs.trunc
  %115 = icmp eq i16 %114, 0
  br i1 %115, label %124, label %116

116:                                              ; preds = %113
  %117 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.5, ptr %117, align 8, !tbaa !19
  %118 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.5, i64 21), i32 noundef 47) #6
  %.not82 = icmp eq ptr %118, null
  %119 = getelementptr inbounds i8, ptr %118, i64 1
  %120 = select i1 %.not82, ptr getelementptr inbounds (i8, ptr @.str.5, i64 21), ptr %119
  %121 = getelementptr inbounds i8, ptr %117, i64 8
  store ptr %120, ptr %121, align 8, !tbaa !21
  %122 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %122, align 4, !tbaa !22
  %123 = call i32 @s2n_calculate_stacktrace() #5
  br label %215

124:                                              ; preds = %113
  %125 = zext i16 %3 to i64
  %126 = getelementptr inbounds i8, ptr %39, i64 %125
  %127 = zext i8 %22 to i64
  %128 = sub nsw i64 0, %127
  %129 = getelementptr inbounds i8, ptr %126, i64 %128
  %130 = call ptr @s2n_ensure_memmove_trace(ptr noundef nonnull %10, ptr noundef nonnull %129, i64 noundef %127) #5
  %.not83.not.not = icmp eq ptr %130, null
  br i1 %.not83.not.not, label %.critedge, label %.critedge94

.critedge:                                        ; preds = %124
  %131 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.6, ptr %131, align 8, !tbaa !19
  %132 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.6, i64 21), i32 noundef 47) #6
  %.not84 = icmp eq ptr %132, null
  %133 = getelementptr inbounds i8, ptr %132, i64 1
  %134 = select i1 %.not84, ptr getelementptr inbounds (i8, ptr @.str.6, i64 21), ptr %133
  %135 = getelementptr inbounds i8, ptr %131, i64 8
  store ptr %134, ptr %135, align 8, !tbaa !21
  %136 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %136, align 4, !tbaa !22
  %137 = call i32 @s2n_calculate_stacktrace() #5
  br label %215

.critedge94:                                      ; preds = %124
  %138 = load ptr, ptr %18, align 8, !tbaa !11
  %139 = load ptr, ptr %138, align 8, !tbaa !13
  %140 = getelementptr inbounds i8, ptr %139, i64 16
  %141 = load ptr, ptr %140, align 8, !tbaa !16
  %142 = call i32 %141(ptr noundef %7, ptr noundef nonnull %9, ptr noundef nonnull %11, ptr noundef nonnull %11) #5
  %143 = icmp sgt i32 %142, -1
  br i1 %143, label %144, label %215

144:                                              ; preds = %.critedge94
  %145 = load i32, ptr %17, align 8, !tbaa !17
  %.not85 = icmp eq i32 %145, 0
  br i1 %.not85, label %.critedge93, label %146, !prof !52

146:                                              ; preds = %144
  %147 = zext i32 %145 to i64
  %148 = call ptr @s2n_ensure_memmove_trace(ptr noundef %4, ptr noundef nonnull %10, i64 noundef %147) #5
  %.not86.not = icmp eq ptr %148, null
  br i1 %.not86.not, label %149, label %.critedge93

149:                                              ; preds = %146
  %150 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.7, ptr %150, align 8, !tbaa !19
  %151 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.7, i64 21), i32 noundef 47) #6
  %.not87 = icmp eq ptr %151, null
  %152 = getelementptr inbounds i8, ptr %151, i64 1
  %153 = select i1 %.not87, ptr getelementptr inbounds (i8, ptr @.str.7, i64 21), ptr %152
  %154 = getelementptr inbounds i8, ptr %150, i64 8
  store ptr %153, ptr %154, align 8, !tbaa !21
  %155 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %155, align 4, !tbaa !22
  %156 = call i32 @s2n_calculate_stacktrace() #5
  br label %215

.critedge93:                                      ; preds = %146, %144
  %157 = load i32, ptr %40, align 8, !tbaa !17
  %.not88 = icmp eq i32 %157, 0
  br i1 %.not88, label %158, label %166

158:                                              ; preds = %.critedge93
  %159 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.8, ptr %159, align 8, !tbaa !19
  %160 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.8, i64 21), i32 noundef 47) #6
  %.not89 = icmp eq ptr %160, null
  %161 = getelementptr inbounds i8, ptr %160, i64 1
  %162 = select i1 %.not89, ptr getelementptr inbounds (i8, ptr @.str.8, i64 21), ptr %161
  %163 = getelementptr inbounds i8, ptr %159, i64 8
  store ptr %162, ptr %163, align 8, !tbaa !21
  %164 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %164, align 4, !tbaa !22
  %165 = call i32 @s2n_calculate_stacktrace() #5
  br label %215

166:                                              ; preds = %.critedge93
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  store i32 0, ptr %15, align 4, !tbaa !22
  %167 = zext i16 %.158 to i32
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = add i32 %157, -1
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds i8, ptr %168, i64 %170
  %172 = load i8, ptr %171, align 1, !tbaa !16
  %173 = zext i8 %172 to i32
  %174 = add nuw nsw i32 %173, 1
  %175 = call i32 @s2n_sub_overflow(i32 noundef %167, i32 noundef %174, ptr noundef nonnull %15) #5
  %176 = icmp sgt i32 %175, -1
  br i1 %176, label %177, label %214

177:                                              ; preds = %166
  %178 = load i32, ptr %15, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #5
  store ptr %6, ptr %16, align 8, !tbaa !5
  %179 = getelementptr inbounds i8, ptr %16, i64 8
  store i32 8, ptr %179, align 8, !tbaa !17
  %180 = getelementptr inbounds i8, ptr %16, i64 12
  store i32 0, ptr %180, align 4, !tbaa !18
  %181 = getelementptr inbounds i8, ptr %16, i64 16
  store i8 0, ptr %181, align 8
  %182 = call i32 @s2n_increment_sequence_number(ptr noundef nonnull %16) #5
  %183 = icmp sgt i32 %182, -1
  br i1 %183, label %184, label %213

184:                                              ; preds = %177
  %185 = call i32 @s2n_stuffer_reread(ptr noundef nonnull %37) #5
  %186 = icmp sgt i32 %185, -1
  br i1 %186, label %187, label %213

187:                                              ; preds = %184
  %188 = call i32 @s2n_stuffer_reread(ptr noundef nonnull %26) #5
  %189 = icmp sgt i32 %188, -1
  br i1 %189, label %190, label %213

190:                                              ; preds = %187
  %191 = load i8, ptr %72, align 4, !tbaa !27
  %192 = icmp ugt i8 %191, 31
  br i1 %192, label %193, label %201

193:                                              ; preds = %190
  %194 = load ptr, ptr %18, align 8, !tbaa !11
  %195 = load ptr, ptr %194, align 8, !tbaa !13
  %196 = getelementptr inbounds i8, ptr %195, i64 9
  %197 = load i8, ptr %196, align 1, !tbaa !16
  %198 = zext i8 %197 to i32
  %199 = call i32 @s2n_stuffer_skip_read(ptr noundef nonnull %37, i32 noundef %198) #5
  %200 = icmp sgt i32 %199, -1
  br i1 %200, label %201, label %213

201:                                              ; preds = %190, %193
  %202 = getelementptr inbounds i8, ptr %1, i64 1884
  %203 = load i32, ptr %202, align 4, !tbaa !53
  %204 = getelementptr inbounds i8, ptr %1, i64 1880
  %205 = load i32, ptr %204, align 8, !tbaa !54
  %206 = and i32 %178, 65535
  %207 = add i32 %206, %205
  %208 = sub i32 %203, %207
  %209 = call i32 @s2n_stuffer_wipe_n(ptr noundef nonnull %37, i32 noundef %208) #5
  %210 = icmp sgt i32 %209, -1
  br i1 %210, label %211, label %213

211:                                              ; preds = %201
  %212 = getelementptr inbounds i8, ptr %1, i64 1936
  store i32 1, ptr %212, align 8, !tbaa !55
  br label %213

213:                                              ; preds = %201, %193, %187, %184, %177, %211
  %.8 = phi i32 [ 0, %211 ], [ -1, %177 ], [ -1, %184 ], [ -1, %187 ], [ -1, %193 ], [ -1, %201 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #5
  br label %214

214:                                              ; preds = %166, %213
  %.9 = phi i32 [ %.8, %213 ], [ -1, %166 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  br label %215

215:                                              ; preds = %149, %.critedge, %.critedge94, %66, %93, %214, %158, %116, %105, %80
  %.10 = phi i32 [ %.9, %214 ], [ -1, %158 ], [ -1, %.critedge ], [ -1, %116 ], [ -1, %105 ], [ -1, %93 ], [ -1, %80 ], [ -1, %66 ], [ -1, %.critedge94 ], [ -1, %149 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  br label %216

216:                                              ; preds = %51, %215, %58
  %.11 = phi i32 [ %.10, %215 ], [ -1, %58 ], [ -1, %51 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  br label %217

217:                                              ; preds = %216, %43
  %.12 = phi i32 [ %.11, %216 ], [ -1, %43 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %218

218:                                              ; preds = %217, %28
  %.13 = phi i32 [ %.12, %217 ], [ -1, %28 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  ret i32 %.13
}

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

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

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

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #2

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

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

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

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

declare i32 @s2n_increment_sequence_number(ptr noundef) local_unnamed_addr #2

declare i32 @s2n_stuffer_reread(ptr noundef) local_unnamed_addr #2

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

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

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 willreturn memory(argmem: readwrite) }
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 speculatable willreturn memory(none) }
attributes #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"s2n_blob", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 48}
!12 = !{!"s2n_cipher_suite", !10, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !8, i64 56, !8, i64 72, !7, i64 80, !7, i64 88, !10, i64 96, !8, i64 100}
!13 = !{!14, !7, i64 0}
!14 = !{!"s2n_record_algorithm", !7, i64 0, !10, i64 8, !10, i64 12, !15, i64 16}
!15 = !{!"long", !8, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!6, !10, i64 8}
!18 = !{!6, !10, i64 12}
!19 = !{!20, !7, i64 0}
!20 = !{!"s2n_debug_info", !7, i64 0, !7, i64 8}
!21 = !{!20, !7, i64 8}
!22 = !{!10, !10, i64 0}
!23 = !{!24, !10, i64 0}
!24 = !{!"s2n_hmac_state", !10, i64 0, !25, i64 4, !10, i64 8, !25, i64 12, !8, i64 14, !26, i64 16, !26, i64 72, !26, i64 128, !26, i64 184, !8, i64 240, !8, i64 368}
!25 = !{!"short", !8, i64 0}
!26 = !{!"s2n_hash_state", !7, i64 0, !10, i64 8, !8, i64 12, !15, i64 16, !8, i64 24}
!27 = !{!28, !8, i64 220}
!28 = !{!"s2n_connection", !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !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, !10, i64 148, !10, i64 152, !29, i64 160, !15, i64 168, !15, 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, !30, i64 240, !7, i64 632, !7, i64 640, !31, i64 648, !37, i64 1144, !40, i64 1688, !7, i64 1752, !8, i64 1760, !10, i64 1764, !8, i64 1768, !42, i64 1776, !42, i64 1816, !42, i64 1856, !42, i64 1896, !10, i64 1936, !15, i64 1944, !8, i64 1952, !42, i64 1960, !8, i64 2000, !8, i64 2001, !8, i64 2002, !36, i64 2003, !43, i64 2004, !43, i64 2008, !44, i64 2016, !25, i64 2208, !10, i64 2212, !25, i64 2216, !15, i64 2224, !8, i64 2232, !15, i64 2240, !15, i64 2248, !15, i64 2256, !43, i64 2264, !43, i64 2268, !8, i64 2272, !8, i64 2528, !10, i64 2784, !6, i64 2792, !10, i64 2816, !6, i64 2824, !6, i64 2848, !6, i64 2872, !46, i64 2896, !48, i64 3704, !7, i64 3760, !7, i64 3768, !8, i64 3776, !10, i64 3780, !6, i64 3784, !10, i64 3808, !50, i64 3816, !8, i64 3848, !42, i64 3992, !6, i64 4032, !6, i64 4056, !36, i64 4080, !36, i64 4081, !36, i64 4082, !25, i64 4084, !25, i64 4086, !10, i64 4088, !10, i64 4092, !6, i64 4096, !10, i64 4120, !51, i64 4128, !43, i64 4176, !8, i64 4180, !8, i64 4181}
!29 = !{!"s2n_timer", !15, i64 0}
!30 = !{!"s2n_secrets", !8, i64 0, !10, i64 388}
!31 = !{!"s2n_kex_parameters", !32, i64 0, !33, i64 8, !8, i64 24, !33, i64 56, !34, i64 72, !34, i64 184, !8, i64 296, !35, i64 360, !6, i64 448, !6, i64 472}
!32 = !{!"s2n_dh_params", !7, i64 0}
!33 = !{!"s2n_ecc_evp_params", !7, i64 0, !7, i64 8}
!34 = !{!"s2n_kem_group_params", !7, i64 0, !35, i64 8, !33, i64 96}
!35 = !{!"s2n_kem_params", !7, i64 0, !6, i64 8, !6, i64 32, !6, i64 56, !36, i64 80}
!36 = !{!"_Bool", !8, i64 0}
!37 = !{!"s2n_handshake_parameters", !38, i64 0, !38, i64 48, !6, i64 96, !10, i64 120, !39, 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}
!38 = !{!"s2n_pkey", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!39 = !{!"s2n_sig_scheme_list", !8, i64 0, !8, i64 256}
!40 = !{!"s2n_psk_parameters", !10, i64 0, !41, i64 8, !25, i64 40, !25, i64 42, !7, i64 48, !10, i64 56}
!41 = !{!"s2n_array", !6, i64 0, !10, i64 24, !10, i64 28}
!42 = !{!"s2n_stuffer", !6, i64 0, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 36, !10, i64 36}
!43 = !{!"", !10, i64 0}
!44 = !{!"s2n_handshake", !42, i64 0, !7, i64 40, !8, i64 48, !8, i64 56, !8, i64 104, !8, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !45, i64 176, !10, i64 184, !10, i64 184, !10, i64 184, !10, i64 184, !10, i64 188}
!45 = !{!"s2n_offered_early_data", !7, i64 0}
!46 = !{!"s2n_client_hello", !6, i64 0, !47, i64 24, !6, i64 728, !6, i64 752, !6, i64 776, !8, i64 800, !8, i64 801, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802}
!47 = !{!"", !8, i64 0, !6, i64 672, !25, i64 696}
!48 = !{!"s2n_x509_validator", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 17, !25, i64 18, !7, i64 24, !10, i64 32, !7, i64 40, !49, i64 48, !36, i64 52}
!49 = !{!"s2n_cert_validation_info", !10, i64 0, !10, i64 0}
!50 = !{!"s2n_ticket_fields", !6, i64 0, !10, i64 24}
!51 = !{!"s2n_post_handshake", !42, i64 0, !8, i64 40}
!52 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!53 = !{!28, !10, i64 1884}
!54 = !{!28, !10, i64 1880}
!55 = !{!28, !10, i64 1936}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass