	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eth_close
_eth_close:                             ## @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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movq	_ports_open@GOTPCREL(%rip), %r13
	decl	(%r13)
	movq	(%r15), %rax
	movq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	8(%rax), %rdi
	callq	___raw_readl
	movq	_PORT_DISABLE@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movq	(%r15), %rcx
	movq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	8(%rcx), %rsi
	movl	%eax, %edi
	callq	___raw_writel
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movl	8(%rbx), %edi
	callq	_phy_stop
	cmpl	$0, (%r13)
	jne	LBB0_2
## %bb.1:
	movl	16(%r15), %edi
	callq	_disable_irq
	movl	16(%r15), %edi
	movq	_napi_dev@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_free_irq
	movl	12(%r15), %edi
	callq	_disable_irq
	movl	12(%r15), %edi
	movq	(%rbx), %rsi
	callq	_free_irq
	leaq	8(%r15), %rdi
	callq	_napi_disable
	movq	(%rbx), %rdi
	callq	_netif_stop_queue
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	addq	$8, %rdi
	callq	___raw_readl
	orl	(%r12), %eax
	movq	(%r15), %rcx
	movq	8(%rcx), %rsi
	addq	$8, %rsi
	movl	%eax, %edi
	callq	___raw_writel
	movq	_TS_SUSPEND@GOTPCREL(%rip), %rax
	movq	_FS_SUSPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	(%r15), %rsi
	callq	___raw_writel
LBB0_2:
	movq	%r14, %rdi
	callq	_netif_carrier_off
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ports_open,4,2                 ## @ports_open
	.comm	_PORT_DISABLE,4,2               ## @PORT_DISABLE
	.comm	_napi_dev,8,3                   ## @napi_dev
	.comm	_TS_SUSPEND,4,2                 ## @TS_SUSPEND
	.comm	_FS_SUSPEND,4,2                 ## @FS_SUSPEND
	.no_dead_strip	_eth_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eth_close
_eth_close:                             ; @eth_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x23, _ports_open@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ports_open@GOTPAGEOFF]
	ldr	w8, [x23]
	sub	w8, w8, #1
	str	w8, [x23]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x9, [x0]
	add	x0, x8, x9, lsl #2
	bl	___raw_readl
Lloh2:
	adrp	x22, _PORT_DISABLE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PORT_DISABLE@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w0, w8, w0
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x9, [x20]
	add	x1, x8, x9, lsl #2
	bl	___raw_writel
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w0, [x20, #8]
	bl	_phy_stop
	ldr	w8, [x23]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x21, #16]
	bl	_disable_irq
	ldr	w0, [x21, #16]
Lloh4:
	adrp	x20, _napi_dev@GOTPAGE
Lloh5:
	ldr	x20, [x20, _napi_dev@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_free_irq
	ldr	w0, [x21, #12]
	bl	_disable_irq
	ldr	w0, [x21, #12]
	ldr	x1, [x20]
	bl	_free_irq
	add	x0, x21, #8
	bl	_napi_disable
	ldr	x0, [x20]
	bl	_netif_stop_queue
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	add	x0, x8, #8
	bl	___raw_readl
	ldr	w8, [x22]
	orr	w0, w8, w0
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	add	x1, x8, #8
	bl	___raw_writel
Lloh6:
	adrp	x8, _TS_SUSPEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TS_SUSPEND@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _FS_SUSPEND@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FS_SUSPEND@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x1, [x21]
	bl	___raw_writel
LBB0_2:
	mov	x0, x19
	bl	_netif_carrier_off
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ports_open,4,2                 ; @ports_open
	.comm	_PORT_DISABLE,4,2               ; @PORT_DISABLE
	.comm	_napi_dev,8,3                   ; @napi_dev
	.comm	_TS_SUSPEND,4,2                 ; @TS_SUSPEND
	.comm	_FS_SUSPEND,4,2                 ; @FS_SUSPEND
	.no_dead_strip	_eth_close
.subsections_via_symbols
