	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ossl_prov_digest_load_from_params ## -- Begin function ossl_prov_digest_load_from_params
	.p2align	4, 0x90
_ossl_prov_digest_load_from_params:     ## @ossl_prov_digest_load_from_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	16(%rdi), %rdx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_load_common
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_OSSL_ALG_PARAM_DIGEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_OSSL_PARAM_UTF8_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	8(%r15), %rdi
	callq	_EVP_MD_free
	movl	8(%r12), %esi
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_EVP_MD_fetch
	movq	%rax, 8(%r15)
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	8(%r12), %edi
	callq	_EVP_get_digestbyname
	movq	%rax, (%r15)
LBB0_6:
	xorl	%r13d, %r13d
	testq	%rax, %rax
	setne	%r13b
	jmp	LBB0_7
LBB0_2:
	movl	$1, %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_ALG_PARAM_DIGEST,4,2      ## @OSSL_ALG_PARAM_DIGEST
	.comm	_OSSL_PARAM_UTF8_STRING,8,3     ## @OSSL_PARAM_UTF8_STRING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ossl_prov_digest_load_from_params ; -- Begin function ossl_prov_digest_load_from_params
	.p2align	2
_ossl_prov_digest_load_from_params:     ; @ossl_prov_digest_load_from_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x2, x0, #16
	add	x1, sp, #8
	mov	x0, x21
	bl	_load_common
	cbz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _OSSL_ALG_PARAM_DIGEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_ALG_PARAM_DIGEST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _OSSL_PARAM_UTF8_STRING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OSSL_PARAM_UTF8_STRING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_EVP_MD_free
	ldr	w1, [x21, #8]
	ldr	x2, [sp, #8]
	mov	x0, x20
	bl	_EVP_MD_fetch
	stp	x0, x0, [x19]
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x21, #8]
	bl	_EVP_get_digestbyname
	str	x0, [x19]
LBB0_5:
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_8
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_ALG_PARAM_DIGEST,4,2      ; @OSSL_ALG_PARAM_DIGEST
	.comm	_OSSL_PARAM_UTF8_STRING,8,3     ; @OSSL_PARAM_UTF8_STRING
.subsections_via_symbols
