	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_add_veb
_i40e_add_veb:                          ## @i40e_add_veb
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	movq	_I40E_FLAG_VEB_STATS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r12), %eax
	setne	%dil
	leaq	4(%r12), %r13
	movl	12(%rbx), %ecx
	movl	16(%rbx), %esi
	movl	12(%r14), %edx
	leaq	4(%rbx), %r15
	movl	%edi, (%rsp)
	movq	$0, 8(%rsp)
	movq	%r13, %rdi
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_i40e_aq_add_veb
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %r15
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_i40e_stat_str
	movl	%eax, %ebx
	movl	4(%r12), %esi
	movq	%r13, %rdi
	callq	_i40e_aq_str
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movl	4(%rbx), %esi
	leaq	8(%rbx), %r8
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_i40e_aq_get_veb_parameters
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	8(%r12), %r15
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_i40e_stat_str
	movl	%eax, %ebx
	movl	4(%r12), %esi
	movq	%r13, %rdi
	callq	_i40e_aq_str
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_info
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_i40e_veb_get_bw_info
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	8(%r12), %rbx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_i40e_stat_str
	movl	%eax, %r14d
	movl	4(%r12), %esi
	movq	%r13, %rdi
	callq	_i40e_aq_str
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_info
	movl	(%r15), %esi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_i40e_aq_delete_element
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movl	4(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	(%rbx), %eax
	movl	%eax, 4(%r14)
	movq	_I40E_VSI_FLAG_VEB_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_FLAG_VEB_STATS_ENABLED,4,2 ## @I40E_FLAG_VEB_STATS_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't add VEB, err %s aq_err %s\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"couldn't get VEB statistics idx, err %s aq_err %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't get VEB bw info, err %s aq_err %s\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_I40E_VSI_FLAG_VEB_OWNER,4,2    ## @I40E_VSI_FLAG_VEB_OWNER
	.no_dead_strip	_i40e_add_veb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_add_veb
_i40e_add_veb:                          ; @i40e_add_veb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #24]
	mov	x19, x23
	ldr	w8, [x19], #4
Lloh0:
	adrp	x9, _I40E_FLAG_VEB_STATS_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_FLAG_VEB_STATS_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w6, ne
	ldr	w2, [x1, #12]
	ldp	w3, w1, [x0, #12]
	add	x20, x0, #4
	mov	x0, x19
	mov	w4, #0
	mov	x5, x20
	mov	x7, #0
	bl	_i40e_aq_add_veb
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
	ldr	x20, [x23, #8]
	mov	x0, x19
	bl	_i40e_stat_str
	mov	x21, x0
	ldr	w1, [x23, #4]
	mov	x0, x19
	bl	_i40e_aq_str
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w1, [x22, #4]
	add	x4, x22, #8
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_i40e_aq_get_veb_parameters
	cbz	w0, LBB0_7
; %bb.3:
	mov	x1, x0
	ldr	x20, [x23, #8]
	mov	x0, x19
	bl	_i40e_stat_str
	mov	x21, x0
	ldr	w1, [x23, #4]
	mov	x0, x19
	bl	_i40e_aq_str
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	mov	x2, x21
	bl	_dev_info
Lloh7:
	adrp	x8, _EPERM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x22
	bl	_i40e_veb_get_bw_info
	cbz	w0, LBB0_9
; %bb.8:
	mov	x1, x0
	ldr	x21, [x23, #8]
	mov	x0, x19
	bl	_i40e_stat_str
	mov	x22, x0
	ldr	w1, [x23, #4]
	mov	x0, x19
	bl	_i40e_aq_str
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_info
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, #0
	bl	_i40e_aq_delete_element
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	ldr	d0, [x22]
	stur	d0, [x21, #4]
Lloh13:
	adrp	x8, _I40E_VSI_FLAG_VEB_OWNER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40E_VSI_FLAG_VEB_OWNER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_FLAG_VEB_STATS_ENABLED,4,2 ; @I40E_FLAG_VEB_STATS_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't add VEB, err %s aq_err %s\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"couldn't get VEB statistics idx, err %s aq_err %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't get VEB bw info, err %s aq_err %s\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_I40E_VSI_FLAG_VEB_OWNER,4,2    ; @I40E_VSI_FLAG_VEB_OWNER
	.no_dead_strip	_i40e_add_veb
.subsections_via_symbols
