	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_io_slot_reset
_e1000_io_slot_reset:                   ## @e1000_io_slot_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_pci_get_drvdata
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rax), %esi
	movq	_FLAG2_DISABLE_ASPM_L0S@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	je	LBB0_2
## %bb.1:
	movq	_PCIE_LINK_STATE_L0S@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_FLAG2_DISABLE_ASPM_L1@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	je	LBB0_4
## %bb.3:
	movq	_PCIE_LINK_STATE_L1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_4:
	orl	%eax, %esi
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_e1000e_disable_aspm_locked
LBB0_6:
	movq	%rbx, %rdi
	callq	_pci_enable_device_mem
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_pci_restore_state
	movq	%rbx, %rdi
	callq	_pci_set_master
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pci_enable_wake
	movq	_PCI_D3cold@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pci_enable_wake
	movq	%r14, %rdi
	callq	_e1000e_reset
	movq	_WUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_ew32
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG2_DISABLE_ASPM_L0S,4,2     ## @FLAG2_DISABLE_ASPM_L0S
	.comm	_PCIE_LINK_STATE_L0S,4,2        ## @PCIE_LINK_STATE_L0S
	.comm	_FLAG2_DISABLE_ASPM_L1,4,2      ## @FLAG2_DISABLE_ASPM_L1
	.comm	_PCIE_LINK_STATE_L1,4,2         ## @PCIE_LINK_STATE_L1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot re-enable PCI device after reset.\n"

	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ## @PCI_ERS_RESULT_DISCONNECT
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_PCI_D3cold,4,2                 ## @PCI_D3cold
	.comm	_WUS,4,2                        ## @WUS
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ## @PCI_ERS_RESULT_RECOVERED
	.no_dead_strip	_e1000_io_slot_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_io_slot_reset
_e1000_io_slot_reset:                   ; @e1000_io_slot_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_pci_get_drvdata
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FLAG2_DISABLE_ASPM_L0S@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAG2_DISABLE_ASPM_L0S@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _PCIE_LINK_STATE_L0S@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PCIE_LINK_STATE_L0S@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh6:
	adrp	x10, _FLAG2_DISABLE_ASPM_L1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FLAG2_DISABLE_ASPM_L1@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _PCIE_LINK_STATE_L1@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PCIE_LINK_STATE_L1@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w1, w8, w9
	cbz	w1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_e1000e_disable_aspm_locked
LBB0_2:
	mov	x0, x19
	bl	_pci_enable_device_mem
	cbz	w0, LBB0_4
; %bb.3:
	add	x0, x19, #4
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_pci_restore_state
	mov	x0, x19
	bl	_pci_set_master
Lloh16:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_enable_wake
Lloh19:
	adrp	x8, _PCI_D3cold@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCI_D3cold@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_enable_wake
	mov	x0, x20
	bl	_e1000e_reset
Lloh22:
	adrp	x8, _WUS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WUS@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_ew32
Lloh25:
	adrp	x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG2_DISABLE_ASPM_L0S,4,2     ; @FLAG2_DISABLE_ASPM_L0S
	.comm	_PCIE_LINK_STATE_L0S,4,2        ; @PCIE_LINK_STATE_L0S
	.comm	_FLAG2_DISABLE_ASPM_L1,4,2      ; @FLAG2_DISABLE_ASPM_L1
	.comm	_PCIE_LINK_STATE_L1,4,2         ; @PCIE_LINK_STATE_L1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot re-enable PCI device after reset.\n"

	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ; @PCI_ERS_RESULT_DISCONNECT
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_PCI_D3cold,4,2                 ; @PCI_D3cold
	.comm	_WUS,4,2                        ; @WUS
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ; @PCI_ERS_RESULT_RECOVERED
	.no_dead_strip	_e1000_io_slot_reset
.subsections_via_symbols
