	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_io_slot_reset
_ixgbe_io_slot_reset:                   ## @ixgbe_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, %r14
	movq	%rbx, %rdi
	callq	_pci_enable_device_mem
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_e_err
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_smp_mb__before_atomic
	movq	___IXGBE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$8, %rsi
	callq	_clear_bit
	movl	4(%r14), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_pci_set_master
	movq	%rbx, %rdi
	callq	_pci_restore_state
	movq	%rbx, %rdi
	callq	_pci_save_state
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_wake_from_d3
	movq	%r14, %rdi
	callq	_ixgbe_reset
	movq	_IXGBE_WUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_IXGBE_WRITE_REG
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.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	___IXGBE_DISABLED,4,2           ## @__IXGBE_DISABLED
	.comm	_IXGBE_WUS,4,2                  ## @IXGBE_WUS
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ## @PCI_ERS_RESULT_RECOVERED
	.no_dead_strip	_ixgbe_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 ixgbe_io_slot_reset
_ixgbe_io_slot_reset:                   ; @ixgbe_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	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
	mov	x0, x20
	bl	_pci_enable_device_mem
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _probe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_e_err
Lloh5:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	bl	_smp_mb__before_atomic
Lloh7:
	adrp	x8, ___IXGBE_DISABLED@GOTPAGE
Lloh8:
	ldr	x8, [x8, ___IXGBE_DISABLED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_clear_bit
	ldr	w8, [x19, #4]
	str	w8, [x19]
	mov	x0, x20
	bl	_pci_set_master
	mov	x0, x20
	bl	_pci_restore_state
	mov	x0, x20
	bl	_pci_save_state
	mov	x0, x20
	mov	w1, #0
	bl	_pci_wake_from_d3
	mov	x0, x19
	bl	_ixgbe_reset
Lloh10:
	adrp	x8, _IXGBE_WUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IXGBE_WUS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_IXGBE_WRITE_REG
Lloh13:
	adrp	x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.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	___IXGBE_DISABLED,4,2           ; @__IXGBE_DISABLED
	.comm	_IXGBE_WUS,4,2                  ; @IXGBE_WUS
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ; @PCI_ERS_RESULT_RECOVERED
	.no_dead_strip	_ixgbe_io_slot_reset
.subsections_via_symbols
