	.file	"453413.c"
	.intel_syntax noprefix
	.text
	.globl	ERR_R_EVP_LIB
	.bss
	.align 4
	.type	ERR_R_EVP_LIB, @object
	.size	ERR_R_EVP_LIB, 4
ERR_R_EVP_LIB:
	.zero	4
	.globl	ERR_R_INTERNAL_ERROR
	.align 4
	.type	ERR_R_INTERNAL_ERROR, @object
	.size	ERR_R_INTERNAL_ERROR, 4
ERR_R_INTERNAL_ERROR:
	.zero	4
	.globl	ERR_R_MALLOC_FAILURE
	.align 4
	.type	ERR_R_MALLOC_FAILURE, @object
	.size	ERR_R_MALLOC_FAILURE, 4
ERR_R_MALLOC_FAILURE:
	.zero	4
	.globl	EVP_CTRL_SSL3_MASTER_SECRET
	.align 4
	.type	EVP_CTRL_SSL3_MASTER_SECRET, @object
	.size	EVP_CTRL_SSL3_MASTER_SECRET, 4
EVP_CTRL_SSL3_MASTER_SECRET:
	.zero	4
	.globl	EVP_MAX_MD_SIZE
	.align 4
	.type	EVP_MAX_MD_SIZE, @object
	.size	EVP_MAX_MD_SIZE, 4
EVP_MAX_MD_SIZE:
	.zero	4
	.globl	MSG_PROCESS_CONTINUE_PROCESSING
	.align 4
	.type	MSG_PROCESS_CONTINUE_PROCESSING, @object
	.size	MSG_PROCESS_CONTINUE_PROCESSING, 4
MSG_PROCESS_CONTINUE_PROCESSING:
	.zero	4
	.globl	MSG_PROCESS_CONTINUE_READING
	.align 4
	.type	MSG_PROCESS_CONTINUE_READING, @object
	.size	MSG_PROCESS_CONTINUE_READING, 4
MSG_PROCESS_CONTINUE_READING:
	.zero	4
	.globl	MSG_PROCESS_ERROR
	.align 4
	.type	MSG_PROCESS_ERROR, @object
	.size	MSG_PROCESS_ERROR, 4
MSG_PROCESS_ERROR:
	.zero	4
	.globl	NID_id_GostR3410_2001
	.align 4
	.type	NID_id_GostR3410_2001, @object
	.size	NID_id_GostR3410_2001, 4
NID_id_GostR3410_2001:
	.zero	4
	.globl	NID_id_GostR3410_2012_256
	.align 4
	.type	NID_id_GostR3410_2012_256, @object
	.size	NID_id_GostR3410_2012_256, 4
NID_id_GostR3410_2012_256:
	.zero	4
	.globl	NID_id_GostR3410_2012_512
	.align 4
	.type	NID_id_GostR3410_2012_512, @object
	.size	NID_id_GostR3410_2012_512, 4
NID_id_GostR3410_2012_512:
	.zero	4
	.globl	RSA_PKCS1_PSS_PADDING
	.align 4
	.type	RSA_PKCS1_PSS_PADDING, @object
	.size	RSA_PKCS1_PSS_PADDING, 4
RSA_PKCS1_PSS_PADDING:
	.zero	4
	.globl	RSA_PSS_SALTLEN_DIGEST
	.align 4
	.type	RSA_PSS_SALTLEN_DIGEST, @object
	.size	RSA_PSS_SALTLEN_DIGEST, 4
RSA_PSS_SALTLEN_DIGEST:
	.zero	4
	.globl	SSL3_VERSION
	.align 8
	.type	SSL3_VERSION, @object
	.size	SSL3_VERSION, 8
SSL3_VERSION:
	.zero	8
	.globl	SSL_AD_DECODE_ERROR
	.align 4
	.type	SSL_AD_DECODE_ERROR, @object
	.size	SSL_AD_DECODE_ERROR, 4
SSL_AD_DECODE_ERROR:
	.zero	4
	.globl	SSL_AD_DECRYPT_ERROR
	.align 4
	.type	SSL_AD_DECRYPT_ERROR, @object
	.size	SSL_AD_DECRYPT_ERROR, 4
SSL_AD_DECRYPT_ERROR:
	.zero	4
	.globl	SSL_AD_ILLEGAL_PARAMETER
	.align 4
	.type	SSL_AD_ILLEGAL_PARAMETER, @object
	.size	SSL_AD_ILLEGAL_PARAMETER, 4
SSL_AD_ILLEGAL_PARAMETER:
	.zero	4
	.globl	SSL_AD_INTERNAL_ERROR
	.align 4
	.type	SSL_AD_INTERNAL_ERROR, @object
	.size	SSL_AD_INTERNAL_ERROR, 4
