	.file	"extr_tcp.c_nvmet_tcp_alloc_queue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvmet_tcp_alloc_queue, @function
nvmet_tcp_alloc_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	edi, 80
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	test	rax, rax
	je	.L10
	mov	esi, DWORD PTR nvmet_tcp_release_queue_work[rip]
	mov	rbp, rax
	lea	rdi, 72[rax]
	lea	r13, 16[rbp]
	call	INIT_WORK@PLT
	mov	esi, DWORD PTR nvmet_tcp_io_work[rip]
	mov	rdi, r13
	call	INIT_WORK@PLT
	mov	QWORD PTR 64[rbp], r12
	lea	rdi, 40[rbp]
	mov	QWORD PTR 56[rbp], rbx
	mov	QWORD PTR 48[rbp], 0
	call	spin_lock_init@PLT
	mov	eax, DWORD PTR NVMET_TCP_Q_CONNECTING[rip]
	lea	rdi, 32[rbp]
	mov	DWORD PTR 36[rbp], eax
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 28[rbp]
	call	init_llist_head@PLT
	lea	rdi, 24[rbp]
	call	INIT_LIST_HEAD@PLT
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	xor	edx, edx
	xor	esi, esi
	lea	rdi, nvmet_tcp_queue_ida[rip]
	call	ida_simple_get@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	r12d, eax
	test	eax, eax
	js	.L4
	lea	r14, 4[rbp]
	mov	rdi, rbp
	mov	rsi, r14
	call	nvmet_tcp_alloc_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L5:
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, nvmet_tcp_queue_ida[rip]
	call	ida_simple_remove@PLT
.L4:
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	r15, 8[rbp]
	mov	rdi, r15
	call	nvmet_sq_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	esi, DWORD PTR cpu_online_mask[rip]
	mov	edi, DWORD PTR [rbx]
	xor	ecx, ecx
	mov	edx, -1
	call	cpumask_next_wrap@PLT
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	lea	rbx, 12[rbp]
	mov	DWORD PTR 20[rbp], eax
	call	nvmet_prepare_receive_pdu@PLT
	lea	rdi, nvmet_tcp_queue_mutex[rip]
	call	mutex_lock@PLT
	lea	rsi, nvmet_tcp_queue_list[rip]
	mov	rdi, rbx
	call	list_add_tail@PLT
	lea	rdi, nvmet_tcp_queue_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	nvmet_tcp_set_queue_sock@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	mov	edi, DWORD PTR 20[rbp]
	mov	esi, DWORD PTR nvmet_tcp_wq[rip]
	mov	rdx, r13
	call	queue_work_on@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, nvmet_tcp_queue_mutex[rip]
	call	mutex_lock@PLT
	mov	rdi, rbx
	call	list_del_init@PLT
	lea	rdi, nvmet_tcp_queue_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdi, r15
	call	nvmet_sq_destroy@PLT
.L6:
	mov	rdi, r14
	call	nvmet_tcp_free_cmd@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	nvmet_tcp_alloc_queue, .-nvmet_tcp_alloc_queue
	.comm	nvmet_tcp_wq,4,4
	.comm	nvmet_tcp_release_queue_work,4,4
	.comm	nvmet_tcp_queue_mutex,4,4
	.comm	nvmet_tcp_queue_list,4,4
	.comm	nvmet_tcp_queue_ida,4,4
	.comm	nvmet_tcp_io_work,4,4
	.comm	cpu_online_mask,4,4
	.comm	NVMET_TCP_Q_CONNECTING,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tcp.c_nvmet_tcp_alloc_queue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvmet_tcp_alloc_queue, %function
nvmet_tcp_alloc_queue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, .L13
	mov	r6, r0
	mov	r8, r1
	mov	r0, #60
	ldr	r1, [r9]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L10
	mov	r5, #0
	ldr	r3, .L13+4
	add	r0, r4, #56
	ldr	r1, [r3]
	bl	INIT_WORK
	ldr	r3, .L13+8
	add	r7, r4, #16
	ldr	r1, [r3]
	mov	r0, r7
	bl	INIT_WORK
	str	r5, [r4, #44]
	str	r8, [r4, #52]
	str	r6, [r4, #48]
	add	r0, r4, #40
	bl	spin_lock_init
	ldr	r3, .L13+12
	add	r0, r4, #32
	ldr	r3, [r3]
	str	r3, [r4, #36]
	bl	INIT_LIST_HEAD
	add	r0, r4, #28
	bl	init_llist_head
	add	r0, r4, #24
	bl	INIT_LIST_HEAD
	mov	r2, r5
	mov	r1, r5
	ldr	r3, [r9]
	ldr	r0, .L13+16
	bl	ida_simple_get
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r4]
	blt	.L4
	add	r8, r4, #4
	mov	r1, r8
	mov	r0, r4
	bl	nvmet_tcp_alloc_cmd
	subs	r5, r0, #0
	beq	.L11
.L5:
	ldr	r1, [r4]
	ldr	r0, .L13+16
	bl	ida_simple_remove
.L4:
	mov	r0, r4
	bl	kfree
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L13+20
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	add	r9, r4, #8
	mov	r0, r9
	bl	nvmet_sq_init
	subs	r5, r0, #0
	bne	.L6
	ldr	r2, .L13+24
	mov	r3, r5
	ldr	r1, [r2]
	ldr	r0, [r6]
	mvn	r2, #0
	bl	cpumask_next_wrap
	mov	r3, r0
	mov	r0, r4
	str	r3, [r6]
	str	r3, [r4, #20]
	bl	nvmet_prepare_receive_pdu
	add	r6, r4, #12
	ldr	r0, .L13+28
	bl	mutex_lock
	ldr	r1, .L13+32
	mov	r0, r6
	bl	list_add_tail
	ldr	r0, .L13+28
	bl	mutex_unlock
	mov	r0, r4
	bl	nvmet_tcp_set_queue_sock
	subs	r5, r0, #0
	bne	.L12
	ldr	r3, .L13+36
	mov	r2, r7
	ldr	r0, [r4, #20]
	ldr	r1, [r3]
	bl	queue_work_on
	b	.L1
.L12:
	ldr	r0, .L13+28
	bl	mutex_lock
	mov	r0, r6
	bl	list_del_init
	ldr	r0, .L13+28
	bl	mutex_unlock
	mov	r0, r9
	bl	nvmet_sq_destroy
.L6:
	mov	r0, r8
	bl	nvmet_tcp_free_cmd
	b	.L5
.L14:
	.align	2
.L13:
	.word	GFP_KERNEL
	.word	nvmet_tcp_release_queue_work
	.word	nvmet_tcp_io_work
	.word	NVMET_TCP_Q_CONNECTING
	.word	nvmet_tcp_queue_ida
	.word	ENOMEM
	.word	cpu_online_mask
	.word	nvmet_tcp_queue_mutex
	.word	nvmet_tcp_queue_list
	.word	nvmet_tcp_wq
	.size	nvmet_tcp_alloc_queue, .-nvmet_tcp_alloc_queue
	.comm	nvmet_tcp_wq,4,4
	.comm	nvmet_tcp_release_queue_work,4,4
	.comm	nvmet_tcp_queue_mutex,4,4
	.comm	nvmet_tcp_queue_list,4,4
	.comm	nvmet_tcp_queue_ida,4,4
	.comm	nvmet_tcp_io_work,4,4
	.comm	cpu_online_mask,4,4
	.comm	NVMET_TCP_Q_CONNECTING,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
