	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et131x_rx_dma_disable
_et131x_rx_dma_disable:                 ## @et131x_rx_dma_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_ET_RXDMA_CSR_HALT@GOTPCREL(%rip), %rax
	movq	_ET_RXDMA_CSR_FBR1_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_writel
	movq	8(%rbx), %rdi
	callq	_readl
	movq	_ET_RXDMA_CSR_HALT_STATUS@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	jne	LBB0_2
## %bb.1:
	movl	$5, %edi
	callq	_udelay
	movq	8(%rbx), %rdi
	callq	_readl
	testl	%eax, (%r14)
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ET_RXDMA_CSR_HALT,4,2          ## @ET_RXDMA_CSR_HALT
	.comm	_ET_RXDMA_CSR_FBR1_ENABLE,4,2   ## @ET_RXDMA_CSR_FBR1_ENABLE
	.comm	_ET_RXDMA_CSR_HALT_STATUS,4,2   ## @ET_RXDMA_CSR_HALT_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX Dma failed to enter halt state. CSR 0x%08x\n"

	.no_dead_strip	_et131x_rx_dma_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et131x_rx_dma_disable
_et131x_rx_dma_disable:                 ; @et131x_rx_dma_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ET_RXDMA_CSR_HALT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ET_RXDMA_CSR_HALT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ET_RXDMA_CSR_FBR1_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ET_RXDMA_CSR_FBR1_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x1, [x19, #8]
	bl	_writel
	ldr	x0, [x19, #8]
	bl	_readl
Lloh6:
	adrp	x20, _ET_RXDMA_CSR_HALT_STATUS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ET_RXDMA_CSR_HALT_STATUS@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #5
	bl	_udelay
	ldr	x0, [x19, #8]
	bl	_readl
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x2, x0
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ET_RXDMA_CSR_HALT,4,2          ; @ET_RXDMA_CSR_HALT
	.comm	_ET_RXDMA_CSR_FBR1_ENABLE,4,2   ; @ET_RXDMA_CSR_FBR1_ENABLE
	.comm	_ET_RXDMA_CSR_HALT_STATUS,4,2   ; @ET_RXDMA_CSR_HALT_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX Dma failed to enter halt state. CSR 0x%08x\n"

	.no_dead_strip	_et131x_rx_dma_disable
.subsections_via_symbols
