; LLVM IR from openanolis/openssl :: fuzz (server)

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

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@kRSAPrivateKeyDER = external hidden constant [1193 x i8], align 16
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@kCertificateDER = external hidden constant [771 x i8], align 16
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@ECDSAPrivateKeyPEM = external hidden constant [227 x i8], align 16
@.str.5 = external hidden unnamed_addr constant [123 x i8], align 1
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@ECDSACertPEM = external hidden constant [538 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [105 x i8], align 1
@DSAPrivateKeyPEM = external hidden constant [668 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@DSACertPEM = external hidden constant [985 x i8], align 16
@.str.10 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [57 x i8], align 1

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

declare void @ERR_clear_error() #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @FuzzerTestOneInput(ptr noundef %0, i64 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca [16384 x i8], align 16
  %21 = alloca i64, align 8
  %22 = alloca [1024 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store ptr null, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  %23 = load i64, ptr %5, align 8, !tbaa !9
  %24 = icmp ult i64 %23, 2
  br i1 %24, label %25, label %26

25:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %296

26:                                               ; preds = %2
  %27 = call ptr @TLS_method()
  %28 = call ptr @SSL_CTX_new(ptr noundef %27)
  store ptr %28, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = call i64 @SSL_CTX_ctrl(ptr noundef %29, i32 noundef 123, i64 noundef 0, ptr noundef null)
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %11, align 4, !tbaa !11
  %32 = load i32, ptr %11, align 4, !tbaa !11
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %34, label %35

34:                                               ; preds = %26
  br label %37

35:                                               ; preds = %26
  call void @OPENSSL_die(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 545) #5
  unreachable

36:                                               ; No predecessors!
  br label %37

37:                                               ; preds = %36, %34
  %38 = phi i32 [ 0, %34 ], [ 1, %36 ]
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = call i32 @SSL_CTX_set_cipher_list(ptr noundef %39, ptr noundef @.str.2)
  store i32 %40, ptr %11, align 4, !tbaa !11
  %41 = load i32, ptr %11, align 4, !tbaa !11
  %42 = icmp eq i32 %41, 1
  br i1 %42, label %43, label %44

43:                                               ; preds = %37
  br label %46

44:                                               ; preds = %37
  call void @OPENSSL_die(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 547) #5
  unreachable

45:                                               ; No predecessors!
  br label %46

46:                                               ; preds = %45, %43
  %47 = phi i32 [ 0, %43 ], [ 1, %45 ]
  store ptr @kRSAPrivateKeyDER, ptr %13, align 8, !tbaa !5
  %48 = call ptr @d2i_RSAPrivateKey(ptr noundef null, ptr noundef %13, i64 noundef 1193)
  store ptr %48, ptr %12, align 8, !tbaa !5
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %46
  br label %54

52:                                               ; preds = %46
  call void @OPENSSL_die(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 553) #5
  unreachable

53:                                               ; No predecessors!
  br label %54

54:                                               ; preds = %53, %51
  %55 = phi i32 [ 0, %51 ], [ 1, %53 ]
  %56 = call ptr @EVP_PKEY_new()
  store ptr %56, ptr %14, align 8, !tbaa !5
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = call i32 @EVP_PKEY_assign(ptr noundef %57, i32 noundef 6, ptr noundef %58)
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = call i32 @SSL_CTX_use_PrivateKey(ptr noundef %60, ptr noundef %61)
  store i32 %62, ptr %11, align 4, !tbaa !11
  %63 = load i32, ptr %11, align 4, !tbaa !11
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %65, label %66

65:                                               ; preds = %54
  br label %68

66:                                               ; preds = %54
  call void @OPENSSL_die(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 557) #5
  unreachable

67:                                               ; No predecessors!
  br label %68

68:                                               ; preds = %67, %65
  %69 = phi i32 [ 0, %65 ], [ 1, %67 ]
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  call void @EVP_PKEY_free(ptr noundef %70)
  store ptr @kCertificateDER, ptr %13, align 8, !tbaa !5
  %71 = call ptr @d2i_X509(ptr noundef null, ptr noundef %13, i64 noundef 771)
  store ptr %71, ptr %15, align 8, !tbaa !5
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %75

74:                                               ; preds = %68
  br label %77

75:                                               ; preds = %68
  call void @OPENSSL_die(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 563) #5
  unreachable

76:                                               ; No predecessors!
  br label %77

77:                                               ; preds = %76, %74
  %78 = phi i32 [ 0, %74 ], [ 1, %76 ]
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = call i32 @SSL_CTX_use_certificate(ptr noundef %79, ptr noundef %80)
  store i32 %81, ptr %11, align 4, !tbaa !11
  %82 = load i32, ptr %11, align 4, !tbaa !11
  %83 = icmp eq i32 %82, 1
  br i1 %83, label %84, label %85

84:                                               ; preds = %77
  br label %87

85:                                               ; preds = %77
  call void @OPENSSL_die(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 565) #5
  unreachable

86:                                               ; No predecessors!
  br label %87

87:                                               ; preds = %86, %84
  %88 = phi i32 [ 0, %84 ], [ 1, %86 ]
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  call void @X509_free(ptr noundef %89)
  %90 = call ptr @BIO_s_mem()
  %91 = call ptr @BIO_new(ptr noundef %90)
  store ptr %91, ptr %9, align 8, !tbaa !5
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = call i32 @BIO_write(ptr noundef %92, ptr noundef @ECDSAPrivateKeyPEM, i32 noundef 227)
  %94 = sext i32 %93 to i64
  %95 = icmp eq i64 %94, 227
  br i1 %95, label %96, label %97

96:                                               ; preds = %87
  br label %99

97:                                               ; preds = %87
  call void @OPENSSL_die(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 572) #5
  unreachable

98:                                               ; No predecessors!
  br label %99

99:                                               ; preds = %98, %96
  %100 = phi i32 [ 0, %96 ], [ 1, %98 ]
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = call ptr @PEM_read_bio_ECPrivateKey(ptr noundef %101, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %102, ptr %16, align 8, !tbaa !5
  %103 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @ERR_print_errors_fp(ptr noundef %103)
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %107

106:                                              ; preds = %99
  br label %109

107:                                              ; preds = %99
  call void @OPENSSL_die(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 575) #5
  unreachable

108:                                              ; No predecessors!
  br label %109

109:                                              ; preds = %108, %106
  %110 = phi i32 [ 0, %106 ], [ 1, %108 ]
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = call i32 @BIO_free(ptr noundef %111)
  %113 = call ptr @EVP_PKEY_new()
  store ptr %113, ptr %14, align 8, !tbaa !5
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = call i32 @EVP_PKEY_assign(ptr noundef %114, i32 noundef 408, ptr noundef %115)
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = call i32 @SSL_CTX_use_PrivateKey(ptr noundef %117, ptr noundef %118)
  store i32 %119, ptr %11, align 4, !tbaa !11
  %120 = load i32, ptr %11, align 4, !tbaa !11
  %121 = icmp eq i32 %120, 1
  br i1 %121, label %122, label %123

122:                                              ; preds = %109
  br label %125

123:                                              ; preds = %109
  call void @OPENSSL_die(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 580) #5
  unreachable

124:                                              ; No predecessors!
  br label %125

125:                                              ; preds = %124, %122
  %126 = phi i32 [ 0, %122 ], [ 1, %124 ]
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  call void @EVP_PKEY_free(ptr noundef %127)
  %128 = call ptr @BIO_s_mem()
  %129 = call ptr @BIO_new(ptr noundef %128)
  store ptr %129, ptr %9, align 8, !tbaa !5
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = call i32 @BIO_write(ptr noundef %130, ptr noundef @ECDSACertPEM, i32 noundef 538)
  %132 = sext i32 %131 to i64
  %133 = icmp eq i64 %132, 538
  br i1 %133, label %134, label %135

134:                                              ; preds = %125
  br label %137

135:                                              ; preds = %125
  call void @OPENSSL_die(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 584) #5
  unreachable

136:                                              ; No predecessors!
  br label %137

137:                                              ; preds = %136, %134
  %138 = phi i32 [ 0, %134 ], [ 1, %136 ]
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = call ptr @PEM_read_bio_X509(ptr noundef %139, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %140, ptr %15, align 8, !tbaa !5
  %141 = load ptr, ptr %15, align 8, !tbaa !5
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %144

143:                                              ; preds = %137
  br label %146

144:                                              ; preds = %137
  call void @OPENSSL_die(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 586) #5
  unreachable

145:                                              ; No predecessors!
  br label %146

146:                                              ; preds = %145, %143
  %147 = phi i32 [ 0, %143 ], [ 1, %145 ]
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = call i32 @BIO_free(ptr noundef %148)
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = call i32 @SSL_CTX_use_certificate(ptr noundef %150, ptr noundef %151)
  store i32 %152, ptr %11, align 4, !tbaa !11
  %153 = load i32, ptr %11, align 4, !tbaa !11
  %154 = icmp eq i32 %153, 1
  br i1 %154, label %155, label %156

155:                                              ; preds = %146
  br label %158

156:                                              ; preds = %146
  call void @OPENSSL_die(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 589) #5
  unreachable

157:                                              ; No predecessors!
  br label %158

158:                                              ; preds = %157, %155
  %159 = phi i32 [ 0, %155 ], [ 1, %157 ]
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  call void @X509_free(ptr noundef %160)
  %161 = call ptr @BIO_s_mem()
  %162 = call ptr @BIO_new(ptr noundef %161)
  store ptr %162, ptr %9, align 8, !tbaa !5
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = call i32 @BIO_write(ptr noundef %163, ptr noundef @DSAPrivateKeyPEM, i32 noundef 668)
  %165 = sext i32 %164 to i64
  %166 = icmp eq i64 %165, 668
  br i1 %166, label %167, label %168

167:                                              ; preds = %158
  br label %170

168:                                              ; preds = %158
  call void @OPENSSL_die(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 596) #5
  unreachable

169:                                              ; No predecessors!
  br label %170

170:                                              ; preds = %169, %167
  %171 = phi i32 [ 0, %167 ], [ 1, %169 ]
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = call ptr @PEM_read_bio_DSAPrivateKey(ptr noundef %172, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %173, ptr %17, align 8, !tbaa !5
  %174 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @ERR_print_errors_fp(ptr noundef %174)
  %175 = load ptr, ptr %17, align 8, !tbaa !5
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %178

177:                                              ; preds = %170
  br label %180

178:                                              ; preds = %170
  call void @OPENSSL_die(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 599) #5
  unreachable

179:                                              ; No predecessors!
  br label %180

180:                                              ; preds = %179, %177
  %181 = phi i32 [ 0, %177 ], [ 1, %179 ]
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  %183 = call i32 @BIO_free(ptr noundef %182)
  %184 = call ptr @EVP_PKEY_new()
  store ptr %184, ptr %14, align 8, !tbaa !5
  %185 = load ptr, ptr %14, align 8, !tbaa !5
  %186 = load ptr, ptr %17, align 8, !tbaa !5
  %187 = call i32 @EVP_PKEY_assign(ptr noundef %185, i32 noundef 116, ptr noundef %186)
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  %189 = load ptr, ptr %14, align 8, !tbaa !5
  %190 = call i32 @SSL_CTX_use_PrivateKey(ptr noundef %188, ptr noundef %189)
  store i32 %190, ptr %11, align 4, !tbaa !11
  %191 = load i32, ptr %11, align 4, !tbaa !11
  %192 = icmp eq i32 %191, 1
  br i1 %192, label %193, label %194

193:                                              ; preds = %180
  br label %196

194:                                              ; preds = %180
  call void @OPENSSL_die(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 604) #5
  unreachable

195:                                              ; No predecessors!
  br label %196

196:                                              ; preds = %195, %193
  %197 = phi i32 [ 0, %193 ], [ 1, %195 ]
  %198 = load ptr, ptr %14, align 8, !tbaa !5
  call void @EVP_PKEY_free(ptr noundef %198)
  %199 = call ptr @BIO_s_mem()
  %200 = call ptr @BIO_new(ptr noundef %199)
  store ptr %200, ptr %9, align 8, !tbaa !5
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = call i32 @BIO_write(ptr noundef %201, ptr noundef @DSACertPEM, i32 noundef 985)
  %203 = sext i32 %202 to i64
  %204 = icmp eq i64 %203, 985
  br i1 %204, label %205, label %206

205:                                              ; preds = %196
  br label %208

206:                                              ; preds = %196
  call void @OPENSSL_die(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 608) #5
  unreachable

207:                                              ; No predecessors!
  br label %208

208:                                              ; preds = %207, %205
  %209 = phi i32 [ 0, %205 ], [ 1, %207 ]
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = call ptr @PEM_read_bio_X509(ptr noundef %210, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %211, ptr %15, align 8, !tbaa !5
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = icmp ne ptr %212, null
  br i1 %213, label %214, label %215

214:                                              ; preds = %208
  br label %217

215:                                              ; preds = %208
  call void @OPENSSL_die(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 610) #5
  unreachable

216:                                              ; No predecessors!
  br label %217

217:                                              ; preds = %216, %214
  %218 = phi i32 [ 0, %214 ], [ 1, %216 ]
  %219 = load ptr, ptr %9, align 8, !tbaa !5
  %220 = call i32 @BIO_free(ptr noundef %219)
  %221 = load ptr, ptr %10, align 8, !tbaa !5
  %222 = load ptr, ptr %15, align 8, !tbaa !5
  %223 = call i32 @SSL_CTX_use_certificate(ptr noundef %221, ptr noundef %222)
  store i32 %223, ptr %11, align 4, !tbaa !11
  %224 = load i32, ptr %11, align 4, !tbaa !11
  %225 = icmp eq i32 %224, 1
  br i1 %225, label %226, label %227

226:                                              ; preds = %217
  br label %229

227:                                              ; preds = %217
  call void @OPENSSL_die(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 613) #5
  unreachable

228:                                              ; No predecessors!
  br label %229

229:                                              ; preds = %228, %226
  %230 = phi i32 [ 0, %226 ], [ 1, %228 ]
  %231 = load ptr, ptr %15, align 8, !tbaa !5
  call void @X509_free(ptr noundef %231)
  %232 = load ptr, ptr %10, align 8, !tbaa !5
  %233 = call ptr @SSL_new(ptr noundef %232)
  store ptr %233, ptr %6, align 8, !tbaa !5
  %234 = call ptr @BIO_s_mem()
  %235 = call ptr @BIO_new(ptr noundef %234)
  store ptr %235, ptr %7, align 8, !tbaa !5
  %236 = call ptr @BIO_s_mem()
  %237 = call ptr @BIO_new(ptr noundef %236)
  store ptr %237, ptr %8, align 8, !tbaa !5
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  call void @SSL_set_bio(ptr noundef %238, ptr noundef %239, ptr noundef %240)
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  call void @SSL_set_accept_state(ptr noundef %241)
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = load i64, ptr %5, align 8, !tbaa !9
  %244 = sub i64 %243, 1
  %245 = getelementptr inbounds i8, ptr %242, i64 %244
  %246 = load i8, ptr %245, align 1, !tbaa !13
  store i8 %246, ptr %18, align 1, !tbaa !13
  %247 = load i64, ptr %5, align 8, !tbaa !9
  %248 = add i64 %247, -1
  store i64 %248, ptr %5, align 8, !tbaa !9
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = load i64, ptr %5, align 8, !tbaa !9
  %252 = trunc i64 %251 to i32
  %253 = call i32 @BIO_write(ptr noundef %249, ptr noundef %250, i32 noundef %252)
  %254 = sext i32 %253 to i64
  %255 = load i64, ptr %5, align 8, !tbaa !9
  %256 = icmp eq i64 %254, %255
  br i1 %256, label %257, label %258

257:                                              ; preds = %229
  br label %260

258:                                              ; preds = %229
  call void @OPENSSL_die(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 626) #5
  unreachable

259:                                              ; No predecessors!
  br label %260

260:                                              ; preds = %259, %257
  %261 = phi i32 [ 0, %257 ], [ 1, %259 ]
  %262 = load i8, ptr %18, align 1, !tbaa !13
  %263 = zext i8 %262 to i32
  %264 = and i32 %263, 1
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %266, label %280

266:                                              ; preds = %260
  br label %267

267:                                              ; preds = %278, %266
  call void @llvm.lifetime.start.p0(i64 16384, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = getelementptr inbounds [16384 x i8], ptr %20, i64 0, i64 0
  %270 = call i32 @SSL_read_early_data(ptr noundef %268, ptr noundef %269, i64 noundef 16384, ptr noundef %21)
  store i32 %270, ptr %11, align 4, !tbaa !11
  %271 = load i32, ptr %11, align 4, !tbaa !11
  %272 = icmp ne i32 %271, 1
  br i1 %272, label %273, label %274

273:                                              ; preds = %267
  store i32 2, ptr %19, align 4
  br label %275

274:                                              ; preds = %267
  store i32 0, ptr %19, align 4
  br label %275

275:                                              ; preds = %274, %273
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16384, ptr %20) #4
  %276 = load i32, ptr %19, align 4
  switch i32 %276, label %298 [
    i32 0, label %277
    i32 2, label %279
  ]

277:                                              ; preds = %275
  br label %278

278:                                              ; preds = %277
  br i1 true, label %267, label %279

279:                                              ; preds = %278, %275
  br label %280

280:                                              ; preds = %279, %260
  %281 = load ptr, ptr %6, align 8, !tbaa !5
  %282 = call i32 @SSL_do_handshake(ptr noundef %281)
  %283 = icmp eq i32 %282, 1
  br i1 %283, label %284, label %293

284:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 1024, ptr %22) #4
  br label %285

285:                                              ; preds = %291, %284
  %286 = load ptr, ptr %6, align 8, !tbaa !5
  %287 = getelementptr inbounds [1024 x i8], ptr %22, i64 0, i64 0
  %288 = call i32 @SSL_read(ptr noundef %286, ptr noundef %287, i32 noundef 1024)
  %289 = icmp sle i32 %288, 0
  br i1 %289, label %290, label %291

290:                                              ; preds = %285
  br label %292

291:                                              ; preds = %285
  br label %285

292:                                              ; preds = %290
  call void @llvm.lifetime.end.p0(i64 1024, ptr %22) #4
  br label %293

293:                                              ; preds = %292, %280
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  call void @SSL_free(ptr noundef %294)
  call void @ERR_clear_error()
  %295 = load ptr, ptr %10, align 8, !tbaa !5
  call void @SSL_CTX_free(ptr noundef %295)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %296

296:                                              ; preds = %293, %25
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %297 = load i32, ptr %3, align 4
  ret i32 %297

298:                                              ; preds = %275
  unreachable
}

declare ptr @SSL_CTX_new(ptr noundef) #1

declare ptr @TLS_method() #1

declare i64 @SSL_CTX_ctrl(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: noreturn
declare void @OPENSSL_die(ptr noundef, ptr noundef, i32 noundef) #3

declare i32 @SSL_CTX_set_cipher_list(ptr noundef, ptr noundef) #1

declare ptr @d2i_RSAPrivateKey(ptr noundef, ptr noundef, i64 noundef) #1

declare ptr @EVP_PKEY_new() #1

declare i32 @EVP_PKEY_assign(ptr noundef, i32 noundef, ptr noundef) #1

declare i32 @SSL_CTX_use_PrivateKey(ptr noundef, ptr noundef) #1

declare void @EVP_PKEY_free(ptr noundef) #1

declare ptr @d2i_X509(ptr noundef, ptr noundef, i64 noundef) #1

declare i32 @SSL_CTX_use_certificate(ptr noundef, ptr noundef) #1

declare void @X509_free(ptr noundef) #1

declare ptr @BIO_new(ptr noundef) #1

declare ptr @BIO_s_mem() #1

declare i32 @BIO_write(ptr noundef, ptr noundef, i32 noundef) #1

declare ptr @PEM_read_bio_ECPrivateKey(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @ERR_print_errors_fp(ptr noundef) #1

declare i32 @BIO_free(ptr noundef) #1

declare ptr @PEM_read_bio_X509(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare ptr @PEM_read_bio_DSAPrivateKey(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare ptr @SSL_new(ptr noundef) #1

declare void @SSL_set_bio(ptr noundef, ptr noundef, ptr noundef) #1

declare void @SSL_set_accept_state(ptr noundef) #1

declare i32 @SSL_read_early_data(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1

declare i32 @SSL_do_handshake(ptr noundef) #1

declare i32 @SSL_read(ptr noundef, ptr noundef, i32 noundef) #1

declare void @SSL_free(ptr noundef) #1

declare void @SSL_CTX_free(ptr noundef) #1

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

!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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}


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

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@kRSAPrivateKeyDER = external hidden constant [1193 x i8], align 16
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@kCertificateDER = external hidden constant [771 x i8], align 16
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@ECDSAPrivateKeyPEM = external hidden constant [227 x i8], align 16
@.str.5 = external hidden unnamed_addr constant [123 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@ECDSACertPEM = external hidden constant [538 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [105 x i8], align 1
@DSAPrivateKeyPEM = external hidden constant [668 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@DSACertPEM = external hidden constant [985 x i8], align 16
@.str.10 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [57 x i8], align 1

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

declare void @ERR_clear_error() local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @FuzzerTestOneInput(ptr noundef %0, i64 noundef %1) local_unnamed_addr #2 {
  %3 = alloca ptr, align 8
  %4 = alloca [16384 x i8], align 16
  %5 = alloca i64, align 8
  %6 = alloca [1024 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %7 = icmp ult i64 %1, 2
  br i1 %7, label %123, label %8

8:                                                ; preds = %2
  %9 = tail call ptr @TLS_method() #4
  %10 = tail call ptr @SSL_CTX_new(ptr noundef %9) #4
  %11 = tail call i64 @SSL_CTX_ctrl(ptr noundef %10, i32 noundef 123, i64 noundef 0, ptr noundef null) #4
  %12 = and i64 %11, 4294967295
  %13 = icmp eq i64 %12, 1
  br i1 %13, label %15, label %14

14:                                               ; preds = %8
  tail call void @OPENSSL_die(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 545) #5
  unreachable

15:                                               ; preds = %8
  %16 = tail call i32 @SSL_CTX_set_cipher_list(ptr noundef %10, ptr noundef nonnull @.str.2) #4
  %17 = icmp eq i32 %16, 1
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  tail call void @OPENSSL_die(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 547) #5
  unreachable

19:                                               ; preds = %15
  store ptr @kRSAPrivateKeyDER, ptr %3, align 8, !tbaa !5
  %20 = call ptr @d2i_RSAPrivateKey(ptr noundef null, ptr noundef nonnull %3, i64 noundef 1193) #4
  %.not = icmp eq ptr %20, null
  br i1 %.not, label %21, label %22

21:                                               ; preds = %19
  call void @OPENSSL_die(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 553) #5
  unreachable

22:                                               ; preds = %19
  %23 = call ptr @EVP_PKEY_new() #4
  %24 = call i32 @EVP_PKEY_assign(ptr noundef %23, i32 noundef 6, ptr noundef nonnull %20) #4
  %25 = call i32 @SSL_CTX_use_PrivateKey(ptr noundef %10, ptr noundef %23) #4
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %28, label %27

27:                                               ; preds = %22
  call void @OPENSSL_die(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 557) #5
  unreachable

28:                                               ; preds = %22
  call void @EVP_PKEY_free(ptr noundef %23) #4
  store ptr @kCertificateDER, ptr %3, align 8, !tbaa !5
  %29 = call ptr @d2i_X509(ptr noundef null, ptr noundef nonnull %3, i64 noundef 771) #4
  %.not81 = icmp eq ptr %29, null
  br i1 %.not81, label %30, label %31

30:                                               ; preds = %28
  call void @OPENSSL_die(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 563) #5
  unreachable

31:                                               ; preds = %28
  %32 = call i32 @SSL_CTX_use_certificate(ptr noundef %10, ptr noundef nonnull %29) #4
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  call void @OPENSSL_die(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 565) #5
  unreachable

35:                                               ; preds = %31
  call void @X509_free(ptr noundef nonnull %29) #4
  %36 = call ptr @BIO_s_mem() #4
  %37 = call ptr @BIO_new(ptr noundef %36) #4
  %38 = call i32 @BIO_write(ptr noundef %37, ptr noundef nonnull @ECDSAPrivateKeyPEM, i32 noundef 227) #4
  %39 = icmp eq i32 %38, 227
  br i1 %39, label %41, label %40

40:                                               ; preds = %35
  call void @OPENSSL_die(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 572) #5
  unreachable

41:                                               ; preds = %35
  %42 = call ptr @PEM_read_bio_ECPrivateKey(ptr noundef %37, ptr noundef null, ptr noundef null, ptr noundef null) #4
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @ERR_print_errors_fp(ptr noundef %43) #4
  %.not82 = icmp eq ptr %42, null
  br i1 %.not82, label %44, label %45

44:                                               ; preds = %41
  call void @OPENSSL_die(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 575) #5
  unreachable

45:                                               ; preds = %41
  %46 = call i32 @BIO_free(ptr noundef %37) #4
  %47 = call ptr @EVP_PKEY_new() #4
  %48 = call i32 @EVP_PKEY_assign(ptr noundef %47, i32 noundef 408, ptr noundef nonnull %42) #4
  %49 = call i32 @SSL_CTX_use_PrivateKey(ptr noundef %10, ptr noundef %47) #4
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %52, label %51

51:                                               ; preds = %45
  call void @OPENSSL_die(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 580) #5
  unreachable

52:                                               ; preds = %45
  call void @EVP_PKEY_free(ptr noundef %47) #4
  %53 = call ptr @BIO_s_mem() #4
  %54 = call ptr @BIO_new(ptr noundef %53) #4
  %55 = call i32 @BIO_write(ptr noundef %54, ptr noundef nonnull @ECDSACertPEM, i32 noundef 538) #4
  %56 = icmp eq i32 %55, 538
  br i1 %56, label %58, label %57

57:                                               ; preds = %52
  call void @OPENSSL_die(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 584) #5
  unreachable

58:                                               ; preds = %52
  %59 = call ptr @PEM_read_bio_X509(ptr noundef %54, ptr noundef null, ptr noundef null, ptr noundef null) #4
  %.not83 = icmp eq ptr %59, null
  br i1 %.not83, label %60, label %61

60:                                               ; preds = %58
  call void @OPENSSL_die(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 586) #5
  unreachable

61:                                               ; preds = %58
  %62 = call i32 @BIO_free(ptr noundef %54) #4
  %63 = call i32 @SSL_CTX_use_certificate(ptr noundef %10, ptr noundef nonnull %59) #4
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  call void @OPENSSL_die(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 589) #5
  unreachable

66:                                               ; preds = %61
  call void @X509_free(ptr noundef nonnull %59) #4
  %67 = call ptr @BIO_s_mem() #4
  %68 = call ptr @BIO_new(ptr noundef %67) #4
  %69 = call i32 @BIO_write(ptr noundef %68, ptr noundef nonnull @DSAPrivateKeyPEM, i32 noundef 668) #4
  %70 = icmp eq i32 %69, 668
  br i1 %70, label %72, label %71

71:                                               ; preds = %66
  call void @OPENSSL_die(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 596) #5
  unreachable

72:                                               ; preds = %66
  %73 = call ptr @PEM_read_bio_DSAPrivateKey(ptr noundef %68, ptr noundef null, ptr noundef null, ptr noundef null) #4
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @ERR_print_errors_fp(ptr noundef %74) #4
  %.not84 = icmp eq ptr %73, null
  br i1 %.not84, label %75, label %76

75:                                               ; preds = %72
  call void @OPENSSL_die(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 599) #5
  unreachable

76:                                               ; preds = %72
  %77 = call i32 @BIO_free(ptr noundef %68) #4
  %78 = call ptr @EVP_PKEY_new() #4
  %79 = call i32 @EVP_PKEY_assign(ptr noundef %78, i32 noundef 116, ptr noundef nonnull %73) #4
  %80 = call i32 @SSL_CTX_use_PrivateKey(ptr noundef %10, ptr noundef %78) #4
  %81 = icmp eq i32 %80, 1
  br i1 %81, label %83, label %82

82:                                               ; preds = %76
  call void @OPENSSL_die(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 604) #5
  unreachable

83:                                               ; preds = %76
  call void @EVP_PKEY_free(ptr noundef %78) #4
  %84 = call ptr @BIO_s_mem() #4
  %85 = call ptr @BIO_new(ptr noundef %84) #4
  %86 = call i32 @BIO_write(ptr noundef %85, ptr noundef nonnull @DSACertPEM, i32 noundef 985) #4
  %87 = icmp eq i32 %86, 985
  br i1 %87, label %89, label %88

88:                                               ; preds = %83
  call void @OPENSSL_die(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 608) #5
  unreachable

89:                                               ; preds = %83
  %90 = call ptr @PEM_read_bio_X509(ptr noundef %85, ptr noundef null, ptr noundef null, ptr noundef null) #4
  %.not85 = icmp eq ptr %90, null
  br i1 %.not85, label %91, label %92

91:                                               ; preds = %89
  call void @OPENSSL_die(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 610) #5
  unreachable

92:                                               ; preds = %89
  %93 = call i32 @BIO_free(ptr noundef %85) #4
  %94 = call i32 @SSL_CTX_use_certificate(ptr noundef %10, ptr noundef nonnull %90) #4
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  call void @OPENSSL_die(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 613) #5
  unreachable

97:                                               ; preds = %92
  call void @X509_free(ptr noundef nonnull %90) #4
  %98 = call ptr @SSL_new(ptr noundef %10) #4
  %99 = call ptr @BIO_s_mem() #4
  %100 = call ptr @BIO_new(ptr noundef %99) #4
  %101 = call ptr @BIO_s_mem() #4
  %102 = call ptr @BIO_new(ptr noundef %101) #4
  call void @SSL_set_bio(ptr noundef %98, ptr noundef %100, ptr noundef %102) #4
  call void @SSL_set_accept_state(ptr noundef %98) #4
  %103 = getelementptr i8, ptr %0, i64 %1
  %104 = getelementptr i8, ptr %103, i64 -1
  %105 = load i8, ptr %104, align 1, !tbaa !9
  %106 = add i64 %1, -1
  %107 = trunc i64 %106 to i32
  %108 = call i32 @BIO_write(ptr noundef %100, ptr noundef %0, i32 noundef %107) #4
  %109 = sext i32 %108 to i64
  %110 = icmp eq i64 %106, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %97
  call void @OPENSSL_die(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 626) #5
  unreachable

112:                                              ; preds = %97
  %113 = and i8 %105, 1
  %.not86 = icmp eq i8 %113, 0
  br i1 %.not86, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %112, %.preheader
  call void @llvm.lifetime.start.p0(i64 16384, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %114 = call i32 @SSL_read_early_data(ptr noundef %98, ptr noundef nonnull %4, i64 noundef 16384, ptr noundef nonnull %5) #4
  %.not87 = icmp eq i32 %114, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 16384, ptr nonnull %4) #4
  br i1 %.not87, label %.preheader, label %.loopexit

.loopexit:                                        ; preds = %.preheader, %112
  %115 = call i32 @SSL_do_handshake(ptr noundef %98) #4
  %116 = icmp eq i32 %115, 1
  br i1 %116, label %117, label %122

117:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #4
  br label %118

118:                                              ; preds = %118, %117
  %119 = call i32 @SSL_read(ptr noundef %98, ptr noundef nonnull %6, i32 noundef 1024) #4
  %120 = icmp slt i32 %119, 1
  br i1 %120, label %121, label %118

121:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #4
  br label %122

122:                                              ; preds = %121, %.loopexit
  call void @SSL_free(ptr noundef %98) #4
  call void @ERR_clear_error() #4
  call void @SSL_CTX_free(ptr noundef %10) #4
  br label %123

123:                                              ; preds = %2, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret i32 0
}

declare ptr @SSL_CTX_new(ptr noundef) local_unnamed_addr #1

declare ptr @TLS_method() local_unnamed_addr #1

declare i64 @SSL_CTX_ctrl(ptr noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: noreturn
declare void @OPENSSL_die(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @SSL_CTX_set_cipher_list(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @d2i_RSAPrivateKey(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare ptr @EVP_PKEY_new() local_unnamed_addr #1

declare i32 @EVP_PKEY_assign(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare i32 @SSL_CTX_use_PrivateKey(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @EVP_PKEY_free(ptr noundef) local_unnamed_addr #1

declare ptr @d2i_X509(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @SSL_CTX_use_certificate(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @X509_free(ptr noundef) local_unnamed_addr #1

declare ptr @BIO_new(ptr noundef) local_unnamed_addr #1

declare ptr @BIO_s_mem() local_unnamed_addr #1

declare i32 @BIO_write(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @PEM_read_bio_ECPrivateKey(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @ERR_print_errors_fp(ptr noundef) local_unnamed_addr #1

declare i32 @BIO_free(ptr noundef) local_unnamed_addr #1

declare ptr @PEM_read_bio_X509(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @PEM_read_bio_DSAPrivateKey(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @SSL_new(ptr noundef) local_unnamed_addr #1

declare void @SSL_set_bio(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @SSL_set_accept_state(ptr noundef) local_unnamed_addr #1

declare i32 @SSL_read_early_data(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare i32 @SSL_do_handshake(ptr noundef) local_unnamed_addr #1

declare i32 @SSL_read(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @SSL_free(ptr noundef) local_unnamed_addr #1

declare void @SSL_CTX_free(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass