	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_channel_config_bw
_i40e_channel_config_bw:                ## @i40e_channel_config_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	12(%rsi), %eax
	movl	%eax, -40(%rbp)
	movq	_I40E_MAX_TRAFFIC_CLASS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	jmp	LBB0_2
LBB0_3:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movl	8(%rsi), %esi
	xorl	%r14d, %r14d
	leaq	-56(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_i40e_aq_config_vsi_tc_bw
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %edx
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.5:
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%r12), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_6
LBB0_7:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_MAX_TRAFFIC_CLASS,4,2     ## @I40E_MAX_TRAFFIC_CLASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Config VSI BW allocation per TC failed, aq_err: %d for new_vsi->seid %u\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_channel_config_bw
_i40e_channel_config_bw:                ; @i40e_channel_config_bw
	.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	w8, [x1, #12]
	str	w8, [sp, #24]
Lloh0:
	adrp	x21, _I40E_MAX_TRAFFIC_CLASS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I40E_MAX_TRAFFIC_CLASS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, #1
	b	LBB0_2
LBB0_3:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	ldr	w1, [x1, #8]
	add	x2, sp, #8
	mov	x3, #0
	bl	_i40e_aq_config_vsi_tc_bw
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	ldr	w2, [x8]
	ldr	w3, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x8, #0
	ldr	x9, [sp, #8]
	ldr	x10, [x19]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	str	w12, [x10, x11]
	add	x8, x8, #1
	ldrsw	x11, [x21]
	cmp	x8, x11
	b.lt	LBB0_7
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_MAX_TRAFFIC_CLASS,4,2     ; @I40E_MAX_TRAFFIC_CLASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Config VSI BW allocation per TC failed, aq_err: %d for new_vsi->seid %u\n"

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