	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_fc_alloc_target_queue
_nvmet_fc_alloc_target_queue:           ## @nvmet_fc_alloc_target_queue
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NVMET_NR_QUEUES@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jb	LBB0_9
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_fod@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_nvmet_fc_tgt_a_get
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	(%r14), %rax
	movl	4(%rax), %ecx
	movl	16(%r14), %r8d
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %r9
	callq	_alloc_workqueue
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	%r15, (%rbx)
	movq	%r12, 8(%rbx)
	movq	%r14, 64(%rbx)
	leaq	56(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	48(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	44(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	40(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	36(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	32(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	leaq	24(%rbx), %rdi
	callq	_kref_init
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_nvmet_fc_prep_fcp_iodlist
	movq	%rbx, %rdi
	addq	$20, %rdi
	callq	_nvmet_sq_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_nvmet_fc_destroy_fcp_iodlist
	movl	16(%rbx), %edi
	callq	_destroy_workqueue
LBB0_7:
	movq	%r14, %rdi
	callq	_nvmet_fc_tgt_a_put
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_WARN_ON
	movq	(%r14), %rdi
	callq	_spin_lock_irqsave
	movq	8(%r14), %rax
	movq	%rbx, (%rax,%r15,8)
	movq	(%r14), %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMET_NR_QUEUES,8,3            ## @NVMET_NR_QUEUES
	.comm	_fod,4,2                        ## @fod
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ntfc%d.%d.%d"

	.no_dead_strip	_nvmet_fc_alloc_target_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_fc_alloc_target_queue
_nvmet_fc_alloc_target_queue:           ; @nvmet_fc_alloc_target_queue
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _NVMET_NR_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVMET_NR_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.lo	LBB0_8
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _fod@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fod@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_struct_size
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_nvmet_fc_tgt_a_get
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	ldr	w3, [x8, #4]
	ldr	w4, [x19, #16]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	mov	w2, #0
	mov	x5, x21
	bl	_alloc_workqueue
	str	w0, [x20, #16]
	cbz	w0, LBB0_6
; %bb.4:
	stp	x21, x22, [x20]
	add	x0, x20, #56
	str	x19, [x20, #64]
	bl	_INIT_LIST_HEAD
	add	x0, x20, #52
	bl	_INIT_LIST_HEAD
	add	x0, x20, #48
	bl	_INIT_LIST_HEAD
	add	x0, x20, #44
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #40
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #36
	mov	w1, #1
	bl	_atomic_set
	add	x0, x20, #32
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #28
	bl	_spin_lock_init
	add	x0, x20, #24
	bl	_kref_init
	ldr	x0, [x19]
	mov	x1, x20
	bl	_nvmet_fc_prep_fcp_iodlist
	add	x0, x20, #20
	bl	_nvmet_sq_init
	cbz	w0, LBB0_10
; %bb.5:
	ldr	x0, [x19]
	mov	x1, x20
	bl	_nvmet_fc_destroy_fcp_iodlist
	ldr	w0, [x20, #16]
	bl	_destroy_workqueue
LBB0_6:
	mov	x0, x19
	bl	_nvmet_fc_tgt_a_put
LBB0_7:
	mov	x0, x20
	bl	_kfree
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x19, #8]
	lsl	x21, x21, #3
	ldr	x0, [x8, x21]
	bl	_WARN_ON
	ldr	x0, [x19]
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	str	x20, [x8, x21]
	ldr	x0, [x19]
	bl	_spin_unlock_irqrestore
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMET_NR_QUEUES,8,3            ; @NVMET_NR_QUEUES
	.comm	_fod,4,2                        ; @fod
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ntfc%d.%d.%d"

	.no_dead_strip	_nvmet_fc_alloc_target_queue
.subsections_via_symbols
