	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_veb_get_bw_info
_i40e_veb_get_bw_info:                  ## @i40e_veb_get_bw_info
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	48(%rdi), %r15
	movl	44(%rdi), %esi
	leaq	-88(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_i40e_aq_query_switch_comp_bw_config
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %r12
	jmp	LBB0_2
LBB0_3:
	movl	44(%r12), %esi
	xorl	%r14d, %r14d
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_i40e_aq_query_switch_comp_ets_config
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %r12
	movl	%eax, %r14d
LBB0_2:
	movq	8(%r15), %r13
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_i40e_stat_str
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r15, %rdi
	callq	_i40e_aq_str
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_info
LBB0_9:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-48(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, (%r12)
	movl	-52(%rbp), %eax
	movl	%eax, 40(%r12)
	movl	-64(%rbp), %eax
	movl	%eax, 36(%r12)
	movl	-56(%rbp), %eax
	movl	%eax, 32(%r12)
	movq	-72(%rbp), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	-72(%rbp), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movq	_I40E_MAX_TRAFFIC_CLASS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_9
## %bb.6:
	movl	%eax, %r15d
	shll	$16, %r15d
	orl	%ebx, %r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax
	movl	(%rax,%rbx), %eax
	movq	%rcx, %r14
	movq	24(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	-88(%rbp), %rax
	movl	(%rax,%rbx), %edi
	callq	_le16_to_cpu
	movq	8(%r12), %rdx
	movl	%r15d, %esi
	movl	%ebx, %ecx
	sarl	%cl, %esi
	movq	%r14, %rcx
	movl	%eax, (%rdx,%rbx)
	andl	$7, %esi
	movq	16(%r12), %rax
	movl	%esi, (%rax,%rbx)
	incq	%r13
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_7
## %bb.8:
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query veb bw config failed, err %s aq_err %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"query veb bw ets config failed, err %s aq_err %s\n"

	.comm	_I40E_MAX_TRAFFIC_CLASS,4,2     ## @I40E_MAX_TRAFFIC_CLASS
	.no_dead_strip	_i40e_veb_get_bw_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_veb_get_bw_info
_i40e_veb_get_bw_info:                  ; @i40e_veb_get_bw_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	ldr	x20, [x0, #48]
	ldr	w1, [x0, #44]
	mov	x2, sp
	mov	x0, x20
	mov	x3, #0
	bl	_i40e_aq_query_switch_comp_bw_config
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w1, [x19, #44]
	add	x2, sp, #32
	mov	x0, x20
	mov	x3, #0
	bl	_i40e_aq_query_switch_comp_ets_config
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh2:
	adrp	x19, l_.str.1@PAGE
Lloh3:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_4:
	ldr	x22, [x20, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_i40e_stat_str
	mov	x23, x0
	ldr	w1, [x20]
	mov	x0, x20
	bl	_i40e_aq_str
	mov	x3, x0
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	bl	_dev_info
LBB0_5:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
LBB0_6:
	ldr	w0, [sp, #40]
	bl	_le16_to_cpu
	str	w0, [x19]
	ldp	w9, w10, [sp, #32]
	ldr	w8, [sp, #24]
	stp	w8, w10, [x19, #36]
	str	w9, [x19, #32]
	ldr	x8, [sp, #16]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	x8, [sp, #16]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
Lloh4:
	adrp	x21, _I40E_MAX_TRAFFIC_CLASS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _I40E_MAX_TRAFFIC_CLASS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
	mov	x23, #0
	orr	w20, w20, w0, lsl #16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	w8, [x8, x22]
	ldr	x9, [x19, #24]
	str	w8, [x9, x22]
	ldr	x8, [sp]
	ldr	w0, [x8, x22]
	bl	_le16_to_cpu
	ldr	x8, [x19, #8]
	str	w0, [x8, x22]
	asr	w8, w20, w22
	and	w8, w8, #0x7
	ldr	x9, [x19, #16]
	str	w8, [x9, x22]
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_8
LBB0_9:
	mov	w21, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query veb bw config failed, err %s aq_err %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"query veb bw ets config failed, err %s aq_err %s\n"

	.comm	_I40E_MAX_TRAFFIC_CLASS,4,2     ; @I40E_MAX_TRAFFIC_CLASS
	.no_dead_strip	_i40e_veb_get_bw_info
.subsections_via_symbols
