	.file	"extr_rdma.c_nvme_rdma_configure_admin_queue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvme_rdma_configure_admin_queue, @function
nvme_rdma_configure_admin_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, DWORD PTR NVME_AQ_DEPTH[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	nvme_rdma_alloc_queue@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L26
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	lea	r13, 16[rbx]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	dev_to_node@PLT
	mov	DWORD PTR 64[rbx], eax
	mov	rax, QWORD PTR 24[rbx]
	mov	rdi, QWORD PTR [rax]
	call	nvme_rdma_get_max_fr_pages@PLT
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	edx, 4
	mov	rsi, r13
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 24[rbx]
	mov	rdi, QWORD PTR [rax]
	call	nvme_rdma_alloc_qe@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	test	ebp, ebp
	je	.L4
	lea	r14, 32[rbx]
	mov	esi, 1
	mov	rdi, r14
	call	nvme_rdma_alloc_tagset@PLT
	mov	QWORD PTR 40[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L27
	lea	r12, 72[rbx]
	mov	rdi, r12
	call	blk_mq_init_queue@PLT
	mov	QWORD PTR 48[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L28
	mov	rdi, r12
	call	blk_mq_init_queue@PLT
	mov	QWORD PTR 56[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L29
	xor	esi, esi
	mov	rdi, rbx
	call	nvme_rdma_start_queue@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L30
.L12:
	mov	rdi, QWORD PTR 56[rbx]
	call	blk_cleanup_queue@PLT
.L10:
	mov	rdi, QWORD PTR 48[rbx]
	call	blk_cleanup_queue@PLT
.L8:
	mov	rdi, QWORD PTR 40[rbx]
	call	blk_mq_free_tag_set@PLT
.L6:
	mov	rax, QWORD PTR 24[rbx]
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	edx, 4
	mov	rsi, r13
	mov	rdi, QWORD PTR [rax]
	call	nvme_rdma_free_qe@PLT
	mov	QWORD PTR 16[rbx], 0
.L3:
	mov	rdi, QWORD PTR 8[rbx]
	call	nvme_rdma_free_queue@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbx
	call	nvme_rdma_start_queue@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	lea	r14, 32[rbx]
	mov	rdi, r14
	call	nvme_enable_ctrl@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
	mov	rdi, QWORD PTR 8[rbx]
	call	nvme_rdma_stop_queue@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12d, DWORD PTR [rbx]
	mov	edi, DWORD PTR SZ_4K[rip]
	mov	DWORD PTR 32[rbx], r12d
	call	ilog2@PLT
	mov	rdi, QWORD PTR 56[rbx]
	lea	ecx, -9[rax]
	sal	r12d, cl
	mov	DWORD PTR 36[rbx], r12d
	call	blk_mq_unquiesce_queue@PLT
	mov	rdi, r14
	call	nvme_init_identify@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
.L11:
	endbr64
	mov	rdi, QWORD PTR 8[rbx]
	call	nvme_rdma_stop_queue@PLT
	test	ebp, ebp
	jne	.L12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, QWORD PTR 40[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, r14
	call	nvme_enable_ctrl@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
	mov	rdi, QWORD PTR 8[rbx]
	call	nvme_rdma_stop_queue@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, QWORD PTR 48[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, QWORD PTR 56[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	nvme_rdma_configure_admin_queue, .-nvme_rdma_configure_admin_queue
	.comm	SZ_4K,4,4
	.comm	NVME_AQ_DEPTH,4,4
	.comm	DMA_TO_DEVICE,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_rdma.c_nvme_rdma_configure_admin_queue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvme_rdma_configure_admin_queue, %function
nvme_rdma_configure_admin_queue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L31
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, [r2]
	mov	r6, r1
	mov	r1, #0
	mov	r5, r0
	bl	nvme_rdma_alloc_queue
	subs	r4, r0, #0
	beq	.L26
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	ldr	r3, [r5, #4]
	mov	r7, r5
	ldr	r3, [r3]
	ldr	r8, .L31+4
	ldr	r2, [r3]
	str	r3, [r5, #12]
	ldr	r0, [r2]
	bl	dev_to_node
	ldr	r3, [r5, #12]
	str	r0, [r5, #36]
	ldr	r0, [r3]
	bl	nvme_rdma_get_max_fr_pages
	ldr	r2, [r5, #12]
	str	r0, [r7], #8
	mov	r1, r7
	ldr	r0, [r2]
	ldr	r3, [r8]
	mov	r2, #4
	bl	nvme_rdma_alloc_qe
	subs	r4, r0, #0
	bne	.L3
	cmp	r6, #0
	beq	.L4
	add	r9, r5, #16
	mov	r1, #1
	mov	r0, r9
	bl	nvme_rdma_alloc_tagset
	str	r0, [r5, #24]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L27
	add	r10, r5, #40
	mov	r0, r10
	bl	blk_mq_init_queue
	str	r0, [r5, #28]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L28
	mov	r0, r10
	bl	blk_mq_init_queue
	str	r0, [r5, #32]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L29
	mov	r1, r4
	mov	r0, r5
	bl	nvme_rdma_start_queue
	subs	r4, r0, #0
	beq	.L30
.L12:
	ldr	r0, [r5, #32]
	bl	blk_cleanup_queue
.L10:
	ldr	r0, [r5, #28]
	bl	blk_cleanup_queue
.L8:
	ldr	r0, [r5, #24]
	bl	blk_mq_free_tag_set
.L6:
	ldr	r2, [r5, #12]
	ldr	r3, [r8]
	ldr	r0, [r2]
	mov	r1, r7
	mov	r2, #4
	bl	nvme_rdma_free_qe
	mov	r3, #0
	str	r3, [r5, #8]
.L3:
	ldr	r0, [r5, #4]
	bl	nvme_rdma_free_queue
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r1, r4
	mov	r0, r5
	bl	nvme_rdma_start_queue
	subs	r4, r0, #0
	bne	.L6
	add	r9, r5, #16
	mov	r0, r9
	bl	nvme_enable_ctrl
	subs	r4, r0, #0
	beq	.L15
	ldr	r0, [r5, #4]
	bl	nvme_rdma_stop_queue
	b	.L6
.L15:
	ldr	r3, .L31+8
	ldr	r4, [r5]
	ldr	r0, [r3]
	str	r4, [r5, #16]
	bl	ilog2
	sub	r0, r0, #9
	lsl	r4, r4, r0
	str	r4, [r5, #20]
	ldr	r0, [r5, #32]
	bl	blk_mq_unquiesce_queue
	mov	r0, r9
	bl	nvme_init_identify
	subs	r4, r0, #0
	beq	.L1
.L11:
	ldr	r0, [r5, #4]
	bl	nvme_rdma_stop_queue
	cmp	r6, #0
	bne	.L12
	b	.L6
.L27:
	ldr	r0, [r5, #24]
	bl	PTR_ERR
	mov	r4, r0
	b	.L6
.L30:
	mov	r0, r9
	bl	nvme_enable_ctrl
	subs	r4, r0, #0
	beq	.L15
	ldr	r0, [r5, #4]
	bl	nvme_rdma_stop_queue
	b	.L12
.L28:
	ldr	r0, [r5, #28]
	bl	PTR_ERR
	mov	r4, r0
	b	.L8
.L29:
	ldr	r0, [r5, #32]
	bl	PTR_ERR
	mov	r4, r0
	b	.L10
.L32:
	.align	2
.L31:
	.word	NVME_AQ_DEPTH
	.word	DMA_TO_DEVICE
	.word	SZ_4K
	.size	nvme_rdma_configure_admin_queue, .-nvme_rdma_configure_admin_queue
	.comm	SZ_4K,4,4
	.comm	NVME_AQ_DEPTH,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
