	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pasemi_mac_pause_rxchan
_pasemi_mac_pause_rxchan:               ## @pasemi_mac_pause_rxchan
	.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	%rdi, %rbx
	callq	_rx_ring
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_PAS_DMA_RXCHAN_CCMDSTA
	movq	_PAS_DMA_RXCHAN_CCMDSTA_ST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_write_dma_reg
	movq	_MAX_RETRIES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	_PAS_DMA_RXCHAN_CCMDSTA_ACT@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_PAS_DMA_RXCHAN_CCMDSTA
	movl	%eax, %edi
	callq	_read_dma_reg
	movl	%eax, %ebx
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_cond_resched
	incl	%r14d
	cmpl	(%r12), %r14d
	jb	LBB0_3
	jmp	LBB0_5
LBB0_1:
                                        ## implicit-def: $ebx
LBB0_5:
	movq	_PAS_DMA_RXCHAN_CCMDSTA_ACT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_7:
	movl	%r15d, %edi
	callq	_PAS_DMA_RXCHAN_CCMDSTA
	movl	%eax, %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_dma_reg                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_ST,4,2  ## @PAS_DMA_RXCHAN_CCMDSTA_ST
	.comm	_MAX_RETRIES,4,2                ## @MAX_RETRIES
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_ACT,4,2 ## @PAS_DMA_RXCHAN_CCMDSTA_ACT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to stop rx channel, ccmdsta 08%x\n"

	.no_dead_strip	_pasemi_mac_pause_rxchan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pasemi_mac_pause_rxchan
_pasemi_mac_pause_rxchan:               ; @pasemi_mac_pause_rxchan
	.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
	mov	x20, x0
	bl	_rx_ring
	ldr	w19, [x0]
	mov	x0, x19
	bl	_PAS_DMA_RXCHAN_CCMDSTA
Lloh0:
	adrp	x8, _PAS_DMA_RXCHAN_CCMDSTA_ST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAS_DMA_RXCHAN_CCMDSTA_ST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_write_dma_reg
Lloh3:
	adrp	x23, _MAX_RETRIES@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_RETRIES@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh5:
	adrp	x22, _PAS_DMA_RXCHAN_CCMDSTA_ACT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PAS_DMA_RXCHAN_CCMDSTA_ACT@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.1:
	mov	w24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_PAS_DMA_RXCHAN_CCMDSTA
	bl	_read_dma_reg
	mov	x21, x0
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cond_resched
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.lo	LBB0_2
	b	LBB0_5
LBB0_4:
                                        ; implicit-def: $w21
LBB0_5:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:
	ldr	x0, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
LBB0_7:
	mov	x0, x19
	bl	_PAS_DMA_RXCHAN_CCMDSTA
	mov	w1, #0
	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
	b	_write_dma_reg
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_ST,4,2  ; @PAS_DMA_RXCHAN_CCMDSTA_ST
	.comm	_MAX_RETRIES,4,2                ; @MAX_RETRIES
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_ACT,4,2 ; @PAS_DMA_RXCHAN_CCMDSTA_ACT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to stop rx channel, ccmdsta 08%x\n"

	.no_dead_strip	_pasemi_mac_pause_rxchan
.subsections_via_symbols
