	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txx9dmac_chan_tasklet
_txx9dmac_chan_tasklet:                 ## @txx9dmac_chan_tasklet
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_channel_readl
	movl	%eax, %r15d
	leaq	8(%rbx), %rdi
	callq	_chan2dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_dev_vdbg
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_TXX9_DMA_CSR_ABCHC@GOTPCREL(%rip), %rax
	movq	_TXX9_DMA_CSR_NCHNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TXX9_DMA_CSR_NTRNFC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_txx9dmac_scan_descriptors
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enable_irq                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR,4,2                        ## @CSR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tasklet: status=%x\n"

	.comm	_TXX9_DMA_CSR_ABCHC,4,2         ## @TXX9_DMA_CSR_ABCHC
	.comm	_TXX9_DMA_CSR_NCHNC,4,2         ## @TXX9_DMA_CSR_NCHNC
	.comm	_TXX9_DMA_CSR_NTRNFC,4,2        ## @TXX9_DMA_CSR_NTRNFC
	.no_dead_strip	_txx9dmac_chan_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txx9dmac_chan_tasklet
_txx9dmac_chan_tasklet:                 ; @txx9dmac_chan_tasklet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_channel_readl
	mov	x21, x0
	add	x0, x19, #8
	bl	_chan2dev
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_vdbg
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
Lloh5:
	adrp	x8, _TXX9_DMA_CSR_ABCHC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TXX9_DMA_CSR_ABCHC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _TXX9_DMA_CSR_NCHNC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TXX9_DMA_CSR_NCHNC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _TXX9_DMA_CSR_NTRNFC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TXX9_DMA_CSR_NTRNFC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_txx9dmac_scan_descriptors
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_enable_irq
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR,4,2                        ; @CSR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tasklet: status=%x\n"

	.comm	_TXX9_DMA_CSR_ABCHC,4,2         ; @TXX9_DMA_CSR_ABCHC
	.comm	_TXX9_DMA_CSR_NCHNC,4,2         ; @TXX9_DMA_CSR_NCHNC
	.comm	_TXX9_DMA_CSR_NTRNFC,4,2        ; @TXX9_DMA_CSR_NTRNFC
	.no_dead_strip	_txx9dmac_chan_tasklet
.subsections_via_symbols