SSL_AD_INTERNAL_ERROR:
	.zero	4
	.globl	SSL_F_TLS_PROCESS_CERT_VERIFY
	.align 4
	.type	SSL_F_TLS_PROCESS_CERT_VERIFY, @object
	.size	SSL_F_TLS_PROCESS_CERT_VERIFY, 4
SSL_F_TLS_PROCESS_CERT_VERIFY:
	.zero	4
	.globl	SSL_R_BAD_PACKET
	.align 4
	.type	SSL_R_BAD_PACKET, @object
	.size	SSL_R_BAD_PACKET, 4
SSL_R_BAD_PACKET:
	.zero	4
	.globl	SSL_R_BAD_SIGNATURE
	.align 4
	.type	SSL_R_BAD_SIGNATURE, @object
	.size	SSL_R_BAD_SIGNATURE, 4
SSL_R_BAD_SIGNATURE:
	.zero	4
	.globl	SSL_R_LENGTH_MISMATCH
	.align 4
	.type	SSL_R_LENGTH_MISMATCH, @object
	.size	SSL_R_LENGTH_MISMATCH, 4
SSL_R_LENGTH_MISMATCH:
	.zero	4
	.globl	SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE
	.align 4
	.type	SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE, @object
	.size	SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE, 4
SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE:
	.zero	4
	.globl	SSL_R_WRONG_SIGNATURE_SIZE
	.align 4
	.type	SSL_R_WRONG_SIGNATURE_SIZE, @object
	.size	SSL_R_WRONG_SIGNATURE_SIZE, 4
SSL_R_WRONG_SIGNATURE_SIZE:
	.zero	4
	.globl	TLS13_TBS_PREAMBLE_SIZE
	.align 4
	.type	TLS13_TBS_PREAMBLE_SIZE, @object
	.size	TLS13_TBS_PREAMBLE_SIZE, 4
TLS13_TBS_PREAMBLE_SIZE:
	.zero	4
	.globl	stderr
	.align 4
	.type	stderr, @object
	.size	stderr, 4
stderr:
	.zero	4
	.text
	.globl	tls_process_cert_verify
	.type	tls_process_cert_verify, @function
