	.file	"extr_i40e_main.c_i40e_setup_tc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Configuring TC not supported in MFP mode\n"
	.align 8
.LC1:
	.string	"DCB is not enabled for adapter\n"
	.align 8
.LC2:
	.string	"TC count greater than enabled on link for adapter\n"
	.align 8
.LC3:
	.string	"Full offload of TC Mqprio options is not supported when DCB is enabled\n"
	.align 8
.LC4:
	.string	"Failed configuring TC for VSI seid=%d\n"
	.align 8
.LC5:
	.string	"Setup channel (id:%u) utilizing num_queues %d\n"
	.align 8
.LC6:
	.string	"Set tx rate of %llu Mbps (count of 50Mbps %llu) for vsi->seid %u\n"
	.align 8
.LC7:
	.string	"Failed configuring queue channels\n"
	.text
	.p2align 4
	.type	i40e_setup_tc, @function
i40e_setup_tc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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
	mov	r12, rdi
	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
	call	netdev_priv@PLT
	mov	r14d, DWORD PTR EINVAL[rip]
	mov	ecx, DWORD PTR [r15]
	mov	rbp, QWORD PTR [rax]
	mov	ebx, DWORD PTR 4[r15]
	mov	DWORD PTR 4[rsp], ecx
	neg	r14d
	mov	eax, DWORD PTR 0[rbp]
	mov	r13, QWORD PTR 8[rbp]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR 8[r15]
	mov	DWORD PTR 8[rsp], eax
	test	eax, eax
	je	.L40
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR I40E_FLAG_MFP_ENABLED[rip], eax
	jne	.L41
	mov	edx, DWORD PTR 4[rsp]
	cmp	edx, 128
	je	.L6
	cmp	edx, 129
	je	.L7
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L7:
	.cfi_restore_state
	test	DWORD PTR I40E_FLAG_DCB_ENABLED[rip], eax
	jne	.L42
	test	DWORD PTR I40E_FLAG_MSIX_ENABLED[rip], eax
	je	.L1
	mov	rsi, r15
	mov	rdi, rbp
	call	i40e_validate_mqprio_qopt@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L1
	mov	edx, 12
	lea	rdi, 16[rbp]
	mov	rsi, r15
	call	memcpy@PLT
	mov	edx, DWORD PTR I40E_FLAG_DCB_ENABLED[rip]
	mov	eax, DWORD PTR 0[r13]
	or	eax, DWORD PTR I40E_FLAG_TC_MQPRIO[rip]
	not	edx
	and	eax, edx
	mov	DWORD PTR 0[r13], eax
	test	ebx, ebx
	jg	.L12
	mov	rdi, rbp
	call	i40e_quiesce_vsi@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, r14d
	mov	rdi, rbp
	call	i40e_vsi_config_tc@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L43
	mov	rcx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 32[rbp]
	lea	rsi, .LC5[rip]
	mov	edx, DWORD PTR 4[rbp]
	mov	rdi, QWORD PTR 8[rcx]
	mov	ecx, DWORD PTR [rax]
	call	dev_info@PLT
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR I40E_FLAG_TC_MQPRIO[rip], eax
	je	.L19
	mov	rax, QWORD PTR 16[rbp]
	mov	r13, QWORD PTR [rax]
	test	r13, r13
	je	.L20
	mov	esi, DWORD PTR I40E_BW_MBPS_DIVISOR[rip]
	mov	rdi, r13
	call	do_div@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	rdx, r13
	mov	rdi, rbp
	call	i40e_set_bw_limit@PLT
	test	eax, eax
	jne	.L23
	mov	esi, DWORD PTR I40E_BW_CREDIT_DIVISOR[rip]
	mov	rdi, r13
	call	do_div@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	r8d, DWORD PTR 4[rbp]
	mov	rcx, r13
	mov	rdx, r13
	lea	rsi, .LC6[rip]
	mov	rdi, QWORD PTR 8[rax]
	call	dev_dbg@PLT
.L20:
	mov	rdi, rbp
	call	i40e_configure_queue_channels@PLT
	mov	ebx, eax
	test	eax, eax
	je	.L19
	mov	eax, DWORD PTR 12[rsp]
	lea	rsi, .LC7[rip]
	mov	rdi, r12
	mov	r14d, ebx
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
	call	netdev_info@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR I40E_FLAG_TC_MQPRIO[rip]
	not	edx
	and	eax, edx
	mov	DWORD PTR 0[r13], eax
	test	DWORD PTR I40E_FLAG_DCB_ENABLED[rip], eax
	je	.L44
	mov	rdi, r13
	call	i40e_pf_get_num_tc@PLT
	cmp	eax, ebx
	jge	.L3
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	xor	eax, eax
	call	netdev_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	eax, DWORD PTR I40E_FLAG_TC_MQPRIO[rip]
	lea	rdi, 16[rbp]
	mov	edx, 12
	mov	rsi, r15
	not	eax
	and	DWORD PTR 0[r13], eax
	call	memcpy@PLT
