	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_cesa_ahash_dma_last_req
_mv_cesa_ahash_dma_last_req:            ## @mv_cesa_ahash_dma_last_req
	.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	%r8d, %ebx
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rdi, %r13
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.1:
	movq	_CESA_SA_DESC_MAC_SRC_TOTAL_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, 4(%r14)
	jg	LBB0_8
## %bb.2:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_mv_cesa_dma_add_frag
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
LBB0_17:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_mv_cesa_ahash_dma_alloc_padding
	testl	%eax, %eax
	je	LBB0_11
LBB0_9:
	movl	%eax, %edi
	jmp	LBB0_10
LBB0_3:
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_mv_cesa_set_mac_op_total_len
	movq	%r12, %rdi
	callq	_mv_cesa_mac_op_is_first_frag
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_CESA_SA_DESC_CFG_LAST_FRAG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	16(%r14), %esi
	movq	%r14, %rdi
	callq	_mv_cesa_ahash_pad_req
	movl	%eax, %r13d
	movq	_CESA_SA_SRAM_PAYLOAD_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r15d, %r12d
	subq	%r12, %rdi
	movl	%r13d, %esi
	callq	_min
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	_CESA_SA_DATA_SRAM_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	_CESA_TDMA_DST_IN_SRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %r13
	movq	%r12, %rsi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_mv_cesa_dma_add_data_transfer
	testl	%eax, %eax
	jne	LBB0_9
## %bb.13:
	addl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_mv_cesa_dma_add_frag
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r13d
	je	LBB0_17
LBB0_15:
	movq	_CESA_SA_DATA_SRAM_OFFSET@GOTPCREL(%rip), %rax
	movl	%ebx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rdx
	movq	(%rax), %rsi
	subl	%ebx, %r13d
	movq	_CESA_TDMA_DST_IN_SRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %ecx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_mv_cesa_dma_add_data_transfer
	testl	%eax, %eax
	jne	LBB0_9
## %bb.16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mv_cesa_dma_add_frag           ## TAILCALL
LBB0_4:
	movq	_CESA_SA_DESC_CFG_NOT_FRAG@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	_CESA_SA_DESC_CFG_FRAG_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mv_cesa_update_op_cfg
	movq	_CESA_SA_CFG_SRAM_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CESA_SA_DATA_SRAM_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_CESA_TDMA_SRC_IN_SRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%ebx, %r8d
	callq	_mv_cesa_dma_add_result_op
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CESA_SA_DESC_MAC_SRC_TOTAL_LEN_MAX,4,2 ## @CESA_SA_DESC_MAC_SRC_TOTAL_LEN_MAX
	.comm	_CESA_SA_DESC_CFG_NOT_FRAG,4,2  ## @CESA_SA_DESC_CFG_NOT_FRAG
	.comm	_CESA_SA_DESC_CFG_LAST_FRAG,4,2 ## @CESA_SA_DESC_CFG_LAST_FRAG
	.comm	_CESA_SA_DESC_CFG_FRAG_MSK,4,2  ## @CESA_SA_DESC_CFG_FRAG_MSK
	.comm	_CESA_SA_CFG_SRAM_OFFSET,4,2    ## @CESA_SA_CFG_SRAM_OFFSET
	.comm	_CESA_SA_DATA_SRAM_OFFSET,8,3   ## @CESA_SA_DATA_SRAM_OFFSET
	.comm	_CESA_TDMA_SRC_IN_SRAM,4,2      ## @CESA_TDMA_SRC_IN_SRAM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CESA_SA_SRAM_PAYLOAD_SIZE,8,3  ## @CESA_SA_SRAM_PAYLOAD_SIZE
	.comm	_CESA_TDMA_DST_IN_SRAM,4,2      ## @CESA_TDMA_DST_IN_SRAM
	.no_dead_strip	_mv_cesa_ahash_dma_last_req
.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_dma_last_req
_mv_cesa_ahash_dma_last_req:            ; @mv_cesa_ahash_dma_last_req
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x0
	cbz	w3, LBB0_4
