	.file	"extr_ecore_init_fw_funcs.c_ecore_qm_pf_rt_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ecore_qm_pf_rt_init
	.type	ecore_qm_pf_rt_init, @function
ecore_qm_pf_rt_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 136[rsp]
	mov	edi, DWORD PTR 80[rsp]
	mov	QWORD PTR 8[rsp], rsi
	add	edi, DWORD PTR 96[rsp]
	mov	DWORD PTR 4[rsp], r9d
	mov	rbx, QWORD PTR 176[rsp]
	call	QM_PQ_MEM_4KB@PLT
	mov	r9d, DWORD PTR 4[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	imul	eax, DWORD PTR QM_OTHER_PQS_PER_PF[rip]
	test	r12, r12
	je	.L2
	mov	r8, QWORD PTR NUM_OF_TCS[rip]
	xor	edi, edi
	lea	r11, 0[0+r8*4]
	.p2align 4,,10
	.p2align 3
.L3:
	test	r8, r8
	je	.L6
	mov	rdx, QWORD PTR [rbx+rdi*8]
	lea	r10, [r11+rdx]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, DWORD PTR QM_INVALID_PQ_ID[rip]
	add	rdx, 4
	mov	DWORD PTR -4[rdx], ecx
	cmp	r10, rdx
	jne	.L4
.L6:
	add	rdi, 1
	cmp	r12, rdi
	jne	.L3
.L2:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r8, r15
	mov	rcx, r14
	mov	rdx, r13
	push	rbx
	.cfi_def_cfa_offset 96
	mov	rdi, rbp
	push	QWORD PTR 184[rsp]
	.cfi_def_cfa_offset 104
	push	rax
	.cfi_def_cfa_offset 112
	push	QWORD PTR 160[rsp]
	.cfi_def_cfa_offset 120
	push	QWORD PTR 160[rsp]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 160[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 160[rsp]
	.cfi_def_cfa_offset 144
	mov	eax, DWORD PTR 152[rsp]
	push	rax
	.cfi_def_cfa_offset 152
	mov	eax, DWORD PTR 152[rsp]
	push	rax
	.cfi_def_cfa_offset 160
	call	ecore_tx_pq_map_rt_init@PLT
	add	rsp, 80
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR 144[rsp], 0
	je	.L10
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rdx, r14
	mov	r8, r15
	mov	rdi, rbp
	push	QWORD PTR 176[rsp]
	.cfi_def_cfa_offset 96
	mov	rsi, QWORD PTR 136[rsp]
	mov	rax, QWORD PTR 128[rsp]
	mov	rcx, QWORD PTR 160[rsp]
	lea	r9, [rax+rsi]
	mov	rsi, r13
	call	ecore_pf_wfq_rt_init@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L8
.L10:
	mov	edx, DWORD PTR 152[rsp]
	mov	rsi, r14
	mov	rdi, rbp
	call	ecore_pf_rl_rt_init@PLT
	test	rax, rax
	jne	.L8
	mov	rdx, rbx
	mov	rsi, r12
	mov	rdi, rbp
	call	ecore_vp_wfq_rt_init@PLT
	test	rax, rax
	jne	.L8
	mov	ecx, DWORD PTR 160[rsp]
	mov	r8, rbx
	mov	rdx, r12
	mov	rdi, rbp
	mov	rsi, QWORD PTR 128[rsp]
	call	ecore_vport_rl_rt_init@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	neg	eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ecore_qm_pf_rt_init, .-ecore_qm_pf_rt_init
	.comm	QM_OTHER_PQS_PER_PF,4,4
	.comm	QM_INVALID_PQ_ID,4,4
	.comm	NUM_OF_TCS,8,8
	.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_ecore_init_fw_funcs.c_ecore_qm_pf_rt_init.c"
	.text
	.align	2
	.global	ecore_qm_pf_rt_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	ecore_qm_pf_rt_init, %function
ecore_qm_pf_rt_init:
	@ args = 60, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #60
	ldr	ip, [sp, #112]
	mov	r6, r0
	ldr	r0, [sp, #104]
	mov	r7, r3
	add	r0, r0, ip
	ldr	r4, [sp, #132]
	mov	r10, r1
	mov	r8, r2
	ldr	r9, [sp, #128]
	ldr	r5, [sp, #152]
	bl	QM_PQ_MEM_4KB
	ldr	r3, .L23
	cmp	r4, #0
	ldr	fp, [r3]
	mul	fp, r0, fp
	beq	.L2
	mov	r2, #0
	ldr	r3, .L23+4
	ldr	r1, [r3]
	ldr	r3, .L23+8
	lsl	r0, r1, #2
	sub	r0, r0, #4
.L3:
	cmp	r1, #0
	beq	.L6
	ldr	lr, [r5, r2, lsl #2]
	str	r2, [sp, #52]
	sub	ip, lr, #4
	add	lr, lr, r0
.L4:
	ldr	r2, [r3]
	str	r2, [ip, #4]!
	cmp	ip, lr
	bne	.L4
	ldr	r2, [sp, #52]
.L6:
	add	r2, r2, #1
	cmp	r4, r2
	bne	.L3
.L2:
	ldr	r3, [sp, #148]
	mov	r1, r10
	str	r3, [sp, #36]
	ldr	r3, [sp, #124]
	mov	r2, r8
	str	r3, [sp, #24]
	ldr	r3, [sp, #120]
	mov	r0, r6
	str	r3, [sp, #20]
	ldr	r3, [sp, #116]
	str	r5, [sp, #40]
	str	r3, [sp, #16]
	ldr	r3, [sp, #108]
	str	fp, [sp, #32]
	str	r3, [sp, #12]
	ldr	r3, [sp, #104]
	str	r9, [sp, #28]
	str	r3, [sp, #8]
	ldr	r3, [sp, #100]
	str	r3, [sp, #4]
	ldr	r3, [sp, #96]
	str	r3, [sp]
	mov	r3, r7
	bl	ecore_tx_pq_map_rt_init
	ldr	r3, [sp, #136]
	cmp	r3, #0
	beq	.L10
	ldr	r2, [sp, #124]
	ldr	r3, [sp, #120]
	mov	r1, r8
	add	r3, r3, r2
	str	r3, [sp, #4]
	ldr	r3, [sp, #148]
	mov	r2, r7
	str	r3, [sp, #8]
	ldr	r3, [sp, #96]
	mov	r0, r6
	str	r3, [sp]
	ldr	r3, [sp, #136]
	bl	ecore_pf_wfq_rt_init
	cmp	r0, #0
	bne	.L8
.L10:
	mov	r1, r7
	mov	r0, r6
	ldr	r2, [sp, #140]
	bl	ecore_pf_rl_rt_init
	cmp	r0, #0
	bne	.L8
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	bl	ecore_vp_wfq_rt_init
	cmp	r0, #0
	bne	.L8
	mov	r2, r4
	mov	r1, r9
	mov	r0, r6
	ldr	r3, [sp, #144]
	str	r5, [sp]
	bl	ecore_vport_rl_rt_init
	subs	r0, r0, #0
	movne	r0, #1
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mvn	r0, #0
	b	.L1
.L24:
	.align	2
.L23:
	.word	QM_OTHER_PQS_PER_PF
	.word	NUM_OF_TCS
	.word	QM_INVALID_PQ_ID
	.size	ecore_qm_pf_rt_init, .-ecore_qm_pf_rt_init
	.comm	QM_OTHER_PQS_PER_PF,4,4
	.comm	QM_INVALID_PQ_ID,4,4
	.comm	NUM_OF_TCS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
