	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_find_vlvf_slot
_igb_find_vlvf_slot:                    ## @igb_find_vlvf_slot
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_E1000_ERR_NO_SPACE@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subq	(%rax), %r13
	xorl	%r15d, %r15d
	testl	%edx, %edx
	cmovneq	%r13, %r15
	movq	_E1000_VLVF_ARRAY_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	$2, %rbx
	jl	LBB0_7
## %bb.3:
	movl	%esi, %r14d
	incq	%rbx
	movq	_E1000_VLVF_VLANID_MASK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-2(%rbx), %r13
	movq	%r13, %rdi
	callq	_E1000_VLVF
	movl	%eax, %edi
	callq	_rd32
	andl	(%r12), %eax
	cmpl	%r14d, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	cmovneq	%r15, %r13
	testq	%r15, %r15
	cmoveq	%r13, %r15
	decq	%rbx
	cmpq	$2, %rbx
	ja	LBB0_4
## %bb.6:
	xorl	%r13d, %r13d
	movq	_E1000_ERR_NO_SPACE@GOTPCREL(%rip), %rax
	subq	(%rax), %r13
LBB0_7:
	testq	%r15, %r15
	cmovneq	%r15, %r13
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
LBB0_8:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_ERR_NO_SPACE,8,3         ## @E1000_ERR_NO_SPACE
	.comm	_E1000_VLVF_ARRAY_SIZE,8,3      ## @E1000_VLVF_ARRAY_SIZE
	.comm	_E1000_VLVF_VLANID_MASK,4,2     ## @E1000_VLVF_VLANID_MASK
	.no_dead_strip	_igb_find_vlvf_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_find_vlvf_slot
_igb_find_vlvf_slot:                    ; @igb_find_vlvf_slot
	.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
	cbz	w1, LBB0_7
; %bb.1:
Lloh0:
	adrp	x22, _E1000_ERR_NO_SPACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _E1000_ERR_NO_SPACE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	w2, #0
	csneg	x21, xzr, x8, eq
Lloh2:
	adrp	x9, _E1000_VLVF_ARRAY_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _E1000_VLVF_ARRAY_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, #2
	b.lt	LBB0_6
; %bb.2:
	mov	x19, x1
	add	x23, x9, #1
Lloh5:
	adrp	x24, _E1000_VLVF_VLANID_MASK@GOTPAGE
Lloh6:
	ldr	x24, [x24, _E1000_VLVF_VLANID_MASK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x20, x23, #2
	mov	x0, x20
	bl	_E1000_VLVF
	bl	_rd32
	ldr	w8, [x24]
	and	w8, w8, w0
	cmp	w8, w19
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #0
	ccmp	x21, #0, #0, eq
	csel	x21, x21, x20, ne
	sub	x23, x23, #1
	cmp	x23, #2
	b.hi	LBB0_3
; %bb.5:
	ldr	x8, [x22]
LBB0_6:
	neg	x8, x8
	cmp	x21, #0
	csel	x20, x8, x21, eq
	b	LBB0_8
LBB0_7:
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_ERR_NO_SPACE,8,3         ; @E1000_ERR_NO_SPACE
	.comm	_E1000_VLVF_ARRAY_SIZE,8,3      ; @E1000_VLVF_ARRAY_SIZE
	.comm	_E1000_VLVF_VLANID_MASK,4,2     ; @E1000_VLVF_VLANID_MASK
	.no_dead_strip	_igb_find_vlvf_slot
.subsections_via_symbols
