	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __nvme_fc_abort_op
___nvme_fc_abort_op:                    ## @__nvme_fc_abort_op
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	24(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%rbx), %r13
	movq	_FCPOP_STATE_ABORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_atomic_xchg
	movl	%eax, %ebx
	movq	_FCPOP_STATE_ACTIVE@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_1
## %bb.2:
	movq	_FCCTRL_TERMIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.3:
	incl	28(%r12)
	jmp	LBB0_4
LBB0_1:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_atomic_set
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	cmpl	(%r14), %ebx
	jne	LBB0_5
## %bb.6:
	movq	8(%r12), %rsi
	movq	16(%r12), %rdi
	movq	8(%rdi), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rdx
	movl	(%rdx), %edx
	callq	*(%rax)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_ECANCELED@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FCPOP_STATE_ABORTED,4,2        ## @FCPOP_STATE_ABORTED
	.comm	_FCPOP_STATE_ACTIVE,4,2         ## @FCPOP_STATE_ACTIVE
	.comm	_FCCTRL_TERMIO,4,2              ## @FCCTRL_TERMIO
	.comm	_ECANCELED,4,2                  ## @ECANCELED
	.no_dead_strip	___nvme_fc_abort_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __nvme_fc_abort_op
___nvme_fc_abort_op:                    ; @__nvme_fc_abort_op
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x23, x19, #16
Lloh0:
	adrp	x8, _FCPOP_STATE_ABORTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FCPOP_STATE_ABORTED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_atomic_xchg
	mov	x22, x0
Lloh3:
	adrp	x24, _FCPOP_STATE_ACTIVE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FCPOP_STATE_ACTIVE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _FCCTRL_TERMIO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FCCTRL_TERMIO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
	b	LBB0_4
LBB0_3:
	mov	x0, x23
	mov	x1, x22
	bl	_atomic_set
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w8, [x24]
	cmp	w22, w8
	b.ne	LBB0_6
; %bb.5:
	ldp	x1, x0, [x20, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	w2, [x9]
	mov	x3, x19
	blr	x8
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ECANCELED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECANCELED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FCPOP_STATE_ABORTED,4,2        ; @FCPOP_STATE_ABORTED
	.comm	_FCPOP_STATE_ACTIVE,4,2         ; @FCPOP_STATE_ACTIVE
	.comm	_FCCTRL_TERMIO,4,2              ; @FCCTRL_TERMIO
	.comm	_ECANCELED,4,2                  ; @ECANCELED
	.no_dead_strip	___nvme_fc_abort_op
.subsections_via_symbols
