	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_set_vf_tx_rate
_be_set_vf_tx_rate:                     ## @be_set_vf_tx_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_sriov_enabled
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpl	%r15d, (%r12)
	jle	LBB0_5
## %bb.2:
	leal	-10001(%r14), %eax
	cmpl	$-9902, %eax                    ## imm = 0xD952
	ja	LBB0_9
## %bb.3:
	movq	16(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_lancer_chip
	movzwl	%r14w, %ecx
	imull	$52429, %ecx, %esi              ## imm = 0xCCCD
	shrl	$19, %esi
	leal	1(%r15), %edx
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	callq	_be_cmd_set_profile_config
	jmp	LBB0_12
LBB0_11:
	callq	_be_cmd_set_qos
LBB0_12:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	16(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_14:
	movq	8(%r12), %rax
	movslq	%r15d, %rcx
	movl	%r14d, (%rax,%rcx,4)
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx rate must be between 100 and 10000 Mbps\n"

L_.str.1:                               ## @.str.1
	.asciz	"tx rate %d on VF %d failed\n"

	.no_dead_strip	_be_set_vf_tx_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_set_vf_tx_rate
_be_set_vf_tx_rate:                     ; @be_set_vf_tx_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	mov	x21, x0
	bl	_sriov_enabled
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w20
	b.le	LBB0_4
; %bb.2:
	mov	w8, #-10001
	mov	w9, #-9902
	add	w8, w19, w8
	cmp	w8, w9
	b.hi	LBB0_8
; %bb.3:
	ldr	x0, [x21, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	mov	x0, x21
	bl	_lancer_chip
	and	w8, w19, #0xffff
	mov	w9, #52429
	mul	w8, w8, w9
	lsr	w1, w8, #19
	add	w2, w20, #1
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_be_cmd_set_profile_config
	mov	x22, x0
	cbz	w0, LBB0_12
LBB0_10:
	ldr	x0, [x21, #16]
	stp	x19, x20, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_11:
	mov	x0, x21
	bl	_be_cmd_set_qos
	mov	x22, x0
	cbnz	w0, LBB0_10
LBB0_12:
	ldr	x8, [x21, #8]
	str	w19, [x8, w20, sxtw #2]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx rate must be between 100 and 10000 Mbps\n"

l_.str.1:                               ; @.str.1
	.asciz	"tx rate %d on VF %d failed\n"

	.no_dead_strip	_be_set_vf_tx_rate
.subsections_via_symbols
