	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_cesa_ahash_dma_req_init
_mv_cesa_ahash_dma_req_init:            ## @mv_cesa_ahash_dma_req_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ahash_request_ctx
	movq	%rax, %rbx
	movq	_CRYPTO_TFM_REQ_MAY_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%r14), %eax
	jne	LBB0_1
## %bb.2:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	leaq	24(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_mv_cesa_mac_op_is_first_frag
	movl	%eax, %r15d
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.4:
	movq	_cesa_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_sg
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movq	%rbx, %r13
	addq	$32, %r13
	movq	%r13, %rdi
	callq	_mv_cesa_tdma_desc_iter_init
	leaq	-104(%rbp), %rdi
	movq	%r14, %rsi
	callq	_mv_cesa_ahash_req_iter_init
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	callq	_mv_cesa_ahash_dma_add_cache
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, -88(%rbp)
	je	LBB0_16
## %bb.9:
	xorl	%r14d, %r14d
	leaq	-104(%rbp), %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	leaq	-88(%rbp), %rdx
	movl	%ebx, %ecx
	callq	_mv_cesa_dma_add_op_transfers
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-104(%rbp), %ebx
	movq	%r15, %rdi
	callq	_mv_cesa_ahash_req_iter_next_op
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_mv_cesa_dma_add_frag
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
	jmp	LBB0_13
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_16:
	movl	-104(%rbp), %ebx
	xorl	%r14d, %r14d
LBB0_17:
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, 16(%rdx)
	je	LBB0_19
## %bb.18:
	leaq	-104(%rbp), %rsi
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_mv_cesa_ahash_dma_last_req
	jmp	LBB0_21
LBB0_19:
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.20:
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r8d, %ecx
	callq	_mv_cesa_dma_add_frag
LBB0_21:
	movq	%rax, %r14
LBB0_22:
	movq	%r14, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
LBB0_13:
	movq	%r14, %rdi
	callq	_PTR_ERR
LBB0_14:
	movl	%eax, %r12d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	movq	%r13, %rdi
	callq	_mv_cesa_dma_cleanup
	movq	_cesa_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	(%rbx), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_sg
LBB0_6:
	movq	%r14, %rdi
	callq	_mv_cesa_ahash_last_cleanup
LBB0_33:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	40(%rbx), %rax
	movq	_CESA_TDMA_TYPE_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	(%rax), %r15d
	movq	_CESA_TDMA_RESULT@GOTPCREL(%rip), %rsi
	testq	%r14, %r14
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_26
## %bb.24:
	cmpl	(%rsi), %r15d
	je	LBB0_26
## %bb.25:
	movq	%r13, %rdi
	movq	%rsi, %r12
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_mv_cesa_dma_add_dummy_end
	movq	%r12, %rsi
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
LBB0_26:
	cmpq	$0, 16(%rbx)
	je	LBB0_27
## %bb.28:
	movq	$0, 8(%rbx)
	jmp	LBB0_29
LBB0_27:
	movq	8(%rbx), %rax
	addq	8(%r14), %rax
	subq	-96(%rbp), %rax
	movq	%rax, 8(%rbx)
LBB0_29:
	movq	_CESA_TDMA_END_OF_REQ@GOTPCREL(%rip), %rdx
	movq	40(%rbx), %rax
	movl	(%rax), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
	cmpl	(%rsi), %r15d
	je	LBB0_31
## %bb.30:
	movq	_CESA_TDMA_BREAK_CHAIN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
LBB0_31:
	xorl	%r12d, %r12d
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_33
## %bb.32:
	movq	_CESA_TDMA_SET_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_TFM_REQ_MAY_SLEEP,4,2   ## @CRYPTO_TFM_REQ_MAY_SLEEP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_cesa_dev,8,3                   ## @cesa_dev
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CESA_TDMA_TYPE_MSK,4,2         ## @CESA_TDMA_TYPE_MSK
	.comm	_CESA_TDMA_RESULT,4,2           ## @CESA_TDMA_RESULT
	.comm	_CESA_TDMA_END_OF_REQ,4,2       ## @CESA_TDMA_END_OF_REQ
	.comm	_CESA_TDMA_BREAK_CHAIN,4,2      ## @CESA_TDMA_BREAK_CHAIN
	.comm	_CESA_TDMA_SET_STATE,4,2        ## @CESA_TDMA_SET_STATE
	.no_dead_strip	_mv_cesa_ahash_dma_req_init
