	.file	"extr_mvpp2_cls.c_mvpp22_port_rss_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mvpp22_port_rss_init
	.type	mvpp22_port_rss_init, @function
mvpp22_port_rss_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR MVPP22_N_RSS_TABLES[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	test	edx, edx
	jle	.L2
	mov	rdx, QWORD PTR [rdi]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR [rdx+rax*4], -1
	add	rax, 1
	cmp	DWORD PTR MVPP22_N_RSS_TABLES[rip], eax
	jg	.L3
.L2:
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	mvpp22_rss_context_create@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR 4[rsp]
	call	mvpp22_rss_table_get@PLT
	mov	r14, rax
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR MVPP22_RSS_TABLE_ENTRIES[rip]
	test	eax, eax
	jle	.L6
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [r14]
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, ebx
	lea	r12, [rax+rbx*4]
	add	rbx, 1
	call	ethtool_rxfh_indir_default@PLT
	mov	DWORD PTR [r12], eax
	cmp	DWORD PTR MVPP22_RSS_TABLE_ENTRIES[rip], ebx
	jg	.L7
.L6:
	xor	esi, esi
	mov	rdi, rbp
	call	mvpp22_rss_ctx@PLT
	mov	rsi, r14
	mov	rdi, rbp
	mov	edx, eax
	call	mvpp22_rss_fill_table@PLT
	mov	edx, DWORD PTR MVPP22_CLS_HEK_IP4_2T[rip]
	mov	esi, DWORD PTR MVPP22_FLOW_IP4[rip]
	mov	rdi, rbp
	call	mvpp2_port_rss_hash_opts_set@PLT
	mov	edx, DWORD PTR MVPP22_CLS_HEK_IP6_2T[rip]
	mov	esi, DWORD PTR MVPP22_FLOW_IP6[rip]
	mov	rdi, rbp
	call	mvpp2_port_rss_hash_opts_set@PLT
	mov	edx, DWORD PTR MVPP22_CLS_HEK_IP4_5T[rip]
	mov	esi, DWORD PTR MVPP22_FLOW_TCP4[rip]
	mov	rdi, rbp
	call	mvpp2_port_rss_hash_opts_set@PLT
	mov	edx, DWORD PTR MVPP22_CLS_HEK_IP6_5T[rip]
	mov	esi, DWORD PTR MVPP22_FLOW_TCP6[rip]
	mov	rdi, rbp
	call	mvpp2_port_rss_hash_opts_set@PLT
	mov	edx, DWORD PTR MVPP22_CLS_HEK_IP4_5T[rip]
	mov	esi, DWORD PTR MVPP22_FLOW_UDP4[rip]
	mov	rdi, rbp
	call	mvpp2_port_rss_hash_opts_set@PLT
	mov	edx, DWORD PTR MVPP22_CLS_HEK_IP6_5T[rip]
	mov	esi, DWORD PTR MVPP22_FLOW_UDP6[rip]
	mov	rdi, rbp
	call	mvpp2_port_rss_hash_opts_set@PLT
	jmp	.L1
.L15:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mvpp22_port_rss_init, .-mvpp22_port_rss_init
	.comm	MVPP22_RSS_TABLE_ENTRIES,4,4
	.comm	MVPP22_N_RSS_TABLES,4,4
	.comm	MVPP22_FLOW_UDP6,4,4
	.comm	MVPP22_FLOW_UDP4,4,4
	.comm	MVPP22_FLOW_TCP6,4,4
	.comm	MVPP22_FLOW_TCP4,4,4
	.comm	MVPP22_FLOW_IP6,4,4
	.comm	MVPP22_FLOW_IP4,4,4
	.comm	MVPP22_CLS_HEK_IP6_5T,4,4
	.comm	MVPP22_CLS_HEK_IP6_2T,4,4
	.comm	MVPP22_CLS_HEK_IP4_5T,4,4
	.comm	MVPP22_CLS_HEK_IP4_2T,4,4
	.comm	EINVAL,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_mvpp2_cls.c_mvpp22_port_rss_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mvpp22_port_rss_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	mvpp22_port_rss_init, %function
mvpp22_port_rss_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, .L16
	ldr	r1, .L16+4
	ldr	r2, [ip]
	sub	sp, sp, #12
	cmp	r2, r3
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	mov	r5, r0
	str	r3, [sp]
	ble	.L2
	mvn	r0, #0
	ldr	r2, [r5]
	sub	r2, r2, #4
.L3:
	str	r0, [r2, #4]!
	ldr	r1, [ip]
	add	r3, r3, #1
	cmp	r1, r3
	bgt	.L3
.L2:
	mov	r1, sp
	mov	r0, r5
	bl	mvpp22_rss_context_create
	subs	r9, r0, #0
	beq	.L13
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	ldr	r1, [sp]
	ldr	r0, [r5, #8]
	bl	mvpp22_rss_table_get
	subs	r7, r0, #0
	beq	.L15
	ldr	r3, [r5]
	ldr	r2, [sp]
	ldr	r8, .L16+8
	str	r2, [r3]
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L6
	mov	r4, r9
.L7:
	mov	r0, r4
	ldr	r1, [r5, #4]
	ldr	r6, [r7]
	bl	ethtool_rxfh_indir_default
	str	r0, [r6, r4, lsl #2]
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L7
.L6:
	mov	r1, #0
	mov	r0, r5
	bl	mvpp22_rss_ctx
	mov	r1, r7
	mov	r2, r0
	mov	r0, r5
	bl	mvpp22_rss_fill_table
	ldr	r3, .L16+12
	ldr	r2, .L16+16
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r2, [r2]
	bl	mvpp2_port_rss_hash_opts_set
	ldr	r3, .L16+20
	ldr	r2, .L16+24
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r2, [r2]
	bl	mvpp2_port_rss_hash_opts_set
	ldr	r6, .L16+28
	ldr	r3, .L16+32
	ldr	r2, [r6]
	ldr	r1, [r3]
	mov	r0, r5
	bl	mvpp2_port_rss_hash_opts_set
	ldr	r4, .L16+36
	ldr	r3, .L16+40
	ldr	r2, [r4]
	ldr	r1, [r3]
	mov	r0, r5
	bl	mvpp2_port_rss_hash_opts_set
	ldr	r3, .L16+44
	ldr	r2, [r6]
	ldr	r1, [r3]
	mov	r0, r5
	bl	mvpp2_port_rss_hash_opts_set
	ldr	r3, .L16+48
	mov	r0, r5
	ldr	r2, [r4]
	ldr	r1, [r3]
	bl	mvpp2_port_rss_hash_opts_set
	b	.L1
.L15:
	ldr	r3, .L16+52
	ldr	r0, [r3]
	rsb	r9, r0, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	MVPP22_N_RSS_TABLES
	.word	.LC0
	.word	MVPP22_RSS_TABLE_ENTRIES
	.word	MVPP22_FLOW_IP4
	.word	MVPP22_CLS_HEK_IP4_2T
	.word	MVPP22_FLOW_IP6
	.word	MVPP22_CLS_HEK_IP6_2T
	.word	MVPP22_CLS_HEK_IP4_5T
	.word	MVPP22_FLOW_TCP4
	.word	MVPP22_CLS_HEK_IP6_5T
	.word	MVPP22_FLOW_TCP6
	.word	MVPP22_FLOW_UDP4
	.word	MVPP22_FLOW_UDP6
	.word	EINVAL
	.size	mvpp22_port_rss_init, .-mvpp22_port_rss_init
	.comm	MVPP22_RSS_TABLE_ENTRIES,4,4
	.comm	MVPP22_N_RSS_TABLES,4,4
	.comm	MVPP22_FLOW_UDP6,4,4
	.comm	MVPP22_FLOW_UDP4,4,4
	.comm	MVPP22_FLOW_TCP6,4,4
	.comm	MVPP22_FLOW_TCP4,4,4
	.comm	MVPP22_FLOW_IP6,4,4
	.comm	MVPP22_FLOW_IP4,4,4
	.comm	MVPP22_CLS_HEK_IP6_5T,4,4
	.comm	MVPP22_CLS_HEK_IP6_2T,4,4
	.comm	MVPP22_CLS_HEK_IP4_5T,4,4
	.comm	MVPP22_CLS_HEK_IP4_2T,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
