	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_chan_pause
_dma_chan_pause:                        ## @dma_chan_pause
	.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
	callq	_dchan_to_axi_dma_chan
	movq	%rax, %r13
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	8(%r13), %edi
	movq	_DMAC_CHEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_axi_dma_ioread32
	movl	%eax, %r15d
	movl	12(%r13), %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	_DMAC_CHAN_SUSP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movl	12(%r13), %edi
	callq	_BIT
	movq	_DMAC_CHAN_SUSP_WE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%r15d, %r12d
	orl	%eax, %r12d
	movl	8(%r13), %edi
	movl	(%rbx), %esi
	movl	%r12d, %edx
	callq	_axi_dma_iowrite32
	movl	$20, %ebx
	movq	_DWAXIDMAC_IRQ_SUSPENDED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_axi_chan_irq_read
	movl	(%r15), %esi
	testl	%eax, %esi
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$2, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	movl	(%r15), %esi
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r13, %rdi
	callq	_axi_chan_irq_clear
	movl	$1, (%r13)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	cmovnel	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAC_CHEN,4,2                  ## @DMAC_CHEN
	.comm	_DMAC_CHAN_SUSP_SHIFT,4,2       ## @DMAC_CHAN_SUSP_SHIFT
	.comm	_DMAC_CHAN_SUSP_WE_SHIFT,4,2    ## @DMAC_CHAN_SUSP_WE_SHIFT
	.comm	_DWAXIDMAC_IRQ_SUSPENDED,4,2    ## @DWAXIDMAC_IRQ_SUSPENDED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_dma_chan_pause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_chan_pause
_dma_chan_pause:                        ; @dma_chan_pause
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_dchan_to_axi_dma_chan
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x22, _DMAC_CHEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMAC_CHEN@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_axi_dma_ioread32
	mov	x21, x0
	ldr	w0, [x19, #12]
	bl	_BIT
Lloh2:
	adrp	x8, _DMAC_CHAN_SUSP_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMAC_CHAN_SUSP_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w23, w0, w8
	ldr	w0, [x19, #12]
	bl	_BIT
Lloh5:
	adrp	x8, _DMAC_CHAN_SUSP_WE_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMAC_CHAN_SUSP_WE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w9, w23, w21
	orr	w2, w9, w8
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	bl	_axi_dma_iowrite32
	mov	w21, #20
Lloh8:
	adrp	x22, _DWAXIDMAC_IRQ_SUSPENDED@GOTPAGE
Lloh9:
	ldr	x22, [x22, _DWAXIDMAC_IRQ_SUSPENDED@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_axi_chan_irq_read
	ldr	w1, [x22]
	tst	w1, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #2
	bl	_udelay
	subs	w21, w21, #1
	b.ne	LBB0_1
; %bb.3:
	ldr	w1, [x22]
LBB0_4:
	mov	x0, x19
	bl	_axi_chan_irq_clear
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAC_CHEN,4,2                  ; @DMAC_CHEN
	.comm	_DMAC_CHAN_SUSP_SHIFT,4,2       ; @DMAC_CHAN_SUSP_SHIFT
	.comm	_DMAC_CHAN_SUSP_WE_SHIFT,4,2    ; @DMAC_CHAN_SUSP_WE_SHIFT
	.comm	_DWAXIDMAC_IRQ_SUSPENDED,4,2    ; @DWAXIDMAC_IRQ_SUSPENDED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_dma_chan_pause
.subsections_via_symbols
