	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_veb_release               ## -- Begin function i40e_veb_release
	.p2align	4, 0x90
_i40e_veb_release:                      ## @i40e_veb_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rdi
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.3:
	movq	32(%rdi), %r11
	cmpl	$1, %r8d
	jne	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
LBB0_11:
	testb	$1, %r8b
	je	LBB0_14
## %bb.12:
	movq	(%r11,%rdx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:
	movq	(%rdx), %rax
	xorl	%esi, %esi
	cmpq	(%r14), %rax
	sete	%sil
	cmoveq	%rdx, %r10
	addl	%esi, %ecx
LBB0_14:
	cmpl	$1, %ecx
	jne	LBB0_2
## %bb.15:
	movq	_I40E_VSI_FLAG_VEB_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%r10)
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.16:
	movq	%rcx, (%r10)
	cmpq	8(%rdi), %rcx
	jne	LBB0_17
## %bb.18:
	movq	_I40E_NO_VEB@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	movq	40(%rdi), %rdi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_5:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %r9
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r11,%rdx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	xorl	%esi, %esi
	cmpq	(%r14), %rax
	sete	%sil
	cmoveq	%rbx, %r10
	addl	%esi, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r11,%rdx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	xorl	%esi, %esi
	cmpq	(%r14), %rax
	sete	%sil
	cmoveq	%rbx, %r10
	addl	%esi, %ecx
	jmp	LBB0_10
LBB0_19:
	movq	16(%rdi), %rax
	movq	32(%rdi), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	(%rcx), %rax
	movq	%rax, (%r10)
	addq	$8, %rcx
	jmp	LBB0_20
LBB0_17:
	leaq	16(%r14), %rcx
LBB0_20:
	movl	(%rcx), %eax
	movl	%eax, 8(%r10)
	addq	$24, %rdi
	movq	(%r14), %rsi
	xorl	%edx, %edx
	callq	_i40e_aq_delete_element
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i40e_veb_clear                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't remove VEB %d with %d VSIs left\n"

	.comm	_I40E_VSI_FLAG_VEB_OWNER,4,2    ## @I40E_VSI_FLAG_VEB_OWNER
	.comm	_I40E_NO_VEB,4,2                ## @I40E_NO_VEB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_veb_release               ; -- Begin function i40e_veb_release
	.p2align	2
_i40e_veb_release:                      ; @i40e_veb_release
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w3, #0
	mov	x9, #0
	ldr	x11, [x8, #32]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cbz	x12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x12]
	ldr	x14, [x19]
	cmp	x13, x14
	csel	x9, x12, x9, eq
	cinc	w3, w3, eq
	b	LBB0_2
LBB0_5:
	cmp	w3, #1
	b.ne	LBB0_9
; %bb.6:
Lloh0:
	adrp	x10, _I40E_VSI_FLAG_VEB_OWNER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I40E_VSI_FLAG_VEB_OWNER@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	ldr	w11, [x9, #12]
	bic	w10, w11, w10
	str	w10, [x9, #12]
	ldr	x10, [x19, #8]
	cbz	x10, LBB0_10
; %bb.7:
	str	x10, [x9]
	ldr	x11, [x8, #8]
	add	x12, x19, #16
Lloh3:
	adrp	x13, _I40E_NO_VEB@GOTPAGE
Lloh4:
	ldr	x13, [x13, _I40E_NO_VEB@GOTPAGEOFF]
	cmp	x10, x11
	csel	x10, x13, x12, eq
	b	LBB0_11
LBB0_8:
	mov	w3, #0
LBB0_9:
	ldr	x0, [x8, #40]
	ldr	x2, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_info
LBB0_10:
	ldr	x10, [x8, #32]
	ldr	x11, [x8, #16]
	ldr	x10, [x10, x11, lsl #3]
	ldr	x11, [x10], #8
	str	x11, [x9]
LBB0_11:
	ldr	w10, [x10]
	str	w10, [x9, #8]
	add	x0, x8, #24
	ldr	x1, [x19]
	mov	x2, #0
	bl	_i40e_aq_delete_element
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i40e_veb_clear
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't remove VEB %d with %d VSIs left\n"

	.comm	_I40E_VSI_FLAG_VEB_OWNER,4,2    ; @I40E_VSI_FLAG_VEB_OWNER
	.comm	_I40E_NO_VEB,4,2                ; @I40E_NO_VEB
.subsections_via_symbols
