	.file	"extr_nvme-core.c_adapter_alloc_sq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adapter_alloc_sq, @function
adapter_alloc_sq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	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, rdx
	mov	edx, 40
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	r13d, DWORD PTR NVME_QUEUE_PHYS_CONTIG[rip]
	or	r13d, DWORD PTR NVME_SQ_PRIO_MEDIUM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	mov	rdi, r14
	call	memset@PLT
	mov	eax, DWORD PTR nvme_admin_create_sq[rip]
	mov	edi, DWORD PTR 4[rbx]
	mov	DWORD PTR 36[rsp], eax
	call	cpu_to_le64@PLT
	mov	edi, ebp
	mov	DWORD PTR 32[rsp], eax
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR 24[rsp], rax
	sub	edi, 1
	call	cpu_to_le16@PLT
	mov	edi, r13d
	mov	QWORD PTR 16[rsp], rax
	call	cpu_to_le16@PLT
	mov	edi, ebp
	mov	QWORD PTR 8[rsp], rax
	call	cpu_to_le16@PLT
	xor	edx, edx
	mov	rsi, r14
	mov	rdi, r12
	mov	QWORD PTR [rsp], rax
	call	nvme_submit_admin_cmd@PLT
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	adapter_alloc_sq, .-adapter_alloc_sq
	.comm	nvme_admin_create_sq,4,4
	.comm	NVME_SQ_PRIO_MEDIUM,4,4
	.comm	NVME_QUEUE_PHYS_CONTIG,4,4
	.comm	EIO,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_nvme-core.c_adapter_alloc_sq.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adapter_alloc_sq, %function
adapter_alloc_sq:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r4, #0
	mov	r7, r0
	ldr	r2, .L10
	ldr	r0, .L10+4
	ldr	r3, .L10+8
	ldr	r2, [r2]
	mov	r5, r1
	ldr	r8, [r0]
	ldr	r1, .L10+12
	ldr	r3, [r3]
	sub	sp, sp, #32
	ldr	r0, [r6, #4]
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	orr	r8, r8, r2
	str	r3, [sp, #24]
	str	r4, [sp, #4]
	str	r4, [sp, #8]
	str	r4, [sp, #12]
	str	r4, [sp, #16]
	str	r4, [sp, #20]
	bl	cpu_to_le64
	mov	r3, r0
	mov	r0, r5
	str	r3, [sp, #20]
	bl	cpu_to_le16
	ldr	r3, [r6]
	str	r0, [sp, #16]
	sub	r0, r3, #1
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #12]
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, r5
	str	r3, [sp, #8]
	bl	cpu_to_le16
	mov	r3, r0
	mov	r2, r4
	mov	r0, r7
	add	r1, sp, #4
	str	r3, [sp, #4]
	bl	nvme_submit_admin_cmd
	cmp	r0, #0
	ldrne	r3, .L10+16
	ldrne	r0, [r3]
	ldr	r3, .L10+12
	rsbne	r0, r0, #0
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	NVME_SQ_PRIO_MEDIUM
	.word	NVME_QUEUE_PHYS_CONTIG
	.word	nvme_admin_create_sq
	.word	.LC0
	.word	EIO
	.size	adapter_alloc_sq, .-adapter_alloc_sq
	.comm	nvme_admin_create_sq,4,4
	.comm	NVME_SQ_PRIO_MEDIUM,4,4
	.comm	NVME_QUEUE_PHYS_CONTIG,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
