	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txx9dmac_dequeue
_txx9dmac_dequeue:                      ## @txx9dmac_dequeue
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	leaq	4(%r12), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_txx9dmac_first_queued
	movq	%rax, %rbx
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_desc_write_CHAR
	movq	%r12, %rdi
	callq	_chan2parent
	movl	4(%r13), %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	callq	_dma_sync_single_for_device
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_txx9dmac_last_child
	movq	%rax, %r13
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r14, %rsi
	callq	_list_move_tail
	movq	_DMA_PREP_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_txx9dmac_chan_INTENT
	testl	%eax, %eax
	jne	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_PREP_INTERRUPT,4,2         ## @DMA_PREP_INTERRUPT
	.no_dead_strip	_txx9dmac_dequeue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txx9dmac_dequeue
_txx9dmac_dequeue:                      ; @txx9dmac_dequeue
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x0, #8]
	mov	x0, x1
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x22, #0
	add	x21, x20, #4
Lloh0:
	adrp	x25, _DMA_PREP_INTERRUPT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMA_PREP_INTERRUPT@GOTPAGEOFF]
Lloh2:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_list_empty
	cbnz	w0, LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_txx9dmac_first_queued
	mov	x23, x0
	cbz	x22, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x23, #4]
	mov	x0, x20
	mov	x1, x22
	bl	_desc_write_CHAR
	mov	x0, x20
	bl	_chan2parent
	ldr	w1, [x22, #4]
	ldr	w2, [x24]
	ldr	w3, [x26]
	bl	_dma_sync_single_for_device
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_txx9dmac_last_child
	mov	x22, x0
	add	x0, x23, #8
	mov	x1, x19
	bl	_list_move_tail
	ldr	w8, [x23]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_txx9dmac_chan_INTENT
	cbnz	w0, LBB0_1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_PREP_INTERRUPT,4,2         ; @DMA_PREP_INTERRUPT
	.no_dead_strip	_txx9dmac_dequeue
.subsections_via_symbols
