	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_fc_error_recovery
_nvme_fc_error_recovery:                ## @nvme_fc_error_recovery
	.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
	movq	(%rdi), %rax
	movq	_NVME_CTRL_CONNECTING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_4
## %bb.1:
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_atomic_xchg
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_nvme_fc_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rbx
	movq	%rbx, %rsi
	callq	_queue_work
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	$1, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_4:
	movq	_NVME_CTRL_LIVE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.6:
	movq	%rsi, %rcx
	movl	8(%rbx), %edi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movl	8(%rbx), %edi
	movl	16(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nvme_reset_ctrl                ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_CTRL_CONNECTING,8,3       ## @NVME_CTRL_CONNECTING
	.comm	_nvme_fc_wq,4,2                 ## @nvme_fc_wq
	.comm	_NVME_CTRL_LIVE,8,3             ## @NVME_CTRL_LIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVME-FC{%d}: transport association error detected: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"NVME-FC{%d}: resetting controller\n"

	.no_dead_strip	_nvme_fc_error_recovery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_fc_error_recovery
_nvme_fc_error_recovery:                ; @nvme_fc_error_recovery
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NVME_CTRL_CONNECTING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVME_CTRL_CONNECTING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	add	x20, x19, #20
	mov	x0, x20
	mov	w1, #1
	bl	_atomic_xchg
	cbnz	w0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _nvme_fc_wq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nvme_fc_wq@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_queue_work
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_atomic_set
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_WARN_ON
LBB0_4:
Lloh6:
	adrp	x9, _NVME_CTRL_LIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVME_CTRL_LIVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	ldr	w2, [x19, #16]
	str	x1, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	w0, [x19, #8]
	ldr	w2, [x19, #16]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_nvme_reset_ctrl
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_CTRL_CONNECTING,8,3       ; @NVME_CTRL_CONNECTING
	.comm	_nvme_fc_wq,4,2                 ; @nvme_fc_wq
	.comm	_NVME_CTRL_LIVE,8,3             ; @NVME_CTRL_LIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVME-FC{%d}: transport association error detected: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"NVME-FC{%d}: resetting controller\n"

	.no_dead_strip	_nvme_fc_error_recovery
.subsections_via_symbols
