	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_fc_register_localport     ## -- Begin function nvme_fc_register_localport
	.p2align	4, 0x90
_nvme_fc_register_localport:            ## @nvme_fc_register_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	%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	%rcx, %r14
	cmpl	$0, 48(%rsi)
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 44(%rsi)
	je	LBB0_10
## %bb.2:
	cmpl	$0, 40(%rbx)
	je	LBB0_10
## %bb.3:
	cmpl	$0, 36(%rbx)
	je	LBB0_10
## %bb.4:
	cmpl	$0, 32(%rbx)
	je	LBB0_10
## %bb.5:
	cmpl	$0, 28(%rbx)
	je	LBB0_10
## %bb.6:
	cmpl	$0, 24(%rbx)
	je	LBB0_10
## %bb.7:
	cmpl	$0, 20(%rbx)
	je	LBB0_10
## %bb.8:
	cmpl	$0, 16(%rbx)
	je	LBB0_10
## %bb.9:
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.12:
	movq	%rdx, %r15
	movq	%rdi, %r13
	movq	%rbx, %rsi
	callq	_nvme_fc_attach_to_unreg_lport
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_27
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_27:
	movq	%r12, (%r14)
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	testq	%r12, %r12
	je	LBB0_16
## %bb.15:
	xorl	%r15d, %r15d
	jmp	LBB0_27
LBB0_16:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	addq	$72, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %r12
	movl	(%r15), %ecx
	movq	_nvme_fc_local_port_cnt@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	testl	%eax, %eax
	js	LBB0_19
## %bb.20:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_get_device
	testq	%r15, %r15
	je	LBB0_25
## %bb.21:
	testl	%eax, %eax
	jne	LBB0_25
## %bb.22:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_nvme_fc_local_port_cnt@GOTPCREL(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ida_simple_remove
	jmp	LBB0_23
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_19:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_23:
	negl	%r15d
	movq	%r12, %rdi
	callq	_kfree
	xorl	%r12d, %r12d
	jmp	LBB0_27
LBB0_25:
	leaq	32(%r12), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	leaq	64(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	60(%r12), %rdi
	callq	_kref_init
	leaq	56(%r12), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%rbx, 48(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r12)
	leaq	36(%r12), %rdi
	callq	_ida_init
	movq	%r12, %rax
	addq	$72, %rax
	movq	%rax, 24(%r12)
	movups	(%r13), %xmm0
	movups	%xmm0, 8(%r12)
	movq	_FC_OBJSTATE_ONLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	movq	_nvme_fc_lock@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_nvme_fc_lport_list@GOTPCREL(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.26:
	movl	(%rbx), %esi
	callq	_dma_set_seg_boundary
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nvme_fc_local_port_cnt,4,2     ## @nvme_fc_local_port_cnt
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_FC_OBJSTATE_ONLINE,4,2         ## @FC_OBJSTATE_ONLINE
	.comm	_nvme_fc_lock,4,2               ## @nvme_fc_lock
	.comm	_nvme_fc_lport_list,4,2         ## @nvme_fc_lport_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_fc_register_localport     ; -- Begin function nvme_fc_register_localport
	.p2align	2
_nvme_fc_register_localport:            ; @nvme_fc_register_localport
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	ldr	w8, [x1, #48]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x22, x1
	ldr	w8, [x1, #44]
	cbz	w8, LBB0_12
; %bb.2:
	ldr	w8, [x22, #40]
	cbz	w8, LBB0_12
; %bb.3:
	ldr	w8, [x22, #36]
	cbz	w8, LBB0_12
; %bb.4:
	ldr	w8, [x22, #32]
	cbz	w8, LBB0_12
; %bb.5:
	ldr	w8, [x22, #28]
	cbz	w8, LBB0_12
; %bb.6:
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_12
; %bb.7:
	ldr	w8, [x22, #20]
	cbz	w8, LBB0_12
; %bb.8:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_12
; %bb.9:
	ldr	w8, [x22]
	cbz	w8, LBB0_12
; %bb.10:
	mov	x21, x2
	mov	x23, x0
	mov	x1, x22
	bl	_nvme_fc_attach_to_unreg_lport
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.11:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x21, x0
	mov	x20, #0
	b	LBB0_14
LBB0_12:
	mov	x20, #0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	str	x20, [x19]
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	cbz	x20, LBB0_17
LBB0_16:
	mov	w21, #0
	b	LBB0_14
LBB0_17:
	ldr	x8, [x22, #8]
	add	x0, x8, #72
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_kmalloc
	mov	x20, x0
	cbz	x0, LBB0_22
; %bb.18:
	ldr	w3, [x24]
Lloh4:
	adrp	x0, _nvme_fc_local_port_cnt@GOTPAGE
Lloh5:
	ldr	x0, [x0, _nvme_fc_local_port_cnt@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	tbnz	w0, #31, LBB0_23
; %bb.19:
	mov	x24, x0
	mov	x0, x21
	bl	_get_device
	cbz	x21, LBB0_25
; %bb.20:
	cbnz	w0, LBB0_25
; %bb.21:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x0, _nvme_fc_local_port_cnt@GOTPAGE
Lloh10:
	ldr	x0, [x0, _nvme_fc_local_port_cnt@GOTPAGEOFF]
	mov	x1, x24
	bl	_ida_simple_remove
	b	LBB0_24
LBB0_22:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_23:
Lloh13:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
LBB0_24:
	neg	w21, w21
	mov	x0, x20
	bl	_kfree
	mov	x20, #0
	b	LBB0_14
LBB0_25:
	add	x25, x20, #32
	mov	x0, x25
	bl	_INIT_LIST_HEAD
	add	x0, x20, #64
	bl	_INIT_LIST_HEAD
	add	x0, x20, #60
	bl	_kref_init
	add	x0, x20, #56
	mov	w1, #0
	bl	_atomic_set
	stp	x21, x22, [x20, #40]
	add	x0, x20, #36
	bl	_ida_init
	add	x8, x20, #72
	str	x8, [x20, #24]
	ldr	q0, [x23]
	stur	q0, [x20, #8]
Lloh16:
	adrp	x8, _FC_OBJSTATE_ONLINE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FC_OBJSTATE_ONLINE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stp	w24, w8, [x20]
Lloh19:
	adrp	x23, _nvme_fc_lock@GOTPAGE
Lloh20:
	ldr	x23, [x23, _nvme_fc_lock@GOTPAGEOFF]
	mov	x0, x23
	bl	_spin_lock_irqsave
Lloh21:
	adrp	x1, _nvme_fc_lport_list@GOTPAGE
Lloh22:
	ldr	x1, [x1, _nvme_fc_lport_list@GOTPAGEOFF]
	mov	x0, x25
	bl	_list_add_tail
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	cbz	x21, LBB0_14
; %bb.26:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_dma_set_seg_boundary
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nvme_fc_local_port_cnt,4,2     ; @nvme_fc_local_port_cnt
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_FC_OBJSTATE_ONLINE,4,2         ; @FC_OBJSTATE_ONLINE
	.comm	_nvme_fc_lock,4,2               ; @nvme_fc_lock
	.comm	_nvme_fc_lport_list,4,2         ; @nvme_fc_lport_list
.subsections_via_symbols
