	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_close
_fec_enet_close:                        ## @fec_enet_close
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_phy_stop
	movq	%rbx, %rdi
	callq	_netif_device_present
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_napi_disable
	movq	%rbx, %rdi
	callq	_netif_tx_disable
	movq	%rbx, %rdi
	callq	_fec_stop
LBB0_2:
	movl	(%rbx), %edi
	callq	_phy_disconnect
	movq	_FEC_QUIRK_ERR006687@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_imx6q_cpuidle_fec_irqs_unused
LBB0_4:
	movq	%rbx, %rdi
	callq	_fec_enet_update_ethtool_stats
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fec_enet_clk_enable
	movq	8(%r14), %rdi
	callq	_pinctrl_pm_select_sleep_state
	movq	8(%r14), %rdi
	callq	_pm_runtime_mark_last_busy
	movq	8(%r14), %rdi
	callq	_pm_runtime_put_autosuspend
	movq	%rbx, %rdi
	callq	_fec_enet_free_buffers
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_QUIRK_ERR006687,4,2        ## @FEC_QUIRK_ERR006687
	.no_dead_strip	_fec_enet_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_close
_fec_enet_close:                        ; @fec_enet_close
	.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
	ldr	w0, [x19]
	bl	_phy_stop
	mov	x0, x19
	bl	_netif_device_present
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #16
	bl	_napi_disable
	mov	x0, x19
	bl	_netif_tx_disable
	mov	x0, x19
	bl	_fec_stop
LBB0_2:
	ldr	w0, [x19]
	bl	_phy_disconnect
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _FEC_QUIRK_ERR006687@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FEC_QUIRK_ERR006687@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	bl	_imx6q_cpuidle_fec_irqs_unused
LBB0_4:
	mov	x0, x19
	bl	_fec_enet_update_ethtool_stats
	mov	x0, x19
	mov	w1, #0
	bl	_fec_enet_clk_enable
	ldr	x0, [x20, #8]
	bl	_pinctrl_pm_select_sleep_state
	ldr	x0, [x20, #8]
	bl	_pm_runtime_mark_last_busy
	ldr	x0, [x20, #8]
	bl	_pm_runtime_put_autosuspend
	mov	x0, x19
	bl	_fec_enet_free_buffers
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_QUIRK_ERR006687,4,2        ; @FEC_QUIRK_ERR006687
	.no_dead_strip	_fec_enet_close
.subsections_via_symbols
