	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcloop_create_remote_port
_fcloop_create_remote_port:             ## @fcloop_create_remote_port
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rdi
	movq	%rcx, %rsi
	movl	$1, %edx
	callq	_fcloop_alloc_nport
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movups	24(%r15), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_nvme_fc_register_remoteport
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	(%rcx), %rax
	movq	%rcx, 24(%rax)
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	16(%rsi), %rdx
	movq	%rcx, 8(%rsi)
	movq	8(%r15), %rcx
	movq	%rcx, (%rsi)
	jmp	LBB0_8
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	%r15, %rdi
	callq	_fcloop_nport_put
	jmp	LBB0_9
LBB0_6:
	xorl	%edx, %edx
LBB0_8:
	movq	%rdx, 16(%rax)
	movq	%r15, 8(%rax)
	movq	8(%r15), %rcx
	movq	%rcx, (%rax)
	movq	%rax, (%r15)
	movl	%r14d, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_fcloop_create_remote_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcloop_create_remote_port
_fcloop_create_remote_port:             ; @fcloop_create_remote_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x0, x2
	mov	x1, x3
	mov	w2, #1
	bl	_fcloop_alloc_nport
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldur	q0, [x20, #24]
	str	q0, [sp]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	mov	x1, sp
	add	x2, sp, #24
	bl	_nvme_fc_register_remoteport
	ldr	x9, [sp, #24]
	cmp	w0, #0
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	bl	_fcloop_nport_put
	mov	x19, x21
	b	LBB0_8
LBB0_3:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_8
LBB0_4:
	ldr	x8, [x9]
	str	x9, [x8, #24]
	ldr	x11, [x20, #16]
	cbz	x11, LBB0_6
; %bb.5:
	ldr	x10, [x11, #16]
	str	x9, [x11, #8]
	ldr	x9, [x20, #8]
	str	x9, [x11]
	b	LBB0_7
LBB0_6:
	mov	x10, #0
LBB0_7:
	stp	x20, x10, [x8, #8]
	ldr	x9, [x20, #8]
	str	x9, [x8]
	str	x8, [x20]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_fcloop_create_remote_port
.subsections_via_symbols
