	.file	"extr_cn23xx_pf_device.c_cn23xx_enable_io_queues.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"clearing the reset reg failed or setting the quiet reg failed for qno: %u\n"
	.align 8
.LC1:
	.string	"clearing the reset failed for qno: %u\n"
	.text
	.p2align 4
	.type	cn23xx_enable_io_queues, @function
cn23xx_enable_io_queues:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdi]
	mov	r15, QWORD PTR 32[rdi]
	mov	QWORD PTR 8[rsp], rax
	add	rax, r15
	cmp	r15, rax
	jge	.L2
	mov	rbp, rdi
	xor	ebx, ebx
	mov	r13d, 1000
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r14d, DWORD PTR 12[rbp]
	mov	rdi, rbx
	call	BIT_ULL@PLT
	test	r14d, eax
	jne	.L44
	add	rbx, 1
	cmp	QWORD PTR 8[rsp], rbx
	je	.L45
.L10:
	mov	r14d, DWORD PTR 8[rbp]
	mov	rdi, rbx
	lea	r12, [r15+rbx]
	call	BIT_ULL@PLT
	test	r14d, eax
	je	.L3
	mov	rdi, r12
	call	CN23XX_SLI_IQ_PKT_CONTROL64@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	octeon_read_csr64@PLT
	mov	rdi, r12
	or	eax, DWORD PTR CN23XX_PKT_INPUT_CTL_IS_64B[rip]
	mov	r14d, eax
	call	CN23XX_SLI_IQ_PKT_CONTROL64@PLT
	mov	edx, r14d
	mov	rdi, rbp
	mov	esi, eax
	call	octeon_write_csr64@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rdi, r12
	call	CN23XX_SLI_IQ_PKT_CONTROL64@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	octeon_read_csr64@PLT
	mov	edx, DWORD PTR CN23XX_PKT_INPUT_CTL_RST[rip]
	test	edx, eax
	jne	.L42
.L5:
	mov	rdi, r12
	add	rbx, 1
	call	CN23XX_SLI_IQ_PKT_CONTROL64@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	octeon_read_csr64@PLT
	mov	rdi, r12
	or	eax, DWORD PTR CN23XX_PKT_INPUT_CTL_RING_ENB[rip]
	mov	r14d, eax
	call	CN23XX_SLI_IQ_PKT_CONTROL64@PLT
	mov	edx, r14d
	mov	rdi, rbp
	mov	esi, eax
	call	octeon_write_csr64@PLT
	cmp	QWORD PTR 8[rsp], rbx
	jne	.L10
.L45:
	xor	ebx, ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	add	rbx, 1
	cmp	QWORD PTR 8[rsp], rbx
	je	.L2
.L12:
	mov	r12d, DWORD PTR 16[rbp]
	mov	rdi, rbx
	lea	r13, [r15+rbx]
	call	BIT_ULL@PLT
	test	r12d, eax
	je	.L11
	mov	rdi, r13
	add	rbx, 1
	call	CN23XX_SLI_OQ_PKT_CONTROL@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	octeon_read_csr@PLT
	mov	rdi, r13
	or	rax, QWORD PTR CN23XX_PKT_OUTPUT_CTL_RING_ENB[rip]
	mov	r12, rax
	call	CN23XX_SLI_OQ_PKT_CONTROL@PLT
	mov	rdx, r12
	mov	rdi, rbp
	mov	esi, eax
	call	octeon_write_csr@PLT
	cmp	QWORD PTR 8[rsp], rbx
	jne	.L12
.L2:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	sub	r13, 1
	je	.L9
	mov	rdi, r12
	call	CN23XX_SLI_IQ_PKT_CONTROL64@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	octeon_read_csr64@PLT
	mov	edx, DWORD PTR CN23XX_PKT_INPUT_CTL_RST[rip]
	test	edx, eax
	je	.L6
.L42:
	test	DWORD PTR CN23XX_PKT_INPUT_CTL_QUIET[rip], eax
	je	.L46
.L6:
	test	r13, r13
	je	.L9
	not	edx
	mov	rdi, r12
	and	edx, eax
	mov	r14d, edx
	call	CN23XX_SLI_IQ_PKT_CONTROL64@PLT
	mov	edx, r14d
	mov	rdi, rbp
	mov	esi, eax
	call	octeon_write_csr64@PLT
	mov	rdi, r12
	call	CN23XX_SLI_IQ_PKT_CONTROL64@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	octeon_read_csr64@PLT
	test	DWORD PTR CN23XX_PKT_INPUT_CTL_RST[rip], eax
	je	.L5
	mov	rdi, QWORD PTR 24[rbp]
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, -1
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbp]
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, -1
	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
	.cfi_endproc
.LFE0:
	.size	cn23xx_enable_io_queues, .-cn23xx_enable_io_queues
	.comm	CN23XX_PKT_OUTPUT_CTL_RING_ENB,8,8
	.comm	CN23XX_PKT_INPUT_CTL_RST,4,4
	.comm	CN23XX_PKT_INPUT_CTL_RING_ENB,4,4
	.comm	CN23XX_PKT_INPUT_CTL_QUIET,4,4
	.comm	CN23XX_PKT_INPUT_CTL_IS_64B,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_cn23xx_pf_device.c_cn23xx_enable_io_queues.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"clearing the reset reg failed or setting the quiet "
	.ascii	"reg failed for qno: %u\012\000"
	.align	2
.LC1:
	.ascii	"clearing the reset failed for qno: %u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cn23xx_enable_io_queues, %function