tls_process_cert_verify:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 136
	.cfi_offset 3, -24
	mov	QWORD PTR -136[rbp], rdi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR MSG_PROCESS_ERROR[rip]
	mov	DWORD PTR -124[rbp], eax
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	edx, DWORD PTR TLS13_TBS_PREAMBLE_SIZE[rip]
	mov	eax, DWORD PTR EVP_MAX_MD_SIZE[rip]
	add	eax, edx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -48[rbp], rax
	mov	eax, 0
	call	EVP_MD_CTX_new@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -80[rbp], 0
	cmp	QWORD PTR -40[rbp], 0
	jne	.L5
	mov	ecx, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	X509_get0_pubkey@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L7
	mov	ecx, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	ssl_cert_lookup_by_pkey@PLT
	test	rax, rax
	jne	.L8
	mov	ecx, DWORD PTR SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_ILLEGAL_PARAMETER[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSL_USE_SIGALGS@PLT
	test	rax, rax
	je	.L9
	lea	rdx, -88[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	PACKET_get_net_2@PLT
	test	eax, eax
	jne	.L10
	mov	ecx, DWORD PTR SSL_R_BAD_PACKET[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_DECODE_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L10:
	mov	ecx, DWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	tls12_check_peer_sigalg@PLT
	test	rax, rax
	jg	.L13
	jmp	.L6
.L9:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	tls1_set_peer_legacy_sigalg@PLT
	test	eax, eax
	jne	.L13
	mov	ecx, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L13:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR 12[rax]
	lea	rdx, -104[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tls1_lookup_md@PLT
	test	eax, eax
	jne	.L14
	mov	ecx, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L14:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSL_USE_SIGALGS@PLT
	test	rax, rax
	jne	.L15
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	PACKET_remaining@PLT
	cmp	eax, 64
	jne	.L16
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	EVP_PKEY_id@PLT
	mov	edx, DWORD PTR NID_id_GostR3410_2001[rip]
	cmp	eax, edx
	je	.L17
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	EVP_PKEY_id@PLT
	mov	edx, DWORD PTR NID_id_GostR3410_2012_256[rip]
	cmp	eax, edx
	je	.L17
.L16:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	PACKET_remaining@PLT
	cmp	eax, 128
	jne	.L15
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	EVP_PKEY_id@PLT
	mov	edx, DWORD PTR NID_id_GostR3410_2012_512[rip]
	cmp	eax, edx
	jne	.L15
.L17:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	PACKET_remaining@PLT
	mov	DWORD PTR -128[rbp], eax
	jmp	.L18
.L15:
	lea	rdx, -128[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	PACKET_get_net_2@PLT
	test	eax, eax
	jne	.L18
	mov	ecx, DWORD PTR SSL_R_LENGTH_MISMATCH[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_DECODE_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L18:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	EVP_PKEY_size@PLT
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	cmp	DWORD PTR -120[rbp], eax
	jl	.L19
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	PACKET_remaining@PLT
	cmp	DWORD PTR -120[rbp], eax
	jl	.L19
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	PACKET_remaining@PLT
	test	eax, eax
	jne	.L20
.L19:
	mov	ecx, DWORD PTR SSL_R_WRONG_SIGNATURE_SIZE[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_DECODE_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L20:
	mov	edx, DWORD PTR -128[rbp]
	lea	rcx, -112[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	PACKET_get_bytes@PLT
	test	eax, eax
	jne	.L21
	mov	ecx, DWORD PTR SSL_R_LENGTH_MISMATCH[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_DECODE_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L21:
	lea	rcx, -96[rbp]
	lea	rdx, -88[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	get_cert_verify_tbs_data@PLT
	test	eax, eax
	je	.L36
	mov	rdx, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	lea	rsi, -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rcx
	mov	ecx, 0
	mov	rdi, rax
	call	EVP_DigestVerifyInit@PLT
	test	rax, rax
	jg	.L23
	mov	ecx, DWORD PTR ERR_R_EVP_LIB[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L23:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	EVP_PKEY_id@PLT
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR NID_id_GostR3410_2001[rip]
	cmp	DWORD PTR -116[rbp], eax
	je	.L24
	mov	eax, DWORD PTR NID_id_GostR3410_2012_256[rip]
	cmp	DWORD PTR -116[rbp], eax
	je	.L24
	mov	eax, DWORD PTR NID_id_GostR3410_2012_512[rip]
	cmp	DWORD PTR -116[rbp], eax
	jne	.L25
.L24:
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	OPENSSL_malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L26
	mov	ecx, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L26:
	mov	edx, DWORD PTR -128[rbp]
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	BUF_reverse@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -112[rbp], rax
.L25:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSL_USE_PSS@PLT
	test	rax, rax
	je	.L27
	mov	edx, DWORD PTR RSA_PKCS1_PSS_PADDING[rip]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	EVP_PKEY_CTX_set_rsa_padding@PLT
	test	rax, rax
	jle	.L28
	mov	edx, DWORD PTR RSA_PSS_SALTLEN_DIGEST[rip]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	EVP_PKEY_CTX_set_rsa_pss_saltlen@PLT
	test	rax, rax
	jg	.L27
.L28:
	mov	ecx, DWORD PTR ERR_R_EVP_LIB[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L27:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR SSL3_VERSION[rip]
	cmp	rdx, rax
	jne	.L29
	mov	rdx, QWORD PTR -96[rbp]
	mov	rcx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	EVP_DigestVerifyUpdate@PLT
	test	rax, rax
	jle	.L30
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, eax
	mov	esi, DWORD PTR EVP_CTRL_SSL3_MASTER_SECRET[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	EVP_MD_CTX_ctrl@PLT
	test	eax, eax
	jne	.L31
.L30:
	mov	ecx, DWORD PTR ERR_R_EVP_LIB[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L31:
	mov	edx, DWORD PTR -128[rbp]
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	EVP_DigestVerifyFinal@PLT
	test	rax, rax
	jg	.L32
	mov	ecx, DWORD PTR SSL_R_BAD_SIGNATURE[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_DECRYPT_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L29:
	mov	rdi, QWORD PTR -96[rbp]
	mov	rcx, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -128[rbp]
	mov	rsi, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	EVP_DigestVerify@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], 0
	jg	.L32
	mov	ecx, DWORD PTR SSL_R_BAD_SIGNATURE[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PROCESS_CERT_VERIFY[rip]
	mov	esi, DWORD PTR SSL_AD_DECRYPT_ERROR[rip]
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSLfatal@PLT
	jmp	.L6
.L32:
	mov	rax, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	SSL_IS_TLS13@PLT
	test	rax, rax
	je	.L33
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 1
	jne	.L33
	mov	eax, DWORD PTR MSG_PROCESS_CONTINUE_PROCESSING[rip]
	mov	DWORD PTR -124[rbp], eax
	jmp	.L6
.L33:
	mov	eax, DWORD PTR MSG_PROCESS_CONTINUE_READING[rip]
	mov	DWORD PTR -124[rbp], eax
	jmp	.L6
.L36:
	nop
.L6:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	BIO_free@PLT
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	EVP_MD_CTX_free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	OPENSSL_free@PLT
	mov	eax, DWORD PTR -124[rbp]
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	tls_process_cert_verify, .-tls_process_cert_verify
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"453413.c"
	.text
	.comm	ERR_R_EVP_LIB,4,4
	.comm	ERR_R_INTERNAL_ERROR,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	EVP_CTRL_SSL3_MASTER_SECRET,4,4
	.comm	EVP_MAX_MD_SIZE,4,4
	.comm	MSG_PROCESS_CONTINUE_PROCESSING,4,4
	.comm	MSG_PROCESS_CONTINUE_READING,4,4
	.comm	MSG_PROCESS_ERROR,4,4
	.comm	NID_id_GostR3410_2001,4,4
	.comm	NID_id_GostR3410_2012_256,4,4
	.comm	NID_id_GostR3410_2012_512,4,4
	.comm	RSA_PKCS1_PSS_PADDING,4,4
	.comm	RSA_PSS_SALTLEN_DIGEST,4,4
	.comm	SSL3_VERSION,4,4
	.comm	SSL_AD_DECODE_ERROR,4,4
	.comm	SSL_AD_DECRYPT_ERROR,4,4
	.comm	SSL_AD_ILLEGAL_PARAMETER,4,4
	.comm	SSL_AD_INTERNAL_ERROR,4,4
	.comm	SSL_F_TLS_PROCESS_CERT_VERIFY,4,4
	.comm	SSL_R_BAD_PACKET,4,4
	.comm	SSL_R_BAD_SIGNATURE,4,4
	.comm	SSL_R_LENGTH_MISMATCH,4,4
	.comm	SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE,4,4
	.comm	SSL_R_WRONG_SIGNATURE_SIZE,4,4
	.comm	TLS13_TBS_PREAMBLE_SIZE,4,4
	.comm	stderr,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tls_process_cert_verify
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_process_cert_verify, %function
tls_process_cert_verify:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, .L34+8
	ldr	r2, [r3]
	ldr	r3, .L34+12
	ldr	r3, [r3]
	add	ip, r2, r3
	sub	r3, ip, #1
	str	r3, [fp, #-40]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #0
	str	r3, [fp, #-36]
	bl	EVP_MD_CTX_new
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L34+16
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+24
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L2:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	X509_get0_pubkey
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L34+16
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+28
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L4:
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	ssl_cert_lookup_by_pkey
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L34+32
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+36
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L5:
	ldr	r0, [fp, #-80]
	bl	SSL_USE_SIGALGS
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	PACKET_get_net_2
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L34+40
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+44
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L7:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	tls12_check_peer_sigalg
	mov	r3, r0
	cmp	r3, #0
	bgt	.L10
	b	.L3
.L6:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-80]
	bl	tls1_set_peer_legacy_sigalg
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L34+16
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+28
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L10:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #8]
	sub	r2, fp, #68
	mov	r1, r2
	mov	r0, r3
	bl	tls1_lookup_md
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L34+16
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+28
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L11:
	ldr	r0, [fp, #-80]
	bl	SSL_USE_SIGALGS
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r0, [fp, #-84]
	bl	PACKET_remaining
	mov	r3, r0
	cmp	r3, #64
	bne	.L13
	ldr	r0, [fp, #-44]
	bl	EVP_PKEY_id
	mov	r2, r0
	ldr	r3, .L34+48
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L14
	ldr	r0, [fp, #-44]
	bl	EVP_PKEY_id
	mov	r2, r0
	ldr	r3, .L34+52
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L14
.L13:
	ldr	r0, [fp, #-84]
	bl	PACKET_remaining
	mov	r3, r0
	cmp	r3, #128
	bne	.L12
	ldr	r0, [fp, #-44]
	bl	EVP_PKEY_id
	mov	r2, r0
	ldr	r3, .L34+56
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L12
.L14:
	ldr	r0, [fp, #-84]
	bl	PACKET_remaining
	mov	r3, r0
	str	r3, [fp, #-72]
	b	.L15
.L12:
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	PACKET_get_net_2
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L34+40
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+60
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L15:
	ldr	r0, [fp, #-44]
	bl	EVP_PKEY_size
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-72]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	blt	.L16
	ldr	r0, [fp, #-84]
	bl	PACKET_remaining
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	blt	.L16
	ldr	r0, [fp, #-84]
	bl	PACKET_remaining
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
.L16:
	ldr	r3, .L34+40
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+64
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L17:
	ldr	r2, [fp, #-72]
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	PACKET_get_bytes
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L34+40
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+60
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L18:
	sub	r3, fp, #64
	sub	r2, fp, #56
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-80]
	bl	get_cert_verify_tbs_data
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r2, [fp, #-68]
	sub	r1, fp, #60
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [fp, #-32]
	bl	EVP_DigestVerifyInit
	mov	r3, r0
	cmp	r3, #0
	bgt	.L20
	ldr	r3, .L34+16
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+68
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L20:
	ldr	r0, [fp, #-44]
	bl	EVP_PKEY_id
	str	r0, [fp, #-20]
	ldr	r3, .L34+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L21
	ldr	r3, .L34+52
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L21
	ldr	r3, .L34+56
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L22
.L21:
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	OPENSSL_malloc
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L34+16
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+24
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L23:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	BUF_reverse
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-76]
.L22:
	ldr	r0, [fp, #-80]
	bl	SSL_USE_PSS
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-60]
	ldr	r2, .L34+72
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	EVP_PKEY_CTX_set_rsa_padding
	mov	r3, r0
	cmp	r3, #0
	ble	.L25
	ldr	r3, [fp, #-60]
	ldr	r2, .L34+76
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	EVP_PKEY_CTX_set_rsa_pss_saltlen
	mov	r3, r0
	cmp	r3, #0
	bgt	.L24
.L25:
	ldr	r3, .L34+16
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+68
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L24:
	ldr	r3, [fp, #-80]
	ldr	r2, [r3]
	ldr	r3, .L34+80
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L26
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-64]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	EVP_DigestVerifyUpdate
	mov	r3, r0
	cmp	r3, #0
	ble	.L27
	ldr	r3, .L34+84
	ldr	r1, [r3]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	ldr	r0, [fp, #-32]
	bl	EVP_MD_CTX_ctrl
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
.L27:
	ldr	r3, .L34+16
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+68
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L28:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	EVP_DigestVerifyFinal
	mov	r3, r0
	cmp	r3, #0
	bgt	.L29
	ldr	r3, .L34+88
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+92
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L26:
	ldr	r1, [fp, #-76]
	ldr	r2, [fp, #-72]
	ldr	r0, [fp, #-56]
	ldr	r3, [fp, #-64]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-32]
	bl	EVP_DigestVerify
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L29
	ldr	r3, .L34+88
	ldr	r1, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+92
	ldr	r3, [r3]
	ldr	r0, [fp, #-80]
	bl	SSLfatal
	b	.L3
.L29:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L30
	ldr	r0, [fp, #-80]
	bl	SSL_IS_TLS13
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L30
	ldr	r3, .L34+96
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	b	.L3
.L30:
	ldr	r3, .L34+100
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	b	.L3
.L33:
	nop
.L3:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	mov	r0, r3
	bl	BIO_free
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #4]
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-32]
	bl	EVP_MD_CTX_free
	ldr	r0, [fp, #-48]
	bl	OPENSSL_free
	ldr	r3, [fp, #-52]
	mov	sp, r4
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC0
	.word	MSG_PROCESS_ERROR
	.word	TLS13_TBS_PREAMBLE_SIZE
	.word	EVP_MAX_MD_SIZE
	.word	SSL_AD_INTERNAL_ERROR
	.word	SSL_F_TLS_PROCESS_CERT_VERIFY
	.word	ERR_R_MALLOC_FAILURE
	.word	ERR_R_INTERNAL_ERROR
	.word	SSL_AD_ILLEGAL_PARAMETER
	.word	SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE
	.word	SSL_AD_DECODE_ERROR
	.word	SSL_R_BAD_PACKET
	.word	NID_id_GostR3410_2001
	.word	NID_id_GostR3410_2012_256
	.word	NID_id_GostR3410_2012_512
	.word	SSL_R_LENGTH_MISMATCH
	.word	SSL_R_WRONG_SIGNATURE_SIZE
	.word	ERR_R_EVP_LIB
	.word	RSA_PKCS1_PSS_PADDING
	.word	RSA_PSS_SALTLEN_DIGEST
	.word	SSL3_VERSION
	.word	EVP_CTRL_SSL3_MASTER_SECRET
	.word	SSL_AD_DECRYPT_ERROR
	.word	SSL_R_BAD_SIGNATURE
	.word	MSG_PROCESS_CONTINUE_PROCESSING
	.word	MSG_PROCESS_CONTINUE_READING
	.size	tls_process_cert_verify, .-tls_process_cert_verify
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
