	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111e_suspend
_amd8111e_suspend:                      ## @amd8111e_suspend
	.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	_pci_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	%r12, %rdi
	callq	_amd8111e_disable_interrupt
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_netif_device_detach
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	_OPTION_DYN_IPG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	addq	$8, %rdi
	callq	_del_timer_sync
LBB0_3:
	movq	%r12, %rdi
	callq	_amd8111e_stop_chip
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movl	(%r12), %eax
	movq	_OPTION_WOL_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	_OPTION_WAKE_MAGIC_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_amd8111e_enable_magicpkt
	movl	(%r12), %eax
LBB0_7:
	movq	_OPTION_WAKE_PHY_ENABLE@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_amd8111e_enable_link_change
	jmp	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
LBB0_9:
	movq	_PCI_D3hot@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_pci_enable_wake
	movq	_PCI_D3cold@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_pci_enable_wake
	movq	%r14, %rdi
	callq	_pci_save_state
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_pci_set_power_state
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPTION_DYN_IPG_ENABLE,4,2      ## @OPTION_DYN_IPG_ENABLE
	.comm	_OPTION_WOL_ENABLE,4,2          ## @OPTION_WOL_ENABLE
	.comm	_OPTION_WAKE_MAGIC_ENABLE,4,2   ## @OPTION_WAKE_MAGIC_ENABLE
	.comm	_OPTION_WAKE_PHY_ENABLE,4,2     ## @OPTION_WAKE_PHY_ENABLE
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_PCI_D3cold,4,2                 ## @PCI_D3cold
	.no_dead_strip	_amd8111e_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111e_suspend
_amd8111e_suspend:                      ; @amd8111e_suspend
	.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	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x22
	bl	_netif_running
	cbz	w0, LBB0_11
; %bb.1:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irq
	mov	x0, x20
	bl	_amd8111e_disable_interrupt
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x22
	bl	_netif_device_detach
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _OPTION_DYN_IPG_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPTION_DYN_IPG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	add	x0, x20, #8
	bl	_del_timer_sync
LBB0_3:
	mov	x0, x20
	bl	_amd8111e_stop_chip
	mov	x0, x21
	bl	_spin_unlock_irq
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _OPTION_WOL_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPTION_WOL_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.4:
Lloh6:
	adrp	x9, _OPTION_WAKE_MAGIC_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OPTION_WAKE_MAGIC_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_amd8111e_enable_magicpkt
	ldr	w8, [x20]
LBB0_6:
Lloh9:
	adrp	x9, _OPTION_WAKE_PHY_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OPTION_WAKE_PHY_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_amd8111e_enable_link_change
LBB0_8:
	mov	w20, #1
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
Lloh12:
	adrp	x21, _PCI_D3hot@GOTPAGE
Lloh13:
	ldr	x21, [x21, _PCI_D3hot@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_pci_enable_wake
Lloh14:
	adrp	x8, _PCI_D3cold@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_D3cold@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_pci_enable_wake
	mov	x0, x19
	bl	_pci_save_state
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_set_power_state
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_OPTION_DYN_IPG_ENABLE,4,2      ; @OPTION_DYN_IPG_ENABLE
	.comm	_OPTION_WOL_ENABLE,4,2          ; @OPTION_WOL_ENABLE
	.comm	_OPTION_WAKE_MAGIC_ENABLE,4,2   ; @OPTION_WAKE_MAGIC_ENABLE
	.comm	_OPTION_WAKE_PHY_ENABLE,4,2     ; @OPTION_WAKE_PHY_ENABLE
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_PCI_D3cold,4,2                 ; @PCI_D3cold
	.no_dead_strip	_amd8111e_suspend
.subsections_via_symbols
