	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sirfsoc_dma_pause_chan
_sirfsoc_dma_pause_chan:                ## @sirfsoc_dma_pause_chan
	.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	_dma_chan_to_sirfsoc_dma_chan
	movq	%rax, %r14
	leaq	4(%rax), %rdi
	callq	_dma_chan_to_sirfsoc_dma
	movq	%rax, %rbx
	movl	4(%r14), %r15d
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.3:
	leal	16(%r15), %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	btsl	%r15d, %edi
	addq	$8, %rbx
	movq	_SIRFSOC_DMA_CH_LOOP_CTRL_CLR_ATLAS7@GOTPCREL(%rip), %r12
	jmp	LBB0_6
LBB0_4:
	addq	$8, %rbx
	xorl	%edi, %edi
	movq	_SIRFSOC_DMA_LOOP_CTRL_ATLAS7@GOTPCREL(%rip), %r12
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %r13
	addq	$8, %r13
	movq	_SIRFSOC_DMA_CH_LOOP_CTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	leal	16(%r15), %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	btsl	%r15d, %edi
	notl	%edi
	andl	%eax, %edi
	movq	%r13, %rbx
LBB0_6:
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIRFSOC_DMA_CH_LOOP_CTRL_CLR_ATLAS7,8,3 ## @SIRFSOC_DMA_CH_LOOP_CTRL_CLR_ATLAS7
	.comm	_SIRFSOC_DMA_LOOP_CTRL_ATLAS7,8,3 ## @SIRFSOC_DMA_LOOP_CTRL_ATLAS7
	.comm	_SIRFSOC_DMA_CH_LOOP_CTRL,8,3   ## @SIRFSOC_DMA_CH_LOOP_CTRL
	.no_dead_strip	_sirfsoc_dma_pause_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sirfsoc_dma_pause_chan
_sirfsoc_dma_pause_chan:                ; @sirfsoc_dma_pause_chan
	.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
	bl	_dma_chan_to_sirfsoc_dma_chan
	mov	x19, x0
	add	x0, x0, #4
	bl	_dma_chan_to_sirfsoc_dma
	mov	x20, x0
	ldr	w22, [x19, #4]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.3:
	mov	w8, #1
	lsl	w9, w8, w22
	add	w10, w22, #16
	lsl	w8, w8, w10
	orr	w0, w8, w9
	add	x20, x20, #8
Lloh0:
	adrp	x21, _SIRFSOC_DMA_CH_LOOP_CTRL_CLR_ATLAS7@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SIRFSOC_DMA_CH_LOOP_CTRL_CLR_ATLAS7@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	add	x20, x20, #8
Lloh2:
	adrp	x21, _SIRFSOC_DMA_LOOP_CTRL_ATLAS7@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SIRFSOC_DMA_LOOP_CTRL_ATLAS7@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20, #8]!
Lloh4:
	adrp	x21, _SIRFSOC_DMA_CH_LOOP_CTRL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SIRFSOC_DMA_CH_LOOP_CTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	w8, #1
	lsl	w9, w8, w22
	add	w10, w22, #16
	lsl	w8, w8, w10
	orr	w8, w8, w9
	bic	w0, w0, w8
LBB0_6:
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SIRFSOC_DMA_CH_LOOP_CTRL_CLR_ATLAS7,8,3 ; @SIRFSOC_DMA_CH_LOOP_CTRL_CLR_ATLAS7
	.comm	_SIRFSOC_DMA_LOOP_CTRL_ATLAS7,8,3 ; @SIRFSOC_DMA_LOOP_CTRL_ATLAS7
	.comm	_SIRFSOC_DMA_CH_LOOP_CTRL,8,3   ; @SIRFSOC_DMA_CH_LOOP_CTRL
	.no_dead_strip	_sirfsoc_dma_pause_chan
.subsections_via_symbols
