	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_set_vf_tx_rate    ## -- Begin function qlcnic_sriov_set_vf_tx_rate
	.p2align	4, 0x90
_qlcnic_sriov_set_vf_tx_rate:           ## @qlcnic_sriov_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_qlcnic_sriov_pf_check
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpl	%r14d, (%rbx)
	jle	LBB0_4
## %bb.5:
	leal	-10000(%r15), %eax
	cmpl	$-9901, %eax                    ## imm = 0xD953
	ja	LBB0_7
## %bb.6:
	movq	_QLC_VF_MIN_TX_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_QLC_VF_MAX_TX_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rsi
	movq	8(%rax,%rcx), %rbx
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_QLC_BC_VF_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_qlcnic_sriov_get_vf_vport_info
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movzwl	%r15w, %eax
	shrl	$2, %eax
	imull	$5243, %eax, %ebx               ## imm = 0x147B
	shrl	$17, %ebx
	movl	%ebx, -56(%rbp)
	movq	_BIT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_qlcnic_sriov_pf_set_vport_info
	testq	%rax, %rax
	je	LBB0_12
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movzwl	%r15w, %eax
	shrl	$2, %eax
	imull	$5243, %eax, %ebx               ## imm = 0x147B
	shrl	$17, %ebx
LBB0_12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	callq	_netdev_info
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Tx rate, allowed range is [%d - %d]"

	.comm	_QLC_VF_MIN_TX_RATE,4,2         ## @QLC_VF_MIN_TX_RATE
	.comm	_QLC_VF_MAX_TX_RATE,4,2         ## @QLC_VF_MAX_TX_RATE
	.comm	_QLC_BC_VF_STATE,4,2            ## @QLC_BC_VF_STATE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_BIT_0,4,2                      ## @BIT_0
L_.str.1:                               ## @.str.1
	.asciz	"Setting Tx rate %d (Mbps), %d %% of PF bandwidth, for VF %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_set_vf_tx_rate    ; -- Begin function qlcnic_sriov_set_vf_tx_rate
	.p2align	2
_qlcnic_sriov_set_vf_tx_rate:           ; @qlcnic_sriov_set_vf_tx_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x23, [x8]
	bl	_qlcnic_sriov_pf_check
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x23]
	cmp	w8, w20
	b.le	LBB0_4
; %bb.2:
	mov	w8, #-10000
	mov	w9, #-9901
	add	w8, w21, w8
	cmp	w8, w9
	b.hi	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _QLC_VF_MIN_TX_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_VF_MIN_TX_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _QLC_VF_MAX_TX_RATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_VF_MAX_TX_RATE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	x8, [x23, #8]
	add	x1, x8, w20, sxtw #4
	ldr	x25, [x1, #8]
	ldr	w23, [x25, #4]
Lloh12:
	adrp	x8, _QLC_BC_VF_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QLC_BC_VF_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.9:
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x23
	bl	_qlcnic_sriov_get_vf_vport_info
	cbnz	x0, LBB0_11
; %bb.10:
	ubfx	w8, w21, #2, #14
	mov	w9, #5243
	mul	w8, w8, w9
Lloh15:
	adrp	x9, _BIT_0@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BIT_0@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	lsr	w24, w8, #17
	stp	w24, w9, [sp, #8]
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x23
	bl	_qlcnic_sriov_pf_set_vport_info
	cbz	x0, LBB0_13
LBB0_11:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
	ubfx	w8, w21, #2, #14
	mov	w9, #5243
	mul	w8, w8, w9
	lsr	w24, w8, #17
LBB0_13:
	str	w24, [x25]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x24
	mov	x4, x20
	bl	_netdev_info
	mov	w0, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Tx rate, allowed range is [%d - %d]"

	.comm	_QLC_VF_MIN_TX_RATE,4,2         ; @QLC_VF_MIN_TX_RATE
	.comm	_QLC_VF_MAX_TX_RATE,4,2         ; @QLC_VF_MAX_TX_RATE
	.comm	_QLC_BC_VF_STATE,4,2            ; @QLC_BC_VF_STATE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_BIT_0,4,2                      ; @BIT_0
l_.str.1:                               ; @.str.1
	.asciz	"Setting Tx rate %d (Mbps), %d %% of PF bandwidth, for VF %d\n"

.subsections_via_symbols
