	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_fc_unregister_localport   ## -- Begin function nvme_fc_unregister_localport
	.p2align	4, 0x90
_nvme_fc_unregister_localport:          ## @nvme_fc_unregister_localport
	.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
	callq	_localport_to_lport
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_nvme_fc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	_FC_OBJSTATE_ONLINE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_FC_OBJSTATE_DELETED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_nvme_fc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
LBB0_6:
	movq	%r14, %rdi
	callq	_nvme_fc_lport_put
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_nvme_fc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nvme_fc_lock,4,2               ## @nvme_fc_lock
	.comm	_FC_OBJSTATE_ONLINE,8,3         ## @FC_OBJSTATE_ONLINE
	.comm	_FC_OBJSTATE_DELETED,8,3        ## @FC_OBJSTATE_DELETED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_fc_unregister_localport   ; -- Begin function nvme_fc_unregister_localport
	.p2align	2
_nvme_fc_unregister_localport:          ; @nvme_fc_unregister_localport
	.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, x0
	bl	_localport_to_lport
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x0, _nvme_fc_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _nvme_fc_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _FC_OBJSTATE_ONLINE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FC_OBJSTATE_ONLINE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _FC_OBJSTATE_DELETED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FC_OBJSTATE_DELETED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh8:
	adrp	x0, _nvme_fc_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _nvme_fc_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	add	x0, x19, #16
	bl	_atomic_read
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_4:
	mov	x0, x19
	bl	_nvme_fc_lport_put
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x0, _nvme_fc_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _nvme_fc_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nvme_fc_lock,4,2               ; @nvme_fc_lock
	.comm	_FC_OBJSTATE_ONLINE,8,3         ; @FC_OBJSTATE_ONLINE
	.comm	_FC_OBJSTATE_DELETED,8,3        ; @FC_OBJSTATE_DELETED
.subsections_via_symbols
