	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_io_slot_reset
_igb_io_slot_reset:                     ## @igb_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
	movq	%rbx, %rdi
	callq	_pci_enable_device_mem
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_pci_set_master
	movq	%rbx, %rdi
	callq	_pci_restore_state
	movq	%rbx, %rdi
	callq	_pci_save_state
	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	_igb_reset
	movq	_E1000_WUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_wr32
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_pci_cleanup_aer_uncorrect_error_status
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movl	%r14d, %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	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_PCI_D3cold,4,2                 ## @PCI_D3cold
	.comm	_E1000_WUS,4,2                  ## @E1000_WUS
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ## @PCI_ERS_RESULT_RECOVERED
L_.str.1:                               ## @.str.1
	.asciz	"pci_cleanup_aer_uncorrect_error_status failed 0x%0x\n"

	.no_dead_strip	_igb_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 igb_io_slot_reset
_igb_io_slot_reset:                     ; @igb_io_slot_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_pci_get_drvdata
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_pci_enable_device_mem
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_pci_set_master
	mov	x0, x19
	bl	_pci_restore_state
	mov	x0, x19
	bl	_pci_save_state
Lloh4:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_enable_wake
Lloh7:
	adrp	x8, _PCI_D3cold@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCI_D3cold@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_enable_wake
	mov	x0, x20
	bl	_igb_reset
Lloh10:
	adrp	x8, _E1000_WUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_WUS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_wr32
Lloh13:
	adrp	x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGEOFF]
LBB0_3:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_pci_cleanup_aer_uncorrect_error_status
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.4:
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.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	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_PCI_D3cold,4,2                 ; @PCI_D3cold
	.comm	_E1000_WUS,4,2                  ; @E1000_WUS
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ; @PCI_ERS_RESULT_RECOVERED
l_.str.1:                               ; @.str.1
	.asciz	"pci_cleanup_aer_uncorrect_error_status failed 0x%0x\n"

	.no_dead_strip	_igb_io_slot_reset
.subsections_via_symbols
