	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_io_error_detected
_ef4_io_error_detected:                 ## @ef4_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %r15
	movq	_pci_channel_io_perm_failure@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	(%r15), %rax
	movq	_STATE_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_STATE_RECOVERY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	$0, 8(%r15)
	movq	%r15, %rdi
	callq	_ef4_device_detach_sync
	movq	%r15, %rdi
	callq	_ef4_stop_all
	movq	%r15, %rdi
	callq	_ef4_disable_interrupts
	movq	_PCI_ERS_RESULT_NEED_RESET@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ## @PCI_ERS_RESULT_RECOVERED
	.comm	_pci_channel_io_perm_failure,4,2 ## @pci_channel_io_perm_failure
	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ## @PCI_ERS_RESULT_DISCONNECT
	.comm	_STATE_DISABLED,8,3             ## @STATE_DISABLED
	.comm	_STATE_RECOVERY,8,3             ## @STATE_RECOVERY
	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ## @PCI_ERS_RESULT_NEED_RESET
	.no_dead_strip	_ef4_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 ef4_io_error_detected
_ef4_io_error_detected:                 ; @ef4_io_error_detected
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	bl	_pci_get_drvdata
Lloh0:
	adrp	x8, _pci_channel_io_perm_failure@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pci_channel_io_perm_failure@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	bl	_rtnl_lock
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _STATE_DISABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STATE_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _STATE_RECOVERY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATE_RECOVERY@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	stp	x8, xzr, [x20]
	mov	x0, x20
	bl	_ef4_device_detach_sync
	mov	x0, x20
	bl	_ef4_stop_all
	mov	x0, x20
	bl	_ef4_disable_interrupts
Lloh14:
	adrp	x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGEOFF]
LBB0_5:
	ldr	w20, [x8]
	bl	_rtnl_unlock
	mov	x0, x19
	bl	_pci_disable_device
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ; @PCI_ERS_RESULT_RECOVERED
	.comm	_pci_channel_io_perm_failure,4,2 ; @pci_channel_io_perm_failure
	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ; @PCI_ERS_RESULT_DISCONNECT
	.comm	_STATE_DISABLED,8,3             ; @STATE_DISABLED
	.comm	_STATE_RECOVERY,8,3             ; @STATE_RECOVERY
	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ; @PCI_ERS_RESULT_NEED_RESET
	.no_dead_strip	_ef4_io_error_detected
.subsections_via_symbols
