	.file	"extr_qed_dev.c_qed_get_cm_pq_idx_mcos.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pq with flag 0x%lx do not exist\n"
	.align 8
.LC1:
	.string	"tc %d must be smaller than %d\n"
	.text
	.p2align 4
	.globl	qed_get_cm_pq_idx_mcos
	.type	qed_get_cm_pq_idx_mcos, @function
qed_get_cm_pq_idx_mcos:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	qed_init_qm_get_num_tcs@PLT
	test	eax, eax
	je	.L7
	mov	ebx, eax
	cmp	eax, r12d
	jl	.L8
.L4:
	mov	esi, DWORD PTR PQ_FLAGS_MCOS[rip]
	mov	rdi, rbp
	call	qed_get_cm_pq_idx@PLT
	mov	r8, rax
	mov	eax, r12d
	cdq
	idiv	ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	movsx	rax, edx
	add	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ecx, eax
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	DP_ERR@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR PQ_FLAGS_MCOS[rip]
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	DP_ERR@PLT
	mov	rax, QWORD PTR 0[rbp]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qed_get_cm_pq_idx_mcos, .-qed_get_cm_pq_idx_mcos
	.comm	PQ_FLAGS_MCOS,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_qed_dev.c_qed_get_cm_pq_idx_mcos.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pq with flag 0x%lx do not exist\012\000"
	.align	2
.LC1:
	.ascii	"tc %d must be smaller than %d\012\000"
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	qed_get_cm_pq_idx_mcos
	.syntax unified
	.arm
	.fpu softvfp
	.type	qed_get_cm_pq_idx_mcos, %function
qed_get_cm_pq_idx_mcos:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r0
	bl	qed_init_qm_get_num_tcs
	subs	r4, r0, #0
	beq	.L7
	cmp	r4, r5
	blt	.L8
.L4:
	ldr	r3, .L9
	mov	r0, r6
	ldr	r1, [r3]
	bl	qed_get_cm_pq_idx
	mov	r3, r0
	mov	r1, r4
	mov	r0, r5
	mov	r4, r3
	bl	__aeabi_idivmod
	add	r0, r1, r4
	pop	{r4, r5, r6, pc}
.L8:
	mov	r3, r4
	mov	r2, r5
	mov	r0, r6
	ldr	r1, .L9+4
	bl	DP_ERR
	b	.L4
.L7:
	ldr	r3, .L9
	mov	r0, r6
	ldr	r1, .L9+8
	ldr	r2, [r3]
	bl	DP_ERR
	ldr	r0, [r6]
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	PQ_FLAGS_MCOS
	.word	.LC1
	.word	.LC0
	.size	qed_get_cm_pq_idx_mcos, .-qed_get_cm_pq_idx_mcos
	.comm	PQ_FLAGS_MCOS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
