	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_netif_stop
_bcmgenet_netif_stop:                   ## @bcmgenet_netif_stop
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_bcmgenet_disable_tx_napi
	movq	%r14, %rdi
	callq	_netif_tx_disable
	movq	_CMD_RX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_umac_enable_set
	movq	%rbx, %rdi
	callq	_bcmgenet_dma_teardown
	movq	_CMD_TX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_umac_enable_set
	movl	(%r14), %edi
	callq	_phy_stop
	movq	%rbx, %rdi
	callq	_bcmgenet_disable_rx_napi
	movq	%rbx, %rdi
	callq	_bcmgenet_intr_disable
	leaq	16(%rbx), %rdi
	callq	_cancel_work_sync
	pcmpeqd	%xmm0, %xmm0
	movdqu	%xmm0, (%rbx)
	movq	%r14, %rdi
	callq	_bcmgenet_tx_reclaim_all
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bcmgenet_fini_dma              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_RX_EN,4,2                  ## @CMD_RX_EN
	.comm	_CMD_TX_EN,4,2                  ## @CMD_TX_EN
	.no_dead_strip	_bcmgenet_netif_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_netif_stop
_bcmgenet_netif_stop:                   ; @bcmgenet_netif_stop
	.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
	bl	_netdev_priv
	mov	x20, x0
	bl	_bcmgenet_disable_tx_napi
	mov	x0, x19
	bl	_netif_tx_disable
Lloh0:
	adrp	x8, _CMD_RX_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_RX_EN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_umac_enable_set
	mov	x0, x20
	bl	_bcmgenet_dma_teardown
Lloh3:
	adrp	x8, _CMD_TX_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_TX_EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_umac_enable_set
	ldr	w0, [x19]
	bl	_phy_stop
	mov	x0, x20
	bl	_bcmgenet_disable_rx_napi
	mov	x0, x20
	bl	_bcmgenet_intr_disable
	add	x0, x20, #16
	bl	_cancel_work_sync
	mov	x8, #-1
	stp	x8, x8, [x20]
	mov	x0, x19
	bl	_bcmgenet_tx_reclaim_all
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcmgenet_fini_dma
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_RX_EN,4,2                  ; @CMD_RX_EN
	.comm	_CMD_TX_EN,4,2                  ; @CMD_TX_EN
	.no_dead_strip	_bcmgenet_netif_stop
.subsections_via_symbols