cn23xx_enable_io_queues:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	ldr	r9, [r0, #20]
	sub	sp, sp, #12
	str	r3, [sp]
	add	r3, r3, r9
	cmp	r9, r3
	bge	.L2
	mov	r5, r0
	mov	r4, #0
	mov	r7, #1000
	ldr	r8, .L51
	ldr	fp, .L51+4
	b	.L10
.L3:
	mov	r0, r4
	ldr	r10, [r5, #8]
	bl	BIT_ULL
	tst	r10, r0
	bne	.L48
	ldr	r3, [sp]
	add	r4, r4, #1
	cmp	r3, r4
	beq	.L49
.L10:
	mov	r0, r4
	ldr	r6, [r5, #4]
	bl	BIT_ULL
	tst	r6, r0
	add	r6, r9, r4
	beq	.L3
	mov	r0, r6
	bl	CN23XX_SLI_IQ_PKT_CONTROL64
	mov	r1, r0
	mov	r0, r5
	bl	octeon_read_csr64
	mov	r10, r0
	ldr	r3, .L51+8
	mov	r0, r6
	ldr	r3, [r3]
	orr	r10, r10, r3
	bl	CN23XX_SLI_IQ_PKT_CONTROL64
	mov	r2, r10
	mov	r1, r0
	mov	r0, r5
	bl	octeon_write_csr64
	b	.L3
.L48:
	mov	r0, r6
	bl	CN23XX_SLI_IQ_PKT_CONTROL64
	mov	r1, r0
	mov	r0, r5
	bl	octeon_read_csr64
	ldr	r2, [r8]
	tst	r2, r0
	bne	.L46
.L5:
	mov	r0, r6
	bl	CN23XX_SLI_IQ_PKT_CONTROL64
	mov	r1, r0
	mov	r0, r5
	bl	octeon_read_csr64
	mov	r2, r0
	ldr	r3, .L51+12
	mov	r0, r6
	ldr	r3, [r3]
	add	r4, r4, #1
	orr	r6, r2, r3
	bl	CN23XX_SLI_IQ_PKT_CONTROL64
	mov	r2, r6
	mov	r1, r0
	mov	r0, r5
	bl	octeon_write_csr64
	ldr	r3, [sp]
	cmp	r3, r4
	bne	.L10
.L49:
	mov	r4, #0
	mov	r8, r3
	ldr	r7, .L51+16
	b	.L12
.L11:
	cmp	r8, r4
	beq	.L2
.L12:
	mov	r0, r4
	ldr	r6, [r5, #12]
	bl	BIT_ULL
	tst	r6, r0
	add	r6, r9, r4
	add	r4, r4, #1
	beq	.L11
	mov	r0, r6
	bl	CN23XX_SLI_OQ_PKT_CONTROL
	mov	r1, r0
	mov	r0, r5
	bl	octeon_read_csr
	mov	r2, r0
	ldr	r3, [r7]
	mov	r0, r6
	orr	r6, r2, r3
	bl	CN23XX_SLI_OQ_PKT_CONTROL
	mov	r2, r6
	mov	r1, r0
	mov	r0, r5
	bl	octeon_write_csr
	cmp	r8, r4
	bne	.L12
.L2:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L50:
	subs	r7, r7, #1
	beq	.L9
	mov	r0, r6
	bl	CN23XX_SLI_IQ_PKT_CONTROL64
	mov	r1, r0
	mov	r0, r5
	bl	octeon_read_csr64
	ldr	r2, [r8]
	tst	r2, r0
	beq	.L6
.L46:
	ldr	r3, [fp]
	tst	r0, r3
	beq	.L50
.L6:
	cmp	r7, #0
	beq	.L9
	bic	r2, r0, r2
	mov	r0, r6
	str	r2, [sp, #4]
	bl	CN23XX_SLI_IQ_PKT_CONTROL64
	ldr	r2, [sp, #4]
	mov	r1, r0
	mov	r0, r5
	bl	octeon_write_csr64
	mov	r0, r6
	bl	CN23XX_SLI_IQ_PKT_CONTROL64
	mov	r1, r0
	mov	r0, r5
	bl	octeon_read_csr64
	ldr	r3, [r8]
	tst	r0, r3
	beq	.L5
	mov	r2, r6
	ldr	r0, [r5, #16]
	ldr	r1, .L51+20
	bl	dev_err
	mvn	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r2, r6
	ldr	r0, [r5, #16]
	ldr	r1, .L51+24
	bl	dev_err
	mvn	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L52:
	.align	2
.L51:
	.word	CN23XX_PKT_INPUT_CTL_RST
	.word	CN23XX_PKT_INPUT_CTL_QUIET
	.word	CN23XX_PKT_INPUT_CTL_IS_64B
	.word	CN23XX_PKT_INPUT_CTL_RING_ENB
	.word	CN23XX_PKT_OUTPUT_CTL_RING_ENB
	.word	.LC1
	.word	.LC0
	.size	cn23xx_enable_io_queues, .-cn23xx_enable_io_queues
	.comm	CN23XX_PKT_OUTPUT_CTL_RING_ENB,4,4
	.comm	CN23XX_PKT_INPUT_CTL_RST,4,4
	.comm	CN23XX_PKT_INPUT_CTL_RING_ENB,4,4
	.comm	CN23XX_PKT_INPUT_CTL_QUIET,4,4
	.comm	CN23XX_PKT_INPUT_CTL_IS_64B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
