	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_update_vlan_pf
_fm10k_update_vlan_pf:                  ## @fm10k_update_vlan_pf
	.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
	movq	_FM10K_VLAN_TABLE_VSI_MAX@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jl	LBB0_1
## %bb.2:
	movl	%esi, %r13d
	movl	%esi, %ebx
	sarl	$16, %ebx
	movq	_FM10K_VLAN_TABLE_VID_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jge	LBB0_1
## %bb.3:
	shll	$17, %r13d
	sarl	$17, %r13d
	cmpl	%eax, %r13d
	jge	LBB0_1
## %bb.4:
	movq	%rdi, %r15
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	31(%r13), %r12d
	testw	%r13w, %r13w
	cmovnsl	%r13d, %r12d
	movswl	%r12w, %esi
	sarl	$5, %esi
	movq	%rdx, %rdi
	callq	_FM10K_VLAN_TABLE
	movl	%eax, %r14d
	xorl	%ecx, %ecx
	movq	_FM10K_VLAN_TABLE_VID_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_13
## %bb.5:
	andl	$-32, %r12d
	subl	%r12d, %r13d
	movswl	%r13w, %r13d
	negl	-44(%rbp)                       ## 4-byte Folded Spill
	movl	$0, %r12d
	sbbl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_fm10k_read_reg
	movl	%eax, %edx
	xorl	%r12d, %edx
	movl	%r13d, %ecx
	shrl	%cl, %edx
	shll	%cl, %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.6:
	xorl	%eax, %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_fm10k_write_reg
LBB0_7:
	addl	%r13d, %ebx
	addl	$-32, %ebx
	movq	_FM10K_VLAN_TABLE_VID_MAX@GOTPCREL(%rip), %r13
	cmpl	(%r13), %ebx
	jge	LBB0_12
## %bb.8:
	incl	%r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	addl	$-32, %ebx
	incl	%r14d
	cmpl	(%r13), %ebx
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_fm10k_read_reg
	cmpl	%r12d, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_fm10k_write_reg
	jmp	LBB0_11
LBB0_1:
	movq	_FM10K_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_13:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ecx, %ecx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_VLAN_TABLE_VSI_MAX,8,3   ## @FM10K_VLAN_TABLE_VSI_MAX
	.comm	_FM10K_ERR_PARAM,4,2            ## @FM10K_ERR_PARAM
	.comm	_FM10K_VLAN_TABLE_VID_MAX,4,2   ## @FM10K_VLAN_TABLE_VID_MAX
	.no_dead_strip	_fm10k_update_vlan_pf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_update_vlan_pf
_fm10k_update_vlan_pf:                  ; @fm10k_update_vlan_pf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _FM10K_VLAN_TABLE_VSI_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_VLAN_TABLE_VSI_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.lt	LBB0_2
; %bb.1:
	asr	w24, w1, #16
	sbfx	w8, w1, #0, #15
Lloh3:
	adrp	x23, _FM10K_VLAN_TABLE_VID_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FM10K_VLAN_TABLE_VID_MAX@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w24, w9
	ccmp	w8, w9, #0, lt
	b.lt	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _FM10K_ERR_PARAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FM10K_ERR_PARAM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_3:
	mov	x20, x3
	mov	x19, x0
	lsl	w8, w1, #17
	asr	w25, w8, #17
	sxth	w8, w25
	ubfx	w8, w8, #26, #5
	add	w8, w25, w8
	sbfx	w22, w8, #5, #11
	mov	x0, x2
	mov	x1, x22
	bl	_FM10K_VLAN_TABLE
	ldr	w8, [x23]
	cmp	w24, w8
	b.ge	LBB0_11
; %bb.4:
	mov	x21, x0
	sub	w8, w25, w22, lsl #5
	sxth	w22, w8
	mov	x0, x19
	mov	x1, x21
	bl	_fm10k_read_reg
	cmp	w20, #0
	csetm	w20, ne
	cinv	w8, w0, ne
	mov	w9, #-1
	lsl	w9, w9, w22
	ands	w8, w8, w9
	b.eq	LBB0_6
; %bb.5:
	eor	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	bl	_fm10k_write_reg
LBB0_6:
	add	w8, w22, w24
	sub	w22, w8, #32
	ldr	w8, [x23]
	cmp	w22, w8
	b.ge	LBB0_11
; %bb.7:
	add	w21, w21, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sub	w22, w22, #32
	ldr	w8, [x23]
	add	w21, w21, #1
	cmp	w22, w8
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_fm10k_read_reg
	cmp	w0, w20
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_fm10k_write_reg
	b	LBB0_8
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_VLAN_TABLE_VSI_MAX,8,3   ; @FM10K_VLAN_TABLE_VSI_MAX
	.comm	_FM10K_ERR_PARAM,4,2            ; @FM10K_ERR_PARAM
	.comm	_FM10K_VLAN_TABLE_VID_MAX,4,2   ; @FM10K_VLAN_TABLE_VID_MAX
	.no_dead_strip	_fm10k_update_vlan_pf
.subsections_via_symbols
