	.file	"extr_qman_ccsr.c_qman_init_ccsr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qman_init_ccsr, @function
qman_init_ccsr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR fqd_sz[rip]
	mov	esi, DWORD PTR fqd_a[rip]
	mov	edi, DWORD PTR qm_memory_fqd[rip]
	call	qm_set_memory@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR pfdr_sz[rip]
	mov	esi, DWORD PTR pfdr_a[rip]
	mov	edi, DWORD PTR qm_memory_pfdr[rip]
	call	qm_set_memory@PLT
	test	eax, eax
	js	.L1
	jne	.L6
	mov	eax, DWORD PTR pfdr_sz[rip]
	mov	esi, 8
	mov	rdi, rbp
	test	eax, eax
	lea	edx, 63[rax]
	cmovns	edx, eax
	sar	edx, 6
	sub	edx, 8
	call	qm_init_pfdr@PLT
	test	eax, eax
	jne	.L1
.L6:
	mov	esi, 64
	mov	edi, 512
	call	qm_set_pfdr_threshold@PLT
	mov	edi, 128
	call	qm_set_sfdr_threshold@PLT
	mov	esi, DWORD PTR QM_EIRQ_PEBI[rip]
	mov	edi, DWORD PTR REG_ERR_ISR[rip]
	call	qm_ccsr_out@PLT
	xor	eax, eax
	call	qm_set_corenet_initiator@PLT
	xor	eax, eax
	call	qm_set_hid@PLT
	mov	ebx, DWORD PTR qm_wq_first[rip]
	cmp	ebx, DWORD PTR qm_wq_last[rip]
	jg	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	push	0
	.cfi_def_cfa_offset 40
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	push	0
	.cfi_def_cfa_offset 48
	xor	ecx, ecx
	xor	esi, esi
	mov	edi, ebx
	add	ebx, 1
	call	qm_set_wq_scheduling@PLT
	cmp	DWORD PTR qm_wq_last[rip], ebx
	pop	rax
	.cfi_def_cfa_offset 40
	pop	rdx
	.cfi_def_cfa_offset 32
	jge	.L4
.L5:
	mov	edi, DWORD PTR qm_dc_portal_fman0[rip]
	xor	edx, edx
	mov	esi, 1
	call	qm_set_dc@PLT
	mov	edi, DWORD PTR qm_dc_portal_fman1[rip]
	xor	edx, edx
	mov	esi, 1
	call	qm_set_dc@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qman_init_ccsr, .-qman_init_ccsr
	.comm	qm_wq_last,4,4
	.comm	qm_wq_first,4,4
	.comm	qm_memory_pfdr,4,4
	.comm	qm_memory_fqd,4,4
	.comm	qm_dc_portal_fman1,4,4
	.comm	qm_dc_portal_fman0,4,4
	.comm	pfdr_sz,4,4
	.comm	pfdr_a,4,4
	.comm	fqd_sz,4,4
	.comm	fqd_a,4,4
	.comm	REG_ERR_ISR,4,4
	.comm	QM_EIRQ_PEBI,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_ccsr.c_qman_init_ccsr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qman_init_ccsr, %function
qman_init_ccsr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L11
	mov	r4, r0
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r0]
	sub	sp, sp, #16
	bl	qm_set_memory
	cmp	r0, #0
	blt	.L1
	ldr	r3, .L11+12
	ldr	r5, .L11+16
	ldr	r1, .L11+20
	ldr	r2, [r5]
	ldr	r1, [r1]
	ldr	r0, [r3]
	bl	qm_set_memory
	cmp	r0, #0
	blt	.L1
	bne	.L6
	ldr	r2, [r5]
	mov	r0, r4
	cmp	r2, #0
	add	r3, r2, #63
	movlt	r2, r3
	asr	r2, r2, #6
	mov	r1, #8
	sub	r2, r2, #8
	bl	qm_init_pfdr
	cmp	r0, #0
	bne	.L1
.L6:
	mov	r1, #64
	mov	r0, #512
	bl	qm_set_pfdr_threshold
	mov	r0, #128
	bl	qm_set_sfdr_threshold
	ldr	r2, .L11+24
	ldr	r3, .L11+28
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	qm_ccsr_out
	ldr	r6, .L11+32
	bl	qm_set_corenet_initiator
	bl	qm_set_hid
	ldr	r2, .L11+36
	ldr	r3, [r6]
	ldr	r4, [r2]
	cmp	r4, r3
	bgt	.L5
	mov	r5, #0
.L4:
	mov	r3, #0
	mov	r0, r4
	mov	r2, r3
	mov	r1, r3
	str	r5, [sp, #12]
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	str	r5, [sp]
	bl	qm_set_wq_scheduling
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bge	.L4
.L5:
	ldr	r3, .L11+40
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [r3]
	bl	qm_set_dc
	ldr	r3, .L11+44
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [r3]
	bl	qm_set_dc
	mov	r0, #0
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	fqd_sz
	.word	fqd_a
	.word	qm_memory_fqd
	.word	qm_memory_pfdr
	.word	pfdr_sz
	.word	pfdr_a
	.word	QM_EIRQ_PEBI
	.word	REG_ERR_ISR
	.word	qm_wq_last
	.word	qm_wq_first
	.word	qm_dc_portal_fman0
	.word	qm_dc_portal_fman1
	.size	qman_init_ccsr, .-qman_init_ccsr
	.comm	qm_wq_last,4,4
	.comm	qm_wq_first,4,4
	.comm	qm_memory_pfdr,4,4
	.comm	qm_memory_fqd,4,4
	.comm	qm_dc_portal_fman1,4,4
	.comm	qm_dc_portal_fman0,4,4
	.comm	pfdr_sz,4,4
	.comm	pfdr_a,4,4
	.comm	fqd_sz,4,4
	.comm	fqd_a,4,4
	.comm	REG_ERR_ISR,4,4
	.comm	QM_EIRQ_PEBI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
