	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_io_error_detected
_tg3_io_error_detected:                 ## @tg3_io_error_detected
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_PCI_ERS_RESULT_NEED_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_info
	xorl	%eax, %eax
	callq	_rtnl_lock
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_pci_channel_io_frozen@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	$1, (%r13)
LBB0_4:
	movq	%r13, %rdi
	callq	_tg3_phy_stop
	movq	%r13, %rdi
	callq	_tg3_netif_stop
	movq	%r13, %rdi
	callq	_tg3_timer_stop
	movq	%r13, %rdi
	callq	_tg3_reset_task_cancel
	movq	%rbx, %rdi
	callq	_netif_device_detach
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_tg3_full_lock
	movq	_RESET_KIND_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_tg3_halt
	movq	%r13, %rdi
	callq	_tg3_full_unlock
LBB0_5:
	movq	_pci_channel_io_perm_failure@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_9
## %bb.6:
	movq	%r13, %rdi
	callq	_tg3_napi_enable
	movq	%rbx, %rdi
	callq	_dev_close
	jmp	LBB0_7
LBB0_8:
	movq	_pci_channel_io_perm_failure@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_9
LBB0_7:
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_10:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ## @PCI_ERS_RESULT_NEED_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI I/O error detected\n"

	.comm	_pci_channel_io_frozen,8,3      ## @pci_channel_io_frozen
	.comm	_RESET_KIND_SHUTDOWN,4,2        ## @RESET_KIND_SHUTDOWN
	.comm	_pci_channel_io_perm_failure,8,3 ## @pci_channel_io_perm_failure
	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ## @PCI_ERS_RESULT_DISCONNECT
	.no_dead_strip	_tg3_io_error_detected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_io_error_detected
_tg3_io_error_detected:                 ; @tg3_io_error_detected
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	bl	_pci_get_drvdata
	mov	x22, x0
	bl	_netdev_priv
	mov	x23, x0
Lloh0:
	adrp	x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_netdev_info
	bl	_rtnl_lock
	cbz	x22, LBB0_7
; %bb.1:
	mov	x0, x22
	bl	_netif_running
	cbz	w0, LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _pci_channel_io_frozen@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pci_channel_io_frozen@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x23]
LBB0_4:
	mov	x0, x23
	bl	_tg3_phy_stop
	mov	x0, x23
	bl	_tg3_netif_stop
	mov	x0, x23
	bl	_tg3_timer_stop
	mov	x0, x23
	bl	_tg3_reset_task_cancel
	mov	x0, x22
	bl	_netif_device_detach
	mov	x0, x23
	mov	w1, #0
	bl	_tg3_full_lock
Lloh8:
	adrp	x8, _RESET_KIND_SHUTDOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RESET_KIND_SHUTDOWN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #0
	bl	_tg3_halt
	mov	x0, x23
	bl	_tg3_full_unlock
LBB0_5:
Lloh11:
	adrp	x8, _pci_channel_io_perm_failure@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pci_channel_io_perm_failure@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x23
	bl	_tg3_napi_enable
	mov	x0, x22
	bl	_dev_close
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _pci_channel_io_perm_failure@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pci_channel_io_perm_failure@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_pci_disable_device
LBB0_10:
	bl	_rtnl_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ; @PCI_ERS_RESULT_NEED_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI I/O error detected\n"

	.comm	_pci_channel_io_frozen,8,3      ; @pci_channel_io_frozen
	.comm	_RESET_KIND_SHUTDOWN,4,2        ; @RESET_KIND_SHUTDOWN
	.comm	_pci_channel_io_perm_failure,8,3 ; @pci_channel_io_perm_failure
	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ; @PCI_ERS_RESULT_DISCONNECT
	.no_dead_strip	_tg3_io_error_detected
.subsections_via_symbols
