	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ahash_prepare_alg
_ahash_prepare_alg:                     ## @ahash_prepare_alg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	cmpl	%eax, (%rdi)
	jg	LBB0_2
## %bb.1:
	cmpl	%eax, 4(%rdi)
	jle	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_crypto_ahash_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rdi)
	movq	_CRYPTO_ALG_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%rdi), %eax
	movq	_CRYPTO_ALG_TYPE_AHASH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_crypto_ahash_type,4,2          ## @crypto_ahash_type
	.comm	_CRYPTO_ALG_TYPE_MASK,4,2       ## @CRYPTO_ALG_TYPE_MASK
	.comm	_CRYPTO_ALG_TYPE_AHASH,4,2      ## @CRYPTO_ALG_TYPE_AHASH
	.no_dead_strip	_ahash_prepare_alg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ahash_prepare_alg
_ahash_prepare_alg:                     ; @ahash_prepare_alg
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #3
	cmp	w9, w8
	b.gt	LBB0_2
; %bb.1:
	ldr	w9, [x0, #4]
	cmp	w9, w8
	b.le	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
Lloh6:
	adrp	x9, _crypto_ahash_type@GOTPAGE
Lloh7:
	ldr	x9, [x9, _crypto_ahash_type@GOTPAGEOFF]
	str	x9, [x0, #16]
Lloh8:
	adrp	x9, _CRYPTO_ALG_TYPE_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CRYPTO_ALG_TYPE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x0, #8]
	bic	w9, w10, w9
Lloh11:
	adrp	x10, _CRYPTO_ALG_TYPE_AHASH@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CRYPTO_ALG_TYPE_AHASH@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x0, #8]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_crypto_ahash_type,4,2          ; @crypto_ahash_type
	.comm	_CRYPTO_ALG_TYPE_MASK,4,2       ; @CRYPTO_ALG_TYPE_MASK
	.comm	_CRYPTO_ALG_TYPE_AHASH,4,2      ; @CRYPTO_ALG_TYPE_AHASH
	.no_dead_strip	_ahash_prepare_alg
.subsections_via_symbols
