	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_shutdown
_rtl_shutdown:                          ## @rtl_shutdown
	.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, %r14
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	%rbx, %rdi
	callq	_rtl8169_net_suspend
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_rtl_rar_set
	movq	%r15, %rdi
	callq	_rtl8169_hw_reset
	movq	_system_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SYSTEM_POWER_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	___rtl8169_get_wol
	movq	_WAKE_ANY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_rtl_wol_suspend_quirk
	movq	%r15, %rdi
	callq	_rtl_wol_shutdown_quirk
LBB0_3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pci_wake_from_d3
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_set_power_state
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm_runtime_put_noidle          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_system_state,8,3               ## @system_state
	.comm	_SYSTEM_POWER_OFF,8,3           ## @SYSTEM_POWER_OFF
	.comm	_WAKE_ANY,4,2                   ## @WAKE_ANY
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.no_dead_strip	_rtl_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_shutdown
_rtl_shutdown:                          ; @rtl_shutdown
	.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	_pci_get_drvdata
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_pm_runtime_get_sync
	mov	x0, x21
	bl	_rtl8169_net_suspend
	ldr	w1, [x21]
	mov	x0, x20
	bl	_rtl_rar_set
	mov	x0, x20
	bl	_rtl8169_hw_reset
Lloh0:
	adrp	x8, _system_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _system_state@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SYSTEM_POWER_OFF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SYSTEM_POWER_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	___rtl8169_get_wol
Lloh6:
	adrp	x8, _WAKE_ANY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WAKE_ANY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_rtl_wol_suspend_quirk
	mov	x0, x20
	bl	_rtl_wol_shutdown_quirk
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_pci_wake_from_d3
Lloh9:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_set_power_state
LBB0_4:
	mov	x0, x19
	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
	b	_pm_runtime_put_noidle
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_system_state,8,3               ; @system_state
	.comm	_SYSTEM_POWER_OFF,8,3           ; @SYSTEM_POWER_OFF
	.comm	_WAKE_ANY,4,2                   ; @WAKE_ANY
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.no_dead_strip	_rtl_shutdown
.subsections_via_symbols
