	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netsec_netdev_stop
_netsec_netdev_stop:                    ## @netsec_netdev_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	8(%rax), %rdi
	callq	_netif_stop_queue
	xorl	%eax, %eax
	callq	_dma_wmb
	leaq	16(%rbx), %rdi
	callq	_napi_disable
	movq	_NETSEC_REG_INTEN_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_netsec_write
	movq	%rbx, %rdi
	callq	_netsec_stop_gmac
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	_NETSEC_RING_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_netsec_uninit_pkt_dring
	movq	_NETSEC_RING_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_netsec_uninit_pkt_dring
	movl	(%r14), %edi
	callq	_phy_stop
	movl	(%r14), %edi
	callq	_phy_disconnect
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_netsec_reset_hardware
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_pm_runtime_put_sync
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETSEC_REG_INTEN_CLR,4,2       ## @NETSEC_REG_INTEN_CLR
	.comm	_NETSEC_RING_TX,4,2             ## @NETSEC_RING_TX
	.comm	_NETSEC_RING_RX,4,2             ## @NETSEC_RING_RX
	.no_dead_strip	_netsec_netdev_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netsec_netdev_stop
_netsec_netdev_stop:                    ; @netsec_netdev_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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_netif_stop_queue
	bl	_dma_wmb
	add	x0, x19, #16
	bl	_napi_disable
Lloh0:
	adrp	x8, _NETSEC_REG_INTEN_CLR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETSEC_REG_INTEN_CLR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_netsec_write
	mov	x0, x19
	bl	_netsec_stop_gmac
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
Lloh3:
	adrp	x8, _NETSEC_RING_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETSEC_RING_TX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_netsec_uninit_pkt_dring
Lloh6:
	adrp	x8, _NETSEC_RING_RX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETSEC_RING_RX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_netsec_uninit_pkt_dring
	ldr	w0, [x20]
	bl	_phy_stop
	ldr	w0, [x20]
	bl	_phy_disconnect
	mov	x0, x19
	mov	w1, #0
	bl	_netsec_reset_hardware
	mov	x20, x0
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NETSEC_REG_INTEN_CLR,4,2       ; @NETSEC_REG_INTEN_CLR
	.comm	_NETSEC_RING_TX,4,2             ; @NETSEC_RING_TX
	.comm	_NETSEC_RING_RX,4,2             ; @NETSEC_RING_RX
	.no_dead_strip	_netsec_netdev_stop
.subsections_via_symbols
