	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_fc_register_targetport   ## -- Begin function nvmet_fc_register_targetport
	.p2align	4, 0x90
_nvmet_fc_register_targetport:          ## @nvmet_fc_register_targetport
	.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	%rcx, %r14
	cmpl	$0, 44(%rsi)
	je	LBB0_14
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 40(%rsi)
	je	LBB0_14
## %bb.2:
	cmpl	$0, 36(%rbx)
	je	LBB0_14
## %bb.3:
	cmpl	$0, 32(%rbx)
	je	LBB0_14
## %bb.4:
	cmpl	$0, 28(%rbx)
	je	LBB0_14
## %bb.5:
	cmpl	$0, 24(%rbx)
	je	LBB0_14
## %bb.6:
	cmpq	$0, (%rbx)
	je	LBB0_14
## %bb.7:
	cmpl	$0, 20(%rbx)
	je	LBB0_14
## %bb.8:
	cmpl	$0, 16(%rbx)
	je	LBB0_14
## %bb.9:
	movq	%rdx, %r15
	movq	%rdi, %r13
	movq	8(%rbx), %rdi
	addq	$80, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_nvmet_fc_tgtport_cnt@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_get_device
	testq	%r15, %r15
	je	LBB0_20
## %bb.12:
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_22
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	negl	%ebx
	xorl	%r12d, %r12d
LBB0_17:
	movq	%r12, (%r14)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_19:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_20:
	movl	8(%r13), %eax
	movl	%eax, 20(%r12)
	movl	4(%r13), %eax
	movl	%eax, 16(%r12)
	leaq	80(%r12), %rax
	movq	%rax, 8(%r12)
	movl	(%r13), %eax
	movl	%eax, 4(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	leaq	24(%r12), %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, 72(%r12)
	movq	%rbx, 64(%r12)
	leaq	60(%r12), %rdi
	callq	_spin_lock_init
	leaq	56(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	48(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	44(%r12), %rdi
	callq	_kref_init
	movq	%r12, %rdi
	addq	$40, %rdi
	callq	_ida_init
	movq	(%rbx), %rax
	movq	%rax, 32(%r12)
	movq	%r12, %rdi
	callq	_nvmet_fc_alloc_ls_iodlist
	testl	%eax, %eax
	je	LBB0_24
## %bb.21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_put_device
LBB0_22:
	movq	_nvmet_fc_tgtport_cnt@GOTPCREL(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ida_simple_remove
LBB0_23:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_16
LBB0_24:
	movq	%r12, %rdi
	callq	_nvmet_fc_portentry_rebind_tgt
	movq	_nvmet_fc_tgtlock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_nvmet_fc_target_list@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nvmet_fc_tgtport_cnt,4,2       ## @nvmet_fc_tgtport_cnt
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_nvmet_fc_tgtlock,4,2           ## @nvmet_fc_tgtlock
	.comm	_nvmet_fc_target_list,4,2       ## @nvmet_fc_target_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_fc_register_targetport   ; -- Begin function nvmet_fc_register_targetport
	.p2align	2
_nvmet_fc_register_targetport:          ; @nvmet_fc_register_targetport
	.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, x3
	ldr	w8, [x1, #44]
	cbz	w8, LBB0_14
; %bb.1:
	mov	x22, x1
	ldr	w8, [x1, #40]
	cbz	w8, LBB0_14
; %bb.2:
	ldr	w8, [x22, #36]
	cbz	w8, LBB0_14
; %bb.3:
	ldr	w8, [x22, #32]
	cbz	w8, LBB0_14
; %bb.4:
	ldr	w8, [x22, #28]
	cbz	w8, LBB0_14
; %bb.5:
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_14
; %bb.6:
	ldr	x8, [x22]
	cbz	x8, LBB0_14
; %bb.7:
	ldr	w8, [x22, #20]
	cbz	w8, LBB0_14
; %bb.8:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_14
; %bb.9:
	mov	x21, x2
	mov	x24, x0
	ldr	x8, [x22, #8]
	add	x0, x8, #80
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_kzalloc
	cbz	x0, LBB0_18
; %bb.10:
	mov	x20, x0
	ldr	w3, [x23]
Lloh2:
	adrp	x0, _nvmet_fc_tgtport_cnt@GOTPAGE
Lloh3:
	ldr	x0, [x0, _nvmet_fc_tgtport_cnt@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	tbnz	w0, #31, LBB0_19
; %bb.11:
	mov	x23, x0
	mov	x0, x21
	bl	_get_device
	cbz	x21, LBB0_20
; %bb.12:
	cbnz	w0, LBB0_20
; %bb.13:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
	b	LBB0_22
LBB0_14:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w22, [x8]
LBB0_16:
	mov	x20, #0
	neg	w0, w22
LBB0_17:
	str	x20, [x19]
	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_18:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_19:
Lloh11:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_23
LBB0_20:
	ldur	d0, [x24, #4]
	str	d0, [x20, #16]
	add	x8, x20, #80
	str	x8, [x20, #8]
	ldr	w8, [x24]
	stp	w23, w8, [x20]
	add	x24, x20, #24
	mov	x0, x24
	bl	_INIT_LIST_HEAD
	stp	x22, x21, [x20, #64]
	add	x0, x20, #60
	bl	_spin_lock_init
	add	x0, x20, #56
	bl	_INIT_LIST_HEAD
	add	x0, x20, #52
	bl	_INIT_LIST_HEAD
	add	x0, x20, #48
	bl	_INIT_LIST_HEAD
	add	x0, x20, #44
	bl	_kref_init
	add	x0, x20, #40
	bl	_ida_init
	ldr	x8, [x22]
	str	x8, [x20, #32]
	mov	x0, x20
	bl	_nvmet_fc_alloc_ls_iodlist
	cbz	w0, LBB0_24
; %bb.21:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_put_device
LBB0_22:
Lloh17:
	adrp	x0, _nvmet_fc_tgtport_cnt@GOTPAGE
Lloh18:
	ldr	x0, [x0, _nvmet_fc_tgtport_cnt@GOTPAGEOFF]
	mov	x1, x23
	bl	_ida_simple_remove
LBB0_23:
	mov	x0, x20
	bl	_kfree
	b	LBB0_16
LBB0_24:
	mov	x0, x20
	bl	_nvmet_fc_portentry_rebind_tgt
Lloh19:
	adrp	x21, _nvmet_fc_tgtlock@GOTPAGE
Lloh20:
	ldr	x21, [x21, _nvmet_fc_tgtlock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh21:
	adrp	x1, _nvmet_fc_target_list@GOTPAGE
Lloh22:
	ldr	x1, [x1, _nvmet_fc_target_list@GOTPAGEOFF]
	mov	x0, x24
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nvmet_fc_tgtport_cnt,4,2       ; @nvmet_fc_tgtport_cnt
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_nvmet_fc_tgtlock,4,2           ; @nvmet_fc_tgtlock
	.comm	_nvmet_fc_target_list,4,2       ; @nvmet_fc_target_list
.subsections_via_symbols
