	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qce_ahash_done
_qce_ahash_done:                        ## @qce_ahash_done
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ahash_request_cast
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_crypto_ahash_reqtfm
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_ahash_request_ctx
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_to_ahash_tmpl
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	leaq	16(%r15), %rbx
	movq	16(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_crypto_ahash_digestsize
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_qce_dma_terminate_all
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_2:
	movl	8(%r15), %edi
	movq	8(%r14), %rsi
	movl	(%r12), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_sg
	movl	8(%r15), %edi
	movq	%r12, %rsi
	addq	$40, %rsi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	callq	_dma_unmap_sg
	movq	32(%r12), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %esi
	movl	%r13d, %edx
	callq	_memcpy
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %esi
	movl	%r13d, %edx
	callq	_memcpy
LBB0_4:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	24(%r12), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_cpu_to_be32
	movq	24(%r12), %rcx
	movq	%rax, 8(%rcx)
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qce_check_status
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	8(%r15), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_6:
	movq	16(%r12), %rax
	movq	%rax, 8(%r14)
	movl	12(%r12), %eax
	movl	%eax, (%r14)
	movq	$0, 4(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	%ebx, %esi
	callq	*(%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ahash dma termination error (%d)\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"ahash operation error (%x)\n"

	.no_dead_strip	_qce_ahash_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qce_ahash_done
_qce_ahash_done:                        ; @qce_ahash_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x0
	bl	_ahash_request_cast
	mov	x19, x0
	bl	_crypto_ahash_reqtfm
	mov	x23, x0
	mov	x0, x19
	bl	_ahash_request_ctx
	mov	x20, x0
	ldr	w0, [x21]
	bl	_to_ahash_tmpl
	mov	x21, x0
	ldr	x22, [x0]
	mov	x24, x22
	ldr	x25, [x24, #16]!
	mov	x0, x23
	bl	_crypto_ahash_digestsize
	mov	x23, x0
	mov	x0, x24
	bl	_qce_dma_terminate_all
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x22, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_2:
	ldr	w0, [x22, #8]
	ldr	x1, [x19, #8]
	ldr	w2, [x20]
Lloh2:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	bl	_dma_unmap_sg
	ldr	w0, [x22, #8]
	add	x1, x20, #40
Lloh5:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	w2, #1
	bl	_dma_unmap_sg
	ldr	x0, [x20, #32]
	ldr	w1, [x25, #8]
	mov	x2, x23
	bl	_memcpy
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x25, #8]
	mov	x2, x23
	bl	_memcpy
LBB0_4:
	ldr	x8, [x25]
	ldr	w0, [x8]
	bl	_cpu_to_be32
	ldr	x8, [x20, #24]
	str	x0, [x8]
	ldr	x8, [x25]
	ldr	w0, [x8, #4]
	bl	_cpu_to_be32
	ldr	x8, [x20, #24]
	str	x0, [x8, #8]
	add	x1, sp, #12
	mov	x0, x22
	bl	_qce_check_status
	mov	x23, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
	ldr	w0, [x22, #8]
	ldr	w2, [sp, #12]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_6:
	ldr	x8, [x20, #16]
	str	x8, [x19, #8]
	ldr	w8, [x20, #12]
	str	w8, [x19]
	stp	wzr, wzr, [x20, #4]
	ldr	x8, [x22]
	ldr	x0, [x21]
	mov	x1, x23
	blr	x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ahash dma termination error (%d)\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"ahash operation error (%x)\n"

	.no_dead_strip	_qce_ahash_done
.subsections_via_symbols
