	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iop_adma_run_tx_complete_actions
_iop_adma_run_tx_complete_actions:      ## @iop_adma_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	16(%rdi), %rdi
	shrq	$63, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BUG_ON
	movq	16(%rbx), %r13
	testq	%r13, %r13
	jle	LBB0_9
## %bb.1:
	movq	$0, 16(%rbx)
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	24(%rbx), %edi
	callq	*%rax
LBB0_3:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.4:
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_iop_desc_is_pq
	movq	%r15, %rdi
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	_iop_desc_unmap_pq
	jmp	LBB0_8
LBB0_7:
	callq	_iop_desc_unmap
LBB0_8:
	movq	%r13, %r12
LBB0_9:
	movq	%r14, %rdi
	callq	_dma_run_dependencies
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_iop_adma_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 iop_adma_run_tx_complete_actions
_iop_adma_run_tx_complete_actions:      ; @iop_adma_run_tx_complete_actions
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x19, x0
	ldr	x8, [x19, #16]!
	lsr	x0, x8, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BUG_ON
	ldr	x23, [x19]
	cmp	x23, #1
	b.lt	LBB0_9
; %bb.1:
	str	xzr, [x20, #16]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x20, #24]
	blr	x8
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_iop_desc_is_pq
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	bl	_iop_desc_unmap_pq
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_iop_desc_unmap
LBB0_8:
	mov	x22, x23
LBB0_9:
	mov	x0, x19
	bl	_dma_run_dependencies
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_iop_adma_run_tx_complete_actions
.subsections_via_symbols
