	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_dma_tasklet
_dw_dma_tasklet:                        ## @dw_dma_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_RAW@GOTPCREL(%rip), %r14
	movl	8(%r14), %esi
	callq	_dma_readl
	movl	%eax, %ebx
	movl	4(%r14), %esi
	movq	%r13, %rdi
	callq	_dma_readl
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_dma_readl
	movl	20(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	callq	_dev_vdbg
	cmpl	$0, 16(%r13)
	jle	LBB0_9
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_dwc_handle_cyclic
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_spin_unlock
	incq	%rbx
	movslq	16(%r13), %rax
	addq	$8, %r14
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r12
	leaq	(%r12,%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_DW_DMA_IS_CYCLIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%r12,%r14), %rsi
	addq	$4, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	btl	%ebx, %ecx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_dwc_handle_error
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, -56(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_dwc_scan_descriptors
	jmp	LBB0_8
LBB0_9:
	movq	_MASK@GOTPCREL(%rip), %rbx
	movl	8(%rbx), %esi
	movl	(%r13), %edx
	movq	%r13, %rdi
	callq	_channel_set_bit
	movl	4(%rbx), %esi
	movl	(%r13), %edx
	movq	%r13, %rdi
	callq	_channel_set_bit
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_channel_set_bit                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RAW,12,2                       ## @RAW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tasklet: status_block=%x status_err=%x\n"

	.comm	_DW_DMA_IS_CYCLIC,4,2           ## @DW_DMA_IS_CYCLIC
	.comm	_MASK,12,2                      ## @MASK
	.no_dead_strip	_dw_dma_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_dma_tasklet
_dw_dma_tasklet:                        ; @dw_dma_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	x22, _RAW@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RAW@GOTPAGEOFF]
	ldr	w1, [x22, #8]
	bl	_dma_readl
	mov	x20, x0
	ldr	w1, [x22, #4]
	mov	x0, x19
	bl	_dma_readl
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_dma_readl
	mov	x22, x0
	ldr	w0, [x19, #20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x22
	bl	_dev_vdbg
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	orr	w26, w21, w20
Lloh4:
	adrp	x27, _DW_DMA_IS_CYCLIC@GOTPAGE
Lloh5:
	ldr	x27, [x27, _DW_DMA_IS_CYCLIC@GOTPAGEOFF]
	mov	w28, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	bl	_dwc_handle_cyclic
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_spin_unlock
	add	x25, x25, #1
	ldrsw	x8, [x19, #16]
	add	x24, x24, #8
	cmp	x25, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x23, x8, x24
	mov	x0, x23
	bl	_spin_lock
	ldr	w0, [x27]
	add	x1, x23, #4
	bl	_test_bit
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w8, w28, w25
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_dwc_handle_error
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	tst	w8, w26
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_dwc_scan_descriptors
	b	LBB0_3
LBB0_9:
Lloh6:
	adrp	x20, _MASK@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MASK@GOTPAGEOFF]
	ldr	w1, [x20, #8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_channel_set_bit
	ldr	w1, [x20, #4]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_channel_set_bit
	ldr	w1, [x20]
	ldr	w2, [x19]
	mov	x0, 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	_channel_set_bit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RAW,12,2                       ; @RAW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tasklet: status_block=%x status_err=%x\n"

	.comm	_DW_DMA_IS_CYCLIC,4,2           ; @DW_DMA_IS_CYCLIC
	.comm	_MASK,12,2                      ; @MASK
	.no_dead_strip	_dw_dma_tasklet
.subsections_via_symbols