.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_req_init
_mv_cesa_ahash_dma_req_init:            ; @mv_cesa_ahash_dma_req_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	bl	_ahash_request_ctx
	mov	x21, x0
	ldr	w8, [x19, #16]
Lloh0:
	adrp	x9, _CRYPTO_TFM_REQ_MAY_SLEEP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CRYPTO_TFM_REQ_MAY_SLEEP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	adrp	x11, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x11, [x11, _GFP_ATOMIC@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w23, [x8]
	mov	x20, x0
	str	xzr, [x20, #32]!
	add	x24, x0, #24
	str	xzr, [x0, #40]
	mov	x0, x24
	bl	_mv_cesa_mac_op_is_first_frag
	mov	x25, x0
	ldr	x2, [x21]
Lloh7:
	adrp	x22, _cesa_dev@GOTPAGE
Lloh8:
	ldr	x22, [x22, _cesa_dev@GOTPAGEOFF]
Lloh9:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	w0, [x8]
	ldr	w1, [x19]
	ldr	w3, [x28]
	bl	_dma_map_sg
	cbz	w0, LBB0_8
LBB0_2:
	str	w25, [sp, #4]                   ; 4-byte Folded Spill
	mov	x0, x20
	bl	_mv_cesa_tdma_desc_iter_init
	add	x27, sp, #8
	add	x0, sp, #8
	mov	x1, x19
	bl	_mv_cesa_ahash_req_iter_init
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_mv_cesa_ahash_dma_add_cache
	mov	x26, x0
	cbnz	w0, LBB0_18
; %bb.3:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_9
; %bb.4:
	mov	x25, #0
	add	x27, x27, #16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x27
	mov	x3, x23
	bl	_mv_cesa_dma_add_op_transfers
	cbnz	w0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w26, [sp, #8]
	add	x0, sp, #8
	bl	_mv_cesa_ahash_req_iter_next_op
	cbz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x26
	mov	x3, x23
	bl	_mv_cesa_dma_add_frag
	mov	x25, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
	b	LBB0_16
LBB0_8:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_19
LBB0_9:
	mov	x25, #0
	ldr	w26, [sp, #8]
LBB0_10:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_12
; %bb.11:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	mov	x3, x26
	mov	x4, x23
	bl	_mv_cesa_ahash_dma_last_req
	b	LBB0_14
LBB0_12:
	cbz	w26, LBB0_15
; %bb.13:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x26
	mov	x3, x23
	bl	_mv_cesa_dma_add_frag
LBB0_14:
	mov	x25, x0
LBB0_15:
	mov	x0, x25
	bl	_IS_ERR
	cbz	x0, LBB0_21
LBB0_16:
	mov	x0, x25
	bl	_PTR_ERR
LBB0_17:
	mov	x26, x0
LBB0_18:
	mov	x0, x20
	bl	_mv_cesa_dma_cleanup
	ldr	x8, [x22]
	ldr	w0, [x8]
	ldr	w1, [x19]
	ldr	x2, [x21]
	ldr	w3, [x28]
	bl	_dma_unmap_sg
LBB0_19:
	mov	x0, x19
	bl	_mv_cesa_ahash_last_cleanup
LBB0_20:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_21:
	ldr	x8, [x21, #40]
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _CESA_TDMA_TYPE_MSK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CESA_TDMA_TYPE_MSK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w24, w9, w8
Lloh17:
	adrp	x27, _CESA_TDMA_RESULT@GOTPAGE
Lloh18:
	ldr	x27, [x27, _CESA_TDMA_RESULT@GOTPAGEOFF]
	cbz	x25, LBB0_24
; %bb.22:
	ldr	w8, [x27]
	cmp	w24, w8
	b.eq	LBB0_24
; %bb.23:
	mov	x0, x20
	mov	x1, x23
	bl	_mv_cesa_dma_add_dummy_end
	mov	x26, x0
	cbnz	w0, LBB0_18
LBB0_24:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_26
; %bb.25:
	str	xzr, [x21, #8]
	b	LBB0_27
LBB0_26:
	ldr	x8, [x19, #8]
	ldr	x9, [x21, #8]
	ldr	x10, [sp, #16]
	add	x8, x9, x8
	sub	x8, x8, x10
	str	x8, [x21, #8]
LBB0_27:
	ldr	w11, [sp, #4]                   ; 4-byte Folded Reload
Lloh19:
	adrp	x8, _CESA_TDMA_END_OF_REQ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CESA_TDMA_END_OF_REQ@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x8]
	ldr	x8, [x21, #40]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w10, [x27]
	cmp	w24, w10
	b.eq	LBB0_29
; %bb.28:
Lloh22:
	adrp	x10, _CESA_TDMA_BREAK_CHAIN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _CESA_TDMA_BREAK_CHAIN@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_29:
	mov	w26, #0
	cbnz	w11, LBB0_20
; %bb.30:
Lloh25:
	adrp	x8, _CESA_TDMA_SET_STATE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CESA_TDMA_SET_STATE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_TFM_REQ_MAY_SLEEP,4,2   ; @CRYPTO_TFM_REQ_MAY_SLEEP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_cesa_dev,8,3                   ; @cesa_dev
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CESA_TDMA_TYPE_MSK,4,2         ; @CESA_TDMA_TYPE_MSK
	.comm	_CESA_TDMA_RESULT,4,2           ; @CESA_TDMA_RESULT
	.comm	_CESA_TDMA_END_OF_REQ,4,2       ; @CESA_TDMA_END_OF_REQ
	.comm	_CESA_TDMA_BREAK_CHAIN,4,2      ; @CESA_TDMA_BREAK_CHAIN
	.comm	_CESA_TDMA_SET_STATE,4,2        ; @CESA_TDMA_SET_STATE
	.no_dead_strip	_mv_cesa_ahash_dma_req_init
.subsections_via_symbols
