	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_tcp_alloc_queue
_nvmet_tcp_alloc_queue:                 ## @nvmet_tcp_alloc_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	%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	%rsi, %r12
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	72(%rax), %rdi
	movq	_nvmet_tcp_release_queue_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	16(%rbx), %r14
	movq	_nvmet_tcp_io_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_WORK
	movq	%r12, 64(%rbx)
	movq	%r15, 56(%rbx)
	movq	$0, 48(%rbx)
	leaq	40(%rbx), %rdi
	callq	_spin_lock_init
	movq	_NVMET_TCP_Q_CONNECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_init_llist_head
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r13), %ecx
	movq	_nvmet_tcp_queue_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movl	%eax, (%rbx)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	4(%rbx), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_nvmet_tcp_alloc_cmd
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_nvmet_sq_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movl	$-1, %edx
	xorl	%ecx, %ecx
	callq	_cpumask_next_wrap
	movl	%eax, (%r15)
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_nvmet_prepare_receive_pdu
	movq	_nvmet_tcp_queue_mutex@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%rbx, %r15
	addq	$12, %r15
	movq	_nvmet_tcp_queue_list@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_nvmet_tcp_set_queue_sock
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r13d
	movq	_nvmet_tcp_queue_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_list_del_init
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvmet_sq_destroy
	movl	%r13d, %r12d
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvmet_tcp_free_cmd
LBB0_10:
	movl	(%rbx), %esi
	movq	_nvmet_tcp_queue_ida@GOTPCREL(%rip), %rdi
	callq	_ida_simple_remove
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_3:
	movl	%eax, %r12d
LBB0_11:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	20(%rbx), %edi
	movq	_nvmet_tcp_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_queue_work_on
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nvmet_tcp_release_queue_work,4,2 ## @nvmet_tcp_release_queue_work
	.comm	_nvmet_tcp_io_work,4,2          ## @nvmet_tcp_io_work
	.comm	_NVMET_TCP_Q_CONNECTING,4,2     ## @NVMET_TCP_Q_CONNECTING
	.comm	_nvmet_tcp_queue_ida,4,2        ## @nvmet_tcp_queue_ida
	.comm	_cpu_online_mask,4,2            ## @cpu_online_mask
	.comm	_nvmet_tcp_queue_mutex,4,2      ## @nvmet_tcp_queue_mutex
	.comm	_nvmet_tcp_queue_list,4,2       ## @nvmet_tcp_queue_list
	.comm	_nvmet_tcp_wq,4,2               ## @nvmet_tcp_wq
	.no_dead_strip	_nvmet_tcp_alloc_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_tcp_alloc_queue
_nvmet_tcp_alloc_queue:                 ; @nvmet_tcp_alloc_queue
	.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	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	add	x0, x0, #72
Lloh2:
	adrp	x8, _nvmet_tcp_release_queue_work@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nvmet_tcp_release_queue_work@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x20, x19, #16
Lloh5:
	adrp	x8, _nvmet_tcp_io_work@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nvmet_tcp_io_work@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_INIT_WORK
	stp	x21, x22, [x19, #56]
	add	x0, x19, #40
	str	xzr, [x19, #48]
	bl	_spin_lock_init
Lloh8:
	adrp	x8, _NVMET_TCP_Q_CONNECTING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NVMET_TCP_Q_CONNECTING@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_init_llist_head
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	ldr	w3, [x23]
Lloh11:
	adrp	x0, _nvmet_tcp_queue_ida@GOTPAGE
Lloh12:
	ldr	x0, [x0, _nvmet_tcp_queue_ida@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	str	w0, [x19]
	tbnz	w0, #31, LBB0_9
; %bb.2:
	add	x22, x19, #4
	mov	x0, x19
	mov	x1, x22
	bl	_nvmet_tcp_alloc_cmd
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.3:
	add	x24, x19, #8
	mov	x0, x24
	bl	_nvmet_sq_init
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w0, [x21]
Lloh13:
	adrp	x8, _cpu_online_mask@GOTPAGE
Lloh14:
	ldr	x8, [x8, _cpu_online_mask@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #-1
	mov	w3, #0
	bl	_cpumask_next_wrap
	str	w0, [x21]
	str	w0, [x19, #20]
	mov	x0, x19
	bl	_nvmet_prepare_receive_pdu
Lloh16:
	adrp	x23, _nvmet_tcp_queue_mutex@GOTPAGE
Lloh17:
	ldr	x23, [x23, _nvmet_tcp_queue_mutex@GOTPAGEOFF]
	mov	x0, x23
	bl	_mutex_lock
	add	x21, x19, #12
Lloh18:
	adrp	x1, _nvmet_tcp_queue_list@GOTPAGE
Lloh19:
	ldr	x1, [x1, _nvmet_tcp_queue_list@GOTPAGEOFF]
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x19
	bl	_nvmet_tcp_set_queue_sock
	mov	x23, x0
	cbz	w0, LBB0_12
; %bb.5:
Lloh20:
	adrp	x20, _nvmet_tcp_queue_mutex@GOTPAGE
Lloh21:
	ldr	x20, [x20, _nvmet_tcp_queue_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x21
	bl	_list_del_init
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x24
	bl	_nvmet_sq_destroy
LBB0_6:
	mov	x0, x22
	bl	_nvmet_tcp_free_cmd
LBB0_7:
	ldr	w1, [x19]
Lloh22:
	adrp	x0, _nvmet_tcp_queue_ida@GOTPAGE
Lloh23:
	ldr	x0, [x0, _nvmet_tcp_queue_ida@GOTPAGEOFF]
	bl	_ida_simple_remove
	b	LBB0_10
LBB0_8:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_9:
	mov	x23, x0
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
	mov	x0, x23
	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_12:
	ldr	w0, [x19, #20]
Lloh27:
	adrp	x8, _nvmet_tcp_wq@GOTPAGE
Lloh28:
	ldr	x8, [x8, _nvmet_tcp_wq@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_queue_work_on
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nvmet_tcp_release_queue_work,4,2 ; @nvmet_tcp_release_queue_work
	.comm	_nvmet_tcp_io_work,4,2          ; @nvmet_tcp_io_work
	.comm	_NVMET_TCP_Q_CONNECTING,4,2     ; @NVMET_TCP_Q_CONNECTING
	.comm	_nvmet_tcp_queue_ida,4,2        ; @nvmet_tcp_queue_ida
	.comm	_cpu_online_mask,4,2            ; @cpu_online_mask
	.comm	_nvmet_tcp_queue_mutex,4,2      ; @nvmet_tcp_queue_mutex
	.comm	_nvmet_tcp_queue_list,4,2       ; @nvmet_tcp_queue_list
	.comm	_nvmet_tcp_wq,4,2               ; @nvmet_tcp_wq
	.no_dead_strip	_nvmet_tcp_alloc_queue
.subsections_via_symbols
