	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_cesa_ahash_complete
_mv_cesa_ahash_complete:                ## @mv_cesa_ahash_complete
	.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
	callq	_ahash_request_cast
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ahash_request_ctx
	movq	%rax, %r14
	movq	32(%rax), %r15
	movq	%rax, %r12
	addq	$24, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_crypto_ahash_reqtfm
	movl	%eax, %edi
	callq	_crypto_ahash_digestsize
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mv_cesa_req_get_type
	movq	_CESA_DMA_REQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_6
## %bb.1:
	movq	(%r12), %rax
	movq	_CESA_TDMA_TYPE_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movq	_CESA_TDMA_RESULT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_6
## %bb.2:
	movq	8(%rax), %rax
	movq	(%rax), %r13
	cmpl	$4, %ebx
	jb	LBB0_5
## %bb.3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r12d
	shrl	$2, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rdi
	callq	_cpu_to_le32
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	jmp	LBB0_17
LBB0_6:
	movl	%ebx, %eax
	shrl	$2, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$4, %ebx
	jb	LBB0_9
## %bb.7:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	movl	$1, %r12d
	cmovael	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r13
	movl	%ebx, %edi
	callq	_CESA_IVDIG
	addq	%rax, %r13
	movq	%r13, %rdi
	callq	_readl_relaxed
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_8
LBB0_9:
	cmpq	$0, 16(%r14)
	je	LBB0_17
## %bb.10:
	cmpq	$0, 8(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r12
	je	LBB0_14
## %bb.11:
	cmpl	$4, -44(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_17
## %bb.12:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	movl	$1, %r13d
	cmovael	%eax, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_cpu_to_le32
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_13
	jmp	LBB0_17
LBB0_14:
	cmpl	$4, -44(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_17
## %bb.15:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	movl	$1, %r13d
	cmovael	%eax, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_cpu_to_be32
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_16
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_sub                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CESA_DMA_REQ,8,3               ## @CESA_DMA_REQ
	.comm	_CESA_TDMA_TYPE_MSK,4,2         ## @CESA_TDMA_TYPE_MSK
	.comm	_CESA_TDMA_RESULT,4,2           ## @CESA_TDMA_RESULT
	.no_dead_strip	_mv_cesa_ahash_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_cesa_ahash_complete
_mv_cesa_ahash_complete:                ; @mv_cesa_ahash_complete
	.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
	bl	_ahash_request_cast
	mov	x19, x0
	bl	_ahash_request_ctx
	mov	x21, x0
	add	x23, x0, #24
	ldr	x20, [x0, #32]
	mov	x0, x19
	bl	_crypto_ahash_reqtfm
	bl	_crypto_ahash_digestsize
	mov	x22, x0
	mov	x0, x23
	bl	_mv_cesa_req_get_type
Lloh0:
	adrp	x8, _CESA_DMA_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CESA_DMA_REQ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x23]
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _CESA_TDMA_TYPE_MSK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CESA_TDMA_TYPE_MSK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh6:
	adrp	x10, _CESA_TDMA_RESULT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CESA_TDMA_RESULT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x8, #8]
	ldr	x23, [x8]
	cmp	w22, #4
	b.lo	LBB0_5
; %bb.3:
	mov	x24, #0
	lsr	w8, w22, #2
	lsl	x25, x8, #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23, x24]
	bl	_cpu_to_le32
	ldr	x8, [x21]
	str	x0, [x8, x24]
	add	x24, x24, #8
	cmp	x25, x24
	b.ne	LBB0_4
LBB0_5:
	ldr	x0, [x19, #8]
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	b	LBB0_17
LBB0_6:
	lsr	w24, w22, #2
	cmp	w22, #4
	b.lo	LBB0_9
; %bb.7:
	mov	x23, #0
	cmp	w24, #1
	csinc	w25, w24, wzr, hi
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x20, #8]
	mov	x0, x23
	bl	_CESA_IVDIG
	add	x0, x0, x26
	bl	_readl_relaxed
	ldr	x8, [x21]
	str	x0, [x8, x23, lsl #3]
	add	x23, x23, #1
	cmp	x25, x23
	b.ne	LBB0_8
LBB0_9:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_17
; %bb.10:
	ldr	x8, [x21, #8]
	ldr	x23, [x19, #8]
	cmp	w22, #4
	cbz	x8, LBB0_14
; %bb.11:
	b.lo	LBB0_17
; %bb.12:
	mov	x22, #0
	cmp	w24, #1
	csinc	w8, w24, wzr, hi
	lsl	x24, x8, #3
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x22]
	bl	_cpu_to_le32
	str	x0, [x23, x22]
	add	x22, x22, #8
	cmp	x24, x22
	b.ne	LBB0_13
	b	LBB0_17
LBB0_14:
	b.lo	LBB0_17
; %bb.15:
	mov	x22, #0
	cmp	w24, #1
	csinc	w24, w24, wzr, hi
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x22, lsl #3]
	bl	_cpu_to_be32
	str	w0, [x23, x22, lsl #2]
	add	x22, x22, #1
	cmp	x24, x22
	b.ne	LBB0_16
LBB0_17:
	ldr	w0, [x19]
	mov	x1, x20
	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
	b	_atomic_sub
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CESA_DMA_REQ,8,3               ; @CESA_DMA_REQ
	.comm	_CESA_TDMA_TYPE_MSK,4,2         ; @CESA_TDMA_TYPE_MSK
	.comm	_CESA_TDMA_RESULT,4,2           ; @CESA_TDMA_RESULT
	.no_dead_strip	_mv_cesa_ahash_complete
.subsections_via_symbols
