	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_xor_run_tx_complete_actions
_mv_xor_run_tx_complete_actions:        ## @mv_xor_run_tx_complete_actions
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	8(%rdi), %r12
	movq	8(%rdi), %rdi
	shrq	$63, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BUG_ON
	movq	8(%r15), %r13
	testq	%r13, %r13
	jle	LBB0_19
## %bb.1:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	20(%r15), %edi
	callq	*%rax
LBB0_3:
	movq	32(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.4:
	cmpl	$0, (%r15)
	je	LBB0_9
## %bb.5:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r13d
	movl	4(%rbx), %r14d
	movl	16(%r15), %r12d
	movq	%rbx, %rdi
	callq	_mv_desc_get_dest_addr
	movl	%r12d, %ecx
	movq	%rax, %r12
	movq	_DMA_COMPL_SKIP_DEST_UNMAP@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_12
## %bb.6:
	cmpl	$2, %r14d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jl	LBB0_10
## %bb.7:
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	%r13, %rbx
	jmp	LBB0_19
LBB0_10:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_dma_unmap_page
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_12:
	movq	_DMA_COMPL_SKIP_SRC_UNMAP@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_18
## %bb.13:
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.14:
	decl	%r14d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	addl	$-1, %r14d
	jae	LBB0_18
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mv_desc_get_src_addr
	cmpq	%r12, %rax
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_dma_unmap_page
	jmp	LBB0_15
LBB0_18:
	movq	$0, 32(%r15)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_19:
	movq	%r12, %rdi
	callq	_dma_run_dependencies
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_COMPL_SKIP_DEST_UNMAP,4,2  ## @DMA_COMPL_SKIP_DEST_UNMAP
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_COMPL_SKIP_SRC_UNMAP,4,2   ## @DMA_COMPL_SKIP_SRC_UNMAP
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_mv_xor_run_tx_complete_actions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_xor_run_tx_complete_actions
_mv_xor_run_tx_complete_actions:        ; @mv_xor_run_tx_complete_actions
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x19, x0
	ldr	x8, [x19, #8]!
	lsr	x0, x8, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BUG_ON
	ldr	x26, [x19]
	cmp	x26, #1
	b.lt	LBB0_10
; %bb.1:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x20, #20]
	blr	x8
LBB0_3:
	ldr	x21, [x20, #32]
	cbz	x21, LBB0_9
; %bb.4:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.5:
	ldr	x8, [x22]
	ldr	x22, [x8]
	ldr	w27, [x20, #16]
	ldp	w23, w25, [x21]
	mov	x0, x21
	bl	_mv_desc_get_dest_addr
	mov	x24, x0
Lloh0:
	adrp	x8, _DMA_COMPL_SKIP_DEST_UNMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_COMPL_SKIP_DEST_UNMAP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w27
	b.ne	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DMA_FROM_DEVICE@GOTPAGEOFF]
	cmp	w25, #1
	csel	x8, x8, x9, gt
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_dma_unmap_page
LBB0_7:
Lloh7:
	adrp	x8, _DMA_COMPL_SKIP_SRC_UNMAP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_COMPL_SKIP_SRC_UNMAP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w8, w8, w27
	cmp	w8, #0
	ccmp	w25, #0, #4, eq
	b.ne	LBB0_11
LBB0_8:
	str	xzr, [x20, #32]
LBB0_9:
	mov	x21, x26
LBB0_10:
	mov	x0, x19
	bl	_dma_run_dependencies
	mov	x0, x21
	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_11:
	sub	w25, w25, #1
Lloh10:
	adrp	x27, _DMA_TO_DEVICE@GOTPAGE
Lloh11:
	ldr	x27, [x27, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	w25, w25, #1
	cmn	w25, #1
	b.eq	LBB0_8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_mv_desc_get_src_addr
	cmp	x0, x24
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x0
	ldr	w3, [x27]
	mov	x0, x22
	mov	x2, x23
	bl	_dma_unmap_page
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_COMPL_SKIP_DEST_UNMAP,4,2  ; @DMA_COMPL_SKIP_DEST_UNMAP
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_COMPL_SKIP_SRC_UNMAP,4,2   ; @DMA_COMPL_SKIP_SRC_UNMAP
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_mv_xor_run_tx_complete_actions
.subsections_via_symbols
