	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_MD_CTX_reset               ## -- Begin function EVP_MD_CTX_reset
	.p2align	4, 0x90
_EVP_MD_CTX_reset:                      ## @EVP_MD_CTX_reset
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.3:
	movq	_EVP_MD_CTX_FLAG_CLEANED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EVP_MD_CTX_test_flags
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
LBB0_5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.7:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.8:
	movq	_EVP_MD_CTX_FLAG_REUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EVP_MD_CTX_test_flags
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rdi
	movq	(%rax), %rsi
	callq	_OPENSSL_clear_free
LBB0_10:
	movq	_EVP_MD_CTX_FLAG_KEEP_PKEY_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EVP_MD_CTX_test_flags
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	4(%rbx), %edi
	callq	_EVP_PKEY_CTX_free
LBB0_12:
	movl	(%rbx), %edi
	callq	_ENGINE_finish
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_OPENSSL_cleanse
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
LBB0_13:
	movl	$1, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MD_CTX_FLAG_CLEANED,4,2    ## @EVP_MD_CTX_FLAG_CLEANED
	.comm	_EVP_MD_CTX_FLAG_REUSE,4,2      ## @EVP_MD_CTX_FLAG_REUSE
	.comm	_EVP_MD_CTX_FLAG_KEEP_PKEY_CTX,4,2 ## @EVP_MD_CTX_FLAG_KEEP_PKEY_CTX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_MD_CTX_reset               ; -- Begin function EVP_MD_CTX_reset
	.p2align	2
_EVP_MD_CTX_reset:                      ; @EVP_MD_CTX_reset
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_13
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _EVP_MD_CTX_FLAG_CLEANED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_MD_CTX_FLAG_CLEANED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EVP_MD_CTX_test_flags
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.8:
Lloh3:
	adrp	x8, _EVP_MD_CTX_FLAG_REUSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MD_CTX_FLAG_REUSE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EVP_MD_CTX_test_flags
	cbnz	w0, LBB0_10
; %bb.9:
	ldp	x8, x0, [x19, #8]
	ldr	x1, [x8]
	bl	_OPENSSL_clear_free
LBB0_10:
Lloh6:
	adrp	x8, _EVP_MD_CTX_FLAG_KEEP_PKEY_CTX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_MD_CTX_FLAG_KEEP_PKEY_CTX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EVP_MD_CTX_test_flags
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	w0, [x19, #4]
	bl	_EVP_PKEY_CTX_free
LBB0_12:
	ldr	w0, [x19]
	bl	_ENGINE_finish
	mov	x0, x19
	mov	w1, #24
	bl	_OPENSSL_cleanse
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_13:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MD_CTX_FLAG_CLEANED,4,2    ; @EVP_MD_CTX_FLAG_CLEANED
	.comm	_EVP_MD_CTX_FLAG_REUSE,4,2      ; @EVP_MD_CTX_FLAG_REUSE
	.comm	_EVP_MD_CTX_FLAG_KEEP_PKEY_CTX,4,2 ; @EVP_MD_CTX_FLAG_KEEP_PKEY_CTX
.subsections_via_symbols
