	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r12d
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movl	$0, -44(%rbp)
	movq	%rax, %rdi
	callq	_sriov_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpl	%r12d, (%rbx)
	jle	LBB0_4
## %bb.5:
	testl	%r13d, %r13d
	je	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.7:
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_be_cmd_link_status_query
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	cmpl	$0, -48(%rbp)
	je	LBB0_9
## %bb.12:
	movl	-44(%rbp), %edx
	cmpl	$100, %r14d
	jl	LBB0_14
## %bb.13:
	cmpl	%r14d, %edx
	jl	LBB0_14
## %bb.16:
	movl	%edx, %r13d
	movq	%rbx, %rdi
	callq	_skyhawk_chip
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movslq	%r13d, %rax
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$37, %rcx
	addl	%eax, %ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_19
## %bb.18:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	%ecx, %edx
	jmp	LBB0_15
LBB0_19:
	movl	-44(%rbp), %edx
	leal	1(%r12), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_be_cmd_config_qos
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.20:
	movq	8(%rbx), %rax
	movslq	%r12d, %rcx
	movl	%r14d, (%rax,%rcx,4)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_9:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
LBB0_15:
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %r13d
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %edi
	callq	_be_cmd_status
	jmp	LBB0_21
	.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 setting not allowed when link is down\n"

	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
L_.str.1:                               ## @.str.1
	.asciz	"TX-rate must be between 100 and %d Mbps\n"

L_.str.2:                               ## @.str.2
	.asciz	"TX-rate must be a multiple of %d Mbps\n"

L_.str.3:                               ## @.str.3
	.asciz	"TX-rate setting of %dMbps 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, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	bl	_netdev_priv
	mov	x22, x0
	ldr	x21, [x0, #16]
	str	wzr, [sp, #28]
	bl	_sriov_enabled
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, w20
	b.le	LBB0_3
; %bb.2:
	cbz	w23, LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EPERM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	cbz	w19, LBB0_15
; %bb.8:
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x22
	mov	w3, #0
	bl	_be_cmd_link_status_query
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.9:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_17
; %bb.10:
	ldr	w23, [sp, #28]
	cmp	w19, #100
	b.lt	LBB0_18
; %bb.11:
	cmp	w23, w19
	b.lt	LBB0_18
; %bb.12:
	mov	x0, x22
	bl	_skyhawk_chip
	cbz	x0, LBB0_15
; %bb.13:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w23, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	sdiv	w9, w19, w8
	msub	w9, w9, w8, w19
	cbz	w9, LBB0_15
; %bb.14:
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_15:
	ldr	w2, [sp, #28]
	add	w3, w20, #1
	mov	x0, x22
	mov	x1, x19
	bl	_be_cmd_config_qos
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.16:
	ldr	x8, [x22, #8]
	str	w19, [x8, w20, sxtw #2]
	b	LBB0_6
LBB0_17:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh8:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	str	x23, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_19:
	mov	x0, x21
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_21:
	stp	x19, x20, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	x0, x23
	bl	_be_cmd_status
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.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 setting not allowed when link is down\n"

	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
l_.str.1:                               ; @.str.1
	.asciz	"TX-rate must be between 100 and %d Mbps\n"

l_.str.2:                               ; @.str.2
	.asciz	"TX-rate must be a multiple of %d Mbps\n"

l_.str.3:                               ; @.str.3
	.asciz	"TX-rate setting of %dMbps on VF%d failed\n"

	.no_dead_strip	_be_set_vf_tx_rate
.subsections_via_symbols
