	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_eth_close
_sh_eth_close:                          ## @sh_eth_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
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movl	$0, (%r14)
	movl	(%rbx), %edi
	callq	_synchronize_irq
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_napi_disable
	movq	_EESIPR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_write
	movq	%rbx, %rdi
	callq	_sh_eth_dev_exit
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_phy_stop
	movq	8(%rbx), %rdi
	callq	_phy_disconnect
LBB0_2:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	%rbx, %rdi
	callq	_sh_eth_ring_free
	movq	16(%r14), %rdi
	callq	_pm_runtime_put_sync
	movq	$0, 8(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EESIPR,4,2                     ## @EESIPR
	.no_dead_strip	_sh_eth_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_eth_close
_sh_eth_close:                          ; @sh_eth_close
	.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
	mov	x0, x20
	bl	_netif_stop_queue
	mov	x21, x19
	str	wzr, [x21], #24
	ldr	w0, [x20]
	bl	_synchronize_irq
	mov	x0, x21
	bl	_napi_disable
Lloh0:
	adrp	x8, _EESIPR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EESIPR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_sh_eth_write
	mov	x0, x20
	bl	_sh_eth_dev_exit
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phy_stop
	ldr	x0, [x20, #8]
	bl	_phy_disconnect
LBB0_2:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	mov	x0, x20
	bl	_sh_eth_ring_free
	ldr	x0, [x19, #16]
	bl	_pm_runtime_put_sync
	str	xzr, [x19, #8]
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EESIPR,4,2                     ; @EESIPR
	.no_dead_strip	_sh_eth_close
.subsections_via_symbols
