	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shash_prepare_alg
_shash_prepare_alg:                     ## @shash_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), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	cmpl	%ecx, (%rdi)
	jg	LBB0_3
## %bb.1:
	movl	4(%rdi), %eax
	cmpl	%ecx, %eax
	jg	LBB0_3
## %bb.2:
	cmpl	%ecx, 8(%rdi)
	jle	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_crypto_shash_type@GOTPCREL(%rip), %rcx
	movq	%rcx, 64(%rdi)
	movq	_CRYPTO_ALG_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	56(%rdi), %ecx
	movq	_CRYPTO_ALG_TYPE_SHASH@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 56(%rdi)
	cmpq	$0, 48(%rdi)
	je	LBB0_5
## %bb.6:
	cmpq	$0, 40(%rdi)
	je	LBB0_7
LBB0_8:
	cmpq	$0, 32(%rdi)
	je	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	cmpq	$0, 16(%rdi)
	je	LBB0_11
## %bb.12:
	popq	%rbp
	retq
LBB0_5:
	movq	_shash_finup_unaligned@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 48(%rdi)
	cmpq	$0, 40(%rdi)
	jne	LBB0_8
LBB0_7:
	movq	_shash_digest_unaligned@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%rdi)
	cmpq	$0, 32(%rdi)
	jne	LBB0_10
LBB0_9:
	movq	_shash_default_export@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rdi)
	movq	_shash_default_import@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rdi)
	movl	%eax, 8(%rdi)
	jmp	LBB0_10
LBB0_11:
	movq	_shash_no_setkey@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_crypto_shash_type,4,2          ## @crypto_shash_type
	.comm	_CRYPTO_ALG_TYPE_MASK,4,2       ## @CRYPTO_ALG_TYPE_MASK
	.comm	_CRYPTO_ALG_TYPE_SHASH,4,2      ## @CRYPTO_ALG_TYPE_SHASH
	.comm	_shash_finup_unaligned,8,3      ## @shash_finup_unaligned
	.comm	_shash_digest_unaligned,8,3     ## @shash_digest_unaligned
	.comm	_shash_default_export,8,3       ## @shash_default_export
	.comm	_shash_default_import,4,2       ## @shash_default_import
	.comm	_shash_no_setkey,8,3            ## @shash_no_setkey
	.no_dead_strip	_shash_prepare_alg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shash_prepare_alg
_shash_prepare_alg:                     ; @shash_prepare_alg
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	cmp	w8, w9
	b.gt	LBB0_3
; %bb.1:
	ldr	w8, [x0, #4]
	cmp	w8, w9
	b.gt	LBB0_3
; %bb.2:
	ldr	w10, [x0, #8]
	cmp	w10, w9
	b.le	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
Lloh6:
	adrp	x9, _crypto_shash_type@GOTPAGE
Lloh7:
	ldr	x9, [x9, _crypto_shash_type@GOTPAGEOFF]
	str	x9, [x0, #64]
Lloh8:
	adrp	x9, _CRYPTO_ALG_TYPE_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CRYPTO_ALG_TYPE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x0, #56]
	bic	w9, w10, w9
Lloh11:
	adrp	x10, _CRYPTO_ALG_TYPE_SHASH@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CRYPTO_ALG_TYPE_SHASH@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x0, #56]
	ldr	x9, [x0, #48]
	cbz	x9, LBB0_9
; %bb.5:
	ldr	x9, [x0, #40]
	cbz	x9, LBB0_10
LBB0_6:
	ldr	x9, [x0, #32]
	cbz	x9, LBB0_11
LBB0_7:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_12
LBB0_8:
	mov	w0, #0
	ret
LBB0_9:
Lloh14:
	adrp	x9, _shash_finup_unaligned@GOTPAGE
Lloh15:
	ldr	x9, [x9, _shash_finup_unaligned@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	str	x9, [x0, #48]
	ldr	x9, [x0, #40]
	cbnz	x9, LBB0_6
LBB0_10:
Lloh17:
	adrp	x9, _shash_digest_unaligned@GOTPAGE
Lloh18:
	ldr	x9, [x9, _shash_digest_unaligned@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	str	x9, [x0, #40]
	ldr	x9, [x0, #32]
	cbnz	x9, LBB0_7
LBB0_11:
Lloh20:
	adrp	x9, _shash_default_export@GOTPAGE
Lloh21:
	ldr	x9, [x9, _shash_default_export@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	str	x9, [x0, #32]
Lloh23:
	adrp	x9, _shash_default_import@GOTPAGE
Lloh24:
	ldr	x9, [x9, _shash_default_import@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	str	w9, [x0, #24]
	str	w8, [x0, #8]
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_8
LBB0_12:
Lloh26:
	adrp	x9, _shash_no_setkey@GOTPAGE
Lloh27:
	ldr	x9, [x9, _shash_no_setkey@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	str	x9, [x0, #16]
	mov	x0, x8
	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
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_crypto_shash_type,4,2          ; @crypto_shash_type
	.comm	_CRYPTO_ALG_TYPE_MASK,4,2       ; @CRYPTO_ALG_TYPE_MASK
	.comm	_CRYPTO_ALG_TYPE_SHASH,4,2      ; @CRYPTO_ALG_TYPE_SHASH
	.comm	_shash_finup_unaligned,8,3      ; @shash_finup_unaligned
	.comm	_shash_digest_unaligned,8,3     ; @shash_digest_unaligned
	.comm	_shash_default_export,8,3       ; @shash_default_export
	.comm	_shash_default_import,4,2       ; @shash_default_import
	.comm	_shash_no_setkey,8,3            ; @shash_no_setkey
	.no_dead_strip	_shash_prepare_alg
.subsections_via_symbols
