	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_error_detected
_nvme_error_detected:                   ## @nvme_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_pci_get_drvdata
	movq	%rax, %r14
	cmpl	$128, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_2
## %bb.3:
	cmpl	$130, %ebx
	jne	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_nvme_dev_disable
LBB0_5:
	movq	_PCI_ERS_RESULT_NEED_RESET@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_PCI_ERS_RESULT_CAN_RECOVER@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ERS_RESULT_CAN_RECOVER,4,2 ## @PCI_ERS_RESULT_CAN_RECOVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frozen state error detected, reset controller\n"

	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ## @PCI_ERS_RESULT_NEED_RESET
L_.str.1:                               ## @.str.1
	.asciz	"failure state error detected, request disconnect\n"

	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ## @PCI_ERS_RESULT_DISCONNECT
	.no_dead_strip	_nvme_error_detected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_error_detected
_nvme_error_detected:                   ; @nvme_error_detected
	.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, x1
	bl	_pci_get_drvdata
	mov	x19, x0
	cmp	w20, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w20, #130
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	x0, x19
	mov	w1, #0
	bl	_nvme_dev_disable
LBB0_4:
Lloh2:
	adrp	x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh6:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _PCI_ERS_RESULT_CAN_RECOVER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_ERS_RESULT_CAN_RECOVER@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ERS_RESULT_CAN_RECOVER,4,2 ; @PCI_ERS_RESULT_CAN_RECOVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frozen state error detected, reset controller\n"

	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ; @PCI_ERS_RESULT_NEED_RESET
l_.str.1:                               ; @.str.1
	.asciz	"failure state error detected, request disconnect\n"

	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ; @PCI_ERS_RESULT_DISCONNECT
	.no_dead_strip	_nvme_error_detected
.subsections_via_symbols
