	.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	$40, %rsp
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_pf_check
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	cmpl	%r12d, (%r15)
	jle	LBB0_18
## %bb.2:
	movq	8(%r15), %rsi
	movslq	%r12d, %rax
	shlq	$4, %rax
	movq	8(%rsi,%rax), %r15
	movl	8(%r15), %edi
	testl	%r13d, %r13d
	movq	_QLC_VF_MIN_TX_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmovel	%edx, %r13d
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.3:
	movl	%r14d, %ecx
	cmpl	$9999, %r14d                    ## imm = 0x270F
	jg	LBB0_15
## %bb.4:
	cmpl	%ecx, %r13d
	jg	LBB0_15
## %bb.5:
	testl	%r13d, %r13d
	jne	LBB0_9
	jmp	LBB0_11
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_8:
	movl	$10000, %ecx                    ## imm = 0x2710
	testl	%r13d, %r13d
	je	LBB0_11
LBB0_9:
	cmpl	%ecx, %r13d
	jg	LBB0_16
## %bb.10:
	cmpl	%edx, %r13d
	jl	LBB0_16
LBB0_11:
	movl	%edi, %r14d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	_QLC_BC_VF_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addq	%rax, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %r12d
	movl	%r14d, %edx
	callq	_qlcnic_sriov_get_vf_vport_info
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movl	%r15d, %r14d
	movslq	%r15d, %rax
	imulq	$1374389535, %rax, %r15         ## imm = 0x51EB851F
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$37, %r15
	addl	%eax, %r15d
	movl	%r15d, -64(%rbp)
	movslq	%r13d, %rax
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$37, %rcx
	addl	%eax, %ecx
	movl	%ecx, -60(%rbp)
	movq	_BIT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movq	%rcx, %rbx
	callq	_qlcnic_sriov_pf_set_vport_info
	movq	%r15, %rcx
	movl	%r14d, %edx
	testq	%rax, %rax
	je	LBB0_22
LBB0_14:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_15:
	movq	_QLC_VF_MAX_TX_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_17:
	callq	_netdev_err
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_19:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	%r15d, %edx
	movslq	%r15d, %rax
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$37, %rcx
	addl	%eax, %ecx
	movslq	%r13d, %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
LBB0_22:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%ecx, (%r15)
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_netdev_info
	movl	%ebx, 4(%r15)
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_netdev_info
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QLC_VF_MIN_TX_RATE,4,2         ## @QLC_VF_MIN_TX_RATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid max Tx rate, allowed range is [%d - %d]"

	.comm	_QLC_VF_MAX_TX_RATE,4,2         ## @QLC_VF_MAX_TX_RATE
L_.str.1:                               ## @.str.1
	.asciz	"Invalid min Tx rate, allowed range is [%d - %d]"

	.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.2:                               ## @.str.2
	.asciz	"Setting Max Tx rate %d (Mbps), %d %% of PF bandwidth, for VF %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Setting Min 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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x24, [x8]
	bl	_qlcnic_sriov_pf_check
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w8, [x24]
	cmp	w8, w20
	b.le	LBB0_16
; %bb.2:
	ldr	x8, [x24, #8]
	add	x9, x8, w20, sxtw #4
	ldr	x27, [x9, #8]
	ldr	w24, [x27, #8]
Lloh0:
	adrp	x9, _QLC_VF_MIN_TX_RATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLC_VF_MIN_TX_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	cmp	w22, #0
	csel	w22, w2, w22, eq
	cbz	w21, LBB0_7
; %bb.3:
	mov	w9, #9999
	cmp	w21, w9
	b.gt	LBB0_14
; %bb.4:
	cmp	w22, w21
	b.gt	LBB0_14
; %bb.5:
	cbnz	w22, LBB0_8
	b	LBB0_10
LBB0_6:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_17
LBB0_7:
	mov	w21, #10000
	cbz	w22, LBB0_10
LBB0_8:
	cmp	w22, w21
	ccmp	w22, w2, #8, le
	b.ge	LBB0_10
; %bb.9:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	b	LBB0_15
LBB0_10:
	sxtw	x9, w20
Lloh7:
	adrp	x10, _QLC_BC_VF_STATE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _QLC_BC_VF_STATE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x10]
	add	x1, x8, x9, lsl #4
	bl	_test_bit
	cbz	x0, LBB0_19
; %bb.11:
	mov	x1, sp
	mov	x0, x23
	mov	x2, x24
	bl	_qlcnic_sriov_get_vf_vport_info
	cbnz	x0, LBB0_13
; %bb.12:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x9, w21, w8
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w25, w9, w10
	smull	x8, w22, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w26, w8, w9
	stp	w25, w26, [sp]
Lloh10:
	adrp	x8, _BIT_0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BIT_0@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x1, sp
	mov	x0, x23
	mov	x2, x24
	bl	_qlcnic_sriov_pf_set_vport_info
	cbz	x0, LBB0_20
LBB0_13:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
Lloh15:
	adrp	x8, _QLC_VF_MAX_TX_RATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLC_VF_MAX_TX_RATE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
LBB0_15:
	bl	_netdev_err
LBB0_16:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x9, w21, w8
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w25, w9, w10
	smull	x8, w22, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w26, w8, w9
LBB0_20:
	str	w25, [x27]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x25
	mov	x4, x20
	bl	_netdev_info
	str	w26, [x27, #4]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x26
	mov	x4, x20
	bl	_netdev_info
	mov	w0, #0
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QLC_VF_MIN_TX_RATE,4,2         ; @QLC_VF_MIN_TX_RATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid max Tx rate, allowed range is [%d - %d]"

	.comm	_QLC_VF_MAX_TX_RATE,4,2         ; @QLC_VF_MAX_TX_RATE
l_.str.1:                               ; @.str.1
	.asciz	"Invalid min Tx rate, allowed range is [%d - %d]"

	.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.2:                               ; @.str.2
	.asciz	"Setting Max Tx rate %d (Mbps), %d %% of PF bandwidth, for VF %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Setting Min Tx rate %d (Mbps), %d %% of PF bandwidth, for VF %d\n"

.subsections_via_symbols
