	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ndo_set_vf_bw             ## -- Begin function i40e_ndo_set_vf_bw
	.p2align	4, 0x90
_i40e_ndo_set_vf_bw:                    ## @i40e_ndo_set_vf_bw
	.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, %r15d
	movl	%edx, %r13d
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	___I40E_VIRTCHNL_OP_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_i40e_validate_vf
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.4:
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r13d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movq	___I40E_VIRTCHNL_OP_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_clear_bit
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	16(%r12), %rax
	movq	24(%r12), %rdx
	movslq	%r14d, %r13
	shlq	$4, %r13
	movq	(%rdx,%r13), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_I40E_VF_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%r13), %rsi
	addq	$12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_i40e_set_bw_limit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, 8(%rax,%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_11:
	movq	8(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	___I40E_VIRTCHNL_OP_PENDING,4,2 ## @__I40E_VIRTCHNL_OP_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to configure VFs, other operation is pending.\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"Invalid min tx rate (%d) (greater than 0) specified for VF %d.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I40E_VF_STATE_INIT,4,2         ## @I40E_VF_STATE_INIT
L_.str.2:                               ## @.str.2
	.asciz	"VF %d still in reset. Try again.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ndo_set_vf_bw             ; -- Begin function i40e_ndo_set_vf_bw
	.p2align	2
_i40e_ndo_set_vf_bw:                    ; @i40e_ndo_set_vf_bw
	.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, x3
	mov	x22, x2
	mov	x20, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x24, ___I40E_VIRTCHNL_OP_PENDING@GOTPAGE
Lloh1:
	ldr	x24, [x24, ___I40E_VIRTCHNL_OP_PENDING@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [x19]
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh4:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_i40e_validate_vf
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.3:
	cbz	w22, LBB0_8
; %bb.4:
	ldr	x0, [x19, #8]
	str	x20, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	ldr	w0, [x24]
	ldr	w1, [x19]
	bl	_clear_bit
LBB0_7:
	mov	x0, x23
	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:
	ldp	x8, x25, [x19, #16]
	add	x1, x25, w20, sxtw #4
	ldr	x9, [x1], #12
	ldr	x22, [x8, x9, lsl #3]
Lloh11:
	adrp	x8, _I40E_VF_STATE_INIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40E_VF_STATE_INIT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	w0, LBB0_11
; %bb.9:
	ldr	w1, [x22]
	mov	x0, x22
	mov	x2, x21
	bl	_i40e_set_bw_limit
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.10:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x8, w20
	add	x8, x25, x8, lsl #4
	str	w21, [x8, #8]
	b	LBB0_6
LBB0_11:
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh16:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	___I40E_VIRTCHNL_OP_PENDING,4,2 ; @__I40E_VIRTCHNL_OP_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to configure VFs, other operation is pending.\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"Invalid min tx rate (%d) (greater than 0) specified for VF %d.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I40E_VF_STATE_INIT,4,2         ; @I40E_VF_STATE_INIT
l_.str.2:                               ; @.str.2
	.asciz	"VF %d still in reset. Try again.\n"

.subsections_via_symbols
