	.file	"extr_opgp_sig.c_verify_digest.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	verify_digest, @function
verify_digest:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	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, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	initialize@PLT
	mov	rdi, r15
	call	EVP_get_digestbyname@PLT
	lea	rdi, 4[rsp]
	mov	rsi, rax
	call	EVP_DigestInit@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	EVP_PKEY_CTX_new@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L4
	mov	rdi, rax
	call	EVP_PKEY_verify_init@PLT
	test	rax, rax
	jle	.L4
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	EVP_PKEY_CTX_set_signature_md@PLT
	test	rax, rax
	jle	.L4
	mov	rsi, r12
	mov	r8, rbx
	mov	rcx, r14
	mov	rdx, r13
	mov	rdi, rbp
	mov	r12d, 0
	call	EVP_PKEY_verify@PLT
	test	eax, eax
	cmovns	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xor	r12d, r12d
.L3:
	mov	rdi, rbp
	call	EVP_PKEY_CTX_free@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	verify_digest, .-verify_digest
	.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_opgp_sig.c_verify_digest.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_digest, %function
verify_digest:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r3
	ldr	r3, .L9
	sub	sp, sp, #16
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	ldr	r8, [sp, #40]
	bl	initialize
	mov	r0, r5
	bl	EVP_get_digestbyname
	mov	r1, r0
	add	r0, sp, #8
	bl	EVP_DigestInit
	mov	r0, r4
	mov	r1, #0
	bl	EVP_PKEY_CTX_new
	subs	r4, r0, #0
	beq	.L4
	bl	EVP_PKEY_verify_init
	cmp	r0, #0
	ble	.L4
	mov	r0, r4
	ldr	r1, [sp, #8]
	bl	EVP_PKEY_CTX_set_signature_md
	cmp	r0, #0
	ble	.L4
	mov	r3, r7
	mov	r1, r8
	mov	r0, r4
	ldr	r2, [sp, #44]
	str	r6, [sp]
	bl	EVP_PKEY_verify
	bic	r5, r0, r0, asr #31
	b	.L3
.L4:
	mov	r5, #0
.L3:
	mov	r0, r4
	bl	EVP_PKEY_CTX_free
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	verify_digest, .-verify_digest
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
