	.file	"extr_be_main.c_be_set_vf_tx_rate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"tx rate must be between 100 and 10000 Mbps\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"tx rate %d on VF %d failed\n"
	.text
	.p2align 4
	.type	be_set_vf_tx_rate, @function
be_set_vf_tx_rate:
.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
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movsx	r12, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	sriov_enabled@PLT
	mov	r14d, DWORD PTR EPERM[rip]
	neg	r14d
	test	eax, eax
	je	.L1
	cmp	DWORD PTR [rbx], r12d
	jle	.L10
	lea	eax, -100[r13]
	cmp	eax, 9900
	ja	.L12
	mov	rdi, rbx
	call	lancer_chip@PLT
	movsx	rsi, r13d
	mov	edx, r13d
	lea	r8d, 1[r12]
	imul	rsi, rsi, 1717986919
	sar	edx, 31
	mov	rdi, rbx
	sar	rsi, 34
	sub	esi, edx
	mov	edx, r8d
	test	rax, rax
	jne	.L13
	call	be_cmd_set_qos@PLT
	mov	r14d, eax
.L7:
	test	r14d, r14d
	jne	.L14
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR [rax+r12*4], r13d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbx
	.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
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
.L10:
	mov	r14d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r14d
	pop	r13
	.cfi_def_cfa_offset 16
	mov	eax, r14d
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	be_cmd_set_profile_config@PLT
	mov	r14d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR 16[rbx]
	mov	ecx, r12d
	mov	edx, r13d
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	be_set_vf_tx_rate, .-be_set_vf_tx_rate
	.comm	EPERM,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_be_main.c_be_set_vf_tx_rate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tx rate must be between 100 and 10000 Mbps\012\000"
	.align	2
.LC1:
	.ascii	"tx rate %d on VF %d failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	be_set_vf_tx_rate, %function
be_set_vf_tx_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r6, r2
	bl	netdev_priv
	mov	r4, r0
	bl	sriov_enabled
	cmp	r0, #0
	beq	.L12
	ldr	r3, [r4]
	cmp	r3, r7
	ble	.L10
	ldr	r3, .L16
	sub	r2, r6, #100
	cmp	r2, r3
	bhi	.L13
	mov	r0, r4
	bl	lancer_chip
	ldr	r1, .L16+4
	cmp	r0, #0
	smull	r3, r1, r6, r1
	asr	r3, r6, #31
	mov	r0, r4
	rsb	r1, r3, r1, asr #2
	add	r2, r7, #1
	bne	.L14
	bl	be_cmd_set_qos
	mov	r5, r0
.L7:
	cmp	r5, #0
	bne	.L15
	ldr	r3, [r4, #4]
	mov	r0, r5
	str	r6, [r3, r7, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r0, [r4, #8]
	ldr	r1, .L16+8
	bl	dev_err
.L10:
	ldr	r3, .L16+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L16+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	bl	be_cmd_set_profile_config
	mov	r5, r0
	b	.L7
.L15:
	mov	r3, r7
	mov	r2, r6
	ldr	r0, [r4, #8]
	ldr	r1, .L16+20
	bl	dev_err
	b	.L1
.L17:
	.align	2
.L16:
	.word	9900
	.word	1717986919
	.word	.LC0
	.word	EINVAL
	.word	EPERM
	.word	.LC1
	.size	be_set_vf_tx_rate, .-be_set_vf_tx_rate
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
