	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_mgmt_stop
_octeon_mgmt_stop:                      ## @octeon_mgmt_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	%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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	32(%rax), %rdi
	callq	_napi_disable
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_phy_disconnect
LBB0_2:
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	callq	_octeon_mgmt_reset_hw
	movl	28(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
	leaq	24(%rbx), %rdi
	callq	_skb_queue_purge
	movq	%rbx, %rdi
	addq	$20, %rdi
	callq	_skb_queue_purge
	movl	8(%rbx), %r14d
	movl	16(%rbx), %r15d
	movq	_OCTEON_MGMT_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ring_size_to_bytes
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movl	12(%rbx), %edi
	callq	_kfree
	movl	4(%rbx), %r14d
	movl	8(%rbx), %r15d
	movq	_OCTEON_MGMT_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ring_size_to_bytes
	movl	(%r12), %ecx
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movl	(%rbx), %edi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCTEON_MGMT_RX_RING_SIZE,4,2   ## @OCTEON_MGMT_RX_RING_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_OCTEON_MGMT_TX_RING_SIZE,4,2   ## @OCTEON_MGMT_TX_RING_SIZE
	.no_dead_strip	_octeon_mgmt_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_mgmt_stop
_octeon_mgmt_stop:                      ; @octeon_mgmt_stop
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	add	x0, x0, #32
	bl	_napi_disable
	mov	x0, x20
	bl	_netif_stop_queue
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phy_disconnect
LBB0_2:
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_octeon_mgmt_reset_hw
	ldr	w0, [x19, #28]
	mov	x1, x20
	bl	_free_irq
	add	x0, x19, #24
	bl	_skb_queue_purge
	add	x0, x19, #20
	bl	_skb_queue_purge
	ldr	w20, [x19, #8]
	ldr	w21, [x19, #16]
Lloh0:
	adrp	x8, _OCTEON_MGMT_RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCTEON_MGMT_RX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ring_size_to_bytes
	mov	x2, x0
Lloh3:
	adrp	x22, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_unmap_single
	ldr	w0, [x19, #12]
	bl	_kfree
	ldp	w21, w20, [x19, #4]
Lloh5:
	adrp	x8, _OCTEON_MGMT_TX_RING_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OCTEON_MGMT_TX_RING_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_ring_size_to_bytes
	mov	x2, x0
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_unmap_single
	ldr	w0, [x19]
	bl	_kfree
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OCTEON_MGMT_RX_RING_SIZE,4,2   ; @OCTEON_MGMT_RX_RING_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_OCTEON_MGMT_TX_RING_SIZE,4,2   ; @OCTEON_MGMT_TX_RING_SIZE
	.no_dead_strip	_octeon_mgmt_stop
.subsections_via_symbols
