	.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
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_pci_enable_device_mem
	testl	%eax, %eax
	jne	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_smp_mb__before_atomic
	movq	___E1000_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	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	_e1000_reset
	movq	_WUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_ew32
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	___E1000_DISABLED,4,2           ## @__E1000_DISABLED
	.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	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_pci_enable_device
	cbz	w0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh2:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_pci_enable_device_mem
	cbnz	w0, LBB0_2
LBB0_4:
	bl	_smp_mb__before_atomic
Lloh4:
	adrp	x8, ___E1000_DISABLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, ___E1000_DISABLED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x19
	bl	_pci_set_master
Lloh7:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_enable_wake
Lloh10:
	adrp	x8, _PCI_D3cold@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCI_D3cold@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_enable_wake
	mov	x0, x20
	bl	_e1000_reset
Lloh13:
	adrp	x8, _WUS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WUS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_ew32
Lloh16:
	adrp	x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh17:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.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	___E1000_DISABLED,4,2           ; @__E1000_DISABLED
	.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
