	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_fc_register_remoteport    ## -- Begin function nvme_fc_register_remoteport
	.p2align	4, 0x90
_nvme_fc_register_remoteport:           ## @nvme_fc_register_remoteport
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_localport_to_lport
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_nvme_fc_lport_get
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nvme_fc_attach_to_suspended_rport
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
LBB0_10:
	movq	%r15, %rdi
	callq	_nvme_fc_lport_put
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_nvme_fc_lport_put
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	___nvme_fc_set_dev_loss_tmo
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvme_fc_signal_discovery_scan
	xorl	%r12d, %r12d
LBB0_11:
	movq	%rbx, (%r14)
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	addq	$88, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	leaq	12(%r15), %rdi
	movl	(%r12), %ecx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	testl	%eax, %eax
	js	LBB0_9
## %bb.12:
	leaq	40(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_INIT_LIST_HEAD
	leaq	80(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	76(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	72(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	68(%rbx), %rdi
	callq	_kref_init
	leaq	64(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	60(%rbx), %rdi
	callq	_spin_lock_init
	movq	%r15, %rax
	addq	$8, %rax
	movq	%rax, 32(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 56(%rbx)
	movq	%r15, 48(%rbx)
	movq	%rbx, %rax
	addq	$88, %rax
	movq	%rax, 24(%rbx)
	movups	(%r13), %xmm0
	movups	%xmm0, 8(%rbx)
	movq	_FC_OBJSTATE_ONLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	___nvme_fc_set_dev_loss_tmo
	movq	_nvme_fc_lock@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvme_fc_signal_discovery_scan
	jmp	LBB0_11
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_9:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_FC_OBJSTATE_ONLINE,4,2         ## @FC_OBJSTATE_ONLINE
	.comm	_nvme_fc_lock,4,2               ## @nvme_fc_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_fc_register_remoteport    ; -- Begin function nvme_fc_register_remoteport
	.p2align	2
_nvme_fc_register_remoteport:           ; @nvme_fc_register_remoteport
	.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, x2
	mov	x22, x1
	bl	_localport_to_lport
	mov	x20, x0
	bl	_nvme_fc_lport_get
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	x1, x22
	bl	_nvme_fc_attach_to_suspended_rport
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
LBB0_3:
	mov	x0, x20
	bl	_nvme_fc_lport_put
	mov	x21, #0
	b	LBB0_8
LBB0_4:
	mov	x21, #0
Lloh0:
	adrp	x8, _ESHUTDOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_5:
	cbz	x21, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_nvme_fc_lport_put
	mov	x0, x21
	mov	x1, x22
	bl	___nvme_fc_set_dev_loss_tmo
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	bl	_nvme_fc_signal_discovery_scan
	mov	w22, #0
LBB0_8:
	str	x21, [x19]
	mov	x0, x22
	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
LBB0_9:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	add	x0, x8, #88
Lloh3:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_kmalloc
	cbz	x0, LBB0_12
; %bb.10:
	mov	x21, x0
	add	x0, x20, #12
	ldr	w3, [x23]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	tbnz	w0, #31, LBB0_13
; %bb.11:
	mov	x24, x0
	add	x23, x21, #40
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	add	x0, x21, #80
	bl	_INIT_LIST_HEAD
	add	x0, x21, #76
	bl	_INIT_LIST_HEAD
	add	x0, x21, #72
	bl	_INIT_LIST_HEAD
	add	x0, x21, #68
	bl	_kref_init
	add	x0, x21, #64
	mov	w1, #0
	bl	_atomic_set
	add	x0, x21, #60
	bl	_spin_lock_init
	add	x8, x20, #8
	ldr	w9, [x20, #4]
	str	w9, [x21, #56]
	str	x20, [x21, #48]
	add	x9, x21, #88
	stp	x9, x8, [x21, #24]
	ldr	q0, [x22]
	stur	q0, [x21, #8]
Lloh5:
	adrp	x8, _FC_OBJSTATE_ONLINE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FC_OBJSTATE_ONLINE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w24, w8, [x21]
	mov	x0, x21
	mov	x1, x22
	bl	___nvme_fc_set_dev_loss_tmo
Lloh8:
	adrp	x22, _nvme_fc_lock@GOTPAGE
Lloh9:
	ldr	x22, [x22, _nvme_fc_lock@GOTPAGEOFF]
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x23
	mov	x1, x20
	bl	_list_add_tail
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_7
LBB0_12:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_3
LBB0_13:
Lloh13:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x21
	bl	_kfree
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_FC_OBJSTATE_ONLINE,4,2         ; @FC_OBJSTATE_ONLINE
	.comm	_nvme_fc_lock,4,2               ; @nvme_fc_lock
.subsections_via_symbols
