	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macb_close
_macb_close:                            ## @macb_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.1:
	movq	32(%r15), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_napi_disable
	incl	%ebx
	addq	$4, %r12
	cmpl	(%r15), %ebx
	jb	LBB0_2
LBB0_3:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_phy_stop
LBB0_5:
	movq	%r15, %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_macb_reset_hw
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_macb_free_consistent
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	*(%rax)
LBB0_7:
	movq	8(%r15), %rdi
	callq	_pm_runtime_put
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_macb_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macb_close
_macb_close:                            ; @macb_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netif_tx_stop_all_queues
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w22, #0
	ldr	x21, [x20, #32]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_napi_disable
	add	w22, w22, #1
	add	x21, x21, #4
	ldr	w8, [x20]
	cmp	w22, w8
	b.lo	LBB0_2
LBB0_3:
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_phy_stop
LBB0_5:
	add	x21, x20, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_macb_reset_hw
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_macb_free_consistent
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_7:
	ldr	x0, [x20, #8]
	bl	_pm_runtime_put
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_macb_close
.subsections_via_symbols
