	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_vsi_configure_bw_alloc
_i40e_vsi_configure_bw_alloc:           ## @i40e_vsi_configure_bw_alloc
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rbx
	movl	(%rbx), %eax
	movq	_I40E_FLAG_TC_MQPRIO@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %r12
	cmpl	$0, 12(%rdi)
	jne	LBB0_5
## %bb.2:
	movq	_I40E_FLAG_DCB_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_5:
	movq	%rsi, -40(%rbp)
	leaq	4(%rbx), %rdi
	movl	8(%r12), %esi
	xorl	%r14d, %r14d
	leaq	-56(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_i40e_aq_config_vsi_tc_bw
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movq	8(%rbx), %rdi
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_6:
	movq	_I40E_MAX_TRAFFIC_CLASS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.7:
	movq	-56(%rbp), %rcx
	movq	(%r12), %rdx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_8
	jmp	LBB0_9
LBB0_3:
	movl	8(%r12), %esi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_i40e_set_bw_limit
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	movl	8(%r12), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movl	%r15d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_FLAG_TC_MQPRIO,4,2        ## @I40E_FLAG_TC_MQPRIO
	.comm	_I40E_FLAG_DCB_ENABLED,4,2      ## @I40E_FLAG_DCB_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to reset tx rate for vsi->seid %u\n"

	.comm	_I40E_MAX_TRAFFIC_CLASS,4,2     ## @I40E_MAX_TRAFFIC_CLASS
L_.str.1:                               ## @.str.1
	.asciz	"AQ command Config VSI BW allocation per TC failed = %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_i40e_vsi_configure_bw_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_vsi_configure_bw_alloc
_i40e_vsi_configure_bw_alloc:           ; @i40e_vsi_configure_bw_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x21, [x0, #16]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _I40E_FLAG_TC_MQPRIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_FLAG_TC_MQPRIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	ldr	w9, [x0, #12]
	cbnz	w9, LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, _I40E_FLAG_DCB_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40E_FLAG_DCB_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_4:
	str	x1, [sp, #24]
	add	x0, x21, #4
	ldr	w1, [x19, #8]
	add	x2, sp, #8
	mov	x3, #0
	bl	_i40e_aq_config_vsi_tc_bw
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x0, [x21, #8]
	ldr	w2, [x21, #4]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh11:
	adrp	x8, _I40E_MAX_TRAFFIC_CLASS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40E_MAX_TRAFFIC_CLASS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_1
; %bb.8:
	mov	x9, #0
	ldr	x10, [sp, #8]
	ldr	x11, [x19]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_9
	b	LBB0_1
LBB0_10:
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_i40e_set_bw_limit
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.11:
	ldr	x0, [x21, #8]
	ldr	w2, [x19, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_FLAG_TC_MQPRIO,4,2        ; @I40E_FLAG_TC_MQPRIO
	.comm	_I40E_FLAG_DCB_ENABLED,4,2      ; @I40E_FLAG_DCB_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to reset tx rate for vsi->seid %u\n"

	.comm	_I40E_MAX_TRAFFIC_CLASS,4,2     ; @I40E_MAX_TRAFFIC_CLASS
l_.str.1:                               ; @.str.1
	.asciz	"AQ command Config VSI BW allocation per TC failed = %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_i40e_vsi_configure_bw_alloc
.subsections_via_symbols
