	.file	"extr_ssl_lib.c_ssl_handshake_hash.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ssl_handshake_hash
	.type	ssl_handshake_hash, @function
ssl_handshake_hash:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rcx
	mov	rdi, r13
	call	EVP_MD_CTX_size@PLT
	test	eax, eax
	js	.L2
	movsx	r14, eax
	cmp	r14, rbx
	jbe	.L3
.L2:
	mov	ecx, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	rdi, rbp
	xor	ebx, ebx
	xor	r15d, r15d
	mov	edx, DWORD PTR SSL_F_SSL_HANDSHAKE_HASH[rip]
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	call	SSLfatal@PLT
.L4:
	mov	rdi, r15
	call	EVP_MD_CTX_free@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	eax, eax
	xor	ebx, ebx
	call	EVP_MD_CTX_new@PLT
	mov	r15, rax
	test	rax, rax
	je	.L4
	mov	rsi, r13
	mov	rdi, rax
	call	EVP_MD_CTX_copy_ex@PLT
	test	eax, eax
	je	.L6
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, r15
	call	EVP_DigestFinal_ex@PLT
	test	rax, rax
	jle	.L6
	mov	rax, QWORD PTR 8[rsp]
	mov	ebx, 1
	mov	QWORD PTR [rax], r14
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edx, DWORD PTR SSL_F_SSL_HANDSHAKE_HASH[rip]
	mov	rdi, rbp
	xor	ebx, ebx
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	call	SSLfatal@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ssl_handshake_hash, .-ssl_handshake_hash
	.comm	SSL_F_SSL_HANDSHAKE_HASH,4,4
	.comm	SSL_AD_INTERNAL_ERROR,4,4
	.comm	ERR_R_INTERNAL_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ssl_lib.c_ssl_handshake_hash.c"
	.text
	.align	2
	.global	ssl_handshake_hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_handshake_hash, %function
ssl_handshake_hash:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, [r0]
	mov	r6, r0
	mov	r0, r10
	mov	r4, r2
	mov	r8, r1
	mov	r9, r3
	bl	EVP_MD_CTX_size
	cmp	r0, r4
	movls	r2, #0
	movhi	r2, #1
	orrs	r4, r2, r0, lsr #31
	bne	.L9
	mov	r5, r0
	bl	EVP_MD_CTX_new
	subs	r7, r0, #0
	moveq	r4, r7
	beq	.L3
	mov	r1, r10
	bl	EVP_MD_CTX_copy_ex
	cmp	r0, #0
	beq	.L5
	mov	r2, r4
	mov	r1, r8
	mov	r0, r7
	bl	EVP_DigestFinal_ex
	cmp	r0, #0
	ble	.L5
	mov	r4, #1
	str	r5, [r9]
.L3:
	mov	r0, r7
	bl	EVP_MD_CTX_free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r4, #0
	ldr	r3, .L10
	ldr	r2, .L10+4
	ldr	r1, .L10+8
	mov	r0, r6
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	SSLfatal
	mov	r7, r4
	b	.L3
.L5:
	ldr	r3, .L10
	ldr	r2, .L10+4
	ldr	r1, .L10+8
	mov	r0, r6
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	SSLfatal
	mov	r4, #0
	b	.L3
.L11:
	.align	2
.L10:
	.word	ERR_R_INTERNAL_ERROR
	.word	SSL_F_SSL_HANDSHAKE_HASH
	.word	SSL_AD_INTERNAL_ERROR
	.size	ssl_handshake_hash, .-ssl_handshake_hash
	.comm	SSL_F_SSL_HANDSHAKE_HASH,4,4
	.comm	SSL_AD_INTERNAL_ERROR,4,4
	.comm	ERR_R_INTERNAL_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