; %bb.1:
	ldr	w8, [x21, #4]
Lloh0:
	adrp	x9, _CESA_SA_DESC_MAC_SRC_TOTAL_LEN_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CESA_SA_DESC_MAC_SRC_TOTAL_LEN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x19
	bl	_mv_cesa_dma_add_frag
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
LBB0_3:
	mov	x0, x23
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	add	x22, x21, #8
	mov	x0, x22
	mov	x1, x19
	bl	_mv_cesa_ahash_dma_alloc_padding
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	w1, [x21, #16]
	mov	x0, x21
	bl	_mv_cesa_ahash_pad_req
	mov	x24, x0
Lloh3:
	adrp	x8, _CESA_SA_SRAM_PAYLOAD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CESA_SA_SRAM_PAYLOAD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w28, w23
	sub	x0, x8, x28
	mov	x1, x24
	bl	_min
	mov	x25, x0
Lloh6:
	adrp	x27, _CESA_SA_DATA_SRAM_OFFSET@GOTPAGE
Lloh7:
	ldr	x27, [x27, _CESA_SA_DATA_SRAM_OFFSET@GOTPAGEOFF]
Lloh8:
	adrp	x26, _CESA_TDMA_DST_IN_SRAM@GOTPAGE
Lloh9:
	ldr	x26, [x26, _CESA_TDMA_DST_IN_SRAM@GOTPAGEOFF]
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x8, [x27]
	add	x1, x8, x28
	ldr	x2, [x22]
	ldr	w4, [x26]
	mov	x0, x20
	mov	x3, x25
	mov	x5, x19
	bl	_mv_cesa_dma_add_data_transfer
	cbnz	w0, LBB0_12
; %bb.7:
	add	w2, w25, w23
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_mv_cesa_dma_add_frag
	mov	x23, x0
	bl	_IS_ERR
	cmp	x0, #0
	ccmp	w24, w25, #4, eq
	b.eq	LBB0_3
LBB0_8:
	ldr	x1, [x27]
	ldr	x8, [x22]
	add	x2, x8, w25, uxtw
	sub	w22, w24, w25
	ldr	w4, [x26]
	mov	x0, x20
	mov	x3, x22
	mov	x5, x19
	bl	_mv_cesa_dma_add_data_transfer
	cbnz	w0, LBB0_12
; %bb.9:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mv_cesa_dma_add_frag
LBB0_10:
	ldr	w1, [x21, #4]
	mov	x0, x23
	bl	_mv_cesa_set_mac_op_total_len
	mov	x0, x23
	bl	_mv_cesa_mac_op_is_first_frag
Lloh10:
	adrp	x8, _CESA_SA_DESC_CFG_NOT_FRAG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CESA_SA_DESC_CFG_NOT_FRAG@GOTPAGEOFF]
Lloh12:
	adrp	x9, _CESA_SA_DESC_CFG_LAST_FRAG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CESA_SA_DESC_CFG_LAST_FRAG@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _CESA_SA_DESC_CFG_FRAG_MSK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CESA_SA_DESC_CFG_FRAG_MSK@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_mv_cesa_update_op_cfg
Lloh17:
	adrp	x8, _CESA_SA_CFG_SRAM_OFFSET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CESA_SA_CFG_SRAM_OFFSET@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _CESA_SA_DATA_SRAM_OFFSET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CESA_SA_DATA_SRAM_OFFSET@GOTPAGEOFF]
Lloh22:
	ldr	x2, [x8]
Lloh23:
	adrp	x8, _CESA_TDMA_SRC_IN_SRAM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CESA_TDMA_SRC_IN_SRAM@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x4, x19
	bl	_mv_cesa_dma_add_result_op
	cbz	w0, LBB0_3
; %bb.11:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_CESA_SA_DESC_MAC_SRC_TOTAL_LEN_MAX,4,2 ; @CESA_SA_DESC_MAC_SRC_TOTAL_LEN_MAX
	.comm	_CESA_SA_DESC_CFG_NOT_FRAG,4,2  ; @CESA_SA_DESC_CFG_NOT_FRAG
	.comm	_CESA_SA_DESC_CFG_LAST_FRAG,4,2 ; @CESA_SA_DESC_CFG_LAST_FRAG
	.comm	_CESA_SA_DESC_CFG_FRAG_MSK,4,2  ; @CESA_SA_DESC_CFG_FRAG_MSK
	.comm	_CESA_SA_CFG_SRAM_OFFSET,4,2    ; @CESA_SA_CFG_SRAM_OFFSET
	.comm	_CESA_SA_DATA_SRAM_OFFSET,8,3   ; @CESA_SA_DATA_SRAM_OFFSET
	.comm	_CESA_TDMA_SRC_IN_SRAM,4,2      ; @CESA_TDMA_SRC_IN_SRAM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CESA_SA_SRAM_PAYLOAD_SIZE,8,3  ; @CESA_SA_SRAM_PAYLOAD_SIZE
	.comm	_CESA_TDMA_DST_IN_SRAM,4,2      ; @CESA_TDMA_DST_IN_SRAM
	.no_dead_strip	_mv_cesa_ahash_dma_last_req
.subsections_via_symbols
