	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_fc_submit_async_event
_nvme_fc_submit_async_event:            ## @nvme_fc_submit_async_event
	.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
	callq	_to_fc_ctrl
	movq	%rax, %r14
	leaq	16(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_FCCTRL_TERMIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	je	LBB0_1
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r14), %rdx
	movl	(%rdx), %esi
	movq	_NVMEFC_FCP_NODATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_nvme_fc_start_fcp_op
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FCCTRL_TERMIO,4,2              ## @FCCTRL_TERMIO
	.comm	_NVMEFC_FCP_NODATA,4,2          ## @NVMEFC_FCP_NODATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed async event work\n"

	.no_dead_strip	_nvme_fc_submit_async_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_fc_submit_async_event
_nvme_fc_submit_async_event:            ; @nvme_fc_submit_async_event
	.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
	bl	_to_fc_ctrl
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _FCCTRL_TERMIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FCCTRL_TERMIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w21, w9, w8
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	cbz	w21, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	x2, [x19, #8]
	ldr	w1, [x2]
Lloh3:
	adrp	x8, _NVMEFC_FCP_NODATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVMEFC_FCP_NODATA@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_nvme_fc_start_fcp_op
	cbz	x0, LBB0_1
; %bb.3:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FCCTRL_TERMIO,4,2              ; @FCCTRL_TERMIO
	.comm	_NVMEFC_FCP_NODATA,4,2          ; @NVMEFC_FCP_NODATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed async event work\n"

	.no_dead_strip	_nvme_fc_submit_async_event
.subsections_via_symbols
