	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ahash_setkey
_ahash_setkey:                          ## @ahash_setkey
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_crypto_ahash_tfm
	movl	%eax, %edi
	callq	_crypto_tfm_ctx
	movq	%rax, %r12
	movq	16(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_crypto_ahash_tfm
	movl	%eax, %edi
	callq	_crypto_tfm_alg_blocksize
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_crypto_ahash_digestsize
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_SHA512_DIGEST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	cmpl	%r14d, %r13d
	jae	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_keyhash
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_crypto_ahash_set_flags
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_1:
	movl	4(%r12), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_4:
	movl	4(%r12), %edi
	movq	%r15, %rsi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_5:
	movl	%r14d, %edx
	callq	_memcpy
	movl	(%r12), %edx
	testl	%edx, %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movl	8(%r12), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_dma_unmap_single
LBB0_7:
	movl	%r14d, (%r12)
	movl	4(%r12), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_dma_map_single
	movl	%eax, 8(%r12)
	xorl	%eax, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA512_DIGEST_SIZE,4,2         ## @SHA512_DIGEST_SIZE
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ## @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_ahash_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ahash_setkey
_ahash_setkey:                          ; @ahash_setkey
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_crypto_ahash_tfm
	bl	_crypto_tfm_ctx
	mov	x19, x0
	ldr	x21, [x0, #16]
	mov	x0, x22
	bl	_crypto_ahash_tfm
	bl	_crypto_tfm_alg_blocksize
	mov	x26, x0
	mov	x0, x22
	bl	_crypto_ahash_digestsize
	mov	x24, x0
Lloh3:
	adrp	x8, _SHA512_DIGEST_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHA512_DIGEST_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	cmp	w26, w20
	b.hs	LBB0_3
; %bb.1:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	mov	x3, x25
	bl	_keyhash
	cbz	w0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_crypto_ahash_set_flags
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	ldr	w0, [x19, #4]
	mov	x1, x23
	mov	x2, x20
	bl	_memcpy
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #4]
	mov	x1, x25
	mov	x2, x24
	bl	_memcpy
	mov	x20, x24
LBB0_5:
	ldr	w2, [x19]
Lloh14:
	adrp	x22, _DMA_TO_DEVICE@GOTPAGE
Lloh15:
	ldr	x22, [x22, _DMA_TO_DEVICE@GOTPAGEOFF]
	cbz	w2, LBB0_7
; %bb.6:
	ldr	w1, [x19, #8]
	ldr	w3, [x22]
	mov	x0, x21
	bl	_dma_unmap_single
LBB0_7:
	str	w20, [x19]
	ldr	w1, [x19, #4]
	ldr	w3, [x22]
	mov	x0, x21
	mov	x2, x20
	bl	_dma_map_single
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA512_DIGEST_SIZE,4,2         ; @SHA512_DIGEST_SIZE
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ; @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_ahash_setkey
.subsections_via_symbols
