	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_dma_disable
_bcmgenet_dma_disable:                  ## @bcmgenet_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_DESC_INDEX@GOTPCREL(%rip), %rax
	movq	_DMA_RING_BUF_EN_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	movq	_DMA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	btsl	%ecx, %r14d
	movq	_DMA_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_bcmgenet_tdma_readl
	movl	%r14d, %ebx
	notl	%ebx
	andl	%ebx, %eax
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bcmgenet_tdma_writel
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_rdma_readl
	andl	%eax, %ebx
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bcmgenet_rdma_writel
	movq	_UMAC_TX_FLUSH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_bcmgenet_umac_writel
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bcmgenet_umac_writel
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_INDEX,4,2                 ## @DESC_INDEX
	.comm	_DMA_RING_BUF_EN_SHIFT,4,2      ## @DMA_RING_BUF_EN_SHIFT
	.comm	_DMA_EN,4,2                     ## @DMA_EN
	.comm	_DMA_CTRL,4,2                   ## @DMA_CTRL
	.comm	_UMAC_TX_FLUSH,4,2              ## @UMAC_TX_FLUSH
	.no_dead_strip	_bcmgenet_dma_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_dma_disable
_bcmgenet_dma_disable:                  ; @bcmgenet_dma_disable
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DESC_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DESC_INDEX@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DMA_RING_BUF_EN_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMA_RING_BUF_EN_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8
	mov	w9, #1
Lloh6:
	adrp	x10, _DMA_EN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DMA_EN@GOTPAGEOFF]
	lsl	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w20, w8, w9
Lloh9:
	adrp	x21, _DMA_CTRL@GOTPAGE
Lloh10:
	ldr	x21, [x21, _DMA_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_bcmgenet_tdma_readl
	bic	w1, w0, w20
	ldr	w2, [x21]
	mov	x0, x19
	bl	_bcmgenet_tdma_writel
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bcmgenet_rdma_readl
	bic	w1, w0, w20
	ldr	w2, [x21]
	mov	x0, x19
	bl	_bcmgenet_rdma_writel
Lloh11:
	adrp	x21, _UMAC_TX_FLUSH@GOTPAGE
Lloh12:
	ldr	x21, [x21, _UMAC_TX_FLUSH@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #1
	bl	_bcmgenet_umac_writel
	mov	w0, #10
	bl	_udelay
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_bcmgenet_umac_writel
	mov	x0, x20
	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	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_INDEX,4,2                 ; @DESC_INDEX
	.comm	_DMA_RING_BUF_EN_SHIFT,4,2      ; @DMA_RING_BUF_EN_SHIFT
	.comm	_DMA_EN,4,2                     ; @DMA_EN
	.comm	_DMA_CTRL,4,2                   ; @DMA_CTRL
	.comm	_UMAC_TX_FLUSH,4,2              ; @UMAC_TX_FLUSH
	.no_dead_strip	_bcmgenet_dma_disable
.subsections_via_symbols
