	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eth_remove_one
_eth_remove_one:                        ## @eth_remove_one
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_platform_get_drvdata
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rdi
	callq	_destroy_rings
	movq	_switch_port_tab@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	24(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_unregister_netdev
	movl	(%rbx), %edi
	callq	_phy_disconnect
	movq	(%r14), %rax
	movq	$0, 24(%rax)
	movq	%r15, %rdi
	callq	_free_netdev
	movq	(%r14), %rax
LBB0_2:
	movq	16(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_unregister_netdev
	movl	(%rbx), %edi
	callq	_phy_disconnect
	movq	(%r14), %rax
	movq	$0, 16(%rax)
	movq	%r15, %rdi
	callq	_free_netdev
	movq	(%r14), %rax
LBB0_4:
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_unregister_netdev
	movl	(%rbx), %edi
	callq	_phy_disconnect
	movq	(%r14), %rax
	movq	$0, 8(%rax)
	movq	%r15, %rdi
	callq	_free_netdev
	movq	(%r14), %rax
LBB0_6:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_unregister_netdev
	movl	(%rbx), %edi
	callq	_phy_disconnect
	movq	(%r14), %rax
	movq	$0, (%rax)
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_8:
	movq	_napi_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_free_netdev
	xorl	%eax, %eax
	callq	_cns3xxx_mdio_remove
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_switch_port_tab,8,3            ## @switch_port_tab
	.comm	_napi_dev,8,3                   ## @napi_dev
	.no_dead_strip	_eth_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eth_remove_one
_eth_remove_one:                        ; @eth_remove_one
	.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
	bl	_platform_get_drvdata
	bl	_netdev_priv
	bl	_destroy_rings
Lloh0:
	adrp	x20, _switch_port_tab@GOTPAGE
Lloh1:
	ldr	x20, [x20, _switch_port_tab@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x21, [x8, #24]
	cbz	x21, LBB0_2
; %bb.1:
	ldr	x19, [x21, #8]
	mov	x0, x19
	bl	_unregister_netdev
	ldr	w0, [x21]
	bl	_phy_disconnect
	ldr	x8, [x20]
	str	xzr, [x8, #24]
	mov	x0, x19
	bl	_free_netdev
	ldr	x8, [x20]
LBB0_2:
	ldr	x21, [x8, #16]
	cbz	x21, LBB0_4
; %bb.3:
	ldr	x19, [x21, #8]
	mov	x0, x19
	bl	_unregister_netdev
	ldr	w0, [x21]
	bl	_phy_disconnect
	ldr	x8, [x20]
	str	xzr, [x8, #16]
	mov	x0, x19
	bl	_free_netdev
	ldr	x8, [x20]
LBB0_4:
	ldr	x21, [x8, #8]
	cbz	x21, LBB0_6
; %bb.5:
	ldr	x19, [x21, #8]
	mov	x0, x19
	bl	_unregister_netdev
	ldr	w0, [x21]
	bl	_phy_disconnect
	ldr	x8, [x20]
	str	xzr, [x8, #8]
	mov	x0, x19
	bl	_free_netdev
	ldr	x8, [x20]
LBB0_6:
	ldr	x21, [x8]
	cbz	x21, LBB0_8
; %bb.7:
	ldr	x19, [x21, #8]
	mov	x0, x19
	bl	_unregister_netdev
	ldr	w0, [x21]
	bl	_phy_disconnect
	ldr	x8, [x20]
	str	xzr, [x8]
	mov	x0, x19
	bl	_free_netdev
LBB0_8:
Lloh2:
	adrp	x8, _napi_dev@GOTPAGE
Lloh3:
	ldr	x8, [x8, _napi_dev@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	bl	_free_netdev
	bl	_cns3xxx_mdio_remove
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_switch_port_tab,8,3            ; @switch_port_tab
	.comm	_napi_dev,8,3                   ; @napi_dev
	.no_dead_strip	_eth_remove_one
.subsections_via_symbols
