	.file	"extr_digest.c_EVP_MD_CTX_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	EVP_MD_CTX_reset
	.type	EVP_MD_CTX_reset, @function
EVP_MD_CTX_reset:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L24
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR EVP_MD_CTX_FLAG_KEEP_PKEY_CTX[rip]
	mov	rbp, rdi
	call	EVP_MD_CTX_test_flags@PLT
	test	eax, eax
	je	.L28
.L3:
	mov	rdi, QWORD PTR 40[rbp]
	call	EVP_MD_free@PLT
	mov	rdi, QWORD PTR 24[rbp]
	mov	QWORD PTR 40[rbp], 0
	mov	QWORD PTR 32[rbp], 0
	test	rdi, rdi
	je	.L4
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L5
	call	rax
.L5:
	mov	QWORD PTR 24[rbp], 0
	mov	esi, DWORD PTR EVP_MD_CTX_FLAG_CLEANED[rip]
	mov	rdi, rbp
	call	EVP_MD_CTX_set_flags@PLT
.L4:
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L7
	cmp	QWORD PTR 8[rax], 0
	je	.L8
	mov	esi, DWORD PTR EVP_MD_CTX_FLAG_CLEANED[rip]
	mov	rdi, rbp
	call	EVP_MD_CTX_test_flags@PLT
	test	eax, eax
	je	.L29
.L9:
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L7
.L8:
	cmp	QWORD PTR [rax], 0
	je	.L7
	cmp	QWORD PTR 16[rbp], 0
	jne	.L30
.L7:
	mov	edi, DWORD PTR 0[rbp]
	call	ENGINE_finish@PLT
	mov	rdi, rbp
	mov	esi, 56
	call	OPENSSL_cleanse@PLT
	mov	eax, 1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	edi, DWORD PTR 48[rbp]
	call	EVP_PKEY_CTX_free@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_def_cfa_offset 8
	.cfi_restore 6
	mov	eax, 1
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	call	[QWORD PTR 8[rax]]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, DWORD PTR EVP_MD_CTX_FLAG_REUSE[rip]
	mov	rdi, rbp
	call	EVP_MD_CTX_test_flags@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR [rax]
	call	OPENSSL_clear_free@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	EVP_MD_CTX_reset, .-EVP_MD_CTX_reset
	.comm	EVP_MD_CTX_FLAG_REUSE,4,4
	.comm	EVP_MD_CTX_FLAG_KEEP_PKEY_CTX,4,4
	.comm	EVP_MD_CTX_FLAG_CLEANED,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_digest.c_EVP_MD_CTX_reset.c"
	.text
	.align	2
	.global	EVP_MD_CTX_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	EVP_MD_CTX_reset, %function
EVP_MD_CTX_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L37
	ldr	r1, [r3]
	bl	EVP_MD_CTX_test_flags
	cmp	r0, #0
	beq	.L34
.L3:
	ldr	r0, [r4, #20]
	bl	EVP_MD_free
	mov	r3, #0
	ldr	r0, [r4, #12]
	str	r3, [r4, #20]
	cmp	r0, r3
	str	r3, [r4, #16]
	beq	.L4
	ldr	r3, [r4, #4]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L5
	blx	r3
.L5:
	mov	r2, #0
	ldr	r3, .L37+4
	mov	r0, r4
	ldr	r1, [r3]
	str	r2, [r4, #12]
	bl	EVP_MD_CTX_set_flags
.L4:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L7
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L8
	ldr	r3, .L37+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	EVP_MD_CTX_test_flags
	cmp	r0, #0
	beq	.L35
.L9:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L7
.L8:
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L36
.L7:
	ldr	r0, [r4]
	bl	ENGINE_finish
	mov	r0, r4
	mov	r1, #28
	bl	OPENSSL_cleanse
.L2:
	mov	r0, #1
	pop	{r4, pc}
.L34:
	ldr	r0, [r4, #24]
	bl	EVP_PKEY_CTX_free
	b	.L3
.L35:
	ldr	r3, [r4, #4]
	mov	r0, r4
	ldr	r3, [r3, #4]
	blx	r3
	b	.L9
.L36:
	ldr	r3, .L37+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	EVP_MD_CTX_test_flags
	cmp	r0, #0
	bne	.L7
	ldr	r3, [r4, #4]
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	bl	OPENSSL_clear_free
	b	.L7
.L38:
	.align	2
.L37:
	.word	EVP_MD_CTX_FLAG_KEEP_PKEY_CTX
	.word	EVP_MD_CTX_FLAG_CLEANED
	.word	EVP_MD_CTX_FLAG_REUSE
	.size	EVP_MD_CTX_reset, .-EVP_MD_CTX_reset
	.comm	EVP_MD_CTX_FLAG_REUSE,4,4
	.comm	EVP_MD_CTX_FLAG_KEEP_PKEY_CTX,4,4
	.comm	EVP_MD_CTX_FLAG_CLEANED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
