	.file	"extr_ena_com.c_ena_com_admin_init_aenq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"memory allocation failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"aenq handlers pointer is NULL\n"
	.text
	.p2align 4
	.type	ena_com_admin_init_aenq, @function
ena_com_admin_init_aenq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR ENA_ASYNC_QUEUE_DEPTH[rip]
	mov	DWORD PTR 8[rbx], edi
	call	ADMIN_AENQ_SIZE@PLT
	mov	edi, DWORD PTR 40[rbx]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	lea	rdx, 32[rbx]
	mov	esi, eax
	call	dma_alloc_coherent@PLT
	mov	DWORD PTR 36[rbx], eax
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 32[rbx]
	mov	DWORD PTR 16[rbx], 1
	mov	DWORD PTR 12[rbx], eax
	call	ENA_DMA_ADDR_TO_UINT32_LOW@PLT
	mov	edi, DWORD PTR 32[rbx]
	mov	r13d, eax
	call	ENA_DMA_ADDR_TO_UINT32_HIGH@PLT
	mov	rsi, QWORD PTR ENA_REGS_AENQ_BASE_LO_OFF[rip]
	mov	edi, r13d
	add	rsi, QWORD PTR [rbx]
	mov	r12d, eax
	call	writel@PLT
	mov	rsi, QWORD PTR ENA_REGS_AENQ_BASE_HI_OFF[rip]
	mov	edi, r12d
	add	rsi, QWORD PTR [rbx]
	call	writel@PLT
	mov	ecx, DWORD PTR ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT[rip]
	mov	eax, DWORD PTR 8[rbx]
	mov	edi, 4
	and	eax, DWORD PTR ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK[rip]
	mov	rsi, QWORD PTR ENA_REGS_AENQ_CAPS_OFF[rip]
	sal	rdi, cl
	and	edi, DWORD PTR ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK[rip]
	add	rsi, QWORD PTR [rbx]
	or	edi, eax
	call	writel@PLT
	xor	edi, edi
	test	rbp, rbp
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L8
	mov	QWORD PTR 24[rbx], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ena_com_admin_init_aenq, .-ena_com_admin_init_aenq
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENA_REGS_AENQ_CAPS_OFF,8,8
	.comm	ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT,4,4
	.comm	ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK,4,4
	.comm	ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK,4,4
	.comm	ENA_REGS_AENQ_BASE_LO_OFF,8,8
	.comm	ENA_REGS_AENQ_BASE_HI_OFF,8,8
	.comm	ENA_ASYNC_QUEUE_DEPTH,4,4
	.comm	EINVAL,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_ena_com.c_ena_com_admin_init_aenq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"memory allocation failed\012\000"
	.align	2
.LC1:
	.ascii	"aenq handlers pointer is NULL\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ena_com_admin_init_aenq, %function
ena_com_admin_init_aenq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L9
	mov	r5, r1
	ldr	r0, [r3]
	str	r0, [r4, #4]
	bl	ADMIN_AENQ_SIZE
	ldr	r3, .L9+4
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r0, [r4, #28]
	add	r2, r4, #20
	bl	dma_alloc_coherent
	cmp	r0, #0
	str	r0, [r4, #24]
	beq	.L7
	mov	r2, #1
	ldr	r3, [r4, #4]
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	ldr	r0, [r4, #20]
	bl	ENA_DMA_ADDR_TO_UINT32_LOW
	mov	r7, r0
	ldr	r0, [r4, #20]
	bl	ENA_DMA_ADDR_TO_UINT32_HIGH
	mov	r6, r0
	ldr	r3, .L9+8
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r7
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L9+12
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r6
	add	r1, r1, r3
	bl	writel
	mov	r1, #4
	ldr	r3, .L9+16
	ldr	r0, .L9+20
	ldr	ip, .L9+24
	ldr	r2, .L9+28
	ldr	r3, [r3]
	ldr	ip, [ip]
	ldr	r0, [r0]
	ldr	r2, [r2]
	and	r0, r0, r1, lsl r3
	ldm	r4, {r1, r3}
	and	r3, r3, ip
	orr	r0, r0, r3
	add	r1, r1, r2
	bl	writel
	clz	r0, r5
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L8
	str	r5, [r4, #16]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, .L9+32
	bl	pr_err
	ldr	r3, .L9+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, .L9+40
	bl	pr_err
	ldr	r3, .L9+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	ENA_ASYNC_QUEUE_DEPTH
	.word	GFP_KERNEL
	.word	ENA_REGS_AENQ_BASE_LO_OFF
	.word	ENA_REGS_AENQ_BASE_HI_OFF
	.word	ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT
	.word	ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK
	.word	ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK
	.word	ENA_REGS_AENQ_CAPS_OFF
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.word	EINVAL
	.size	ena_com_admin_init_aenq, .-ena_com_admin_init_aenq
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENA_REGS_AENQ_CAPS_OFF,4,4
	.comm	ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT,4,4
	.comm	ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK,4,4
	.comm	ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK,4,4
	.comm	ENA_REGS_AENQ_BASE_LO_OFF,4,4
	.comm	ENA_REGS_AENQ_BASE_HI_OFF,4,4
	.comm	ENA_ASYNC_QUEUE_DEPTH,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
