	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%r15), %rbx
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movq	_EESIPR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_ctrl_outl
	movq	_EDTRR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_ctrl_outl
	movq	_EDRRR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_ctrl_outl
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_phy_stop
	movq	24(%r14), %rdi
	callq	_phy_disconnect
LBB0_2:
	movl	(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_del_timer_sync
	movq	%r15, %rdi
	callq	_sh_eth_ring_free
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	xorl	%edi, %edi
	callq	_dma_free_coherent
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	xorl	%edi, %edi
	callq	_dma_free_coherent
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EESIPR,8,3                     ## @EESIPR
	.comm	_EDTRR,8,3                      ## @EDTRR
	.comm	_EDRRR,8,3                      ## @EDRRR
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.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
	ldr	x21, [x20, #8]
	mov	x0, x20
	bl	_netif_stop_queue
Lloh0:
	adrp	x8, _EESIPR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EESIPR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #0
	bl	_ctrl_outl
Lloh3:
	adrp	x8, _EDTRR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDTRR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #0
	bl	_ctrl_outl
Lloh6:
	adrp	x8, _EDRRR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDRRR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #0
	bl	_ctrl_outl
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phy_stop
	ldr	x0, [x19, #24]
	bl	_phy_disconnect
LBB0_2:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	add	x0, x19, #16
	bl	_del_timer_sync
	mov	x0, x20
	bl	_sh_eth_ring_free
Lloh9:
	adrp	x8, _RX_RING_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RX_RING_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldp	w3, w2, [x19, #8]
	mov	x0, #0
	bl	_dma_free_coherent
Lloh12:
	adrp	x8, _TX_RING_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_RING_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldp	w3, w2, [x19]
	mov	x0, #0
	bl	_dma_free_coherent
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EESIPR,8,3                     ; @EESIPR
	.comm	_EDTRR,8,3                      ; @EDTRR
	.comm	_EDRRR,8,3                      ; @EDRRR
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.no_dead_strip	_sh_eth_close
.subsections_via_symbols
