	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_cesa_skcipher_dma_req_init
_mv_cesa_skcipher_dma_req_init:         ## @mv_cesa_skcipher_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_skcipher_request_ctx
	movq	%rax, %r15
	movq	_CRYPTO_TFM_REQ_MAY_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%rbx), %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), %r13d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movq	(%rbx), %rsi
	movq	_cesa_dev@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	cmpq	8(%rbx), %rsi
	jne	LBB0_4
## %bb.8:
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_sg
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_5
LBB0_4:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_sg
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	movl	4(%r15), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_sg
	testl	%eax, %eax
	je	LBB0_7
LBB0_9:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mv_cesa_tdma_desc_iter_init
	leaq	-56(%rbp), %rdi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_mv_cesa_skcipher_req_iter_init
	leaq	-52(%rbp), %r12
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_mv_cesa_dma_add_op
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-52(%rbp), %esi
	movq	%rbx, %rdi
	callq	_mv_cesa_set_crypt_op_len
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	-48(%rbp), %rdx
	movl	%r13d, %ecx
	callq	_mv_cesa_dma_add_op_transfers
	testl	%eax, %eax
	jne	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_mv_cesa_dma_add_dummy_launch
	testl	%eax, %eax
	jne	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	callq	_mv_cesa_dma_add_op_transfers
	testl	%eax, %eax
	jne	LBB0_12
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_mv_cesa_skcipher_req_iter_next_op
	movl	$1, %edx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.19:
	movq	_CESA_SA_CFG_SRAM_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CESA_SA_DATA_SRAM_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CESA_TDMA_SRC_IN_SRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r13d, %r8d
	callq	_mv_cesa_dma_add_result_op
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.20:
	movq	_CESA_TDMA_END_OF_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	orl	%eax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_26
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_22
LBB0_11:
	movq	%rbx, %rdi
	callq	_PTR_ERR
LBB0_12:
	movl	%eax, %r14d
LBB0_13:
	movq	%r15, %rdi
	callq	_mv_cesa_dma_cleanup
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rsi
	cmpq	(%rbx), %rsi
	jne	LBB0_21
## %bb.14:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	_cesa_dev@GOTPCREL(%rip), %r12
	jmp	LBB0_22
LBB0_21:
	movq	_cesa_dev@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_sg
LBB0_22:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movq	(%rbx), %rsi
	cmpq	%rsi, 8(%rbx)
	jne	LBB0_23
## %bb.24:
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_23:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %ecx
	callq	_dma_unmap_sg
LBB0_26:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_CESA_SA_CFG_SRAM_OFFSET,4,2    ## @CESA_SA_CFG_SRAM_OFFSET
	.comm	_CESA_SA_DATA_SRAM_OFFSET,4,2   ## @CESA_SA_DATA_SRAM_OFFSET
	.comm	_CESA_TDMA_SRC_IN_SRAM,4,2      ## @CESA_TDMA_SRC_IN_SRAM
	.comm	_CESA_TDMA_END_OF_REQ,4,2       ## @CESA_TDMA_END_OF_REQ
	.no_dead_strip	_mv_cesa_skcipher_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_skcipher_dma_req_init
_mv_cesa_skcipher_dma_req_init:         ; @mv_cesa_skcipher_dma_req_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x19, x0
	bl	_skcipher_request_ctx
	mov	x20, 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	x21, x0
	str	xzr, [x21, #8]!
	str	xzr, [x0, #16]
	ldp	x1, x8, [x19]
Lloh7:
	adrp	x27, _cesa_dev@GOTPAGE
Lloh8:
	ldr	x27, [x27, _cesa_dev@GOTPAGEOFF]
	ldr	x9, [x27]
	ldr	w0, [x9]
	ldr	w2, [x20]
Lloh9:
	adrp	x25, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh11:
	adrp	x28, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh12:
	ldr	x28, [x28, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
	cmp	x1, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w3, [x28]
	bl	_dma_map_sg
	cbnz	w0, LBB0_4
	b	LBB0_12
LBB0_2:
	ldr	w3, [x25]
	bl	_dma_map_sg
	cbz	w0, LBB0_12
; %bb.3:
	ldr	x8, [x27]
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	ldr	w2, [x20, #4]
Lloh13:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	bl	_dma_map_sg
	cbz	w0, LBB0_13
LBB0_4:
	mov	x0, x21
	bl	_mv_cesa_tdma_desc_iter_init
	mov	x24, sp
	mov	x0, sp
	mov	x1, x19
	bl	_mv_cesa_skcipher_req_iter_init
	mov	w2, #0
	orr	x25, x24, #0x4
	add	x26, x24, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x3, x23
	bl	_mv_cesa_dma_add_op
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [sp, #4]
	mov	x0, x24
	bl	_mv_cesa_set_crypt_op_len
	mov	x0, x21
	mov	x1, x25
	mov	x2, x26
	mov	x3, x23
	bl	_mv_cesa_dma_add_op_transfers
	cbnz	w0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_mv_cesa_dma_add_dummy_launch
	cbnz	w0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, sp
	mov	x0, x21
	mov	x1, x25
	mov	x3, x23
	bl	_mv_cesa_dma_add_op_transfers
	cbnz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, sp
	bl	_mv_cesa_skcipher_req_iter_next_op
	mov	w2, #1
	cbnz	x0, LBB0_5
; %bb.10:
Lloh16:
	adrp	x8, _CESA_SA_CFG_SRAM_OFFSET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CESA_SA_CFG_SRAM_OFFSET@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _CESA_SA_DATA_SRAM_OFFSET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CESA_SA_DATA_SRAM_OFFSET@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _CESA_TDMA_SRC_IN_SRAM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CESA_TDMA_SRC_IN_SRAM@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x4, x23
	bl	_mv_cesa_dma_add_result_op
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.11:
Lloh25:
	adrp	x8, _CESA_TDMA_END_OF_REQ@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CESA_TDMA_END_OF_REQ@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	x9, [x21]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	b	LBB0_20
LBB0_12:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_20
LBB0_13:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_19
LBB0_14:
	mov	x0, x24
	bl	_PTR_ERR
LBB0_15:
	mov	x24, x0
LBB0_16:
	mov	x0, x21
	bl	_mv_cesa_dma_cleanup
	ldp	x8, x1, [x19]
	cmp	x1, x8
	b.eq	LBB0_18
; %bb.17:
	ldr	x8, [x27]
	ldr	w0, [x8]
	ldr	w2, [x20, #4]
Lloh34:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	bl	_dma_unmap_sg
LBB0_18:
Lloh37:
	adrp	x25, _DMA_TO_DEVICE@GOTPAGE
Lloh38:
	ldr	x25, [x25, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x27]
	ldr	w0, [x8]
	ldr	w2, [x20]
	ldp	x1, x8, [x19]
	cmp	x8, x1
	csel	x8, x28, x25, eq
	ldr	w3, [x8]
	bl	_dma_unmap_sg
LBB0_20:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.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	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_CESA_SA_CFG_SRAM_OFFSET,4,2    ; @CESA_SA_CFG_SRAM_OFFSET
	.comm	_CESA_SA_DATA_SRAM_OFFSET,4,2   ; @CESA_SA_DATA_SRAM_OFFSET
	.comm	_CESA_TDMA_SRC_IN_SRAM,4,2      ; @CESA_TDMA_SRC_IN_SRAM
	.comm	_CESA_TDMA_END_OF_REQ,4,2       ; @CESA_TDMA_END_OF_REQ
	.no_dead_strip	_mv_cesa_skcipher_dma_req_init
.subsections_via_symbols
