	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa11x0_dma_resume
_sa11x0_dma_resume:                     ## @sa11x0_dma_resume
	.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	_dev_get_drvdata
	movq	%rax, %r15
	movq	_NR_PHY_CHAN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_DCSR_RUN@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	movq	_DMA_DDAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14,%rbx), %rsi
	callq	_writel_relaxed
	movq	24(%r14,%rbx), %rax
	movl	(%rax), %edi
	movq	_DMA_DBSA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14,%rbx), %rsi
	callq	_writel_relaxed
	movq	16(%r14,%rbx), %rax
	movl	(%rax), %edi
	movq	_DMA_DBTA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14,%rbx), %rsi
	callq	_writel_relaxed
	movq	24(%r14,%rbx), %rax
	movl	4(%rax), %edi
	movq	_DMA_DBSB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14,%rbx), %rsi
	callq	_writel_relaxed
	movq	16(%r14,%rbx), %rax
	movl	4(%rax), %edi
	movq	_DMA_DBTB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14,%rbx), %rsi
	callq	_writel_relaxed
	movl	8(%r14,%rbx), %edi
	movq	_DMA_DCSR_S@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14,%rbx), %rsi
	callq	_writel_relaxed
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	_NR_PHY_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$48, %rbx
	cmpq	%rax, %r12
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r14
	movq	_DMA_DCSR_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14,%rbx), %rdi
	callq	_readl_relaxed
	movq	_DCSR_STRTA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_DCSR_BIU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_DCSR_STRTB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	orl	(%r13), %edi
	andl	%eax, %edi
	callq	_WARN_ON
	movq	40(%r14,%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r14,%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_PHY_CHAN,4,2                ## @NR_PHY_CHAN
	.comm	_DMA_DCSR_R,8,3                 ## @DMA_DCSR_R
	.comm	_DCSR_BIU,4,2                   ## @DCSR_BIU
	.comm	_DCSR_STRTA,4,2                 ## @DCSR_STRTA
	.comm	_DCSR_STRTB,4,2                 ## @DCSR_STRTB
	.comm	_DCSR_RUN,4,2                   ## @DCSR_RUN
	.comm	_DMA_DDAR,8,3                   ## @DMA_DDAR
	.comm	_DMA_DBSA,8,3                   ## @DMA_DBSA
	.comm	_DMA_DBTA,8,3                   ## @DMA_DBTA
	.comm	_DMA_DBSB,8,3                   ## @DMA_DBSB
	.comm	_DMA_DBTB,8,3                   ## @DMA_DBTB
	.comm	_DMA_DCSR_S,8,3                 ## @DMA_DCSR_S
	.no_dead_strip	_sa11x0_dma_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa11x0_dma_resume
_sa11x0_dma_resume:                     ; @sa11x0_dma_resume
	.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
	bl	_dev_get_drvdata
Lloh0:
	adrp	x20, _NR_PHY_CHAN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NR_PHY_CHAN@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	mov	x22, #0
Lloh2:
	adrp	x23, _DMA_DCSR_R@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DMA_DCSR_R@GOTPAGEOFF]
Lloh4:
	adrp	x24, _DCSR_BIU@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DCSR_BIU@GOTPAGEOFF]
Lloh6:
	adrp	x25, _DCSR_STRTA@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DCSR_STRTA@GOTPAGEOFF]
Lloh8:
	adrp	x26, _DCSR_STRTB@GOTPAGE
Lloh9:
	ldr	x26, [x26, _DCSR_STRTB@GOTPAGEOFF]
Lloh10:
	adrp	x27, _DCSR_RUN@GOTPAGE
Lloh11:
	ldr	x27, [x27, _DCSR_RUN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x8]
	ldr	x8, [x28]
Lloh12:
	adrp	x9, _DMA_DDAR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DMA_DDAR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x28, #24]
	ldr	w0, [x8]
	ldr	x8, [x28]
Lloh15:
	adrp	x9, _DMA_DBSA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DMA_DBSA@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x28, #16]
	ldr	w0, [x8]
	ldr	x8, [x28]
Lloh18:
	adrp	x9, _DMA_DBTA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DMA_DBTA@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #4]
	ldr	x8, [x28]
Lloh21:
	adrp	x9, _DMA_DBSB@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DMA_DBSB@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x28, #16]
	ldr	w0, [x8, #4]
	ldr	x8, [x28]
Lloh24:
	adrp	x9, _DMA_DBTB@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DMA_DBTB@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w0, [x28, #8]
	ldr	x8, [x28]
Lloh27:
	adrp	x9, _DMA_DCSR_S@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DMA_DCSR_S@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	w8, [x20]
	add	x21, x21, #48
	cmp	x22, x8
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x28, x8, x21
	ldr	x8, [x28]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w8, w8, w9
	and	w0, w8, w0
	bl	_WARN_ON
	ldr	x8, [x28, #40]
	cbnz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28, #32]
	cbnz	x8, LBB0_2
	b	LBB0_3
LBB0_6:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_PHY_CHAN,4,2                ; @NR_PHY_CHAN
	.comm	_DMA_DCSR_R,8,3                 ; @DMA_DCSR_R
	.comm	_DCSR_BIU,4,2                   ; @DCSR_BIU
	.comm	_DCSR_STRTA,4,2                 ; @DCSR_STRTA
	.comm	_DCSR_STRTB,4,2                 ; @DCSR_STRTB
	.comm	_DCSR_RUN,4,2                   ; @DCSR_RUN
	.comm	_DMA_DDAR,8,3                   ; @DMA_DDAR
	.comm	_DMA_DBSA,8,3                   ; @DMA_DBSA
	.comm	_DMA_DBTA,8,3                   ; @DMA_DBTA
	.comm	_DMA_DBSB,8,3                   ; @DMA_DBSB
	.comm	_DMA_DBTB,8,3                   ; @DMA_DBTB
	.comm	_DMA_DCSR_S,8,3                 ; @DMA_DCSR_S
	.no_dead_strip	_sa11x0_dma_resume
.subsections_via_symbols
