	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8169_close
_rtl8169_close:                         ## @rtl8169_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, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	40(%rax), %r14
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	%rbx, %rdi
	callq	_rtl8169_update_counters
	movq	%rbx, %rdi
	callq	_rtl_lock_work
	leaq	28(%rbx), %r12
	movl	32(%rbx), %edi
	movq	_RTL_FLAG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bitmap_zero
	movq	%r15, %rdi
	callq	_rtl8169_down
	movq	%rbx, %rdi
	callq	_rtl_unlock_work
	movq	%r12, %rdi
	callq	_cancel_work_sync
	movl	24(%rbx), %edi
	callq	_phy_disconnect
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_pci_free_irq
	movq	_R8169_RX_RING_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movl	20(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	movq	_R8169_TX_RING_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movl	16(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_FLAG_MAX,4,2               ## @RTL_FLAG_MAX
	.comm	_R8169_RX_RING_BYTES,4,2        ## @R8169_RX_RING_BYTES
	.comm	_R8169_TX_RING_BYTES,4,2        ## @R8169_TX_RING_BYTES
	.no_dead_strip	_rtl8169_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8169_close
_rtl8169_close:                         ; @rtl8169_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	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #40]
	mov	x0, x19
	bl	_pm_runtime_get_sync
	mov	x0, x20
	bl	_rtl8169_update_counters
	mov	x0, x20
	bl	_rtl_lock_work
	add	x22, x20, #28
	ldr	w0, [x20, #32]
Lloh0:
	adrp	x8, _RTL_FLAG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL_FLAG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bitmap_zero
	mov	x0, x21
	bl	_rtl8169_down
	mov	x0, x20
	bl	_rtl_unlock_work
	mov	x0, x22
	bl	_cancel_work_sync
	ldr	w0, [x20, #24]
	bl	_phy_disconnect
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_pci_free_irq
Lloh3:
	adrp	x8, _R8169_RX_RING_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R8169_RX_RING_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x2, [x20]
	ldr	w3, [x20, #20]
	mov	x0, x19
	bl	_dma_free_coherent
Lloh6:
	adrp	x8, _R8169_TX_RING_BYTES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R8169_TX_RING_BYTES@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	ldr	w3, [x20, #16]
	mov	x0, x19
	bl	_dma_free_coherent
	stp	xzr, xzr, [x20]
	mov	x0, x19
	bl	_pm_runtime_put_sync
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_FLAG_MAX,4,2               ; @RTL_FLAG_MAX
	.comm	_R8169_RX_RING_BYTES,4,2        ; @R8169_RX_RING_BYTES
	.comm	_R8169_TX_RING_BYTES,4,2        ; @R8169_TX_RING_BYTES
	.no_dead_strip	_rtl8169_close
.subsections_via_symbols
