	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ahash_init
_ahash_init:                            ## @ahash_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_crypto_ahash_reqtfm
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_crypto_ahash_ctx
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_ahash_request_ctx
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rax)
	movl	$1, (%rax)
	movq	$0, 16(%rax)
	movq	%r15, %rdi
	callq	_crypto_ahash_digestsize
	movq	_SHA256_DIGEST_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_1
## %bb.2:
	movq	_TALITOS_MDEU_CONTEXT_SIZE_SHA384_SHA512@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TALITOS_MDEU_CONTEXT_SIZE_MD5_SHA1_SHA256@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movl	%edx, 4(%rbx)
	movl	8(%rbx), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	callq	_dma_map_single
	movl	4(%rbx), %edx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_unmap_single
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_DIGEST_SIZE,8,3         ## @SHA256_DIGEST_SIZE
	.comm	_TALITOS_MDEU_CONTEXT_SIZE_MD5_SHA1_SHA256,4,2 ## @TALITOS_MDEU_CONTEXT_SIZE_MD5_SHA1_SHA256
	.comm	_TALITOS_MDEU_CONTEXT_SIZE_SHA384_SHA512,4,2 ## @TALITOS_MDEU_CONTEXT_SIZE_SHA384_SHA512
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_ahash_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ahash_init
_ahash_init:                            ; @ahash_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_crypto_ahash_reqtfm
	mov	x20, x0
	bl	_crypto_ahash_ctx
	ldr	x21, [x0]
	mov	x0, x19
	bl	_ahash_request_ctx
	mov	x19, x0
	stp	xzr, xzr, [x0, #24]
	mov	w8, #1
	str	w8, [x0]
	str	xzr, [x0, #16]
	mov	x0, x20
	bl	_crypto_ahash_digestsize
Lloh0:
	adrp	x8, _SHA256_DIGEST_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHA256_DIGEST_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _TALITOS_MDEU_CONTEXT_SIZE_MD5_SHA1_SHA256@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TALITOS_MDEU_CONTEXT_SIZE_MD5_SHA1_SHA256@GOTPAGEOFF]
Lloh5:
	adrp	x10, _TALITOS_MDEU_CONTEXT_SIZE_SHA384_SHA512@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TALITOS_MDEU_CONTEXT_SIZE_SHA384_SHA512@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x10, x9, gt
	ldr	w2, [x8]
	str	w2, [x19, #4]
	ldr	w1, [x19, #8]
Lloh7:
	adrp	x20, _DMA_TO_DEVICE@GOTPAGE
Lloh8:
	ldr	x20, [x20, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x0, x21
	bl	_dma_map_single
	mov	x1, x0
	ldr	w2, [x19, #4]
	ldr	w3, [x20]
	mov	x0, x21
	bl	_dma_unmap_single
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_DIGEST_SIZE,8,3         ; @SHA256_DIGEST_SIZE
	.comm	_TALITOS_MDEU_CONTEXT_SIZE_MD5_SHA1_SHA256,4,2 ; @TALITOS_MDEU_CONTEXT_SIZE_MD5_SHA1_SHA256
	.comm	_TALITOS_MDEU_CONTEXT_SIZE_SHA384_SHA512,4,2 ; @TALITOS_MDEU_CONTEXT_SIZE_SHA384_SHA512
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_ahash_init
.subsections_via_symbols
