	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txx9dmac_tasklet
_txx9dmac_tasklet:                      ## @txx9dmac_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	%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	%rdi, %r14
	movq	_MCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_readl
	movl	%eax, %r12d
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_vdbg
	movq	_TXX9_DMA_MAX_NR_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_TXX9_DMA_MAX_NR_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	24(%r15), %ecx
	movl	%r12d, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	testb	$17, %dl
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	movq	_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_channel_readl
	movl	%eax, %r13d
	leaq	4(%rbx), %rdi
	callq	_chan2dev
	movl	%eax, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_vdbg
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_TXX9_DMA_CSR_NCHNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TXX9_DMA_CSR_ABCHC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_TXX9_DMA_CSR_NTRNFC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r13d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_txx9dmac_scan_descriptors
	jmp	LBB0_5
LBB0_7:
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enable_irq                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCR,4,2                        ## @MCR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tasklet: mcr=%x\n"

	.comm	_TXX9_DMA_MAX_NR_CHANNELS,4,2   ## @TXX9_DMA_MAX_NR_CHANNELS
	.comm	_CSR,4,2                        ## @CSR
L_.str.1:                               ## @.str.1
	.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_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txx9dmac_tasklet
_txx9dmac_tasklet:                      ; @txx9dmac_tasklet
	.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	x19, x0
Lloh0:
	adrp	x8, _MCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dma_readl
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_vdbg
Lloh5:
	adrp	x8, _TXX9_DMA_MAX_NR_CHANNELS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TXX9_DMA_MAX_NR_CHANNELS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x25, #0
	mov	w26, #17
Lloh8:
	adrp	x28, _TXX9_DMA_CSR_ABCHC@GOTPAGE
Lloh9:
	ldr	x28, [x28, _TXX9_DMA_CSR_ABCHC@GOTPAGEOFF]
Lloh10:
	adrp	x24, _TXX9_DMA_CSR_NCHNC@GOTPAGE
Lloh11:
	ldr	x24, [x24, _TXX9_DMA_CSR_NCHNC@GOTPAGEOFF]
Lloh12:
	adrp	x21, l_.str.1@PAGE
Lloh13:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh14:
	adrp	x27, _TXX9_DMA_CSR_NTRNFC@GOTPAGE
Lloh15:
	ldr	x27, [x27, _TXX9_DMA_CSR_NTRNFC@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_spin_unlock
Lloh16:
	adrp	x8, _TXX9_DMA_MAX_NR_CHANNELS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TXX9_DMA_MAX_NR_CHANNELS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w25, #24
	asr	w9, w20, w9
	tst	w9, w26
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	x22, [x8, x25, lsl #3]
Lloh19:
	adrp	x8, _CSR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CSR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_channel_readl
	mov	x23, x0
	add	x0, x22, #4
	bl	_chan2dev
	mov	x1, x21
	mov	x2, x23
	bl	_dev_vdbg
	mov	x0, x22
	bl	_spin_lock
	ldr	w8, [x28]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
	tst	w8, w23
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_txx9dmac_scan_descriptors
	b	LBB0_2
LBB0_7:
	ldr	w0, [x19]
	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
	b	_enable_irq
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MCR,4,2                        ; @MCR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tasklet: mcr=%x\n"

	.comm	_TXX9_DMA_MAX_NR_CHANNELS,4,2   ; @TXX9_DMA_MAX_NR_CHANNELS
	.comm	_CSR,4,2                        ; @CSR
l_.str.1:                               ; @.str.1
	.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_tasklet
.subsections_via_symbols
