	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txx9dmac_issue_pending
_txx9dmac_issue_pending:                ## @txx9dmac_issue_pending
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_txx9dmac_chan
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_bh
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_list_empty
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_txx9dmac_scan_descriptors
LBB0_2:
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_list_empty
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	%r14, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_txx9dmac_dequeue
	movq	%rbx, %rdi
	callq	_txx9dmac_first_active
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_txx9dmac_dostart
	jmp	LBB0_9
LBB0_5:
	xorl	%eax, %eax
	callq	_txx9_dma_have_SMPCHN
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_txx9dmac_last_active
	movq	%rax, %r14
	movq	_DMA_PREP_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_txx9dmac_chan_INTENT
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_txx9dmac_chain_dynamic
LBB0_9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_PREP_INTERRUPT,4,2         ## @DMA_PREP_INTERRUPT
	.no_dead_strip	_txx9dmac_issue_pending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txx9dmac_issue_pending
_txx9dmac_issue_pending:                ; @txx9dmac_issue_pending
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_to_txx9dmac_chan
	mov	x19, x0
	bl	_spin_lock_bh
	add	x20, x19, #4
	mov	x0, x20
	bl	_list_empty
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_txx9dmac_scan_descriptors
LBB0_2:
	add	x0, x19, #8
	bl	_list_empty
	cbnz	x0, LBB0_9
; %bb.3:
	mov	x0, x20
	bl	_list_empty
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_txx9dmac_dequeue
	mov	x0, x19
	bl	_txx9dmac_first_active
	mov	x1, x0
	mov	x0, x19
	bl	_txx9dmac_dostart
	b	LBB0_9
LBB0_5:
	bl	_txx9_dma_have_SMPCHN
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_txx9dmac_last_active
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DMA_PREP_INTERRUPT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_PREP_INTERRUPT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_txx9dmac_chan_INTENT
	cbz	x0, LBB0_9
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_txx9dmac_chain_dynamic
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_PREP_INTERRUPT,4,2         ; @DMA_PREP_INTERRUPT
	.no_dead_strip	_txx9dmac_issue_pending
.subsections_via_symbols
