	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_warn_reset
_nvme_warn_reset:                       ## @nvme_warn_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_pci_dev
	movq	_PCI_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-20(%rbp), %rdx
	movl	%eax, %edi
	callq	_pci_read_config_word
	movq	_PCIBIOS_SUCCESSFUL@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edi
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	-20(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
LBB0_3:
	callq	_dev_warn
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_STATUS,4,2                 ## @PCI_STATUS
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ## @PCIBIOS_SUCCESSFUL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"controller is down; will reset: CSTS=0x%x, PCI_STATUS=0x%hx\n"

L_.str.1:                               ## @.str.1
	.asciz	"controller is down; will reset: CSTS=0x%x, PCI_STATUS read failed (%d)\n"

	.no_dead_strip	_nvme_warn_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_warn_reset
_nvme_warn_reset:                       ; @nvme_warn_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, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_pci_dev
Lloh0:
	adrp	x8, _PCI_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_word
	mov	x3, x0
Lloh3:
	adrp	x8, _PCIBIOS_SUCCESSFUL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIBIOS_SUCCESSFUL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w0, [x20]
	cmp	w3, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w3, [sp, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	x2, x19
	bl	_dev_warn
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_STATUS,4,2                 ; @PCI_STATUS
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ; @PCIBIOS_SUCCESSFUL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"controller is down; will reset: CSTS=0x%x, PCI_STATUS=0x%hx\n"

l_.str.1:                               ; @.str.1
	.asciz	"controller is down; will reset: CSTS=0x%x, PCI_STATUS read failed (%d)\n"

	.no_dead_strip	_nvme_warn_reset
.subsections_via_symbols
