	.file	"extr_qman.c_qman_query_cgr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"QUERY_CGR failed: %s\n"
	.text
	.p2align 4
	.type	qman_query_cgr, @function
qman_query_cgr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	get_affine_portal@PLT
	lea	rbp, 8[rax]
	mov	rbx, rax
	mov	rdi, rbp
	call	qm_mc_start@PLT
	mov	edx, DWORD PTR [r12]
	mov	rdi, rbp
	mov	DWORD PTR [rax], edx
	mov	esi, DWORD PTR QM_MCC_VERB_QUERYCGR[rip]
	call	qm_mc_commit@PLT
	mov	rsi, rsp
	mov	rdi, rbp
	call	qm_mc_result_timeout@PLT
	test	eax, eax
	jne	.L2
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	neg	r12d
.L3:
	xor	eax, eax
	call	put_affine_portal@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	xor	edi, edi
	mov	eax, DWORD PTR [rax]
	and	eax, DWORD PTR QM_MCR_VERB_MASK[rip]
	cmp	eax, DWORD PTR QM_MCC_VERB_QUERYCGR[rip]
	sete	dil
	call	DPAA_ASSERT@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rdi, QWORD PTR [rax]
	cmp	rdi, QWORD PTR QM_MCR_RESULT_OK[rip]
	jne	.L4
	mov	eax, DWORD PTR [rax]
	xor	r12d, r12d
	mov	DWORD PTR 0[r13], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	call	mcr_result_str@PLT
	lea	rsi, .LC0[rip]
	mov	edx, eax
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	dev_err@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qman_query_cgr, .-qman_query_cgr
	.comm	QM_MCR_VERB_MASK,4,4
	.comm	QM_MCR_RESULT_OK,8,8
	.comm	QM_MCC_VERB_QUERYCGR,4,4
	.comm	ETIMEDOUT,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_qman.c_qman_query_cgr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"QUERY_CGR failed: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qman_query_cgr, %function
qman_query_cgr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L9
	sub	sp, sp, #12
	mov	r6, r0
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	get_affine_portal
	add	r5, r0, #4
	mov	r4, r0
	mov	r0, r5
	bl	qm_mc_start
	ldr	r3, [r6]
	ldr	r6, .L9+4
	str	r3, [r0]
	ldr	r1, [r6]
	mov	r0, r5
	bl	qm_mc_commit
	mov	r0, r5
	mov	r1, sp
	bl	qm_mc_result_timeout
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L9+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L3:
	bl	put_affine_portal
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, [sp]
	ldr	r2, .L9+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [r6]
	and	r3, r3, r2
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	DPAA_ASSERT
	ldr	r2, [sp]
	ldr	r3, .L9+16
	ldr	r0, [r2]
	ldr	r3, [r3]
	cmp	r0, r3
	moveq	r4, #0
	streq	r0, [r7]
	beq	.L3
	ldr	r3, [r4]
	ldr	r4, [r3]
	bl	mcr_result_str
	ldr	r1, .L9+20
	mov	r2, r0
	mov	r0, r4
	bl	dev_err
	ldr	r3, .L9+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L3
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	QM_MCC_VERB_QUERYCGR
	.word	ETIMEDOUT
	.word	QM_MCR_VERB_MASK
	.word	QM_MCR_RESULT_OK
	.word	.LC0
	.word	EIO
	.size	qman_query_cgr, .-qman_query_cgr
	.comm	QM_MCR_VERB_MASK,4,4
	.comm	QM_MCR_RESULT_OK,4,4
	.comm	QM_MCC_VERB_QUERYCGR,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