.L3:
	xor	r14d, r14d
	test	ebx, ebx
	jle	.L13
.L12:
	xor	r15d, r15d
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, r15d
	add	r15d, 1
	call	BIT@PLT
	or	r14d, eax
	cmp	ebx, r15d
	jg	.L11
.L13:
	cmp	DWORD PTR 24[rbp], r14d
	jne	.L24
	cmp	DWORD PTR 4[rsp], 129
	jne	.L22
.L24:
	mov	rdi, rbp
	call	i40e_quiesce_vsi@PLT
	mov	eax, DWORD PTR 8[rsp]
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR I40E_FLAG_TC_MQPRIO[rip], eax
	jne	.L15
	mov	rdi, rbp
	call	i40e_remove_queue_channels@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L22:
	xor	r14d, r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L43:
	mov	edx, DWORD PTR 4[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	xor	eax, eax
	call	netdev_info@PLT
.L17:
	mov	rdi, rbp
	call	i40e_vsi_set_default_tc_config@PLT
.L19:
	mov	rdi, rbp
	call	i40e_unquiesce_vsi@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L44:
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	call	netdev_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	xor	eax, eax
	call	netdev_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	xor	eax, eax
	call	netdev_info@PLT
	jmp	.L1
.L23:
	mov	r14d, eax
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	i40e_setup_tc, .-i40e_setup_tc
	.comm	I40E_FLAG_TC_MQPRIO,4,4
	.comm	I40E_FLAG_MSIX_ENABLED,4,4
	.comm	I40E_FLAG_MFP_ENABLED,4,4
	.comm	I40E_FLAG_DCB_ENABLED,4,4
	.comm	I40E_BW_MBPS_DIVISOR,4,4
	.comm	I40E_BW_CREDIT_DIVISOR,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_i40e_main.c_i40e_setup_tc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Configuring TC not supported in MFP mode\012\000"
	.align	2
.LC1:
	.ascii	"DCB is not enabled for adapter\012\000"
	.align	2
.LC2:
	.ascii	"TC count greater than enabled on link for adapter\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"Full offload of TC Mqprio options is not supported "
	.ascii	"when DCB is enabled\012\000"
	.align	2
.LC4:
	.ascii	"Failed configuring TC for VSI seid=%d\012\000"
	.align	2
.LC5:
	.ascii	"Setup channel (id:%u) utilizing num_queues %d\012\000"
	.align	2
.LC6:
	.ascii	"Set tx rate of %llu Mbps (count of 50Mbps %llu) for"
	.ascii	" vsi->seid %u\012\000"
	.align	2
.LC7:
	.ascii	"Failed configuring queue channels\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i40e_setup_tc, %function
i40e_setup_tc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r7, r1
	str	r0, [sp, #8]
	bl	netdev_priv
	ldr	r3, .L40
	ldr	r5, [r0]
	ldr	r10, [r7, #8]
	ldr	r4, [r3]
	ldr	r3, [r5]
	cmp	r10, #0
	ldr	r8, [r5, #8]
	ldr	r6, [r7, #4]
	ldr	r9, [r7]
	str	r3, [sp, #12]
	beq	.L35
	ldr	r3, .L40+4
	ldr	r2, [r8]
	ldr	r3, [r3]
	rsb	r4, r4, #0
	tst	r2, r3
	bne	.L36
	cmp	r9, #128
	beq	.L6
	cmp	r9, #129
	beq	.L7
.L1:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, .L40+8
	ldr	r0, [r3]
	tst	r2, r0
	bne	.L37
	ldr	r0, .L40+12
	ldr	r0, [r0]
	tst	r2, r0
	beq	.L1
	mov	r1, r7
	mov	r0, r5
	bl	i40e_validate_mqprio_qopt
	subs	r4, r0, #0
	bne	.L1
	mov	r2, #12
	mov	r1, r7
	add	r0, r5, r2
	ldr	fp, .L40+16
	bl	memcpy
	ldr	r3, .L40+8
	ldr	r0, [fp]
	ldr	r2, [r8]
	ldr	r1, [r3]
	orr	r3, r2, r0
	bic	r3, r3, r1
	cmp	r6, #0
	str	r3, [r8]
	bgt	.L12
	mov	r0, r5
	bl	i40e_quiesce_vsi
.L14:
	mov	r1, r4
	mov	r0, r5
	bl	i40e_vsi_config_tc
	subs	r4, r0, #0
	bne	.L38
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #20]
	ldr	r0, [r2, #4]
	ldr	r3, [r3]
	ldr	r2, [r5, #4]
	ldr	r1, .L40+20
	bl	dev_info
	ldr	r2, [r8]
	ldr	r3, [fp]
	tst	r2, r3
	beq	.L18
	ldr	r3, [r5, #12]
	ldr	r6, [r3]
	cmp	r6, #0
	beq	.L19
	ldr	r3, .L40+24
	mov	r0, r6
	ldr	r1, [r3]
	bl	do_div
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r5, #4]
	bl	i40e_set_bw_limit
	cmp	r0, #0
	movne	r4, r0
	bne	.L16
	ldr	r3, .L40+28
	mov	r0, r6
	ldr	r1, [r3]
	bl	do_div
	ldmib	r5, {r2, r3}
	ldr	r1, .L40+32
	ldr	r0, [r3, #4]
	str	r2, [sp]
	mov	r3, r6
	mov	r2, r6
	bl	dev_dbg
.L19:
	mov	r0, r5
	bl	i40e_configure_queue_channels
	subs	r3, r0, #0
	beq	.L18
	ldr	r2, [sp, #12]
	ldr	r0, [sp, #8]
	ldr	r1, .L40+36
	str	r2, [r5]
	mov	r4, r3
	bl	netdev_info
	b	.L16
.L6:
	ldr	fp, .L40+16
	ldr	r1, .L40+8
	ldr	r3, [fp]
	ldr	r1, [r1]
	bic	r2, r2, r3
	tst	r2, r1
	str	r2, [r8]
	beq	.L39
	mov	r0, r8
	bl	i40e_pf_get_num_tc
	cmp	r0, r6
	bge	.L3
	ldr	r0, [sp, #8]
	ldr	r1, .L40+40
	bl	netdev_info
	b	.L1
.L35:
	ldr	fp, .L40+16
	ldr	r3, [r8]
	ldr	r2, [fp]
	mov	r1, r7
	bic	r3, r3, r2
	mov	r2, #12
	str	r3, [r8]
	add	r0, r5, r2
	bl	memcpy
.L3:
	cmp	r6, #0
	movle	r4, #0
	ble	.L13
.L12:
	mov	r7, #0
	mov	r4, r7
.L11:
	mov	r0, r7
	bl	BIT
	add	r7, r7, #1
	cmp	r6, r7
	orr	r4, r4, r0
	bgt	.L11
.L13:
	ldr	r3, [r5, #16]
	cmp	r9, #129
	sub	r3, r3, r4
	clz	r3, r3
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	movne	r4, #0
	bne	.L1
	mov	r0, r5
	bl	i40e_quiesce_vsi
	cmp	r10, #0
	bne	.L14
	ldr	r2, [r8]
	ldr	r3, [fp]
	tst	r2, r3
	bne	.L14
	mov	r0, r5
	bl	i40e_remove_queue_channels
	b	.L14
.L38:
	ldr	r0, [sp, #8]
	ldr	r2, [r5, #4]
	ldr	r1, .L40+44
	bl	netdev_info
.L16:
	mov	r0, r5
	bl	i40e_vsi_set_default_tc_config
.L18:
	mov	r0, r5
	bl	i40e_unquiesce_vsi
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	ldr	r0, [sp, #8]
	ldr	r1, .L40+48
	bl	netdev_info
	b	.L1
.L36:
	ldr	r0, [sp, #8]
	ldr	r1, .L40+52
	bl	netdev_info
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L37:
	ldr	r0, [sp, #8]
	ldr	r1, .L40+56
	bl	netdev_info
	b	.L1
.L41:
	.align	2
.L40:
	.word	EINVAL
	.word	I40E_FLAG_MFP_ENABLED
	.word	I40E_FLAG_DCB_ENABLED
	.word	I40E_FLAG_MSIX_ENABLED
	.word	I40E_FLAG_TC_MQPRIO
	.word	.LC5
	.word	I40E_BW_MBPS_DIVISOR
	.word	I40E_BW_CREDIT_DIVISOR
	.word	.LC6
	.word	.LC7
	.word	.LC2
	.word	.LC4
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.size	i40e_setup_tc, .-i40e_setup_tc
	.comm	I40E_FLAG_TC_MQPRIO,4,4
	.comm	I40E_FLAG_MSIX_ENABLED,4,4
	.comm	I40E_FLAG_MFP_ENABLED,4,4
	.comm	I40E_FLAG_DCB_ENABLED,4,4
	.comm	I40E_BW_MBPS_DIVISOR,4,4
	.comm	I40E_BW_CREDIT_DIVISOR,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
